N039 — Healing pass over-eagerly inflates tolerances 1000× on sub-shapes that needed no fix (post-fix `UNCERTAINTY_MEASURE_WITH_UNIT` bloat)

§12.4 (sub-class: tolerance ballooning by healing)

P1 — silent data loss

units

Sources

Description

A healing pass touches every sub-shape and inflates edge/vertex tolerances even on those whose existing tolerance already covers the actual deviation. Common file signature: `GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT` carries two `UNCERTAINTY_MEASURE_WITH_UNIT` entries — a native 1e-6 mm precision and a post-fix "over-bumped" 1e-3 mm — a 1000× bump applied across the whole model after a healing pass on two consecutive edges sharing a single vertex. Combined with an in-place mutation mode, the input shape itself is silently bloated. The user-visible symptom is a healed model whose tolerance discs grew across every feature, even features that were valid to begin with.

Reproducer recipe

Pass a shape whose deviations are all within current tolerance through a full healing pass. Compare per-vertex tolerances before and after.

Expected kernel behavior

Heal and accept: only inflate tolerance when the actual deviation requires it; default to non-mutating (copy-on-write) input handling. Must not silently inflate.

Notes

**See also**: N040. Synonyms: "healer inflates tolerance 1000x on already-good shapes", "post-fix tolerance bloated everywhere", "tolerance jumped from 1e-6 to 1e-3 after heal", "healing pass touches every subshape", "uniform tolerance bloat after fix".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

N040

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N039: healing pass inflates all tolerances 1000x: native 1.0E-6 → post-fix 1.0E-3; 2×UNCERTAINTY_MEASURE_WITH_UNIT in GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N039'),'2;1');
5FILE_NAME('N039.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('p0',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1_shared',(10.0,0.0,0.0));
11#3=CARTESIAN_POINT('p2',(20.0,0.0,0.0));
12#4=VERTEX_POINT('v0',#1);
13#5=VERTEX_POINT('v1_shared',#2);
14#6=VERTEX_POINT('v2',#3);
15#7=DIRECTION('',(1.0,0.0,0.0));
16#8=VECTOR('',#7,10.0);
17#9=LINE('',#1,#8);
18#10=EDGE_CURVE('eA',#4,#5,#9,.T.);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,10.0);
21#13=LINE('',#2,#12);
22#14=EDGE_CURVE('eB',#5,#6,#13,.T.);
23#15=GEOMETRIC_CURVE_SET('heal_bloat',(#10,#14));
24#16=APPLICATION_CONTEXT('automotive_design');
25#17=PRODUCT_CONTEXT('',#16,'mechanical');
26#18=PRODUCT('N039','N039','',(#17));
27#19=PRODUCT_DEFINITION_FORMATION('','',#18);
28#20=PRODUCT_DEFINITION_CONTEXT('part definition',#16,'design');
29#21=PRODUCT_DEFINITION('','',#19,#20);
30#22=PRODUCT_DEFINITION_SHAPE('','',#21);
31#23=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
32#24=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
33#25=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
34#26=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-6),#23,'distance_accuracy_value','native_precision');
35#27=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#23,'distance_accuracy_value','post_heal_over_bumped_1000x');
36#28=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#26,#27))GLOBAL_UNIT_ASSIGNED_CONTEXT((#23,#24,#25))REPRESENTATION_CONTEXT('ctx','3D'));
37#29=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#15),#28);
38#30=SHAPE_DEFINITION_REPRESENTATION(#22,#29);
39ENDSEC;
40END-ISO-10303-21;