Skip to content

Refuse a sweep whose walls would fold flat at a corner, with a code - #42

Merged
jbacus merged 1 commit into
mainfrom
claude/project-thread-ziow6p
Dec 4, 2026
Merged

jbacus merged 1 commit into
mainfrom
claude/project-thread-ziow6p

Conversation

@jbacus

@jbacus jbacus commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

A sweep path whose stretch after a corner is exactly as long as the profile reaches round that corner (for example a square profile one unit wide, a square turn, then half a unit) left the faceted sweep a wall of no thickness lying in the plane of its neighbors, wound against them. Nothing refused it until the commit's check, which reported an invalid model with no refusal code.

Change

  • sweep.walls-fold-flat: a new sweep refusal. After a sweep kept past a tight corner (tightPath: 'keep', as the verb sweeps), the verb checks the walls it made for a flat fold (validator rule 20 on just those edges) and refuses, typed, with a sentence that says to make that stretch a little longer or shorter. The mesh and the undo stack are left as they were.
  • A path a little tighter still crosses itself and is kept for the imprint to resolve, and one a little looser miters exactly, as before: the check fires only where the commit's check already refused.
  • Listed in verbCodes.ts and docs/kernel/REFUSALS.md.

Tests

  • pathSweepVerb.test.ts: the refusal on the exact stretch (fails without the change), and a sweep a quarter unit longer that commits valid.
  • Sweep, path sweep and limitation suites pass (122 files).

Found by the nightly fuzz soak (seed 7). Building such a corner exactly, the flush wall dropped, is a possible follow-up.


Generated by Claude Code

A sweep path whose stretch after a corner is exactly as long as the
profile reaches round that corner (a square profile one unit wide, a
square turn, then half a unit) left the faceted sweep a wall of no
thickness lying in the plane of its neighbors, wound against them. The
commit's check refused it as an invalid model, with no refusal code. The
sweep now checks the walls it made and refuses with
`sweep.walls-fold-flat`, and says to make that stretch a little longer
or shorter. A path a little tighter still crosses itself and is kept for
the imprint to resolve; one a little looser miters exactly.

Found by the nightly fuzz soak.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 14:20
@jbacus jbacus self-assigned this Dec 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@jbacus
jbacus merged commit ee587f8 into main Dec 4, 2026
13 checks passed
@jbacus
jbacus deleted the claude/project-thread-ziow6p branch December 4, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants