feat(delivery): add the delivery-handoff stage protocol skill
Every delivery Stage lead needs the same entry and exit discipline: read the repo's delivery doc, read the inbound Handoff comment, check the stage's gate, and end with one fixed-shape Handoff comment that tells the human the exact launch line for the next stage. - delivery-handoff: entry checks, per-stage gate table (implement label, review non-WIP PR, verify merged PR with a non-stale, non-dismissed allowlisted approval), the Status/Ready for Human stop path, and the Handoff template with Claude Code and Copilot CLI Next commands - ADR-0032 amended: stage leads check gate state only in step mode; the who-set-the-label check moves to the run-mode launcher (gitea-mcp has no timeline method and the human already launches each stage) - delivery-repo-doc format.md aligned with the amendment (0.1.2) - delivery package 0.2.0 -> 0.3.0, with the executables.allow key and marketplace entry kept in step Refs #191 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
This commit is contained in:
1 parent
d439bbeb05
commit
2c0120cda6
9 files changed
+210
-8
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Stage gates
|
||||
|
||||
Each stage lead runs the checks in its own row, in order. Read issue fields through `gitea-issues`
|
||||
and PR fields and reviews through `gitea-prs`. Every check reads tracker state only; none sets it.
|
||||
|
||||
| Stage | Stage lead | Pointed at | Inbound Handoff comment | Gate checks |
|
||||
|---|---|---|---|---|
|
||||
| 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 |
|
||||
|
||||
## Verify: review conditions
|
||||
|
||||
Read the PR's reviews (`pull_request_read`, method `get_reviews`). A review counts only when all of
|
||||
these hold:
|
||||
|
||||
- `state` is `APPROVED`;
|
||||
- its author's login is on the Human allowlist, compared against the forge's casing;
|
||||
- `stale` is `false` — no push landed after it was submitted;
|
||||
- `dismissed` is `false`.
|
||||
|
||||
## Stop reasons
|
||||
|
||||
Quote the failed check as the Open questions reason. Typical wordings:
|
||||
|
||||
- implement: "gate not set: `Status/Ready for Agent` missing"
|
||||
- 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"
|
||||
- spec, tickets: "no gate defined for the `<stage>` stage in v1"
|
||||
- a stage lead not in the table: "no stage defined for agent `<name>`"
|
||||
Reference in new issue
Block a user