step-examples/12-13-writer-pathology/Wr026.stp
Sources
- OCCT `STEPCAFControl_Reader` source
- CAx-IF interop "vendor sniffing"
- bug-reporter language: "STEP from vendor X behaves weirdly"
Sender
Writers that include vendor-version strings in `FILE_DESCRIPTION.description` such that downstream readers branch on them
Description
The producer writes `FILE_DESCRIPTION(('CAD-System-X version 12.4.1 build 2026-04-15'),'2;1')`. Some receivers contain heuristic special-casing keyed on vendor strings; they apply a "fix-up X model" filter only if the vendor string matches. This couples the receiver's behaviour to the producer's exact wording, so a minor wording change ("CAD-System X" with a space versus "CAD-System-X" with a hyphen) silently disables the fix-up. Bug-reporter language: "STEP file behaves differently after vendor renamed product", "kernel detects wrong vendor", "vendor sniffing failed".
Reproducer recipe
a fixture with `FILE_DESCRIPTION(('CAD-System-X v12.4.1'),'2;1')` and a comment noting the receiver special-cases the exact spelling.
Expected kernel behavior
Heal and accept: normalize / avoid behaviour-altering vendor sniffing; if vendor-specific compatibility is needed, expose it as an explicit user opt-in.
Notes
Sender-attribution in `FILE_DESCRIPTION` is a long-standing interop hazard. Bytes alone are insufficient to demonstrate this defect;. Tagged provenance_tier: writer-side.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
writer-side — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'CAD-System-X')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Wr026: vendor-specific FILE_DESCRIPTION that downstream readers special-case */ 3/* Receiver has heuristic: if description contains 'CAD-System-X', apply fix-up */ 4/* A rename to 'CAD-System X' (space instead of hyphen) silently breaks the fix-up */ 5HEADER; 6/* DEFECT: vendor string 'CAD-System-X v12.4.1' triggers receiver heuristics */ 7FILE_DESCRIPTION(('CAD-System-X v12.4.1'),'2;1'); 8FILE_NAME('Wr026.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12/* Geometry: minimal GEOMETRIC_CURVE_SET (no product chain needed) */ 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('vendor-sniff-target',()); 18ENDSEC; 19END-ISO-10303-21;