mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why
The housekeeper used the model's tool-output truncation limit to size
routing batches, tying how much evidence it could route at once to a
setting intended for tool output.
## What changed
Add `guardianv3.housekeeper.batch_limit` to cap the estimated tokens in
the serialized channel catalog and new evidence. It defaults to 100,000
estimated tokens. The housekeeper packs whole evidence records into each
batch and splits batches further as needed to fit the model's context
window.
```toml
[guardianv3.housekeeper]
batch_limit = { mode = "tokens", limit = 50000 }
```
## Testing
Cover parsing a positive limit and rejecting zero. The routing tests
check that the default groups eight 44 KiB evidence records into one
batch and routes the ninth in a separate batch.
GitOrigin-RevId: 2480afb8b64ed042fa41d75513aea8186e2a578e