Tsh266 — Manifold solid whose outer reference points at a face while the complete closed shell sits unreferenced

§12.3a shells (sub-class: wrong-type reference — solid outer slot holds a face, not a closed shell)

P1 — silent data loss

spec-violation topology

Sources

Description

A complete watertight 8x8x8 cube in which the writer descended one level too far when emitting the solid: the `MANIFOLD_SOLID_BREP` named `solid_outer_is_face` references the cube's bottom `ADVANCED_FACE` as its outer boundary, while the `CLOSED_SHELL` named `tsh266_orphaned_shell` — which correctly lists all six faces — is present in the file but referenced by nothing. The wrong-typed reference is on the solid, which IS reachable from the shape representation; the repair target (the shell) is one re-pointed reference away.

Reproducer recipe

a `MANIFOLD_SOLID_BREP` whose outer slot references an `ADVANCED_FACE`; a complete `CLOSED_SHELL` over the same six faces defined in the same file but reachable from nothing.

Expected kernel behavior

detect that the solid's outer boundary reference is a face where a closed shell is declared; recover by re-pointing to the complete unreferenced shell that contains that very face (it is the unique closed shell in the file), or reject with a diagnostic naming the mis-typed slot. Returning an empty model without a word — while a watertight cube sits fully described in the file — is the worst available outcome.

Notes

RUNTIME-VERIFIED (2026-08-10, this worktree, OCP/OCCT 7.8.1): both heal modes accept the file and produce NOTHING — zero roots, null shape, no diagnostic — despite the complete shell being present; the mesh-based reader is empty too. This joins the silent-total-geometry-loss family (complete connected boundary representation in, empty result out). The non-kernel structural linter reports the wrong-typed slot (`SLOT_TYPE`). Synonyms: "manifold solid outer references face not shell", "solid boundary one level too deep", "orphaned closed shell recoverable by repointing", "empty import complete cube present". Provenance tier: bytes-sufficient.

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/* Tsh266: MANIFOLD_SOLID_BREP('solid_outer_is_face') whose outer slot references the cube's bottom ADVANCED_FACE instead of the complete CLOSED_SHELL('tsh266_orphaned_shell') that is defined in the same file: the writer descended one level too far. Repair = re-point one reference to the shell already present */
3HEADER;
4FILE_DESCRIPTION(('Tsh266'),'2;1');
5FILE_NAME('Tsh266.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=CARTESIAN_POINT('',(8.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(8.0,8.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,8.0,0.0));
14#5=CARTESIAN_POINT('',(0.0,0.0,8.0));
15#6=CARTESIAN_POINT('',(8.0,0.0,8.0));
16#7=CARTESIAN_POINT('',(8.0,8.0,8.0));
17#8=CARTESIAN_POINT('',(0.0,8.0,8.0));
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#2);
20#11=VERTEX_POINT('',#3);
21#12=VERTEX_POINT('',#4);
22#13=VERTEX_POINT('',#5);
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,8.0);
28#19=LINE('',#1,#18);
29#20=EDGE_CURVE('',#9,#10,#19,.T.);
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,8.0);
32#23=LINE('',#2,#22);
33#24=EDGE_CURVE('',#10,#11,#23,.T.);
34#25=DIRECTION('',(-1.0,0.0,0.0));
35#26=VECTOR('',#25,8.0);
36#27=LINE('',#3,#26);
37#28=EDGE_CURVE('',#11,#12,#27,.T.);
38#29=DIRECTION('',(0.0,-1.0,0.0));
39#30=VECTOR('',#29,8.0);
40#31=LINE('',#4,#30);
41#32=EDGE_CURVE('',#12,#9,#31,.T.);
42#33=DIRECTION('',(1.0,0.0,0.0));
43#34=VECTOR('',#33,8.0);
44#35=LINE('',#5,#34);
45#36=EDGE_CURVE('',#13,#14,#35,.T.);
46#37=DIRECTION('',(0.0,1.0,0.0));
47#38=VECTOR('',#37,8.0);
48#39=LINE('',#6,#38);
49#40=EDGE_CURVE('',#14,#15,#39,.T.);
50#41=DIRECTION('',(-1.0,0.0,0.0));
51#42=VECTOR('',#41,8.0);
52#43=LINE('',#7,#42);
53#44=EDGE_CURVE('',#15,#16,#43,.T.);
54#45=DIRECTION('',(0.0,-1.0,0.0));
55#46=VECTOR('',#45,8.0);
56#47=LINE('',#8,#46);
57#48=EDGE_CURVE('',#16,#13,#47,.T.);
58#49=DIRECTION('',(0.0,0.0,1.0));
59#50=VECTOR('',#49,8.0);
60#51=LINE('',#1,#50);
61#52=EDGE_CURVE('',#9,#13,#51,.T.);
62#53=DIRECTION('',(0.0,0.0,1.0));
63#54=VECTOR('',#53,8.0);
64#55=LINE('',#2,#54);
65#56=EDGE_CURVE('',#10,#14,#55,.T.);
66#57=DIRECTION('',(0.0,0.0,1.0));
67#58=VECTOR('',#57,8.0);
68#59=LINE('',#3,#58);
69#60=EDGE_CURVE('',#11,#15,#59,.T.);
70#61=DIRECTION('',(0.0,0.0,1.0));
71#62=VECTOR('',#61,8.0);
72#63=LINE('',#4,#62);
73#64=EDGE_CURVE('',#12,#16,#63,.T.);
74#65=ORIENTED_EDGE('',$,$,#32,.F.);
75#66=ORIENTED_EDGE('',$,$,#28,.F.);
76#67=ORIENTED_EDGE('',$,$,#24,.F.);
77#68=ORIENTED_EDGE('',$,$,#20,.F.);
78#69=EDGE_LOOP('',(#65,#66,#67,#68));
79#70=CARTESIAN_POINT('',(4.0,4.0,0.0));
80#71=DIRECTION('',(0,0,-1));
81#72=DIRECTION('',(1,0,0));
82#73=AXIS2_PLACEMENT_3D('',#70,#71,#72);
83#74=PLANE('',#73);
84#75=FACE_OUTER_BOUND('',#69,.T.);
85#76=ADVANCED_FACE('tsh266_bot',(#75),#74,.T.);
86#77=ORIENTED_EDGE('',$,$,#36,.T.);
87#78=ORIENTED_EDGE('',$,$,#40,.T.);
88#79=ORIENTED_EDGE('',$,$,#44,.T.);
89#80=ORIENTED_EDGE('',$,$,#48,.T.);
90#81=EDGE_LOOP('',(#77,#78,#79,#80));
91#82=CARTESIAN_POINT('',(4.0,4.0,8.0));
92#83=DIRECTION('',(0,0,1));
93#84=DIRECTION('',(1,0,0));
94#85=AXIS2_PLACEMENT_3D('',#82,#83,#84);
95#86=PLANE('',#85);
96#87=FACE_OUTER_BOUND('',#81,.T.);
97#88=ADVANCED_FACE('tsh266_top',(#87),#86,.T.);
98#89=ORIENTED_EDGE('',$,$,#20,.T.);
99#90=ORIENTED_EDGE('',$,$,#56,.T.);
100#91=ORIENTED_EDGE('',$,$,#36,.F.);
101#92=ORIENTED_EDGE('',$,$,#52,.F.);
102#93=EDGE_LOOP('',(#89,#90,#91,#92));
103#94=CARTESIAN_POINT('',(4.0,0.0,4.0));
104#95=DIRECTION('',(0,-1,0));
105#96=DIRECTION('',(1,0,0));
106#97=AXIS2_PLACEMENT_3D('',#94,#95,#96);
107#98=PLANE('',#97);
108#99=FACE_OUTER_BOUND('',#93,.T.);
109#100=ADVANCED_FACE('tsh266_front',(#99),#98,.T.);
110#101=ORIENTED_EDGE('',$,$,#64,.T.);
111#102=ORIENTED_EDGE('',$,$,#44,.F.);
112#103=ORIENTED_EDGE('',$,$,#60,.F.);
113#104=ORIENTED_EDGE('',$,$,#28,.T.);
114#105=EDGE_LOOP('',(#101,#102,#103,#104));
115#106=CARTESIAN_POINT('',(4.0,8.0,4.0));
116#107=DIRECTION('',(0,1,0));
117#108=DIRECTION('',(1,0,0));
118#109=AXIS2_PLACEMENT_3D('',#106,#107,#108);
119#110=PLANE('',#109);
120#111=FACE_OUTER_BOUND('',#105,.T.);
121#112=ADVANCED_FACE('tsh266_back',(#111),#110,.T.);
122#113=ORIENTED_EDGE('',$,$,#52,.T.);
123#114=ORIENTED_EDGE('',$,$,#48,.F.);
124#115=ORIENTED_EDGE('',$,$,#64,.F.);
125#116=ORIENTED_EDGE('',$,$,#32,.T.);
126#117=EDGE_LOOP('',(#113,#114,#115,#116));
127#118=CARTESIAN_POINT('',(0.0,4.0,4.0));
128#119=DIRECTION('',(-1,0,0));
129#120=DIRECTION('',(0,0,1));
130#121=AXIS2_PLACEMENT_3D('',#118,#119,#120);
131#122=PLANE('',#121);
132#123=FACE_OUTER_BOUND('',#117,.T.);
133#124=ADVANCED_FACE('tsh266_left',(#123),#122,.T.);
134#125=ORIENTED_EDGE('',$,$,#24,.T.);
135#126=ORIENTED_EDGE('',$,$,#60,.T.);
136#127=ORIENTED_EDGE('',$,$,#40,.F.);
137#128=ORIENTED_EDGE('',$,$,#56,.F.);
138#129=EDGE_LOOP('',(#125,#126,#127,#128));
139#130=CARTESIAN_POINT('',(8.0,4.0,4.0));
140#131=DIRECTION('',(1,0,0));
141#132=DIRECTION('',(0,0,1));
142#133=AXIS2_PLACEMENT_3D('',#130,#131,#132);
143#134=PLANE('',#133);
144#135=FACE_OUTER_BOUND('',#129,.T.);
145#136=ADVANCED_FACE('tsh266_right',(#135),#134,.T.);
146#137=CLOSED_SHELL('tsh266_orphaned_shell',(#76,#88,#100,#112,#124,#136));
147#138=MANIFOLD_SOLID_BREP('solid_outer_is_face',#76);
148#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
149#9051=PRODUCT('Tsh266','Tsh266','',(#9050));
150#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
151#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
152#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
153#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
154#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
155#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
156#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
157#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
158#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
159#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#138),#9060);
160#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
161ENDSEC;
162END-ISO-10303-21;