Files
Holocron/plugins/delivery/.apm/skills/delivery-handoff/SKILL.md
T
Defame1297andClaude Opus 5.5 0258cff316 feat(delivery): add the review stage and the review hand-back loop
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
2026-11-23 22:44:18 +00:00

3.3 KiB
Raw Blame History

name, description, compatibility, allowed-tools, metadata
name description compatibility allowed-tools metadata
delivery-handoff Use when a delivery Stage lead starts or finishes its stage. Owns the stage's entry gate and exit Handoff comment. Not a plain issue comment -> `gitea-issues`. Not writing the repo's delivery doc -> `delivery-repo-doc`. Requires a Gitea forge reached through the Gitea MCP server (via the gitea-issues and gitea-prs skills), and a consuming repo carrying docs/agents/delivery.md. Read mcp__gitea__issue_read mcp__gitea__issue_write mcp__gitea__pull_request_read
category version
delivery 0.2.0

Gotchas

  • Status/Ready for Human is a stop signal, not a Gate, so you may set it. Every real gate — Status/Ready for Agent, a PR approval — is human-only: never set, add or remove a gate label, and never approve a PR.
  • Check gate state, not who set it: in step mode the human launching your stage is the approval. Do not read the issue timeline.
  • Status/Ready for Agent and Status/Ready for Human must not share an exclusive label scope: Gitea would then drop the gate label when you add Ready for Human. Never re-add it yourself.

Step 1 — Read the repo's delivery doc

Before any other work, read docs/agents/delivery.md at the consuming repo's root. Its format is owned by delivery-repo-doc's references/format.md; you need only the Human allowlist: section ## Human allowlist, one - `<user>` item per line, never empty.

File missing, first line not # Delivery, or the allowlist section missing, empty or - none → go to Stop with the reason, e.g. "docs/agents/delivery.md missing".

Step 2 — Read the inbound Handoff comment

Read the issue or PR you were pointed at via gitea-issues (or gitea-prs for the PR's own fields). Find the latest Handoff comment and apply references/gates.md §Inbound Handoff comment; if it says stop → Stop.

Step 3 — Check the gate

Run every check in your stage's row of references/gates.md. Any check fails → Stop, quoting the failed check as the reason.

Step 4 — Do the stage's work

Run your stage's own flow. A blocker mid-stage — a skill named in docs/agents/delivery.md that is not installed, a question only the human can answer — → Stop.

Step 5 — Exit

Read references/handoff-comment.md now and write exactly one Handoff comment from its template, with the Next command filled for your stage, and post it where its Rules say. Then run any step your agent puts after the Handoff comment (the WIP: title edit), and end the session.

Stop

Used by every step. Do both, then end the session without further work:

  1. Add the Status/Ready for Human label to the issue or PR you were pointed at, via gitea-issues.
  2. Post one comment where references/handoff-comment.md §Rules says a stop posts:
    • Before the inbound check passed (Step 1 or Step 2) → a plain comment stating the reason, not a Handoff comment, so the inbound rule is never bypassed. A relaunch comes from the latest real Handoff comment, or from scratch where your row's inbound is Optional for the item you were pointed at.
    • After it passed (Steps 3–4) → a Handoff comment from references/handoff-comment.md, filled per its stop row. Open questions states the reason; for a missing skill use the format's wording, "missing skill <name>".