step-examples/12-1b-header/Lh013.stp
Sources
- 18-other-issues I069
Sender
build123d export_step (also CadQuery #1396)
Description
Producer pulls the FILE_NAME timestamp from the system clock rather than honoring a user-supplied datetime. Breaks reproducible builds (e.g. AUR packagers, CI artefact comparisons, downstream LibrePCB content hashes).
Reproducer recipe
`export_step(b, "box.step", timestamp=t)` and confirm FILE_NAME's timestamp matches `t`.
Expected kernel behavior
Heal and accept: writer must honor an explicit timestamp parameter when given; default to current time only when absent.
Notes
Producer-side defect, but the resulting headers are a recognizable wild-corpus class. **See also**: Lh011. Provenance tier: runtime-only; bytes alone cannot demonstrate non-determinism; the defect is that the timestamp was generated from the system clock rather than a user-supplied parameter. Demonstrating this requires comparing two writer invocations (or a writer-with-explicit-timestamp behavioral test), not a static file. Synonyms: "non-deterministic STEP build timestamp", "system-clock timestamp pollutes FILE_NAME", "reproducible build broken by STEP timestamp", "different timestamps each export", "CI artefact differs only by STEP date".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'FILE_NAME')contains(b'FILE_SCHEMA')contains(b'HEADER;')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Lh013: FILE_NAME timestamp sourced from system clock (non-deterministic) */ 3/* ISO 10303-21 §8: timestamp should be user-supplied for reproducible builds */ 4/* DEFECT: '2024-08-15T09:23:47' was written by the system clock at export time */ 5/* Each export of the same geometry produces a different file hash */ 6/* Breaks: AUR packaging, CI artefact comparison, LibrePCB content hashes */ 7/* Produced by: build123d export_step, CadQuery (#1396) without explicit timestamp */ 8HEADER; 9FILE_DESCRIPTION(('Lh013: non-deterministic build-time timestamp in FILE_NAME'),'2;1'); 10/* DEFECT: timestamp below was taken from the system clock, not a user parameter */ 11FILE_NAME('Lh013.stp','2024-08-15T09:23:47',(''),(''),'cad-research-suite','',''); 12FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 13ENDSEC; 14DATA; 15#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 16#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 17#3=DIRECTION('xdir',(1.,0.,0.)); 18#4=DIRECTION('zdir',(0.,0.,1.)); 19#5=GEOMETRIC_CURVE_SET('nondeterministic-timestamp-shape',(#1,#2)); 20ENDSEC; 21END-ISO-10303-21;