Issue 07 · Updates & Rollback

Updating Over a Trickle

Change is the leading cause of large outages, and at the edge the change arrives over kilobits onto a box nobody can reach. Ship small, install beside, flip atomically, and prove what is live.

Field Notes from the Edge — By Joseph C. McGinty Jr. — December 2, 2026

From the Editor

Issue 06’s back page promised this topic: updating models over a trickle of bandwidth. Here it is.

The dominant cause of large-scale disruption is not hardware and not attackers. It is change. Two of the largest cloud incidents in July were change-induced, a phone update left handsets in boot loops in March, and a smart-home hub update bricked devices in July. Those teams had fat pipes and staff on call. An edge fleet on a satellite link has neither.

So this issue teaches one discipline: ship small, install beside the running system, flip atomically, prove what is live, and keep a way back you have actually exercised. The Field Notes come from my own bench, where a one-line edit lied to me for six minutes.

Change is the risk. Make it boring.

Feature

Shipping Change Over a Straw

A model update on a contested link is five problems wearing one progress bar: size, placement, pace, retreat, and proof.

The update is the most dangerous thing you will ever send to an edge box. It arrives with your signing key and your blessing, and it changes everything at once. In a data center a bad push is caught by a canary and reverted in minutes by someone at a console. At the edge, the push crawls in over a link measured in kilobits, lands on a device nobody can touch, and if it fails the device may stay failed until a truck goes out.

Rule 1: Send differences, verify wholes

A model checkpoint of several gigabytes will never fit through a trickle, but the difference between two versions often will. Chunk the artifact, address each chunk by its hash, and send only the chunks the device lacks. Resume by chunk, not by file, because the link will drop. Then, after reassembly, hash the whole result and compare it to a signed manifest. Deltas save the link; the whole-artifact check is what lets you trust what arrived.

Rule 2: Never write into the slot that is running

Keep two complete installations, slot A and slot B, and one pointer that says which is current. Install into the idle slot, verify it there, then move the pointer. The move must be atomic: a symlink rename or a bootloader flag, something that is either old or new with no third state. A power cut during an in-place overwrite leaves a half-written binary. A power cut during a rename leaves whichever version was already whole.

~5 h
Azure West US network failure on July 23, 2026, one of two large change-induced cloud incidents that month
2
consumer device fleets left boot-looping or bricked by updates this year: Pixel in March, Hue Bridge Pro in July
July 29
date CISA and partner agencies published updated SBOM minimum elements, with component hashes and AI software included

Rule 3: Roll out in rings, with health you defined first

Choose the health check before you choose the rollout order. A health check is a command that exits zero when the service answers correctly on real inputs, not when the process merely exists. Then push to one device, then a handful, then the rest, and widen only after the earlier ring has run long enough to show the slow failures. Keep a kill switch that halts the rollout without a new release.

Rule 4: Rollback is a path, and paths are tested

The Hue Bridge Pro failures in July hit users who had disabled automatic updates, stayed on an old version, and then installed the new one by hand. The update worked from the latest version. It did not work from theirs. Your fleet is the same: it holds every version you ever shipped, because some device was powered off on every release day. Test the install from each of them, and test rollback from the new version back to each of them.

If you have never rolled back on purpose, you do not have rollback. You have a hope.

Rule 5: Prove what is live, from the inside

The pointer says slot B. The manifest in slot B verifies. Neither fact proves the running process loaded slot B. Have the service report its own binary hash, model digest, and effective configuration through its health endpoint, and record that report in the chained log from Issue 05 at every start and every flip. The box should answer the question without anyone logging in.

Field Notes

The Flag That Was True on the Host and False in the Container

Six minutes of being wrong about my own box, and a scheduler that fired twice.

I run a containerized service on the bench with its settings file passed in as a single-file bind mount. One evening I needed to flip a feature flag, so I did the obvious thing on the host: sed -i on the file. I checked the file. The flag read true. I told the service to reload and moved on.

Six minutes later the behavior had not changed. The host still said true. I finally opened a shell inside the container and read the same path. It said false.

What happened

sed -i does not edit a file in place. It writes a new file and renames it over the old one, which gives the new content a new inode. A single-file bind mount is bound to the inode, not the path. The container kept the old inode, so the process kept reading the old file, and from inside the container the edit had never happened. The filesystem I was staring at was not the filesystem the process was reading.

The fix was small: mount the directory, not the file, or write the change with a tool that truncates and rewrites in place. The lesson was larger. I had verified the change by looking at the place I believed the process read from. The process was the only authority on what it was reading, and I had not asked it.

The deploy that fired twice

A week later a job scheduler in the same stack taught the companion lesson. It arms two daily slots at startup and keeps no memory across restarts. Every redeploy re-armed both slots, saw that the day’s times had passed, and fired both actions again. Each deploy produced a duplicate. The fix was one persisted record: this slot already fired today. Any process that acts on a schedule needs that record to live outside the process, or every update becomes a replay.

Verify from inside the running process. The filesystem you think it reads is a theory. The Toolbox script prints the hash of what is live after the flip, not before.

Systems Brief

The Update Is the Attack You Signed

Change is the leading cause of large outages. Treat the update path as a mission system in its own right.

Two of the largest cloud incidents of July 2026 were change-induced: an Azure West US network failure of about five hours on July 23, and an AWS fault on July 16 where routing configuration failed to distribute correctly. In March a Google Pixel update left some phones in boot loops. In July a Philips Hue Bridge Pro firmware update bricked hubs, mostly for users who installed it by hand from an old version. Those teams had bandwidth and staff. A forward site has neither.

What buyers get wrong

  • Accepting over-the-air as a checkbox. Ask the update size, how it resumes after a drop, and what a mid-install power loss does.
  • Testing the upgrade from one version. Fleets hold every version ever shipped. Require evidence from every starting point.
  • Taking the vendor’s word for what runs. CISA and partners published updated SBOM minimum elements on July 29, 2026, with component hashes and AI software included. Require the box to produce that inventory itself.
  • Treating rollback as a feature. It is a drill. Ask when it last ran on fielded hardware.
A fleet you cannot safely update is a fleet you will stop updating. An unpatched fleet is the next outage.

What to require

Write these into the solicitation: delta transfer with chunk-level resume and signed whole-artifact verification; two-slot installation with an atomic switch; staged rollout with a defined health check and a kill switch; automatic rollback on health failure, tested from every supported version; a runtime inventory of component hashes, model digests, and configuration, reported by the running service and written to the audit log; and a bandwidth budget for a full update over the link the mission will actually have.

Toolbox

Two Slots and a Symlink

An A/B switcher in bash: verify, flip, check health, and fall back on its own.

Try it: put files plus a MANIFEST.sha256 (from sha256sum *) in a staging directory, run once to verify, then add --apply.

Two slots, one symlink. The script verifies the staged manifest, copies into the idle slot, verifies again, flips current with an atomic rename, runs your health command, and prints the live manifest hash or rolls the symlink back. Without --apply it only reads.

#!/usr/bin/env bash
# abswitch.sh: A/B slot switch with verify, health check, auto rollback
set -euo pipefail
ROOT=${ROOT:-/opt/app}; STAGE=$1; HEALTH=$2; APPLY=${3:-}
cur=$(readlink "$ROOT/current" 2>/dev/null || echo "$ROOT/slot_b")
[ "$cur" = "$ROOT/slot_a" ] && idle=slot_b || idle=slot_a
(cd "$STAGE" && sha256sum -c --quiet MANIFEST.sha256) || { echo "manifest FAIL"; exit 2; }
echo "staged ok; live=$(basename "$cur") idle=$idle"
[ "$APPLY" = "--apply" ] || { echo "dry run; add --apply to install"; exit 0; }
rm -rf "$ROOT/$idle" && cp -a "$STAGE" "$ROOT/$idle"
(cd "$ROOT/$idle" && sha256sum -c --quiet MANIFEST.sha256) || { echo "copy FAIL"; exit 3; }
ln -sfn "$ROOT/$idle" "$ROOT/current.tmp" && mv -T "$ROOT/current.tmp" "$ROOT/current"
if bash -c "$HEALTH"; then
   echo "LIVE $idle $(sha256sum "$ROOT/current/MANIFEST.sha256" | cut -c1-16)"
else
   ln -sfn "$cur" "$ROOT/current.tmp" && mv -T "$ROOT/current.tmp" "$ROOT/current"
   echo "health FAIL; rolled back to $(basename "$cur")"; exit 4
fi
  • Run ROOT=/opt/app ./abswitch.sh ./staged 'curl -sf localhost:8080/health' --apply.
  • Exit 2 or 3 means a hash mismatch; nothing was flipped.
  • Exit 4 means health failed and the old slot is live again.
  • Log the LIVE line to your audit chain; it is the proof of what runs.

Signal vs. Noise

Short Takes

Four ideas worth keeping, in the time it takes to read them.

Change is the outage.

The largest disruptions of the year were caused by updates and configuration pushes, not by hardware or attackers. Treat every release as the riskiest thing the system will do that day.

Deltas save the link; hashes save the box.

Send only the chunks a device lacks, because the pipe is thin. Then verify the whole reassembled artifact, because a saved kilobyte is worthless if the result is wrong.

Test from every starting version.

A fleet contains every release you ever shipped, since some device was off on every release day. An update path proven only from the latest version is unproven.

Ask the process, not the filesystem.

A file can look right on the host while the running service reads something else. The only authority on what is live is the process itself, reporting its own hash.

Field Checklist

Before the Push

Eight checks for any update headed over a thin link.

  • Artifact is chunked and content-addressed; transfer resumes by chunk.
  • Whole-artifact SHA-256 verified against a signed manifest after reassembly.
  • Install target is the idle slot, never the running one.
  • Switch is atomic: symlink rename or bootloader flag, no third state.
  • Health check exits nonzero on wrong answers, not just a missing process.
  • Rollout runs in rings with a kill switch that needs no new release.
  • Install and rollback tested from every version still in the fleet.
  • Running service reports its own hash, model digest, and config into the audit log.

Score yourself honestly. Every unchecked box is a finding, not a failure.


Next issue: Issue 08: Configuration Is the Outage. Change control and config attestation for edge fleets.

A ResilientMind AI publication. Views are the author's own. Code samples are provided as-is for test environments. © 2026 ResilientMind AI, a trade name of Help-Veterans.org LLC.

All issues