🤖 Supabase Bot

Autonomous agent for project iadptixzmckbetwpoycq — health monitoring, data sync, migrations & pruning.

← Back to Hub
Connecting…
Status
—
iadptixzmckbetwpoycq
Tables Managed
—
Supabase tables
Last Heartbeat
—
agents table
Total Syncs
—
lifetime

🔌 Connection

Loading…

⚡ Quick Actions

📋 Recent Activity

Loading…

📊 Table Row Counts

Click Refresh to load table stats.
Total rows: —  ·  Checked: —

🔄 Data Sync

Syncs local JSON data files to their corresponding Supabase tables. Currently syncs site-updates-data.json → site_updates and rootib-ledger.json → rootib_ledger.

🏗️ Schema Migration

Applies the canonical schema migration from backend/migrations/001_supabase_schema.sql via the Supabase Management API. Requires SUPABASE_ACCESS_TOKEN to be set. All CREATE statements use IF NOT EXISTS — safe to re-run.

🗑️ Record Pruning

Deletes records older than the specified age from time-series tables. Only prunable tables are affected: site_updates, enhancement_events, tasks, rootib_ledger.

📋 Bot Activity Logs

—
Click Refresh to load logs.

⚙️ Configuration

The Supabase Bot server reads credentials from its environment variables — they are never exposed to the browser. The old Railway host was retired; until a bot server is set below, this page runs live read-only checks against the site-api and keeps its log in this browser.

SUPABASE_URL — Project URL (https://iadptixzmckbetwpoycq.supabase.co)
SUPABASE_ANON_KEY — Public anon key (safe for reads)
SUPABASE_SERVICE_ROLE_KEY — Service-role key (required for writes & sync)
SUPABASE_ACCESS_TOKEN — Personal access token (required for migrations)
AGENT_PASSCODE — Shared secret for write endpoints

🛰️ Bot server

💓 Heartbeat

Register or update the bot entry in the Supabase agents table.