build.sh called scripts/meta/resolve/repository/owner.sh by a path relative to the working directory. Whenever OWNER, GITHUB_REPOSITORY_OWNER or GITHUB_REPOSITORY reached it, a build started outside the repository root exited 127. TestBuildCachePrune runs build.sh from a temporary directory, so CI (which carries an owner variable) failed four tests while a local run without one passed.
The call now goes through _build_script_dir. The test sets GITHUB_REPOSITORY_OWNER, so it takes this path on every machine.
🎯 Fix: 95 %
💥 Break: 1 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: ~100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main never bounded the host Docker build cache: on 2026-11-11 it held
99 GB, 63 GB of it unused for more than 12 h (15 overnight core image
builds). The cap already exists on the IAM line as part of 4014385f6a
(092 phase 1); this ports only its build-cache slice to main.
- scripts/image/prune.sh (byte-identical to 4014385f6a) runs
docker builder prune --force with --max-used-space, or --keep-storage
on older engines, at INFINITO_BUILD_CACHE_MAX_SIZE, and fails loudly
when the engine knows neither flag.
- scripts/image/build.sh calls it after every build.
- default.env sets the cap to 20g; the env passthrough exports it.
Every existing checkout needs one make dotenv after this change: until
then make build stops at the final prune step with Run 'make dotenv'.
The shared cap also evicts other checkouts' build layers, which costs
rebuild time, not correctness.
🎯 Fix: 90 %
💥 Break: 8 %
💸 Cost: 100 %
⏱️ Time: 100 %
🛡️ Security: ~100 %
🏆 Score: 83
🚦 Gate: ⛔ break 8 % > 5 (operator approved)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>