Skip to content

feat(review): devops review intake hands the findings of a session on merged code to roadmap intake - #2455

Merged
dan-petty merged 2 commits into
mainfrom
feat/2420-review-intake-command
Oct 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/2420-review-intake-command

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops review intake [SESSION] hands the qualifying findings of a review session on merged code to roadmap intake, one candidate for each finding, through intake_candidate. It is part 3 of #883: part 1 (#2415) records the checkout of a session and decides whether it is on merged code, and part 2 (#2419) gives the finding marker and the lookup of the findings that issues already carry.

  • A finding qualifies when admission gave it a fingerprint v2 and no verdict invalidated or mitigated it. Admission writes the fingerprint v2 of each admitted tool finding into findings.json and saves no suppressed finding, so such a finding is OPEN. CONFIRMED findings join with feat(review): a person's VERIFIED verdict sets the admitted finding's stored state to CONFIRMED #2414, which stores a finding's state.
  • The command leaves out a finding that an open issue carries, or one closed as not planned or as a duplicate. Each candidate has the title fix: <finding title> (<location>), cites the session, location, tool, severity, verdict, description, cited code, fix and verification criteria, and ends with the finding's marker.
  • It has the modes of devops roadmap intake: --dry-run makes no request and prints the candidates, the issue search and intake's requests for the first candidate; --plan, the default, reads GitHub and calls the model for each candidate and writes nothing; --confirm files and places each candidate.
  • A --plan or --confirm run costs one issue search, one listing of every issue, and for each candidate that no issue carries one read of .github/labels.yml, one embedding call and one analysis model call. --confirm adds about 11 REST requests for each placed candidate.
  • It refuses, before any request, a session that is not on merged code, with the reason (ReviewHandOffRefusedError, REVIEW_HAND_OFF_REFUSED), and a candidate that looks like it holds a secret, naming its finding. why_not_on_merged_code gives the reason, and is_on_merged_code uses it.
  • devops review path names the command when it keeps a session of a clean tree that has qualifying findings. It runs no git, sends no request and calls no model for that line.
  • docs/SELF_IMPROVEMENT.md routes the findings about merged code through the command, in place of a hand-filed issue.
  • The model fake also embeds through the Embedder protocol of intake, so a test passes it to GatewayIntakeModel.

The review verify hand-off of one CONFIRMED finding waits for #2414.

Closes #2420

Change: openspec/changes/archive/2026-10-28-2420-review-intake-command/

… merged code to roadmap intake

`devops review intake [SESSION]` hands each qualifying finding of a
session on merged code to roadmap intake, as one candidate, through
`intake_candidate`. A finding qualifies when admission gave it a
fingerprint v2 and no verdict invalidated or mitigated it. A finding
that an issue already carries is left out (#2419), and each candidate
carries the marker of its finding. The command has the modes of
roadmap intake: `--dry-run` makes no request, `--plan` (the default)
writes nothing, and `--confirm` files and places each candidate.

The command refuses a session that is not on merged code and says
why, and a candidate that looks like it holds a secret, before any
request. `review path` names the command when it keeps a session of a
clean tree with qualifying findings, with no git and no request.
`docs/SELF_IMPROVEMENT.md` routes the findings about merged code
through the command.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence (local, before the push):

  • tests/review/test_review_intake_handoff.py: 15 tests. Before the implementation they failed at import (cannot import name 'why_not_on_merged_code'), then the four CLI tests failed with exit code 2 (no such command). All pass now.
  • Full suite on the branch before the rebase: uv run pytest tests -n 8 --no-cov: 11420 passed.
  • After the rebase onto origin/main 95eb8b6: the review, MCP and model-contract tests that the change touches pass (228 tests).
  • Changed lines covered by the related tests: 231 executable, 14 missed, 93.9%. The missed lines are the CLI call into intake with the real model, the review path line that prints the hint, and the line for a skipped candidate.
  • uv run mypy on the changed modules, uv run devops docs check and openspec validate --strict pass.

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 17:05
@dan-petty
dan-petty merged commit a5c7b82 into main Oct 28, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/2420-review-intake-command branch October 28, 2026 17:54
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.10.0](v0.9.0...v0.10.0)
(2026-10-28)


### Features

* **review:** devops review intake hands the findings of a session on
merged code to roadmap intake
([#2455](#2455))
([a5c7b82](a5c7b82))
* **security:** devops k8s audit runs Popeye in the tool sandbox with a
kube-api network profile that only reads the API server
([#2467](#2467))
([e02c3fb](e02c3fb))
* **security:** the App's installation tokens carry only the permissions
the roadmap jobs use
([#2482](#2482))
([9599ef2](9599ef2)),
closes [#2473](#2473)


### Bug Fixes

* **config:** a config file that is not valid YAML stops the load with
an error that quotes none of its text
([#2468](#2468))
([91fe5dc](91fe5dc))
* **config:** config set reports an unknown key as unknown, not as a key
that needs a value
([#2465](#2465))
([8b650a6](8b650a6))
* **devcontainer:** run the checkout's devops in devcontainer terminals
([#2460](#2460))
([abd2d41](abd2d41))
* **k8s:** loki runs from the grafana-community chart on loki 3.7.9, out
of reach of CVE-2026-21729
([#2470](#2470))
([96c50c9](96c50c9))
* **security:** a credential keyword at the end of a line no longer
masks the first word of the next line
([#2461](#2461))
([b754a73](b754a73))
* **security:** a credential value is masked also when the next line
starts with a parenthesis
([#2477](#2477))
([ece25ca](ece25ca)),
closes [#2471](#2471)
* **security:** pin kubeconform and replace Checkov with Trivy's
misconfiguration scan
([#2464](#2464))
([960e357](960e357))
* **security:** refuse GCONV_PATH, SHELLOPTS, BASHOPTS and PS4 from a
caller, and archive the merged security changes
([#2453](#2453))
([1f9231d](1f9231d))


### Code Refactoring

* **ai:** chat_structured is the one structured-output path
([#2452](#2452))
([3509732](3509732))
* **github:** pr check-readiness reads one merge-readiness verdict from
github/ ([#2456](#2456))
([16442c4](16442c4))

---
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): devops review intake hands the qualifying findings of a session on merged code to roadmap intake

1 participant