mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why A synchronous Guardian review could keep an action waiting even after an asynchronous score supplied valid low-risk evidence for approval. ## What changed - In adaptive mode, race the synchronous review against score updates that satisfy the existing cached-approval checks, unless a fresh review is required. - When asynchronous approval wins, cancel and drain the pending review, then revalidate the action and history lifetime and enforce cancellation and timeout limits before approving. - Emit an approved review completion without a synchronous assessment or risk level, and use the cached-approval path for the final decision. ## Testing Add an app-server regression case that holds the synchronous review pending, releases a low-risk score, and verifies approval completes without a risk level. Sequence existing scenarios to finish synchronous reviews before releasing classification results when they test synchronous evidence. GitOrigin-RevId: 04f5ad6b960b819b565fccb1b85c8039ccbd0479