Repository navigation
chore(clawpatch): file the FailureStrategy invariant against the code that enforces it - #3823
Merged
Merged
Conversation
… that enforces it
Collaborator
Author
|
CI note: everything terminal on this head is green — |
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.
Nightly survey finding. The signal-handling clawpatch spec lists
src/commands/command_approval.rsas a context file with the reason "FailureStrategy::Warn must not swallow signal-derived errors" — but that file contains no reference toFailureStrategy, signals, or interrupts.grep -n "signal\|Interrupt\|FailureStrategy" src/commands/command_approval.rsreturns nothing, andgit log -S FailureStrategy -- src/commands/command_approval.rsis empty, so the entry has been wrong since the spec was added in #2859 rather than having drifted.FailureStrategyis declared and consumed entirely insrc/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 anyFailureStrategybranch — 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
pathinentrypoints/ownedFiles/contextFiles/testsacross all 14.config/clawpatch/features/*.jsonresolves, everyentrypoints[].symbolappears 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
reasonstrings, which would be a larger and more speculative change than the fix.