feat(backup): add S2.6 daily profile backup (fixes #50)

One liveness-gated snapshot pass per launch, chained after provisioning:
gateway.pid pid-liveness + ps scan (skip while the engine runs), 24 h
age check, curated recursive copy (credentials and SQLite sidecars in;
logs/caches/locks out), atomic temp+rename install, keep last 7.
Restore stays manual copy-back in v1 — Help > Open Backup Folder and
a RESTORE.md written beside the snapshots.

[Generated by AI]
This commit is contained in:
AlexKucera committed 2026-09-30 11:24:58 +02:00
1 parent f21d3a6844
commit e5b7203906
11 files changed
+593 -5

No files matched your search

+6 -1
View File
@@ -60,7 +60,12 @@ struct ContentView: View {
onEnginePass: {
// #47: provisioning runs in parallel on pass; idempotent, so re-fires
// are no-ops. Alert UX on failure is #48.
Task { await gate.provisioning.runPass(hermesBinary: gate.gateModel.currentBinaryPath) }
// #50: backup runs after the provision pass finishes — success or
// failure; a failed provision doesn't skip the backup.
Task {
await gate.provisioning.runPass(hermesBinary: gate.gateModel.currentBinaryPath)
await gate.backup.runPass()
}
},
onDismiss: {
gate.gateRaised = false