Hea001 — Top-level shape-healing pipeline must converge over multi-defect GEOMETRIC_SET (mixed defective ADVANCED_FACE, OPEN_SHELL, free EDGE_LOOP wire)

§12.3 (sub-class: shape-healing) — pipeline

crash topology

Sources

Description

A top-level shape (GEOMETRIC_SET compound, solid, shell, or single face) has multiple defects whose fix order matters; fixing wires before faces vs. after produces different end-states. The shape-level orchestrator iterates over sub-shapes and invokes the appropriate sub-fixer; the orchestrator must converge on a stable result and not loop indefinitely. Typical fixture: a GEOMETRIC_SET mixing an ADVANCED_FACE with a scrambled inner triangular hole EDGE_LOOP, an OPEN_SHELL whose face has a flipped same_sense, and a free EDGE_LOOP wire whose ORIENTED_EDGEs are listed out of head-to-tail order.

Reproducer recipe

A GEOMETRIC_SET compound that mixes a defective face (Tfa037-style), a defective shell (Tsh043-style), and a free wire (Twi051-style); the orchestrator must dispatch to each sub-fixer.

Expected kernel behavior

Heal and accept via a top-level driver that walks the shape hierarchy, dispatches to per-shape fixers, and either converges or rejects with a fixed-point failure listing the offending sub-shape.

Notes

Umbrella over all sub-shape Perform() methods. 2026-07-12 rewire (audit finding, exchange VERDICT_AUDIT.md process notes): the representation previously referenced ONLY part (b) (`#120`, the `OPEN_SHELL`) — `#143=GEOMETRIC_SET('compound_three_defects',(#59,#120,#142))` itself was never referenced by anything, leaving parts (a) `#59` (the defective face) and (c) `#142` (the free wire) genuinely unreachable from the shape-representation root. Fixed by rewiring `#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION` to reference `#143` (the `GEOMETRIC_SET` of all three) instead of `#120` directly — matching this corpus's own precedent for a `GEOMETRIC_SET` as a direct representation item (see M192: `GEOMETRIC_SET` of bare `CARTESIAN_POINT`s wired the same way). All three sub-shapes are now reachable in the Part-21 entity graph. IMPORTANT correction to the prior explanation, found during live-oracle verification: the "orphaned... so OCC yields empty" reasoning was factually wrong about the MECHANISM, though the recorded `occt=empty` OUTCOME was already correct — isolated testing (2026-07-12, OCP 7.8.1) shows `#120` alone, even when directly (non-orphaned) wired as the representation's sole item, ALREADY yields `occt=empty`: a bare `OPEN_SHELL` wired directly into `MANIFOLD_SURFACE_SHAPE_REPRESENTATION` (unlike every other legitimate corpus fixture, which wraps it in a `SHELL_BASED_SURFACE_MODEL` first — confirmed by control tests against A085/A089/Tsh022) is not translated; wrapping it in a `SHELL_BASED_SURFACE_MODEL` makes it a live `shape(1)`. Separately, `GEOMETRIC_SET` cannot carry topological items (`ADVANCED_FACE`/`OPEN_SHELL`/`EDGE_LOOP` are not valid `geometric_set_select` members — only point/curve/surface are); isolated testing confirms even a single valid `ADVANCED_FACE` wrapped alone in a `GEOMETRIC_SET` yields `occt=empty` (items silently untranslated, not an error). So `#143` reproduces the SAME `occt=empty/empty` outcome as before — Expected validation is UNCHANGED, no NEEDS-ORACLE-REFRESH — but now for the structurally honest reason (graph-reachable, oracle-invisible via `GEOMETRIC_SET`'s item-type restriction) rather than a false orphaning explanation. Separate finding, flagged for the maintainer rather than fixed here (out of scope for a minimal reachability fix, and NOT safe to wire live): part (a)'s face `#59` (the "sub-tolerance scrambled inner wire, wrong orientation" `FACE_INNER_BOUND`) reliably CRASHES OCCT (`signal(11)`) if it is EVER made a live, OCCT-translated representation item — tested directly as the sole bare item, wrapped in its own `OPEN_SHELL`+`SHELL_BASED_SURFACE_MODEL`, and combined with the wrapped shell-b — all three configurations segfault. This is a more severe defect than "heals or is oracle-invisible"; it may warrant its own crash-bug fixture (`occt=signal(11)/signal(11)`, matching the Tsh139/Tsh140 convention) in a future wave, but is NOT wired live here to avoid shipping a crashing fixture under an entry whose own contract is graceful multi-defect convergence. `Hea011` (§12.3c) has the identical orphaning + bare-`OPEN_SHELL` pattern (`#61=GEOMETRIC_SET(...)` unreferenced, `#9061` wired directly to `#45` the bare `OPEN_SHELL`) — confirmed independently to also yield `occt=empty` — flagged for the maintainer; not fixed here (out of this task's scope). Synonyms: "multi-defect shape needs pipeline convergence", "fix order changes end state", "shape orchestrator must converge not loop", "compound with mixed defects healing".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Cross-references

M192, A085, A089, Tsh022, Tsh139, Tsh140, Hea011

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Hea001: GEOMETRIC_SET compound mixing three defective sub-shapes: (a) ADVANCED_FACE with tiny scrambled inner wire (sub-tolerance, wrong orientation); (b) OPEN_SHELL with face B same_sense .F. + shared edge in opposite orientation; (c) free EDGE_LOOP wire with scrambled edge order; ShapeFix_Shape orchestrator must converge over all three without looping */
3HEADER;
4FILE_DESCRIPTION(('Hea001'),'2;1');
5FILE_NAME('Hea001.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=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(10.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(10.0,10.0,0.0));
18#9=CARTESIAN_POINT('',(0.0,10.0,0.0));
19#10=VERTEX_POINT('',#6);
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=DIRECTION('',(1.0,0.0,0.0));
24#15=VECTOR('',#14,1.0);
25#16=LINE('',#6,#15);
26#17=EDGE_CURVE('',#10,#11,#16,.T.);
27#18=DIRECTION('',(0.0,1.0,0.0));
28#19=VECTOR('',#18,1.0);
29#20=LINE('',#7,#19);
30#21=EDGE_CURVE('',#11,#12,#20,.T.);
31#22=DIRECTION('',(-1.0,0.0,0.0));
32#23=VECTOR('',#22,1.0);
33#24=LINE('',#8,#23);
34#25=EDGE_CURVE('',#12,#13,#24,.T.);
35#26=DIRECTION('',(0.0,-1.0,0.0));
36#27=VECTOR('',#26,1.0);
37#28=LINE('',#9,#27);
38#29=EDGE_CURVE('',#13,#10,#28,.T.);
39#30=ORIENTED_EDGE('',$,$,#17,.T.);
40#31=ORIENTED_EDGE('',$,$,#21,.T.);
41#32=ORIENTED_EDGE('',$,$,#25,.T.);
42#33=ORIENTED_EDGE('',$,$,#29,.T.);
43#34=EDGE_LOOP('',(#30,#31,#32,#33));
44#35=FACE_OUTER_BOUND('',#34,.T.);
45#36=CARTESIAN_POINT('',(5.0,5.0,0.0));
46#37=CARTESIAN_POINT('',(5.001,5.0,0.0));
47#38=CARTESIAN_POINT('',(5.0,5.001,0.0));
48#39=VERTEX_POINT('',#36);
49#40=VERTEX_POINT('',#37);
50#41=VERTEX_POINT('',#38);
51#42=DIRECTION('',(1.0,0.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('',#36,#43);
54#45=EDGE_CURVE('inner_e1',#39,#40,#44,.T.);
55#46=DIRECTION('',(-0.707106781187,0.707106781187,0.0));
56#47=VECTOR('',#46,1.4142);
57#48=LINE('',#37,#47);
58#49=EDGE_CURVE('inner_e2',#40,#41,#48,.T.);
59#50=DIRECTION('',(0.0,-1.0,0.0));
60#51=VECTOR('',#50,1.0);
61#52=LINE('',#38,#51);
62#53=EDGE_CURVE('inner_e3',#41,#39,#52,.T.);
63#54=ORIENTED_EDGE('inner_oe_e3',$,$,#53,.T.);
64#55=ORIENTED_EDGE('inner_oe_e1',$,$,#45,.T.);
65#56=ORIENTED_EDGE('inner_oe_e2',$,$,#49,.T.);
66#57=EDGE_LOOP('',(#54,#55,#56));
67#58=FACE_INNER_BOUND('inner_wrong_orientation',#57,.T.);
68#59=ADVANCED_FACE('part_a_defective_face',(#35,#58),#5,.T.);
69#60=CARTESIAN_POINT('',(0.0,0.0,5.0));
70#61=AXIS2_PLACEMENT_3D('',#60,#2,#3);
71#62=PLANE('shell_planeA',#61);
72#63=CARTESIAN_POINT('',(0.0,0.0,5.0));
73#64=AXIS2_PLACEMENT_3D('',#63,#2,#3);
74#65=PLANE('shell_planeB',#64);
75#66=CARTESIAN_POINT('',(0.0,0.0,5.0));
76#67=CARTESIAN_POINT('',(2.0,0.0,5.0));
77#68=CARTESIAN_POINT('',(2.0,2.0,5.0));
78#69=CARTESIAN_POINT('',(0.0,2.0,5.0));
79#70=CARTESIAN_POINT('',(4.0,0.0,5.0));
80#71=CARTESIAN_POINT('',(4.0,2.0,5.0));
81#72=VERTEX_POINT('Sa',#66);
82#73=VERTEX_POINT('Ss0',#67);
83#74=VERTEX_POINT('Ss1',#68);
84#75=VERTEX_POINT('Sb',#69);
85#76=VERTEX_POINT('Sc',#70);
86#77=VERTEX_POINT('Sd',#71);
87#78=DIRECTION('',(1.0,0.0,0.0));
88#79=VECTOR('',#78,1.0);
89#80=LINE('',#66,#79);
90#81=EDGE_CURVE('shell_A_bottom',#72,#73,#80,.T.);
91#82=DIRECTION('',(0.0,1.0,0.0));
92#83=VECTOR('',#82,1.0);
93#84=LINE('',#67,#83);
94#85=EDGE_CURVE('shell_shared',#73,#74,#84,.T.);
95#86=DIRECTION('',(-1.0,0.0,0.0));
96#87=VECTOR('',#86,1.0);
97#88=LINE('',#68,#87);
98#89=EDGE_CURVE('shell_A_top',#74,#75,#88,.T.);
99#90=DIRECTION('',(0.0,-1.0,0.0));
100#91=VECTOR('',#90,1.0);
101#92=LINE('',#69,#91);
102#93=EDGE_CURVE('shell_A_left',#75,#72,#92,.T.);
103#94=DIRECTION('',(1.0,0.0,0.0));
104#95=VECTOR('',#94,1.0);
105#96=LINE('',#67,#95);
106#97=EDGE_CURVE('shell_B_bottom',#73,#76,#96,.T.);
107#98=DIRECTION('',(0.0,1.0,0.0));
108#99=VECTOR('',#98,1.0);
109#100=LINE('',#70,#99);
110#101=EDGE_CURVE('shell_B_right',#76,#77,#100,.T.);
111#102=DIRECTION('',(-1.0,0.0,0.0));
112#103=VECTOR('',#102,1.0);
113#104=LINE('',#71,#103);
114#105=EDGE_CURVE('shell_B_top',#77,#74,#104,.T.);
115#106=ORIENTED_EDGE('',$,$,#81,.T.);
116#107=ORIENTED_EDGE('',$,$,#85,.T.);
117#108=ORIENTED_EDGE('',$,$,#89,.T.);
118#109=ORIENTED_EDGE('',$,$,#93,.T.);
119#110=EDGE_LOOP('shellA_outer',(#106,#107,#108,#109));
120#111=FACE_OUTER_BOUND('',#110,.T.);
121#112=ADVANCED_FACE('shell_faceA',(#111),#62,.T.);
122#113=ORIENTED_EDGE('',$,$,#97,.T.);
123#114=ORIENTED_EDGE('',$,$,#101,.T.);
124#115=ORIENTED_EDGE('',$,$,#105,.T.);
125#116=ORIENTED_EDGE('',$,$,#85,.F.);
126#117=EDGE_LOOP('shellB_outer',(#113,#114,#115,#116));
127#118=FACE_OUTER_BOUND('',#117,.T.);
128#119=ADVANCED_FACE('shell_faceB_flipped',(#118),#65,.F.);
129#120=OPEN_SHELL('part_b_defective_shell',(#112,#119));
130#121=CARTESIAN_POINT('',(0.0,0.0,10.0));
131#122=CARTESIAN_POINT('',(1.0,0.0,10.0));
132#123=CARTESIAN_POINT('',(0.5,0.866,10.0));
133#124=VERTEX_POINT('Wa',#121);
134#125=VERTEX_POINT('Wb',#122);
135#126=VERTEX_POINT('Wc',#123);
136#127=DIRECTION('',(1.0,0.0,0.0));
137#128=VECTOR('',#127,1.0);
138#129=LINE('',#121,#128);
139#130=EDGE_CURVE('wire_e1',#124,#125,#129,.T.);
140#131=DIRECTION('',(-0.5,0.866,0.0));
141#132=VECTOR('',#131,1.0);
142#133=LINE('',#122,#132);
143#134=EDGE_CURVE('wire_e2',#125,#126,#133,.T.);
144#135=DIRECTION('',(-0.5,-0.866,0.0));
145#136=VECTOR('',#135,1.0);
146#137=LINE('',#123,#136);
147#138=EDGE_CURVE('wire_e3',#126,#124,#137,.T.);
148#139=ORIENTED_EDGE('w_oe_e3',$,$,#138,.T.);
149#140=ORIENTED_EDGE('w_oe_e1',$,$,#130,.T.);
150#141=ORIENTED_EDGE('w_oe_e2',$,$,#134,.T.);
151#142=EDGE_LOOP('part_c_free_wire_scrambled',(#139,#140,#141));
152#143=GEOMETRIC_SET('compound_three_defects',(#59,#120,#142));
153#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
154#9051=PRODUCT('Hea001','Hea001','',(#9050));
155#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
156#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
157#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
158#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
159#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
160#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
161#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
162#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
163#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
164#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#143),#9060);
165#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
166ENDSEC;
167END-ISO-10303-21;