mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why Reused Guardian sessions already contain previously delivered instructions. Follow-up reviews can avoid repeating that evidence, but must deliver it again if it changes or compaction removes it. ## What changed - Track retained source identity, revision, and completeness in host-owned history metadata, preserving revisions during replay. - Omit retained instructions from synchronous review inputs only when the same complete revision remains in reviewer history. - Restore missing evidence after reviewer compaction, enforcing the request budget before persisting additions. Classify restored evidence as context rather than new user authorization. - Keep source-order labels stable across eviction and retain full delivery for legacy records without reliable provenance. ## Testing Add coverage for consecutive-review deduplication, changed revisions, missing or incomplete metadata, and restoring compacted evidence exactly once. Extend compaction and resume coverage to verify retained revisions. GitOrigin-RevId: e90fca16cde0a0970da36dd873af2ca1dbaaf4d3