Skip to content
Hyper-Agile TestingView

Book companion · Worked example

Follow one checkout change from intent to rollback

A customer taps Place order. The connection drops before they see a confirmation, so they try again. Can we make sure the retry doesn’t create a second order or payment?

Fictional release checkout-v27 · No real transactions, test executions, or deployments

01 · Product intent

Write a promise the team can check

The change makes order submission idempotent. A retry of the same checkout attempt must not create another order or capture another payment. The customer should receive the original confirmation even if their first response never arrived. A different checkout attempt must still be able to place its own order.

Carry forward · R-01: Create at most one order and one payment capture per checkout attempt. Reuse the original confirmation on retry.

02 · Risk and validation

Match the checks to the cost of being wrong

A flag can stop more exposure, but it cannot undo an order or refund a payment. The planner suggests expanded pre-release validation because duplicate charges can affect customers financially. Later, the fictional Rollout Lab uses its preset elevated telemetry policy. Here, test the boundary where a request succeeds on the server and fails on the customer’s device.

  • Repeat a request after the server records an order but the client loses the response.
  • Send two submissions concurrently with the same checkout key; inspect orders and payment captures, not just response codes.
  • Check that two independent purchases still create two distinct orders.
  • On Android, interrupt the connection, put the app in the background, and resume before retrying.

Carry forward · V-01: Record the order and payment outcomes for R-01, the devices covered, and what remains untested.

03 · CI evidence

Find the gap in a seemingly green run

The two authored practice files below are shaped like reports from Playwright and k6. They were not generated by running tests. Three functional checks pass, but Android background and resume is skipped. The performance summary is within the supplied thresholds, but there is no comparable baseline. Neither fact proves that Android customers can safely retry.

Open Release Confidence Brief. Load the downloads into Current Playwright report and Current k6 summary, then select Build release brief. Optional context: Authored training fixture: checkout-v27, synthetic staging, Web plus Android. The files are not imported automatically. The tool’s built-in sample is a separate exercise.

Carry forward · E-01: Keep the brief and explicitly name the missing Android check. In practice, fill the gap or document who accepts it before the pilot. The fictional pilot below is for learning, not an approval based on E-01.

04 · Release decision

At 25%, error rates look fine overall. Would you widen?

Open Rollout Lab and start with The green dashboard. Clear the 5% checkpoint to reach 25%. The pooled candidate error rate at 25% is 0.55%. Look at the individual groups before deciding whether to advance, hold, or roll back.

Reveal the decision and why

Roll back under this fictional policy. Android reports 3.00% (12 of 400) versus 0.25% (1 of 400) in its control. That is a 2.75 percentage-point increase. It exceeds both the 1% maximum error rate and the 0.50 percentage-point maximum increase for each group. A healthy pooled rate does not override either limit.

The receipt supports a rollout decision, not a root cause. It does not prove customers were charged twice, that Android resume caused the failures, or that the checkout change caused them.

Carry forward · D-01: Download the decision receipt or handoff note in Rollout Lab. Record the checkout release lead as decision owner and the on-call engineer as the person following the affected group.

Download release decision template

05 · Production learning

Turn the evidence gap into a test for the next release

First confirm that the rollback took effect and see whether Android errors return toward control. The on-call engineer then compares Android error categories, app versions, and request paths, and checks order and payment records for actual duplicates. The skipped case is worth investigating, but it stays a hypothesis until the evidence supports it.

Add a reliable Android lost-response-and-resume check to the next validation plan. If the investigation identifies a different cause, add a regression case for that cause too. Before the next pilot, confirm who reviews the Android signal and who can pause or roll back.

Carry forward · L-01: Write down what was observed, what remains unknown, and the condition that closes the follow-up. Link the new test to R-01 and keep the next rollout’s cohort evidence separate from this one.