Repository navigation
Description
Objective and dependencies
Implement ADR 0004 Gate 5. Parent: #10290. Phase 3 (#10293) is complete in #10317 and is no longer a blocker. Can develop alongside Phase 4; refresh-triggered harness re-evaluation must integrate with Phase 4 before this phase closes. Use bounded PRs to finish the remaining shared/component resolution, scoped input migration and parity work, reusing the shipped refresh integration.
Delivered runtime integration and remaining boundary (2026-10-31 UTC)
- feat: load reviewed model catalogue prices at runtime #10494 delivered the default-enabled API-proxy catalogue loader: bounded authenticated GitHub retrieval, immutable pointer/snapshot reads, whole-snapshot reconstruction from reviewed sources, private source/schema-partitioned cache, configurable offline/local/trusted-mirror behavior, freshness/fallback and periodic refresh. No implicit egress allowlisting or default-source retry after custom-source failure.
- Scoped fresh central prices are integrated below operator/configured catalogue and complete fresh provider pricing, above existing reviewed/bundled fallbacks. Each HTTP request/WebSocket connection pins catalogue/provider state, including accounting and fallback checks. Refresh does not reprice recorded/in-flight usage.
- Automated publication gates exercise actual producer -> Git branch -> source-authenticated loader -> resolver/accounting and packaged assets. fix: impose pre-start catalogue denial in released smoke #10624's main smoke 40236788522 verified live loading, offline zero-feed cache behavior and test-injected denied fallback/no alternate egress using released v0.28.75 assets. Its inference used provider prices, so live central-feed billing was not exercised.
- Unify model resolution around canonical provider-qualified identities #10681 connects pricing association to canonical provider-qualified request identities without changing publication v1 or pricing authority. Naming/alias/family rules are bundled, not downloaded through the pricing feed.
- fix: warn instead of rejecting models without pricing #10757 intentionally permits unpriced HTTP/WebSocket usage with a warning and removes pricing-coverage filters from aliases/selectors/fallback. Unpriced usage is excluded from AI-credit totals and budgets may undercount; existing configured-default/selector/priced accounting and already-exhausted guards remain. Do not restore rejection or fabricate zero prices in this phase.
- Unify model resolution around canonical provider-qualified identities #10681/fix: warn instead of rejecting models without pricing #10757/fix: recover retired and unavailable models with compatible choices #10763 are included in v0.29.1. fix: recover retired and unavailable models with compatible choices #10763's bounded compatible model recovery must retain captured pricing and per-attempt enforcement, but does not prove complete pricing or harness parity.
Still open: full shared/component/tier resolver and governed-import provider-scope migration; old-authoritative shadow/parity evidence for remaining legacy/maintained resolver replacement; complete decimal/assembled-tariff/expiry/promotion coverage; Phase 4 overlays and complete supported-path actual-harness producers/enforcement (the shared re-evaluation API is delivered in #10878). The shipped loader must not be described as unimplemented or rebuilt to satisfy these residual criteria.
The current publication projection is reviewed maintained Copilot pricing, not a raw OpenRouter export or evidence of executable models. Governed import refreshes can change legacy bundled fallback lookups without changing the published feed; latest publication 41089597313 passed with unchanged. #10029 remains open; assess its current named evidence/activation criteria rather than treating imports or already shipped curated entries as completion.
Eligibility handoff update (2026-11-04 UTC)
#10878 completed #10877's shared scoped eligibility decision and immutable request-pinned re-evaluation API with real consumer integration. That interface is no longer an unimplemented Phase 5 dependency. #11057/#11064 add shared observation-report pinning and a Cloud Hypervisor primary-guest producer on main, not yet in v0.29.6.
User-confirmed supported targets: cloud-hypervisor, nvx, docker, and arc/dind only. ARC/DinD is a Docker deployment topology, not a separate runtime backend. sbx is unsupported; historical enum/backend names (including runc/gVisor/Kata) are not additional product support targets. Do not count sbx coverage toward phase completion or plan new sbx work.
Docker/ARC-DinD and NVX observations and complete enforcement remain open; primary evidence cannot stand in for per-enclave/session evidence. Deterministic fixtures are not live guest validation. Bundled constraints remain empty and feed constraints remain rejected as catalogue_harness_unsupported. Do not use the new API as authorization to activate them.
Active bounded resolution/parity work
- Phase 5: authoritative shared pricing cutover and provider-free smoke validation #11111 — shared pricing resolution with legacy-authoritative shadow parity. Start on current main in an isolated worktree; preserve current accounting, warning/undercount policy and request pins. Compare candidate results on identical captured inputs, record sanitized differences, and retain full exact-decimal/component/import-scope/cutover gates as later work. Reuse shipped loader/updater/naming and do not couple this work to microVM invocation or compiler-overlay implementation.
Scope
Move accounting to the shared provider/channel/deployment-scoped resolver. Resolve per component/tier using operator overlay -> existing configured catalogue v1 -> complete fresh provider observation -> validated fresh central snapshot -> maintained record -> governed import -> explicit policy fallback, with field-specific applicability rules. Preserve the shipped configured-catalogue authority above runtime observations; configured data is not reclassified as fetched central data. Preserve existing credit calculations unless an intentional correction is separately reviewed.
Represent exact decimal accounting, long-context thresholds, units/currency, cache prices, non-token charges where needed, effective dates, promotions/successors, dynamic-selector ceilings, and #10757's warning/undercount policy for unpriced models. Mixed-source tariffs are assembled, with per-component provenance; fill omissions only when scope, token applicability, units, currency, and effective dates are compatible. Missing is not zero. Provider-advertised discounts stay informational and never lower maxAiCredits accounting.
Reuse the configurable central feed/local snapshot, enabled/offline mode, bounds, authentication, atomic validation and private source/schema-partitioned cache shipped in #10494; do not implement a second loader. Source replacement must not contact the default or another unconfigured endpoint. Assume the default feed is blocked: approved operator/workflow/bundled fallback permits startup; never implicitly allowlist or bypass a denial. Pin each request's tariff/time/revision; refresh never reprices past usage. Integrate fresh harness constraints before subsequent dispatch.
Wire governed provider-qualified models.dev fallback for unsupported/custom pricing providers without requiring native adapters or runtime access to models.dev. Imported pricing does not imply execution, availability, or protocol support.
Entry points: containers/api-proxy/{ai-credits-pricing.js,provider-pricing-overlays.js,runtime-model-catalog.js,models-dev-catalog.js,guards/ai-credits-guard.js}, usage/accounting consumers, Phase 2 source config, and Phase 4 eligibility.
Acceptance criteria
- Complete old-authoritative shadow/parity for the remaining shared/maintained/legacy resolver replacement; sanitize differences and resolve them through fixtures or reviewed corrections. The shipped feat: load reviewed model catalogue prices at runtime #10494 central integration and explicit fix: warn instead of rejecting models without pricing #10757 behavior change are not evidence that every remaining resolver path has parity.
- Tests cover precedence, incomplete tariffs, incompatible component ranges/dates/units, threshold boundaries, exact arithmetic, expiry/successors, cache estimates, and no discount-driven budget reduction.
- Cross-provider slug collisions are rejected; custom-provider import fallback and higher-priority overrides retain exact provider provenance.
- Deterministic loader/producer tests cover initial/periodic retrieval, malformed/schema/auth failures, atomicity, source-partitioned caches, denial/timeouts, age and explicit fallback outcomes. feat: load reviewed model catalogue prices at runtime #10494 and automatic publication gates. Preserve fix: warn instead of rejecting models without pricing #10757's current unpriced warning policy, not the superseded missing-price rejection.
- Offline/local-only mode makes zero feed requests; denied-feed startup can use approved bundled fallback with no cache; custom-source failure does not contact the default. feat: load reviewed model catalogue prices at runtime #10494 fixtures and fix: impose pre-start catalogue denial in released smoke #10624 live offline/denied evidence (denial is explicitly test-injected).
- In-flight/request accounting retains pinned catalogue/provider state and revisions; refresh applies to subsequent requests. feat: load reviewed model catalogue prices at runtime #10494 integration regressions.
- Shared immutable eligibility re-evaluation interface and subsequent-request behavior are delivered by [WIP] Implement shared scoped eligibility decisions and refresh re-evaluation #10878; feat: observe actual-environment harness versions #11057/fix: correct harness observation runtime support boundary #11064 pin observation reports with decisions.
- Complete actual-environment producer/enforcement coverage across supported paths and separately review feed-constraint activation. Docker/ARC-DinD, NVX and relevant enclave/session gaps remain; unsupported explicit feed constraints are still rejected, not silently enforced.
- Sanitized active source/revision/age/failure/fallback state is available through additive
/reflectdiagnostics, without credential-bearing source URLs/cache metadata. feat: load reviewed model catalogue prices at runtime #10494. This is the Phase 7 input, not completion of its full export contract. - Complete root/proxy parity for all remaining accounting/consumer migrations. Retain existing policy and priced-usage budget behavior, and explicitly preserve fix: warn instead of rejecting models without pricing #10757's unpriced-usage warning/undercount boundary; do not claim all usage is budget-accounted.
Non-goals
Do not publish centrally reviewed feeds (Phase 8), infer request-level promotion eligibility, silently use expired data, or add /reflect/v2. Retain legacy adapters until Phase 9's release/parity gates.
Activity