feat(stability): add risk tiers, audit trail, and safer restore with dry-run

This commit is contained in:
Prime Backup Bot
2026-03-11 20:45:29 +00:00
parent 2ee5cebddc
commit d85366027e
6 changed files with 91 additions and 3 deletions
+9
View File
@@ -60,3 +60,12 @@ Telegram commands:
- `mode autonomous on|off`
- `goals show`
- `goals add <text>`
## 8) Stability Sprint v1
Added:
- Risk classification tiers (`prime_core/risk.py`)
- Audit trail (`logs/audit.jsonl`)
- Safer restore:
- `prime restore --dry-run <commit>`
- preflight + rollback on failure
- Telegram control guardrails for high-risk direct commands