Files
skills/orchestrator/kvb_orchestrator/queueing.py
T
Kevin Veen-BirkenbachandClaude Opus 5.5 f356083a24 feat(orchestrator): hub requirements 066 to 082 and 084
Radio footer, rules page, schedules editor (System timers and Claude
tasks through signed runner jobs), account usage bar, usage explorer
with a streamed usage.jsonl, queue Controls tab and override, running
tasks on the board, stale task prune with the generic dial, greyed card
stamps, commit-tree diffs from the runner preview, VS Code path links,
expired asks and decisions that stay as EXPIRED cards (asks keyed by a
call digest; an async PostToolUse hook closes those answered in the
terminal), the Match refresh hourglass, attachments by paste, drop and
paperclip in every text field (page CSP gains img-src blob: for the
thumbnails) and the limits board with profiles and a passkey to loosen.
Fixes: one red accept on a red-gate commit and no release while a risk
is open, the send bar footer segments share one height, the mic button
survives a redraw, new Match cards queue before the release card.

E2E specs were still running at commit time (operator order); their
failures follow as separate fixes.

🎯 Fix: 88 %
💥 Break: 8 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 81
🚦 Gate: ⛔ fix 88 % < 90, break 8 % > 5 (committed on the operator's word)

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:05:38 +00:00

35 lines
1.2 KiB
Python

from __future__ import annotations
from .jobs import QUEUE_JOB, argv_items
from .signed import signing
QUEUE_TASK = "queue"
def queue_request(raw: object) -> bool:
return isinstance(raw, list) and bool(raw) and all(isinstance(entry, dict) and entry.get("kind") == QUEUE_JOB for entry in raw)
def shown_command(argv: list[str]) -> str:
return " ".join(["queue.py", *argv])
class Queueing:
def queue_view(self) -> dict:
return self.queue_order.learned()
def queue_changes(self, raw: object) -> list[dict]:
"""Args:
raw: the page's items, each {"kind": "queue", "argv"} with the
queue.py arguments of one Start now (`override <id>`) or one
staged setting (`config set <key> <value>`); a batch goes
under one passkey assertion.
Returns:
The signed items, each with an argv signing.queue_argv() accepts.
"""
return argv_items(raw, lambda argv: signing.queue_item(signing.queue_argv(argv)), "queue change")
def change_queue(self, body: bytes) -> dict:
return self.signed_jobs(body, self.queue_changes, QUEUE_JOB, QUEUE_TASK, shown_command)