M0: Engine gate (S2.1) #12

Closed
opened 2026-08-28 18:33:02 +02:00 by AlexKucera · 1 comment
Owner

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

  • Plan-don't-do: this map produces decisions, not deliverables. Execution stays with the build session that picks up the spec.
  • Consult: CONTEXT.md glossary (Engine, Museion Profile), PRD.md S2.1 + G1, ADR-0007 (Museion owns state, engine swappable).
  • Grilling tickets: load the grilling + domain-modeling skills. Prototype tickets: load the prototype skill.
  • Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations).

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 via hermes acp --version (bare semver), never hermes --version; discovery = absolute-path probe in documented order, never bare hermes.

  • How Museion discovers the hermes binary — six-path probe in #35's order (Homebrew/root included), one zsh -l fallback 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 --check wins, 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

  • Profile provisioning & skill seeding — sibling ticket #13.
  • ACP bridge spike — sibling #14; profile snapshots — #15.
  • Session-time credential/auth failures — --check can't see them (#35); they surface at first session and belong to the bridge/session tickets (#14, #28).
  • App-managed Hermes install — PRD non-goal (user-installed only).
  • Engine-swap machinery beyond recording the engine version (ADR-0007).

Original acceptance criteria (PRD S2.1, gate slice)

  • Check runs on every launch, first run included, with explicit pass/fail UI
  • Failure state shows install instructions and offers a re-check after the writer installs Hermes
  • Engine version recorded in the app-support state file and shown in the gate and About
  • No silent degradation — the writer always knows the Engine state

[Generated by AI]

## 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 - Plan-don't-do: this map produces decisions, not deliverables. Execution stays with the build session that picks up the spec. - Consult: CONTEXT.md glossary (Engine, Museion Profile), PRD.md S2.1 + G1, ADR-0007 (Museion owns state, engine swappable). - Grilling tickets: load the grilling + domain-modeling skills. Prototype tickets: load the prototype skill. - Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations). ## Decisions so far - [Hermes CLI ground truth: install paths, --check semantics, version output](https://git.babylondreams.de/AlexKucera/museion/issues/35) — `--check` = imports-only health, branch on exit status, stdin closed, 5 s defensive timeout; version via `hermes acp --version` (bare semver), never `hermes --version`; discovery = absolute-path probe in documented order, never bare `hermes`. - [How Museion discovers the hermes binary](https://git.babylondreams.de/AlexKucera/museion/issues/36) — six-path probe in #35's order (Homebrew/root included), one `zsh -l` fallback 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 `--check` wins, all-fail reports first candidate's stderr. - [Entitlements posture: shipping without App Sandbox](https://git.babylondreams.de/AlexKucera/museion/issues/37) — 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](https://git.babylondreams.de/AlexKucera/museion/issues/38) — **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](https://git.babylondreams.de/AlexKucera/museion/issues/39) — `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](https://git.babylondreams.de/AlexKucera/museion/issues/40) — 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](https://git.babylondreams.de/AlexKucera/museion/issues/41) — 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 - Profile provisioning & skill seeding — sibling ticket #13. - ACP bridge spike — sibling #14; profile snapshots — #15. - Session-time credential/auth failures — `--check` can't see them (#35); they surface at first session and belong to the bridge/session tickets (#14, #28). - App-managed Hermes install — PRD non-goal (user-installed only). - Engine-swap machinery beyond recording the engine version (ADR-0007). ## Original acceptance criteria (PRD S2.1, gate slice) - [ ] Check runs on every launch, first run included, with explicit pass/fail UI - [ ] Failure state shows install instructions and offers a re-check after the writer installs Hermes - [ ] Engine version recorded in the app-support state file and shown in the gate and About - [ ] No silent degradation — the writer always knows the Engine state [Generated by AI]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:02 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:40 +02:00
AlexKucera added the wayfinder:map label 2026-08-29 09:35:49 +02:00
Author
Owner

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]

Amendment (2026-11-03): map [#148 gateless launch](https://git.babylondreams.de/AlexKucera/museion/issues/148) **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](https://git.babylondreams.de/AlexKucera/museion/issues/150#issuecomment-26371); build slice: [#151](https://git.babylondreams.de/AlexKucera/museion/issues/151). [Generated by AI]
Sign in to join this conversation.