…s, shell and difference report missing links as reviewed defects (tangency-labs#19851) (carried from tangency-labs#21123) (tangency-labs#21388)
* solidcore: tests for p1's failures as named causes and reviewed defects (TE-O-18, part 3, tangency-labs#19851)
The failing tests first: the offset executive's p1 still returns bare
statuses, so these fail on main. A base surface the implicit-offset
replacement cannot handle is a named unsupported kind with SM_ERR; a
missing argument is the caller's input and a missing B-rep link a
defect, both with SM_ERR_NULL_POINTER.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: the offset executive's edge-cap and gap failures become reviewed defects or the caller's input (TE-O-18, part 3, tangency-labs#19851)
45 of the 79 bare statuses of offset_executive/p1.rs (the
synchronization, edge and vertex caps, gap fills, implicit offsets,
excess faces and the free helpers), each read against the conversion
guide (docs/failure-codes-and-reproduction.md section 6), keep the
status they replaced:
- a missing link or entity of a B-rep, or the executive's own offset
B-rep, is a Defect whose why names it (SM_ERR_NULL_POINTER);
- a missing vertex or edge use argument and an edge of the input with
no curve are the caller's input;
- an implicit offset whose base has no B-spline form is the new
OffsetBaseKindUnsupported, an offset edge's curve of no B-spline
kind CurveKindUnsupported, both with SM_ERR;
- three sites that cannot be reached are gone (rule 11).
Where the executive reads a step's failure as a step that did not
apply (the gap fills' pipe fallback, p2's calls whose status upstream
ignores), a defect is passed on (rule 5). The face-use offset's sites
and three that need new causes are the next part.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: Neon's points on TE-O-18 part 3 (tangency-labs#19851)
- The corner blend's defect is passed on, as the gap fills' pipe
fallback passes a defect on, instead of becoming a bare SM_ERR.
- The gap-tail test tells the pipe fallback (two missing edge uses)
from a defect a gap fill meets (an edge use with no vertex use),
which is passed on and sweeps no pipe.
- The tests assert the named causes themselves, and reach the curve
kind branches of the pipe's path and of the arc and line tests with
a Hermite curve.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: tests for the face-use offset's failures and unpaired edge pieces (TE-O-18, part 4, tangency-labs#19851)
The failing tests first: on part 3 these sites still return bare
statuses. No face use is the caller's input, a face use with no face a
defect, and the cap loop's read past the other side's pieces (reached
when a split near a piece's end is refused) is named at the edge.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: the offset executive's face-use failures and five more become named causes or reviewed defects (TE-O-18, part 4, tangency-labs#19851)
The last 35 bare statuses of offset_executive/p1.rs, each read
against the conversion guide (docs/failure-codes-and-reproduction.md
section 6), keep the status they replaced:
- in piecewise_merge, build_offset_of_faceuse and map_edgeuses, a
missing link (a face use's face or mate, an edge use's radial or face
use), the offset B-rep, an offset face's surface or face use, and a
face just built that is not returned are Defects whose why names it;
so is the 2D domain boolean's missing plane or result;
- no face use is the new FaceuseNotGiven, a face of the input with no
surface FaceHasNoSurface, an edge use with no UV trim curve
EdgeuseHasNoUvTrim: the caller's input;
- the cap loop's read past the other side's pieces, reachable when a
split near a piece's end is refused, is EdgeOffsetsUnpaired at the
edge; a gap end at a vertex with no edge is GapEndWithoutEdge; a
failed corner blend is GapCornerBlendNotMade with the blend's error
as its cause; a self-intersection curve without its UV curve is
SelfIntersectionWithoutUvCurve;
- the offset surface taken twice where the routine had already
checked it is gone (rule 11).
p1.rs leaves the bare-status pin list.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: Neon's points on TE-O-18 part 4 (tangency-labs#19851)
- The contained-domain face construction passes a defect on instead
of reading it as a constructor failure that leaves no face (upstream
ignores the status).
- GapEndWithoutEdge and GapCornerBlendNotMade name the input edge whose
offsets leave the gap, SelfIntersectionWithoutUvCurve the input face
(offset-and-shell.md, invariant 4: a refusal names its entity).
- The face-use tests assert FaceuseNotGiven itself, the face use with
no face's why, and reach map_edgeuses' input face with no surface
(FaceHasNoSurface at the face) and offset face with none (a defect).
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: tests for the offset executive's p2 inputs, refusals and missing links (TE-O-18, part 5, tangency-labs#19851)
The shell's wall below twice the tolerance, a missing B-rep, a shell
selection naming no face of the body, an extended offset face that
collapses or meets itself, a trim past the extended surface and the
inset that leaves no cavity are named offset causes with their statuses;
a missing offset B-rep and a face's missing links are defects saying which.
All fail before the fix: the sites build bare statuses.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: the offset executive's input refusals and face steps become named causes or reviewed defects (TE-O-18, part 5, tangency-labs#19851)
29 of the 57 bare statuses of offset_executive/p2.rs, each keeping its
status:
- a missing B-rep (BrepNotGiven), a face of the input with no surface, a
shell selection naming no face of the body (ShellFaceNotOfBody) and a
shell wall below twice the tolerance (ShellWallUnresolved) are the
caller's input;
- an inset leaving no cavity (ShellLeavesNoCavity), an extended offset's
face that collapses (ExtendedFaceCollapses) or meets itself
(ExtendedFaceMeetsItself) and a trim past the extension
(TrimPastExtension) are named;
- in the face steps (copying a shell face, choosing the face use to
offset, extending a result face), a link or the offset B-rep that is
not there is a Defect whose why says which; the old surface the
restore takes once is no longer looked up twice (rule 11).
The other 28 (the edge loops, the shell and its difference) follow in
part 6.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: Neon's points on TE-O-18 part 5 (tangency-labs#19851)
ExtendedFaceCollapses carries the offset distance. Tests now reach a face
of the input with no surface copied as a shell face (FaceHasNoSurface,
not a defect), an offset face with no surface in the extension step (a
defect), and the shell API without a B-rep.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: tests for the shell difference's missing operand and result and a wall without surface (TE-O-18, part 6, tangency-labs#19851)
Both fail before the fix: the sites build bare null pointers.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: the offset executive's edge loops, shell and difference report missing links as reviewed defects (TE-O-18, part 6, tangency-labs#19851)
The other 28 bare statuses of offset_executive/p2.rs, each keeping its
status. A link of a B-rep (an edge use's radial, mate, edge or face, an
edge's vertex), the offset B-rep, the empty offset B-rep's region, a
copy in the sheet's or the working copy's map, an operand or the result
of the shell's difference, a wall's surface: each is a Defect whose why
says which (p1's reasons where the files share one). Two sites cannot
be reached and go (rule 11): the shell's input, now held from the start,
and the cavity cache, built before its loop. p2 leaves the offset's
bare-status list.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: a test for the static offset's failed solid offset, named with its cause (TE-O-18, part 6, tangency-labs#19851)
It fails before the fix: the site builds the generic phrase cause.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: the static offset's failed solid offset becomes a named cause that keeps its error (TE-O-18, part 6, tangency-labs#19851)
collapse_offset_status built the generic phrase "the offset could not be
built" (Reason::Failed) over the solid offset's error. It is now
OffsetFailure::OffsetNotBuilt, SM_ERR, with the same words; the error it
keeps decides its class (rule 6). It was the last generic phrase site:
the generic list in error.rs is empty and failed_after is test-only.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: keep collapse_offset_status's generic cause; test the squeeze without an offset B-rep (TE-O-18, part 6, tangency-labs#19851)
Reverts the two commits that named the static offset's failed solid
offset (OffsetNotBuilt). docs/offset-and-shell.md §4.2 says that wrapper
keeps the executive's reason from solidcore-ops, which passes the kernel's
status there ("That mapping is open."); a named offset cause would reach
ops as a phrase refusal instead. It stays for the PR that opens that
mapping.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* solidcore: a face use of the offset's input with no face is the caller's input (tangency-labs#19851)
The three reads of an input face use's face in offset_executive::p1
(the surface-pair heuristic, build_offset_of_faceuse and map_edgeuses)
reported a defect when the link was missing. A caller can build such a
face use (Brep::add_faceuse_record is public), so it is now the new
OffsetFailure::FaceuseHasNoFace at the face use, class InvalidInput,
keeping SM_ERR_NULL_POINTER. Missing links of the offset body the kernel
builds stay defects. From CodeRabbit's review of tangency-labs#21364.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* solidcore: name the offset input body's missing links as InvalidInput (tangency-labs#19851)
Review follow-up for TE-O-18 part 5. A face, face use or shell link
missing from the offset's input body is the caller's input (rule 9):
the pub Brep mutators can build such a body. These sites now return
the named OffsetFailure causes FaceHasNoFaceuse, FaceuseHasNoShell,
ShellHasNoRegion and FaceuseHasNoMate (InvalidInput,
SM_ERR_NULL_POINTER) instead of Defects.
The extended face self-intersection branch cannot be reached, because
offset_face_prefix skips the self-intersection of every face it
offsets. ExtendedFaceMeetsItself is removed and the branch is a Defect.
The loop-count overflow check is removed: each count is the length of
a list in memory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* solidcore: name a missing radial or face use of the offset input's edge uses in p1 (tangency-labs#19851)
Review follow-up for TE-O-18 part 6 (CodeRabbit on tangency-labs#21387 and tangency-labs#21388).
p1 reads an edge use's radial and face use from the caller's body in
the vertex offset and in relating mated offsets. A caller can clear
both links with the public Brep mutators, so under rule 9 a missing
link is the caller's input. Those four sites now return
EdgeuseHasNoRadial and the new EdgeuseHasNoFaceuse (InvalidInput,
SM_ERR_NULL_POINTER, as before) instead of Defects. Their defect
reasons EU_NO_RADIAL and EU_NO_FACEUSE are no longer used and are
removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Markus Reichart <52602624+MarkusReichart@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
Change
Part of #19851. Part 6 of 6 of TE-O-18 (index #19799), stacked on part 5 (#21111, on #21073 and #21023): the last 28 bare statuses of
offset/offset_executive/p2.rsnow say what happened (guide §6 ofsolidcore/docs/failure-codes-and-reproduction.md), sop2.rsleaves the offset's bare-status pin list. Every status stays what it was. Until the parts below are merged, the diff shows them too.Defects whosewhynames them, with p1's reasons where the two files share the link. Statuses:SM_ERR_NULL_POINTER,SM_ERRfor the copy map.Kept: the file's one generic phrase,
collapse_offset_status("the offset could not be built").docs/offset-and-shell.md§4.2 says the wrapper keeps the executive's reason from solidcore-ops, which passes the kernel's status there: "so ops sees no offset reason there and passes the kernel's status. That mapping is open." A named offset cause would reach ops as a phrase refusal instead, so it belongs to the PR that opens that mapping.The defects in the edge loops need a body with a broken link to reach; the tests reach the ones that take no full offset (the difference's operand and result, a wall without surface, the squeeze without the offset B-rep), and the others share their
whyand class with sites parts 3 to 5 test.Changes a default: no
Test change: the bare-status pin list in
error/offset.rsdropsp2.rs.Validation
Small gate at b52f8eb (
sc_gate_v2.sh, WSL): RESULT pass.cargo test -p solidcore --lib: 5918 passed, 0 failed; fmt, clippy-D warnings, wasm, repository checks: clean.goldens: 6 unit(s), 6 passed, 0 failed
The full gate runs at the head this part is made ready on.
Not run: the test suites of crates this change does not touch, doctests, publish dry run and the kernel rig, left to CI.
Units: offset.offset_executive_p1, offset.offset_executive_p2
Why one PR: the count
pr_checksees includes parts 3 to 5 and the test modules; this part's own program code is 118 lines.In scope: the last 28 counted bare sites of
offset_executive/p2.rsand its pin lineOut of scope:
collapse_offset_status's generic phrase (see above)Screenshots of the behavior (when observable)
Nothing to show: only the error a failing offset or shell returns changes, and its status stays the same.
Integration status
Stacked on #21111 (on #21073 and #21023); after they land, this branch takes main.
Co-written and tested with Claude Code (AI).