step-examples/12-11-adversarial/Ad136.stp
Sources
- synthesized — SASIG PDQ structural (structural-linter v1)
- models the "duplicate/ambiguous entity graph" PDQ class.
Description
entity id `#30` is defined by two `#30=...` statements in the DATA section, which ISO 10303-21 clause 11 forbids (instance names must be unique). OCC's reader silently keeps one definition and loads the model normally, so occt/gmsh shape-counts are identical to a clean model (oracle-invisible). The structural linter flags `DUPLICATE_ID`.
Reproducer recipe
emit the same `#N=` line twice in the DATA section.
Expected kernel behavior
a conformant reader must reject a file with a duplicated instance name, or at minimum diagnose which definition it kept.
Notes
Provenance_tier: bytes-sufficient. SASIG PDQ structural (structural-linter v1). Oracle-invisible: occt/gmsh load shape(1)/shape(9) identically to clean; discrimination comes solely from the `structural` oracle. Synonyms: "STEP duplicate entity id", "same #N defined twice", "ISO 10303-21 unique instance name violation", "SASIG PDQ duplicate geometry id".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b"#30=DIRECTION('',(0.0,0.0,1.0))")
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/* Ad136: entity id #30 is defined TWICE (illegal per ISO 10303-21 clause 11 â 3 ids must be unique within DATA). OCC's reader silently keeps one definition 4 and loads normally, so shape-counts match a clean model (oracle-invisible). 5 The structural linter flags DUPLICATE_ID. */ 6HEADER; 7FILE_DESCRIPTION(('Ad136'),'2;1'); 8FILE_NAME('Ad136.stp','2026-07-06T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12#9000=APPLICATION_CONTEXT('mechanical design'); 13#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 14#2=CARTESIAN_POINT('',(10.0,0.0,0.0)); 15#3=CARTESIAN_POINT('',(10.0,10.0,0.0)); 16#4=CARTESIAN_POINT('',(0.0,10.0,0.0)); 17#5=VERTEX_POINT('',#1); 18#6=VERTEX_POINT('',#2); 19#7=VERTEX_POINT('',#3); 20#8=VERTEX_POINT('',#4); 21#9=DIRECTION('',(1.0,0.0,0.0)); 22#10=VECTOR('',#9,10.0); 23#11=LINE('',#1,#10); 24#12=EDGE_CURVE('',#5,#6,#11,.T.); 25#13=DIRECTION('',(0.0,1.0,0.0)); 26#14=VECTOR('',#13,10.0); 27#15=LINE('',#2,#14); 28#16=EDGE_CURVE('',#6,#7,#15,.T.); 29#17=DIRECTION('',(-1.0,0.0,0.0)); 30#18=VECTOR('',#17,10.0); 31#19=LINE('',#3,#18); 32#20=EDGE_CURVE('',#7,#8,#19,.T.); 33#21=DIRECTION('',(0.0,-1.0,0.0)); 34#22=VECTOR('',#21,10.0); 35#23=LINE('',#4,#22); 36#24=EDGE_CURVE('',#8,#5,#23,.T.); 37#25=ORIENTED_EDGE('',$,$,#12,.T.); 38#26=ORIENTED_EDGE('',$,$,#16,.T.); 39#27=ORIENTED_EDGE('',$,$,#20,.T.); 40#28=ORIENTED_EDGE('',$,$,#24,.T.); 41#29=EDGE_LOOP('',(#25,#26,#27,#28)); 42#30=DIRECTION('',(0.0,0.0,1.0)); 43#30=DIRECTION('',(0.0,0.0,1.0)); 44#31=DIRECTION('',(1.0,0.0,0.0)); 45#32=AXIS2_PLACEMENT_3D('',#1,#30,#31); 46#33=FACE_OUTER_BOUND('',#29,.T.); 47#34=PLANE('',#32); 48#35=ADVANCED_FACE('',(#33),#34,.T.); 49#36=OPEN_SHELL('',(#35)); 50#37=SHELL_BASED_SURFACE_MODEL('',(#36)); 51#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 52#9051=PRODUCT('Ad136','Ad136','',(#9050)); 53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 55#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#37),#9060); 63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 64ENDSEC; 65END-ISO-10303-21;