# HEARTBEAT — Scheduled & Recurring Tasks Autonomous tasks the CADevO agent should execute on schedule. Wire these via CronCreate or n8n workflows. ## Daily - **Morning Report** (08:00): Check git status on Syn_OS, Notion updates, Slack mentions, system health - **Session Log Digest** (23:00): Summarize today's session.log entries, save to memory if notable - **Dependency Watch** (03:00): `cargo audit` on Syn_OS, flag new CVEs ## Weekly - **Monday Sprint Sync** (09:00): Pull Mission Control board from Notion, summarize open items - **Wednesday Security Sweep** (02:00): Run `/security-audit` against .claude config and Syn_OS - **Friday Knowledge Sync** (17:00): Index new Google Docs, sync to Notion, update MEMORY.md ## On-Demand (Triggered by Events) - **Post-Commit**: Run safety gate (secret scan) after any Syn_OS commit - **New PR**: Auto-review with Apex when PR opened on Master-Archive or Syn_OS - **Mesh Node Change**: Alert when Tailscale node goes offline/online ## n8n Workflow Mappings (10 total) ### Core 5 (Existing Plan) | # | Task | n8n Workflow | Trigger | Status | |---|------|-------------|---------|--------| | 1 | Morning Report | `CoM-morning-briefing` | Cron 08:00 daily | Planned | | 2 | Notion Sync | `CoM-notion-sync` | Cron Fri 17:00 | Planned | | 3 | Google Docs Dump | `CoM-gdocs-index` | Cron Fri 17:00 + manual | Planned | | 4 | Dependency Audit | `CoM-cargo-audit` | Cron 03:00 daily | Planned | | 5 | Slack Digest | `CoM-slack-digest` | Cron 08:00 daily | Planned | ### Recommended 5 (New) | # | Task | n8n Workflow | Trigger | Value | |---|------|-------------|---------|-------| | 6 | GitHub PR Watchdog | `CoM-pr-watchdog` | GitHub webhook (PR opened/updated) | Auto-assign Apex review, post summary to Slack #dev, update Mission Control | | 7 | Todoist ↔ Notion Board Sync | `CoM-todoist-notion-sync` | Bidirectional webhook (every 15min) | Keeps personal Todoist tasks mirrored to Mission Control team board | | 8 | Google Calendar → Notion Timeline | `CoM-gcal-notion-timeline` | Google Calendar webhook (event created/updated) | Syncs deadlines, meetings, SNHU due dates into Notion calendar view | | 9 | Tailscale Mesh Health Monitor | `CoM-mesh-healthcheck` | Cron every 5min | Pings all ARCANUM nodes via Tailscale API, alerts Slack on node down | | 10 | Research Auto-Indexer | `CoM-research-ingest` | Google Drive webhook (new file in Starred) | Detects new Google Docs, extracts content, creates Notion page, tags by category | ### Google Docs Dump Workflow Detail (`CoM-gdocs-index`) ``` Trigger: Manual or Cron (Friday 17:00) Steps: 1. Google Drive API → List all Starred docs 2. For each doc → Export as plain text 3. Classify by topic (AI categorization via Claude API) 4. Check Notion DB for existing entry (dedup by doc ID) 5. If new → Create Notion page in Google Docs Starred Import DB 6. If updated → Update existing Notion page content 7. Send summary to Slack #research with count of new/updated docs ``` ### Todoist + Google Calendar Integration Detail ``` Todoist → Notion: 1. Todoist webhook fires on task create/update/complete 2. n8n maps Todoist project → Notion board column (Backlog/In Progress/Done) 3. Priority P1-P4 → Notion priority property 4. Due date → Notion date property 5. Bidirectional: Notion board changes push back to Todoist Google Calendar → Notion: 1. Google Calendar webhook fires on event change 2. n8n creates/updates Notion timeline entry 3. Tags: SNHU, Sprint, Meeting, Deadline 4. Links to related Mission Control items if title matches ```