Repository navigation
Fix gate: release the turn once Predictable accepted the agent's false-positive report - #27
Merged
Merged
Conversation
…e-positive report predictable-code#3360 makes every agent fix question the finding first and, for a false positive, change nothing and file 'predictable report --kind false-positive'. The analysis still reports such a finding, so the Stop hook blocked the turn. It now lets the turn end when an accepted claim for that finding is on file under the database root's fixes/false-positives/; the driver ends the fix false-positive on its own evidence. A regression still blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of predictable-machines/predictable-code#3360, merged in predictable-machines/predictable-code#3367.
An agent that shows a finding is not a defect changes nothing and files
predictable report --kind false-positive. The analysis still reports that finding by design, so this Stop hook blocked the turn. It now lets the turn end whenpredictable reporthas accepted a false-positive report for that finding. Thepredictable fixdriver still decides the outcome on its own evidence: the accepted claim, and code the fix left as it was.scripts/fix-gate.sh: looks under the database root'sfixes/false-positives/for a claim naming the finding, by its fqn and its tag (vc, else category). The database root follows the CLI'sStateLayout.databaseRootOfrule, fromPREDICTABLE_FIX_PATHor the project's own.predictable-code. It applies only when the verdict isreported: a regression still blocks.tests/run-hooks-test.sh: 4 new cases. An accepted claim releases the turn; a claim about another finding releases nothing; a regression still blocks; the claim is found at the database root of a branch's state directory.README.md: the Stop row says when the gate lets the turn end.make test-plugin: 107 pass.make lintis clean.🤖 Generated with Claude Code