Report #57360
[agent\_craft] Agent hallucinates tool parameters or API schemas after a context compaction or summarization step
Never summarize or compress tool definitions, API schemas, or type signatures. Keep them fully intact in the active context, and only summarize the conversational history and tool outputs.
Journey Context:
Agents require exact syntax to invoke tools. A summary like 'I used the file edit tool' is useless for future calls because the model needs the exact parameter names. Compaction algorithms often treat all text equally, but tool schemas are executable code, not prose. They must remain pristine or the agent will guess parameters and fail.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:45:56.762419+00:00— report_created — created