feat(delivery): add the review stage and the review hand-back loop #216

Merged
Defame1297 merged 1 commits from feat/delivery-review-stage into main 2026-11-24 08:27:39 +00:00
Owner

Refs #193 (map #166). Builds the review stage and the review → implement hand-back. delivery is bumped to 0.5.0, with the marketplace allow key and manifest.

What's in it

  • delivery-reviewer (new agent: opus; disallowedTools: Bash, Edit, Write, NotebookEdit) is the review-stage lead.
    • Each round it posts one COMMENT review whose first line is Delivery review: round <n> — blocking|clear.
    • Routing:
      • a [human] finding, or a 3rd blocking round → Stop with Status/Ready for Human;
      • any other blocking round → Handoff comment, then WIP: back on the title → delivery-implement-lead on the PR;
      • a clear round → delivery-operator.
    • A relaunch finishes a crashed routing. It treats a review as unrouted when no later Handoff comment links its html_url.
  • delivery-review (new skill) holds the checklist and the review format.
    • It checks: the change against the criteria, the Acceptance checks and post-merge reasons, test strength across every test-path change, test-path authorship, security, and the dry run.
    • Each blocking finding is owner-tagged [test-author] <key>, [implementer] or [human].
    • It reads docs/agents/delivery.md at the PR's base ref. A PR that changes the test-path rules is a [human] finding.
  • Hand-back:
    • delivery-handoff lets implement take a PR. The inbound Handoff is required, and the gate is checked on the issue the PR closes.
    • The implement lead sends [test-author] findings through delivery-test-first's dispute flow, which now accepts review findings, then gives the implementer the rest.
  • Dispute verdicts are one keyed line, - Dispute verdict: <key> — source: … — <verdict> — <reason>, copied into every Handoff comment. Later sessions never re-judge an item or re-dispute a settled test.
  • delivery-repo-doc, delivery-test-author, delivery-implementer and delivery-qa are aligned with these contracts.

Decisions (owner, on #193)

  • Hand back via the PR, not the issue.
  • opus for the reviewer.
  • COMMENT-only reviews: Gitea refuses REQUEST_CHANGES from a PR's poster, and the reviewer is the same bot user that opened the PR.
  • Owner-tagged findings, with test findings routed to the test author.

Verification

  • Four review rounds, each with three independent reviewers (code-review against standards and the ticket, factory-audit, and an end-to-end contract simulation over 7–9 crash, relaunch and cap scenarios), plus one final verification pass. Each round's findings were fixed.
  • Final state: factory-audit passes on every changed skill and agent, the scenario simulation found no flow-breaking defect, and all pre-commit and pre-push hooks pass (including apm audit --ci and apm pack --check-clean).
  • Not yet run live: Gitea's refusal of self-REQUEST_CHANGES is from Gitea's source, not tested on this instance. Nothing here has been run end to end; that is the Flux destination walk-through.

Follow-ups (not in this PR)

  • delivery-ci-checks and delivery-handoff read docs/agents/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 tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Refs #193 (map #166). Builds the review stage and the review → implement hand-back. `delivery` is bumped to 0.5.0, with the marketplace allow key and manifest. ## What's in it - **`delivery-reviewer`** (new agent: `opus`; `disallowedTools: Bash, Edit, Write, NotebookEdit`) is the review-stage lead. - Each round it posts one **COMMENT** review whose first line is `Delivery review: round <n> — blocking|clear`. - Routing: - a `[human]` finding, or a 3rd blocking round → Stop with `Status/Ready for Human`; - any other blocking round → Handoff comment, then `WIP:` back on the title → `delivery-implement-lead` on the PR; - a clear round → `delivery-operator`. - A relaunch finishes a crashed routing. It treats a review as unrouted when no later Handoff comment links its `html_url`. - **`delivery-review`** (new skill) holds the checklist and the review format. - It checks: the change against the criteria, the Acceptance checks and post-merge reasons, test strength across **every** test-path change, test-path authorship, security, and the dry run. - Each blocking finding is owner-tagged `[test-author] <key>`, `[implementer]` or `[human]`. - It reads `docs/agents/delivery.md` at the PR's **base** ref. A PR that changes the test-path rules is a `[human]` finding. - **Hand-back:** - `delivery-handoff` lets implement take a PR. The inbound Handoff is required, and the gate is checked on the issue the PR closes. - The implement lead sends `[test-author]` findings through `delivery-test-first`'s dispute flow, which now accepts review findings, then gives the implementer the rest. - **Dispute verdicts** are one keyed line, `- Dispute verdict: <key> — source: … — <verdict> — <reason>`, copied into every Handoff comment. Later sessions never re-judge an item or re-dispute a settled test. - `delivery-repo-doc`, `delivery-test-author`, `delivery-implementer` and `delivery-qa` are aligned with these contracts. ## Decisions (owner, on #193) - Hand back via the PR, not the issue. - `opus` for the reviewer. - COMMENT-only reviews: Gitea refuses `REQUEST_CHANGES` from a PR's poster, and the reviewer is the same bot user that opened the PR. - Owner-tagged findings, with test findings routed to the test author. ## Verification - Four review rounds, each with three independent reviewers (`code-review` against standards and the ticket, `factory-audit`, and an end-to-end contract simulation over 7–9 crash, relaunch and cap scenarios), plus one final verification pass. Each round's findings were fixed. - Final state: `factory-audit` passes on every changed skill and agent, the scenario simulation found no flow-breaking defect, and all pre-commit and pre-push hooks pass (including `apm audit --ci` and `apm pack --check-clean`). - Not yet run live: Gitea's refusal of self-`REQUEST_CHANGES` is from Gitea's source, not tested on this instance. Nothing here has been run end to end; that is the Flux destination walk-through. ## Follow-ups (not in this PR) - `delivery-ci-checks` and `delivery-handoff` read `docs/agents/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 tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 1 commit 2026-11-23 22:51:30 +00:00
delivery-reviewer (opus; no Bash, Edit, Write or NotebookEdit) is the
review-stage lead. It judges the PR through the new delivery-review
skill and posts one COMMENT review per round. Gitea refuses
REQUEST_CHANGES from a PR's own poster, and the reviewer runs as the bot
that opened the PR. The review opens with `Delivery review: round <n> —
blocking|clear`, and each blocking finding is tagged with the role that
must fix it: [test-author] (with its dispute key), [implementer] or
[human].

Routing: a [human] finding, or a 3rd blocking round, stops with Ready
for Human. Other blocking rounds post the Handoff and put `WIP:` back,
handing the PR to delivery-implement-lead. A clear round hands on to
delivery-operator. A relaunch finishes a crashed routing, using whether
a later Handoff links the review.

delivery-review checks the change against the acceptance criteria and
re-judges every test-path change itself, because a dispute round moves
the CI freeze boundary. It also judges post-merge assertion reasons,
security and the dry run. It reads the delivery doc at the PR's base
ref, and a PR that changes the test-path rules is a [human] finding.

Hand-back: delivery-handoff lets the implement stage take a PR, with
the inbound Handoff required and the gate checked on the issue it
closes. The implement lead first sends [test-author] findings through
delivery-test-first's dispute flow, which now takes review findings,
then gives the implementer the rest. Dispute verdicts are one keyed
`- Dispute verdict:` line copied into every Handoff comment, so later
sessions never re-judge an item or re-dispute a settled test.

delivery-repo-doc, delivery-test-author, delivery-implementer and
delivery-qa are aligned with these contracts. Package bumped to 0.5.0,
with the marketplace allow key and manifest.

Refs: #193

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 merged commit 67e2523252 into main 2026-11-24 08:27:39 +00:00
Defame1297 deleted branch feat/delivery-review-stage 2026-11-24 08:27:39 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#216