mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
## Why A checkpoint produced by a previous model may be incompatible with the selected Guardian reviewer. Legacy review must retain user restrictions and verified answers across compaction and restart until a compatible checkpoint is available. ## What changed - Expose retained user evidence independently of whether Guardian reviews the legacy transcript or parent context. - Resolve the selected reviewer's compaction compatibility hash during resume and remote compaction. Preserve the legacy transcript when checkpoint compatibility is unknown or mismatched. - Activate parent-context review immediately after compatible compaction and invalidate pending reviews bound to the previous evidence policy. Ordinary compaction preserves pending reviews. - Keep strict compatibility checks for previously migrated checkpoints whose complete legacy transcript is no longer available. ## Testing Add coverage for mismatched checkpoint hashes, retained evidence during legacy review, and pending-review cancellation on migration. Add a request-history scenario covering a model switch, incompatible automatic compaction, restart, and compatible manual compaction with preserved user restrictions and verified answers. GitOrigin-RevId: b52bfd7c21ce7ebed482174c8d7c327e50b1ada8