release-handoff
Brief the human at READY_FOR_HUMAN with a go/no-go readiness report, then run only the safe finalization steps (archive spec, record state, clean up worktree) without merging, pushing, or deploying.
- License 许可
- MIT
- 最近更新
- 2026-07-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- release-handoff
- metadata
- { "version": "1.0.0" }
- description
- Brief the human at READY_FOR_HUMAN with a go/no-go readiness report, then run only the safe finalization steps (archive spec, record state, clean up worktree) without merging, pushing, or deploying.
- compatibility
- Codex and OpenCode
03 SKILL.md 正文
Release Handoff
Assist the human across the manual tail of the workflow: from
READY_FOR_HUMAN through the merge decision, spec archival, state
recording, and worktree cleanup. Merge, push, canary, and release are
human decisions; this role prepares and briefs them and never performs
them.
Inputs
- The run directory
ai/runs/<run_id>/and itsmanifest.json. verification.json, the reviews,remediation(if any),final.diff, and the gate logs in that run directory.- The active specification under
specs/active/. - The Definition of done rubric at
.agents/skills/verification/rubric-definition-of-done.md. ai/releases/roadmap.jsonfor the run'starget_version: its status, canary cohort, thresholds, and stop conditions.
Procedure
1. Readiness briefing (read-only)
- Read the manifest; confirm
state == READY_FOR_HUMAN. If it is any other state, stop and report the actual state. - Confirm the full gate passed and
verification.jsonresult isPASS; surface anyNEEDS_HUMAN_DECISIONor unresolved critical/high finding as a blocker. - Produce a go/no-go report: change summary, acceptance-criteria coverage, finding dispositions, residual risks, rollback/disablement presence, observability presence, and a Definition-of-done checklist.
- Recommend GO or NO-GO with explicit reasons. Do not proceed to finalization on a NO-GO.
2. On NO-GO — route back, do not finalize
If the verdict is NO-GO or the human rejects the change, do not merge, archive, or clean up. Every finding that is deferred rather than fixed, and every defect the briefing surfaced, is filed as a ticket through ticket-writer before the run leaves READY_FOR_HUMAN — a deferred finding that exists only in a run directory is lost the moment the run is cleaned up. Then classify the reason, recommend where the work must return, and record the outcome only on the human's explicit decision with ./scripts/ai/update-run-state.sh:
- Abandon the change entirely: record
FAILED(terminal). No further stage runs. - Rework: record
NEEDS_HUMAN_DECISION, then hand back the earliest stage whose artifact must change and its re-entry command. Do not archive the spec or remove the worktree; the same worktree is reused for the rework.
| Reason for NO-GO | Return stage | Re-entry command |
|---|---|---|
| Product or specification decision is wrong | SPEC_READY |
/ai-spec |
| Plan or architecture is wrong | PLAN_READY |
/ai-plan |
| Implementation defect | IMPLEMENTING |
/ai-feature |
| Findings unresolved or wrongly dispositioned | REMEDIATING |
/ai-fix |
| Verification concern | VERIFYING |
/ai-verify |
Leave the run at NEEDS_HUMAN_DECISION with the recommended return stage named; the re-entry re-advances the state. Only the human chooses abandon versus rework, and which stage to return to.
3. On GO — human merge decision
- Present the exact merge command for the human to run. Do not merge, push, or deploy. Wait for the human to confirm the merge happened.
4. Safe finalization (only after confirmed merge)
- Record state with
./scripts/ai/update-run-state.sh <manifest> MERGED release-facilitator(andCANARY/RELEASEDonly as the human advances the deployment). Those two transitions are gated on the run'starget_versioninai/releases/roadmap.json; if the gate refuses, report the refusal — do not work around it. - Archive the spec with
./scripts/ai/complete-spec.sh <specs/active/SPEC.md> <manifest>; it refuses unless the run is MERGED or later. - Clean up the worktree with
./scripts/ai/cleanup-worktree.sh <path>; it refuses a dirty worktree. - Keep the roadmap and the ledger in step: when the human advances the deployment, the matching version status is recorded by
release-plannerthroughversion_tools.py set-status. A run atRELEASEDwhose version is stillin_progressis a reporting failure, not a detail.
Stop conditions
Stop and hand back to the human when: the state is not READY_FOR_HUMAN, verification is not PASS, a critical/high finding is unresolved, the human has not confirmed the merge, or any finalization script refuses.
Scope limits
- Never merge, push, deploy, run canary, or operate production.
- Never edit application code, tests,
docs/,blueprint/, or specification content. The only mutation is moving the spec file tospecs/completed/throughcomplete-spec.sh. - Perform state changes and cleanup only through the audited scripts above; do not hand-edit the manifest.
Output
Report the go/no-go verdict with its evidence. On GO, report the finalization steps performed (resulting run state and archived spec path) and any step left for the human. On NO-GO, report the recorded state (FAILED or NEEDS_HUMAN_DECISION), the recommended return stage, and the re-entry command, and confirm that nothing was merged, archived, or cleaned up.
04 同仓库更多 Skills
workflow-retrospective
Improve the durable workflow when the same agent, review, test, scope, or validation failure pattern recurs; use after incidents or repeated verifier returns.
verification
Perform final independent read-only verification of acceptance criteria, review remediation, test integrity, scope, and quality-gate evidence.
ticket-authoring
Turn a reported or observed defect into one reviewable ticket under tickets/ with reproduction, evidence, impact, and closure criteria, bound to a fix version — without fixing it or rewriting it into a specification.
technical-planning
Create a read-only implementation plan from an approved specification before code changes; use for non-trivial features, bugs, migrations, and cross-module work.
skill-governance
Audit newly installed or updated agent skills as untrusted content and propose required, optional, or denied assignments to existing agent roles. Use after staging a skills.sh installation and before promoting the skill or changing agent permissions.
security-review
Adversarially review authentication, authorization, tenant isolation, sensitive data, abuse resistance, and production reliability for a completed implementation.