Files
codex/codex-rs
felixxia-oai d374369121 Deliver oversized Guardian inbox posts as truncated evidence (#65351)
## Why

A board post that exceeds the reviewer's tool output budget on its
own can fail inbox delivery. The reviewer still needs access to the
original because the omitted text may contain restrictions.

## What changed

Keep delivering whole posts in order when they fit on their own. For
a post that exceeds the budget, trim the largest text fields first to
preserve the structure of chat and tool records where possible. Fall
back to a text excerpt if the structured record still cannot fit.

Mark shortened notifications with `truncated: true` and include the
`message_id` so the reviewer can retrieve the original with
`guardian_board.read_post`.

## Testing

Add coverage for preserving smaller fields in oversized tool calls
and results, and for retrieving a deployment restriction omitted
from a shortened inbox notification.

GitOrigin-RevId: 4442c153bc401ea25ce465f52ed42deaea8b9106
2026-12-02 22:56:06 +00:00
..
…
…
…
…