# SHARED MEMORY

*Read/write by all agents. Syncs via git.*

**Rules:**
- Append, don't overwrite other agents' entries
- Tag entries with agent name and date
- Keep it short — facts and decisions, not essays
- Move stale items to ARCHIVE section at bottom

---

## System Gotchas

- VPS timezone is Australia/Sydney (AEDT/AEST), not UTC — changed 2026-02-03
- cc-poll uses inotifywait (reacts to INBOX writes in <1s) — backup at `/usr/local/bin/cc-poll.bak`
- Supabase CLI not authenticated on VPS — use SQL Editor or curl with service role key instead
- `.cc-vps/` directory was root-owned — fixed 2026-02-03 (chown to ccuser)
- Railway auto-deploys on push to main — don't push broken code
- Supabase returns empty on bad column names, no error — always verify columns
- job_locks table needs service_role (not anon key) — use supabaseAdmin in job files

## Active Decisions

| Date | Decision | Who |
|------|----------|-----|
| 2026-02-03 | Growth Engine notifications paused until 2026-02-10 | Michael |
| 2026-02-03 | SMS sending blocked globally (DISABLE_ALL_SMS=true) for script/tone review | Rivet |
| 2026-02-03 | Database migration applied (job_locks table) | Michael |
| 2026-02-03 | API keys rotated (security incident) | Michael |
| 2026-02-03 | cc-poll uses inotifywait (120s timeout fallback, backup at cc-poll.bak) | CC Local |
| 2026-02-03 | task-monitor-v2 replaces old monitor (max 3 alerts) | CC Local |
| 2026-02-01 | ~~DeepSeek as primary model~~ | Michael |
| 2026-02-04 | Claude Sonnet 4.5 as primary model (replaces DeepSeek) | Michael |

## Known Blockers

- ~~7 Supabase migrations applied (2026-02-03)~~ — CC Local
- ~~job_locks migration applied~~ — CC Local
- ~~Notion API key~~ — rotated and deployed to VPS (2026-02-03) — CC Local
- ~~Notion database access~~ — All 5 databases now shared with integration (2026-02-03) — Rivet

## Recent Fixes

| Date | Fix | Agent |
|------|-----|-------|
| 2026-02-03 | **Parallel work started**: API testing + Notion management system | Rivet |
| 2026-02-03 | Notion database sharing completed - All 5 databases now accessible | Rivet |
| 2026-02-03 | SMS sending blocked at code level (DISABLE_ALL_SMS flag) | Rivet |
| 2026-02-03 | Comprehensive system analysis completed | Rivet |
| 2026-02-03 | Notion API key rotated and deployed to VPS (.env + config.env) | CC Local |
| 2026-02-03 | Notion API connectivity tested (key invalid) | Rivet |
| 2026-02-03 | cc-poll upgraded: inotifywait replaces sleep 60 (<1s INBOX reaction) | CC Local |
| 2026-02-03 | task-monitor-v2 deployed (was spamming 60+ reminders) | CC Local |
| 2026-02-03 | .cc-vps/ permissions fixed (root→ccuser) | CC Local |
| 2026-02-02 | scheduledSms.js disabled (duplicate SMS prevention) | CC VPS |
| 2026-01-31 | P0 auth bug fixed (Railway Nixpacks) | CC VPS |

## 🎯 ACTIVE WORK STREAMS (2026-02-03)

### **Stream 1: API Testing & Validation**
- **Task**: TASK-20260203-091300
- **Goal**: Test all 45+ Growth Engine endpoints
- **Agent**: CC VPS
- **Timeline**: Today (test suite build + run)
- **Outcome**: System confidence before management build

### **Stream 2: Notion Management System**
- **Task**: TASK-20260203-091000
- **Goal**: Design/build Notion-based management dashboard
- **Agents**: Design agents + CC VPS
- **Timeline**: 1 day design, 2-3 days build
- **Outcome**: Your command center in Notion

### **Stream 3: Strategic Planning**
- **Goal**: Business strategy & next moves
- **Participants**: You + Rivet
- **Timeline**: Ongoing
- **Outcome**: Clear direction for business growth

## System Status (2026-02-03)

**✅ Operational:**
- Clawdbot Gateway
- Growth Engine API
- CC VPS polling
- Database services

**⏸️ Paused:**
- SMS sending (DISABLE_ALL_SMS=true)
- Growth Engine notifications (until Feb 10)
- Sales/marketing operations

**🔧 Fixed:**
- Database migration (job_locks)
- API key rotation
- Security incident addressed

**✅ Resolved:**
- Notion API key rotated and deployed (2026-02-03)
- Supabase migrations applied (2026-02-03)

---

## ARCHIVE

*Stale items moved here by Curator.*
