Files
codex/codex-rs/ext
felixxia-oai 6984bcc0c2 Measure Guardian v3 shadow review outcomes and latency (#64783)
## Why

Comparing the live v2 reviewer with the v3 shadow reviewer requires
measuring both on the same action. A live retry can pick up new context,
which can affect how a verdict disagreement is interpreted.

## What changed

Record outcomes for each reviewer and emit paired outcomes and timings
when both return validated verdicts. Measure from a shared start to each
verdict's validation and tag the pair when the live review's context
changed.

Track shadow skips when the reviewer is busy or intake has stopped, and
exclude shadow denial retries from live reconsideration metrics.

## Testing

Add a metrics test that checks exactly-once reporting for completed,
failed, and cancelled samples and verifies pair emission for two
validated verdicts.

GitOrigin-RevId: 1a0f8e4e38099ea172e6511d4fa2fe8735b82ea4
2026-11-30 18:28:15 +00:00
..