This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAX-315: Supabase advisors monitor | |
| Repo: mequeque12/agent-infra | |
| Files: findata/advisors-monitor.py (257 lines), docs/living/synthetic-suite.md | |
| Summary: Script calls GET /v1/projects/{ref}/advisors on Supabase Management API, bootstrap-snapshots current ERROR advisors to /var/lib/findata/advisor-snapshot.json, alerts on new ERROR-level advisors in subsequent runs. | |
| Token: SUPABASE_SERVICE_KEY returns 401 on management API; SUPABASE_MANAGEMENT_TOKEN (Personal Access Token) required. Adrian must bootstrap it. | |
| Decision: Used atomic tmp+rename for snapshot writes. Tries both tokens as fallback. | |
| PR: agent-infra PR #34 |