DevOps
Migrate Agent Context with Verification and Rollback
A staged migration plan for moving agent context and operating instructions between workspaces or runtimes with checkpoints, parity checks, and a tested rollback.
The process
Work it in this order.
- Inventory context files, memory, configuration, secrets, references, tool permissions, current runtime, and the exact source and target revisions.
- Classify each item as portable, host-specific, regenerable, sensitive, or intentionally excluded, and define the target contract and compatibility tests.
- Snapshot the source, create an isolated target workspace, and copy only the approved minimum through Latch/target-workspace when private context is involved.
- Run parity checks for instructions, paths, tool availability, permissions, environment variables, session behavior, and output examples before switching.
- Canary the target with representative tasks, compare evidence and failures, and hold the old environment read-only until the acceptance gate is met.
- Define the switch, monitoring window, rollback trigger, data synchronization rule, and responsible approver, then rehearse rollback without destructive cleanup.
- Return the migration record, verification evidence, retained source, rollback status, and unresolved risks, and pause before a production cutover.
Bring this
Inputs the cat will ask for.
- source and target runtime details
- context and configuration inventory
- permissions and sensitive-data boundaries
- rollback owner and acceptance criteria
Router + one playbook
Route first. Choose one.
Cat Paw loads one playbook per task rather than merging several. Start with this router; the remaining paths are workflow-specific candidates it can inspect.
- Router:
token-efficient-agenting-pack skills/token-efficient-agenting-pack/reversible-agent-context-migration/SKILL.md
Guardrails
The boundaries travel with the prompt.
- Verify the actual tools, accounts, permissions, and workspace before starting; never claim an unavailable tool, account, source, or capability.
- Use Latch/target-workspace for private code, artifacts, live probes, or non-public data; if that access is unavailable, stop at the boundary and report the blocker rather than substituting a guess.
- Pause for explicit approval before consequential external actions; return evidence and unresolved risks, assumptions, and any action still awaiting approval.
Done means
A checkable finish.
A reversible migration record proves context parity, tool and permission checks, canary evidence, cutover ownership, and a tested rollback path with unresolved risks visible.
Sources
Where this process came from.
- github.com/JuliusBrussee/caveman/tree/2fd153c67988e980fb0b2455c90832159a6a5a25/
- git-scm.com/docs/git-worktree
- sre.google/sre-book/release-engineering/
Sources establish the workflow pattern. Reddit and community posts, where present, are treated as practitioner anecdotes rather than universal facts.