Skip to content

Fix gate: release the turn once Predictable accepted the agent's false-positive report - #27

Merged
raulraja merged 1 commit into
mainfrom
fix-gate-false-positive
Nov 30, 2026
Merged

raulraja merged 1 commit into
mainfrom
fix-gate-false-positive

Conversation

@raulraja

Copy link
Copy Markdown
Contributor

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 when predictable report has accepted a false-positive report for that finding. The predictable fix driver 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's fixes/false-positives/ for a claim naming the finding, by its fqn and its tag (vc, else category). The database root follows the CLI's StateLayout.databaseRootOf rule, from PREDICTABLE_FIX_PATH or the project's own .predictable-code. It applies only when the verdict is reported: 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 lint is clean.

🤖 Generated with Claude Code

…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>
@raulraja
raulraja merged commit db956d7 into main Nov 30, 2026
2 checks passed
@raulraja
raulraja deleted the fix-gate-false-positive branch November 30, 2026 21:25
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.

1 participant