feat(kvb-org-queue-cleanup): remove dead queue jobs in rounds at 00:00, 12:00 and on request

New skill kvb-org-queue-cleanup: each round judges every queue job as dead, held or unclear from /proc/locks and a non-blocking flock, removes only the dead ones pinned to the same id and lock tag, and reports the round on the radio; radio silence or a stall ends a round early. install.sh installs the systemd timer, service and path units and creates ~/.local/state/agents-council with mode 0700 (install -d, SC2174 fixed). The silence holder is read with .get, so a silence row without a sender no longer raises KeyError.

Security: 19 MEDUSA findings in skills/kvb-org-queue-cleanup/scripts/cleanup.py accepted as false positives after the round 9 skeptic review and the operator pick of 2026-11-13: MM-SCAN-058 (:153), JB-SCAN-641 and JB-SCAN-616 (:185, :191, :356, :361, radio.clip display sanitizer), JB-SCAN-2702/2399/2633 (:319), JB-SCAN-1866 and JB-SCAN-5115 (:264, :291, :337), CGS-SCAN-040 (:406, timed poll loop by design), GENAI-SCAN-1270 (:425, JSON register), RT-SCAN-194 (:577, sandbox refusal message).

Tests: tests/test_queue_cleanup.py 35 passed, 37 subtests; shellcheck and ruff clean.

🎯 Fix: 92 %
💥 Break: 4 %
💸 Cost: 100 %
⏱️ Time: 100 %
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-13 10:45:49 +00:00
1 parent 3418738993
commit e0a714a137
11 files changed
+1431 -9

No files matched your search

+4 -3
View File
@@ -1,8 +1,8 @@
---
name: kvb-org-queue
description: >
Run every heavy job (gate, deploy, build, swarm) through a deterministic
queue instead of asking the chair: hotfix first, then register rank.
Queue every heavy job (gate, deploy, build, swarm), never ask the chair:
hotfix first, then rank.
---
`${CLAUDE_SKILL_DIR}/scripts/queue.py` replaces asking the chair for heavy
@@ -74,7 +74,8 @@ learned values, `cancel` removes your own waiting job.
only exceptions such as a stuck queue or a hung job (`capacity.md` of
`kvb-org-organize`).
- A running job is never cut short for the queue; only the operator orders
one down, and `kvb-git-hotfix` may void a gate.
one down, and `kvb-git-hotfix` may void a gate. A `kvb-org-queue-cleanup`
round deletes only entries whose lock no living process holds.
- With `queue_enforce: true`, the `block` hook (PreToolUse on Bash) refuses
`heavy_commands`, image builds, `make install|verify-*`, tests beyond one
file and `gate.py run|hold` outside `queue.py hold`.