Review stage: delivery-reviewer and delivery-review #193

Closed
opened 2026-11-22 16:09:12 +00:00 by Claude · 5 comments
Owner

Part of #166

Question

Author the review stage.

delivery-reviewer (stage lead):

  • starts when a PR leaves WIP:
  • runs in a fresh session with a pinned model

delivery-review, the explicit checklist:

  • right change against the acceptance criteria
  • test strength and any weakening
  • test paths unchanged since the test author's commit, as a backstop to the CI check
  • the reasons given for post-merge assertions in place of tests
  • security
  • the dry-run output in the PR

Findings are blocking or non-blocking; only blocking findings count toward the 3-round cap. Once the cap is reached, the PR goes to Status/Ready for Human. The reviewer never approves; approval is the human's gate.

Close out each item with factory-audit.

Part of #166 ## Question Author the review stage. **`delivery-reviewer`** (stage lead): - starts when a PR leaves `WIP:` - runs in a fresh session with a pinned `model` **`delivery-review`**, the explicit checklist: - right change against the acceptance criteria - test strength and any weakening - test paths unchanged since the test author's commit, as a backstop to the CI check - the reasons given for post-merge assertions in place of tests - security - the dry-run output in the PR Findings are blocking or non-blocking; only blocking findings count toward the 3-round cap. Once the cap is reached, the PR goes to `Status/Ready for Human`. The reviewer never approves; approval is the human's gate. Close out each item with `factory-audit`.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 16:09:12 +00:00
Claude added the Wayfinder/Task label 2026-11-22 16:09:12 +00:00
Claude added a new dependency 2026-11-22 16:09:35 +00:00
Claude added a new dependency 2026-11-22 16:09:37 +00:00
Author
Owner

Inputs from delivery-handoff skill

  • delivery-reviewer loads delivery-handoff (PR 213): no human gate; inbound Handoff (launching delivery-reviewer) required; PR title must not start WIP:.
  • Changes-requested loop is undefined: delivery-handoff's Next command table covers review → delivery-operator (after a human approves and merges) and a self-relaunch on stop, but not review → back to delivery-implement-lead when the reviewer requests changes. Decide here how the loop hands back (Next command launching the implement lead on the PR, and whether implement then accepts a PR as its pointed-at item — today its row says issue), alongside the 3-round cap.
## Inputs from [delivery-handoff skill](https://git.rkdr.net/Mortis/Holocron/issues/191) - `delivery-reviewer` loads `delivery-handoff` ([PR 213](https://git.rkdr.net/Mortis/Holocron/pulls/213)): no human gate; inbound Handoff (launching `delivery-reviewer`) required; PR title must not start `WIP:`. - **Changes-requested loop is undefined:** `delivery-handoff`'s Next command table covers review → `delivery-operator` (after a human approves and merges) and a self-relaunch on stop, but not review → back to `delivery-implement-lead` when the reviewer requests changes. Decide here how the loop hands back (Next command launching the implement lead on the PR, and whether implement then accepts a PR as its pointed-at item — today its row says issue), alongside the 3-round cap.
Author
Owner

Inputs from Implement stage: lead, specialists, test-first and CI checks

  • The test-path freeze can be reset. check-test-paths-frozen.py takes the newest Delivery-Stage: test-author commit as the boundary and checks only later commits. A dispute round that amends a test adds a new trailer commit, so implementer commits made before it are no longer checked. delivery-review must judge test integrity itself: compare every test-path change on the PR against the acceptance checks, not only the CI result.
  • Where the reviewer finds the checks: the PR body carries Closes #<issue> and a ## Acceptance checks block. Each line is "<criterion>" → \file::test`, or post-merge: — reason: `. Judging those reasons is the reviewer's job, not qa's.
  • Inbound Handoff: the implement lead posts it on the PR after removing WIP:, and its Next command launches delivery-reviewer.
  • Frontmatter: follow the implement-stage pattern: ADR-0016 fields only, disallowedTools: Edit, Write, NotebookEdit for a judge, Claude alias model, and no model-policy. qa runs on opus; pick the reviewer's model deliberately.
## Inputs from [Implement stage: lead, specialists, test-first and CI checks](https://git.rkdr.net/Mortis/Holocron/issues/192) - **The test-path freeze can be reset.** `check-test-paths-frozen.py` takes the *newest* `Delivery-Stage: test-author` commit as the boundary and checks only later commits. A dispute round that amends a test adds a new trailer commit, so implementer commits made *before* it are no longer checked. `delivery-review` must judge test integrity itself: compare every test-path change on the PR against the acceptance checks, not only the CI result. - **Where the reviewer finds the checks:** the PR body carries `Closes #<issue>` and a `## Acceptance checks` block. Each line is `"<criterion>" → \`file::test\``, or `post-merge: <statement> — reason: <reason>`. Judging those reasons is the reviewer's job, not qa's. - **Inbound Handoff:** the implement lead posts it on the PR after removing `WIP:`, and its Next command launches `delivery-reviewer`. - **Frontmatter:** follow the implement-stage pattern: ADR-0016 fields only, `disallowedTools: Edit, Write, NotebookEdit` for a judge, Claude alias `model`, and no `model-policy`. qa runs on `opus`; pick the reviewer's model deliberately.
Defame1297 was assigned by Claude 2026-11-23 21:35:47 +00:00
Author
Owner

Build decisions (owner, before build)

  • Changes-requested loop: back via the PR.
    • When a round has blocking findings and the cap is not reached, the reviewer:
      1. puts the WIP: prefix back on the PR title;
      2. posts its Handoff on the PR, with a Next command that launches delivery-implement-lead on the PR.
    • delivery-implement-lead then accepts a PR as well as an issue:
      • pointed at a PR, the inbound Handoff is Required;
      • the gate is checked on the issue the PR's Closes #<n> names;
      • it resumes at the implementer step, passing the reviewer's blocking findings.
    • delivery-handoff gets this hand-back row in its gates table and its Next command table.
    • Rejected: handing back via the issue. That breaks "Next pointer = the PR once one exists" and splits the record across two items.
  • Model: delivery-reviewer runs on opus, the same as qa, so the judge is stronger than the sonnet builders. disallowedTools: Edit, Write, NotebookEdit, and no tools: (ADR-0016).
  • Findings surface: both review states, when relevant.
    • One Gitea review per round.
    • A round with blocking findings posts REQUEST_CHANGES; a round with only non-blocking findings, or none, posts COMMENT.
    • Each finding is tagged blocking or non-blocking, inline where a line applies.
    • On a round with no blocking findings, the reviewer dismisses its own earlier undismissed REQUEST_CHANGES reviews, so no bot rejection is left blocking a merge. If the dismissal is refused (permissions), the Handoff's Open questions asks the human to dismiss it.
    • The reviewer never approves.
  • Round cap:
    • Rounds are counted from the reviewer's own REQUEST_CHANGES reviews on the PR, identified by a fixed first-line marker in the review body. A human's review never counts.
    • The 3rd blocking round still posts its review, then Stops with Status/Ready for Human.
## Build decisions (owner, before build) - **Changes-requested loop: back via the PR.** - When a round has blocking findings and the cap is not reached, the reviewer: 1. puts the `WIP: ` prefix back on the PR title; 2. posts its Handoff on the PR, with a Next command that launches `delivery-implement-lead` on the PR. - `delivery-implement-lead` then accepts a PR as well as an issue: - pointed at a PR, the inbound Handoff is Required; - the gate is checked on the issue the PR's `Closes #<n>` names; - it resumes at the implementer step, passing the reviewer's blocking findings. - `delivery-handoff` gets this hand-back row in its gates table and its Next command table. - Rejected: handing back via the issue. That breaks "Next pointer = the PR once one exists" and splits the record across two items. - **Model:** `delivery-reviewer` runs on `opus`, the same as qa, so the judge is stronger than the `sonnet` builders. `disallowedTools: Edit, Write, NotebookEdit`, and no `tools:` (ADR-0016). - **Findings surface: both review states, when relevant.** - One Gitea review per round. - A round with blocking findings posts `REQUEST_CHANGES`; a round with only non-blocking findings, or none, posts `COMMENT`. - Each finding is tagged `blocking` or `non-blocking`, inline where a line applies. - On a round with no blocking findings, the reviewer dismisses its own earlier undismissed `REQUEST_CHANGES` reviews, so no bot rejection is left blocking a merge. If the dismissal is refused (permissions), the Handoff's Open questions asks the human to dismiss it. - The reviewer never approves. - **Round cap:** - Rounds are counted from the reviewer's own `REQUEST_CHANGES` reviews on the PR, identified by a fixed first-line marker in the review body. A human's review never counts. - The 3rd blocking round still posts its review, then Stops with `Status/Ready for Human`.
Author
Owner

Build decisions, revised after review (owner)

These replace the "Findings surface" and "Round cap" bullets of the comment above.

  • COMMENT reviews only. Gitea refuses REQUEST_CHANGES and APPROVED from a PR's own poster (known from Gitea's review service; not yet tested on this instance). The reviewer runs as the same bot user that opened the PR, so every round posts COMMENT and nothing is dismissed.
  • Round marker. Every review's first line is Delivery review: round <n> — blocking or Delivery review: round <n> — clear, where <n> numbers all marked reviews.
    • Only — blocking rounds count toward the cap of 3.
    • A relaunch past the cap either clears the PR or stops again; it never hands back.
  • Finding owner. Each blocking finding is tagged test-author, implementer or human.
    • On a hand-back, test-author findings go to delivery-test-author first, through delivery-test-first's dispute flow with the review as the source. The implementer then gets the implementer findings.
    • Any human finding, e.g. a test-path commit without the test-author trailer, stops at review instead of handing back.
    • Rejected: stopping for a human on every test finding. That leaves the test author's judgement unused and stops too often.
## Build decisions, revised after review (owner) These replace the "Findings surface" and "Round cap" bullets of the comment above. - **COMMENT reviews only.** Gitea refuses `REQUEST_CHANGES` and `APPROVED` from a PR's own poster (known from Gitea's review service; not yet tested on this instance). The reviewer runs as the same bot user that opened the PR, so every round posts `COMMENT` and nothing is dismissed. - **Round marker.** Every review's first line is `Delivery review: round <n> — blocking` or `Delivery review: round <n> — clear`, where `<n>` numbers all marked reviews. - Only `— blocking` rounds count toward the cap of 3. - A relaunch past the cap either clears the PR or stops again; it never hands back. - **Finding owner.** Each blocking finding is tagged `test-author`, `implementer` or `human`. - On a hand-back, `test-author` findings go to `delivery-test-author` first, through `delivery-test-first`'s dispute flow with the review as the source. The implementer then gets the `implementer` findings. - Any `human` finding, e.g. a test-path commit without the test-author trailer, stops at review instead of handing back. - Rejected: stopping for a human on every test finding. That leaves the test author's judgement unused and stops too often.
Author
Owner

Resolution

Built and merged in PR 216 (delivery 0.5.0).

What exists now

  • delivery-reviewer (agent, opus, disallowedTools: Bash, Edit, Write, NotebookEdit) — the review-stage lead. It needs only Read and the Gitea tools, so Bash is fenced off as well (decided during the build, not asked up front).
  • delivery-review (skill) — the checklist (CI, right change, Acceptance checks, test strength across every test-path change, test-path authorship, security, dry run) and the review format. Reads docs/agents/delivery.md and the globs file at the PR's base ref; a PR changing the test-path rules is a [human] finding.
  • Hand-back: implement lead accepts a PR (inbound Handoff Required, gate checked on the issue the PR closes), sends [test-author] findings through delivery-test-first's dispute flow, then the rest to the implementer.

Decisions (owner)

  • Hand back via the PR, not the issue.
  • opus for the reviewer.
  • COMMENT-only reviews with a first-line marker Delivery review: round <n> — blocking|clear: Gitea refuses REQUEST_CHANGES/APPROVED from the PR's poster, and the bot opens the PRs. Round cap: 3 blocking rounds → Stop.
  • Blocking findings are owner-tagged [test-author] <key>, [implementer] or [human]; test findings route to the test author via dispute.
  • Dispute verdicts are one keyed line, - Dispute verdict: <key> — source: … — <verdict> — <reason>, copied into every Handoff comment so no later session re-judges or re-disputes.

Unverified

Follow-ups (added to the map's Not yet specified)

  • delivery-ci-checks and delivery-handoff read delivery.md from the checkout, not the base ref.
  • The ADR-0032 tier names are not defined inside the package.
  • qa findings carry no owner tags.
## Resolution Built and merged in [PR 216](https://git.rkdr.net/Mortis/Holocron/pulls/216) (`delivery` 0.5.0). **What exists now** - `delivery-reviewer` (agent, `opus`, `disallowedTools: Bash, Edit, Write, NotebookEdit`) — the review-stage lead. It needs only Read and the Gitea tools, so `Bash` is fenced off as well (decided during the build, not asked up front). - `delivery-review` (skill) — the checklist (CI, right change, Acceptance checks, test strength across every test-path change, test-path authorship, security, dry run) and the review format. Reads `docs/agents/delivery.md` and the globs file at the PR's **base** ref; a PR changing the test-path rules is a `[human]` finding. - Hand-back: implement lead accepts a PR (inbound Handoff Required, gate checked on the issue the PR closes), sends `[test-author]` findings through `delivery-test-first`'s dispute flow, then the rest to the implementer. **Decisions (owner)** - Hand back via the PR, not the issue. - `opus` for the reviewer. - **COMMENT-only reviews** with a first-line marker `Delivery review: round <n> — blocking|clear`: Gitea refuses `REQUEST_CHANGES`/`APPROVED` from the PR's poster, and the bot opens the PRs. Round cap: 3 blocking rounds → Stop. - Blocking findings are owner-tagged `[test-author] <key>`, `[implementer]` or `[human]`; test findings route to the test author via dispute. - Dispute verdicts are one keyed line, `- Dispute verdict: <key> — source: … — <verdict> — <reason>`, copied into every Handoff comment so no later session re-judges or re-disputes. **Unverified** - Gitea's refusal of self-`REQUEST_CHANGES` is from Gitea's source, not tested on this instance. - Nothing has run end to end yet; that is [Destination test walk-through (Flux)](https://git.rkdr.net/Mortis/Holocron/issues/195). **Follow-ups** (added to the map's Not yet specified) - `delivery-ci-checks` and `delivery-handoff` read `delivery.md` from the checkout, not the base ref. - The ADR-0032 tier names are not defined inside the package. - qa findings carry no owner tags.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#193