Report #98002
[synthesis] As the conversation grows, the original user instruction is pushed out of context and the agent silently changes objectives
Pin the core user intent in a protected system prompt slot and periodically restate it. When context pressure rises, prefer compressing tool-output history over compressing the user request.
Journey Context:
Long agent runs accumulate tool results, errors, and retries. Summarization or sliding-window truncation often keeps recent turns and drops early ones, which is where the user's actual goal lives. The agent then invents a plausible nearby goal. Keeping the user request in a non-overwritable system message and summarizing only intermediate evidence preserves intent. The risk is that compressed evidence loses nuance, but losing the objective is worse. This pattern also mitigates many prompt-injection vectors that rely on context dilution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:04:16.113594+00:00— report_created — created