step-examples/12-8-mixed/M137.stp
Sources
- 16-iso-spec ISO 10303-41 (applied_action_assignment.items arity)
- bug-reporter language: "AP203 action ambiguous", "applied_action_assignment mixed types", "PDM review target unclear".
Sender
deduced — PDM exporter that batched a single ACTION across related items spanning incompatible classes
Description
An `APPLIED_ACTION_ASSIGNMENT` distributes a single `ACTION` (e.g. an engineering review) across a list that mixes incompatible classes - both a `PRODUCT_DEFINITION` and a `DOCUMENT_FILE`. The action's domain semantics are ambiguous: was the review of the design or of the document? Bug-reporter language: "AP203 action ambiguous arity", "PDM action targets multiple kinds".
Reproducer recipe
`APPLIED_ACTION_ASSIGNMENT(action_ref, (product_def, document_file))`.
Expected kernel behavior
detect mixed-class items list; reject or warn and split into homogeneous assignments.
Notes
Synonyms: "AP203 multi-arity action", "PDM action target ambiguity", "applied_action mixes products and documents", "ACTION_ASSIGNMENT crosses class boundary". Synonyms: "AP203 multi-arity action", "PDM action target ambiguity".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')contains(b'APPLIED_ACTION_ASSIGNMENT')contains(b'DOCUMENT_FILE')
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/* M137: AP203 APPLIED_ACTION_ASSIGNMENT with mixed-class items list */ 3/* DEFECT: single ACTION assignment targets both PRODUCT_DEFINITION and DOCUMENT_FILE */ 4/* Domain semantics are ambiguous: was the review of the design or the document? */ 5/* Per ISO 10303-41 items should be homogeneous; fix: split into two assignments */ 6/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 7/* Byte assertion: contains(b'APPLIED_ACTION_ASSIGNMENT') */ 8/* Byte assertion: contains(b'DOCUMENT_FILE') */ 9HEADER; 10FILE_DESCRIPTION(('M137: AP203 APPLIED_ACTION_ASSIGNMENT mixed-class items PRODUCT_DEFINITION DOCUMENT_FILE'),'2;1'); 11FILE_NAME('M137.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/* Design artifact: PRODUCT and its PRODUCT_DEFINITION */ 30#20=PRODUCT('PART-101','Bracket Assembly','Structural mounting bracket',(#1)); 31#21=PRODUCT_DEFINITION_FORMATION('rev_C','Third revision',#20); 32#22=PRODUCT_DEFINITION('design','',#21,PRODUCT_DEFINITION_CONTEXT(#1,'design')); 33/* Byte assertion: contains(b'DOCUMENT_FILE') */ 34/* Document artifact: DOCUMENT_FILE referencing a design specification PDF */ 35#30=DOCUMENT('DOC-101','Bracket Assembly Design Spec', 36 'Technical specification for bracket assembly'); 37#31=DOCUMENT_TYPE('design_specification'); 38/* DEFECT contributor: DOCUMENT_FILE is an incompatible class to mix with PRODUCT_DEFINITION */ 39#32=DOCUMENT_FILE('bracket-spec-rev-C.pdf',#30,$,$,$,#31); 40/* Engineering review ACTION targeting the rev_C release decision */ 41#40=ACTION('review-2024-Q4','Engineering design review Q4 2024',$); 42#41=ACTION_METHOD('design_review','Standard design review procedure',$,'approved'); 43#42=ACTION_STATUS('approved'); 44/* Byte assertion: contains(b'APPLIED_ACTION_ASSIGNMENT') */ 45/* DEFECT: items list mixes PRODUCT_DEFINITION (#22) and DOCUMENT_FILE (#32) */ 46/* A correct file would use two separate APPLIED_ACTION_ASSIGNMENT instances: */ 47/* one with items=(#22) for the design, one with items=(#32) for the document */ 48/* With a single mixed-class assignment the ACTION receiver cannot route correctly */ 49#50=APPLIED_ACTION_ASSIGNMENT(#40,(#22,#32),ACTION_REQUEST_SOLUTION(#41,#40)); 50/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 51#500=GEOMETRIC_CURVE_SET('ap203-applied-action-assignment-mixed-class-items', 52 (#20,#21,#22,#30,#31,#32,#40,#41,#42,#50)); 53/* Product chain */ 54#600=APPLICATION_CONTEXT('mechanical design'); 55#601=PRODUCT_CONTEXT('',#600,'mechanical'); 56#602=PRODUCT('M137','M137','M137',(#601)); 57#603=PRODUCT_DEFINITION_FORMATION('','',#602); 58#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 59#605=PRODUCT_DEFINITION('','',#603,#604); 60#606=PRODUCT_DEFINITION_SHAPE('','',#605); 61#607=SHAPE_REPRESENTATION('',(#500),#14); 62#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 63ENDSEC; 64END-ISO-10303-21;