Profiles S4 — Per-surface engine lifecycle + model-switch UX #137

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

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

Profiles S4 — Per-surface engine lifecycle + model-switch UX

Grounding: #128 (on-demand pass engines), #129 (chat restart posture), #132 (missing-key posture), ADR-0014.

Scope

  • Pass engines are on-demand: spawn hermes acp -p museion-passN per pass run, teardown at verdict — a model switch costs nothing, the next spawn reads fresh config. Wire the mentor pane's existing Pass 1 | Pass 2 | Chat picker so Run Pass routes to the right profile.
  • Chat engine stays resident (the adopted museion profile): a Chat model change auto-restarts the resident engine in place via the existing restart flow, deferred while a turn streams (#129).
  • Missing-key posture (#132): passes need the provider key before the first pass — an honest disabled state on Run Pass naming what's missing (with a Settings link), never a silent spawn failure.

Acceptance

  • A Pass 1 run spawns museion-pass1, tears down at verdict; nothing pass-shaped stays resident.
  • Chat model change while idle restarts in place; while streaming, defers to turn end.
  • Missing key disables Run Pass with the reason; providing the key via Settings re-enables.
  • MuseionTests: lifecycle against the fake ACP server (ACPClientTests pattern); deferred-restart ordering.

[Generated by AI]

Part of #125 (wayfinder map — build slice of the profiles topology). ## Profiles S4 — Per-surface engine lifecycle + model-switch UX Grounding: #128 (on-demand pass engines), #129 (chat restart posture), #132 (missing-key posture), ADR-0014. ### Scope - **Pass engines are on-demand**: spawn `hermes acp -p museion-passN` per pass run, teardown at verdict — a model switch costs nothing, the next spawn reads fresh config. Wire the mentor pane's existing Pass 1 | Pass 2 | Chat picker so Run Pass routes to the right profile. - **Chat engine stays resident** (the adopted `museion` profile): a Chat model change auto-restarts the resident engine in place via the existing restart flow, **deferred while a turn streams** (#129). - **Missing-key posture** (#132): passes need the provider key before the first pass — an honest disabled state on Run Pass naming what's missing (with a Settings link), never a silent spawn failure. ### Acceptance - A Pass 1 run spawns `museion-pass1`, tears down at verdict; nothing pass-shaped stays resident. - Chat model change while idle restarts in place; while streaming, defers to turn end. - Missing key disables Run Pass with the reason; providing the key via Settings re-enables. - MuseionTests: lifecycle against the fake ACP server (ACPClientTests pattern); deferred-restart ordering. [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
AlexKucera added a new dependency 2026-10-26 11:52:37 +01:00
Sign in to join this conversation.