Security Engineering • Self-Healing Software • Part 1 of 4

Prove-to-Keep™: Software That Patches Itself - and Proves It

Most shops patch on a calendar. Attackers don’t keep one. Prove-to-Keep™ is how we run our own software: bots find, try, test and keep updates on their own, broken updates undo themselves, and nothing gets called “fixed” until a test proves it.

• 5 min read • Security Engineering • Threat Vector Management

By Fezz · Threat Vector Management · December 2026

Research, fact-checking and graphics support by Claude (Anthropic)

The self-healing patch loop Eight steps in a circle: a new release is spotted, the newest version is tried, our tests run, a pass is kept and goes live, a failure steps back one release, no fix anywhere means we build it ourselves, it is rebuilt and used, and the fix is offered back to the project. Then the loop starts again. Runs every day nobody has to remember it 1. New releasespotted at the source 2. Try the neweston its own branch 3. Run our teststhen a flaw check 4. Pass: keep itand confirm it's live 5. Fail: step backone release at a time 6. No fix anywhere?we build it ourselves 7. Rebuild, use itsame tests apply 8. Offer it backwhere the project allows
What this picture says: a new release is tried, tested and kept only if it passes. A failure steps back instead of breaking anything, and when nobody has shipped a fix, we build one, use it, and offer it back.
BLUF

Bottom Line Up Front

This post says which layer it hits: Device (the devices an organization owns and runs: staff laptops, phones and browsers, and network appliances such as VPN gateways, firewalls and routers), Platform (the infrastructure an organization runs on: cloud accounts, servers and their operating systems and runtimes, and the business software it hosts or subscribes to) or Product (the apps and services an organization builds for its customers, including its websites and the code, packages and plugins inside them). The first layer named is where the flaw lives; any others are where the harm lands.

Device– not hit
Platform✓ harm lands here
Product✓ flaw is here

Where it hits: The flaws live in the libraries and bundled parts inside the software an organization builds, and the harm lands on the servers, container images and cloud services that software runs on.

Hashtags for this post: #SelfHealingSoftware #AutomatedPatchManagement #DependencyUpdates #SoftwareSupplyChainSecurity #Rollback

Why a calendar isn’t enough

Patch day is a calendar. Exploits aren’t. The gap between “a fix exists” and “the fix is running here” is where most of the risk lives - and that gap is mostly people having to remember to do things. Closing it, for every library, runtime and image we depend on, is the everyday work of software supply chain security.

So we took the remembering out, and automated patch management does the rest. Our bots check every library, runtime and container image we rely on against its publisher every day, then try the newest dependency update, then test it, then keep it or back it out - then bring it to our attention only when something truly needs a person. Security fixes go to the front of the line, and part 3 covers why speed alone is not safe.

Proving a change before keeping it is also the heart of the standard in Prove It, Then Ship It: A Secure Development Standard. This post shows the same idea running on its own, every day.

Stepping back, one release at a time

Releases laid out oldest to newest, left to right. We were running 1.0. We try the newest, 1.4, and a test fails, so we step back one release to 1.3, which passes every test and is installed: three releases newer than before, with 1.1 and 1.2 coming along. 1.4 waits for its fix and is tried again on a set date, with the failing test named. If no newer release passed, 1.0 would stay. 1.0 running before 1.1 comes along 1.2 comes along 1.3 ✓ passes: installed 1.4 newest ✗ a test fails 1. Try the newest first 2. It fails: step back one 3. Installed 1.3: three releases newer than before stays only if none pass 1.4 is tried again on a set date; the failing test is named. older → newer
What this picture says: a failed update never lands. We keep the newest release that passes, write down which test blocked the others, and come back for the newest one later.

Stepping back like this is automated rollback, with no one having to decide at the moment it happens. Two things we learned the hard way here. Some packages can’t move alone - one update we needed only worked when eleven other related packages moved with it, so they now move together and step back together. And a release that failed is remembered, so the bots don’t burn a run retrying the same bad one every day.

When nobody has shipped a fix

Sometimes the newest release still carries the flaw - usually because it bundles an older copy of some other library inside it. Waiting on someone else’s release calendar isn’t a plan. So we rebuild that part ourselves from the publisher’s own signed source, with the fixed piece swapped in, run the same tests, and use it. Then we offer the fix back to the project where its rules allow it.

Often the better move is to build less: keep only what our feature actually uses. That’s part 2, Need-to-Run Builds™, with four real examples.

“Fixed” means proven

A fix counts only when its test fails on the old code The new test run against the old code fails, which proves the test can see the problem. The same test against the new code passes. Separately, a check that could not run is marked incomplete and never counts as a pass. New test + old code✗ must fail New test + new code✓ must pass Both true?then it's fixed Check couldn't run? → "incomplete"never counted as a pass, and it says why
What this picture says: a test that passes on broken code proves nothing. Ours have to catch the old problem first, and silence is never read as success.

Healing: the fault fixes itself on the next run

If a fix needs someone to remember a cleanup command, it isn’t fixed. So a job that gets interrupted picks up where it stopped instead of starting over, a stuck step clears itself the next time it runs, and anything saved earlier gets checked again when it’s read - so a bad entry from before a check existed heals on its own.

Where it broke - and what each one taught us

A scan that quietly wasn’t. Two parts of our system disagreed about which files described one app’s containers. For 46 days that app’s images went unchecked, and every report still read fine. Now there’s one shared way to find those files, with a test proving every one is found. Lesson: an empty result and a broken check look the same from outside - make them look different.

Our own watchdog undid a fix. When the operating system’s scheduler stopped starting some of our timed jobs, the watchdog that guards those jobs wrote the broken schedule back each time it checked. The schedule now comes from code, and the gate refuses the old style. Lesson: a guard that restores the past can restore the bug.

Tools that said “done” when nothing moved. A package tool reported success and left the package exactly where it was, because something else was holding it. Now every move is read back from the result before we believe it. Lesson: trust the artifact, not the exit code.

A scanner that gave us false alarms. One scanner misread a line in a dependency list and reported every advisory ever published for that package, fixed or not. A false alarm is cheaper than a missed one, but it still trains people to ignore alarms. We changed how those lines are written and added a check over every dependency list. Lesson: check the checker.

What it costs

It isn’t free. Every rebuilt part is now ours to keep current. Builds take machine time, and tests have to be good enough to trust with “keep or back out”. We think it’s worth it - the alternative is trusting a calendar and a memory - but say so plainly, because “self-healing” can sound like magic. It’s mostly discipline, written down as code.

The same habit of giving each piece one narrow job runs through our Feed-Forward Agent Framework™ for AI agents.

What’s next in this series

Part 2: Need-to-Run Builds™ - stripping working software down to only what it needs to run, and splitting it apart instead of letting it grow back, with four real examples. Part 3: Fast Isn’t Safe On Its Own - why “newest” is also where supply-chain attacks land, and how we limit what a bad release can reach. Part 4: Open Source Is Turning Away Tested Fixes - what we’ve seen offering fixes back.

Change log

Changes made after this post was first published, oldest first.

: the stepping-back picture is redrawn as releases from oldest to newest: the newest fails a test, so we step back one, which passes and is installed, three releases newer than before; the newest is tried again on a set date.

Get the next one first

New Threat Briefs and Deep Dives, delivered to your feed reader the moment they publish. No sign-up, no email, no tracking.

Follow Insights