AGENT SKILL

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 its manifest.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.json for the run's target_version: its status, canary cohort, thresholds, and stop conditions.

Procedure

1. Readiness briefing (read-only)

  1. Read the manifest; confirm state == READY_FOR_HUMAN. If it is any other state, stop and report the actual state.
  2. Confirm the full gate passed and verification.json result is PASS; surface any NEEDS_HUMAN_DECISION or unresolved critical/high finding as a blocker.
  3. 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.
  4. 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

  1. 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)

  1. Record state with ./scripts/ai/update-run-state.sh <manifest> MERGED release-facilitator (and CANARY/RELEASED only as the human advances the deployment). Those two transitions are gated on the run's target_version in ai/releases/roadmap.json; if the gate refuses, report the refusal — do not work around it.
  2. Archive the spec with ./scripts/ai/complete-spec.sh <specs/active/SPEC.md> <manifest>; it refuses unless the run is MERGED or later.
  3. Clean up the worktree with ./scripts/ai/cleanup-worktree.sh <path>; it refuses a dirty worktree.
  4. Keep the roadmap and the ledger in step: when the human advances the deployment, the matching version status is recorded by release-planner through version_tools.py set-status. A run at RELEASED whose version is still in_progress is 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 to specs/completed/ through complete-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