Files
Holocron/plugins/delivery/.apm/skills/delivery-handoff/SKILL.md
T
Defame1297andClaude Opus 5.5 d4226e152b fix(delivery): keep inbound-rule stops out of the handoff trail
Why: every Stop posted a Handoff comment whose Next command relaunched the
stopping agent, including stops raised by the inbound rule itself. A second
launch then passed the inbound check, and a wrong-agent stop buried the
correct pointer.

Implementation Notes:
- Stops before the inbound check passed (Steps 1-2) post a plain comment;
  later stops keep the relaunching Handoff comment.
- gates.md defines a Handoff comment strictly and owns the inbound stop
  wordings; the planner stops at the inbound check in v1.
- Heading names and where-to-post live once, in handoff-comment.md.
- Gotcha and delivery-repo-doc checklist item: the two Status labels must
  not share an exclusive scope.
- GLOSSARY gains Step mode and Run mode; ADR-0032 scopes the gate-label
  check to stages that have one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
2026-11-23 17:21:51 +00:00

3.2 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.1.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 or empty → 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 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. The latest real Handoff comment stays the pointer, and nothing relaunches you: a relaunch must come from that pointer, or the inbound rule is bypassed.
    • 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>".