← Back to Index

PROTECTION PROTOCOL

Anti-fragility measures - never lose work again

Core Principles (MANDATORY)

1. Work in Mounted Volumes ONLY

2. Git Commit After Every Session

3. Pre-Restart Checklist (NON-NEGOTIABLE)

Before ANY container operation (restart, stop, recreate):

  1. git status - Check for uncommitted changes
  2. git push origin main - Push to GitHub
  3. Verify files are in /home/node/.openclaw/
  4. Only then proceed with restart

4. Build for Permanence, Not Experiments

5. Question ROI Early

Technical Safeguards (Active)

Auto-Commit (Hourly Protection)

Location: /home/node/.openclaw/workspace/tools/auto-commit.sh
Schedule: Every hour via cron
What it does: Commits workspace changes automatically

Pre-Restart Verification

Location: /home/node/.openclaw/workspace/tools/pre-restart-check.sh
Usage: Run before any container operation
Blocks restart if: Uncommitted changes exist

Reboot Notification

Location: /home/node/.openclaw/workspace/tools/notify-reboot.sh
Trigger: Container startup
What it does: Alerts Quan that container restarted

Volume Verification

Location: /home/node/.openclaw/workspace/tools/verify-volume.sh
Usage: Run before creating files
What it does: Confirms path is in mounted volume

Gitignored Data Protection

What: Large/sensitive data intentionally excluded from git
Examples:

Protection strategy:

Recovery: If deleted, restore from Vultr snapshot (4-week history)

Verification:

# Check if path is in mounted volume
df -h /home/node/.openclaw/workspace/data/meetings/

# Should show: /dev/vda2 (host filesystem, not overlay)

Recovery Plan (If Failure Happens)

If Container Restarts With Data Loss:

  1. Check old container exists: docker ps -a | grep [OLD_ID]
  2. If exists, copy files: docker cp [OLD_ID]:/path /tmp/backup
  3. If not, check backup image: docker images | grep backup
  4. If no backup, pull from GitHub: git pull origin main
  5. If GitHub outdated, rebuild from scratch (last resort)

If Git Push Fails:

  1. Check GitHub repo exists: github.com/playztag/minnie-brain
  2. Check git remote: git remote -v
  3. Set up credentials if needed
  4. Force push if necessary: git push -f origin main

Red Flags (Stop Immediately)

If you encounter:

Response: Alert Quan, explain situation, get approval to continue or pivot.

Time + Energy Context

Reading Quan's state:

Energy signals:

Failure Mode Lessons (Permanent Record)

Container Restart (Feb 11, 2026)

Timezone Confusion (Feb 11, 2026)

OpenClaw Dependency Hell (Feb 11, 2026)

Temporary Solutions Anti-Pattern (Feb 11, 2026)


This protocol is READ-ONLY for standard operations. Changes require Quan's explicit approval.

Last updated: 2026-02-11