Skip to content

feat(review): an issue filed from a review finding carries its fingerprint, and the review leaves out a finding that an issue already carries #2419

Closed

Description

@dan-petty

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

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.

Activity

  1. added
    source/agent
    type/feature
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/feature. The candidate adds a new capability: storing fingerprint_v2 in issue bodies and using it to skip duplicate review findings.
    • Priority: P2-Medium. 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.
    • Value: Medium. It removes a known source of duplicate issues that a person must clean up after every review cycle.
    • Effort: Medium. It needs a marker writer, a GitHub lookup function, deduplication logic with state checks, and offline tests.
    • Related: feat(roadmap): intake links a candidate it files from --source as a sub-issue of that issue #2035, which asks for a different change. 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.
  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Status set to Ready at 73d1807 (see proposed design in issue body).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions