Writing

Think it through. Write it down.

From building things, making tradeoffs, and figuring out what actually works.

Start here / Selected writing

Migrating a high-traffic PHP application to 8.4

A controlled PHP 7.3-to-8.4 migration using Cloudflare Load Balancer canaries, two origin pools, explicit compatibility checks, and a rollback that's just a traffic switch.

4 min read

The model is the easy part

The model produces a proposal. Retrieval, tool permissions, state, structured contracts, evaluation, and evidence are what decide whether an AI product works in production.

5 min read

More from the notebook

ElevenLabs' second failure was a counting problem

On 19 November 2026, stale active-call counts in a cache pushed ElevenLabs customers to their concurrency limits. The cache miss the day before was a different failure.

2 min read

Anthropic's IPO reads like a compute financing round.

Anthropic priced at $83.00 on 18 November 2026 and listed as ANT. The raise, plus a $26 billion Class N placement agreed with chip, memory and cloud companies, sits against $900.9 billion of compute commitments. Amazon marked up its stake before trading began. Most of the $104 billion nine-month loss is a non-cash mark.

7 min read

The moderation team now asks its own questions.

At a US consumer app, reporting used to mean a MySQL form and a spreadsheet export. I moved the events into ClickHouse, put Apache Superset on top for drill-downs, and used the official Superset MCP service so a non-technical moderation team could ask their own questions.

5 min read

Zerodha's Blobasaur, and why they turned down S3.

On 19 November 2026 Zerodha explained why they built a sharded SQLite blob store and rejected S3. Their workload is write-heavy. The image pipeline I worked on is a read-through delivery path for more than 50 million images a day, and that difference is the point.

7 min read

Microsoft's outage, and what a canary cannot catch

Microsoft's preliminary PIR says a change ran worldwide for more than three months, then normal rollback could not quickly revert it. What that does, and does not, say about a 95/5 canary on a PHP 7.3 to 8.4 migration for about 100,000 daily active users.

8 min read

The cache hit isn't the interesting part

A US consumer app was serving more than 50 million images a day, with image-path origin CPU around 90%. What we changed, and what a founder or CTO should check when the origin is doing repeat work.

7 min read

QA agents need evidence, not vibes

Designing SuperSquad as an evidence-first QA system: organization-owned state, immutable run snapshots, isolated execution, and findings an engineer can actually reproduce.

6 min read

One builder, many coding agents

Plans that prevent regressions, TDD to close the loop, and ruthless deletion because models are bad at leaving things out.

5 min read
Bhavin Kamani

A small command line for a curious visitor.