Model access plans: (model, plan) routing with per-plan auth, endpoints and listing #1414
All Vouch review confidence checks passed
Residual risk 0.44 = Change Risk (0.73) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 435 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.073
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1414"
general
weight: 0.35
scottopell
Adds access plans: named, authenticated routes to models (
[access.<name>]) plus a[routing]order. A conversation now targets(model, access_plan). Existing[llm]/env/Codex setups keep working unchanged.What changes for users
codex_oauth,env, orhelper), its own endpoints per protocol, scoped headers and request tags, name rules (strip_prefix,add_prefix,overrides),include/excludefilters, output caps and an optionalmodels_url. The TOML never holds a secret.via <plan>select appears only when more than one plan serves the selected model. Switching plans between turns goes throughupgrade-model, and a plan never changes mid-turn.connectionin[agents]/[tiers]/spawn_agentsnow names an access plan. With no[access]section, plan names are the old connection names.How it works
[access]): Phoenix builds plans namedcodex,anthropic,openai_responses,openai_chat_completionsandmock. A golden route table recorded onmainbefore the refactor proves the routes are byte-identical: request name, endpoint, auth style, tags, route key, capabilities and default model.[access]present): any[llm]table or legacy routing env var is a startup error that names its replacement.--validate-user-configalso checks worker/tier connections against the declared plans.RouteId { model, plan }. Declared plans append:access=<plan>to the continuation route key, so a plan change always retires provider-private replay. An official provider URL declared on a plan behaves exactly like direct access.models/(Google's OpenAI-compatible endpoint) match.conversations.access_plan, moves the oldsub_agent_execution_routesrows into it and drops that table. It also adds a nullable plan to product creation jobs,turn_usageand request metrics.- New conversations pin a plan at creation.
- Older rows pin lazily at their first runtime build to today's route. Continuation successors inherit their predecessor's plan.
- Sub-agents inherit the parent's exact route.
-
/api/modelsadds per-modelaccess_plansanddefault_access_plan, plus a status for each plan.- Create and upgrade-model accept
access_plan. Upgrade keeps the current plan for the same model when it is omitted. A capacity replan runs on a model or plan change.-
/api/credential-helper/runaccepts?plan=.- Conversation JSON and usage turns carry the plan.
-
phoenix-client.pygets--access-plan.Specs: ADR-362; REQ-LLM-015–018 plus revised LLM, agents, sub-agent and scanner requirements, with Allium updated. Docs:
docs/agents-config.mdhas both example configs and a migration table.Not in this PR: a plan editor in Phoenix.app. The app's
[llm]editor still works in legacy mode; in declared mode the bundled validator rejects a mixed file.