← Back to hub

Admin Tools (operator console)

Run schema migrations, send test alerts/logs, inspect incidents, edit operational settings.

Checking sign-in…

Signed in via Clerk, requests use your session automatically. If you're not signed in (or Clerk is down), paste your SETUP_TOKEN below as a fallback.

Setup token (fallback)

1 · Create tables

2 · Place a test phone call

Rings your ALERT_PHONE via Twilio. Trial accounts play a Twilio preamble first — that's expected.

3 · Send a test alert

4 · Send a test log

5 · Dedupe (storm test)

Fires the same critical alert 5 times rapidly with the same dedupe_key. Expected: 1 fresh incident + phone ring, 4 absorbed (no new calls), final dupe_count=4. After you press 1 on the call, the dedupe key is released — the next alert with that key creates a fresh incident.

Inspect

Heartbeat (dead-man test)

Sends a sample JobTailor heartbeat so the dashboard card renders without the real sender. ⚠️ This writes a real heartbeat row — if no further beats arrive, the dead-man will call your phone in ~10 min (that's it working). To stop it: resolve the incident above, or flip ESCALATION_ENABLED to 0 in Settings.

Resolve / clear incidents

Manually closes an incident (status → RESOLVED): stops escalation AND releases its dedupe key so the same alert can fire fresh again. Use "clear all open" to wipe stale test incidents holding dedupe keys.

Escalation (step 4)

Tick runs the re-call loop NOW (don't wait for the cron). Config shows current values.

Settings (saved in D1, edited here)

Operational knobs live in the DB so changes take effect within seconds, no redeploy. Empty = use env / default. Credentials still live in Cloudflare Secrets, not here.

Result