Repository navigation
Refuse a sweep whose walls would fold flat at a corner, with a code - #42
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.verbCodes.tsanddocs/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.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