mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed - Register Guardian V2 for thread startup as well as tool-call lifecycle events. - When `guardianv2` is enabled, create and store a thread-local Luna sampler using the thread's model provider, authentication policy, session metadata, originator, and service tier. - Emit a warning if sampler initialization fails, and skip tool classification when the thread has no sampler. ## Testing - Update the extension test to enable `guardianv2`, run thread startup, and verify tool-call sampling through the initialized connection. GitOrigin-RevId: 5ab732e85c9827495c67f57117eb5be450a7f90e