Skip to content

Typed errors [TE-O-22]: Sweeps (sweep/: rotational, translational and screw sweep geometry and the topology sweep engine): 98 failure sites become named causes, refusals or reviewed defects #19855

Closed

Description

@brett19

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, 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 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

Watch for

Done when

  • Every listed file's line is gone from error/sweep.rs the_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

  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 #20721. The claim lapses after 14 days without pushes.

  5. brett19 commented on Nov 23, 2026

    @brett19
    CollaboratorAuthor

    Closing as done. #20721 merged, and main at 8248458058 pins 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.

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