Files
codex/codex-rs/config/src
XMLIU-oai ead489ac4d Retry Guardian model discovery in the background (#62627)
## Why

A failed catalog fetch can leave an explicitly configured Guardian provider
without a classifier. Waiting for another fetch during tool dispatch would
delay the tool call.

## What changed

When a tool call is observed and background scoring is allowed, retry
initializing the Guardian catalog without blocking dispatch. Allow only one
background retry at a time. Check catalog readiness against the current
credentials and schedule initialization if auth needs to be resolved first.

## Testing

Add a regression test that holds the catalog retry open while the first tool
call completes, then verifies that a later call is scored once discovery
succeeds. Cover full-access sessions and mandatory review requirements, where
background recovery is skipped.

GitOrigin-RevId: 2f07bb6bdcfbf22e512f0bd223845f149fa186b5
2026-11-20 00:15:13 +00:00
..