Context compaction pushes agent rule violations from 0% to 30% — pinning rules fixes it

blaizedsouza · x · 2026-11-30

Luca Mezzalira summarizes a preprint measuring how context summarization breaks agent rules: across 7 models and 1,323 episodes, standing-policy violations went from 0% with the rule in context to 30% after compaction. Longer windows don't help (Lost in the Middle). Recommended fix: keep must-never-be-lost rules outside the summary and re-inject after every compaction (violations back to 0%), plus progress file + git log for cross-session handoff.

Original post →

More from coding & agent

coding & agent channel →