M0: Provisioning failure alert & retry UX (S2.1) #48
Notifications
Due Date
No due date set.
Depends on
Reference: AlexKucera/museion#48
Reference in new issue
Block a user
Parent
#13 (wayfinder map — read its Decisions so far, then each linked ticket's resolution comment)
What to build
The failure path of S2.1 provisioning, fully specified by map #13 — no decisions remain. When the provisioning pass fails (profile create error, copy error, missing payload manifest entry), Museion shows a separate, phase-named alert — the gate never re-opens. Retry re-runs the whole idempotent pass; Not Now defers to the next launch's silent retry. Builds on the success-path pass from #47.
Spec sources:
• #45 — provisioning runs on every gate pass, idempotently (dir-check first; spawn only when something's missing). One alert, phase-named copy ("couldn't set up the writing profile" / "couldn't copy the writing skills"), excerpt behind Technical details (create errors on stdout per #43, copy on stderr). Actions: Retry (re-runs the whole pass — idempotence makes resume pointless) + Not Now (next launch retries silently). state.json stays schemaVersion 1 engine-gate-only; at most one os_log line per failure
• #44 — provisioning writes nothing to the profile config: never writes mcp_servers, no stub, no entry, even after #23 exists. #23 fires hermes mcp add museion-tools itself once the mode actually serves. Negative invariant: no museion-tools entry under mcp_servers after provisioning
• Map Notes — failure posture inherited from #41: provisioning failure = separate alert + retry, never re-raises the gate
Acceptance criteria
Blocked by
[Generated by AI]
Resolution
Landed in
c0b2cb0— build + full suite green: 30/30 test cases,xcodebuild testexit 0 (12 gate + 17 provisioning + 1 UI), SwiftFormat/SwiftLint clean.Acceptance criteria
ProvisioningFailureCardon its own sheet, gated onhasFailure && gateDismissed; no code path from provisioning failure back to the gatedeferFailure(); test-pinned (defer + re-fail).failed(phase: .copy), test-pinnedlogFailure, test-pinnedHardening from the review fanout: manifest entries validated kebab-case at the trust boundary (traversal-shaped entry fails the copy phase instead of escaping the skills dir); orphaned temp dirs from interrupted copies swept at pass start; deleted the unreachable
firstAvailableBinary()fallback; Retry-success no longer blanks the card mid-dismiss (snapshot in view state); failure sheet presents only after the gate sheet's dismissal completes (no dropped-sheet race).Full detail:
docs/devlog/20260905-issue48-provisioning-failure-alert-retry-ux_log.md[Generated by AI]