Skip to content
Khalifa Builds

Work / NixAI

Two silent leaks: $450 a month in lost payments, and users reading each other’s messages

Leak hunting / Donna, SaaS for teams

A billing check lists subscribers whose payments are missing, 23 of them, about $450 a month that never arrived
Drawn reconstruction
A timing diagram where user B overwrites the one shared context and user A reads B’s messages; the fix is asyncio.Lock and one context per user and session
Drawn reconstruction

What was broken

Leaks do not throw errors. Money missing from billing and data crossing between users both look like a working product until someone traces them. I found both in Donna: 23 subscribers whose monthly payments never reached the company, and a shared agent context that showed one user’s conversation inside another user’s session.

What I owned

  • Traced the payment flow and found 23 paying users whose monthly charges were being lost: about $450 missing every month. Closed it before go-live, so a billing hole could not undercut the pitch to stakeholders.
  • Reproduced a race condition rather than guessing at it: one agent context, initialised once and shared across the process, was overwritten under concurrent load. Rebuilt initialisation under an asyncio.Lock and isolated context per user and per session.
  • Own the backend deployment end to end, and watch server health and structured logs to trace user-reported errors back to their cause.

Employer product. The public product page is linked; internal dashboards, admin panels, and architecture diagrams are not shown.

Next caseA document workflow that took requests in and never let them out