step-examples/12-8-mixed/M134.stp
Sources
- 16-iso-spec ISO 10303-41 (person uniqueness in approval)
- bug-reporter language: "AP203 PERSON id collision", "two people same identifier", "PDM approver ambiguous".
Sender
deduced — PDM exporter that pulled PERSON records from two source databases without re-mapping identifiers
Description
Two `PERSON` instances declare the same identifier (e.g. 'jdoe') yet have different last names ('Doe' vs 'Doppelganger'). PERSON.id is intended to uniquely identify the individual across the design pool; this collision makes downstream APPROVAL_PERSON_ORGANIZATION references ambiguous about which individual approved.
Reproducer recipe
`PERSON('jdoe','Doe','John',..)` and `PERSON('jdoe','Doppelganger','Jane',..)` in the same file.
Expected kernel behavior
detect duplicate PERSON.id; reject or warn. Auto-rename is out of scope.
Notes
Synonyms: "AP203 person ID conflict", "PDM identifier collision", "approver disambiguation".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')count_entity_def(b'PERSON') >= 2contains(b"PERSON('jdoe',")
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M134: AP203 two distinct PERSON entities share the same id 'jdoe' */ 3/* DEFECT: two PERSON instances both have id='jdoe' but different last names */ 4/* APPROVAL_PERSON_ORGANIZATION cannot determine which individual approved */ 5/* Per ISO 10303-41 PERSON.id must be unique within the design pool */ 6/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 7/* Byte assertion: count_entity_def(b'PERSON') >= 2 */ 8/* Byte assertion: contains(b"PERSON('jdoe',") */ 9HEADER; 10FILE_DESCRIPTION(('M134: AP203 PERSON id collision â two people share id jdoe'),'2;1'); 11FILE_NAME('M134.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 12/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 13FILE_SCHEMA(('CONFIG_CONTROL_DESIGN { 1 0 10303 203 1 0 0 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('configuration controlled 3D designs of mechanical parts and assemblies'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'config_control_design',1994,#1); 19/* Standard unit context (mm) */ 20#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 21#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 28 REPRESENTATION_CONTEXT('ctx','3D')); 29/* Byte assertion: count_entity_def(b'PERSON') >= 2 */ 30/* First PERSON with id 'jdoe' â imported from design-team database */ 31/* Byte assertion: contains(b"PERSON('jdoe',") */ 32#20=PERSON('jdoe','Doe','John',$,$,$); 33/* DEFECT: second PERSON also has id 'jdoe' â imported from approval database */ 34/* Different last name 'Doppelganger' proves these are distinct individuals */ 35/* A valid file would use distinct ids such as 'jdoe' and 'jdopple' */ 36#21=PERSON('jdoe','Doppelganger','Jane',$,$,$); 37/* Shared organization for both persons */ 38#22=ORGANIZATION('ORG-001','Acme Engineering','Mechanical design division'); 39#23=PERSON_AND_ORGANIZATION(#20,#22); 40#24=PERSON_AND_ORGANIZATION(#21,#22); 41/* Product under review */ 42#30=PRODUCT('PART-088','Gear Housing','Precision gear enclosure',(#1)); 43#31=PRODUCT_DEFINITION_FORMATION('rev_B','Engineering change rev B',#30); 44#32=PRODUCT_DEFINITION('design','',#31,PRODUCT_DEFINITION_CONTEXT(#1,'design')); 45/* APPROVAL entity for the rev_B design review */ 46#40=APPROVAL(APPROVAL_STATUS('approved'),'Rev B design approval'); 47#42=APPLIED_APPROVAL_ASSIGNMENT(#40,(#32)); 48/* DEFECT: APPROVAL_PERSON_ORGANIZATION refers to #23 (person 'jdoe' = John Doe) */ 49/* but #24 also exists with the same id 'jdoe' (Jane Doppelganger) */ 50/* The approval record is ambiguous: which 'jdoe' signed off on rev_B? */ 51#41=APPROVAL_PERSON_ORGANIZATION(#23,#40,APPROVAL_ROLE('approver')); 52/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 53#500=GEOMETRIC_CURVE_SET('ap203-person-id-collision-jdoe', 54 (#20,#21,#22,#23,#24,#30,#31,#32,#40,#41,#42)); 55/* Product chain */ 56#600=APPLICATION_CONTEXT('mechanical design'); 57#601=PRODUCT_CONTEXT('',#600,'mechanical'); 58#602=PRODUCT('M134','M134','M134',(#601)); 59#603=PRODUCT_DEFINITION_FORMATION('','',#602); 60#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 61#605=PRODUCT_DEFINITION('','',#603,#604); 62#606=PRODUCT_DEFINITION_SHAPE('','',#605); 63#607=SHAPE_REPRESENTATION('',(#500),#14); 64#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 65ENDSEC; 66END-ISO-10303-21;