/handover: capture the session for the next person
Role: session scribe and context preservationist.
Input: Current conversation context + git log + .resonance/ state files + task.md.
Output: docs/handovers/YYMMDD_handover.md written or appended. .resonance/01_state.md "Next Session" updated.
Definition of Done: A colleague with zero prior context can read the handover and know what was built, what was decided, what needs doing next, and where the risks are.
The conversation history is the richest source. Run this before the session ends.
Source Priority
Mine these in order:
- Current session context: the conversation history. What was discussed, built, decided, and blocked. Use it first; it contains what no file captures.
git log --oneline -20: concrete evidence of what landed. Run as a shell command.
.resonance/01_state.md: current phase, goal, blockers.
task.md: checked items (done) vs. unchecked (open).
.resonance/02_memory.md: decisions and lessons from prior sessions.
If a source is missing, skip it silently. Do not fabricate.
Same-Day Logic
- Compute today's date in
YYMMDD format.
- Check if
docs/handovers/<YYMMDD>_handover.md exists via search.
- File does not exist: create it using the full template from handover_structure.md.
- File exists: append only. Add a
--- divider followed by ### Session <HH:MM> as a heading, then write the same 7 sections scoped to this session's delta. Do not re-copy the earlier content.
Operational Sequence
- Read
.resonance/01_state.md (if it exists).
- Read
task.md (if it exists).
- Run
git log --oneline -20 as a shell command.
- Note today's date (
YYMMDD) from system or the git log timestamps.
- Check whether
docs/handovers/<YYMMDD>_handover.md already exists.
- Synthesize from all sources. The session context leads; files confirm and fill gaps.
- Write (new file) or append (existing file, with divider + timestamp heading).
- Update
.resonance/01_state.md "Next Session" to reference the handover path and the top open TODO.
Recovery
- No session context (running cold): use git log +
.resonance/ files. Add a note at the top of the handover: > Synthesized from files. No live session context available.
docs/handovers/ does not exist: create it before writing.
task.md not found: synthesize Open TODOs from session context. Do not fabricate specific items not discussed.
- No commits today: write
No commits this session under What Was Done. Do not guess at work done.
- No
.resonance/01_state.md: skip that source. Do not error.
Reference Library
- Handover Structure: Document template with section guidance and examples.
Operating Standard
Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when .resonance/ledger/ exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while 02_memory.md keeps [lib] notes and pointers).
Execution note: Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.
1---2name: resonance-ops-handover3description: Writes a handover document for a colleague after a coding session or sprint. Use at the end of a session to capture what was done, decisions made, open TODOs, and backlog. Produces docs/handovers/YYMMDD_handover.md. If a handover file already exists for today, appends to it. Run before closing the conversation. Session context is the richest input.4---56# /handover: capture the session for the next person78> **Role:** session scribe and context preservationist.9> **Input:** Current conversation context + git log + `.resonance/` state files + `task.md`.10> **Output:** `docs/handovers/YYMMDD_handover.md` written or appended. `.resonance/01_state.md` "Next Session" updated.11> **Definition of Done:** A colleague with zero prior context can read the handover and know what was built, what was decided, what needs doing next, and where the risks are.1213The conversation history is the richest source. Run this before the session ends.1415## Source Priority1617Mine these in order:18191. **Current session context**: the conversation history. What was discussed, built, decided, and blocked. Use it first; it contains what no file captures.202. **`git log --oneline -20`**: concrete evidence of what landed. Run as a shell command.213. **`.resonance/01_state.md`**: current phase, goal, blockers.224. **`task.md`**: checked items (done) vs. unchecked (open).235. **`.resonance/02_memory.md`**: decisions and lessons from prior sessions.2425If a source is missing, skip it silently. Do not fabricate.2627## Same-Day Logic28291. Compute today's date in `YYMMDD` format.302. Check if `docs/handovers/<YYMMDD>_handover.md` exists via search.313. **File does not exist**: create it using the full template from [handover_structure.md](references/handover_structure.md).324. **File exists**: append only. Add a `---` divider followed by `### Session <HH:MM>` as a heading, then write the same 7 sections scoped to this session's delta. Do not re-copy the earlier content.3334## Operational Sequence35361. Read `.resonance/01_state.md` (if it exists).372. Read `task.md` (if it exists).383. Run `git log --oneline -20` as a shell command.394. Note today's date (`YYMMDD`) from system or the git log timestamps.405. Check whether `docs/handovers/<YYMMDD>_handover.md` already exists.416. Synthesize from all sources. The session context leads; files confirm and fill gaps.427. Write (new file) or append (existing file, with divider + timestamp heading).438. Update `.resonance/01_state.md` "Next Session" to reference the handover path and the top open TODO.4445## Recovery4647- **No session context (running cold)**: use git log + `.resonance/` files. Add a note at the top of the handover: `> Synthesized from files. No live session context available.`48- **`docs/handovers/` does not exist**: create it before writing.49- **`task.md` not found**: synthesize Open TODOs from session context. Do not fabricate specific items not discussed.50- **No commits today**: write `No commits this session` under What Was Done. Do not guess at work done.51- **No `.resonance/01_state.md`**: skip that source. Do not error.5253## Reference Library5455- **[Handover Structure](references/handover_structure.md)**: Document template with section guidance and examples.5657## Operating Standard5859Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when `.resonance/ledger/` exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while `02_memory.md` keeps `[lib]` notes and pointers).6061> **Execution note:** Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.