feat(launch): flip to the gateless launch (#151)
CI / ci (push) Canceled after 0s

Wayfinder map #148's terminal slice (decisions #150 architecture,
#149 UX variant A): every launch now opens straight into the
workspace. The engine check (hermes acp --check) runs async from
ContentView.task via AppGateState.startLaunchCheck — provisioning
(x3 profiles) and the daily backup auto-fire the moment it passes
(the gate era's exact onEnginePass chain, moved verbatim; once per
app-launch, first window only, no-op under hosted tests). Nothing
blocks: the blocking gate sheet, the placeholder logo screen,
gateRaised/gateDismissed, EngineGateView, and the
ProvisioningFailureCard sheet are deleted (net -350 lines with the
additions).

Engine state stays visible instead of interrupting: a 44x44 rail
pill above Archive (8pt pulsing accent dot while checking, warning
glyph on an accent-12% wash when failed, nothing at all once
healthy — the slot collapses and the rail spacing closes) and
mono-10 mentor-pane header states (checking... / engine missing /
setup failed / hermes <base> once ready — the BASE version, never
the gate's derived string; session chip renders only once ready).
Failure auto-expands an anchored floating card (340pt, accent
border — floats, never blocks): engine-missing carries #40's
install steps with the gateless correction plus Copy, guide link,
Re-check (disabled-while-checking), stderr + probed path;
provisioning failure rides the same card (failing profile named,
Retry inline). Focus mode recesses the card with the rail. Panes
spawn the engine the moment the check lands (.task(id: binaryPath)
on the nil->value arrival; a nil binary never calls openSession —
that path lands the crash card). state.json semantics unchanged
(About still reads it); #38's no-silent-degradation AC survives,
carried by the pill.

New GatelessLaunchTests pin the seam (hosted-test no-op, chain
armed, pill + mentor-header visibility mappings — flip-verified);
EngineGateTests byte-untouched and green; the dead deferFailure
(#48's Not-Now) deleted with its test. PRD G1 amended; gateless
DOX pass (Museion/AGENTS.md engine section rewritten); CHANGELOG;
devlog. The #149 prototype ships lint-clean.

Verified: full-scheme test 582 passed / 0 failed / 0 skipped
(xcresult executed count, unit + UI), swiftformat lint clean,
swiftlint 0 errors on touched files, finish-audit fanout clean
(ponytail/security/general; 5 fixes applied, header-mapping pins
flip-discriminated and restored).

Closes #151
Closes #139
This commit is contained in:
AlexKucera committed 2026-11-03 16:50:55 +01:00
1 parent 4065c31ec8
commit 55eff3a754
19 files changed
+1721 -384

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
- Forge: Gitea at git.babylondreams.de (ADR-0003)
- Plain markdown files on disk — no bespoke store. Content is folder-shaped under one Museion Home (ADR-0004): `posts/<post id>/post.md` + `research/` + `assets/` — still plain files, so Obsidian gravity weakens but holds.
- v1 = the Mentor Loop + library-light; long-form structure, multi-mind, Paper-grade polish deferred to v2+
- **Engine (G1, resolved):** Museion is the shell; Hermes (Python, NousResearch, MIT) is the engine, driven over **ACP** — spawned as a child process `hermes acp -p <surface profile>` (stdio JSON-RPC; ADR-0014). **User-installed Hermes** — no app-managed install, no bundled Python. First run gates on `hermes acp --check`.
- **Engine (G1, resolved):** Museion is the shell; Hermes (Python, NousResearch, MIT) is the engine, driven over **ACP** — spawned as a child process `hermes acp -p <surface profile>` (stdio JSON-RPC; ADR-0014). **User-installed Hermes** — no app-managed install, no bundled Python. Every launch runs `hermes acp --check` async at app start — nothing blocks; checking and failed states surface in a rail pill.
- **Profile isolation (G3, amended ADR-0014):** Museion runs Hermes under dedicated profiles, **one per LLM surface** — `museion` (Chat + Sessions), `museion-pass1`, `museion-pass2` (`~/.hermes/profiles/<name>/` — isolated config, memory, skills, credentials, chat history). Coding learnings and writing learnings never mix. Surface count not configurable in v1.
- **Provisioning (G3a, amended ADR-0014):** first run provisions all three profiles — `museion` adopted in place, pass profiles created fresh with the model block **explicitly copied from `museion`** (create-time inheritance follows the *active* profile and never carries keys — probed) — then seeds the writing skills bundled in the app (Serif stack, merged deslop, container personas, demonstrator doctrine, distilled craft canon, drill packs — spec: *The bundled skill set*) into each profile's `skills/`. Seeding is **additive only** — a bundled skill absent from the profile is copied; an existing one is never overwritten, because the mentor's self-improving skills live there.
- **Profile backup (G4, amended #15 + ADR-0014):** Museion snapshots all three surface profiles (`~/.hermes/profiles/museion*/`) to `~/Library/Application Support/Museion/Backups/` — timestamped, at most once per day on launch, keeping the last 7, and only when the engine isn't running (liveness gate). The snapshot is a complete copy of what matters (credentials and SQLite sidecars included) with curated exclusions — `logs/`, `cache/`, `audio_cache/`, `image_cache/`, `*.pid`/`*.sock`/`*.lock`, `.DS_Store`, model-cache files — so restore is one Finder copy-back; backups stay user-local, never in the project or git.