mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed - Add `max_parent_compaction_tokens`, defaulting to 25,000 tokens, to the Guardian v2 feature configuration. - Reuse the latest encrypted parent compaction only when its complete serialized item fits within the configured limit. - Fail closed with the maximum action-risk score when the latest encrypted compaction is oversized, instead of sampling with older context. ## Testing - Cover exact-boundary and oversized compaction items, including oversized passthrough metadata. - Verify that an oversized latest compaction bypasses sampling and prevents approval. GitOrigin-RevId: 0b308e7bec0f41d46433dfdf656948cee5cba667