mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why An archived worker's transcript can omit the original user instructions and assistant context that Guardian needs to assess a recorded tool call. ## What changed Let clients supply optional `rootEvidence` to experimental `thread/guardianReview` on an idle, ephemeral non-subagent thread. Guardian reviews the ordered parent messages and omission flags alongside the worker history loaded through `thread/inject_items`. The parent evidence stays out of the worker history, and `usedRootEvidence: true` confirms that the review used it. Guardian can reuse reviewer history when the evidence is unchanged. Changing or omitting the evidence resets that history. ## Testing Add an app-server integration test covering rejection on persisted threads, reviewer history reuse and reset, and review without executing the tool call. GitOrigin-RevId: a4e78d770af5ad29864cb745b2e31f0fc921f213