Powerduck | OpenAPI Studio (@PowerduckLabs) header
Powerduck | OpenAPI Studio (@PowerduckLabs) profile picture

I build Powerduck — local-first OpenAPI studio. Writing about spec drift, AI agents that lie about being done, and docs that drift for months.

Joined December 2025
Everyone shipped a faster way to write code. Nobody shipped a faster way to believe it. Powerduck is a local-first desk for AI changes: findings beside the diff, scenarios against a real server, one OpenAPI file feeding docs, mocks and MCP tools. What's your test for done?
2
650
The PR had seven commits between the sketch and the fix. None stood alone: an early commit added a half-built function, a later one wired it up, and the middle one did not compile. That is fine on a branch. In merged history it is not: a bisect hits a WIP commit, the build breaks there, and you cannot tell whether the break is the commit you are hunting or the WIP noise around it. I keep scratch commits local and clean the branch before push: one green commit per logical step, or one squashed change. Pushed history has to be walkable, not just locally true. How do you keep a branch bisectable — squash, stacked PRs, or something else? If this rings a bell, follow along — I write about these review failures most weeks.
8
A debug log went onto a request path. Local runs fired a handful of requests, so the extra line looked free. Nobody flagged it. That path runs thousands of times a second in production. The log volume became the incident before the feature did. A log that costs nothing on your laptop does not cost nothing at traffic. I keep debug output behind an explicit level and sample the hot paths rather than logging every entry. Local sample size hides amplification better than any lint rule will. What's your fastest check for a hot-path log that looks harmless locally?
7
Its own diff came back with a clean self-review attached. Names match, flow matches, every intended step reads as covered. The check ran against what the agent meant to write, not against what the code actually had to do. The assumption baked into the first draft survives the review, because the same context that produced it is the one judging it. A fresh-context pass helps here: someone who did not write the change reads the ticket and the diff side by side, and the gap between intent and requirement shows up fast. How much of your AI-generated diff do you trust after a self-review pass?
7
The merge conflict had two implementations of the same function. The resolution kept both: the old branch's version above, the incoming one below, with no comment explaining which won. Nothing failed loudly. The tests passed because neither copy was deleted, and whichever branch ran first took the call. The diff read like a merge rather than a choice, so review skimmed past the duplicate. When I resolve a conflict I delete one side on purpose and say why in the commit. Keeping both just defers the decision to runtime. Where do you usually catch a conflict resolved by keeping both paths? If this rings a bell, follow along — I post these review breakdowns most weeks.
7
The README for the endpoint got updated; the example request and the new field were spelled out there. The OpenAPI spec still described the old response shape. Anyone generating a client from the spec built against the stale contract. Prose drifts first because it's easy to edit; the spec is the thing downstream clients and mocks are actually generated from. We keep this locally in Powerduck — the spec stays the source of truth, and docs and mocks derive from it rather than being hand-kept alongside. Where does your team's contract stop being the source of truth?
7
Reviewer asked whether the null input was handled. The reply said yes, and the thread read clean. The branch still assumed non-null; the answer lived in the comment, not in the code. Once the clarification lands in a reply, follow through and check the path actually matches what was agreed. Otherwise the PR narrative and the diff quietly disagree, and the next reader trusts the thread over the code. What's your fastest way to catch code that contradicts its own review thread?
5
The build went red where one call site passed a mismatched shape. The diff swapped the narrow interface for `any` and loosened the union to `string | undefined`. The compiler stops complaining; the underlying mismatch never got resolved. That trades a type error for a future runtime one. The narrow type was the net catching the bad call; widening it removes the net at the spot it mattered. If a call genuinely passes loose data, widen the contract on purpose and say why, rather than erasing the type at one call. Where do you draw the line between a justified broad type and just silencing the red? If this resonates, follow along — I write about this kind of review breakdown weekly.
6
The diff kept a block of the old implementation commented out above the new one. No instruction said to preserve it; it just looked safer to keep the old lines on screen. A commented block is not a saved fallback. It is dead text the next reader reads twice: once to confirm it matters, once to trust the active line below it. In review I ask those blocks out. Git history already holds the old version, so deleting it loses nothing. Commented code lets a later edit revive the old shape by accident, and the diff carries noise that makes the live change harder to follow. Where do you draw the line between keeping a deprecated path alive in comments and trusting history to bring it back?
1
12
A comment in the file read like an open todo, so the agent implemented it. The issue had been closed two cycles earlier; the behavior changed, and the comment simply never got cleaned up. New code now does the old thing nobody wants anymore. Before I act on a TODO or an inline note, I check whether it still matches current behavior: date, linked issue, surrounding code, what the tests assert. A stale comment is not a live requirement. How do you keep old comments from drifting into instructions the next pass follows?
9
The catch block logged a generic message and raised a fresh bare error. Original exception, arguments, and traceback were gone by the time it reached the caller. Debugging started from a second-hand summary that named nothing that had failed. I keep the chain explicit: wrap and raise from, preserve the originating exception. A boundary handler should be able to walk down to what actually broke, not a generic note someone typed later. What's your quickest way to tell a swallowed exception apart from a real clean failure in generated code?
8
Half the wrong features I hand to an agent come back on the most literal reading. The ask had two plausible shapes, it picked one, and the clarifying question that would have split them never surfaced. Fast to a working thing, slow to the right thing. Before an agent writes code on anything even slightly ambiguous, I get one written pass back: what it expects to change, and what it expects to stay the same. If two shapes both fit, the fork comes out first instead of a guess baked into the diff. Where do you draw the line between one clarifying round and just letting it build?
6
Generated additions often read like a stranger's code: a different error shape, different naming, a helper that already exists three files over. Reviewers end up normalizing style instead of checking whether the behavior is right. Before an agent writes in this repo, I hand it one or two real local examples — how we name errors, where shared utilities live, what a diff in this area actually looks like. Conventions travel faster through a concrete sample than through a style-guide paragraph. What do you give an agent first, so its first pass already fits the codebase?
5
A command failed in the agent's run, so it fired the same command again. Then a third time. Each retry returned the same stderr — a missing path, an old flag, a mismatch that would not fix itself. The retries added nothing but context and time. After two identical failures I stop re-firing. Treat the stderr as persistent state: read what it names, check the actual input and config, and change one thing before running again. What's your cutoff before a retry stops looking like a transient glitch?
5
The agent patched a generated client straight in the build output. The fix looked right in the diff, tests passed. Then the next codegen run regenerated the file from upstream, and the patch was gone — bug back, with no trace it had ever been touched. I check whether a file is emitted before editing it at all. If the generator or template owns it, the change belongs upstream; hand edits to generated paths come back to bite the next regeneration. Where do you draw the line between hand-editable files and generated output in your repo?
5
Two tool calls edited the same file in parallel. The later write won, and one of the earlier changes was gone from the final tree. No conflict surfaced, because neither call re-read what the other had done. I serialize writes to a shared file now: one agent owns the edit, the next re-reads before touching it. Cheap, and it stops silent overwrites that only show up in review. Have you lost a change this way, and what made you notice it?
6
The agent reported the refactor complete. The diff looked clean, the tests passed in its scratch. But the dev server I was hitting still served the old bundle — a cached build the process had not rebuilt. Checking the source tree was not enough. I now verify the artifact that is actually running: restart the process, watch the build output, and confirm the new behavior in the served app, not just in the checked-out files. Where do you usually catch a change that landed in source but never reached the running system?
1
1
6
Coming back after a break, the thread is scattered across an editor tab, a terminal scrollback, a note in a second app. The actual next step lives in whichever surface I left open last, and half the recovery is just finding where I stopped. I keep a short session ledger tied to the branch: what changed, what is still open, the one command that reproduces it. Re-reading that on resume beats scrolling back through chat and terminals trying to reconstruct intent. How do you rebuild the thread after a break without rereading the whole session? I write about this kind of workflow breakdown weekly — follow along if it’s useful.
5
Half the review comments landed on lines that had moved since the draft. The feedback looked specific, but it pointed at an earlier version of the file, and the actionable point got lost under a wrong line number. When an agent reviews a diff that keeps changing, I ask it to anchor comments on a short code snippet instead of a line number, so a rebase does not bury the point. Where do your review comments stop being trustworthy after the diff shifts?
5
A helper the agent used existed only in its idea of the library. The pinned lockfile shipped an older major, and that helper was not there. It compiled in its own scratch and broke the build in ours. Before trusting any library call the agent suggests, I check the installed version and ask it to match the API surface already used in this codebase. How do you keep generated code from drifting onto a dependency version that is not actually installed?
1
1
8
The generated test passed on my machine. It grabbed the only user row in the dev seed and asserted on that record's ID. In a fresh database, or a second tenant, the row is gone and the assertion lands on whatever record exists now. I've started asking for tests that set up their own fixture instead of leaning on seeded data, so the test describes behavior rather than the current dev snapshot. What do you do to keep generated tests from quietly depending on seed state?
4