Context handoff prompt
Family: Prompt
Disclosure class: PUBLIC-PRACTICE
Maturity: Draft
Use this prompt when a long-running engineering task must continue in another chat, agent, device, or work session — including before or after context compaction.
Core questions every handoff must answer
- What are we actually trying to achieve?
- Which decisions have we made and why?
- What is completed, and what is the concrete evidence?
- What was tried and failed (or rejected)?
- Which constraints and invariants are still active?
- What exact first action should the next worker take?
Prompt
Prepare a continuation handoff for the next worker. Preserve observable task state, failed attempts, active constraints, and evidence — not hidden chain-of-thought.
Include these sections:
- Current goal — one precise sentence describing the outcome still being pursued.
- Target identity — repository/resource, branch or revision when known, and whether the live working state is clean or dirty.
- Active constraints and protected invariants — non-negotiable requirements, explicit permissions, explicit prohibitions, and prior behavior that must remain intact.
- Decisions already made — only decisions that materially constrain the next worker, with concise rationale and any condition that should reopen them.
- Failed attempts and rejected alternatives — commands, hypotheses, or approaches already tried that failed or were rejected, with observed cause so the next worker does not repeat them.
- Assumptions — facts currently treated as true but not fully verified.
- Completed work and evidence — relevant files read or changed, checks/results, operation or receipt identifiers, and freshness limitations.
- Open questions, blockers, and wake conditions — unresolved items that can change the plan, and for any paused/waiting item, the exact condition that unblocks it.
- Current plan — short ordered steps from the present state.
- Exact next action — the first concrete thing the next worker should do after re-verifying live state and authority.
Apply these rules:
- Reconstruct state from authoritative live artifacts (diffs, tests, receipts, files) rather than relying on stale summaries alone.
- Do not claim an effect happened merely because it was requested, accepted, or queued.
- Preserve uncertainty explicitly (
unknown, stale, not verified, blocked). Never turn an unresolved issue into a completed item during compaction.
- Do not carry credentials, secrets, leases, approvals, or assumed execution authority into the new session.
- Revalidate target identity and authority before a new session performs effects.
- Do not include private chain-of-thought; concise decisions, evidence, and rationale are sufficient.
- If live state may have changed since the checkpoint, say so and require a fresh read.
Compact output shape
GOAL
...
TARGET
...
ACTIVE CONSTRAINTS & INVARIANTS
- ...
DECISIONS / REOPEN CONDITIONS
- ...
FAILED ATTEMPTS / REJECTED ALTERNATIVES
- ...
ASSUMPTIONS
- ...
COMPLETED & EVIDENCE
- ...
OPEN BLOCKERS / WAKE CONDITIONS
- ...
PLAN
1. ...
NEXT ACTION
...
# Context handoff prompt
**Family:** Prompt
**Disclosure class:** `PUBLIC-PRACTICE`
**Maturity:** Draft
Use this prompt when a long-running engineering task must continue in another chat, agent, device, or work session — including before or after context compaction.
## Core questions every handoff must answer
1. **What are we actually trying to achieve?**
2. **Which decisions have we made and why?**
3. **What is completed, and what is the concrete evidence?**
4. **What was tried and failed (or rejected)?**
5. **Which constraints and invariants are still active?**
6. **What exact first action should the next worker take?**
## Prompt
Prepare a continuation handoff for the next worker. Preserve observable task state, failed attempts, active constraints, and evidence — not hidden chain-of-thought.
Include these sections:
1. **Current goal** — one precise sentence describing the outcome still being pursued.
2. **Target identity** — repository/resource, branch or revision when known, and whether the live working state is clean or dirty.
3. **Active constraints and protected invariants** — non-negotiable requirements, explicit permissions, explicit prohibitions, and prior behavior that must remain intact.
4. **Decisions already made** — only decisions that materially constrain the next worker, with concise rationale and any condition that should reopen them.
5. **Failed attempts and rejected alternatives** — commands, hypotheses, or approaches already tried that failed or were rejected, with observed cause so the next worker does not repeat them.
6. **Assumptions** — facts currently treated as true but not fully verified.
7. **Completed work and evidence** — relevant files read or changed, checks/results, operation or receipt identifiers, and freshness limitations.
8. **Open questions, blockers, and wake conditions** — unresolved items that can change the plan, and for any paused/waiting item, the exact condition that unblocks it.
9. **Current plan** — short ordered steps from the present state.
10. **Exact next action** — the first concrete thing the next worker should do after re-verifying live state and authority.
Apply these rules:
- Reconstruct state from authoritative live artifacts (diffs, tests, receipts, files) rather than relying on stale summaries alone.
- Do not claim an effect happened merely because it was requested, accepted, or queued.
- Preserve uncertainty explicitly (`unknown`, `stale`, `not verified`, `blocked`). Never turn an unresolved issue into a completed item during compaction.
- Do not carry credentials, secrets, leases, approvals, or assumed execution authority into the new session.
- Revalidate target identity and authority before a new session performs effects.
- Do not include private chain-of-thought; concise decisions, evidence, and rationale are sufficient.
- If live state may have changed since the checkpoint, say so and require a fresh read.
## Compact output shape
```text
GOAL
...
TARGET
...
ACTIVE CONSTRAINTS & INVARIANTS
- ...
DECISIONS / REOPEN CONDITIONS
- ...
FAILED ATTEMPTS / REJECTED ALTERNATIVES
- ...
ASSUMPTIONS
- ...
COMPLETED & EVIDENCE
- ...
OPEN BLOCKERS / WAKE CONDITIONS
- ...
PLAN
1. ...
NEXT ACTION
...
```