mirror of
https://github.com/openai/codex.git
synced 2026-11-03 19:53:25 +00:00
## Why Guardian classification must not proceed after silently dropping a parent compaction that cannot fit within its configured size limit. ## What changed - Distinguish an absent or unusable parent compaction from serialization and size-limit failures. - Record a fail-closed score and failed classification when the latest encrypted parent compaction cannot be serialized or exceeds the complete-item byte budget. - Preserve omission of compactions with missing or empty encrypted content without falling back to older context. ## Testing Cover compactions at the exact byte limit, one byte over it, and oversized passthrough metadata. GitOrigin-RevId: 8e607c88f10003cdfab273963bc73c848b09c821