IntentPattern 11 of 41

Criteria Are Discovered

Part of what a change must satisfy is found by doing the work. Give discovery a stage of its own, and have the owner confirm what it finds.

Kind
Pattern
Stages
Frame, Discover
Roles
Owner, Accountable engineer
Evidence
Inferred
Entry
Full entry

The full entry is below.

Use when

Work must preserve behaviour nobody listed, or build what its users cannot yet describe.

In brief

Keep four stages apart: mission and constraints, discovery, acceptance of the criteria, evaluation. Discovery proposes criteria, and the owner confirms or rejects each before the standard is accepted.

What it costs

Discovery takes time and spends the owner’s attention, and prototypes show little about properties that appear only at scale.

Evidence

InferredSources support a mechanism or a neighbouring claim. The step to this pattern is the author’s.

Sources named: Fowler 2024; Brooks 1986; OpenJDK JEP 252.

Related patterns

Full entry

The problem

Acceptance criteria written before work starts cover the part of a change that someone meant. Two kinds of work depend on more. Work that must preserve behaviour, such as an upgrade, a migration or a replacement, depends on behaviour nobody intends to change, and nobody can list all of it. New software depends on what its users want, and they often cannot say until they have used something that works.

The gap is paid for late. A difference found before the change ships is a question. Found in production, it is an incident.

Why it holds

A running system does more than any description of it records, and people want more than they can state in a meeting. Skill in the builder does not close that gap from the builder’s side. A capable builder can search a system and find behaviour nobody specified. From behaviour alone it cannot reliably establish whether that behaviour is intended. The answer lies with the owner: the person who answers for what is wanted.

In a factory

Keep four stages apart.

  1. Mission and constraints. What the change is for, and what must hold whatever is built.
  2. Discovery. Investigation and prototypes propose further criteria, and the owner confirms or rejects each. This stage is meant to move.
  3. Acceptance of the criteria. Before final evaluation, someone entitled to do so accepts the criteria as the standard.
  4. Evaluation, and late change. The candidate, the version of the work put up for judgement, is judged against that standard. Criteria can still change here, because evaluation sometimes shows that a criterion was wrong. This stage carries the risk, and Sealed Criteria governs it.

Take a billing service whose runtime and libraries are being upgraded. The mission is the upgrade. The constraint is that no monetary amount changes. Discovery runs the old and the new service over a year of recorded invoices and finds that one calculation now rounds a half cent the other way. Nobody had written a criterion about rounding, because nobody knew the upgrade touched it. The owner sees one example invoice, its total before and after, and the choices: keep the old rounding, accept the new, or change the calculation. The owner keeps the old. “Totals match to the cent on recorded invoices” becomes a criterion before evaluation begins.

For new software the evidence is how people respond to something concrete. Build prototypes to learn what is wanted, record the criteria they reveal, and discard the code unless someone decides to keep it.

What it costs

Discovery takes time, and it spends the owner’s attention. Findings passed on raw overwhelm the owner. They have to be shaped into decisions first, which is the subject of Discovery Is Not Decision. Prototypes also have blind spots. They show little about a property that appears only at production scale, under real load or against a real adversary, and no user can settle a regulatory interpretation by trying a screen.

Evidence

What the sources establish. Writing from his colleagues’ experience of replacing legacy systems, Fowler observes: “Replacements seem easy to specify, but often it’s hard to figure out the details of existing behavior.” Brooks recommended “rapid prototyping as part of a planned iteration in establishing software requirements”. And a platform can change behaviour beneath an application: from Java 9 the platform gave priority to a different source of locale data, so dates, numbers and currencies can be formatted differently after an upgrade from Java 8 with no change to the application’s code.

What I infer. That criteria are incomplete at the start of both kinds of work, and that discovery earns a stage with an output of its own. The sources speak of replacement projects, of requirements for new systems and of one platform. The general claim is mine.

What the case illustrates. In 2026 I built a sample application in which upgrading the main library changes how certain values round, with tests that do not notice. I recorded the answer in advance. In the runs of an early prototype of my factory, no investigating agent surfaced the change. Another version, organised differently, compared the old and new library over several thousand inputs without being asked, and found 1,329 differences in one run, the rounding among them. The early runs show a criterion nobody stated going unfound. The other shows discovery finding it and burying it. Neither gives a rate.

Cases that use this pattern

  • Two requests in one week A reviewer finds an export another system reads, and a builder asks to change a criterion the candidate failed. A constructed case that needs three patterns at once.

How to cite this page

Vibhor Mahajan. (2026). Criteria Are Discovered. In Design Patterns for AI Software Factory. Last changed 2 December 2026. https://softwarefactorypatterns.com/patterns/criteria-are-discovered/

In the manuscript: Chapter 4.