P1 family 5 (sweep/loft): open-wire profiles now report the measured gap
(endpoint pair, distance, chain count) instead of a bare closedness
complaint - extrude_rsolid and make_face_from_wire_rface raise points
rewired through diagnose_open_wire (endpoint-pairing union-find, tolerance
scaled to wire extent; a lone segment reports its own length as the gap).
Kernel loft failures (loft_rsolid + loft_rshell, which report a wordless
'build did not complete') get a section compatibility verdict: coincident
consecutive stations (the empirically dominant cause), edge-count
mismatch, open section wires, and backtracking station order, with a
per-station S1..Sn inventory (edges/closure/planarity/centroid).
Wire evidence renders through a new 2D plan schematic
(render_wire_plan_evidence): the 3D VTK pipeline cannot mesh bare wires
('no renderable triangles'), so edges are parameter-sampled to
polylines, PCA-projected onto the best-fit plane, and drawn matplotlib -
same ink/palette language as the sketch diagnostics. Open-wire evidence
highlights the two gap-end edges and pins P1/P2; loft evidence
highlights the implicated stations.
Family 6 audit conclusion recorded in the review table: knot uniqueness
and trim bounds are already guarded, offset_wires was never implemented;
the one real gap (bspline fit silent garbage exit) needs curvature
probes and stays queued as mechanism-E work.
Error-language contract regression: test_error_harness pins English-only
error text (CJK masked in technical details) - all Chinese repair lines
from this branch's earlier rounds are translated to English, figure text
stays ASCII (DejaVu has no CJK glyphs), each new family test pins a
CJK-free assertion, and the legacy extrude guidance test now asserts the
structured gap contract (gap == 1.0 for a single open segment).
Full suite 1858 passed, 5 skipped; ty clean on changed modules.
P0 family 4 (sketch solve): Sketch.solve's two bare ValueErrors replaced
by structured diagnosis. The solver already names failing constraints;
they now surface as measurements (constraint/entity/DOF counts, failed
constraint values), inventory rows (failed / near miss = direct conflict
partners sharing target entities / ok), parameterized repair (conflict
pairs named; dimension-type constraints relaxed before geometric ones),
and a 2D matplotlib schematic following the diag_png pattern (implicated
entities orange, related purple, failing constraint ids badged at their
first target; extents include circle/arc/ellipse extremes; single view
- planes have no occlusion). New module sketch_diagnostics.py sits
beside sketch.py importing only errors (operators must never be imported
from the sketch layer). SimpleCADError subclasses ValueError so legacy
handlers keep working; raise_harness_error passes it through untouched,
so inspect/wire-promotion paths surface the payload intact.
Mechanism E (blend exit check): fillet/chamfer may only remove material
on convex edges - observed: all-edge r=6 on a 10-cube 'succeeds' with
volume 1036.35 > 1000. assert_blend_volume_monotonic names it at the
exit; BlendVolumeViolation leads what_happened (kernel refused vs kernel
lied) with probe diagnosis appended. Concave edges legitimately add
material (bolt underhead fill = quarter-circle deficit x circumference,
verified +1.28 mm^3) so the increase check requires a provably all-convex
selection via a new side-probe convexity test (n_a - n_b lands in
material iff concave; the bisector probe is 90/270-blind).
Tests: 8 sketch cases (text axiom, pixel-verified render, ValueError
compatibility, passthrough) + 3 mechanism-E cases (r=6 garbage caught,
legit fillet passes, concave-edge regression). Full suite 1848 green,
ty unchanged from baseline.