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

    Article · Interrupted execution

    Choose one layer to own retries

    Nested SDK, transport, and worker retries can multiply attempts. Give one logical operation an effective retry budget and a deadline that every layer respects.
  • Published on

    Article · Through the layers

    Decide what happens when the queue is full

    A bounded worker queue needs an admission policy. Choose between waiting, rejecting, and durable acceptance, and tell callers which promise they received.
  • Published on
    An error response does not prove that a tool did nothing. Validate and authorize before effects, then assert unchanged storage and zero external calls after rejection.
  • Published on

    Article · Interrupted execution

    Don't detach a task just to hide a slow request

    Dropping a Tokio JoinHandle leaves its task running. Decide who owns an export after a disconnect and whether completion must survive a restart.
  • Published on
    An automatic model fallback should preserve actor scope, tools, approvals, and budgets. Never turn a provider failure into a switch to an administrative execution context.