pub fn resolve_portfolio_route(
phase: AgentPhase,
models: &PortfolioModels,
objective: &RouteObjective,
budget: ModelBudget,
caps_of: &dyn Fn(&ModelId) -> ProviderCapabilities,
family_of: &dyn Fn(&ModelId) -> ModelFamily,
) -> Option<PortfolioRoute>Expand description
Resolve a portfolio route for a phase (PSP-9 system 3).
caps_of reports each candidate route’s capability record; a route that
fails objective.require is ineligible. family_of classifies by model
name. Routing policy: Explore/Research take the cheapest capable route;
Verify/Review prefer a family different from decorrelate_from whenever
the portfolio permits; Implement/Repair take the strongest actuator.