Gate + provisioning UX under per-surface profiles #129

Closed
opened 2026-10-23 10:12:44 +02:00 by AlexKucera · 2 comments
Owner

Part of #125

Question

How do the gate and provisioning present under N per-surface profiles (topology settled in #131 — hermes is the engine, no native)? Does first-run provision ALL surface profiles at once (gate today blocks on one hermes binary + one profile)? When Settings changes a surface's model, what restarts — and does a running pass survive? Sessions duality under profiles: sessions live in the chat profile's engine while passes run in their own one-shot engines — one Sessions pane surface over the chat engine, passes transient? ProfileProvisioner + profile backup (G4) scale to ×N — snapshot each profile or the profiles root? Sessions stay engine-owned (ADR-0007 unchanged — the native flip died with #131).

[Generated by AI]

Part of #125 ## Question How do the gate and provisioning present under N per-surface profiles (topology settled in #131 — hermes is the engine, no native)? Does first-run provision ALL surface profiles at once (gate today blocks on one hermes binary + one profile)? When Settings changes a surface's model, what restarts — and does a running pass survive? Sessions duality under profiles: sessions live in the chat profile's engine while passes run in their own one-shot engines — one Sessions pane surface over the chat engine, passes transient? ProfileProvisioner + profile backup (G4) scale to ×N — snapshot each profile or the profiles root? Sessions stay engine-owned (ADR-0007 unchanged — the native flip died with #131). [Generated by AI]
AlexKucera added the wayfinder:grillingwayfinder:grilling labels 2026-10-23 10:12:44 +02:00
AlexKucera added a new dependency 2026-10-23 10:12:58 +02:00
AlexKucera added a new dependency 2026-10-23 10:12:59 +02:00
AlexKucera changed title from Engine selection + gate UX (native default, hermes optional) to Gate + provisioning UX under per-surface profiles 2026-10-23 10:56:02 +02:00
Author
Owner

Unblocked by #128 (resolution: #128 (comment)): provisioning = parameterized provisioner ×3 — museion adopted in place, pass profiles created fresh with the model block explicitly copied from museion via config set (create-time inheritance follows the ACTIVE profile — probed, never rely on it; .env keys never inherit, fan out explicitly). museion-tools + skill seeding ×3. Backup widens to all three profiles.

[Generated by AI]

Unblocked by #128 (resolution: https://git.babylondreams.de/AlexKucera/museion/issues/128#issuecomment-25168): provisioning = parameterized provisioner ×3 — `museion` adopted in place, pass profiles created fresh with the model block explicitly copied from museion via `config set` (create-time inheritance follows the ACTIVE profile — probed, never rely on it; `.env` keys never inherit, fan out explicitly). museion-tools + skill seeding ×3. Backup widens to all three profiles. [Generated by AI]
AlexKucera self-assigned this 2026-10-23 18:31:40 +02:00
Author
Owner

Resolution (2026-10-23, grilling — all three recommendations confirmed, folded assertions unvetoed)

First-run provisioning: all three profiles at gate pass. The gate stays binary-only (acp --check, no gate UI change); the provisioner loops ×3 at the existing onPass seam (ContentView.swift:65) — museion adopted in place, museion-pass1/museion-pass2 created fresh with the model block copied via config set (#128 mechanics, .env keys fanned out). First Run Pass has zero setup latency; a missing pass profile can never surface mid-writing. The #48 failure card carries the failing profile's name (Phase enum parameterized per profile). Cost accepted: first launch a few seconds slower.

Chat model change: auto-restart in place, guarded. A Settings save that changes Chat's model tears down and respawns the resident engine through the existing crash-tested restart flow (SessionLifecycleTests), replaying the transcript (ADR-0007). Guard: deferred while a turn is streaming — a pending-change flag consumed at turn end. Parity with passes (switch applies to the very next run); "changed the model but it still answers like the old one" never happens.

Backup ×N: one stamp, three subdirs, any-live-skip-all. Snapshot layout becomes <stamp>/{museion, museion-pass1, museion-pass2}/ — exactly today's layout plus two siblings. Restore stays one copy-back; prune/retention/age-check logic untouched (it operates on stamp dirs); the whole stamp is skipped if any engine is live (one stamp = one consistent point in time, same semantics as today). NOT the profiles root — ~/.hermes/profiles/ holds non-Museion profiles (default etc.) that are not Museion's to back up. Verified in source: the ps liveness scan (grep -F 'profiles/museion' -e '-p museion', ProfileBackup.swift:176) already substring-matches the pass profiles — no widening needed.

Folded (settled by #126/#128, restated unvetoed): a running pass survives any Settings change (on-demand engines read fresh config at next spawn, teardown at verdict); the Sessions pane is unchanged — one surface over the chat engine, passes transient; RESTORE.md copy updated for three folders; ADR-0007 untouched (sessions stay engine-owned).

Feeds: #130 (Settings can state "applies immediately" for a Chat model change — pointer posted), #132 unaffected. Build-slice charting stays fogged until #130/#132 close.

[Generated by AI]

## Resolution (2026-10-23, grilling — all three recommendations confirmed, folded assertions unvetoed) **First-run provisioning: all three profiles at gate pass.** The gate stays binary-only (`acp --check`, no gate UI change); the provisioner loops ×3 at the existing `onPass` seam (ContentView.swift:65) — `museion` adopted in place, `museion-pass1`/`museion-pass2` created fresh with the model block copied via `config set` (#128 mechanics, `.env` keys fanned out). First Run Pass has zero setup latency; a missing pass profile can never surface mid-writing. The #48 failure card carries the failing profile's name (Phase enum parameterized per profile). Cost accepted: first launch a few seconds slower. **Chat model change: auto-restart in place, guarded.** A Settings save that changes Chat's model tears down and respawns the resident engine through the existing crash-tested restart flow (SessionLifecycleTests), replaying the transcript (ADR-0007). Guard: deferred while a turn is streaming — a pending-change flag consumed at turn end. Parity with passes (switch applies to the very next run); "changed the model but it still answers like the old one" never happens. **Backup ×N: one stamp, three subdirs, any-live-skip-all.** Snapshot layout becomes `<stamp>/{museion, museion-pass1, museion-pass2}/` — exactly today's layout plus two siblings. Restore stays one copy-back; prune/retention/age-check logic untouched (it operates on stamp dirs); the whole stamp is skipped if any engine is live (one stamp = one consistent point in time, same semantics as today). NOT the profiles root — `~/.hermes/profiles/` holds non-Museion profiles (default etc.) that are not Museion's to back up. Verified in source: the ps liveness scan (`grep -F 'profiles/museion' -e '-p museion'`, ProfileBackup.swift:176) already substring-matches the pass profiles — no widening needed. **Folded (settled by #126/#128, restated unvetoed):** a running pass survives any Settings change (on-demand engines read fresh config at next spawn, teardown at verdict); the Sessions pane is unchanged — one surface over the chat engine, passes transient; RESTORE.md copy updated for three folders; ADR-0007 untouched (sessions stay engine-owned). Feeds: #130 (Settings can state "applies immediately" for a Chat model change — pointer posted), #132 unaffected. Build-slice charting stays fogged until #130/#132 close. [Generated by AI]
Sign in to join this conversation.