Ad118 — Forward-compat: STEP files written by an older OCC version no longer open in a newer build

§12.11 adversarial / parser-robustness (sub-class: schema-version regression)

P2 — spec deviation (no data loss)

adversarial

Sources

Sender

A producer pinned to an older OCC release whose STEP output uses a now-deprecated entity flavour or `FILE_SCHEMA` token.

Description

A STEP file emitted by an older OCC version declares `FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'))` (AP203 1994 schema) and uses entity flavours that the current reader has retired (e.g., `BREP_WITH_VOIDS` referenced from the older schema). The current reader rejects the schema string outright, even though the entities themselves are still recognisable. The result: a file that was authored by the same vendor toolchain becomes unreadable after a kernel upgrade.

Reproducer recipe

`FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'));` (older AP203) plus a `MANIFOLD_SOLID_BREP`. Newer reader refuses the schema even though entities are compatible.

Expected kernel behavior

heal-and-accept; recognise legacy schema tokens (`CONFIG_CONTROL_DESIGN`, `AUTOMOTIVE_DESIGN`) and dispatch the reader appropriate to the entities present; emit `W_LEGACY_SCHEMA` rather than `E_UNKNOWN_SCHEMA`.

Notes

**See also**: Lh013, A105. Synonyms: "STEP file from older OCC fails to open", "CONFIG_CONTROL_DESIGN no longer accepted", "schema-version regression on STEP read", "legacy AP203 schema rejected".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Lh013, A105

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad118: AP203 1994 schema (CONFIG_CONTROL_DESIGN) rejected by newer kernel */
3HEADER;
4FILE_DESCRIPTION(('Ad118'),'2;1');
5FILE_NAME('Ad118.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
10#2=DIRECTION('',(0.0,0.0,1.0));
11#3=DIRECTION('',(1.0,0.0,0.0));
12#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
13#5=PLANE('',#4);
14#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#7=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#8=CARTESIAN_POINT('',(1.0,1.0,0.0));
17#9=CARTESIAN_POINT('',(0.0,1.0,0.0));
18#10=VERTEX_POINT('',#6);
19#11=VERTEX_POINT('',#7);
20#12=VERTEX_POINT('',#8);
21#13=VERTEX_POINT('',#9);
22#14=DIRECTION('',(1.0,0.0,0.0));
23#15=VECTOR('',#14,1.0);
24#16=LINE('',#6,#15);
25#17=EDGE_CURVE('',#10,#11,#16,.T.);
26#18=DIRECTION('',(0.0,1.0,0.0));
27#19=VECTOR('',#18,1.0);
28#20=LINE('',#7,#19);
29#21=EDGE_CURVE('',#11,#12,#20,.T.);
30#22=DIRECTION('',(-1.0,0.0,0.0));
31#23=VECTOR('',#22,1.0);
32#24=LINE('',#8,#23);
33#25=EDGE_CURVE('',#12,#13,#24,.T.);
34#26=DIRECTION('',(0.0,-1.0,0.0));
35#27=VECTOR('',#26,1.0);
36#28=LINE('',#9,#27);
37#29=EDGE_CURVE('',#13,#10,#28,.T.);
38#30=ORIENTED_EDGE('',$,$,#17,.T.);
39#31=ORIENTED_EDGE('',$,$,#21,.T.);
40#32=ORIENTED_EDGE('',$,$,#25,.T.);
41#33=ORIENTED_EDGE('',$,$,#29,.T.);
42#34=EDGE_LOOP('',(#30,#31,#32,#33));
43#35=FACE_OUTER_BOUND('',#34,.T.);
44#36=ADVANCED_FACE('',(#35),#5,.T.);
45#37=CLOSED_SHELL('outer',(#36));
46#38=BREP_WITH_VOIDS('old_brep',#37,());
47ENDSEC;
48END-ISO-10303-21;