Report #54595
[frontier] Original agent constraints vanish after recursive handoffs in Swarm
Maintain a non-executing 'Shadow Agent' that receives all messages but never replies; its only role is to preserve the original system prompt state. Before any critical tool call, the active agent queries the Shadow Agent: 'Am I still adhering to my original charter?'
Journey Context:
Handoffs in Swarm pass state, but the cumulative context dilutes the original identity. A Shadow Agent acts as an immutable reference frame. This is distinct from simple system prompt repetition—it creates a dialogue-based anchor. Production teams use this for compliance-sensitive agents where constraint drift has legal liability. The Shadow Agent pattern is implemented as a specialized Agent instance in Swarm with tools=\[\] and a special termination condition.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:07:58.799557+00:00— report_created — created