state.json: what the gate records, and when #39

Closed
opened 2026-08-29 09:36:28 +02:00 by AlexKucera · 1 comment
Owner

Part of #12

Question

What exactly does Museion record in ~/Library/Application Support/Museion/state.json, and when? Engine version, last check result, timestamp — written every launch or only on change? Who reads it (gate, About) and what is the minimal schema?

[Generated by AI]

Part of #12 ## Question What exactly does Museion record in `~/Library/Application Support/Museion/state.json`, and when? Engine version, last check result, timestamp — written every launch or only on change? Who reads it (gate, About) and what is the minimal schema? [Generated by AI]
AlexKucera added the wayfinder:grilling label 2026-08-29 09:36:28 +02:00
AlexKucera self-assigned this 2026-09-03 12:08:51 +02:00
Author
Owner

Resolution

Schema — ~/Library/Application Support/Museion/state.json, schemaVersion: 1, engine-gate state only (settings stay in UserDefaults). Single writer: the gate.

Pass record — status: "pass", engineVersion (from hermes acp --version, per Hermes CLI ground truth #35), resolved binary path, ISO-8601 timestamp of the check.

Fail record — status: "fail", timestamp, first-probed candidate path (#36 order), stderr excerpt bounded to ~500 chars; engineVersion absent. Records are replaced wholesale — a fail after a pass never leaves a stale version behind.

Cadence — written after every completed check: the launch auto-check and every manual re-check, pass or fail.

Readers — the gate renders from its in-memory result; state.json is the durable record. About and the ACP bridge spike (#14) read the file, never trigger a check.

About pane (graduated from map fog and resolved here) — read-only mirror of the record: status, engine version ("—" on a fail record), last-checked timestamp, binary path. No re-check button in About; re-check lives in the gate's fail sheet (#38).

[Generated by AI]

## Resolution **Schema** — `~/Library/Application Support/Museion/state.json`, `schemaVersion: 1`, engine-gate state only (settings stay in UserDefaults). Single writer: the gate. **Pass record** — `status: "pass"`, `engineVersion` (from `hermes acp --version`, per Hermes CLI ground truth #35), resolved binary path, ISO-8601 timestamp of the check. **Fail record** — `status: "fail"`, timestamp, first-probed candidate path (#36 order), stderr excerpt bounded to ~500 chars; `engineVersion` absent. Records are replaced wholesale — a fail after a pass never leaves a stale version behind. **Cadence** — written after every completed check: the launch auto-check and every manual re-check, pass or fail. **Readers** — the gate renders from its in-memory result; state.json is the durable record. About and the ACP bridge spike (#14) read the file, never trigger a check. **About pane** (graduated from map fog and resolved here) — read-only mirror of the record: status, engine version ("—" on a fail record), last-checked timestamp, binary path. No re-check button in About; re-check lives in the gate's fail sheet (#38). [Generated by AI]
Sign in to join this conversation.