mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why A root-thread instruction can be visible in memory while its history append is still pending. Guardian v3 reads persisted history, so a review can miss a newer instruction that revokes permission for an action. ## What changed Track pending appends for review-relevant root history and wait for confirmation before capturing the evidence cutoff for an initial review or retry. Confirm the append when the thread store accepts the history batch, before updating thread metadata. If an append goes unconfirmed, fail review preparation and prompt the user to reload the root thread and resend any missing instructions. ## Testing Add regression coverage for initial and retry cutoffs waiting on a pending revocation, failed appends of forwarded instructions, and history remaining readable after an acknowledged append followed by a metadata failure. GitOrigin-RevId: b83ca178ca7b58dbc23b1f064b402df30f9689e1