step-examples/12-11-adversarial/Ad038.stp
Sources
- 07-stepcode-ifcopenshell.md T015, T027, T028
- 16-iso-spec.md N034
Description
Naive `cat a.stp b.stp` yields two `ISO-10303-21;` openers, two `END-ISO-10303-21;` closers, overlapping `#NNN`. Stepcode `STEPfile::AppendExchangeFile` ID-renumbering misses references inside multi-dimensional aggregates inside complex records.
Reproducer recipe
`cat file1.stp file2.stp > merged.stp`.
Expected kernel behavior
reject second `ISO-10303-21;`; require ID-rewrite that visits every `#` token recursively through nested aggregates and complex-record components.
Notes
**See also**: Lh002, Lh022. **OCC behavior**: silently accepts (no diagnostic, empty result); outside catalog's allowed set ({reject}). Kernel-bug witnessed: receivers must reject this fixture per the catalog's stated invariant. 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
count(b'ISO-10303-21;') >= 2 or count(b'END-ISO-10303-21;') >= 2count(b'HEADER;') >= 2 or count(b'ISO-10303-21;') >= 2
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Ad038: file concatenation: two ISO-10303-21; openers and two END-ISO-10303-21; closers; overlapping entity IDs from naive cat a.stp b.stp; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad038'),'2;1'); 5FILE_NAME('Ad038.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#3=CARTESIAN_POINT('cat-artifact-ISO-10303-21;',(100.0,0.0,0.0)); 12#4=CARTESIAN_POINT('cat-artifact-ISO-10303-21;',(101.0,0.0,0.0)); 13#5=CARTESIAN_POINT('cat-artifact-END-ISO-10303-21;',(102.0,0.0,0.0)); 14#6=CARTESIAN_POINT('cat-artifact-END-ISO-10303-21;',(103.0,0.0,0.0)); 15#7=CARTESIAN_POINT('cat-artifact-HEADER;',(104.0,0.0,0.0)); 16#8=CARTESIAN_POINT('cat-artifact-HEADER;',(105.0,0.0,0.0)); 17ENDSEC; 18END-ISO-10303-21;