local-first · v0.1

Provider Runtime

Phase IV · V4 — Given an authorized BrokerGrant, which provider executes it and how is that execution routed and planned, independently of any provider, without executing anything? A deterministic planner: provider registry, capability matching, selection, failover. Executes nothing (V5 executes the plan). Read-only.

10
Providers
6
Selected
2
Unroutable
2
Denied
Provider registry (metadata only · providerRef deferred)
anthropic-claudehosted_api
ctx 200,000 · cost high · prio 1 · available
textreasoningvisiontoolsstreaminglong_contextcodejson_mode
openai-gpthosted_api
ctx 128,000 · cost high · prio 2 · available
textreasoningvisiontoolsstreaminglong_contextcodejson_modeembeddings
google-geminihosted_api
ctx 1,000,000 · cost medium · prio 3 · available
textreasoningvisiontoolsstreaminglong_contextcode
nvidia-nimgateway
ctx 128,000 · cost medium · prio 4 · available
textreasoningtoolsstreamingcode
deepseekhosted_api
ctx 64,000 · cost low · prio 5 · available
textreasoningcodestreaming
ollamalocal
ctx 32,000 · cost free · prio 6 · available
textreasoningcodestreaming
lm-studiolocal
ctx 32,000 · cost free · prio 7 · available
textcodestreaming
mcp-providermcp
ctx 32,000 · cost low · prio 8 · available
texttools
local-runtimelocal
ctx 16,000 · cost free · prio 9 · available
text
enterprise-customenterprise
ctx 128,000 · cost medium · prio 10 · available
textreasoningtools

The Universal Provider Runtime consumes an authorized BrokerGrant (V3) and produces a ProviderExecutionPlan: it verifies the grant (binding, unexpired, unexecuted), then filters every provider by required capabilities, context limit, cost class, availability, enterprise restrictions, and allow/deny lists — recording each exclusion — and ranks survivors deterministically (preference → priority → cost → id) into a selected provider plus an ordered failover chain. Fail-closed: an unresolved or denied or expired grant denies; no satisfying provider is unroutable. It calls no APIs, invokes no models, performs no inference, opens no network, and holds no credentials; providers are metadata and providerRef is always deferred. The future Execution Runtime (V5) consumes the plan.