End of Shift — unified session-close
handoffis step 7 of this skill (mid-session delegation without the earlier validation/proof/digest/learning gates). Use barehandoffonly for mid-session delegation; this skill is the full close — it validates, finalizes proof, checks budget, synthesizes learnings, then hands off if work remains.
Close work with enough verified state that the next human or agent can continue without reconstructing the session from chat.
Workflow
- Reacquire CK context and inspect git status and diff. Identify untracked artifacts, unrelated changes, unresolved tasks, pending reviews, and active findings.
- Run the targeted checks required by the changed behavior. Run the project's full completion command only when policy or the approved plan requires it.
- Validate the final diff and stop on blocked findings. Record warnings with their concrete consequence.
- Correlate tests, external regression results, and review approvals with the task proof. Do not call an untested or unreviewed path complete.
- Check budget and record the session outcome. Generate a digest.
- Persist only durable decisions or reusable lessons. Do not commit raw transcripts, speculative notes, secrets, or duplicated summaries.
- If work remains, create a checkpoint and use the handoff workflow with explicit next action, blockers, validation state, and allowed scope.
Stop conditions
blocked: an active blocked finding, failed required check, denied review, or unsafe workspace state remains.partial: completed work is valid but scoped work remains or required external evidence is unavailable.complete: required checks pass, findings are dispositioned, proof is present, and no approved-scope work remains.
Output
Return the declared result schema. Include exact validation commands or proof references, not “tests pass” without evidence.