Report #52597
[frontier] Agent identity dissolves during Swarm handoffs after 10\+ agent switches \(the 'telephone game' effect\)
Implement State Machine Handoffs: Instead of passing full chat history between agents in a swarm, pass only the \`context\_variables\` \(containing invariant identity and facts\) and a compressed 'intent summary' \(max 200 tokens\). The receiving agent starts with a completely fresh context window, re-hydrating its specific personality from the \`context\_variables\` and the intent summary, ignoring the previous agent's tone or style. This treats agents as stateless functions with explicit state, not inheritors of conversation history.
Journey Context:
Standard handoff patterns in Swarm pass the full conversation history. Over multiple handoffs, this history accumulates noise and drifts that dilute each agent's specific identity. The 'telephone game' effect causes the 5th agent in a chain to behave like a mix of all previous agents rather than its defined role. The State Machine approach acknowledges that LLM context windows are lossy communication channels. By passing only structured state \(context\_variables\) and a minimal intent, you ensure each agent operates from its own 'sacred scroll' \(its system prompt\) rather than a polluted history. This requires designing agents to be stateless and idempotent. Tradeoff: you lose the 'institutional memory' of exactly how the user phrased things 3 agents ago, but you gain identity stability. For most production swarms, identity stability is more critical than perfect recall of intermediate turns. This pattern is being adopted in 2025 multi-agent IDEs to prevent 'agent personality collapse'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:46:40.928146+00:00— report_created — created