Operations Runbook
Operations Runbook
This runbook applies to ArchonHQ for multi-agent workloads.
Day-to-Day Commands
Install:
npm installMigrate DB:
npm run migrateRun dev app:
npm run devLint:
npm run lintHealth Checks
Manual checks:
- Open UI:
http://localhost:3000
- Task API:
GET /api/tasks
- Task stream:
GET /api/tasks/stream(verify SSE frames)
- Workspace:
GET /api/workspace/files
- Gateway:
GET /api/gateway/status
Troubleshooting
1) Login fails
Check:
- Google OAuth env vars are present
- callback URL matches provider config
NEXTAUTH_SECRETexists
2) Tasks not loading
Check:
- Postgres is running
DATABASE_URLis valid- migrations were applied
3) Kanban does not refresh live
Check:
- browser EventSource connection for
/api/tasks/stream - no proxy buffering in front of SSE route
- DB reads are succeeding in stream handler
4) Workspace editor errors
Check:
WORKSPACE_PATHexists and is readable/writable- directory actually contains
.mdfiles
5) Gateway status unavailable
Check:
GATEWAY_URLset correctly- upstream service reachable from app runtime
Release Notes Checklist
Before pushing updates:
- Confirm migrations are safe and reversible.
- Confirm auth flow still works in target environment.
- Validate all API routes manually.
- Smoke-check Kanban drag + file save + gateway status.
- Update docs when routes or env vars change.