Lh008 — Duplicate `FILE_SCHEMA` records with conflicting schema names

§12.1b header/numbering

P1 — silent data loss

syntax

Sources

Description

Two separate `FILE_SCHEMA` lines in HEADER. Last-write-wins vs. first-write-wins behavior diverges across implementations, leading to silent schema mis-binding.

Reproducer recipe

`HEADER; FILE_DESCRIPTION((''),'2;1'); FILE_NAME(..); FILE_SCHEMA(('AP203_CONFIG_CONTROL_DESIGN')); FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); ENDSEC;`

Expected kernel behavior

reject; exactly one FILE_SCHEMA permitted.

Notes

**See also**: Lh006. Synonyms: "duplicate FILE_SCHEMA records", "two FILE_SCHEMA lines in HEADER", "conflicting schema names in header", "second FILE_SCHEMA overrides first", "schema declared twice with different names".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Lh006

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh008: HEADER contains two FILE_SCHEMA records with conflicting schema names */
3/* ISO 10303-21 §8: exactly one FILE_SCHEMA record is permitted in HEADER */
4/* DEFECT: two FILE_SCHEMA lines — last-write-wins vs first-write-wins diverges */
5/* Receivers disagree which schema wins; both are non-deterministic silent mis-bindings */
6HEADER;
7FILE_DESCRIPTION(('Lh008: duplicate FILE_SCHEMA with conflicting names'),'2;1');
8FILE_NAME('Lh008.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
9/* DEFECT: first FILE_SCHEMA record */
10FILE_SCHEMA(('AP203_CONFIG_CONTROL_DESIGN'));
11/* DEFECT: second FILE_SCHEMA record — only one is permitted */
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('duplicate-file-schema-shape',(#1,#2));
20ENDSEC;
21END-ISO-10303-21;