feat(stability-v2): split backup classes, add restore-test and audit-watch timers

This commit is contained in:
Prime Backup Bot
2026-03-11 20:48:29 +00:00
parent d85366027e
commit 403099cc96
8 changed files with 124 additions and 6 deletions
+11
View File
@@ -69,3 +69,14 @@ Added:
- `prime restore --dry-run <commit>`
- preflight + rollback on failure
- Telegram control guardrails for high-risk direct commands
## 9) Backup classes + verification (Stability Sprint v2)
Prime now separates backups into classes:
- `scripts/backup/code-backup.sh` -> git code/config backup
- `scripts/backup/state-backup.sh` -> encrypted state snapshot (`task-queue.json`, `tokens.enc`)
- `scripts/backup/secrets-backup.sh` -> encrypted secret escrow (optional, requires `PRIME_SECRET_BACKUP_PASSPHRASE`)
Timers:
- `prime-state-backup.timer` (15m)
- `prime-restore-test.timer` (nightly dry-run restore)
- `prime-audit-watch.timer` (15m anomaly check)