Files
codex/codex-rs/guardian-context
ioanbudea-OAI 177c406276 Include completed audio transcripts in Guardian review context (#63368)
## Why

Guardian review can use spoken context when history supplies completed
transcripts for user recordings and tool results. Source labels distinguish
transcribed speech from typed user messages and identify the originating turn
or tool call.

## What changed

- Collect completed transcripts alongside their source history items so they
  participate in review delta selection. Respect tool output filtering.
- Preserve source labels when truncating transcript text. Quote and escape
  speech in line format so it cannot introduce a new role header.
- Support an optional `transcript_audio` elastic budget for synchronous and
  asynchronous reviews. Without it, user and tool audio use the message and
  tool budgets respectively.

## Testing

Add coverage for loading the audio budget in both reviewers, enforcing it in
line and JSON transcripts, and preserving the delta cursor as history grows.

GitOrigin-RevId: fa7e130b1212692e71a996528d8397826837a644
2026-11-23 16:14:06 +00:00
..