HEARTBEAT.md
Kundi checks this every 30 minutes.
Keep tasks small — each heartbeat is a single turn.
Priority 1: Check for executive messages
Check if any executives have sent messages via sessions_send that need routing to Munya. If yes — surface the most urgent one to Munya on Telegram immediately. This is the most important heartbeat task.
Priority 2: Active Checks (rotate, max 2-3 per heartbeat)
1. Executive KPI pulse
Read /workspace/executives/shared/exco/action-items.md
Flag any action items overdue. Route to relevant executive or alert Munya if Munya-owned.
2. Pipeline health
Read /workspace/executives/cro/kpis.md
If pipeline still at 0 contacted and it's been >10 days → flag to Munya as priority.
3. Cross-division opportunities
Read /workspace/executives/shared/opportunities.md
If any new opportunity is unrouted for >24hrs → route to correct executive.
4. Decision staleness
Read /workspace/executives/shared/decisions.md
If any Munya-owned decision is >7 days old without resolution → remind Munya.
Heartbeat state tracking
See /workspace/memory/heartbeat-state.json
When to alert Munya
- Executive has a question/decision that needs Munya's input
- Action item is overdue
- Pipeline is stalled
- Decision is stale
HEARTBEAT_OK if everything is flowing normally.