Repository navigation
Description
Context & Rationale
- Nothing turns a verified finding into an item. Review sessions write findings to
.data/reviews/<session>/findings.json(ai/review/pipeline.py:3600-3601).docs/SELF_IMPROVEMENT.md:337-341asks agents to file each one by hand, with apriority/p1-highlabel and a board sync, which bypasses intake (feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742). - A session doesn't record what it reviewed.
ReviewSessionPayload(ai/review_schema.py:1125-1134) holds findings, personas and dependencies, but no command, commit or PR.profile.jsonhas atargetstring but no commit (ai/review/profile.py:101-105). So nothing can tell a finding about merged code from one about a PR's own diff. feat(review): subject-keyed review history with a leave-one-out baseline #607 adds a sessionsubject: the head SHA for PRs and base and head SHAs for branches. - Reviews run where the hand-off has to happen. They run from a terminal (
commands/review.py:172,:389,:592) or through the MCP tools (ai/mcp/server.py:119,:142,:156). No workflow in.github/workflows/runs one. The service sees only candidates that reach GitHub, so the hand-off happens where the review ran. - Verdicts can change after a session ends. They are UNVERIFIED, VERIFIED, INVALIDATED and MITIGATED (
ai/review_schema.py:70), anddevops review verify(commands/review.py:1013) can set one after the session.
Scope & Deliverables
- Deliverable:
- The session records the review command (
path,branchorpr), the head commit and whether the working tree was clean. It reuses feat(review): subject-keyed review history with a leave-one-out baseline #607'ssubjectwhere that exists. - When
review pathfinishes on a clean tree whose head commit is reachable fromorigin/main, it hands each VERIFIED, non-MITIGATED finding to feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742's candidate entry point. The MCPreview_pathtool does the same. review prandreview branchnever hand off: a finding about a PR's own diff is fixed in that PR before it merges.- When
devops review verifysets VERIFIED on a finding from a qualifying session, it hands off that one finding. - Each candidate cites the session id, file and line, the evidence and the verification criteria. Intake's duplicate check absorbs the same finding raised again by a later session.
- Rewrite
docs/SELF_IMPROVEMENT.md:337-341and the sequence step at:324to say that findings reach the roadmap through intake.
- The session records the review command (
- Acceptance criteria:
- With a fake intake, a
review pathsession on a merged commit hands off exactly its VERIFIED, non-MITIGATED findings. Verified by a test. review pr,review branch, a dirty tree and a head commit reachable from neither branch hand off nothing. Verified by a parametrized test.review verifysetting VERIFIED hands off one candidate on a qualifying session and none on areview prsession. Verified by a test.review path --dry-runhands off nothing, and the hand-off follows intake's--dry-run/--confirmconvention. Verified by a test.rg -n 'priority/p1-high' docs/SELF_IMPROVEMENT.mdreturns nothing.- The new tests run offline and take under 1 s in total.
- Person-run check, with the gateway reachable, on a clean checkout of
origin/main:uv run devops review path src/devops_cli/github/issues.pylists the candidates it handed to intake. Each one is either on the board in the backlog or closed as a duplicate (gh issue list -R dan-petty/devops-cli --state all --search "in:body <session-id>").
- With a fake intake, a
- Key questions:
- What counts as merged code? (proposed) The head commit is reachable from
origin/main(git merge-base --is-ancestor), and the tree is clean. This needs only git, and a review of a topic branch never qualifies. - Does finding severity set priority? (proposed) No. Intake decides, and CRITICAL severity alone is not P0 evidence.
- One candidate per finding, or one per session? (proposed) One per finding, since each becomes its own item. Intake's duplicate check merges repeats.
- Do UNVERIFIED or INVALIDATED findings ever hand off? (proposed) No.
- What counts as merged code? (proposed) The head commit is reachable from
- Constraint: the review command never creates issues or items itself. It only hands candidates to intake. Tests never touch the network, a cluster or a real model.
Strategic Alignment
- Milestone: Backlog (proposed)
- Depends on: feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 (candidate entry point), feat(review): subject-keyed review history with a leave-one-out baseline #607 (session subject) - Related: feat(ai): roadmap discovery from advisories, alerts, repo signals and web research (
devops roadmap discover) #745 (the other source that hands candidates to intake)
Split off #742 during the v0.2.25/v0.2.26 readiness review (2026-10-01): #742's original scope included the review command handing findings to intake. That needs review sessions to record their target and commit, a merged-code test, hand-off from review path, the MCP review_path tool and review verify, and a docs rewrite. Together with intake itself, that is more than one PR. Intake's core value (one entry point with duplicate checks and placement) doesn't need it, so it becomes its own item that calls #742's candidate entry point.
Update 2026-10-08: refinement
#607's subject has no commit (ai/review/history.py:54-61), so this item records the head commit and clean flag. Per #871's re-scope, the hand-off takes admitted OPEN or CONFIRMED findings (review/state.py:25-31). The priority/p1-high text is gone; drop that criterion.
-
docs/SELF_IMPROVEMENT.md:546and:567-571route merged-code findings throughdevops roadmap intake.
Proposed design
Problem statement
Nothing turns a verified review finding about merged code into a roadmap item. A person files each finding by hand, which bypasses intake. This item creates the path for review findings on merged code to enter the roadmap through the intake entry point. It records what a session reviewed, prevents duplicate filing, and provides an explicit hand-off command.
Acceptance criteria
- Criterion 1: A session records the head commit and whether the working tree was clean.
Verification: A test confirms the session payload includes head_commit and tree_clean fields. - Criterion 2: A session is on merged code when the target is path, the tree is clean, and the head commit is in origin/main.
Verification: A test confirms the predicate returns true only when all three conditions hold, and false otherwise. - Criterion 3: A filed candidate carries the finding's fingerprint_v2 in a marker in its body.
Verification: A test confirms the candidate body text includes the fingerprint_v2 value. - Criterion 4: Before a hand-off, a finding whose fingerprint an existing open issue already carries is left out.
Verification: A test confirms a second run does not pass a finding with a matching fingerprint to intake. - Criterion 5: devops review intake hands qualifying OPEN or CONFIRMED tool findings to intake_candidate.
Verification: A test with a fake intake confirms only OPEN or CONFIRMED findings from a qualifying session are passed. - Criterion 6: review path prints the count of qualifying findings and the devops review intake command. It calls no model and no GitHub API.
Verification: A test confirms the printed output and that no network or model calls are made. - Criterion 7: review pr and review branch never hand off findings.
Verification: A parametrized test confirms no candidates are passed for pr and branch target types. - Criterion 8: docs/SELF_IMPROVEMENT.md routes merged-code findings through devops review intake.
Verification: rg -n 'devops review intake' docs/SELF_IMPROVEMENT.md returns at least one match. - Criterion 9: The new tests run offline and take under 1 s in total.
Verification: uv run pytest tests/ -k review_intake --timeout=1 passes with no network access.
Key questions
- What counts as merged code?: The head commit is reachable from origin/main (git merge-base --is-ancestor), the tree is clean, and the target type is path. (proposed)
- Does finding severity set priority?: No. Intake decides priority. CRITICAL severity alone is not P0 evidence. (proposed)
- One candidate per finding, or one per session?: One candidate per finding. Each finding becomes its own item. The fingerprint check merges repeats. (proposed)
- Do UNVERIFIED or INVALIDATED findings ever hand off?: No. Only OPEN or CONFIRMED tool findings hand off. (proposed)
- Does the fingerprint check agree with the 2026-10-25 decision that intake never drops a candidate?: Yes. That decision is about model-only duplicate verdicts. A fingerprint_v2 match is the same finding, not a model verdict. (proposed)
- Does a finding whose issue is closed get filed again?: No for not planned (a person rejected it; a suppression in .devops/review.toml is the fix). Yes for completed (the defect came back). (proposed)
- Is the hand-off an explicit command or a side effect of every review path run?: An explicit command: devops review intake . It is not a side effect of every review path run. (proposed)
Fit
Needs splitting into 3 items:
- Session records what it reviewed: head commit, clean flag, and merged-code predicate
- Fingerprint check: filed candidate carries fingerprint_v2; a finding with a matching fingerprint in an existing issue is left out before hand-off
- Hand-off command: devops review intake with --dry-run/--plan/--confirm; review path prints count and command; docs rewrite
Suspected block
None.
Dependencies
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsReady
Activity
dan-petty commentedon Oct 3, 2026
Review redesign (#1137, 2026-10-03): this item is a phase P4 child (P4-3): intake takes OPEN or CONFIRMED tool findings on merged code, read from #871's admitted set.
dan-petty commentedon Oct 17, 2026
Moved to v0.2.37: v0.2.37 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
dan-petty commentedon Oct 28, 2026
This item cannot be built as written. Its blocker #771 is closed, and its goal stays in the plan of #1137 (P4-3, owner decision D13, 2026-10-17). But one mechanism that it relies on no longer exists, and one part waits on an open item. No code was written.
Evidence (origin/main bb46660, 2026-10-28)
_Planner._propose→_place,possible_duplicate,src/devops_cli/roadmap/intake.py). Each candidate must also cite its session id, so two sessions never give the same body, and the resume match on title and body does not apply. Result: eachreview pathrun on merged code files every qualifying finding again as a new issue.FindingState.CONFIRMEDis defined insrc/devops_cli/review/state.py, but no code sets it.devops review verifystill writesstatusVERIFIED, INVALIDATED or MITIGATED intofindings.jsonandcandidates.json. feat(review): feedback export counts each review subject once and keeps every human verdict #877 (open) makes a person's valid verdict set CONFIRMED. So thereview verifyhand-off waits on feat(review): feedback export counts each review subject once and keeps every human verdict #877.review_subject(src/devops_cli/ai/review/history.py) holds the target type, the ref and a digest of the pages.ReviewProfile(src/devops_cli/ai/review/profile.py) holdstargetand the tree commit only inside each tool run record. The 2026-10-08 update already said so.review pathof a directory onmaincan give more, on each run.Proposed re-scope, as three items
findings.jsonrecords the head commit and whether the tree was clean. A session is "on merged code" when its target type ispath, its tree was clean, andgit merge-base --is-ancestor <head> origin/mainpasses. Small, no GitHub request.fingerprint_v2(fix(security): each finding keeps its own fingerprint across unrelated edits, and deduplication and correlation give one result in every input order, in devops scan and in reviews #1141) in a marker. Before a hand-off, the review leaves out a finding whose fingerprint an issue already carries. This is a deterministic match on the same finding, not a model verdict.devops review intake <session>hands the qualifying OPEN or CONFIRMED tool findings of one session tointake_candidate(src/devops_cli/roadmap/intake.py), with intake's--dry-run,--planand--confirmmodes.review pathprints the count and this command, and calls no model and no GitHub API itself. Thereview verifyhand-off of one CONFIRMED finding comes after feat(review): feedback export counts each review subject once and keeps every human verdict #877.docs/SELF_IMPROVEMENT.mdroutes merged-code findings through this command.Questions for a person
.devops/review.tomlis the fix), yes for "completed" (the defect came back).review pathrun as the item says? A side effect costs one model call for each finding on each run, also in intake's default--planmode.dan-petty commentedon Oct 28, 2026
Owner decision, 2026-10-28: the proposed re-scope and the proposed answers above are accepted.
fingerprint_v2match is the same finding..devops/review.tomlis the fix for it. A finding whose issue is closed as completed is filed again, because the defect came back.devops review intake <session>. It is not a side effect of everyreview pathrun.This item becomes a parent with three sub-issues, each with its own change and pull request. Items 1 and 2 change different code and can be built at the same time. Item 3 needs both, and its
review verifyhand-off also needs #877.dan-petty commentedon Oct 28, 2026
The proposal at 73d1807 needs splitting into 3 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
feat(review): an issue filed from a review finding carries its finger…
feat(review): a review session records its head commit and clean tree…
feat(review): devops review intake hands the findings of a session on…
dan-petty commentedon Oct 28, 2026
All three parts of this item are merged:
devops review intake <session>hands the qualifying findings of a session on merged code to roadmap intake.The
review verifyhand-off of one CONFIRMED finding follows #2414, which makes a person's valid verdict set CONFIRMED.openspec/changes/archive/2026-10-28-2420-review-intake-command/records it under "Workflow follow-up".