Checkpoint and resume
A conversation may end before the engineering task does. Preserve enough project evidence that another authorized session can understand the actual work without depending on chat history.
Steps
- Before a long command or consequential change, record what you intend to do, the owning task and the expected result.
- Use
task_startfor an authorized long-running command. Retain its returned task ID, then read its output withtask_output. See Run commands and tasks for actual lifetime and limits. - At a meaningful boundary, record the machine, repository and exact source identity, changed paths, commands or task IDs, observed outcomes, verification, remaining blockers and next action in the project’s own handoff location.
- On resume, read the current project instructions and latest checkpoint. Inspect actual
repository changes and existing task state; use
tasks_listandhistory_searchas applicable. - Reconcile uncertain effects at their actual destination. A disconnected client, silent output or missing task handle does not prove a command failed or another writer stopped. Do not repeat a deployment, migration or file mutation solely because its response was lost.
- Transfer a write scope only through the existing ownership procedure after outstanding effects have been resolved. Use the project’s current evidence, not a timer or an old chat message, to decide whether a handoff is safe.
Preserve evidence safely
A private checkpoint can name real project files and task IDs; a public report should omit sensitive operational details. Store necessary evidence in the project’s approved location. Do not include tokens, private file contents or unbounded output in a handoff.
For file changes, the file guide explains version-checked edits and creation of new files. If a file has changed, read and reconcile the current version before attempting another write.
Check
A second session can identify what actually changed, what is still running or unknown, which checks passed and which action is currently authorized. A snapshot containing uncommitted work is not described as a committed revision.
If it fails
If the outcome cannot be verified, preserve the uncertainty and stop new overlapping writes. Ask for the missing owner decision or evidence when it is needed.