session-sunset ยท diff

git:20260825.243157f to git:20261005.fca9b28

3 added, 3 removed. Audit A to A.

---
name: session-sunset
- description: "Authoritative protocol for gracefully terminating an agent session. Mandates structured handover comments, mental-model states, and memory persistence to prevent Zero-State Amnesia. Triggers: When concluding a long-running session, executing the Sunset Protocol, handing over work for the next agent, or terminating an agent cycle."
+ description: "Protocol for ending an agent session: handover comments, mental-model state and memory persistence against Zero-State Amnesia. Triggers: context over 75 % of the window, or about twice a fresh session's size at a quiet point; a macro-semantic pivot; an explicit human directive. Never task completion or a wait by itself."
---
# Session Sunset Skill
**๐Ÿ›‘ ANTI-TRIGGERS (Completion Bias Guard) ๐Ÿ›‘**
- **Task Completion โ‰  Session Sunset.** You must **halt and wait for the next turn** (do NOT sunset) if you are:
+ **Task Completion โ‰  Session Sunset.** Unless the workflow's trigger 1 holds, you must **halt and wait for the next turn** (do NOT sunset) if you are:
1. **Halting for Peer Review:** Waiting for cross-family PR review or human feedback. This is an active lifecycle state, not a boundary.
2. **Single Task Completion:** Finishing one ticket/task while your context window is still healthy. Pick up the next task.
3. **Asynchronous Delays:** Waiting for CI, test results, or A2A responses.
- Sunsets are strictly reserved for **Context Window Exhaustion** (>75% full/forgetfulness), **Macro-Semantic Pivots**, or **Explicit Human Directives**.
+ Sunsets are strictly reserved for the workflow's ยง1 triggers: **Context Exhaustion or Cost**, **Macro-Semantic Pivots**, or **Explicit Human Directives**.
If you meet a valid sunset condition, you MUST immediately use the `view_file` tool to read and strictly adhere to `.agents/skills/session-sunset/references/session-sunset-workflow.md` before terminating. This prevents Zero-State Amnesia.