step-examples/12-8-mixed/M126.stp
Sources
- 16-iso-spec ISO 10303-203 §4 (configuration management / effectivity)
- bug-reporter language: "STEP effectivities overlap", "AP203 configuration ambiguous on date X", "two effectivities cover the same window".
Sender
deduced — PDM exporter merging two configuration baselines without re-validating the effectivity windows
Description
Two `TIME_INTERVAL_BASED_EFFECTIVITY` entities cover an overlapping date range while binding contradictory product configurations. A configuration query at any date in the overlap window may return either configuration depending on which effectivity was scanned first; the configuration is non-deterministic. Bug-reporter language: "AP203 effectivity overlap", "two configurations effective same date", "PDM ambiguous effectivity".
Reproducer recipe
`TIME_INTERVAL_BASED_EFFECTIVITY('cfg_v1','rev_A', 2024-01-01, 2024-12-31)` and a second covering `2024-06-01 . 2025-05-31` with `rev_B`.
Expected kernel behavior
detect overlapping effectivity windows; reject the configuration set, or warn and pick the latest-released configuration deterministically.
Notes
Synonyms: "effectivity ambiguity", "configuration overlap", "AP203 PDM date conflict". **See also**: A012.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')count_entity_def(b'TIME_INTERVAL_BASED_EFFECTIVITY') >= 2
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M126: AP203 effectivity periods overlap with conflicting product configurations */ 3/* DEFECT: two TIME_INTERVAL_BASED_EFFECTIVITY windows overlap 2024-06-01..2024-12-31 */ 4/* cfg_v1 (rev_A): 2024-01-01..2024-12-31; cfg_v2 (rev_B): 2024-06-01..2025-05-31 */ 5/* Any query in the overlap window returns rev_A or rev_B non-deterministically */ 6/* Per AP203 §4 effectivity windows for conflicting configs must not overlap */ 7/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 8/* Byte assertion: count_entity_def(b'TIME_INTERVAL_BASED_EFFECTIVITY') >= 2 */ 9HEADER; 10FILE_DESCRIPTION(('M126: AP203 overlapping effectivity periods for conflicting configurations'),'2;1'); 11FILE_NAME('M126.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/* Calendar dates for overlapping effectivity windows */ 30/* Window 1: 2024-01-01 to 2024-12-31 */ 31#20=CALENDAR_DATE(2024,1,1); 32#21=CALENDAR_DATE(2024,12,31); 33/* Window 2: 2024-06-01 to 2025-05-31 â overlaps window 1 from 2024-06-01..2024-12-31 */ 34#22=CALENDAR_DATE(2024,6,1); 35#23=CALENDAR_DATE(2025,5,31); 36/* Product with two conflicting configurations */ 37#30=PRODUCT('PART-001','Widget Assembly','Precision widget assembly',(#1)); 38#31=PRODUCT_DEFINITION_FORMATION('rev_A','Initial release',#30); 39#32=PRODUCT_DEFINITION_FORMATION('rev_B','Engineering change rev_B',#30); 40/* Byte assertion: count_entity_def(b'TIME_INTERVAL_BASED_EFFECTIVITY') >= 2 */ 41/* DEFECT: cfg_v1 window (2024-01-01..2024-12-31) overlaps cfg_v2 (2024-06-01..2025-05-31) */ 42/* A valid file would use non-overlapping windows: e.g. 2024-01-01..2024-05-31, 2024-06-01.. */ 43#40=TIME_INTERVAL_BASED_EFFECTIVITY('cfg_v1','',#31, 44 DATE_AND_TIME(#20,$),DATE_AND_TIME(#21,$)); 45#41=TIME_INTERVAL_BASED_EFFECTIVITY('cfg_v2','',#32, 46 DATE_AND_TIME(#22,$),DATE_AND_TIME(#23,$)); 47/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 48#500=GEOMETRIC_CURVE_SET('ap203-effectivity-periods-overlap-conflicting-configs', 49 (#31,#32,#40,#41)); 50/* Product chain */ 51#600=APPLICATION_CONTEXT('mechanical design'); 52#601=PRODUCT_CONTEXT('',#600,'mechanical'); 53#602=PRODUCT('M126','M126','M126',(#601)); 54#603=PRODUCT_DEFINITION_FORMATION('','',#602); 55#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 56#605=PRODUCT_DEFINITION('','',#603,#604); 57#606=PRODUCT_DEFINITION_SHAPE('','',#605); 58#607=SHAPE_REPRESENTATION('',(#500),#14); 59#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 60ENDSEC; 61END-ISO-10303-21;