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 Agents 2 min read

The agent fixed the failing call site and left the same bug on its sibling

The agent added a null guard to the exact route reported, tested that case, and closed the ticket. Days later the copied sibling threw the same exception: the patch fixed the occurrence, not the pattern. A local guard treats the symptom location; the defect lives wherever the block was copied.

Read article
AI Agents 4 min read

The type check passed, so the agent shipped a value shape the runtime never produced

The agent wrote interfaces on both ends, ran tsc, saw green, and marked it done. The UI rendered undefined because the producer nests its payload under a wrapper the declared type never mentioned. A green check proves the code agrees with itself, not that the outside world returned the shape.

Read article
AI Agents 3 min read

The agent drifts from your requirement while the context fills up

You asked for one behavior; twelve tool calls later it optimized the last output instead of the acceptance criteria. Context fills with intermediate logs, recent tokens dominate, and the original brief gets buried. Here is how drift happens and the cheap anchors that keep a task on rail.

Read article