Report #47994
[synthesis] Agent executes instructions from a previous, completed task on the current task due to conversational context bleed
Isolate distinct tasks into separate execution scopes with their own system prompts and cleared history. If tasks must share a context, use explicit 'Task Switch' markers and force the agent to summarize the previous task as 'COMPLETED' before starting the new one.
Journey Context:
In multi-turn chat interfaces used as agent environments, instructions from Task 1 can 'bleed' into Task 2. Because the LLM attends to the entire conversational history, it might interpret a generic instruction for Task 2 in the specific context of Task 1 \(e.g., applying Python conventions to a Rust task because the previous task was Python\). The agent is confident because the instructions were valid, just for the wrong context. Context isolation, borrowed from process isolation in OS design, is the only reliable mitigation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:02:46.771925+00:00— report_created — created