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>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-27 19:05:38 +00:00
1 parent dc0d578eca
commit f356083a24
149 files changed
+10646 -963

No files matched your search

+22 -3
View File
@@ -5,6 +5,7 @@ import datetime
import re
from pathlib import Path
from .calibration import CALIBRATION, Calibrations, valid_share
from .errors import Missing, ToolError
from .fields import FIELDS, decode, visible
from .ledger import Ledger
@@ -131,15 +132,33 @@ def usage(rows: list[dict], now: float) -> dict[str, dict]:
class Accounts:
def __init__(self, state: Path, kept: Path, council: Path) -> None:
self.ledger = Ledger(state / ACCOUNTS)
self.calibrations = Calibrations(state / CALIBRATION)
self.tokens = kept / RESOURCES / TOKENS
self.sessions = council / SESSION_ACCOUNTS
def view(self, now: float) -> dict:
"""Returns:
{accounts, active, usage}: the stored accounts, the active
account's email or None, and usage() of every token row.
{accounts, active, usage, calibrations}: the stored accounts, the
active account's email or None, usage() of every token row, and
per account id the calibration set since its last reset.
"""
return {"accounts": self.ledger.listed(), "active": active(self.sessions), "usage": usage(rows_between(self.tokens, 0, now, 0), now)}
listed = self.ledger.listed()
return {
"accounts": listed, "active": active(self.sessions), "usage": usage(rows_between(self.tokens, 0, now, 0), now),
"calibrations": self.calibrations.current(listed, now),
}
def calibrate(self, account_id: str, body: bytes, now: float) -> dict:
"""Args:
body: {share}: the percent of the limit the provider shows now.
Returns:
{share, at}: the stored calibration; an unknown id raises
Missing, a share outside 0 to 100 ToolError.
"""
if self.ledger.get(account_id) is None:
raise Missing("no such account")
return self.calibrations.put(account_id, valid_share(body), now)
def save(self, body: bytes) -> dict:
"""Args: