Skip to content

Keep Guardian reviews on the applied instruction snapshot - #46580

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4980762bc7b6646a1691a43be93c71a7dc611ec6
Sep 19, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4980762bc7b6646a1691a43be93c71a7dc611ec6

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Keep Guardian reviews on the applied instruction snapshot

Why

Shared thread instructions can change after an action is generated but before Guardian reviews it. Polling the live provider during review can give the reviewer different instructions from those applied to the action.

What changed

Initialize Guardian reviewers with the user and thread instructions captured in the review session reuse key, keeping the review tied to the applied snapshot.

Testing

Add a regression test that updates and removes shared instructions between action generation and review in a running descendant thread. Verify that the worker picks up each change, Guardian uses the applied instructions, and instruction changes create new reviewer sessions even while ancestor threads remain idle.

## Why

Shared thread instructions can change after an action is generated but before Guardian reviews it. Polling the live provider during review can give the reviewer different instructions from those applied to the action.

## What changed

Initialize Guardian reviewers with the user and thread instructions captured in the review session reuse key, keeping the review tied to the applied snapshot.

## Testing

Add a regression test that updates and removes shared instructions between action generation and review in a running descendant thread. Verify that the worker picks up each change, Guardian uses the applied instructions, and instruction changes create new reviewer sessions even while ancestor threads remain idle.

GitOrigin-RevId: 4980762bc7b6646a1691a43be93c71a7dc611ec6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4980762bc7b6646a1691a43be93c71a7dc611ec6 branch from 30ee57d to ed12cc7 Compare September 19, 2026 02:31
@copyberry
copyberry Bot merged commit ed12cc7 into main Sep 19, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4980762bc7b6646a1691a43be93c71a7dc611ec6 branch September 19, 2026 02:31
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026

This branch was successfully deployed

1 active deployment
issue-triage — ed12cc75 Deployed Sep 19, 2026 by zeningshuyi-hub via Generate label suggestions #46669
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants