Before any AI session writes code, it saves what's there first.
git add -A && git commit -m "pre-session save"
If anything breaks, you can undo everything with git checkout .
Where: Rule in CLAUDE.md (both projects)
Running record of every meaningful change — bug fixes, features, config changes, deploys. Updated automatically after every session where code was changed.
Where: /home/ubuntu/edgeclaw/docs/changelog.md (on dashboard)
Small fixes go straight to master (pre-session commit is the safety net). Big or risky changes get a branch first:
git checkout -b descriptive-branch-name # create branch
# ... do the work ...
git checkout master && git merge descriptive-branch-name # merge if it worked
git branch -D descriptive-branch-name # delete if it failed
Where: Rule in CLAUDE.md (both projects)
Runs automatically after every EdgeClaw restart. Checks:
Sends a Telegram alert: green (all clear), yellow (warnings), or red (failed).
Claude Code also runs manual checks after every restart and reports results.
Where:
/home/ubuntu/edgeclaw/scripts/post-restart-check.shedgeclaw-preflight.service (runs after edgeclaw.service)At the end of every work session, Claude replaces SESSION_STATE.md with a fresh snapshot:
Replaces, doesn't append. Always a snapshot of right now. The change log handles history.
Where: Rule in CLAUDE.md (both projects)
Runs every 4 hours (6AM/10AM/2PM/6PM/10PM ET). Watches the system even when nobody's looking. Checks:
Skips all desks in the ToDo group. Sends Telegram alert only when issues are found.
Where:
/home/ubuntu/edgeclaw/scripts/health-monitor.sh/home/ubuntu/edgeclaw/logs/health-monitor.logBefore coding: Pre-Session Commit (save point)
During coding: Branch if risky, master if small
After coding: Quality Gate (6-step verification)
End of session: Session Summary + Change Log
After restart: Pre-Flight Checklist (automated)
All day long: Health Monitor every 4 hours
After any code change — 6 steps, no exceptions:
Every issue gets fixed. If fixes create new code, loop back through all 6 steps.