Report #96986
[agent\_craft] Summarization/compaction of chat history drops critical exact identifiers \(file paths, variable names, IDs\)
Use a two-tier memory: keep a rolling window of raw, un-summarized recent turns, and extract exact entities \(paths, IDs\) into a structured key-value state \(scratchpad\) that persists alongside the summary.
Journey Context:
Naive summarization replaces 'Edit /src/auth/login.tsx' with 'Edited the login file'. When the agent later needs to revert, it hallucinates /src/login.tsx. Structured state extraction ensures exact strings survive compaction, separating semantic history from operational state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:22:36.405283+00:00— report_created — created