step-examples/12-1b-header/Lh040.stp
Sources
- 16-iso-spec ISO 10303-21 Ed.3 §6.3 (FILE_INFO supplementary metadata)
Description
Edition-3 FILE_INFO is intended for additional revision / metadata that did not fit Edition-2's FILE_NAME. Producers supporting both editions sometimes write FILE_NAME with one timestamp and FILE_INFO with a different one, leaving the receiver to choose between them.
Reproducer recipe
FILE_NAME date `'2026-04-26T00:00:00'`; FILE_INFO record `('rev','2016-01-01T00:00:00','release-r12')` claiming a date 10 years earlier.
Expected kernel behavior
surface both timestamps to the user; do not silently prefer one. If a single canonical date must be chosen, define the precedence rule deterministically (e.g. FILE_NAME wins for compatibility) and warn on mismatch.
Notes
**See also**: Lh016. **OCC behavior**: silently picks one timestamp without surfacing the conflict; kernel mishandling; the catalog above forbids silent preference. Synonyms: "FILE_INFO contradicts FILE_NAME date", "two timestamps disagree in header", "FILE_NAME and FILE_INFO timestamps differ", "STEP header timestamp conflict", "Ed.3 FILE_INFO date disagrees". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'FILE_INFO(')count(b"'2026-04") + count(b"'2016-01") >= 1
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/* Lh040: FILE_INFO timestamp contradicts FILE_NAME date */ 3/* ISO 10303-21 Ed.3 §6.3: FILE_INFO provides supplementary revision metadata */ 4/* DEFECT: FILE_NAME says 2026-04-26 but FILE_INFO claims 2016-01-01 (10 years earlier) */ 5/* OCC silently picks one timestamp without surfacing the conflict */ 6/* expected: surface both timestamps; warn on mismatch; define precedence deterministically */ 7HEADER; 8FILE_DESCRIPTION(('Lh040: FILE_INFO date contradicts FILE_NAME date'),'2;1'); 9FILE_NAME('Lh040.stp','2026-04-26T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 11FILE_INFO('rev','2016-01-01T00:00:00','release-r12'); 12/* DEFECT: FILE_INFO claims 2016-01-01 but FILE_NAME above says 2026-04-26 */ 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('conflicting-timestamp-shape',(#1,#2)); 20ENDSEC; 21END-ISO-10303-21;