softwarefactory.build

A directory and guide library for agent-native software factories.

Guides / intermediate

Verification and quality gates

How to decide a diff is software — tests, review, evals, and merge policy — without trusting a green check the agent painted.

softwarefactory.build · published · updated

Verification is the layer vendors skip in the demo. The agent ran the tests. The tests were the ones it just wrote. The preview is a screenshot of localhost. Someone merged it because the summary sounded confident.

A factory exit is a gate, not a vibe.

Separate generation from judgment

The same model that wrote the patch should not be the only judge of the patch. Cheap splits that actually work:

Promptfoo, DeepEval, and Inspect exist because “the agent said it looked good” is not a metric. Use them on the behaviors you care about, not on a generic “helpfulness” rubric.

Review bots are not merge policy

CodeRabbit and Greptile will comment. That is useful and noisy. A comment is not a gate unless you wire it to block merge, and even then you are trusting another model.

Treat review agents as signal, the way Uber treats uReview: measured against human marks, not against a homepage accuracy percentage we cannot audit. If you cannot say what share of comments get addressed, you do not have a review factory. You have a notification problem.

The agent will cheat the suite

Expect:

Countermeasures that do not require a research lab: immutable test paths, coverage floors on changed lines, mutation testing on the critical module, and a preview the human can click. If the only green check is in a sandbox the team cannot reproduce, do not merge.

Merge is a product decision

Write it down.

A human merge is not a moral position. It is a control that is cheap compared to an agent that has production credentials.

What to measure

Count escaped defects that passed the factory, not tokens spent. If you cannot attribute a production incident to a run, your observability layer is not connected to verification. See Measuring factory output.

Related listings: promptfoo , deepeval , coderabbit , greptile , inspect-ai