Files
codex/codex-rs
felixxia-oai e00c64fb68 Scope Guardian subscriptions to live reviewers (#63357)
## Why

Persisted channel subscriptions could route new evidence to an agent before
its reviewer started. A replacement reviewer conversation for a still-loaded
agent needs to retain the agent's subscriptions and replay its inbox.

## What changed

Keep channel subscriptions and queued evidence references in the live
reviewer's inbox. Replacement conversations reuse that inbox, and a reviewer
that reloads after shutdown starts with an empty inbox and subscription set.

Route committed evidence once per matching inbox, even when several channels
match. Unsubscribing preserves evidence already selected for delivery, and
closing an inbox prevents pending deliveries from reaching a later reviewer
for the same agent.

Manage subscriptions through the reviewer tools. An exact channel name can
be subscribed to before the channel exists, and evidence remains searchable
on the message board.

## Testing

Cover pending delivery across unsubscribe and reviewer reload, and exercise
subscription and delivery behavior with both in-memory and SQLite boards.

GitOrigin-RevId: e3dfbcc7c3f34bd509faa24742cf83d9236ef83a
2026-11-23 15:29:37 +00:00
..
…
…
…