Repository navigation
Description
Problem or Motivation
Part 2 of #883 (owner decision 2026-10-28 on #883). Since #2223 (owner decision 2026-10-25), intake files every candidate and only names a possible duplicate. A hand-off of review findings to intake therefore files the same finding again on each review run, unless the review itself leaves out a finding that an issue already carries.
Proposed Solution & Architectural Design
- An issue that a review finding becomes carries the finding's
fingerprint_v2(src/devops_cli/review/fingerprint.py, 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 machine-readable marker in its body. - One function returns the fingerprints that the repository's issues already carry, with the state and state reason of each issue.
- Before a hand-off, the review leaves out a finding whose fingerprint an open issue carries, or a closed issue with the state reason
not_planned. A finding whose issue is closed ascompletedis handed off again, because the defect came back. - This is a deterministic match on the same finding, not a model verdict, so it agrees with fix(roadmap): intake files and places a candidate that the model judges a duplicate, and names the possible original, instead of dropping or closing it #2223.
- The design names how the lookup reads GitHub (search or a label-scoped list), with its request cost, and checks that the chosen read finds the marker.
Target Subsystem
Review hand-off and src/devops_cli/roadmap/intake.py candidate bodies.
Existing Tool Considered
GitHub issues hold the marker, and the GitHub API reads it. fingerprint_v2 exists. Nothing new is built beyond the marker and one lookup.
Acceptance criteria
- The marker writer and the lookup round-trip one fingerprint.
- With GitHub faked at the process edge: a finding carried by an open issue is left out; one carried by an issue closed as not planned is left out; one carried by an issue closed as completed is kept; a new finding is kept.
- A dry run of the lookup makes no request.
- The tests run offline.
Related
Parent: #883. Sibling items: the session commit and clean flag, and the devops review intake command. Decision on duplicates: #2223.
Source: #883
Proposed design
Problem statement
The review hand-off files the same finding as a new issue on every review run. Since #2223, intake files every candidate and only names a possible duplicate. The review must leave out a finding that an issue already carries. This is a deterministic match on the finding's fingerprint_v2, not a model verdict.
Acceptance criteria
- Criterion 1: The marker writer and the lookup round-trip one fingerprint.
Verification: A test writes a fingerprint marker into an issue body, then calls the lookup and asserts it returns the same fingerprint string. - Criterion 2: A finding carried by an open issue is left out.
Verification: With GitHub faked at the process edge, a finding whose fingerprint is in an open issue body is not filed. - Criterion 3: A finding carried by an issue closed as not planned is left out.
Verification: With GitHub faked at the process edge, a finding whose fingerprint is in an issue with state_reason not_planned is not filed. - Criterion 4: A finding carried by an issue closed as completed is kept.
Verification: With GitHub faked at the process edge, a finding whose fingerprint is in an issue with state_reason completed is filed again. - Criterion 5: A new finding with no matching issue is kept.
Verification: With GitHub faked at the process edge, a finding whose fingerprint is in no issue body is filed. - Criterion 6: A dry run of the lookup makes no request.
Verification: A test calls the lookup in dry-run mode and asserts no GitHub API request is made. - Criterion 7: The tests run offline.
Verification: All tests for this change pass with no network access.
Key questions
- How does the lookup read GitHub, and what is its request cost?: The lookup uses the existing issue listing from store.issues(), which the intake run already calls. It parses the fingerprint marker from each issue body. The request cost is the same as the intake run's existing listing; no extra API call is made. The check is a round-trip test: the marker writer writes a fingerprint into a body, and the lookup reads it back. (proposed) [sources: src/devops_cli/roadmap/intake.py, src/devops_cli/roadmap/store.py]
- Does this change depend on another issue being delivered first?: No. The fingerprint_v2 function exists in src/devops_cli/review/fingerprint.py. The intake behavior from fix(roadmap): intake files and places a candidate that the model judges a duplicate, and names the possible original, instead of dropping or closing it #2223 is already in place. The review hand-off entry point intake_candidate exists in src/devops_cli/roadmap/intake.py. [sources: src/devops_cli/review/fingerprint.py, src/devops_cli/roadmap/intake.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate adds a new capability: storing fingerprint_v2 in issue bodies and using it to skip duplicate review findings.It stops repeated filing of the same finding on each review run, but it is one part of a larger parent issue and not a blocking defect.It removes a known source of duplicate issues that a person must clean up after every review cycle.It needs a marker writer, a GitHub lookup function, deduplication logic with state checks, and offline tests.Both items work in the intake filing path, but #2035 links a filed issue as a sub-issue while this candidate adds a fingerprint marker and skips findings already carried by an issue.dan-petty commentedon Oct 28, 2026
Status set to Ready at 73d1807 (see proposed design in issue body).
feat(review): devops review intake hands the findings of a session on…