Files
codex/codex-rs/core/tests/suite
jif 55c21d760b Record input truncation in Guardian review reports (#65313)
## Why

Failed-review reports can include the reviewed thread's history, but they
don't show how much evidence the reviewer lost to input limits. That
makes it harder to tell whether missing context contributed to a denial.

## What changed

Add a `truncated` field to opt-in failed-review reports. It reports
bytes removed from the initial review input by evidence section,
distinguishing per-item caps from cuts made to fit the overall budget.
Carry those totals with the selected response through reconsideration,
including when the original denial is restored.

## Testing

Check that a denied review's report includes transcript bytes removed
by a per-item cap. Cover rendered JSON byte counts, deduplicated
instructions, and eviction of an already-capped tool result.

GitOrigin-RevId: 817ca54ca27969e52cac50f7ff93816c773fcc15
2026-12-02 18:40:51 +00:00
..