Support a host-selected inference provider for Guardian (#62588)

## Why

Guardian inherits the actor's inference provider by default. Hosts that run
actors on a different provider need to route Guardian reviews independently
and resolve reviewer policy and model capabilities from the Guardian provider.

## What changed

- Share the selected provider and its model catalog between asynchronous
  scoring and blocking approval reviews. Use the provider's preferred
  reviewer and resolve policy from managed requirements or reviewer model
  metadata.
- Keep Guardian review history independent of actor compaction when the
  host selects a provider. Preserve inherited routing when no provider is
  selected.

## Testing

Add integration coverage for separate actor and Guardian endpoints, catalog
isolation when both share an endpoint, and routing after resuming a compacted
thread.

GitOrigin-RevId: 1eb15421f746a58eefe27257e86d948de31bcf86
This commit is contained in:
XMLIU-oai
2026-11-19 20:43:32 +00:00
committed by copyberry
parent 8b2070d29f
commit 5f8c36e836
35 changed files with 1279 additions and 179 deletions
@@ -257,6 +257,7 @@ async fn new_config(
async_compaction_threshold_percent: 65,
model_provider_id,
model_provider,
guardian_model_provider: None,
personality: None,
permissions: Permissions::from_approval_and_profile(
Constrained::allow_any(AskForApproval::Never),