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

+2 -2
View File
@@ -140,7 +140,7 @@ def items() -> list[dict]:
for line in lines:
try:
row = json.loads(line)
except ValueError:
except (ValueError, RecursionError):
continue
if isinstance(row, dict) and isinstance(row.get("ts"), int | float):
rows.append(row)
@@ -209,7 +209,7 @@ def for_me(row: dict, name: str) -> bool:
def read_json(path: Path) -> dict:
try:
data = json.loads(organize("nofollow").read_text(ROOT, path))
except (OSError, ValueError):
except (OSError, ValueError, RecursionError):
return {}
return data if isinstance(data, dict) else {}