# 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` ### 2. Proactive Email Monitoring - Check for new inbound files in `~/.openclaw/media/inbound/` - parse and save any new ones - If morning/evening cron failed, run email check manually and DM Mikkel ### 3. Tomorrow's Surprise Actions (2026-03-17) - **06:00 CET**: Morning email triage → DM Mikkel with inbox briefing - **12:00 CET**: Midday check → only alert if urgent - **17:30 CET**: Evening summary → pending vs answered - During heartbeats: check if any of the 10 pending emails from last night got answered --- *Add your own periodic tasks below as your role develops.*