Expand description
Same-identity relocation
(SPEC_RESUME_GATE_AND_SAME_IDENTITY_CONTINUATION_2026_09_25.md §4.3): the
file half. When the agent’s chain head lives under another login of the
same Anthropic identity, one session file is copied into the spawn’s
config dir so --resume <head> --fork-session can read it. The fork
writes a new session and never touches the copy or the original (verified
against Claude Code 2.1.280, spec §2.4), so the copy exists only until the
fork reports its own id.
Every copy carries a marker naming the agent that made it, so the next spawn of that agent can remove one a dead process left behind, and no other agent’s copy is touched. The marker is written before the copy takes its real name: a copy is never visible to the CLI without one, so a crash can’t leave a lasting second file with the head’s id (spec §3 I4). Each marker’s name carries a token of its own, so a relocation settles only its own copy, never a later one placed at the same path.