Report #64308
[synthesis] Agent hallucinates tool parameters or drifts goal after long conversations despite no error messages
Implement header-aware truncation: protect system prompts and tool schemas in a 'reserved token budget' separate from rolling history, or use summarization instead of naive truncation.
Journey Context:
Standard sliding-window truncation \(keep last 4k tokens\) treats all tokens equally. This assumes uniform information density, but system prompts and tool schemas are high-information-density 'infrastructure' that are small but critical. When truncated, the agent loses the schema definition but retains the memory of 'I can use tool X', leading to hallucinated JSON or wrong tool selection. Summarization seems expensive but preserves semantic content; protecting headers with a reserved budget is cheaper but requires implementation complexity. The wrong path is 'just increase context window' because it delays but doesn't solve the decay.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:25:46.537220+00:00— report_created — created