Mehdi Akiki

Writing archive

Everything published under Writing, newest first. Each entry is labelled as part of an investigation, an article or reference. Short engineering notes have their own archive.

  • Published on
    An is_err assertion can pass because the database is unreachable. Check the intended error category and the stored outcome so unrelated failures cannot make a negative test green.
  • Published on
    Bound tool results before they become model context or logs. Use explicit pagination or overflow errors so partial data cannot look like a complete answer.
  • Published on

    Article · Through the layers

    Put two tenants in your authorization tests

    A one-tenant fixture cannot show cross-tenant access bugs. Exercise reads, writes, and reused database connections with two independent customer scopes.
  • Published on
    Persist a verified webhook before acknowledging durable acceptance. Keep received and applied states separate so a crash cannot turn deduplication into lost work.
  • Published on

    Article · Interrupted execution

    Two Webhook Deliveries Need One Database Claim

    Two webhook handlers can both pass an existence check. Use a unique database claim, bind it to the payload, and commit it with the business change.