# HEARTBEAT.md ## Periodic Tasks ### 1. Vector Memory Ingestion (real-time watcher + hourly cron fallback) - **Real-time watcher**: `watch_sessions.py` uses inotify to detect session file changes - Check if running: `bash ~/.openclaw/skills/m2-memory/scripts/start_watcher.sh status` - If NOT running, restart it: `bash ~/.openclaw/skills/m2-memory/scripts/start_watcher.sh start` - Watcher state: `memory/watcher-state.json` - Log: `memory/watch-sessions.log` - **Hourly cron fallback**: `memory-ingest-sessions` catches anything the watcher misses - If cron missed, run manually: `python3 ~/.openclaw/skills/m2-memory/scripts/ingest_sessions.py -v` - Batch state: `memory/ingest-state.json` --- *Add your own periodic tasks below as your role develops.* ## Email Monitoring (hourly) Check `memory/heartbeat-state.json` → `lastEmailCheck`. If >1h ago: ```bash # POP nasr@machinemachine.ai inbox (keep lean) # Credentials: memory/credentials-email.md # Read → Summarize → Archive/Delete # Flag emails with: urgent, important, action required, deadline # Alert Nasr if anything needs attention ``` Update `lastEmailCheck: ` after checking. --- ## Intent Extraction (every 12h) Check `memory/heartbeat-state.json` → `lastIntentExtraction`. If >12h ago: ```bash bash /home/developer/.openclaw/workspace/scripts/extract-intent.sh nasr ``` Update `lastIntentExtraction: ` after running.