Worked examples are illustrative and are not sealed engineering documents. Site-specific analysis requires a licensed engineer in the relevant jurisdiction. Regulatory references to other jurisdictions (e.g. California) are descriptive. Valerio Oricchio P.E.
I run a small home lab: a headless Mac mini in Rome that hosts my files, a few automated jobs, and the local half of an AI assistant setup; a MacBook Air that travels with me. A few nights ago, from France, the assistant and I managed to lock ourselves out of remote administration of the mini until I am physically back. No data was lost, nothing was deleted, every job finished. But sudo and Screen Sharing are dead until then, because the machine has full-disk encryption and no second administrator.
This is the post-mortem. It is not a story about a dangerous AI. It is a story about an old operations mistake, made faster by a tool that is very good at suggesting the next command, and about where the guards should have been.
1. The setting
- The mini: 48 GB of memory, always on, reached over a private mesh network; the only way in while I travel is SSH with a key, or screen sharing.
- The Air: my only keyboard for the week.
- The assistant: a cloud session with a bridge to the mini, plus a set of scheduled “wake” jobs that process a file-based message queue on the mini. All automated actions run inside allow-lists and a guard script; none of them can delete files or use
sudo.
Earlier that evening I had asked for a heavy batch of work across many chats at once (“plenty of usage, be intense”). The mini was already busy: it had been re-indexing after a migration for three days, and an old instance of the desktop app had left a duplicate set of helper processes running. By half past nine it was down to a few hundred megabytes of free memory. Nothing broke yet, but everything slowed, and the bridge link from my main chat dropped.
Then I restarted the Air with a Screen Sharing session still open. That cut the session without closing it. On the mini, the screen-sharing agent kept streaming frames to a client that no longer existed, and the daemon stopped answering new connections. Fault one: ordinary, well known, fixable in one command, once you know.
2. Where it went wrong
At 02:28 I asked the assistant how to restart the screen-sharing daemon. It gave me a block with two lines:
ssh -t mini 'pgrep …; sudo launchctl kickstart -k …'
ssh -t mini '…second command…' # ← this line was read as the password
I pasted the block. The first line opened an interactive sudo prompt on the mini. The second line was consumed as the password. The prompt sat there, waiting, and every sudo I started after it authenticated, then queued behind it.
For the next half hour the assistant proposed, and I ran, nine more attempts: sudo -v, sudo -S with the password piped from my side, kills, restarts. Each one authenticated correctly (the directory service log proves it) and then queued silently behind the first. By 03:00 there were thirteen root sudo processes asleep on the mini, none of them reachable from the unprivileged SSH user I had. Screen Sharing, now past its first fault, stalled at the same post-authentication step.
A reboot clears all of it. The mini has FileVault on and no auto-login, so a reboot parks it at the unlock screen until someone types at its keyboard. That someone is me, on 2 December.
3. Causes, ranked by evidence
- Certain: the orphaned screen-sharing agent (fixed during the night by killing it; it runs as the console user, no
sudoneeded). - Certain: the
sudopile-up, started by a two-command paste into an interactive session, grown by retries without diagnosis. (The precise lock mechanism insidesudovaries by version; the queue is the observed fact.) - Contributing: a machine running at the edge of memory for three days, under a load pattern nobody had bounded.
- Pre-existing condition: a headless, encrypted Mac with no watchdog, no second admin and no physical fallback. That is what turned a ten-minute mistake into a week-long outage.
Not causes, though we suspected each for a while: the directory service, syslog, disk space, the audit subsystem, the automated jobs. Checking them cost an hour and was worth it; guessing would have cost more.
4. Who is at fault
Both of us, unevenly. The assistant wrote the two-line block and then kept escalating retries while the first hang was unexplained: that is the decisive, unrecoverable error, and it is the model’s. I fired the same “be intense” request into every chat at once, reset my laptop in the middle of a live screen session, and ran each retry as fast as it was offered. And neither of us had a rule for any of it. My own tally is about 70/30, model/human. Your mileage may vary; the point is that the human share was not zero and the model’s share was not a hallucination. It was a reasoning gap under time pressure, the kind people make too.
5. What was not the problem
It was not “too much freedom”. Nothing that broke was an unauthorised action. The automated side of the setup, the part people worry about, behaved: allow-lists held, nothing was deleted, no setting changed without my say. What failed was the advice path: text the model writes for a human to paste. That path is deliberately less guarded, because it is your machine and your keystroke. It is also the hardest surface to guard mechanically, because it is prose. That is the real lesson, and it is uncomfortable: the step where the human is “in the loop” is the step with the fewest checks.
6. The five rules we adopted
- One command per paste block. Never two lines when the first can open an interactive prompt. Never
sudothroughssh -t; privileged commands over SSH only in a form where the password is read locally and piped (read -s→sudo -S), never stored in a script. - Stop on the first unexplained hang. Before any retry of a privileged command: list what is running (
pgrep -fl sudo,ps). One stucksudomeans diagnose, not retry. Retries are how one mistake becomes thirteen. - A concurrency ceiling per machine. At most two live assistant sessions plus one automated job on the mini at a time. Heavy batches run as cloud agents, never as parallel chats against one Mac. (The cloud lane of the same evening, eight agents with zero contact with the mini, caused no harm and produced the best work of the night.)
- A recovery path for every headless machine, decided in advance. Full-disk encryption or unattended recovery: pick knowingly. A root watchdog that restarts the screen-sharing daemon when it stops answering, alerts on
sudoprocesses older than ten minutes, and alerts on a memory floor. A second administrator account, or a documented physical fallback. - Hygiene the tooling should enforce: one app instance per machine (a duplicate set of helper processes is a stop sign); index exclusions for large corpus and model trees; close a remote screen session before resetting the client.
Rule 1 costs nothing and alone would have avoided the lasting damage. Rule 2 costs ten seconds. Rules 3 to 5 are an afternoon. We had none of them.
7. What I’d ask of the tool makers
Stated as requests, not accusations: I cannot see their test suites, and the automated guardrails I can see worked. Three things would have caught this: a check on multi-line shell blocks aimed at interactive sessions; a “diagnose before retry” reflex for privileged commands that hang; and app-side detection of stale helper-process sets. I filed all three through the product’s feedback channel with the full transcript.
8. Was it specific or systemic?
Both, in layers. The orphaned agent is a common quirk. The pile-up is a classic operator error with zero randomness in it. The starved, encrypted, headless Mac with no recovery path is systemic: it will bite again on the next heavy day unless rules 3 to 5 are done. One systemic condition, exposed by one ordinary mishap, made unrecoverable by one avoidable error.
If you run agents against your own machines, the short version is this: the model’s commands are drafts until you have read them with the question “what happens if this line waits for input?”. Treat a hang as information, not as an invitation to retry. And decide, before you leave town, how you get back into the box when the first two rules fail.
The full incident log, with timestamps and the diagnostic commands that ruled things out, will be published with the setup kit’s case studies. Comments and corrections welcome, especially from people who have better rules.
Update, 1 December 2026: I got home on 30 November, two days earlier than planned. By then the mini was not just locked out but unresponsive, and it needed a forced restart. It came back cleanly; the disk check found nothing to repair. One correction: a second administrator account did exist, but it had no SSH key from my laptop, so it could not help from France. It has one now, and it has been tested. Rules 1 and 2 are standing rules for every assistant session; the rest of the recovery path is in progress.
Need this applied to your corridor?
Send the study scope and the data you have. You will get a reply within two working days.
Discuss a project