step-examples/12-13-writer-pathology/Wr033.stp
Sources
- ISO 10303-21 schema-id format
- bug-reporter language: "STEP schema unknown to my reader"
Sender
Writers with hard-coded schema-id strings that include a future or fictional version
Description
`FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING { 1 0 10303 442 1 99 99 }'))`; the schema name is recognised but the version tuple is unparseable or refers to a non-existent edition. Receivers either reject or ignore the version and load under the last-known compatible schema. Bug-reporter language: "STEP schema version unknown", "future schema version in file".
Reproducer recipe
`FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 99 1 1 }'))` (year tuple 99 is implausible).
Expected kernel behavior
warn on unrecognised schema version and either reject or load under the closest known schema with a diagnostic; never silently treat unknown as known.
Notes
Cousin of Lh004-class. **OCC behavior**: silently accepts the unparseable schema-version tuple (no warning); kernel mishandling; the catalog above forbids treating unknown as known. Provenance tier: writer-side (Q5 full-corpus 2026-07-01).
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
matches(rb'\b99\b.*\}')matches(rb'\b99\b')
Tier-3 assertions
load == "ok"
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/* Wr033: FILE_SCHEMA declares schema version that does not exist */ 3/* Schema name AUTOMOTIVE_DESIGN is known; version tuple { 1 0 10303 214 99 1 1 } */ 4/* uses year 99 â a future/fictional edition number no receiver will recognise */ 5/* Writers with hard-coded schema-id strings emit implausible version tuples */ 6HEADER; 7FILE_DESCRIPTION(('Wr033'),'2;1'); 8FILE_NAME('Wr033.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 9/* DEFECT: version tuple '{ 1 0 10303 214 99 1 1 }' does not correspond to any edition */ 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 99 1 1 }')); 11ENDSEC; 12DATA; 13#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 15#3=DIRECTION('xdir',(1.,0.,0.)); 16#4=DIRECTION('zdir',(0.,0.,1.)); 17#5=GEOMETRIC_CURVE_SET('unknown-schema-version-shape',()); 18ENDSEC; 19END-ISO-10303-21;