Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Milestone
Description
Problem
A person cannot reliably give a review verdict, and the record does not say who gave one. Found while analysing review session 20261001-224227 (2026-10-02). Across 27 local sessions and 2,800 findings, not one has verified_by=human.
- Verdicts land on the wrong finding.
devops review findings --status/--verifiednumbers the filtered list (commands/review.py:876-879), whileverify --indexindexes the unfilteredfindings.json(:971-981).- The MCP
verify_findingtool (ai/mcp/server.py:198) indexes from 0. --titletakes the first substring match.
- Machine-invalidated candidates cannot be seen or overturned.
- They are never in
findings.json, soreview findings --invalidatedis always empty for pipeline sessions. - A real defect the machine wrongly invalidated is the most costly error, and no command can restore one.
- They are never in
- Every caller is recorded as
human.verifystampsby="human"for the CLI and for MCP clients, which the threat model treats as untrusted, and AGENTS.md tells agents to record verdicts.- feat(review): subject-keyed review history with a leave-one-out baseline #607's history ranks sessions by human verdicts, and feat(review): verifier agreement with human verdicts as cohen's kappa #869 and feat(review): feedback export counts each review subject once and keeps every human verdict #877 will trust them.
- The default
--status INVALIDATEDmeans one careless call both invalidates a finding and teaches the learned catalog. - A reset leaves side effects behind. Resetting a finding to UNVERIFIED leaves its learned-catalog and mitigations-ledger entries in place.
- A redundant settings load.
path,branchandprload settings twice (commands/review.py:524); triage idx 280.
Acceptance criteria
- Stable numbering.
review findingsshows each finding's index infindings.jsoneven when filtered, andverify --indexuses that number. The MCP tool takes the same 1-based index. - Candidates can be judged.
review findings --candidateslistscandidates.json, andverify --candidate <n>gives a verdict on one. A candidate a person marks VERIFIED or MITIGATED moves intofindings.json, withverified_byset to the adjudicator. - Provenance.
verifytakes--adjudicator {human,agent}, and the MCP tool always recordsagent. History ranking (ai/review/history.py) and the dataset exporter count onlyhuman. - No default verdict.
--statusis required. - Resets undo their side effects. Resetting a finding to UNVERIFIED reverts the catalog and ledger entries its verdict created.
- One settings load in each review command.
- Tests:
- On a session with statuses [UNVERIFIED, VERIFIED, VERIFIED],
findings --verifiedshows feat(release): v0.1.8 #2 and docs: document branch protection and branch management standards #3, andverify --index 2changes the second finding. - A machine-invalidated candidate that a person marks VERIFIED appears in
findings.jsonwithverified_by="human". - The MCP tool records
"agent", and history ranking ignores it.
- On a session with statuses [UNVERIFIED, VERIFIED, VERIFIED],
- Docs.
docs/commands/review.md, the knowledge base and AGENTS.md describe the commands as they now work. uv run devops cipasses.
Key questions
- Does this overlap refactor(review): review session store that owns layout, fingerprints and verdicts #771's session store? refactor(review): review session store that owns layout, fingerprints and verdicts #771 plans one write path for verdicts. This item fixes today's commands; refactor(review): review session store that owns layout, fingerprints and verdicts #771 rebases on it.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(review): verdicts land on the finding shown, record who gave the…
dan-petty commentedon Oct 2, 2026
Closed by #994, merged into
release/v0.2.25.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.25 (#1089)