M176 — AP238 boring tool diameter exceeds start-hole diameter

§12.8 mixed (sub-class: AP238 deep machining)

spec-violation

Sources

Description

A `BORING_OPERATION` declares a boring-bar tool diameter (15 mm) larger than the pre-drilled start-hole diameter (10 mm). The boring bar physically cannot enter the hole - the operation is impossible. The controller either crashes the tool against the workpiece face or refuses to plunge. Bug-reporter language: "AP238 bore tool too big for hole", "STEP-NC boring insertion impossible", "boring bar exceeds start-hole dia".

Reproducer recipe

a `ROUND_HOLE` of diameter 10 mm; a `BORING_TOOL` of diameter 15 mm referenced by a `BORING_OPERATION` targeting that hole.

Expected kernel behavior

validate that boring tool diameter is less than start-hole diameter; reject as infeasible.

Notes

Synonyms: "AP238 boring tool larger than hole", "STEP-NC bore-bar won't fit", "boring insertion impossible", "tool diameter exceeds start-hole".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M176: AP238 boring tool diameter exceeds start-hole diameter */
3/* DEFECT: BORING_TOOL diameter 15.0 mm > ROUND_HOLE diameter 10.0 mm */
4/* Boring bar physically cannot enter the pre-drilled start hole */
5/* Controller crashes tool against workpiece face or refuses to plunge */
6/* Per ISO 10303-238 §5.8 boring tool diameter must be less than start-hole diameter */
7/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */
8/* Byte assertion: contains(b'BORING_OPERATION') */
9/* Byte assertion: contains(b'BORING_TOOL') */
10/* Byte assertion: contains(b'15.0') */
11HEADER;
12FILE_DESCRIPTION(('M176: AP238 boring_tool diameter 15mm exceeds start-hole diameter 10mm'),'2;1');
13FILE_NAME('M176.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
14/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */
15FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }'));
16ENDSEC;
17DATA;
18/* Standard unit context (mm) */
19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
20#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
21#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
23  'distance_accuracy_value','maximum model space distance between geometric entities');
24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
25  GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
26  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12))
27  REPRESENTATION_CONTEXT('ctx','3D'));
28/* mm length unit reference for MEASURE_WITH_UNIT */
29#15=SI_UNIT(.MILLI.,.METRE.);
30/* Start hole locator geometry */
31#30=CARTESIAN_POINT('hole_origin',(50.0,50.0,10.0));
32#31=DIRECTION('hole_axis',(0.0,0.0,1.0));
33#32=AXIS2_PLACEMENT_3D('hole_locator',#30,#31,$);
34/* ROUND_HOLE 'start_hole': diameter 10.0 mm (smaller than boring tool) */
35#41=MEASURE_WITH_UNIT(POSITIVE_LENGTH_MEASURE(10.0),#15);
36#40=ROUND_HOLE('start_hole',$,#41,#32,$);
37/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
38#20=GEOMETRIC_CURVE_SET('ap238-boring-tool-diameter-exceeds-start-hole-diameter',
39  (#40,#52,#60));
40/* Byte assertion: contains(b'BORING_TOOL') */
41/* DEFECT: BORING_TOOL 'boring_bar_15mm' with diameter 15.0 mm — exceeds 10.0 mm hole */
42#54=MEASURE_WITH_UNIT(POSITIVE_LENGTH_MEASURE(15.0),#15);
43#53=BORING_TOOL('boring_bar_15mm',$,#54,$,$,$,$,$,$);
44/* Byte assertion: contains(b'BORING_OPERATION') */
45/* DEFECT: BORING_OPERATION references oversized tool: bar cannot enter start hole */
46#52=BORING_OPERATION('bore_oversized',$,$,$,$,$,#53,$,$,$,$,$,$);
47/* WORKPIECE 'bore_workpiece' */
48#60=WORKPIECE('bore_workpiece','Boring workpiece for oversized-tool test',$,$,$,$,$);
49/* MACHINING_WORKINGSTEP 'bore_step' links boring op to workpiece */
50#51=MACHINING_WORKINGSTEP('bore_step','Oversized boring workingstep',#52,#60,$);
51/* WORKPLAN: single boring step with oversized tool */
52#50=WORKPLAN('boring_oversize_program','Boring oversized tool workplan',(),$,(#51));
53/* Product chain */
54#100=APPLICATION_CONTEXT('mechanical design');
55#101=PRODUCT_CONTEXT('',#100,'mechanical');
56#102=PRODUCT('M176','M176','M176',(#101));
57#103=PRODUCT_DEFINITION_FORMATION('','',#102);
58#104=PRODUCT_DEFINITION_CONTEXT(#100,'design');
59#105=PRODUCT_DEFINITION('','',#103,#104);
60#106=PRODUCT_DEFINITION_SHAPE('','',#105);
61#107=SHAPE_REPRESENTATION('',(#20),#14);
62#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107);
63ENDSEC;
64END-ISO-10303-21;