Two requests in one week

A constructed case that needs three principles at once. The figures in each entry’s evidence come from real experiments. This case does not.

The situation

A billing service is being moved to a new runtime and new libraries. During discovery the owner settled one difference: a calculation that rounded a half cent the other way on the new libraries was to keep its old rounding. Version 1 of the acceptance criteria was then accepted, before evaluation began:

  1. The service builds and its tests pass.
  2. Totals match to the cent on a year of recorded invoices.
  3. The build raises no new warnings.

Two candidates are under evaluation: the builder’s, and a second attempt kept for comparison. The builder’s candidate passes the first two criteria and fails the third. The second candidate is part-way through its checks.

Two things then happen in the same week.

The reviewer, working from a list of what the intent requires, asks what consumes the service’s output and runs the nightly export. Its dates are written in a new form. The finance ledger imports that file. No criterion mentions the export, so no check has failed. The builder’s hand-over note, which the reviewer reads afterwards, calls formatting differences cosmetic. The same review also sends back the rounding, because nobody had passed the owner’s decision on to the reviewer.

The builder asks for the third criterion to be changed, and gives a reason. The new toolchain reports a kind of warning the old one never raised, and it reports it on code the upgrade did not touch. No candidate that performs this upgrade, the builder says, can pass the criterion as written.

Both are requests to change the standard after judging has begun. Criteria Are Discovered says the standard is partly found by doing the work. Sealed Criteria says a standard that moves to fit a candidate has stopped judging it.

What evidence would you ask for before ruling on either request?

Settle your answer before reading on.

The export

The reviewer found the difference and cannot say whether it matters. Neither can the builder. Whether it matters is a question about what the business wants, so it goes to the owner of that intent.

The evidence the owner needs is small: one line of the export before and after, what the ledger does with each, and the choices to keep the old form, accept the new, or change the import. The ledger turns out to read the new form as a different date. The owner decides that the ledger must go on reading the same invoice dates.

The fourth criterion says that and no more: “The ledger imports the recorded exports with the same invoice dates.” The team’s first draft was “the nightly export is identical for recorded days”. That would have turned every byte of the file into a requirement, on the strength of how the old system happened to write it. What the system did and what its owner wants are different things. Had an auditor compared the files themselves, the owner would have had a reason to require identity, and the criterion would say so.

Had two owners disagreed, the disagreement would itself have gone on the record as a finding, to be settled by whoever answers for the export.

The warnings

This request follows a failed candidate, which is the pattern Sealed Criteria warns against. It may still be right. A real defect in a criterion can first come to light because a candidate failed it.

The builder’s reason is a claim. The accountable engineer asks for evidence that would hold for every candidate:

  • Build the service as it was, unchanged, with the new toolchain, and list its warnings. The list is long, and none of it comes from the upgrade.
  • Set the builder’s candidate against that list. Every warning it raises is on the list, at the same place.
  • Recover what the criterion was for. It was written to catch new problems the compiler can see in the code a change touches.

The first item is the decisive one: any candidate built with this toolchain inherits those warnings. The engineer then applies one test: would I amend this rule, on this evidence, whichever candidate had failed? The answer is yes. As written, the criterion measured the toolchain.

The amended criterion keeps the original purpose: “The build raises no warning that the new toolchain does not also raise, at the same place, on the unchanged service.” A new warning in code the change touches still fails it, even a warning of a familiar kind.

The original failure stays. The record still says that the builder’s candidate failed the third criterion of version 1, and it shows the amendment beside that result, with the evidence and the engineer’s name.

Had the candidate raised even one warning that was not on the list, the same request on the same day would have been an adjustment, and the answer would have been no.

Which earlier results still support the decision

Version 2 of the criteria holds both changes: the fourth criterion and the amended third. Its record names who decided each, the reason, the evidence, who found the export difference, and the fact that evaluation had begun.

Every candidate is judged against version 2. That settles what must be shown. It does not settle what must run again. For each earlier result the question is: does it still support this decision, and why?

A result supports a decision about a candidate while nothing it depends on has changed: the commit, the criterion, the test data, the runtime it ran in and the tool that checked it.

For the second candidate, the totals result carries forward once its checks finish. Its commit has not changed, the totals criterion has not changed, and the recorded invoices, the runtime and the checking tool are the ones used before. It needs the new ledger check, and its warnings are judged against the amended criterion.

The builder’s candidate changes. On its old commit it now meets the amended third criterion and fails the fourth. The builder alters how dates are written so that the ledger reads them as before, and that produces a new commit. This team’s policy is that a result supports a decision only for the commit it ran on, so every check runs again on the new commit, the totals among them. That is the team’s choice. A team with a dependable record of which checks depend on which code could rerun fewer, and would have to defend that record.

Where it ends

The builder’s new commit meets all four criteria of version 2, and every result that supports that statement comes from that commit. The results from the old commit remain in the record as history. The second candidate fails the ledger check, since it writes dates in the new form as well, and it is set aside. The engineer accepts the builder’s candidate. Acceptance is the engineer’s act, and the record shows it.

What the team changed afterwards

  • Discovery now asks, before criteria are accepted, what consumes each output of the service.
  • A criterion is written for what its owner wants, in the owner’s terms, and not for what the system happens to do.
  • A change to the criteria carries a version, its author, its reason, its evidence and whether evaluation had begun. Each earlier result is then kept or rerun, with the reason stated.
  • The reviewer receives the record of decisions before reviewing, and the builder’s note only after recording an expectation, so that a difference the owner has settled is not sent back again.