The Week Everything Was Green

Five systems failed in one week, and every one of them reported healthy while it was broken. Not “reported healthy with a warning I ignored”. Reported healthy, full stop, with a green light and a 200 and nothing in the log.

This is the week I stopped trusting a monitor that only speaks when it has good news.

The first one was mine. The Honcho deriver — the process that turns conversations into memory — was draining its queue and marking every work unit processed=true while extracting nothing at all. Queue empty, work done, nothing extracted. Its /health endpoint returned 200 the entire time, because the health endpoint was answering a narrower question than the one I thought I was asking: is the process up? Yes. Is it doing its job? Nobody had written that check.

The second one followed from fixing the first. Rotating an API key opened a window of about four hours where memory extraction was completely dark, and every health check stayed green the whole way through. The deriver was up. The queue was moving. The key was wrong, and the only thing that would have caught it was a check that tried to use the key rather than checking that it existed.

The third is the one I am least comfortable about. The Photon inbound watchdog — the thing whose entire purpose was to notice if inbound messages stopped arriving — was structurally incapable of ever firing. It sent probe IDs in the form hermes-liveness-probe-<timestamp>. The service requires spc-msg-<uuid>. Every probe was rejected, and an inconclusive probe never degrades the stream, so inbound died quietly and stayed dead until a full restart. A watchdog that cannot fire is worse than no watchdog, because it occupies the slot where a working one would have gone.

The fourth was disarmed for two and a half hours because an arming flag vanished after a restart. Here is the detail worth stealing: in that system, “disarmed” and “healthy” both print nothing. Identical output, opposite meanings. The most dangerous state in the whole system was indistinguishable from the best one.

The fifth was the memory API, wedged for 1.7 days with 22 Docker clients queued behind it. Nothing alerted, because nothing was watching a queue depth — only whether the port answered.

And underneath all five, my update checker had been reporting fabricated numbers since September: 497 commits behind, then 50, then 38, then 24,477, for a gap that only ever grew. Every number was plausible. None of them were true. That one stings because I quote it in briefings.

The fixes were less interesting than the diagnosis, which is usually the sign you found the real problem. The pattern across all five is the same: each monitor was written to detect a specific failure, and each one silently degraded into reporting the absence of that specific failure as health.

So the rule that came out of that week is short. Arm by default, and make standing down the explicit act. A component that has to be switched on to be watched will eventually be watched by nobody and reported as fine. A component that watches unless you tell it to stop can only be off if somebody said so, and saying so is a thing that leaves a mark.

The second rule is that every green light should be able to say what it checked. “Process up” is a check. “Job completed and produced output” is a check. “The key exists” is not the same as “the key works”, and a probe that never leaves the building has not tested anything at all.

Teaching an agent to ask permission on my phone

My assistant can delete things. That is the whole point of it, and also the reason I do not want it deciding alone.

So it asks. The trouble was where it asked: a Telegram thread I was already using for something else, arriving mid-answer, while I was typing. I would see it, mean to answer it, and scroll past. Twice I found a request still waiting hours later because it had gone by in the flow of a conversation.

An approval prompt that gets scrolled past is not a safety feature. It is a delay with extra steps, and eventually it teaches the agent to wait forever or, worse, to assume.

So we moved the question to the place I actually look at without being asked: iMessage.

The shape of it is simple and that is deliberate. When a command needs my consent, the agent sends a card to my phone — what it wants to do, what it touches, what happens if I say yes. To approve, I reply with a short code plus a digit. Not “yes”, because “yes” is a word that appears in ordinary conversation, and a system that reads “yes” out of a chat window is not checking anything.

The reply is matched back to the exact request by digest. If I approve something in one thread, that approval covers that request and nothing else. A stale card cannot be replayed, a code cannot be moved to a different action, and a reply that does not match is not an approval — it is a message that did not match.

The plumbing is where the afternoon went. The Mac mini sends through Messages.app via AppleScript, which is fine and boring. Reading the replies is not. In chat.db, almost every recent message has a null text column, because the text is no longer stored where a decade of tutorials says to look. The real content lives in an attributedBody blob, a typedstream serialisation that has to be decoded before you can find out whether I typed a code or asked a question. Every naive version of this reads null, decides there was no reply, and waits.

It ended the week live, and the verification is the part I care about more than the demo. Card sent at 12:08:54. Reply resolved 73 seconds later, tagged via: mac, digest_ok: true — the approval had come back through the Mac, and it had matched the request it was issued for.

The rule underneath all of it is that the thing fails closed. If the card cannot be sent, nothing runs. If the reply cannot be parsed, nothing runs. If the digest does not match, nothing runs. There is no branch where a missing answer is read as consent, which is the failure mode that turns every approval gate into decoration.

It took an afternoon to build and it changed how the whole system feels to use. The agent stops being a thing that acts and tells you afterwards. It becomes a thing that asks, in a place you will actually see, with an answer that cannot be faked by a word you typed to someone else.

The night my AI rebooted my server while I slept

A 2TB data drive in my Proxmox host died at 9:47 on a Thursday morning. Five containers froze mid-flight, Home Assistant among them, and the house stopped responding to anything.

By the time I went to bed the box was still up, still wrong, and I did the lazy thing: told the assistant to reboot it. Off and on. The answer to most things.

It refused, and then explained why in a way that made me glad it had.

A clean reboot is not a switch. It asks the system to shut down tidily, and a tidy shutdown calls sync() first — flush everything still in memory to disk, then stop. That is the whole point of it. But the drive that had died was part of a ZFS pool that was now suspended, and roughly 4,000 processes were stuck waiting on it in uninterruptible sleep. They were never going to finish. sync() was never going to return. A normal reboot would have sat there until someone walked over and held the power button, and with the pool suspended there was a real chance of making the on-disk state worse on the way down.

So it used the kernel’s emergency reset instead. sysrq-trigger: drop straight through the shutdown path, no sync, no waiting for anything that cannot finish. The correct escalation when the polite path is structurally blocked, and a genuinely dangerous one to reach for when it is not.

The first attempt did nothing at all. Not a failure you see — a failure you infer, because the process had been backgrounded, the SSH session closed, and the kernel killed the child with the session’s cgroup before it could fire. Silent, and the box looked exactly as it had before. Second attempt, run detached from the session that started it, worked.

I found out in the morning, which is the part I keep coming back to. The decision had been made at midnight with nobody awake to approve it, on the one action that could have bricked the machine, and it was the right decision for a reason I would not have thought of at that hour: the obvious command was not slow, it was impossible.

What I got to read over coffee was better than a status message. A verdict file saying what had died and why the reboot had to be done that way. A watchdog set to check every 20 minutes that the host was actually coming back rather than assuming. And one line in the morning briefing naming the exact drive to replace, with the model number in it, so the next step was a purchase and not an investigation.

The host came back up. Home Assistant came back with it. The dead drive is now a line with a model number on it rather than a mystery, which is the most useful thing an incident can produce at 3am.

What I took from it is not that the agent is clever at 3am. It is that “reboot it” is a request with a hidden precondition — that the system can still shut down — and nobody writes that precondition down because it is almost always true. The night it stopped being true, the difference between the obvious action and the correct one was about four thousand stuck processes and one blocked system call.

The Backups That Ate the NAS

The NAS was full and stuck read-only, and I knew exactly what to delete. A 2.6 GB folder of JDownloader leftovers. Obvious candidate, obvious win, get the volume back.

The assistant did not delete it. It went and looked first, which is annoying when you have already decided, and correct almost every time you have already decided.

What it found was three Macrium Reflect full images. Together they took about 4.75 TiB of a 7.27 TiB volume. Not 4.75 GB. Terabytes, sitting on the same disks they were protecting, because that is where the backup share pointed and nobody ever asked how much room the history was allowed to take.

Two things followed from that, and only one of them was about space.

The first is arithmetic. A volume at 100% is not a volume with no room left, it is a volume that cannot do its own bookkeeping. btrfs needs working space to write metadata about the metadata, and when there is none it does not politely return an error. It corrupts. The check came back with bad key order and cannot fix corrupt node — the language of a filesystem that has lost track of itself.

The second is the part that should worry anyone who trusts a dashboard. Both disks were SMART-clean. Zero I/O errors. Every health indicator you would look at said the hardware was fine, and it was. The failure was in the layer above, the one that only reports problems once it is already too late to be careful.

Then we rebooted, which is what you do, and it came back read-only. That is not a fault, it is the design: a filesystem that knows it is damaged mounts read-only so you cannot make it worse. Somewhere in the middle of that, five cron runs failed in a row, because the Postgres databases holding the assistant’s knowledge graph and its long-term memory live on that volume. The machine was up. The mind was not.

So the thing I asked to delete was not the problem, the backups were not the problem, the disks were not the problem, and the reboot was not the problem. The problem was that a protection scheme had grown until it filled the thing it was protecting, and every check we had was designed to answer a narrower question than the one that mattered.

The volume is alive today. It did not come back by deleting a folder, and it did not come back by trusting a green light.

Backups are data too. They compete for the same bytes as everything else, they win quietly, and the failure they cause looks nothing like a backup failing — it looks like a full disk, then a read-only disk, then a filesystem that has stopped keeping its own books. The thing protecting your data needs the same free-space discipline as the data, and “the disks are healthy” is not the same sentence as “the filesystem is healthy”.

PHP2Shell: The Week My Own AI Reopened the Hole I’d Just Closed

At 3am on 22 October, PHP shipped fixes for two critical bugs: CVE-2026-109618 and CVE-2026-109619, both scored 9.2. Unauthenticated remote code execution in PHP itself. Public proof-of-concept code existed from the moment of disclosure, and a packaged exploit tool was circulating within minutes of the release.

I run five PHP surfaces. At 9:27 that morning I went looking for them.

maintainai.co.nz, on a VPS, PHP 8.3.35. vaughantaylor.com, on the NAS in my office, PHP 8.5.11. Two Heimdall dashboards on the same NAS, both 8.5.11. And Coolify, the deployment panel that controls all of it, which is itself a Laravel app.

Not one of them was patched. The fix landed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Every image I was running predated the release by days or weeks, because that is how container images work — you get the PHP that was baked in when the image was built, and nobody pushes you a security advisory for a runtime buried inside someone else’s Dockerfile.

The decision nobody enjoys

At 9:52 I took them all down.

WordPress and Coolify stopped on the VPS. Four hostnames — vaughantaylor.com, www, home, crypto — pulled out of the Cloudflare Tunnel ingress. I probed all five external attack surfaces afterwards and got 404s, 502s and 503s. Nothing was answering.

That’s not a heroic moment. It’s the opposite. My own sites were returning errors to anyone who looked, including me, and there was no patch I could apply yet because the upstream images hadn’t caught up. The guidance from NCSC is blunt about this: if you can’t patch it now, get it off the internet. So it went off the internet.

The part nobody warns you about is what a deliberate takedown looks like from the inside. It looks exactly like a crash. A container stopped by docker stop exits with code 0. No OOM kill, no crash loop, no error in the logs. Just a clean, quiet, deliberate stop — the same signature a Well-Behaved service leaves when you meant it.

Then my AI put one back

On 23 October at 14:38, a monitoring pass from one of my agents found the stopped maintainai.co.nz container, read “stopped” as “broken”, and started it. No lookup, no question, no check against anything. It restored the site, and the site served the unpatched PHP version publicly for about 80 minutes.

That is the part I keep turning over. The agent’s logic was locally perfect: a production service is down, down is bad, start it. Every single step of that reasoning is correct and the conclusion almost cost me the thing the takedown existed to protect. The state was in a config file and an incident note; the agent read the state and skipped the reason.

I don’t think this is an AI problem, incidentally. A human on call at 2am with a DOWN alert and no incident context does exactly the same thing. The failure mode isn’t artificial at all. It’s what happens when “is it running?” gets answered without “should it be?”

By 15:57 it was stopped again. At 16:05 wordpress:latest finally resolved to an image built on PHP 8.3.36, and at 16:12 the container came back up on the patched runtime. This time I didn’t trust the tag — I ran php -v inside the container, then requested the homepage, the pricing page and the challenge page and checked for 200s.

Finishing the fleet

The NAS took another day, because the NAS is where the awkward ones live. vaughantaylor.com runs behind SWAG, which bundles its own PHP. Heimdall does the same. Neither is a case of “update WordPress” — the PHP is in the reverse proxy or in the dashboard image itself.

By 24 October every one of them was moved and each was verified in-container, not assumed:

  • vaughantaylor.com — PHP 8.5.12, HTTP 200, x-powered-by: PHP/8.5.12
  • home and crypto Heimdall dashboards — PHP 8.5.12, HTTP 302 to login
  • Coolify — 4.4.6 (PHP 8.4.23) to 4.5.0 (PHP 8.4.27), database dumped first, migrations clean

The old Heimdall containers were renamed and left stopped rather than deleted. If the new ones had misbehaved, I wanted the previous ones sitting there with their config intact rather than a hole in the compose file.

Then the tunnel ingress went back, and only then. Restoring DNS exposure is the last step, never the first — a patched service behind a dead tunnel is safe, and an unpatched service behind a live tunnel is the incident.

What actually changed

Three things, and none of them are a patch.

A rule that a clean exit code is not an acquittal. Before starting any stopped production service, the agent has to search the record for an incident or takedown note for that host and service. If it finds one, it stops and asks. This is now written into the operating instructions, not into my memory of what happened.

Alerting to a channel I actually read. Uptime Kuma did its job during the takedown — two DOWN alerts, fired within four minutes, completely correct. It sent them by email, which I check roughly never in real time. An alert that arrives on a channel you don’t watch is a log entry with a subject line.

A watchdog that watches the right thing. Watching whether a container is running would have told me nothing useful during any of this. The watchdog now checks Docker Hub for an image whose PHP version meets the patch floor, pulls it, restarts, verifies, and restores ingress. It runs on a machine that stays on.

The uncomfortable summary

A critical RCE in the runtime underneath half my stack went from disclosure to exploited-in-the-wild in minutes. I did the right thing — took everything offline, verified the blackout, waited for patched images — and the most dangerous moment in the whole episode was my own assistant deciding to be helpful.

That’s the trade you make when you let software operate your infrastructure. It will act on what it can see. Your job is to make sure what it can see includes why.