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>
58 lines
1.8 KiB
Python
58 lines
1.8 KiB
Python
from __future__ import annotations
|
|
|
|
import json
|
|
from pathlib import Path
|
|
|
|
from test_hub_queue_controls import LEARNED
|
|
from test_hub_queue_overlay import ROWS, board_council, fake_queue
|
|
|
|
FAKE_QUEUE = """import json
|
|
import pathlib
|
|
import sys
|
|
|
|
here = pathlib.Path(__file__)
|
|
with here.with_suffix(".calls").open("a", encoding="utf-8") as calls:
|
|
calls.write(" ".join(sys.argv[1:]) + "\\n")
|
|
shown = {("list", "--json"): "rows.json", ("learned", "--json"): "learned.json"}.get(tuple(sys.argv[1:]))
|
|
if shown is None:
|
|
sys.exit(2)
|
|
sys.stdout.write(here.with_name(shown).read_text(encoding="utf-8"))
|
|
"""
|
|
WAITING = "q-2"
|
|
|
|
|
|
def waiting_rows() -> list[dict]:
|
|
"""Returns:
|
|
The queue-list fixture with no job overridden yet, q-2 and q-3
|
|
waiting.
|
|
"""
|
|
return [{**row, "override": False} for row in ROWS]
|
|
|
|
|
|
def started_rows() -> list[dict]:
|
|
"""Returns:
|
|
waiting_rows() after the override of WAITING was granted: it runs.
|
|
"""
|
|
return [{**row, "status": "active", "position": "run", "override": True, "reason": "granted on its last poll"} if row["id"] == WAITING else row for row in waiting_rows()]
|
|
|
|
|
|
def install(case: object, now: float) -> Path:
|
|
"""Args:
|
|
case: a HubCase; its council gets the board fixture and its hub the
|
|
fake queue.py.
|
|
now: epoch seconds of the fixture.
|
|
|
|
Returns:
|
|
The fake queue.py, printing rows.json for `list --json` and
|
|
learned.json for `learned --json`.
|
|
"""
|
|
case.write_council(board_council(now))
|
|
script = fake_queue(case.state.parent / "fake-skills", FAKE_QUEUE, waiting_rows())
|
|
(script.parent / "learned.json").write_text(json.dumps(LEARNED), encoding="utf-8")
|
|
case.httpd.hub.queue_order.script = script
|
|
return script
|
|
|
|
|
|
def queue_jobs(case: object) -> list[dict]:
|
|
return [job for job in case.httpd.hub.jobs.listed() if job.get("kind") == "queue"]
|