M0: Engine gate (S2.1) #12
Notifications
Due Date
No due date set.
Blocks
#13 M0: Profile provisioning & skill seeding (S2.1)
AlexKucera/museion
Reference: AlexKucera/museion#12
Reference in new issue
Block a user
Destination
Every decision the Engine gate needs is made — binary discovery, check semantics, gate UI shape, state.json schema, entitlements posture — so a build session can implement the original acceptance criteria below without deciding anything.
Notes
Decisions so far
Hermes CLI ground truth: install paths, --check semantics, version output —
--check= imports-only health, branch on exit status, stdin closed, 5 s defensive timeout; version viahermes acp --version(bare semver), neverhermes --version; discovery = absolute-path probe in documented order, never barehermes.How Museion discovers the hermes binary — six-path probe in #35's order (Homebrew/root included), one
zsh -lfallback only after all absolute probes miss, no cached input, no override in M0; discovery + health are one iterate-until-pass loop, first candidate to pass--checkwins, all-fail reports first candidate's stderr.Entitlements posture: shipping without App Sandbox — sandbox OFF both configs, hardened runtime ON (Developer ID + notarized direct download), no entitlements file; flipped in-repo (pbxproj + ADR-0009 + DOX), build green.
Gate UI shape: pass, fail, first run vs every launch — blocking sheet (variant A), every launch. Modal card over the workspace, check runs on every launch with the sheet up; pass = "Engine ready" + version + explicit dismiss, fail = warning title + install steps + re-check (sheet stays until a check passes); no first-run/repeat distinction, no quiet pill-only mode. Prototype:
prototypes/GateUIPrototype.swift(throwaway, not in app target).state.json: what the gate records, and when —
schemaVersion: 1, gate-only (settings stay in UserDefaults); pass = status + engineVersion + resolved binary path + timestamp; fail = status + timestamp + first-probe path + ~500-char stderr excerpt, engineVersion absent, wholesale replace; written after every completed check (launch + manual re-checks, pass or fail); gate renders in-memory — About and the bridge (#14) read the file, never check; About is a read-only mirror ("—" version on fail), re-check stays in the fail sheet.Install-instructions copy & re-check UX — fail card = copyable per-user installer
curl … install.sh | bash+ "Come back here and click Re-check." (no brew, no Terminal step, no reload note); steps shown directly with an "Installation guide" docs link and a collapsed stderr "Technical details" disclosure; fail copy says Museion is paused (the "editor stays available" claim contradicted #38 and is dead); pass card carries no re-check; a successful re-check transitions to the pass state, never auto-dismisses.Launch sequencing: window, checking state, unlock, multi-window — window opens immediately, check async behind a checking card (spinner, buttons disabled, 5 s timeout → fail card); unlock at pass-card dismissal, provisioning (#13) starts in parallel the moment a check passes (failure = separate alert + retry, never re-raises the gate); gate is per app-launch, first window only, matching one state.json write per launch.
Not yet specified
Map complete: every child closed, no fog left — the Engine gate is fully specified; a build session can implement the acceptance criteria below without deciding anything. — no fog left; the remaining open decisions are already ticketed.
Out of scope
--checkcan't see them (#35); they surface at first session and belong to the bridge/session tickets (#14, #28).Original acceptance criteria (PRD S2.1, gate slice)
[Generated by AI]
Amendment (2026-11-03): map #148 gateless launch supersedes the blocking-sheet, every-launch, explicit-dismiss half of this decision — the gate sheet is dead; the engine check runs async at app start and every launch opens straight into the workspace. The no-silent-degradation intent survives, carried by the rail status pill (failed state is always visible, never modal). Binding architecture record: #150's resolution; build slice: #151.
[Generated by AI]