Delimit Session Handoff
delimit_session_handoffPreserve session context by writing a structured handoff record with decisions, blockers, and next actions, so a future session can resume where the last one left off.
Instructions
Save a session summary for cross-session continuity.
When to use: at the end of a productive session, to leave a structured record the next session can recover. When NOT to use: for richer cross-model state (use delimit_soul_capture, which auto-detects more) or single-line memory (delimit_memory_store).
Sibling contrast: delimit_soul_capture writes a state soul directly; this writes a structured handoff with explicit fields. Session Phoenix, when installed, enriches soul capture with git and transcript state.
Side effects: performs the ONE canonical session close via
ai.ledger_manager.session_handoff: refreshes the soul, writes the
handoff record, creates the handoff receipt, then reads every written
record back and reports verified (LED-5321 M3). Identifier/path
fields retain legacy comma-list coercion. Prose decisions and blockers
preserve commas in a plain string; native/JSON lists carry multiple
entries. LED-3731: also refreshes a lightweight
pointer-soul for project_path (default = cwd) so the NEXT
delimit_revive for that project returns THIS handoff's state rather
than a stale older soul.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | 2-3 sentence summary of the session. Required. | |
| venture | No | Venture context. Empty = auto-detect. | |
| blockers | No | What's blocked and why. | |
| priority | No | Receipt priority (P0/P1/P2). Default P1. | P1 |
| to_model | No | Receipt recipient model. Default any. | any |
| completed | No | Receipt completed items. Empty = reuse items_completed. | |
| assumptions | No | Receipt assumptions. | |
| items_added | No | Newly added item ids as list or comma string. | |
| next_action | No | Receipt next action for the receiving session. | |
| project_path | No | Project path whose revive soul this handoff should refresh. Empty = auto-detect from cwd. | |
| source_model | No | Closing model identity. Empty = auto-detect. Any model may close; no supervisor is assumed. | |
| files_changed | No | Key files that were modified. | |
| key_decisions | No | Key decisions or consensus results. | |
| not_completed | No | Receipt not-completed items. Empty = reuse items_added. | |
| items_completed | No | Completed ledger item ids (e.g. ["LED-164"]) as list or comma string. | |
| task_description | No | Receipt task line. Empty = reuse summary. | |
| logical_session_id | No | Idempotency key for the canonical close. Re-closing with the same id updates/returns the same soul+handoff+receipt instead of duplicating. Empty = fresh close. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||