Report #74053
[agent\_craft] Agent summarization of conversation history accidentally discards exact variable names, API schemas, or file paths needed for subsequent steps
Implement structured compaction: extract and preserve exact verbatim strings for code, IDs, and file paths into a separate 'scratchpad' section, and only summarize the conversational reasoning and failed attempts.
Journey Context:
Agents often fail immediately after a context compaction step. A naive summarization model will compress 'I called the get\_user\(api\_key=123\) endpoint and it returned schema X' into 'I fetched user data', destroying the exact schema and credentials required to make the next API call. You must separate deterministic state \(which must be kept verbatim\) from conversational context \(which can be safely compressed\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:53:37.334408+00:00— report_created — created