Skip to content

Aptentia Academy · Free lesson 4 of 4

Plan failure, recovery, and a small release

Decide what happens after a timeout, how repeated work is handled, and who can stop a bad run.

Check the Software You Build

Make a failure plan and release decision with named owners and unresolved gaps.

Jump to a section in this lesson

A timeout does not tell you whether the work happened

A request can reach a server and save a record even if the response never returns to the screen. If the user tries again, a careless system may create a second record. Test this uncertain outcome separately from a request rejected before saving.

AWS's safe-retry guidance describes using a caller-provided request identifier to recognize another attempt at the same action. The contract also needs clear rules for changed inputs and how long that identifier is remembered. A matching identifier alone is not a complete implementation.

Give failed and uncertain work a place to go

Define what the user sees, where the case waits, and who reviews it. An unclear status should not quietly become success. A useful review item includes the original request reference, the last known step, the reason for review, and the next allowed action.

Decide what can be retried and what needs a person. A missing required field needs correction, not endless retries. If saving a draft succeeds but a later notification fails, retrying the whole task may duplicate the draft. Test the recovery of that later step on its own.

Make the release a decision with limits

Group your checks as passed, failed, not run, or blocked. A blocked check means something prevented you from testing; it is not a pass. Write the remaining risks in plain English and name who decides whether a limited release is acceptable.

For a small release, name the allowed users and cases, what someone will watch, the pause rule, and the fallback. Stopping new runs does not undo records already written or messages already sent. Plan how to inspect and repair those effects separately.

These lessons and planning tools do not certify an app or prove it is ready for every use. The next decision depends on the actual system, evidence, and effect of a failure.

Worked example

A saved draft and a lost response

In this fictional test, the app saves a work order but the response to the coordinator is interrupted. The screen cannot tell whether the action finished.

Expected repeat behavior
Trying the same action again with the same request identifier should return the existing draft under this app's contract. It should not create a second draft. Confirm the saved count and draft identifier.
Changed request
Send different quote details with that same identifier in the test environment. Expect a clear conflict under the stated contract, rather than a silent change to the original action.
Uncertain case
If the system cannot confirm the outcome, place the case in review. Show the coordinator how to find the request and who owns the check. Do not invite repeated blind clicks.
Limited release plan
Begin with one trained coordinator and a bounded case set only after the planned checks are reviewed. Pause new runs if a duplicate or wrong quote link appears. Inspect and repair affected records before restarting.

A recovery plan covers the uncertain result and the work already done, not only the next button click.

Fictional teaching example. No customer data or measured business results.

Your exercise

Write a failure and release note

Use the journey from lesson 3. Do not create failures in a live system for this exercise.

  1. Choose a failure before saving, an uncertain outcome after saving, and a failed later step. Write the expected state and recovery path for each.
  2. Write how the same request, a new request, and a changed request using an old identifier should behave. Mark any unimplemented behavior as a gap.
  3. List your checks by status: passed, failed, not run, or blocked. Attach an observed result to each claimed pass.
  4. Name the release decision-maker, limited scope, pause rule, fallback, and person who will review records already changed.

You have a useful first draft when...

The release note makes failed and untested work visible and gives a person a clear way to stop, review, and recover.

Check your understanding

Try the practice quiz.

Choose one answer for each question, then check the feedback. Answers stay in this page's memory. They are not submitted or saved.

1.A create request times out. What can you conclude from the timeout alone?
2.You stop an automation after it creates wrong records. What still needs attention?
3.A required integration check could not run because the test service was unavailable. What is its status?

0 of 3 answered

Sources and further reading

The examples and exercises are original. These primary sources support the technical methods used in this lesson.

Use what you learned

Take the next step with a tool or guide.

Software verification checklist

Turn a promised result into checks you can run and record.

Workflow readiness check

Find gaps in the process, data, ownership, and test plan.

Test an automation before you trust it

Plan checks for normal work, repeated work, and failed steps.