From 7ba90d5a3f2a1e65de491dc34c90fc4511689ccb Mon Sep 17 00:00:00 2001 From: atlas Date: Sun, 26 Jul 2026 17:42:52 +0200 Subject: [PATCH] feat(agent): raise a todo when the agent's disk gets tight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes 2718. The operator has been going through agent dirs by hand with ncdu, deleting 20+GB target dirs. Agents had no way to know they were the ones sitting on the space. New `disk_watch` module in the harness: every 15 minutes it statvfs's the filesystem backing the agent's state dir and, past 80%, raises a keyed `disk` todo telling the agent to free space — with the operator's rules inline: only delete things that are actually big, build output first, and never delete something still needed, ask for more space instead. Over threshold it also walks the agent's own tree (`/agents/