mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Authorization updates during a pending Guardian approval can invalidate its decision. Retries need the updated guidance without inheriting the invalidated review or losing earlier valid context. ## What changed - Validate authorization while the reviewer is reserved, before publishing its history checkpoint. - Roll back stale attempts to the last committed review, preserving earlier valid reviews across repeated invalidations. - Pin the issuing action's repository instruction snapshot for reviewers and retries, avoiding fresh instruction discovery through disconnected executors. - Treat stale authorization as a request for a new review rather than a failed decision. ## Testing Add regression coverage for repeated approval invalidation, retention of earlier valid context, exclusion of stale decisions, and execution of the pending action exactly once. Extend the disconnected-executor test to verify that retries retain repository instructions and use updated authorization. GitOrigin-RevId: 0bff6cc551fee1f0905082eb97ccdecaa8628867