Post-mortems

Everything that went wrong, none of it buried

For any incident affecting more than 1% of users we publish a signed post-mortem within 48 hours, with the exact percentage affected, a minute-by-minute timeline, root cause, and remediation.

2026-10-10 12:52 CSTDuration 118 minImpact 21.1%Owner Supply & scheduling

A connected model provider ran out of prepaid balance; 17 requests failed across the frontier and fast tiers

FrontierFast & light

At 12:52 the prepaid balance with one of the model providers behind our scheduling gateway hit zero, and every key on that provider began returning 403. Because it carried most routes in our frontier and fast tiers, once those routes were drained by design, remaining capacity couldn't absorb the full load: over 118 minutes, 4 users (21.1% of that day's 19 active users) saw 17 requests fail with 5xx. Other requests were rerouted to healthy backup routes — slower, but not failed. Failed requests are never billed, so there is nothing to refund.

Timeline

  1. 00:35First low-balance alert (Telegram and email). It fired twice more, at 06:36 and 12:36, and went unhandled through the night and morning — the alerts went out; an on-call response was the missing piece.
  2. 12:52The source's balance hit zero; every key returned 403. The first frontier-tier requests failed (all_upstreams_failed).
  3. 12:53Account-level 403s drained the lines, as designed. The frontier tier peaked at 503s — 12 failed requests through 13:07 — while remaining traffic rerouted to lines still up.
  4. 13:58The fast tier's three GPT lines on the same source began refusing too; 5 more requests failed through 14:49.
  5. 14:00The top-up landed; the first line came back online.
  6. 14:10Top-up complete (¥1,070). Lines returned via the audited restore action: two at 14:13, one at 14:18, two at 14:31, the last at 14:46.
  7. 14:49Last failed request. One Gemini line on the same source was also down; it carried no user traffic during the window so it isn't counted in the impact, and it was formally drained the next day after the source's catalogue change was confirmed.

Root cause

Three layers stacked. ① A balance hitting zero is a when-not-if event, but we had alerts and no enforced response: three alerts spanning night to noon went unclaimed. ② No low-balance reminder threshold was set on the source's side, so they wouldn't warn us either — both sides were one deliberate action short. ③ One source carried most lines across our frontier and fast tiers, so concentration turned "one vendor out of money" into "two tiers down". The 403 classification, line draining and failover — all shipped that same morning — worked exactly as designed. What failed was operations, not scheduling.

What we changed

  • A ¥100 low-balance reminder threshold is now set on the source's side: below it, they proactively warn us, instead of relying on our side alone.
  • The alert-mail channel now carries critical-level alerts only (the balances of our model-capacity sources among them) — the three unanswered overnight alerts were buried in a stream of non-critical notices, and that was the channel's actual state, not a hypothesis.
  • Line recovery now goes through the audited admin action — who restored which line and when is on the record, not a manual one-by-one affair.
  • From the next day, the scheduling gateway brought new lines from a second source online, so the fast and domestic tiers no longer depend on this vendor alone; diversifying the frontier tier is still in progress and will be appended here when done.

Published post-mortems are never rewritten; follow-ups are appended to the original entry with their date. Impact is measured as users who received failed responses, over that day's active users.