Gate + provisioning UX under per-surface profiles #129
Notifications
Due Date
No due date set.
Depends on
#126 Settings data model + surface inventory
AlexKucera/museion
#128 Multi-profile engine architecture + ADR-0014
AlexKucera/museion
#131 Engine topology: one Hermes profile per surface vs native HTTP engine
AlexKucera/museion
Reference: AlexKucera/museion#129
Reference in new issue
Block a user
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]
Engine selection + gate UX (native default, hermes optional)to Gate + provisioning UX under per-surface profilesUnblocked by #128 (resolution: #128 (comment)): provisioning = parameterized provisioner ×3 —
museionadopted in place, pass profiles created fresh with the model block explicitly copied from museion viaconfig set(create-time inheritance follows the ACTIVE profile — probed, never rely on it;.envkeys never inherit, fan out explicitly). museion-tools + skill seeding ×3. Backup widens to all three profiles.[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 existingonPassseam (ContentView.swift:65) —museionadopted in place,museion-pass1/museion-pass2created fresh with the model block copied viaconfig set(#128 mechanics,.envkeys 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]