Repository navigation
Description
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.
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, notsm_status(). A new Curve, Offset, Sweep or Blend cause must return true fromreplaces_upstream_status. A nurbs cause must be aBSplineFailurevariant. A bare site (sm_err/null_pointer/Upstream) is also read by runners that match onlySolidError::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 | Sites | Breakdown (pin list) |
|---|---|---|
sweep/api_surfaces.rs |
4 | 4 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/cornered.rs |
2 | 2 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/rotational_sweep_geometry.rs |
26 | 26 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/screw.rs |
10 | 10 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/segments.rs |
1 | 1 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep.rs |
4 | 4 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep/access.rs |
4 | 4 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep/engine.rs |
14 | 14 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep/geometry.rs |
11 | 11 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep/store.rs |
3 | 3 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/topology_sweep/store/merge.rs |
6 | 6 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
sweep/trans_sweep_geometry.rs |
13 | 13 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
| Total | 98 | 98 in error/sweep.rs the_sweep_phrase_cause_sites_only_shrink (sweep phrase) |
What to do: This ticket covers the sweep geometry (rotational, translational, screw, cornered, segments) and the topology sweep engine with its store and merge. The sites are Failed (69) and Missing (29): "the base sweep geometry builds no geometry", "the edge has no curve", "the edge's start vertex", "the swept surface's boundary does not meet the edge's ends", "the translational edge sweep has no tolerance for one of its curves", "the face was already swept". The profile's edges are the caller's (rule 9). The engine's own sweep records are defects. "The face was already swept" is a caller order error. sweep/topology_sweep/geometry.rs has pub frame and transform helpers that rotational_sweep_geometry.rs, trans_sweep_geometry.rs and primitive/primitive_creation/p3/sweeps.rs (TE-O-20 (#19853)) call. They build sites in their own bodies, so converting them changes only this ticket's files. trans_sweep_geometry.rs:249 catches a TE-O-06 (#19838) error and replaces it: chain the cause. Guide section 6 has the rules.
Prerequisites
- Foundation (Kernel errors: a reviewed defect cause in every failure area, and per-file counts of the failure sites still to convert #19636, merged 2026-11-20).
- Shared causes (recommended, soft): reuse the causes agreed for conditions that recur across tickets (see notes).
- No other ticket. No caller elsewhere was found to replace this ticket's errors with a phrase.
Watch for
- Shared wrapper (in this ticket):
sweep/topology_sweep/store/merge.rspub(super) fn operands()is called fromstore.rs(this ticket). Thesweep/topology_sweep/geometry.rsframe helpers (start_coord_system,end_coord_system,sweep_transform,*_sweep_same) buildMissingsites in their own bodies. Their callers inrotational_sweep_geometry.rs,trans_sweep_geometry.rs,engine.rsandprimitive/primitive_creation/p3/sweeps.rs(TE-O-20 (Typed errors [TE-O-20]: Primitive and model creation (primitive/api_*,primitive/primitive_creation/model*,p1/,p3/): 105 failure sites become named causes, refusals or reviewed defects #19853)) are not counted and need no change. - This ticket's own catch-alls that drop another ticket's cause. Chain the cause here, under rule 6:
sweep/trans_sweep_geometry.rs:249catchesgen_base(TE-O-06 (Typed errors [TE-O-06]: Analytic swept surfaces and the surface/surface intersection front end (surface/surface/p2): 128 failure sites become named causes, refusals or reviewed defects #19838))
- Goldens units named after these files, whose recorded statuses must not move:
sweep.api_surfaces,sweep.rotational_sweep_geometry,sweep.topology_sweep,sweep.trans_sweep_geometry. 6 more units import from these modules and record the statuses of operations that pass through them (the notes on the index issue list them per ticket). Files with no unit of their own:sweep/cornered.rs,sweep/screw.rs,sweep/segments.rs. They are reached only through other units and the rig. Run--all --goldensbefore the PR. - Tests that assert an old phrase from these files (update them in the same PR; a short phrase may also be built elsewhere, so check each one):
solidcore/crates/solidcore/src/error/sweep.rs:228asserts "the face was already swept" (sweep/topology_sweep/engine.rs)
- Open PRs that change counted lines in these files (not conversions, but rebase hazards, and a PR that adds a site fails the pin): Threads: screw-swept walls keep their exact definition, and bodies with them save, draw and move #13891 (
sweep/screw.rs: 0 counted line(s) removed, 3 added); Sweeps: SolidCraft's extrude, revolve, sweep, loft and screw sweep call solidcore-ops #18948 (sweep/screw.rs: 0 counted line(s) removed, 1 added, draft). - Other open PRs touching these files: Retire revolve_analytic_profile_faces: revolved lines and arcs are analytic by default #15713, solidcore: the sweeps' passed-on statuses become the only path (#14246 batch S5) #16283, Sweeps: SolidCraft's extrude, revolve, sweep, loft and screw sweep call solidcore-ops #18948, Surface Extrude and Surface Sweep: a profile with a very short segment builds every wall instead of failing the check (#18515) #19666.
Done when
- Every listed file's line is gone from
error/sweep.rsthe_sweep_phrase_cause_sites_only_shrink(sweep phrase). If a file keeps a remainder, the PR says which sites remain and why (for example a site the guide says waits on another ticket). - No numeric status changed: the goldens units above (and
--all --goldens) pass unchanged, with nothing re-blessed. - The tests listed above, and any others that assert an old phrase, are updated in the same PR.
cargo test -p solidcore --lib -- error::passes. The PR shows each site's outcome and its evidence (guide §6.13).
Also closes: none.
Size: 98 sites, M.
Written by Claude Code (Anthropic) on behalf of @brett19.
Activity
github-actions commentedon Nov 22, 2026
Claimed by @brett19 through #20721. The claim lapses after 14 days without pushes.
Typed errors (TE-O-22): name the sweep subsystem's failure causes (ta…
Typed errors (TE-O-22): review fixes for the sweep causes (tangency-l…
Typed errors (TE-O-22): the sweeps' failures become named causes or r…
brett19 commentedon Nov 23, 2026
Closing as done. #20721 merged, and main at
8248458058pins 0 sites for this ticket's files. The index #19799 lists TE-O-22 as done.Written by Claude Code (Anthropic) on behalf of @brett19.