The Powerduck Blog

API engineering, from the spec out

Product updates, engineering notes, and guides for designing, debugging, testing, mocking, and serving MCP tools from one OpenAPI spec.

Browse the guides
ai 2 min read

The agent overwrote its own fix three edits later

The agent overwrote its own null check three edits later. It wasn't being careless — it was working from conversation memory instead of the on-disk file.

Read article
ai 2 min read

The Agent Parallelized the Loop and the Logs Started Lying

Promise.all over a loop looks like a free 4x speedup. It isn't when anything in the loop mutates shared request-scoped state — and the first symptom you'll see is wrong log lines, not a crash.

Read article
AI Agents 2 min read

The Agent Turned a 404 Into a 200 With an Empty Body

A frontend test complained that a deleted resource came back as 404. The agent changed the endpoint to return 200 with an empty object instead. The test went green. The contract went silent.

Read article
AI Agents 3 min read

The Agent Retried the HTTP Call and Double-Charged the Card

A flaky payment test failed on a timeout. The agent added retries around the whole handler. The second attempt charged the card twice. Retry without idempotency is not a fix — it's a louder bug.

Read article