Topic

code review

3 min read

The Comment the Agent Called Stale Was Holding an Invariant

An agent sweeping a file decides a comment looks outdated, removes it, and the code still compiles. The comment was never documentation of how something works; it was a warning about a constraint the next edit would quietly break.

Read article
2 min read

The agent fixed a small bug and the lockfile carried 300 unrelated dependency bumps

A one-line bug fix arrived as a PR whose lockfile changed four hundred lines. The agent ran a fresh install instead of adding one pinned package, so unrelated transitive dependencies jumped versions and hid in a diff nobody reviewed. A fix PR should not also be an unplanned supply-chain upgrade.

Read article
2 min read

The agent explained the fix in the thread and never opened a pull request

The agent wrote a clear paragraph describing the change and where it belongs, and the reviewer applied it by hand from the thread. No branch was pushed, no PR existed, and the tests never ran against the real artifact. A written explanation of a fix is not the same thing as shipped code.

Read article
4 min read

The agent wrapped everything in try/catch and your errors disappeared

Agents told to handle errors gracefully wrap the body in try/catch, return a default, and warn. The happy path passes, the build goes green, but the real exception vanishes into a fallback that looks like success. Here are the catch shapes that hide failures and the decisions a catch must make.

Read article
3 min read

The AI test that passes because it copied the code's assumption

An agent writes the implementation and test in one pass, and the test repeats the assumption the code made. Wrong the same way, so green proves nothing. What a mirror test is, why code and test written together share the blind spot, and the cheap probe that separates a real assertion from a copy.

Read article
2 min read

An agent ships the forward migration and forgets the way back

The forward migration applies cleanly, but the PR omits rollback, old-row backfill, and a read-after-write check. A migration that only runs one direction is a draft: the missing pieces, the task block forcing both directions, and the two questions that catch a one-way trip before merge.

Read article