Skip to main content

Knowledge > Runbooks > Technical Operations

Technical Operations Runbooks

Runbooks for database management, API debugging, infrastructure maintenance, and security operations across all ChurchWiseAI properties.

Runbooks

RunbookDescription
supabase-migration.mdRun a database schema migration safely
db-performance.mdInvestigate and resolve slow database queries
stripe-webhook-debug.mdDebug a Stripe webhook that failed or wasn't processed
embedding-regeneration.mdRegenerate vector embeddings in unified_rag_content
view-refresh.mdRefresh Supabase materialized views or cached aggregates
analytics-query.mdQuery product analytics for reporting
error-log-triage.mdTriage and resolve error reports from ops_error_reports
security-incident.mdRespond to a security incident (exposed key, unauthorized access)
backup-verify.mdVerify Supabase data backups are intact
cost-audit.mdAudit monthly service costs across all vendors
running-tests.mdWhere all test suites live and how to run them

Safety Rules (Read First)

  • ONE production Supabase — no staging. Every query hits live data.
  • NEVER run DELETE/DROP/TRUNCATE without explicit founder approval.
  • unified_rag_content has 327K irreplaceable records — treat with extreme care.
  • Always filter churches with directory_visible=true — 218K visible, 261K total.
  • Always paginate with .range(offset, offset+999) — default 1000-row limit.
  • Stripe live mode requires --api-key $STRIPE_LIVE_SECRET_KEY. Confirm with founder before writes.