Session continuity
A chat that starts cold knows where the last one stopped because the last one was not allowed to end on recall. A gate checks the diff against the board, every leftover becomes a task and a checkpoint, and hooks put the open threads into the next session's context before its first prompt.
- What it is
- Four skills (
/wrap-up,/checkpoint,/pick-up-where-i-left-off,/recover), a session-start hook that anchors each chat to a git sha, a deterministic evidence gate in taskman, and the markdown artifacts they write: session reports, checkpoints and a diary. - What it isn't
- Not model memory and not a transcript replay. The next session reads a few curated files and a board, never the previous chat's conversation. Nothing here makes an agent remember; it makes the repository say what is unfinished.
- Why it exists
- Agent sessions end abruptly: context fills, limits hit, the operator closes a window. A summary written from the chat log claims work that never landed and forgets work that did. The gate makes the end of a session a check against git, and the checkpoint makes the start of the next one a choice from a list.
How it works
Continuity is a hand-off with two halves, and the files on disk sit between them. Session N ends through /wrap-up, which may not write a word of narrative until the gate passes. Session N+1 starts with hooks that inject what is open, then /pick-up-where-i-left-off turns the checkpoint list into a question for the operator.
from: line. The checkpoint and the board carry the hand-off; the diary and the journal only surface when something is missing or a peer acted.Session start: the marker
hooks/session-start-marker.py runs on every session start in any git worktree, with or without a board. It writes .session-markers/<session_id>.json holding the HEAD sha at that moment, exports WRAPUP_SESSION_ID and WRAPUP_START_SHA to the session, and adds a line to the agent's context naming the gate it will have to pass. Where the diary exists it also prints DIARY GAP: <day> (N chats with no section) for past days whose committing chats wrote nothing. The marker is the anchor everything at the end of the session is measured from. Peer hooks treat a marker untouched for 15 minutes as dead; markers are swept after a day.
The same session-start event then runs the peer-session notice, an environment snapshot and the CAM snapshot, in a fixed order declared in hooks.def.json.
Session end: the evidence gate
The hard part of continuity is the end of a session, where the agent is most tempted to summarize from memory. /wrap-up opens with a deterministic step: taskman wrapup gate, implemented in taskman/taskman/wrapup.py. It builds two worklists from git, not from the chat:
| Worklist | Built from | How an item clears |
|---|---|---|
| Unattributed paths | Every path in git diff <start_sha>..HEAD plus dirty and untracked files, minus paths an open ticket claims | Attach to a ticket, open a retroactive ticket, or ignore with a stated reason |
| Stale tickets | Every in_progress ticket this session touched | A verdict of done, still-open or blocked with a citation: a commit sha, a file path or test output. Design tickets need the operator's acknowledgement to be marked done. |
Exit 0 means both lists are clear; exit 1 means stop; exit 2 means no marker was found. Clearances are written to a receipt file next to the marker, so a re-run only shows what is left. A regression in the board's event log against HEAD fails the gate and no receipt can clear it. The skill says it plainly: the markdown instructions are not the enforcer, the non-zero exit is.
What wrap-up writes
After the gate, skills/wrap-up/SKILL.md runs a fixed sequence. The steps that matter for the next session:
- Board sync. Moves implied by the receipts, plus decisions and requirements that only exist in the chat.
- Lessons. Two report-only scanners list candidates from this session's transcript (admitted mistakes; shell calls that failed and then passed on retry). A candidate becomes a lesson only if it is about agent behaviour, was actually corrected, and generalizes.
- Action report when durable work shipped, with or without a plan folder.
- Leftovers. Every unfinished item becomes a board task. Existing checkpoints are reconciled: finished ones are closed with evidence, advanced ones rewritten in place. If anything was filed, a new checkpoint is written automatically. A bundle of leftovers is planned and grilled into a follow-up stem in the same chat, so the checkpoint's next step is a single command (
/mow go <stem>), not prose. - Session report at
docs/session-reports/<YYYY-MM-DD-HHMM>-<slug>.md. Every backticked sha in it must resolve, or the pre-push hook refuses the push. - Diary section in the operator's voice, then
hooks/diary_coverage.py --requireto prove this session is named on the day it committed. - Commit and push offer, never run without a yes.
- Safe-to-end verdict, computed mechanically from which steps ran, and a copy-pasteable resume pointer naming the files a fresh session should load.
Checkpoints and pick-up
A checkpoint is one curated hand-off per task in docs/checkpoints/, with docs/checkpoints/INDEX.md as the single status table. Several coexist; saving one never touches another. Each carries from: (the session report that produced it), an optional mow: lineage (plan stem and furthest phase), its board task ids, and a ## Next task. The lifecycle is open → in-progress (set on pick-up) → done (archived by /checkpoint done).
/pick-up-where-i-left-off lists open and in-progress checkpoints newest first, asks which to continue, and for any other in-progress row asks whether it is actually finished. It marks the choice in-progress, reads it, restates where the previous orchestrated run stopped from the plan's dispatch index, pulls each listed board task, and shows what changed on disk since. It writes no code until the operator confirms. Both skills self-heal a checkpoint marked done but never archived, because that is the state an interrupted session leaves behind.
Diary
docs/diary/ is the operator-facing record: one file per local day, with sections for the harness, running the platform, what is still open and receipts. Several chats write the same day, so each re-reads the file and adds only its own section. From 2026-10-05 (COVERAGE_SINCE) coverage is per chat: a chat that made a non-sync commit on a day owes that day either a section naming its session id or a skip line with a specific reason. Before that date, presence of the day file is enough. The rules for drafting a missed day from git log, reports and the CAM journal live in the diary's own INDEX.md under "Catching up", and say to state when transcripts were already pruned rather than invent detail.
Recover ramps
/recover is the continuity tool for a session that is stuck rather than ending. It indexes twelve failure modes, R-01 to R-12. Five carry a full procedure (flaky test, regression after a fix, three failed fix rounds on one finding, plan drift, requirement changed mid-build), two carry a short one (rollback, missed performance target), and five point to another skill. R-09, "session ending with loose ends", points straight back to checkpoint and wrap-up. Every ramp carries a protection rule, such as no skipping or deleting a test to get green, no fourth fix attempt on the same finding, and no silent edits to a plan.
AI engineering practices it demonstrates
- Evidence over recall. The end-of-session account is derived from
git diffagainst a sha recorded at start, and a stale ticket needs a citation to clear. The chat is secondary evidence. - Deterministic gates around a probabilistic agent. The gate's exit code, the diary coverage check and the pre-push sha check are programs. Skill prose decides what to do; programs decide whether it was done.
- Curated context hand-off. The next session loads a checkpoint, a report and a few board tasks, a few kilobytes chosen at write time, instead of a compacted transcript.
- Human in the loop at the seams. Pick-up asks which checkpoint; design tickets need the operator to mark them done; commit and push need an explicit yes.
- Self-healing state. Two independent touchpoints archive a checkpoint left marked done, because interrupted sessions are the normal case.
- Failure-mode catalog. Recovery ramps name the trap (test silencing, silent plan mutation, history rewrite) and forbid it explicitly.
- Redaction that fails closed. The session-end archive hook strips
<private>spans before any copy, and skips archiving entirely if redaction fails.
Capabilities
| Capability | Detail |
|---|---|
| Per-worktree anchoring | Parallel sessions in different worktrees or runtimes keep separate markers and receipts. |
| Retroactive board sync | Work done without a ticket is either attached, ticketed or explicitly ignored before the chat may close. |
| Follow-up planning at wrap-up | Leftovers are planned and grilled into a stem in the chat that has the context, so the hand-off is a runnable command. |
| Gap detection | The next session is told which past days have committing chats with no diary section. |
| Cross-runtime | The marker hook is registered for Claude Code, Cursor and Copilot session starts; VS Code and Codex commits are bucketed as cli for diary coverage. |
Benefits
A new chat can be productive in its first minutes: it is handed a short list of open checkpoints, each with one next command, provenance and board state. Over 91 session reports, the archive doubles as an audit trail of what each session claimed and what the gate made it prove.
Limits
Checkpoints are created faster than they are closed. On 2026-10-08 the index held 15 open checkpoints, the oldest last updated on 2026-09-26, so the pick-up list is a backlog to triage rather than a single "where I left off".
- Wrap-up is expensive and skippable. It is a 453-line procedure the operator has to invoke. Long orchestrated runs often end without reaching it, which is why runs write their own diary section at close-out and the session-start hook hunts for gaps.
- A resumed chat can get a new number. The planning chat's identity line goes stale, and the in-chat grill of a follow-up stem then refuses in the very chat that planned it.
- The diary has no verified backup. It is excluded from git and the only intended backup is Time Machine, whose destination is still an open operator task.
- Transcript archiving does nothing here. The session-end hook delegates to a repository's own
scripts/archive-session.sh; this repository ships none, and wrap-up's text still points at that path. - Receipts are brittle to input. A trailing space in a recorded path was once stored as its own key and silently never cleared the gate; 101 records had to be redone.
- Without a board, most of this is off. A repo with no
.taskman.tomlgets the marker and a session report, but no gate, no board sync and no checkpoint tasks.
Roadmap
| Item | Why it matters | Status |
|---|---|---|
| Keep a chat's number across resume | Stops the follow-up grill refusing in the chat that planned it | correctness |
| Set up the diary's backup destination | The diary is local-only and currently unbacked | data loss |
| Link the run page from wrap-up's final report | One click from the hand-off to the run's chats, commits and cost | planned |
| Record the real session id for VS Code and Codex | Lets diary coverage match those chats and retire the cli bucket | backlog |
Validate paths in wrapup record; fix the archive-session pointer | Removes two quiet ways the gate or the docs mislead | backlog |
| Resume protocol for a lane killed mid-flight | A subagent hit by a rate limit should resume in its worktree or be re-dispatched, never continue in the main checkout | open question |
Sources
skills/wrap-up/SKILL.md(453 lines) andskills/wrap-up/scripts/:session_digest.py,confession_scan.py,log_lesson.py.skills/checkpoint/SKILL.md,skills/pick-up-where-i-left-off/SKILL.md,skills/recover/SKILL.md.taskman/taskman/wrapup.py: the gate, receipts, exit codes.hooks/session-start-marker.py,hooks/diary_coverage.py(COVERAGE_SINCE = "2026-10-05",LOOKBACK_DAYS = 14),hooks/archive-session.sh,hooks.def.json.docs/checkpoints/INDEX.md,docs/session-reports/,docs/diary/INDEX.md.- Counts read on 2026-10-08: session reports in
docs/session-reports/(91, 2026-08-17 to 2026-10-07), open checkpoint files (15), archived checkpoints (17), dated diary files (41). Task board: open items for resume identity, diary backup, wrap-up run link,clisession ids and gate input validation.