mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-27 21:38:01 +00:00
CI run 43828138456 aborted its swarm jobs with DISK EXHAUSTION IMMINENT right after sys-service-terminator started the hlth-runtime unit. Every lab node is a container on the same runner disk, and each node ran its own Syft docker: export. One export costs up to three times the image: the daemon stages it, the engine saves image.tar, and Syft copies every layer uncompressed. EXPORT_SLOTS was a per-process semaphore, so the nodes exported side by side. The thesis that the check downloads per-node databases is refuted: the databases are one host directory, bind-mounted read-only into every node. ExportSlot replaces the semaphore with a flock on the database directory. Every lab node and every local worktree stack bind-mounts that directory from INFINITO_VULNERABILITY_DB_HOST_PATH, so exports now take turns per host disk, while a production node keeps its own directory. Each engine container gets a unique name. On a timeout or crash the container is force-removed before the slot and the scratch directory are given up. A database directory that cannot be locked fails only its own lanes, with one error line. run_lanes takes the Layout; the CLI scan and utils/security/database.py callers follow. The trivy host-scan timeout behind PR 2009 odoo#1 has a separate cause and is not part of this change. Evidence: - test_script.py of sys-ctl-hlth-runtime: 169 passed. - utils/security: test_database 21, test_pipeline 4, test_deploy 7, test_engine 8, test_suppressions 20 passed. - cli/contributing/security: test_scan 15, test_database 3 passed. - Negative controls fail as expected: the old database.py caller (2 failures), no container removal (2), no SlotError conversion (1), one lock above the per-node directories (5, barrier broken), a fixed container name (1). - An independent review found a stale database.py caller, a missing container cleanup, an unhandled OSError, a timing-based test and overstated README wording; all are fixed. - make quality-high is green: /tmp/make-quality-high-c4-swarm-disk-3.log Security acceptance: MEDUSA-INF-SCAN-2056, MEDUSA-INF-SCAN-2447 and MEDUSA-INF-SCAN-2744 on roles/sys-ctl-hlth-runtime/files/python/script.py line 1734 are accepted by design after an independent skeptic returned ACCEPT. The line is the rmtree of the run's own scratch directory (work/tmp-<engine>-<subject>, under a mkdtemp 0700 work directory in the root-only cache), unchanged from the base and only re-indented by this change; leftovers fall to the strict rmtree(work) and the next stale sweep. 🎯 Fix: 90 % 💥 Break: 5 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 86 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>