Support & Runbook (Internal)
Purposeβ
This document is the primary runbook for support engineers handling user issues, triage, and escalations.
Access & Toolsβ
- Supabase Console (for inspecting rows and auth).
- Logs: hosting provider logs for
backend-syncand mobile analytics. - Local dev: ability to run
backend-synclocally and reproduce parsers with sample emails.
Onboarding Checklist for Supportβ
- Access to Supabase project and read-only keys.
- Access to logging/host provider dashboard.
- Slack channel or pager for on-call alerts.
Common Issues & Stepsβ
-
Missing trips:
- Check Supabase
tripsfor the user id. - Check
backend-synclogs for recent parse jobs. - Confirm user's email ingestion permissions and whether the raw email exists.
- Check Supabase
-
Transaction parsing errors:
- Pull the
raw_textfromtransactionsif present. - Run the finance parser locally with the raw text fixture.
- If reproducible, open a PR with fixes to
backend-sync/services/financeProcessor.tsand add unit tests.
- Pull the
-
Authentication problems:
- Verify Supabase auth session tokens; check
lib/supabase.tsconfiguration. - Inspect device logs for
AsyncStorageissues.
- Verify Supabase auth session tokens; check
Reproducing Issues Locallyβ
- Checkout the repo and run:
cd backend-sync
yarn install
yarn dev
- Use provided fixtures (create a test JSON file with the raw email) and call local endpoints or run the parser directly.
Diagnostics & Useful Queriesβ
- Supabase: query
select * from trips where user_id = '...' order by created_at desc. - Backend logs: search for parser errors or exceptions with user identifiers.
Escalation Pathβ
- If the issue is reproducible and appears to be a parser bug, create an issue in the repo and assign backend owner.
- If the issue is infra (Supabase or hosting outage), alert the on-call infra engineer.
- For data breaches or sensitive incidents, follow the security incident response plan and notify product/security immediately.
Release & Rollback Notesβ
- Check
semantic-releaseconfiguration and deployment logs when investigating post-release regressions. - If a backend deploy causes failures, rollback via the host provider or redeploy the previous working version.
Add detailed playbooks for additional recurring issues as they appear.