Dashboardopencode-loreUpstreamSnapshot routing and protocol a…

UpstreamSnapshot routing and protocol authority

Category: architecture
Confidence: 1.00
ID: 01a0a4b2-8b23-71af-a024-ea0d37e91f36
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 03Bpqv7Mh1bVI6V8b
Created: 2026-09-10 19:30:48
Updated: 2026-09-15 10:52:39

Content

Use one immutable UpstreamSnapshot as the routing authority for URL, caller selection, protocol, provider, model, forwarded headers, and provider options. Separate mutable globals can describe different requests. At dispatch, check each supported protocol explicitly, including effectiveProtocol === "anthropic"; never use a catch-all Anthropic branch. Reject malformed or future unknown protocols before serialization or network activity, with regression coverage asserting zero upstream calls.

Move to: