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
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
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.