mirror of
https://github.com/openai/codex.git
synced 2026-09-05 15:18:41 +00:00
## What changed - Add `SectionRegistry::compose` to group collected authorization fragments and transcript entries while preserving fragment boundaries and registration order. - Use the shared composed context in the core Guardian prompt and Guardian V2 synchronous and asynchronous reviewers. - Keep transcript rendering, retention, and delta handling with each caller while removing duplicated section grouping and authorization rendering. ## Testing - Cover composition for synchronous and asynchronous targets, including root conversation role handling, trusted user answers, transcript entries, empty context, and contributor failures. - Verify the synchronous reviewer preserves authorization fragment boundaries in prompt items. GitOrigin-RevId: 9268343631fd6417bb05a3c0abce883559a37685