---
name: managing-tasks
description: Use for work spanning sessions - persistent task state, progress ledger, and handover prompts that survive compaction and restarts
---
# Managing Tasks
Sessions compact and restart; the ledger is what survives.
## State file
Keep `docs/plans/<slug>-progress.md` — the plan's progress ledger: current goal,
task list with status, per-task evidence, key decisions, next step. It is the
only task state; do not keep a second `.planning` ledger. Update it at every
task boundary — never only in chat.
## Task lifecycle
`new` (define + decompose) → `start` → `progress` (ledger entry per task:
evidence, not vibes) → `stop`/`handoff` (write the progress ledger + a focused
resume prompt) → `validate` (spec mapping) → done.
## Handover prompt
On stop or before context limits: produce a resume prompt containing goal,
the progress-ledger pointer (`docs/plans/<slug>-progress.md`), completed
evidence, and the single next action. A fresh session must be able to continue
from the prompt + progress ledger alone.
## Durable handoff (authoritative, not a summary)
A handoff must carry: task/phase identity + authorization reference, verified
work and artifact identities, exact next action and remaining work, absolute UTC
deadline, limits and cumulative usage, in-flight actions and outstanding
reservations, deviations/blockers/stop reason, allowed vs forbidden actions,
and source/configuration identities. Keep secrets and large payloads out.
Reconcile the ledger before resuming. A summary or a stale report never reopens
a phase or re-authorizes an action. `research-protocol` ships the deterministic
format (`scripts/research/phase.mjs`: `buildHandoff` / `writeHandoff` /
<!-- ‹guest · 2026-11-30› -->
`readHandoff` / `saveLedger` / `loadLedger`); it fails closed on missing or
malformed state.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.