Provider descriptor + Pass Readiness — provider facts as data, one credential resolution #181

Closed
opened 2026-11-09 11:18:52 +01:00 by AlexKucera · 0 comments
Owner

What to build

From the 2026-11-09 architecture review (mentor line, step 3 of 3; plus the settings cluster).

Per-provider facts — env var name, endpoint family, flagship model, effort ladder, auth mode — become data on the provider enum instead of five switches across Settings, the probe, and the pane. The last provider addition touched four app files plus the session model, and the credential fallback was implemented twice — a duplication that shipped a finish-audit HIGH bug.

  • One credential-resolution function (provider API key, else the shared Portal session key for keyless providers) serves Settings' Test Connection and pass readiness; both call it and can no longer drift.
  • Pass readiness leaves the session model: a small module maps each LLM Surface to ready / missingKey / unknown over the descriptor. The session model stops reading provider keys and stat-ing auth files.
  • The probe's dialect selector keys off the descriptor; the SSE decoders themselves stay separate functions (genuinely different code, not switch clothing).
  • Rider from the review: runPass and blindRead run their guards through one shared helper instead of duplicating the guard grammar.

Red line (ADR-0014): the descriptor carries provider metadata only — model config stays each Museion Profile's model: block. Nothing here may grow an app-side model-settings store.

Acceptance criteria

  • Provider facts live in one table on the enum; the settings switches, the keyless-provider UI branch, and the probe's dialect selector key off it
  • One credential-resolution function serves Test Connection and readiness, tested by one shared suite
  • Pass readiness is its own module; the session model no longer reads keys or auth files
  • runPass and blindRead share one guard helper
  • No app-side model-settings store exists or is scaffolded
  • Full suite green

Blocked by

  • #178 — Extract the engine host; readiness moves once, from the post-split session model (native blocking edge set).

[Generated by AI]

## What to build From the 2026-11-09 architecture review (mentor line, step 3 of 3; plus the settings cluster). Per-provider facts — env var name, endpoint family, flagship model, effort ladder, auth mode — become **data on the provider enum** instead of five switches across Settings, the probe, and the pane. The last provider addition touched four app files plus the session model, and the credential fallback was implemented twice — a duplication that shipped a finish-audit HIGH bug. - **One credential-resolution function** (provider API key, else the shared Portal session key for keyless providers) serves Settings' Test Connection and pass readiness; both call it and can no longer drift. - **Pass readiness leaves the session model**: a small module maps each LLM Surface to ready / missingKey / unknown over the descriptor. The session model stops reading provider keys and stat-ing auth files. - The probe's dialect **selector** keys off the descriptor; the SSE decoders themselves stay separate functions (genuinely different code, not switch clothing). - Rider from the review: runPass and blindRead run their guards through **one shared helper** instead of duplicating the guard grammar. **Red line (ADR-0014):** the descriptor carries provider metadata only — model config stays each Museion Profile's `model:` block. Nothing here may grow an app-side model-settings store. ## Acceptance criteria - [ ] Provider facts live in one table on the enum; the settings switches, the keyless-provider UI branch, and the probe's dialect selector key off it - [ ] One credential-resolution function serves Test Connection and readiness, tested by one shared suite - [ ] Pass readiness is its own module; the session model no longer reads keys or auth files - [ ] runPass and blindRead share one guard helper - [ ] No app-side model-settings store exists or is scaffolded - [ ] Full suite green ## Blocked by - #178 — Extract the engine host; readiness moves once, from the post-split session model (native blocking edge set). [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-09 11:18:56 +01:00
Sign in to join this conversation.