step-examples/12-8-mixed/M188.stp
Sources
- 16-iso-spec ISO 10303-238 §5.8 deburring_operation edge-presence invariant
- bug-reporter language: "AP238 deburring of phantom edge", "STEP-NC deburr edge missing from part", "phantom edge in deburring op".
Description
A `DEBURRING_OPERATION` references an edge feature that isn't part of the `WORKPIECE`'s geometry. The deburring path is computed against a phantom edge; the tool either swings into empty space or contacts the workpiece in an unintended location. Bug-reporter language: "AP238 deburring edge not on part", "STEP-NC phantom edge in deburring", "deburr op references missing edge".
Reproducer recipe
a `WORKPIECE` whose declared edges are `#500` and `#501`; a `DEBURRING_OPERATION` whose target edge is `#510` (declared in file but not part of the workpiece's edge list).
Expected kernel behavior
validate deburring-op edge reference against workpiece geometry; reject as malformed.
Notes
Synonyms: "AP238 deburring phantom edge", "STEP-NC deburr edge missing from workpiece", "deburring op references foreign edge", "phantom edge in deburring sequence".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'DEBURRING_OPERATION')contains(b'phantom_edge_NOT_ON_PART')
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/* M188: AP238 DEBURRING_OPERATION references edge #510 not present in workpiece */ 3/* DEFECT: workpiece edge list = {#500, #501}; deburring target = #510 (phantom) */ 4/* Phantom edge #510 is declared in file but NOT part of workpiece geometry */ 5/* Tool swings into empty space or contacts workpiece in unintended location */ 6/* Per ISO 10303-238 §5.8 deburring_operation edge-presence invariant */ 7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 8/* Byte assertion: contains(b'DEBURRING_OPERATION') */ 9/* Byte assertion: contains(b'phantom_edge_NOT_ON_PART') */ 10HEADER; 11FILE_DESCRIPTION(('M188: AP238 DEBURRING_OPERATION targets phantom edge not on workpiece'),'2;1'); 12FILE_NAME('M188.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 13/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 14FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }')); 15ENDSEC; 16DATA; 17/* Standard unit context (mm) */ 18#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 22 'distance_accuracy_value','maximum model space distance between geometric entities'); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 24 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 26 REPRESENTATION_CONTEXT('ctx','3D')); 27/* mm length unit reference for MEASURE_WITH_UNIT */ 28#15=SI_UNIT(.MILLI.,.METRE.); 29/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 30#20=GEOMETRIC_CURVE_SET('ap238-deburring-operation-phantom-edge-not-on-workpiece', 31 (#500,#501,#510,#40,#50,#60)); 32/* EDGE_FEATURE 'workpiece_edge_A' (#500): valid edge on machined_block workpiece */ 33#500=EDGE_FEATURE('workpiece_edge_A','Valid edge A on machined block',$,$); 34/* EDGE_FEATURE 'workpiece_edge_B' (#501): valid edge on machined_block workpiece */ 35#501=EDGE_FEATURE('workpiece_edge_B','Valid edge B on machined block',$,$); 36/* Byte assertion: contains(b'phantom_edge_NOT_ON_PART') */ 37/* DEFECT: EDGE_FEATURE 'phantom_edge_NOT_ON_PART' (#510): declared in file */ 38/* but NOT listed in machined_block workpiece edge list â phantom edge */ 39#510=EDGE_FEATURE('phantom_edge_NOT_ON_PART','Phantom edge not belonging to workpiece',$,$); 40/* WORKPIECE 'machined_block': edge list = {#500, #501} only â #510 is NOT included */ 41#40=WORKPIECE('machined_block','Machined block with two valid edges',$,$,(#500,#501),$,$); 42/* Byte assertion: contains(b'DEBURRING_OPERATION') */ 43/* DEFECT: DEBURRING_OPERATION 'deburr_phantom_op' targets #510 â phantom edge */ 44/* #510 is not in workpiece edge list; deburring path against non-existent edge */ 45#50=DEBURRING_OPERATION('deburr_phantom_op',$,$,$,$,$,$,$,$,$,$,#510,$); 46/* MACHINING_WORKINGSTEP 'deburr_step' */ 47#60=MACHINING_WORKINGSTEP('deburr_step','Deburring phantom edge step',#50,#40,$); 48/* WORKPLAN: deburring operation on phantom edge not part of workpiece */ 49#70=WORKPLAN('phantom_edge_deburr_program','Phantom edge deburring workplan',(),$,(#60)); 50/* Product chain */ 51#100=APPLICATION_CONTEXT('mechanical design'); 52#101=PRODUCT_CONTEXT('',#100,'mechanical'); 53#102=PRODUCT('M188','M188','M188',(#101)); 54#103=PRODUCT_DEFINITION_FORMATION('','',#102); 55#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 56#105=PRODUCT_DEFINITION('','',#103,#104); 57#106=PRODUCT_DEFINITION_SHAPE('','',#105); 58#107=SHAPE_REPRESENTATION('',(#20),#14); 59#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 60ENDSEC; 61END-ISO-10303-21;