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 - #2428

Merged
dan-petty merged 3 commits into
mainfrom
feat/2419-review-finding-fingerprint-marker
Oct 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/2419-review-finding-fingerprint-marker

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An issue that a review finding becomes now carries the finding's fingerprint v2, and the review can read which findings issues already carry. This is part 2 of #883. Since #2223, intake files every candidate and only names a possible duplicate, so without this check each hand-off of review findings (#2420) would file the same finding again.

  • finding_marker writes <!-- devops-review-finding: fingerprint_v2=<hex> -->, an HTML comment that GitHub does not show. It refuses a value that is not a fingerprint v2, because a marker that the parser cannot read would let the same finding be filed again. carried_fingerprints reads every marker of a body.
  • GitHubClient.search_issue_bodies reads every issue of a repository, open or closed, whose body holds a phrase, through GitHub's issue search and the GitHub session. It reads the pages by number and raises GitHubUnreadError for a page that GitHub marks incomplete or for a search with more than 1,000 results, so a short answer never reads as a complete one.
  • read_filed_findings sends one search for the marker's phrase. FiledFindings.unfiled leaves out each finding that an issue settles: an open issue, or one closed as not planned or as a duplicate. A finding whose issues were all closed as completed stays, because the defect came back. The owner decided these rules on 2026-10-28. A closed duplicate is not named in that decision: another issue tracks the finding, so it settles too.
  • With dry_run, the lookup makes no request and touches no GitHub identity. It names the search that a real run sends, and every finding stays.

GitHub's issue search finds text inside an HTML comment, and it matches a long hex token exactly. Both were checked against this repository on 2026-10-28. One search request returns 100 marked issues and spends the separate search quota of 30 requests a minute. The proposal and the design record the evidence, the cost and the rejected reads.

Closes #2419

Change: openspec/changes/archive/2026-10-28-2419-review-finding-fingerprint-marker/

`GitHubClient.search_issue_bodies` returns every issue of a repository,
open or closed, whose body holds a phrase. It reads GitHub's issue search
through the GitHub session, 100 issues a page, by page number. A page
that GitHub marks incomplete, or a search with more results than search
returns (1,000), raises `GitHubUnreadError`, so a short answer never
reads as a complete one. `GitHubSession.paginate` yields only the items,
so it cannot tell.

The review uses it to find the issues that carry a finding marker
(#2419).
…print

An issue that a review finding becomes carries the marker
`<!-- devops-review-finding: fingerprint_v2=<hex> -->`. `finding_marker`
writes it and refuses a value that is not a fingerprint v2, and
`carried_fingerprints` reads every marker of a body.

`read_filed_findings` reads every marked issue, open and closed, with
one issue search, and `FiledFindings.unfiled` leaves out each finding
that an issue settles: an open issue, or one closed as not planned or as
a duplicate. A finding whose issues were all closed as completed stays,
because the defect came back. The match is on the same fingerprint, so
no model decides it, and intake still never drops a candidate. A dry run
makes no request and names the search that a real run sends.

`devops review intake` (#2420) calls the lookup before its hand-off.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • Before the change, the new tests failed: tests/test_review_filed_findings.py with ModuleNotFoundError: No module named 'devops_cli.review.filed_findings', and the three new tests in tests/test_github_client.py with AttributeError: 'GitHubClient' object has no attribute 'search_issue_bodies'.
  • After the change: uv run pytest tests/test_review_filed_findings.py tests/test_github_client.py -n 0: 54 passed.
  • ruff check, ruff format and mypy pass on the changed files. The pre-push hook passed.
  • I did not run the full uv run devops ci locally. The host was at a load average of 43 to 48, with 1,825 of 2,048 processes in use, so the required checks of CI run the full suite.

Search checks against dan-petty/devops-cli on 2026-10-28 (read-only, devops gh api):

  • "checked-at: sha" in:body is:issue repo:dan-petty/devops-cli is:closed: 150 results. That text is only inside refine's <!-- checked-at: sha=… --> comment.
  • The 40-character commit from such a comment: 72 results. The same token with one character removed: 0.
  • Each answer reported X-Ratelimit-Resource: search and X-Ratelimit-Limit: 30.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 28, 2026 15:49
@dan-petty
dan-petty merged commit acace03 into main Oct 28, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/2419-review-finding-fingerprint-marker branch October 28, 2026 15:53
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.9.0](v0.8.3...v0.9.0)
(2026-10-28)


### Features

* **ai:** observe the Ollama slot wait by priority and chart its p95
([#2404](#2404))
([ffeeda4](ffeeda4))
* **github:** send GitHub request, throttle and GraphQL point metrics,
and show them on the devops-cli dashboard
([#2406](#2406))
([bded64b](bded64b))
* **k8s:** gpu row panels for clock-event reasons, power against the
enforced limit and pcie throughput
([#2409](#2409))
([21f023c](21f023c)),
closes [#821](#821)
* **review:** a review session records its head commit and clean tree,
and says whether it is on merged code
([#2434](#2434))
([8b4ed46](8b4ed46))
* **review:** an issue filed from a review finding carries its
fingerprint, and the review leaves out a finding that an issue already
carries ([#2428](#2428))
([acace03](acace03))
* **review:** the feedback export counts each review subject once and
keeps every human verdict
([#2417](#2417))
([73d1807](73d1807))
* **roadmap:** act as GitHub App devops-roadmap instead of a machine
account ([#2411](#2411))
([d739a47](d739a47)),
closes [#1647](#1647)
* **roadmap:** labels and milestones hold each item's status, priority,
value and effort, and no roadmap job reads or writes the project board
([#2435](#2435))
([84f02a1](84f02a1)),
closes [#2399](#2399)
* **roadmap:** refine investigates open questions with code and web
tools and decides design questions by the best practice
([#2410](#2410))
([890e228](890e228)),
closes [#2398](#2398)
* **telemetry:** count embedding cache lookups and send every metric
through a declared instrument
([#2416](#2416))
([19412fa](19412fa))


### Bug Fixes

* **git:** ignore missing files when measuring directory size during
reclaim ([#2438](#2438))
([4226904](4226904))
* **security:** scan all namespaces with Popeye when no namespace is
given ([#2436](#2436))
([4d5f789](4d5f789))
* **security:** scan_uv_audit runs a uv audit adapter that audits the
lockfile as it is
([#2446](#2446))
([0b2d005](0b2d005)),
closes [#2106](#2106)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

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

1 participant