fix(delivery): apply review findings to delivery-handoff

Define the inbound Handoff comment as the latest one whose Next command
launches this stage, and stop when the latest has Next command none.
Name the six headings in Step 2, keep the required/optional rule in the
gates table and the posting location in handoff-comment.md only, narrow
the description to one capability clause, and declare the Gitea MCP
tools the skill uses. Let delivery-repo-doc's format consumers restate
the minimum they parse, and add the next stage's command to the
glossary's Handoff comment entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-23 16:57:04 +00:00
1 parent 2c0120cda6
commit 9774a217d4
5 files changed
+26 -14

No files matched your search

+2 -1
View File
@@ -136,7 +136,8 @@ _Avoid_: specialist agent (implies a tool specialist), worker, persona
**Handoff comment**:
The fixed-shape tracker comment that ends every **Stage** — decisions, rejected options, evidence,
the pointer the next stage starts from, and open questions. The next stage reads it first.
the pointer the next stage starts from, open questions, and the command that launches the next
stage. The next stage reads it first.
_Avoid_: summary, status update
**Acceptance check**:
@@ -1,12 +1,12 @@
---
name: delivery-handoff
description: >
Use when a delivery Stage lead starts or finishes its stage. Checks the stage's gate and writes the
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`.
compatibility: 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.
allowed-tools: Read
allowed-tools: Read mcp__gitea__issue_read mcp__gitea__issue_write mcp__gitea__pull_request_read
metadata:
category: delivery
version: "0.1.0"
@@ -32,14 +32,17 @@ File missing, first line not `# Delivery`, or the allowlist section missing or e
## 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). The inbound Handoff comment is the latest comment carrying the six Handoff headings; read
it before anything else on the item. Only the implement stage may start without one, on a
human-written ticket. Any other stage without one → **Stop**.
fields). A Handoff comment carries six `##` headings: `## Decisions`, `## Rejected`, `## Evidence`,
`## Next pointer`, `## Open questions`, `## Next command`. Read `references/gates.md` now: its
§Inbound Handoff comment says which one is yours. Read it before anything else on the item.
It is required unless your row in `references/gates.md` says Optional. Required and missing, or
the rule there says stop → **Stop**.
## Step 3 — Check the gate
Read `references/gates.md` now and run every check in your stage's row. Any check fails → **Stop**,
quoting the failed check as the reason.
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
@@ -49,9 +52,7 @@ 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. Post it where the next stage starts: on the PR once one
exists, otherwise on the issue, via `gitea-issues` (a Gitea PR's conversation comments are issue
comments). Then end the session.
with the Next command filled for your stage, and post it where its Rules say. Then end the session.
## Stop
@@ -8,7 +8,13 @@ and PR fields and reviews through `gitea-prs`. Every check reads tracker state o
| implement | `delivery-implement-lead` | issue | Optional: a human-written ticket has none | The issue carries the label `Status/Ready for Agent` |
| review | `delivery-reviewer` | PR | Required: the implement stage's | No human gate. The PR title does not start with `WIP:` |
| verify | `delivery-operator` | PR | Required: the review stage's | The PR is merged (`merged` is true) **and** has at least one review meeting every review condition below |
| spec, tickets | `delivery-planner` | — | — | Not defined yet: the planner is out of v1 scope |
| spec, tickets | `delivery-planner` | — | — | Not defined yet: defined in slice 4 with the planner |
## Inbound Handoff comment
Yours is the latest Handoff comment on the issue or PR whose `## Next command` launches your
stage's agent. If the latest Handoff comment instead has Next command `none` — a stop, or the final
stage — stop with "previous stage stopped; no inbound Handoff comment".
## Verify: review conditions
@@ -25,6 +31,7 @@ these hold:
Quote the failed check as the Open questions reason. Typical wordings:
- implement: "gate not set: `Status/Ready for Agent` missing"
- any stage: "previous stage stopped; no inbound Handoff comment"
- review: "no inbound Handoff comment from the implement stage"; "PR title still starts `WIP:`"
- verify: "PR not merged"; "no approval from an allowlisted human that is neither stale nor
dismissed"
@@ -12,6 +12,8 @@ will later parse it, so the shape is fixed even though nothing validates it yet.
- **Next pointer** is the URL the next stage starts from: the PR once one exists, otherwise the
issue.
- **Open questions** carries the stop reason on a stop.
- Post the comment on the Next pointer's item via `gitea-issues` — a Gitea PR's conversation
comments are issue comments. On a stop, post it on the item you were pointed at.
## Template
@@ -57,7 +59,7 @@ Fill `<agent>`, `<stage>` and `<url>` with real values; `<url>` is the Next poin
| verify | — | — | Last stage: the section is `none` |
| any stage, on a stop | — | — | The section is `none`; the human decides what runs next |
When the section is `none`, drop the fenced block and the Copilot line.
When the section is `none`, drop the fenced block and the "untested" note below it.
The Copilot CLI line uses `--prompt`, not an interactive session, because an open bug
(github/copilot-cli#5124) drops an `--agent` selection about a second after interactive startup.
@@ -2,7 +2,8 @@
This file is the single source of truth for the format. `delivery-handoff`, `delivery-ci-checks`,
`delivery-qa` and `delivery-operator` cite it as "`delivery-repo-doc`'s `references/format.md`" and
do not restate it. A format change is an edit here, plus the consumers' parsers.
restate only the minimum they parse — `delivery-handoff`, for example, restates the first line and
section 4's syntax. A format change is an edit here, plus every consumer's restatement.
## File rules