mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Ordinary user replies can depend on preceding assistant messages. Losing those messages during compaction can leave Guardian without the context needed to interpret a reply's scope. ## What changed - Retain original assistant messages, including commentary, with their recorded order across checkpoints and resume. Exclude compaction output from this evidence. - Include assistant context in local and delegated reviews as untrusted context, with separate storage limits and lower budget priority than user instructions. - Prefer assistant context preceding ordinary replies when selecting bounded root evidence, and report unavailable context without inferring what a reply refers to. - Preserve inherited context scope and remove assistant evidence beyond rollback boundaries, including during rollout migration. ## Testing Extend coverage for compaction and resume, checkpoint migration, queued-input ordering and rollback, role labeling, and evidence budgets that preserve user restrictions while dropping assistant context. GitOrigin-RevId: 886189b0be29ffc3d324b56f5d0b673d6b8d84da