delivery-handoff skill #191

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

Part of #166

Question

Author delivery-handoff, the stage protocol every stage lead loads.

Entry:

  • Read the inbound Handoff comment.
  • Verify the gate: from the issue or PR timeline, check that the gate label (or approval) was set by a user on the delivery.md Human allowlist.
  • If the check fails, stop. Never set a gate yourself.

Exit:

  • Write a Handoff comment with fixed ## headings: Decisions, Rejected, Evidence, Next pointer, Open questions, Next command.
  • Next command is the exact launch line for the next stage on Claude Code and on Copilot CLI.

Notes:

  • Confirm the Gitea timeline API shape for the gate check, which ADR-0032 noted as unverified.
  • No schema validator.
  • Close out with factory-audit.
Part of #166 ## Question Author `delivery-handoff`, the stage protocol every stage lead loads. **Entry:** - Read the inbound Handoff comment. - Verify the gate: from the issue or PR timeline, check that the gate label (or approval) was set by a user on the `delivery.md` Human allowlist. - If the check fails, stop. Never set a gate yourself. **Exit:** - Write a Handoff comment with fixed `##` headings: Decisions, Rejected, Evidence, Next pointer, Open questions, Next command. - Next command is the exact launch line for the next stage on Claude Code and on Copilot CLI. **Notes:** - Confirm the Gitea timeline API shape for the gate check, which ADR-0032 noted as unverified. - No schema validator. - Close out with `factory-audit`.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 16:09:03 +00:00
Claude added the Wayfinder/Task label 2026-11-22 16:09:03 +00:00
Claude added a new dependency 2026-11-22 16:09:30 +00:00
Claude added a new dependency 2026-11-22 16:09:33 +00:00
Author
Owner

Inputs from delivery-repo-doc and the ansible-homelab-mono delivery.md

  • Where the format lives: the delivery.md format is in delivery-repo-doc's references/format.md (PR 210). Cite it by that name, not by a relative path, because a path out of a skill's folder breaks once installed.
  • Reading the allowlist: the gate check reads section ## Human allowlist. Each item is - `<user>`, one per line, and the section is never empty. Compare against the forge's casing of the username, which can differ from the remote URL.
## Inputs from [delivery-repo-doc and the ansible-homelab-mono delivery.md](https://git.rkdr.net/Mortis/Holocron/issues/189) - **Where the format lives:** the `delivery.md` format is in `delivery-repo-doc`'s `references/format.md` ([PR 210](https://git.rkdr.net/Mortis/Holocron/pulls/210)). Cite it by that name, not by a relative path, because a path out of a skill's folder breaks once installed. - **Reading the allowlist:** the gate check reads section `## Human allowlist`. Each item is `` - `<user>` ``, one per line, and the section is never empty. Compare against the forge's casing of the username, which can differ from the remote URL.
Defame1297 was assigned by Claude 2026-11-23 16:31:20 +00:00
Author
Owner

Resolution

Built in PR 213 (delivery 0.3.0, delivery-handoff 0.1.0). factory-audit PASS; two code reviews and two adversarial protocol walkthroughs, all blocking findings fixed; tests 22/22.

Decided with the owner

  • Gate state, not who set it. In step mode the human launching a stage is the approval. The who-set-the-label check moves to the run-mode launcher, which checks the triggering event's sender against the allowlist — deterministic, so it belongs in the workflow, not an agent. ADR-0032 amended. Why: gitea-mcp v1.13.0 has no timeline method, the timeline needs a token on private repos (ansible-homelab-mono returns 404 unauthenticated), and step mode already has a human launch.
  • Gates: implement = issue has Status/Ready for Agent; review = no human gate, inbound Handoff required, PR title not WIP:; verify = PR merged + an APPROVED review by an allowlisted human with stale and dismissed false; spec/tickets undefined until slice 4 (the planner stops).

Protocol details settled in review

  • A Handoff comment is exactly the six headings in order; the inbound one is the latest (by creation) on the pointed-at item and must launch this stage's agent.
  • Stops before the inbound check passes (bad delivery.md, unknown agent, planner, wrong item kind, inbound failure) post a plain comment + Status/Ready for Human, never a Handoff, so a stage can't satisfy its own required inbound. Stops after it passes post a Handoff whose Next command relaunches the same stage; none only after verify.
  • Launch lines: claude --agent <agent> "…"; copilot --agent=<agent> --prompt "…" (untested; --prompt because copilot-cli#5124 drops --agent interactively).
  • Status/Ready for Agent and Status/Ready for Human must not share an exclusive label scope; added to delivery-repo-doc's checklist.

Gitea facts (verified live, Gitea 28.3.0)

  • Timeline label events: type: "label", label.name, user.login, body "1" added / "" removed. Review events carry only review_id.
  • Reviews endpoint: state, user.login, stale, dismissed, official, commit_id.
## Resolution Built in [PR 213](https://git.rkdr.net/Mortis/Holocron/pulls/213) (`delivery` 0.3.0, `delivery-handoff` 0.1.0). factory-audit PASS; two code reviews and two adversarial protocol walkthroughs, all blocking findings fixed; tests 22/22. **Decided with the owner** - **Gate state, not who set it.** In step mode the human launching a stage is the approval. The who-set-the-label check moves to the run-mode launcher, which checks the triggering event's sender against the allowlist — deterministic, so it belongs in the workflow, not an agent. ADR-0032 amended. Why: gitea-mcp v1.13.0 has no timeline method, the timeline needs a token on private repos (`ansible-homelab-mono` returns 404 unauthenticated), and step mode already has a human launch. - **Gates:** implement = issue has `Status/Ready for Agent`; review = no human gate, inbound Handoff required, PR title not `WIP:`; verify = PR merged + an `APPROVED` review by an allowlisted human with `stale` and `dismissed` false; spec/tickets undefined until slice 4 (the planner stops). **Protocol details settled in review** - A Handoff comment is exactly the six headings in order; the inbound one is the latest (by creation) on the pointed-at item and must launch this stage's agent. - Stops before the inbound check passes (bad `delivery.md`, unknown agent, planner, wrong item kind, inbound failure) post a plain comment + `Status/Ready for Human`, never a Handoff, so a stage can't satisfy its own required inbound. Stops after it passes post a Handoff whose Next command relaunches the same stage; `none` only after verify. - Launch lines: `claude --agent <agent> "…"`; `copilot --agent=<agent> --prompt "…"` (untested; `--prompt` because copilot-cli#5124 drops `--agent` interactively). - `Status/Ready for Agent` and `Status/Ready for Human` must not share an exclusive label scope; added to `delivery-repo-doc`'s checklist. **Gitea facts (verified live, Gitea 28.3.0)** - Timeline label events: `type: "label"`, `label.name`, `user.login`, `body` `"1"` added / `""` removed. Review events carry only `review_id`. - Reviews endpoint: `state`, `user.login`, `stale`, `dismissed`, `official`, `commit_id`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#191