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
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.
The test-path freeze can be reset.check-test-paths-frozen.py takes the newestDelivery-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 Claude2026-11-23 21:35:47 +00:00
When a round has blocking findings and the cap is not reached, the reviewer:
puts the WIP: prefix back on the PR title;
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`.
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.
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.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #166
Question
Author the review stage.
delivery-reviewer(stage lead):WIP:modeldelivery-review, the explicit checklist: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.Inputs from delivery-handoff skill
delivery-reviewerloadsdelivery-handoff(PR 213): no human gate; inbound Handoff (launchingdelivery-reviewer) required; PR title must not startWIP:.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 todelivery-implement-leadwhen 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 Implement stage: lead, specialists, test-first and CI checks
check-test-paths-frozen.pytakes the newestDelivery-Stage: test-authorcommit 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-reviewmust judge test integrity itself: compare every test-path change on the PR against the acceptance checks, not only the CI result.Closes #<issue>and a## Acceptance checksblock. Each line is"<criterion>" → \file::test`, orpost-merge: — reason: `. Judging those reasons is the reviewer's job, not qa's.WIP:, and its Next command launchesdelivery-reviewer.disallowedTools: Edit, Write, NotebookEditfor a judge, Claude aliasmodel, and nomodel-policy. qa runs onopus; pick the reviewer's model deliberately.Build decisions (owner, before build)
WIP:prefix back on the PR title;delivery-implement-leadon the PR.delivery-implement-leadthen accepts a PR as well as an issue:Closes #<n>names;delivery-handoffgets this hand-back row in its gates table and its Next command table.delivery-reviewerruns onopus, the same as qa, so the judge is stronger than thesonnetbuilders.disallowedTools: Edit, Write, NotebookEdit, and notools:(ADR-0016).REQUEST_CHANGES; a round with only non-blocking findings, or none, postsCOMMENT.blockingornon-blocking, inline where a line applies.REQUEST_CHANGESreviews, 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.REQUEST_CHANGESreviews on the PR, identified by a fixed first-line marker in the review body. A human's review never counts.Status/Ready for Human.Build decisions, revised after review (owner)
These replace the "Findings surface" and "Round cap" bullets of the comment above.
REQUEST_CHANGESandAPPROVEDfrom 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 postsCOMMENTand nothing is dismissed.Delivery review: round <n> — blockingorDelivery review: round <n> — clear, where<n>numbers all marked reviews.— blockingrounds count toward the cap of 3.test-author,implementerorhuman.test-authorfindings go todelivery-test-authorfirst, throughdelivery-test-first's dispute flow with the review as the source. The implementer then gets theimplementerfindings.humanfinding, e.g. a test-path commit without the test-author trailer, stops at review instead of handing back.Resolution
Built and merged in PR 216 (
delivery0.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, soBashis 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. Readsdocs/agents/delivery.mdand the globs file at the PR's base ref; a PR changing the test-path rules is a[human]finding.[test-author]findings throughdelivery-test-first's dispute flow, then the rest to the implementer.Decisions (owner)
opusfor the reviewer.Delivery review: round <n> — blocking|clear: Gitea refusesREQUEST_CHANGES/APPROVEDfrom the PR's poster, and the bot opens the PRs. Round cap: 3 blocking rounds → Stop.[test-author] <key>,[implementer]or[human]; test findings route to the test author via dispute.- Dispute verdict: <key> — source: … — <verdict> — <reason>, copied into every Handoff comment so no later session re-judges or re-disputes.Unverified
REQUEST_CHANGESis from Gitea's source, not tested on this instance.Follow-ups (added to the map's Not yet specified)
delivery-ci-checksanddelivery-handoffreaddelivery.mdfrom the checkout, not the base ref.