Wr030 — `FILE_SCHEMA` listing schemas the file does not actually use

§12.13 writer-pathology (sub-class: header / vendor metadata)

P2 — spec deviation (no data loss)

writer

Sources

Sender

Writers that hard-code a schema list rather than computing the minimal set actually referenced

Description

`FILE_SCHEMA(('AUTOMOTIVE_DESIGN','CONFIG_CONTROL_DESIGN','AP242_MANAGED_MODEL_BASED_3D_ENGINEERING'))`; three schemas declared, but the DATA section uses only AP203 entities. The receiver may load the file under whichever schema it understands, and any AP242-specific validation passes vacuously because the AP242 entities aren't there. Bug-reporter language: "STEP claims multiple schemas", "FILE_SCHEMA over-declared", "AP242 listed but not used".

Reproducer recipe

standard AP203 entity body with `FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }','AP242_MANAGED_MODEL_BASED_3D_ENGINEERING'))`.

Expected kernel behavior

Warn and accept: normalize / validate against any one of the declared schemas under which the DATA-section entities are well-formed; emit a warning on over-declaration.

Notes

Cousin of Wr031 in the opposite direction. 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

Tier-3 assertions

Cross-references

Wr031

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Wr030: FILE_SCHEMA over-declares schemas the DATA section does not use */
3/* Three schemas declared; DATA section contains only AP203-compatible entities */
4/* Writer hard-coded schema list instead of computing minimal referenced set */
5HEADER;
6FILE_DESCRIPTION(('Wr030'),'2;1');
7FILE_NAME('Wr030.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
8/* DEFECT: three schemas declared; only AP203 entities appear in DATA section */
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }','CONFIG_CONTROL_DESIGN','AP242_MANAGED_MODEL_BASED_3D_ENGINEERING'));
10ENDSEC;
11DATA;
12/* Only AP203-compatible entities: GEOMETRIC_CURVE_SET, CARTESIAN_POINT, DIRECTION */
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('ap203-only-body',());
18ENDSEC;
19END-ISO-10303-21;