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
    A strong system prompt cannot secure retrieval, tools, authorization, retries, or side effects. Red-team the complete AI workflow and its recovery paths.
  • Published on

    Investigation · Part 9 of 20 · When the benchmark lies

    Coordinated Omission: How a Load Test Hides Its Worst Latency

    My toy server stops for half a second every five seconds. A client that waits for each answer saw 4 slow requests out of 1.36 million, and a p99 of 30 microseconds. A client with a fixed schedule saw 1,608 slow requests and a p99 of 450 milliseconds.
  • Published on

    Investigation · Part 9 of 20 · From source to a running process

    How LD_PRELOAD Replaces a Function Without Recompiling

    I wrote a small library that counts malloc calls and preloaded it into C, Rust and ls. The famous dlsym trap did not appear with glibc 2.43, but ls hid my output in a way I did not expect, and the static binary ignored the library completely.
  • Published on
    A checkpoint is a claim about durable effects, not the last page fetched. Compare commit protocols and crash points so recovery repeats work instead of losing it.
  • Published on

    Investigation · Part 8 of 20 · From source to a running process

    How a Call to printf Finds printf: The PLT and the GOT

    I watched one GOT slot in gdb before and after the first call to puts, measured what lazy binding costs on that first call, and compared it with -z now, LD_BIND_NOW, -fno-plt and a Rust binary that never uses the PLT for libc.