Popperian acceptance criteria

Summary

A Popperian AC is an indicative claim that an implementation satisfies an optative requirement under declared assumptions. It must forbid observable behaviour, be finitely refutable, carry a severe falsifier, name its auxiliaries, fix its acceptance conventions and change only by content-increasing revisions. The analogy breaks where requirements are wishes, the subject is fitted to the test, and the target moves.

Overview

Karl Popper's falsificationism holds that a universal claim can never be proven by any number of agreeing observations, but can be refuted by a single accepted counter-instance. Science therefore advances by bold conjectures that forbid many possible observations, exposed to tests designed to refute them. A claim that survives is corroborated, never verified.

Applied to software, this yields a demanding but coherent picture of an acceptance criterion (AC). The central answer of this article:

An acceptance criterion is not one claim but two.

One is a requirement: a statement of how the world should be once the software exists. It is a wish, and wishes are not true or false. The other is a conformance claim: “this implementation, running under these stated assumptions, makes the requirement hold.” Only the second is a Popperian conjecture. Falsification applies to it fully. The requirement is checked a different way, by asking stakeholders whether it is what they meant, and a lifecycle must keep the two kinds of refutation apart.

Taking the conformance claim as the conjecture, Popper and his successors impose six demands on a well-formed AC:

Notes: six demands on a well-formed AC

  1. It must forbid some observable behaviour. Its content is the set of behaviours it rules out.
  2. It must be finitely refutable, so a violation can be seen in a finite run.
  3. It must carry a falsifier that is severe: a check that would very probably fail if the claim were false.
  4. It must name its auxiliaries: the environment, test harness and domain assumptions that a failing check might implicate instead of the code.
  5. Its acceptance conventions must be explicit: which observation counts as a refutation, and how flakiness is handled.
  6. It may change only by content-increasing revisions, never by the “conventionalist stratagems” that rescue a failing claim by emptying it.

The analogy with science holds well on the logic of testing. It breaks in four places: requirements are wishes, not descriptions of nature; the software is written to pass its tests, which nature never is; software can in principle be proven against a model; and the intent the ACs serve can move.

Title
Popperian acceptance criteria
Series
SpecDLC research
Scale
1:1
Deploy
4278d3e
Rev
A