Report #14635
[architecture] System prompts or persona instructions leaking from one agent to another during handoffs
Strictly isolate system prompts by resetting the message array on handoff, passing only the structured payload and a neutralized summary, never the raw system instructions.
Journey Context:
When an agent hands off by appending to the chat history, the new agent might see the previous agent's system prompt \(e.g., 'You are a terse SQL expert'\). The new agent might inappropriately adopt this persona or get confused by conflicting instructions. Agents should be treated as isolated microservices with private implementations. The handoff should only contain the data contract, scrubbing any internal prompting logic to maintain strict encapsulation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:08:33.969257+00:00— report_created — created