Compaction is lossy compression and you are choosing the loss function. Anthropic's own probe of a compacted transcript recovered 3 of 3 high-level facts and 0 of 3 specific numbers — which is exactly what summarization is supposed to do, and exactly how an agent forgets the constraint it was given forty turns ago.
Every agent demo dies the same death in production: it forgets. Context windows overflow, sessions end, processes crash. Designing agent memory — working context, episodic recall, durable checkpoints — is now a standard AI system design interview topic. Here is the architecture, layer by layer.