Pf021 — Floating / non-deterministic crash in shape healing on near-apex `CONICAL_SURFACE` edge

§12.10 (sub-class: multi-pass-healing / non-deterministic)

P2 — spec deviation (no data loss)

silent-loss performance

Sources

Description

Healing pipeline crashes intermittently on the same input; symptoms are uninitialized memory, threading races, or floating-point exceptions in projection routines. Whole class, not a single defect — every vendor fixes it repeatedly. Common trigger: a `CONICAL_SURFACE` whose `EDGE_CURVE` passes through the cone apex, with a near-zero-length edge between the apex and a 1e-12-offset `VERTEX_POINT` — singular projection in healing produces an FP exception or uninitialised-memory read.

Reproducer recipe

run healing on the same large STEP 1000 times; detect non-deterministic crashes / divergent outputs.

Expected kernel behavior

Heal and accept: deterministic same-input-same-output writer; normalize the output across runs.

Notes

Cross-oracle: pure-Python Part-21 validator rejects (reject(E_REAL_NO_DOT)); OCCT silently accepts (load is `empty`). OCC auto-heals a spec-level violation. Provenance tier: runtime-only (Q5 reclassification 2026-07-01).

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

Closure intent

solid (defect kind: unstitched_seam) — authored as a closed solid; openness is the defect — heal it shut.

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/* Pf021: CONICAL_SURFACE with near-apex EDGE_CURVE: apex vertex at Z=0, adjacent vertex at Z=1e-12 (near-zero edge); singular projection in healing produces FP exception / uninitialised-memory read; the defect entity is emitted but sits unreachable from the shape-rep root (product chain roots a GEOMETRIC_CURVE_SET stub), so OCC loads only a 1-vertex stub (shape(1)); byte-present but oracle-invisible to the load-time shape-count oracles */
3HEADER;
4FILE_DESCRIPTION(('Pf021'),'2;1');
5FILE_NAME('Pf021.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('Pf021','Pf021','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#9063=CARTESIAN_POINT('',(0.0,0.0,0.0));
26#9064=DIRECTION('',(0.0,0.0,1.0));
27#9065=DIRECTION('',(1.0,0.0,0.0));
28#9066=AXIS2_PLACEMENT_3D('',#9063,#9064,#9065);
29#9067=CONICAL_SURFACE('',#9066,0.0,0.5236);
30#9068=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#9069=CARTESIAN_POINT('',(0.0,0.0,1.0E-12));
32#9070=CARTESIAN_POINT('',(1.0,0.0,1.7321));
33#9071=CARTESIAN_POINT('',(0.0,1.0,1.7321));
34#9072=VERTEX_POINT('',#9068);
35#9073=VERTEX_POINT('',#9069);
36#9074=VERTEX_POINT('',#9070);
37#9075=VERTEX_POINT('',#9071);
38#9076=DIRECTION('',(0.0,0.0,1.0));
39#9077=VECTOR('',#9076,1.0E-12);
40#9078=LINE('',#9068,#9077);
41#9079=EDGE_CURVE('',#9072,#9073,#9078,.T.);
42#9080=DIRECTION('',(1.0,0.0,0.0));
43#9081=VECTOR('',#9080,1.0);
44#9082=LINE('',#9069,#9081);
45#9083=EDGE_CURVE('',#9073,#9074,#9082,.T.);
46#9084=DIRECTION('',(0.0,1.0,0.0));
47#9085=VECTOR('',#9084,1.0);
48#9086=LINE('',#9070,#9085);
49#9087=EDGE_CURVE('',#9074,#9075,#9086,.T.);
50#9088=DIRECTION('',(-0.707106781187,-0.707106781187,0.0));
51#9089=VECTOR('',#9088,1.41421356237);
52#9090=LINE('',#9071,#9089);
53#9091=EDGE_CURVE('',#9075,#9072,#9090,.T.);
54#9092=ORIENTED_EDGE('',$,$,#9079,.T.);
55#9093=ORIENTED_EDGE('',$,$,#9083,.T.);
56#9094=ORIENTED_EDGE('',$,$,#9087,.T.);
57#9095=ORIENTED_EDGE('',$,$,#9091,.T.);
58#9096=EDGE_LOOP('',(#9092,#9093,#9094,#9095));
59#9097=FACE_OUTER_BOUND('',#9096,.T.);
60#9098=ADVANCED_FACE('',(#9097),#9067,.T.);
61#9099=OPEN_SHELL('apex_cone_shell',(#9098));
62#9100=SHELL_BASED_SURFACE_MODEL('cone_sbsm',(#9099));
63ENDSEC;
64END-ISO-10303-21;