Skip to content
Back to Notes

How We Recovered 1 Terabyte Across 9 AI Macs in One Morning

How a root-cause fleet audit recovered 964 GiB across 9 Macs, cut a 90-second cleaner timeout to 1.3 seconds, and stopped one SQLite ledger writing 4.27 TB in 10 days.

How We Recovered 1 Terabyte Across 9 AI Macs in One Morning (And Caught a Database Writing 4.27 TB in 10 Days)

If you run AI agents on Mac Studios around the clock, disk space does not run out slowly. It falls off a cliff.

This week, every machine in our 9-Mac fleet was net-draining storage at once. Our primary orchestration hub dropped to 93 GiB free. Two worker Macs dropped below 50 GiB free. Our main MacBook sat near 200 GiB free.

Before deleting a single file, we ran a read-only root-cause audit across all nine Macs: inspecting live cleaner scripts, APFS physical extent probes, swap usage, and LaunchAgents.

In one focused remediation pass, we recovered +964 GiB (nearly 1 terabyte) live across the fleet:

  • MacBook Pro: 203 GiB -> 506 GiB free
  • Studio4: 73 GiB -> 326 GiB free
  • Studio0 (Hub): 103 GiB -> 290+ GiB free
  • Studio5: 40 GiB -> 126 GiB free
  • Studio2: 346 GiB -> 397 GiB free
  • Studio1: 938 GiB -> 974 GiB free
  • Studio3: 171 GiB -> 204 GiB free
  • Studio6: 49 GiB -> 61+ GiB free

Every code fix shipped with a tested one-step .bak-20261120 rollback. Here are the five root causes we found so you can prevent them in your own setup.

1. One SQLite ledger wrote 4.27 terabytes in 10 days

An older telemetry collector on our hub had a hold pinning it on an outdated build. Its work-ledger.sqlite file swelled to 100.5 GiB and churned 4.27 TB of writes in ten days.

The fix: Release stale version holds as soon as the newer build is proved, compact bloated SQLite ledgers, and alert on daily write volume, not just remaining gigabytes.

2. Our disk cleaner timed out trying to hash 6,536 receipts

Our disk steward looked alive in LaunchAgents, yet it was quietly failing every single run. A receipt scanner (job_records.py) was cold-hashing 6,536 receipts on every pass and hitting its 90-second timeout, leaving 1,471 cleanup items stuck.

The fix: Cache file metadata and skip re-hashing unchanged receipts. Cold census time dropped from over 90 seconds to 0.6 to 1.3 seconds. Once unblocked, the unified disk_steward.py finished cleanly across all nine Macs with zero errors and cleared 217+ dead agent lanes.

3. 10,593 abandoned scratch directories piled up silently

AI workers love creating scratch folders, temporary build copies, and worktrees. When a worker crashes or finishes without cleaning up, those folders sit forever.

Our lane reaper wiped 10,593 stale scratch directories on the hub alone.

The fix: Make cleanup a hard birth-to-death rule. Every automated worker writes inside its own scoped folder and deletes that folder on hand-back or after 24 hours idle, unless a HOLD.json file names an explicit owner and end date.

4. Cloud-hydrated folders filled local SSDs by accident

On our hub, CloudDocs/Documents had 347.5 GiB hydrated locally on disk even though the files already lived safely in cloud storage.

The fix: Evict local hydrated copies safely (brctl evict) with zero cloud deletions, and never point high-churn agent scratch directories inside iCloud-synced folders.

5. An agent's own handoff packet grew to 2.59 MB and bricked it

While tracing why our fleet health agent stopped responding to disk tickets, we discovered its start packet had grown to 2.59 MB, overflowing its context window on boot.

The fix: Cap start packets hard (_bound_handoff at 55,000 characters). The packet dropped from 2.59 MB to 77.7 KB, and the fleet agent booted back up live immediately.

The takeaway

Most storage emergencies in AI fleets are not "we need bigger drives." They are stalled cleaners, unpruned worker folders, and runaway logs or SQLite ledgers hiding behind timeouts.

Check your cleaner's actual completion time, enforce a 24-hour TTL on agent scratch folders, and keep a one-step rollback on every cleanup script you deploy.

If you want to see how we wire reliable operations and clear handoffs for $5M to $50M businesses, try our 45-second operations game at utlyze.com/ops-game or explore utlyze.com.

Contributors

  • James Brady

    publisher

  • Gemini 4 NeonAI

    author