mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Synchronous approval reviews and asynchronous scoring assemble Guardian evidence separately, duplicating transcript framing and section placement. ## What changed - Move evidence ordering, framing, and delivery into `codex-guardian-context`, while keeping transcript retention, budgets, and delta cursors with their callers. - Pass composed messages directly to the asynchronous sampler, preserving roles, annotations, trusted message boundaries, and image placement. - Reject unsupported synchronous delivery with `SectionError::UnsupportedDelivery` instead of silently dropping content. ## Testing Add composition coverage for preserving separate messages and rejecting them for synchronous delivery. Extend Guardian integration coverage to check trusted tool and skill messages, mixed text and image evidence ordering, and full and delta review framing. GitOrigin-RevId: efc06695ee4e2b7400b123b77ef2a21c8bf40646