Skip to content

feat(review): the feedback export counts each review subject once and keeps every human verdict - #2417

Merged
dan-petty merged 2 commits into
mainfrom
feat/877-feedback-export-per-subject
Oct 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/877-feedback-export-per-subject

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops review export-feedback wrote one record for each copy of a finding in each session, because the identity of a record (feedback_fingerprint) held the session id. A re-review of one subject, or each run of devops review benchmark, exported the same finding again. The review redesign (#1137, child P2-10) keys the human verdicts and the feedback export by fingerprint v2 (#1141).

  • The export groups the sessions of one subject by history.subject_key (feat(review): subject-keyed review history with a leave-one-out baseline #607). The sessions share their findings by the fingerprint v2 that admission gives each tool finding.
  • Each finding is exported once, with the newest verdict that a person gave it (verified_at) in any session of the subject, or else with the verdict of the session that review history ranks highest for the subject. --status selects by that verdict, so a verdict that a person later overturned is not exported.
  • A session without a subject is a subject of its own. A finding without a fingerprint v2 is matched only in its own session, never by its title or location.
  • FeedbackRecord gains subject_key and fingerprint_v2. A record with a fingerprint v2 is identified in the dataset by its subject, fingerprint v2, status and labeller, so a later session with the same verdicts adds nothing and a person's later verdict adds one record.
  • The help of the command and of the MCP tool review_export_feedback, docs/SELF_IMPROVEMENT.md and the code review task of the knowledge base describe the export.

The issue also asks that a person's valid verdict set CONFIRMED. No session file stores the state of a finding, and a later verdict conflicts with the CONFIRMED transitions, so that part is #2414.

Closes #877

Change: openspec/changes/archive/2026-10-28-877-feedback-export-per-subject/

… keeps every human verdict

`devops review export-feedback` wrote one record for each copy of a
finding in each session, because the identity of a record held the
session id. A re-review of one subject, or each run of
`devops review benchmark`, exported the same finding again.

The export now groups the sessions of one subject by its subject key,
and the sessions share their findings by fingerprint v2. Each finding is
exported once, with the newest verdict that a person gave it in any
session of the subject, or else with the verdict of the session that
review history counts. `--status` selects by that verdict. A session
without a subject is a subject of its own, and a finding without a
fingerprint v2 is matched only in its own session. Each record carries
its `subject_key` and `fingerprint_v2`.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • uv run devops ci fail-to-pass --base origin/main: 7 failed on base, 10 passed in tests/test_review_exporter.py. The 7 are the new tests of this change. The eighth new test, test_findings_without_a_fingerprint_are_not_matched_across_sessions, passes on base too: it holds the rule that a finding without a fingerprint v2 is not matched by title.
  • On the branch: tests/test_review_exporter.py, test_review_adjudication.py, test_review.py, test_data_dir_worktrees.py, test_review_defenses_and_verification.py, tests/ai/review/test_cited_code.py, test_review_untrusted_tree.py, test_docs_review_loop.py and test_mcp.py: 351 passed.
  • --durations=0: the slowest new test takes 0.18 s.
  • ruff check, ruff format and mypy src/devops_cli/ai/review/exporter.py pass. openspec validate passes, and the archive validates every spec and change.

Follow-up: #2414 (a person's VERIFIED verdict sets the admitted finding's stored state to CONFIRMED).

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 14:37
@dan-petty
dan-petty merged commit 73d1807 into main Oct 28, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/877-feedback-export-per-subject branch October 28, 2026 14:44
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): feedback export counts each review subject once and keeps every human verdict

1 participant