fix(queue,watch): grant line after a wait; make *-down targets are teardown

queue.py hold printed nothing when a waiting hold got its grant, so a quiet command such as node --check looked like a silent exit (Quality, test-324: history shows it ran 5 s, exit 0). A hold that printed a wait line now prints 'granted after waiting; running <cmd>'; holds granted at once stay quiet. watch.py counted every make target starting with test, quality or verify- as heavy, which queued make test-runner-down behind the gate it was meant to relieve (Stage 2.0); a target ending in -down is never heavy.

🎯 Fix: 94 %
💥 Break: 3 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-17 21:13:10 +00:00
1 parent 1b7d2d51a3
commit d768851b8b
4 files changed
+10 -2

No files matched your search

+2
View File
@@ -1420,6 +1420,8 @@ def wait(cfg: dict, entry_id: str, caught: list[int]) -> tuple[int | None, int]:
**{GRANTED_MEM: mem, FROZEN: footprint(mine[0], signatures, kinds)})
data[GRANTED] = now
data.pop(STALL, None)
if shown is not None:
print(f"queue: {entry_id} granted after waiting; running {mine[0]['cmd']}", file=sys.stderr, flush=True)
return None, concurrent
sends, clean, log = stalled(data, order, verdicts, cfg["thresholds_gb"]["stop"], free,
functools.partial(cleanup_outcome, now), now)