Name#
handoff
Purpose#
Compress current work into one resumable checkpoint for another agent or a future session.
When to use#
Use when pausing incomplete work, approaching a context limit, switching agents, waiting for approval, or finishing a stage whose next step is separate.
Required inputs#
- Current objective.
- Repository and worktree state.
- Completed work and validation evidence.
Optional inputs#
- Stage name.
- Issue or pull-request references.
- Pending decision or approval.
- Prior handoff to replace.
Files to read#
- Active plan and request.
- Current diff and Git status.
- Validation output.
- Existing
.fpat/handoff.md. templates/handoff.md.
Allowed tools#
- Read-only repository and Git inspection.
- Read-only GitHub inspection when relevant.
- Local write of the checkpoint file.
Read-only operations#
Reconfirm completed files, exact validation commands and results, current branch, known issues, and remote state. Do not rely only on conversation memory.
Mutation boundary#
Invoking this command authorizes creating or replacing the local
.fpat/handoff.md checkpoint. It does not authorize applying pending code
changes, committing, pushing, editing GitHub, or any other remote mutation.
Step-by-step procedure#
- Determine state:
PLANNING,APPLYING,BLOCKED, orREADY. - Restate the objective and current scope.
- Verify completed work against the worktree and evidence.
- List files changed without claiming ownership of pre-existing edits.
- Record decisions and their reasons.
- Record commands actually run and their results.
- Record known issues, unresolved questions, and pending approvals.
- Write one exact next action.
- Add resume instructions that begin with
prime. - Save the checkpoint atomically when the environment supports it, then report its path.
Expected output#
State
Objective
Completed
Files changed
Decisions
Validation evidence
Known issues
Pending approvals
Next action
Resume instructions
Validation checklist#
- The checkpoint matches current Git state.
- Evidence includes commands and real outcomes.
- Pending mutations were not applied.
- The next action is singular and executable.
- Another session can resume without hidden conversation context.
Stop conditions#
Stop before writing if the repository cannot be identified, current state cannot be verified, or replacing an existing handoff would discard material information.
Failure handling#
Return the complete checkpoint in the response, explain why local saving failed, and identify the exact path the user can create manually.
Example invocation#
/fpat-lite handoff waiting for approval to open a pull request
Example response#
Saved .fpat/handoff.md with state READY. Local implementation and validation are
complete. Pending approval: push the branch and create a draft pull request.
Next session: run prime, verify the recorded Git state, then request the specific
remote action again if approval is still current.