step-examples/12-8-mixed/M128.stp
Sources
- 16-iso-spec ISO 10303-203 §4 (approval workflow precedes effectivity)
- bug-reporter language: "AP203 approval after effectivity", "design effective before approved", "approval/effectivity out of order".
Sender
deduced — PDM exporter that did not enforce approval-before-effectivity invariant
Description
An `APPROVAL_DATE_TIME` on a release approval is later than the start of the corresponding `TIME_INTERVAL_BASED_EFFECTIVITY`. Per the AP203 process workflow, design approval must precede effectivity; the file shows effectivity beginning months before the approval was logged. Bug-reporter language: "approved after effective", "AP203 process violation", "release sequence inverted".
Reproducer recipe
`APPROVAL_DATE_TIME(2024-09-15,..)` and `TIME_INTERVAL_BASED_EFFECTIVITY(..,2024-06-01,..)`.
Expected kernel behavior
detect the inversion; warn or reject the approval/effectivity pair as out of process order.
Notes
Synonyms: "approval workflow inversion", "effectivity precedes approval", "design approved after effectivity start", "AP203 approval after release". Synonyms: "approval workflow inversion", "effectivity precedes approval".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')contains(b'APPROVAL_DATE_TIME')contains(b'TIME_INTERVAL_BASED_EFFECTIVITY')
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/* M128: AP203 design approved AFTER its effectivity start date */ 3/* DEFECT: APPROVAL_DATE_TIME = 2024-09-15; effectivity starts 2024-06-01 */ 4/* Approval is three months AFTER effectivity began â process order inverted */ 5/* Per AP203 §4 approval must precede effectivity start; design cannot be */ 6/* effective (in production) before it has been formally approved */ 7/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 8/* Byte assertion: contains(b'APPROVAL_DATE_TIME') */ 9/* Byte assertion: contains(b'TIME_INTERVAL_BASED_EFFECTIVITY') */ 10HEADER; 11FILE_DESCRIPTION(('M128: AP203 APPROVAL_DATE_TIME after effectivity start date'),'2;1'); 12FILE_NAME('M128.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 13/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 14FILE_SCHEMA(('CONFIG_CONTROL_DESIGN { 1 0 10303 203 1 0 0 }')); 15ENDSEC; 16DATA; 17#1=APPLICATION_CONTEXT('configuration controlled 3D designs of mechanical parts and assemblies'); 18#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 19 'config_control_design',1994,#1); 20/* Standard unit context (mm) */ 21#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 22#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 23#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 24#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 25 'distance_accuracy_value','maximum model space distance between geometric entities'); 26#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 27 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 28 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 29 REPRESENTATION_CONTEXT('ctx','3D')); 30/* Calendar dates: effectivity start (2024-06-01) and approval (2024-09-15) */ 31/* The key invariant: approval_date (2024-09-15) > effectivity_start (2024-06-01) */ 32#20=CALENDAR_DATE(2024,6,1); 33#21=CALENDAR_DATE(2025,5,31); 34/* Byte assertion: contains(b'APPROVAL_DATE_TIME') */ 35/* DEFECT: approval date 2024-09-15 is three months after effectivity start 2024-06-01 */ 36#22=CALENDAR_DATE(2024,9,15); 37/* Product and formation */ 38#30=PRODUCT('PART-001','Bracket Assembly','Structural mounting bracket',(#1)); 39#31=PRODUCT_DEFINITION_FORMATION('rev_A','Initial production release',#30); 40#32=PRODUCT_DEFINITION_CONTEXT(#1,'design'); 41#33=PRODUCT_DEFINITION('release','',#31,#32); 42/* APPROVAL: the release approval that was logged late */ 43#40=APPROVAL(APPROVAL_STATUS('approved'),'Release approval for rev_A'); 44/* Byte assertion: contains(b'APPROVAL_DATE_TIME') */ 45/* DEFECT: approval logged 2024-09-15 â three months after effectivity began 2024-06-01 */ 46/* Correct ordering: approval_date <= effectivity_start */ 47#41=APPROVAL_DATE_TIME(DATE_AND_TIME(#22,$),#40); 48#42=APPLIED_APPROVAL_ASSIGNMENT(#40,(#33)); 49/* Byte assertion: contains(b'TIME_INTERVAL_BASED_EFFECTIVITY') */ 50/* DEFECT: effectivity starts 2024-06-01 which is BEFORE approval date 2024-09-15 */ 51/* Design was declared effective three months before it was approved */ 52#43=TIME_INTERVAL_BASED_EFFECTIVITY('cfg_v1','',#31, 53 DATE_AND_TIME(#20,$),DATE_AND_TIME(#21,$)); 54/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 55#500=GEOMETRIC_CURVE_SET('ap203-approval-date-after-effectivity-start', 56 (#31,#33,#40,#41,#43)); 57/* Product chain */ 58#600=APPLICATION_CONTEXT('mechanical design'); 59#601=PRODUCT_CONTEXT('',#600,'mechanical'); 60#602=PRODUCT('M128','M128','M128',(#601)); 61#603=PRODUCT_DEFINITION_FORMATION('','',#602); 62#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 63#605=PRODUCT_DEFINITION('','',#603,#604); 64#606=PRODUCT_DEFINITION_SHAPE('','',#605); 65#607=SHAPE_REPRESENTATION('',(#500),#14); 66#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 67ENDSEC; 68END-ISO-10303-21;