Skip to content

Typed errors [TE-B-14]: Blend fillet session core: the session's phrase and stage failures become defects, named causes or refusals #19824

Done

Description

@brett19

Ready to start. Every prerequisite of this ticket has merged: TE-B-P2 (#19801, merged in #20145), TE-B-P3 (#19802, merged in #19861), TE-B-P4 (#19803, merged in #20212). Start from current main; line numbers below were taken before those merges and may have moved.

Part of the typed-errors work (#13790). The index of all tickets, their order and the independence notes is #19799.

The foundation (#19636) is merged: Defect { why }, the per-file counts and the conversion guide are on main. The guide is section 6 of solidcore/docs/failure-codes-and-reproduction.md; rule numbers below are that section's. Paths are relative to solidcore/crates/solidcore/src/ unless they say otherwise. Site counts were measured at dd28d1111; the pinned lists on main are the truth if they differ.

This ticket owns its files. It converts every counted site in the files listed, of every kind, and edits only those files' lines in the pinned lists. To take it, open a draft PR that references this issue.

Audit figures below come from a reading of every StageFailed site at 11c641f04 (results); a * after a line number means a test reaches that site. Line numbers may have drifted since.

Corrections after checking this ticket against the goldens (2026-11-20)

For every conversion (beside rule 1):

Keeping the status means solidcore::error::upstream_status(&e) returns what it did, because most goldens units read that, not sm_status(). A new Curve, Offset, Sweep or Blend cause must return true from replaces_upstream_status. A nurbs cause must be a BSplineFailure variant. A bare site (sm_err/null_pointer/Upstream) is also read by runners that match only SolidError::Upstream (listed in the "How the goldens read an error" comment on #19799), so run the goldens of every unit its error reaches.

Files:

file (under blend/) total phrase (phrase_sites.rs PINNED) stage (stage_sites.rs PINNED) bare (error/blend.rs WAITING)
fillet_executive/session.rs 48 43 5
fillet_executive/session/ball_regular.rs 8 8
fillet_executive/session/band_cuts.rs 12 12
fillet_executive/session/concave_nxn.rs 1 1
fillet_executive/session/corner_marks.rs 1 1
fillet_executive/session/finish.rs 3 3
fillet_executive/session/fit_size.rs 20 20
fillet_executive/session/insertion/geometry.rs 2 2
fillet_executive/session/insertion/geometry/intersector.rs 1 1
fillet_executive/session/insertion/geometry/topology_objects.rs 1 1
fillet_executive/session/insertion/live.rs 3 3
fillet_executive/session/law_corners.rs 10 9 1
fillet_executive/session/original_trim.rs 1 1
fillet_executive/session/piecewise.rs 13 13
fillet_executive/session/surface.rs 4 4
fillet_executive/session/tangent_rollover.rs 7 5 2
fillet_executive/session/trace_reach.rs 3 3
fillet_executive/session/two_offsets.rs 18 18
fillet_tangent_rollover.rs 2 2
round_room.rs 1 1
total 159 151 8

What to do:

  • 151 phrase sites, mostly blend_missing (112: a solver, corner, edge use the session made: rule 2) and 8 stage sites. two_offsets.rs checks the caller's own lists (InvalidValue): rule 9, a named invalid-input cause keeping SM_ERR_INVALID_INPUT (its test at two_offsets.rs:585 asserts the phrase and the status).
  • session.rs's 5 stage sites: 3552 (an End that would wait again in the adjusted pass: defect, built on purpose) and the four calls of band_stage_failed (6499, 6573, 6701, 6727). The audit read 6701 (then 6483) as a numeric stop (a closest-point search that stopped) and 6727 as a defect; 6499 and 6573 are unaudited.
  • finish.rs:1082-1086 ("the fillet body is not built") is the phrase solidcore: a curved Setback that no fill certifies up to twice its setbacks is refused untyped, naming no size #16398 reports; TE-B-P2 (Typed errors [TE-B-P2]: The fillet executive's stages keep the stage's error as their cause #19801) makes it carry the cause, and this ticket names it. Its assertion is in solidcore-ops/src/blend/tests.rs.
  • session.rs:1121 (another corner's judgement that fails proves nothing: None) and surface.rs:505, trace_reach.rs:200/203 (continue) are control flow (rule 10).

Prerequisites: Foundation (#19636, merged 2026-11-20: Defect { why }, the per-file counts, the guide); TE-B-P2 (#19801) (the executive's stages keep the cause); TE-B-P3 (#19802) (delete the blend total); TE-B-P4 (#19803) (corner classification keeps the cause).

Watch for:

  • This ticket's files hold cause-replacing callers of other tickets: session.rs:2493, 2544 (TE-B-P4 (Typed errors [TE-B-P4]: A corner whose classification fails keeps the failure as its cause #19803), lands first). The trait impls in session.rs (CornerVertexAccess, CornerEdgeAccess, SolverGeometryAccess, ...) run under fillet_executive/p3.rs ignore (TE-B-P2 (Typed errors [TE-B-P2]: The fillet executive's stages keep the stage's error as their cause #19801)).
  • Shared helpers: fillet_tangent_rollover.rs is called by fillet_solver/p1.rs, fillet_geom/p2.rs, p6.rs, fillet_corner/topology/join.rs, nx1_end.rs, session/fit_size.rs, ball_regular.rs with ?. round_room.rs defines RoundRefusal (used by trace_reach.rs, fillet_executive/p1.rs, band_room.rs).
  • Tests: solidcore-ops/src/blend/tests.rs ("the fillet body is not built"), solidcore-ops/tests/blend.rs and solidcore-ops/tests/tangent_rollover.rs ("the faces the rails enclose reach past the rails", original_trim.rs), solidcore-ops/tests/blend.rs (two_offsets), solidcore/tests/blend_refusal.rs (session refusals by operation), solidcore/tests/issue_2365_nxn_setback_corners.rs.
  • Audit (8 stage sites): session.rs 3 audited (3552 defect; 6701* numeric; 6727* defect), 2 unaudited; session/law_corners.rs 1 defect; session/tangent_rollover.rs 2 defects.
  • Goldens units pinning statuses: blend_fillet_executive_p3 (calls fillet_executive::session directly); plus the end-to-end units that run whole blends and so reach this code: blend_fillet_executive_p1, blend_fillet_executive_p2, blend_fillet_executive_p3, blend_feature_executive, topology_assert_valid (it calls fillet_executive::api::fillet_edges).

Done when: every listed file's line is gone from the pin lists named in the table (or lowered to the agreed remainder stated under What to do, with the reason in the PR); no numeric status changed (the goldens named above unchanged); the tests listed under Watch for updated in the same PR; cargo test -p solidcore --lib -- error:: passes.

Also closes: none. Size: 159 sites, L.

Second reading of the sites that are not plain defects

Added 2026-11-21. The audit read these 1 sites a second time because the first reading did not class them as plain defects. This is that second reading, site by site, so the work is not repeated: its class, how sure it is, whether a test reaches the site, and the reasoning. It was done by reading the code at 11c641f04; nothing was run unless a test is named. Line numbers are that commit's and have moved since: find the site by the routine named in the reasoning. A class of "undetermined" means reading could not settle it; the reasoning says what would (usually a body that reaches the site).

The second reading, per site
Site (at 11c641f04) First reading Second reading Confidence Reaches the application Test Reasoning
blend/fillet_executive/session.rs:6483 NUMERIC NUMERIC (confirmed) medium yes, via geometry_bands_clear_other_rails (fillet_executive/p3.rs:3449, ?); swallowed only when the sample lies off its face (session.rs:6496) in-file a_foot_that_cannot_be_found_on_the_run_is_not_replaced (synthetic closures, not geometry) The drop onto a bounded run edge returned success=false (session.rs:6481-6483); a bounded curve always has a nearest point, so this is a solver that stopped. DroppedPoint's parameter and distance are at hand to name it.

Written by Claude Code (Anthropic) on behalf of @brett19.

Activity

  1. added
    area:kernel
    needs-triage
    on Nov 20, 2026
  2. added
    help wanted
    and removed
    needs-triage
    on Nov 20, 2026
  3. added
    in progress
    on Nov 22, 2026
  4. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    Claimed by @brett19 through #20750. The claim lapses after 14 days without pushes.

  5. brett19 commented on Nov 24, 2026

    @brett19
    CollaboratorAuthor

    Closing as done. Its PRs merged (#20750, #20927 and #21349), and main at e7aa2b4bfc pins 0 sites for this ticket's files: none of them is left in the phrase, stage or bare-status lists. The index #19799 lists TE-B-14 as done.

    Written by Claude Code (Anthropic) on behalf of @brett19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:kernelhelp wantedin progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions