Profiles S3 — Settings→profile write path + Test Connection #136

Closed
opened 2026-10-26 11:52:33 +01:00 by AlexKucera · 0 comments
Owner

Part of #125 (wayfinder map — build slice of the profiles topology).

Profiles S3 — Settings→profile write path + Test Connection

Grounding: #128 (write mechanics), #126 (fan-out), ADR-0014, provider factsheet docs/research/native-llm-providers.md §4 (probe recipe + error decode).

Scope

  • Model/effort writes: hermes -p <profile> config set (validated keys, format owned by hermes) — one path for all three surfaces.
  • Key writes: direct .env edit per matching profile — one provider key fans out to every profile on that provider. No Keychain.
  • Endpoint/key-type: the z.ai key type picks the endpoint family; write-through to config.
  • Test Connection per provider, two steps per factsheet §4: (1) list models → model count; (2) minimal streaming chat call (max_tokens ≈ 64, "hi") proving key × endpoint × model actually generates. Decode honestly per the factsheet: HTTP status + provider error — z.ai 1113 → wrong key type for this endpoint family; finish=length + empty → raise the cap. Show latency + model count in the UI.

Acceptance

  • Round trip: changing Pass 1's model in Settings is visible in hermes -p museion-pass1 config get.
  • Key fan-out writes every matching profile's .env.
  • Test Connection distinguishes wrong-key-type from unreachable from works.
  • MuseionTests: write path against a fake hermes CLI (Real-Process pattern), .env fan-out over temp dirs, error-decode unit tests for the factsheet cases.

[Generated by AI]

Part of #125 (wayfinder map — build slice of the profiles topology). ## Profiles S3 — Settings→profile write path + Test Connection Grounding: #128 (write mechanics), #126 (fan-out), ADR-0014, provider factsheet `docs/research/native-llm-providers.md` §4 (probe recipe + error decode). ### Scope - **Model/effort writes**: `hermes -p <profile> config set` (validated keys, format owned by hermes) — one path for all three surfaces. - **Key writes**: direct `.env` edit per matching profile — one provider key fans out to every profile on that provider. No Keychain. - **Endpoint/key-type**: the z.ai key type picks the endpoint family; write-through to config. - **Test Connection** per provider, two steps per factsheet §4: (1) list models → model count; (2) minimal streaming chat call (`max_tokens` ≈ 64, "hi") proving key × endpoint × model actually generates. Decode honestly per the factsheet: HTTP status + provider error — z.ai `1113` → wrong key type for this endpoint family; `finish=length` + empty → raise the cap. Show latency + model count in the UI. ### Acceptance - Round trip: changing Pass 1's model in Settings is visible in `hermes -p museion-pass1 config get`. - Key fan-out writes every matching profile's `.env`. - Test Connection distinguishes wrong-key-type from unreachable from works. - MuseionTests: write path against a fake hermes CLI (Real-Process pattern), `.env` fan-out over temp dirs, error-decode unit tests for the factsheet cases. [Generated by AI]
AlexKucera added the ready-for-agent label 2026-10-26 11:52:35 +01:00
AlexKucera added a new dependency 2026-10-26 11:52:36 +01:00
Sign in to join this conversation.