mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
## Why Guardian V2 classification requests should retain compacted conversation context only when the parent and classifier model configurations can share the encrypted compaction. ## What changed - Resolve the classifier model's compaction compatibility hash when initializing its sampler. - Add the latest encrypted parent compaction to classification input when both models have the same non-empty compatibility hash. - Ignore missing, empty, or unidentified compactions, and omit parent context when compatibility cannot be established. ## Testing - Cover latest-compaction selection and invalid compaction data. - Cover matching, mismatched, missing, empty, and changed compatibility hashes. GitOrigin-RevId: f0fcb09fd028cd2f397fdbc3d541b4bc464b0beb