JIMDRURY.
Jim Drury
Flat pink editorial graphic of one prompt feeding two mirrored stippled spheres labelled impl.ts and impl.test.ts, with a patch arrow into a retro verifier window showing 3000+ agent tests, 17 e2e and human intent bars for new behaviour and regression
agents

Your agent's tests are marking its own homework

10 MIN READ
- Kun Chen (@kunchenguid), 8 Oct 2026, on X

What he actually ran

Same guess, written twice

- Kun Chen (@kunchenguid), 8 Oct 2026, on X
An echo test, and a test somebody actually asked for (illustrative)
// What the agent wrote
export const formatPrice = (pence: number) =>
  `£${(pence / 100).toFixed(2)}`;

// What the agent then wrote to prove it works
it("formats price", () => {
  expect(formatPrice(123456)).toBe(`£${(123456 / 100).toFixed(2)}`);
});

// What the ticket actually said: en-GB, with thousands separators
it("shows £1,234.56 for 123456 pence", () => {
  expect(formatPrice(123456)).toBe("£1,234.56");
});

A small aside on the word "officially"

Where I'd push back

- Kun Chen (@kunchenguid), 8 Oct 2026, on X

What I'd actually change

CODEOWNERS: agents write code, humans own what done means (illustrative)
# Acceptance cases come from tickets, not from the implementation
/tests/acceptance/   @your-org/product-eng
/e2e/                @your-org/product-eng

# Unit tests are fair game for the agents, but nobody pretends they're the spec
/src/**/*.test.ts    @your-org/web
<The testing rules I'd put in AGENTS.md>

Don't write new unit or integration tests unless the task or ticket gives you the cases, or I ask for them. When the ticket includes acceptance examples, turn each one into a test with the example's own inputs and expected outputs, never values computed from your implementation. Never edit an existing test under tests/acceptance or e2e to make it pass; if you think one is wrong, stop and tell me why in the PR description. If a change has no acceptance examples, list the behaviours you assumed so I can check them.

</The testing rules I'd put in AGENTS.md>

Thoughts

Similar Articles