Skip to content

Prove a change before you publish it

A rule is live and somebody wants it changed. Before publishing, you can run both versions over the same set of cases and see exactly which ones come out differently.

This takes about thirty minutes.

Three surfaces, in order.

Build is where the change is made and where the records you will test against live. Analyse is where the two versions are compared. Build again is where you publish.

You never edit the thing that is running. A published version keeps running while you work; what you are editing is a draft beside it.

1. Assemble the cases you want to be sure about (Build, Fixtures)

Section titled “1. Assemble the cases you want to be sure about (Build, Fixtures)”

Before changing the rule, choose the records that will show whether the change does what you expect.

Click Build, then Fixtures in the left menu, under Automation. Click New. A Fixture is a table of records a flow can be run against, and it belongs to the Test centre rather than to your live work.

Include the edge cases: the application that should be declined, the one on a threshold, the one with a missing field that caused a problem before. Ten carefully chosen records tell you more than a thousand ordinary ones.

This step matters most. A comparison is only as representative as the records you give it, and you assemble them yourself.

2. Make the change as a draft (Build, Flows)

Section titled “2. Make the change as a draft (Build, Flows)”

Click Flows in the left menu and click the flow’s row to open it. Then click Start a new draft, at the top right.

The published version keeps serving live work, and you edit a draft beside it. Nothing you do next reaches a live record until you publish.

Change the rule. Do not publish yet.

3. Compare the two versions (Analyse, Experiments)

Section titled “3. Compare the two versions (Analyse, Experiments)”

Click Analyse, then Experiments. Click New.

An experiment takes two sides, and each side is a version of a flow. Set the current published version on one side and your candidate on the other, point both at the Fixture you assembled, and run it.

If you are not sure which version is currently live, open the flow and click Versions on its toolbar: the list names every published version, who published it and when, and marks the one serving live work. Each row also offers Restore, which puts that version back as your draft, and is the quickest way to set up a comparison against something you published a month ago.

What comes back is a result per record: what each side did, and where they differed. Not a summary, a list.

Check the records that did not change as well as those that did. If nothing changed, either the change is unnecessary or your Fixture does not contain the cases it affects.

Every run is kept, so the history of the decision stays with the experiment.

Back in the flow, click Publish at the top right. From that moment new work uses it.

Publishing is recorded and attributed: which version went live, who published it, and when. So you can always tell which version was running when a record was decided.

If the flow declares policies, meaning guarantees it must not break, publishing checks them. A version that can be shown to break one is refused, and you are told which policy and given the exact case that breaks it, with the path it took through the flow. The check finds breaches it can demonstrate; a clean result does not prove the guarantee holds in every possible case.

5. Watch the first real ones (Analyse, Runs)

Section titled “5. Watch the first real ones (Analyse, Runs)”

Click Analyse, then Runs, and open the first few live runs through the new version. Compare them with what the experiment led you to expect, so any difference between your Fixture and real cases shows up early.

Going back to an earlier version is itself a change. The Versions list on a flow shows every published version, who published it and when, and every row has a Restore beside it.

Restoring puts that version’s content into your draft. It does not push it live. You look at it, run the same comparison over the same Fixture if the change was significant, and publish it like anything else. If you do not like the restore either, Cancel takes you back to where you were.

So undoing a change follows the same steps as any other change: restore, review, compare, publish.

Keep the Fixture. Rather than building a new one for each change, add to it each time step 5 surprises you. Over time it becomes a thorough set of edge cases for every future change.

A change that must never break a guarantee. Declare the guarantee as a policy on the flow, and publishing will hold you to it.

A change somebody else has to agree to. A lifecycle move can require a different person from the one who took an earlier move, so the person who did the work is not the person who signs it off, wherever the move is attempted from.