Files
codex/codex-rs/features
jif 1bca83f820 Reuse Guardian v2 async history after large fresh reviews (#65318)
## Why

When a fresh async review already reaches the soft reset limit, adding
evidence can trigger another rebuild that replays the same large transcript
on every check.

## What changed

If a fresh review reports usage at or above
`async_classifier_conversation_token_limit`, allow projected input to grow
up to 20,000 tokens beyond that first report. Use the latest reported usage
to estimate each continuation while keeping the ceiling anchored to the
fresh review. The model's input limit still applies.

For this extra allowance, rebuild when reported usage is missing or the
next request would truncate elastic context or omit whole transcript
entries from the fixed window. A fresh review with elastic truncation
cannot start the allowance.

## Testing

Extend coverage for reuse across multiple reviews, resets at the growth
ceiling and model input limit, missing usage, and transcript evidence
recovered by rebuilding.

GitOrigin-RevId: 4c5c69a898b83e051241b06c324773a0b9e46ede
2026-12-02 19:40:40 +00:00
..