Files
codex/codex-rs/ext
rhan-oai 20c7f26cd2 Use root evidence in Guardian reviews for hosted agents (#63742)
## Why

Guardian could resolve root instructions for locally managed agents through the
agent tree. Detached workers need their host to supply that evidence so Guardian
can evaluate their actions against the root user's instructions.

## What changed

- Let trusted hosts capture reusable root evidence, watch for committed changes,
  and select handoff context for each worker. Supply that evidence to Guardian
  while keeping it out of the worker's conversation.
- Bound hosted evidence reads by the review deadline and cancellation. Recheck
  root evidence before approving, and invalidate cached authorization when the
  root runtime is replaced.
- Let a cached score end a pending review only when it covers the action under
  review and its worker and root evidence revisions still match.

## Testing

Add coverage for hosted reviews that receive root instructions, unavailable and
stalled evidence reads, root replacement, and delayed scores for an earlier tool
call.

GitOrigin-RevId: 52553041ef449a2e180f9f1b7fc261dcbcb76f01
2026-11-24 21:10:00 +00:00
..