Home / Blog / AI assistance needs acceptance criteria, too

Blog

AI assistance needs acceptance criteria, too

1 min read · AI codegen · Review · Playwright

Generated code passed every check and still regressed types and validation. What worked was treating the tool like a deploy: constrained, reviewed, and measured on a before-and-after trial.

The regressions passed the checks

When engineers on my team started using an unguided coding agent, the output sailed through the usual gates. It introduced type-safety and validation regressions that only showed up in review — the class of defect that looks right at a glance. The pipeline said green; the humans said wait.

The lesson was not that the tool was bad. It was that a generator, like any contributor, needs the conventions written down: what must hold, how to check it, and what counts as done. An unguided agent inherits none of that from your codebase.

Constrain, then review

I packaged our conventions into a plugin with three layers — repository, platform, global — that constrains and reviews generated code across web, Android, iOS, and backend. The key move was keeping the layers separate: what is true everywhere lives globally, what is true on one platform lives on that layer, and the repo layer carries the quirks no one else should inherit.

A controlled before-and-after trial on the same work removed the type-safety and validation regressions the unguided agent had introduced. Trial, not vibes: the same checks, run against the same class of change, so the team can accept AI assistance without dreading review.

What I carry into the next team

Acceptance criteria are not a review nicety for generated code — they are the interface between the tool and the codebase. Write them down before enabling the tool, and the trial can be about the tool instead of about trust.

Hiring a senior frontend engineer?

Open to senior frontend roles — remote or relocation. Email gets the fastest reply.

← All posts