---
title: "CI/CD Reliability Audit: Verify Releases and Recovery | Matthew Oldach"
url: "https://matthewoldach.com/field-notes/cicd-reliability-audit/"
description: "Two checks on the same app returned 200 and 503. A local AWS simulation shows how to catch a broken release and how to tell when the repair has worked."
---

1.  [Start](https://matthewoldach.com/)
2.  [Field Notes](https://matthewoldach.com/field-notes/)
3.  How a broken app passed its health check

Field Notes **/** EngineeringCI/CD reliability audit

# How a broken app passed its health check

Two requests reached the same running application. Only one could tell whether it still did its job.

[Matthew Oldach](https://matthewoldach.com/about/) November 18, 2026

One running application

`/health`**200**Process responds

`/release`**503**Request fails

HTTP responses measured with the incompatible file selected.

Suppose you mean to switch an app from version 1 of a file to version 2. Your dashboard has one green light. Would you let that light approve the switch? Before you answer, it helps to know what it takes to turn the light on.

In this AI-assisted local experiment, the entire health check was a Python app replying “process running.” That’s a useful thing to know if you’re deciding whether to restart it. The person approving the switch has a different question: **can this app use the file we just selected?**

## What changed while the app stood still

The experiment fits on one computer. A table holds the active file’s version and format number. On a request to `/release`, the app looks up that record, fetches the matching file and checks compatibility. The starting reply was `{"version":"v1","schema":1}`. Here, _schema_ means the format the app expects.

**Inside a release request**

1.  **Look up the version**
    
    A DynamoDB record holds the selected version and its format number.
    
2.  **Fetch its file**
    
    The app opens the matching JSON file in S3. The file describes the release.
    
3.  **Check compatibility**
    
    The same Python app handles every request. It understands format 1.
    

The app found the v2 file. Its next check rejected the format specified in the table. Restoring v1 selected the supported format again.

The table and file store are local stand-ins for Amazon’s DynamoDB and S3. The files are descriptions of releases. The Python program itself stayed the same throughout. [Moto simulator documentation](https://docs.getmoto.org/en/latest/)

## The file arrived. Why did the request fail?

The script stored a second file and changed the table to select it. Both specified format 2. The app accepted only format 1.

The health check still returned `200`, the web’s code for success. The release request fetched the new file, read its contents and then reached the first compatibility check. The table said 2. That alone was enough for the app to return `503`, service unavailable. Restarting the same code with the same setting would send it straight back to that check.

**What the two requests returned**

**●** Release request**◇** Health request

**Original****Incompatible****Restored**Success●◇●Failure●

See the four HTTP responses

Selection

Process `/health`

Release `/release`

Originalv1

Unmeasured

**200** Served v1

Incompatiblev2

**200** Running

**503** Unavailable

Restoredv1

Unmeasured

**200** Served v1

With the incompatible file selected, the app answered both requests. Only the one that had to open the release file exposed the fault.

One write repaired the failure. The script pointed the table back to version 1 and format 1. A direct check confirmed that the file identified itself as v1 and both format numbers were 1. The request that had failed now returned `200` and reported v1.

[![Moto’s S3 dashboard lists releases/v1.json and releases/v2.json in the reliability-lab bucket, each 30 bytes.](https://matthewoldach.com/images/cicd-lab/moto-objects.webp)](https://matthewoldach.com/images/cicd-lab/moto-objects.webp)

**Both files were still on the shelf.** This is the local Moto dashboard after a repeat run. The setting in DynamoDB determined which file the app opened.

## The more revealing test came after the repair

Imagine two people looking at that last reply. The person restoring v1 sees the selection they wanted. The person expecting v2 should stop the release. **They’re looking at exactly the same successful response.**

The lab tested that distinction. After restoring v1, the script deliberately told the verifier to expect v2. It rejected the mismatch. The files also had different fingerprints, confirming that their contents differed. A check that accepted any successful response would have missed the difference.

That gives a release team a specific rule to try: **declare the intended version before the check, run one operation affected by the change, and compare the returned result with that expectation.** If the running system supplies both the answer and the definition of success, the check can bless yesterday’s working version indefinitely.

## When the work finishes somewhere else

What if the change affects a background job, such as sending a receipt? An immediate reply can tell you the service accepted the request. To find out whether it finished, you have to follow the job one step further.

**Where did the message go?**

1.  Work queue**First read**1 message
2.  Work queue**Second read**1 message
3.  Work queue**Third read**0 messages
4.  Dead-letter queue**Final read**1 message

All three envelopes represent the same message. It remained unacknowledged through two reads, then turned up in the queue for unfinished work.

In a separate probe, the script picked up the same message twice and left it unacknowledged. On the third read, the work queue was empty. The message had moved to a dead-letter queue, where unfinished jobs wait for attention. No worker ran. An empty queue and a delivered receipt would have looked identical to a dashboard that counted only waiting jobs.

## Put one release on trial

Choose a change small enough to describe in a sentence. Suppose a team changes how a customer’s apartment number is saved. A useful check would enter “Unit 4B” with a test account, leave the page, then reopen the address through the customer-facing site. The expected result is already written down: the apartment field still says “Unit 4B.”

Decision

Evidence to ask for

Did the intended change reach this address?

Follow the reviewed change to its tested build, then match the build’s fingerprint to the software serving the request. Check the active settings and traffic route.

Did the change work?

Read the saved address back and compare the apartment field with the value entered. A successful save response alone leaves this unanswered.

Would the check catch a bad release?

In a test environment, try a version known to drop the apartment number. Require the check to fail there and pass when the field is preserved.

The address example is a proposed rehearsal. The local lab exercised a file selection. It gives us a counterexample to one release rule—“the process responds, so approve the change”—and no estimate of how often that rule fails in production.

## A recovery card for the next release

Restoring the selection worked here because the earlier file still existed and its format was supported. For a live service, make that reasoning explicit while there’s time to test it. A Kubernetes Deployment, for example, rolls back the Pod template. Changes to a database or an outside service can require their own recovery action. [Kubernetes Deployment rollback](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-back-a-deployment)

### Before the release

*   **Name the trigger and the decision maker.** Agree on the symptom that warrants intervention, who can act and how to pause competing changes.
*   **Locate the last working combination.** Find the exact software and settings. Check that the person on call can restore them through the normal deployment controls.
*   **Account for work already done.** Can the older version read records written by the newer one? What happens to queued jobs or payments already taken? If reverting could compound the problem, plan a targeted repair.
*   **Rehearse the decision.** Try the recovery in a suitable test environment. Pick the affected customer task, the service signals and an observation period before they’re needed.

### Before calling it recovered

*   **Read back what is active.** Check the restored version and settings wherever traffic can land.
*   **Repeat the task that failed.** Use the normal entry point and check the contents of the response. For background work, follow one item through to completion.
*   **Watch the aftermath.** Look at errors, response times and unfinished work under representative traffic. Record what recovered, what still needs attention and who owns it.

At your next release review, pick one fault everyone agrees should stop the release. Rehearse it in a test environment and watch the approval decision. If the release would still go through, you’ve found a gap. Keep that broken example. It’s how you’ll know when the gap is closed.

For help tracing a release with your team, my [DevOps and platform engineering service](https://matthewoldach.com/services/devops-platform-engineering/) includes a scoped delivery review and a prioritised plan.

Lab method and limits

The experiment ran a Python HTTP app and Moto 5.1.21 on separate local ports using boto3 1.40.70, synthetic records and dummy credentials. The script made four HTTP requests to the application across the baseline, injected fault and restoration. It queried `/health` only during the fault. The remaining checks inspected simulated services directly. A repeat run produced the same 17 logged events. The bundle contains the source, pinned dependencies, results and instructions. [Download the lab and its results (ZIP)](https://matthewoldach.com/downloads/cicd-reliability-lab-v1.zip)

Two additional probes looked up a missing file and a missing table. Moto returned `NoSuchKey` and `ResourceNotFoundException` respectively. The script recorded the errors without testing a repair.

The official AWS Emulator was considered first. Its container setup stopped at a local runtime connection before any emulator API calls. All the observations reported here came from Moto and the local application. The experiment measured request outcomes and selected data formats. Production deployments, cloud permissions, subnet capacity, performance and recovery time fall outside its scope.

[← More Field Notes](https://matthewoldach.com/field-notes/)
