[Unit] Description=Bound buildbox working trees by age and size [Service] Type=oneshot # One pruner, one policy, three unbounded trees. Every root here grows with agent # traffic and no age rule reclaims it: sessions touch each tree within days, so # only a size cap with oldest-first eviction bounds them. Caps budget the 110G # disks: builds+offload+runs+runner-work+stores must leave the 15G floor free. ExecStart=%h/.local/bin/buildbox-build-cache-prune.sh ExecStart=/usr/bin/env BUILDBOX_BUILDS_ROOT=%h/sandbox/workspaces BUILDBOX_CACHE_MAX_BYTES=25769803776 BUILDBOX_CACHE_TARGET_BYTES=19327352832 BUILDBOX_CACHE_MIN_AGE_DAYS=1 %h/.local/bin/buildbox-build-cache-prune.sh ExecStart=/usr/bin/env BUILDBOX_BUILDS_ROOT=%h/cdx-offload BUILDBOX_CACHE_MAX_BYTES=17179869184 BUILDBOX_CACHE_TARGET_BYTES=12884901888 BUILDBOX_CACHE_MIN_AGE_DAYS=1 %h/.local/bin/buildbox-build-cache-prune.sh # A root that is already under its cap exits 1 only when it cannot reach target; # that is reported, never fatal to the remaining roots. SuccessExitStatus=1 TimeoutStartSec=45min