Topic

typescript

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
4 min read

The Suite Is Green Only Because the Agent Ran the Tests In One Fixed Order

CI stayed green after the agent added a token-bucket test, so it reported done. Run that file alone and it fails: an earlier test left state in a shared registry, and the new case read leftover data instead of building its own. Fixed sequential order hides this order pollution.

Read article
3 min read

Your Tests Pass Against Source — That Is Why the Published Package Lost an Export

The suite stayed green after a package rename, CI was green, and the changelog promised formatBudget as a public export. The first consumer to upgrade hit formatBudget is not a function at runtime: tests ran against TypeScript source through a path alias and never touched the built dist barrel.

Read article
4 min read

The Agent Fixed the TypeScript Error by Adding `as any`

When a type error blocks the build, the agent's fastest fix is usually to erase the type instead of understanding it. The build goes green. The real bug moves somewhere quieter.

Read article
3 min read

Your Agent Added Types — Most of Them Are `any`

Type checking goes green, the CI badge turns green, and nobody notices the agent widened half the signatures to `any` to get there. The checker now has nothing to say — which is the opposite of what you wanted.

Read article
4 min read

When Your Agent Summarizes Your Codebase, It Quietly Drops the Types

An agent reads your file, writes a summary for the next session, and in that paraphrase the generic constraint, the discriminated union, the branded ID all collapse into a vague noun. The next session then builds on a version of your code that never existed.

Read article