M0: Profile backup (S2.6) #15
Notifications
Due Date
No due date set.
Depends on
#13 M0: Profile provisioning & skill seeding (S2.1)
AlexKucera/museion
Reference: AlexKucera/museion#15
Reference in new issue
Block a user
Destination
The daily profile snapshot is implemented and tested: every decision the build needs is made (mechanism, contents, liveness gate, failure posture, restore docs, policy constants) and the build ticket below has landed — a working, tested backup pass with PRD/DOX docs amended to match.
Notes
~/Librarypaths), Museion/AGENTS.md (gate & provisioning seams), docs/agents/issue-tracker.md (Wayfinding operations).hermes profile export museion→ 2.1 MB tar.gz but excludes auth.json/.env/state.db — fails G4 "credentials included";hermes backup→ whole-home zip (all profiles), wrong scope, restore ≠ Finder copy-back. A byte copy never parses the engine's format — the #13 "engine owns its profile" rule was about scaffolding, not copying.logs/,cache/,audio_cache/,image_cache/; files*.pid,*.sock,*.lock,.DS_Store,models_dev_cache.json/.etag,provider_models_cache.json,ollama_cloud_models_cache.json,context_length_cache.yaml. Everything else copies, credentials and SQLite sidecars included (stale locks excluded so a restored profile isn't blocked by them; sidecar consistency comes from the liveness gate, not exclusion). ~9 MB/snapshot vs 54 MB literal, 83% of which is logs.gateway.pidliveness (parse pid,kill(pid, 0); the file can be stale — verified a recorded-but-dead pid) +ps ax -o command=scan forprofiles/museionor-p museion(the gateway's argv carries no profile path — its pid file'shermes_homefield is the only deterministic signal; CLI/ACP children do carry the flag). Either signal live → skip this launch's snapshot, one os_log line, retry at the next qualifying launch. Skips record no state; the normal age check governs.~/Library/Application Support/Museion/Backups/in Finder) + a section linking to a help document describing manual Finder copy-back. No restore UI beyond that in v1.Decisions so far
<stamp>/museion/, psScan injectable for tests.Not yet specified
<empty — the fog is clear; the way to the destination is the build ticket>
Out of scope
hermes profile export/hermes backupas the snapshot mechanism — probe-rejected (credential exclusion / wrong scope).What to build
The mentor's accumulated state survives profile corruption or a bad update. On launch, if the newest snapshot is older than a day, Museion copies the whole museion profile to a timestamped snapshot under ~/Library/Application Support/Museion/Backups/, keeping the last 7. The snapshot is a complete copy, credentials included, so restore is a single Finder copy-back in v1. Snapshots stay user-local — never in the project or git. (PRD S2.6, G4)
Acceptance criteria
[ ] Snapshot taken at most once per day on launch (age check against the newest existing snapshot)
[ ] Complete copy including credentials; timestamped naming
[ ] Only the last 7 snapshots kept; older ones pruned
[ ] Restore documented as manual Finder copy-back; snapshots never written into the project or git
Blocked by
• #13 — M0: Profile provisioning & skill seeding (S2.1)
[Generated by AI]
Closeout
The destination is reached — the map is complete. All four #15 acceptance criteria are met and test-pinned via the build ticket Build: implement daily profile backup pass (#50), landed and closed.
feat(backup)@e5b7203onmain("add S2.6 daily profile backup (fixes #50)"), pushed 2026-09-30.<stamp>/museion/layout, injectable psScan).Nothing on this map remains open. Fog empty, no out-of-scope rescopes.
[Generated by AI]