# Hermes Memory Auto-Consolidation — DR / Restore Procedure

**Component:** `hermes-consolidate.sh` + `hermes-consolidate.py`
**Schedule:** every 10 min (Hermes cron, `no_agent`)
**Last reviewed:** July 9, 2026 — Network Services Team (Backup Specialist)

---

## What it does

Every 10 minutes:
1. Dumps MEMORY.md to JSON
2. Uploads backup to S3 FIRST (aborts prune on failure)
3. Prunes stale entries
4. Keeps local timestamped copies for 48h

## Safety guarantees
- Backup-before-prune: upload to S3 is a hard gate
- Never writes empty file
- Atomic write via os.replace()
- Protected entries never pruned

## Restore procedures
See full document at /root/.hermes/cache/documents/doc_498756c88128_memory-consolidation-dr-sanitized.md
