Skip to content

chore(clawpatch): file the FailureStrategy invariant against the code that enforces it - #3823

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-31869372593
Aug 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-31869372593

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Nightly survey finding. The signal-handling clawpatch spec lists src/commands/command_approval.rs as a context file with the reason "FailureStrategy::Warn must not swallow signal-derived errors" — but that file contains no reference to FailureStrategy, signals, or interrupts. grep -n "signal\|Interrupt\|FailureStrategy" src/commands/command_approval.rs returns nothing, and git log -S FailureStrategy -- src/commands/command_approval.rs is empty, so the entry has been wrong since the spec was added in #2859 rather than having drifted.

FailureStrategy is declared and consumed entirely in src/commands/command_executor.rs, which the spec already lists as an owned file. So this drops the misfiled context entry and folds its claim — the one detail the owned-file reason didn't carry, that the interrupt check runs before any FailureStrategy branch — into that entry, matching how CLAUDE.md → Signal Handling states it. Nothing is lost from the spec; it just points at the file that implements the invariant.

I checked the rest of the specs the same way: every path in entrypoints / ownedFiles / contextFiles / tests across all 14 .config/clawpatch/features/*.json resolves, every entrypoints[].symbol appears in its named file, and this was the only reason string naming a symbol its file doesn't contain.

No regression test — the change is metadata prose in a file no test reads, and the mismatch isn't expressible as an assertion without inventing a schema check for reason strings, which would be a larger and more speculative change than the fix.

@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Aug 15, 2026
@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

CI note: everything terminal on this head is green — test (linux), test (macos), fast-checks, codecov/patch, and codecov/project all pass. test (windows) (required) was still IN_PROGRESS when my session's poll budget ran out, so it's unverified from here rather than known-good. The nightly workflow's jobs show as cancelled, which is that workflow's own concurrency gate on a PR branch, not a failure — #3822 shows the same set.

@max-sixty
max-sixty merged commit 06a0315 into main Aug 15, 2026
36 of 46 checks passed
@max-sixty
max-sixty deleted the nightly/clean-31869372593 branch August 15, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants