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:
1 parent
dc0d578eca
commit
f356083a24
149 files changed
+10646
-963
No files matched your search
@@ -10,7 +10,7 @@ from .errors import Conflict, Missing, ToolError
|
||||
from .fields import decode, expect, visible
|
||||
from .ledger import Ledger
|
||||
from .records import read_json, stamp
|
||||
from .requesting import RECENT_DAYS, matched
|
||||
from .requesting import RECENT_DAYS, counted_matches
|
||||
from .rules import EVERY_AGENT, RULE_KINDS
|
||||
from .signed import signing
|
||||
|
||||
@@ -26,7 +26,6 @@ HASH = re.compile(r"[0-9a-f]{64}")
|
||||
PERMISSION_LISTS = ("allow", "ask", "deny")
|
||||
SET_KEYS = ("kind", "tool", "pattern", "scope")
|
||||
CHAINED = "chains, pipes, redirects or substitutions"
|
||||
COUNT_ID = "0" * 16
|
||||
UNSEEN = {"hits": None, "never": ""}
|
||||
|
||||
|
||||
@@ -82,7 +81,7 @@ def hits(rule: dict, asks: list[dict], now: float) -> dict:
|
||||
never = [*signing.warnings(pattern), *([CHAINED] if signing.CHAINED.search(pattern) else [])]
|
||||
if never:
|
||||
return {"hits": None, "never": never[0]}
|
||||
return {"hits": matched({**rule, "id": COUNT_ID, "expires": now + RECENT_DAYS * 86400}, asks, now), "never": ""}
|
||||
return {"hits": counted_matches(rule, asks, now), "never": ""}
|
||||
|
||||
|
||||
def counted(groups: list[dict], asks: list[dict], now: float) -> list[dict]:
|
||||
@@ -97,17 +96,6 @@ def counted(groups: list[dict], asks: list[dict], now: float) -> list[dict]:
|
||||
return [{**group, "entries": [shown(entry) for entry in group["entries"]]} for group in groups]
|
||||
|
||||
|
||||
def stored_hits(rule: dict, asks: list[dict], now: float) -> dict:
|
||||
"""Returns:
|
||||
hits() of a stored ask rule for the agents it is signed for, UNSEEN
|
||||
for a review or decision rule.
|
||||
"""
|
||||
if rule["kind"] != "ask":
|
||||
return UNSEEN
|
||||
fields = {key: rule[key] for key in ("kind", "tool", "pattern", "scope")}
|
||||
return hits({**fields, "agents": rule["agents"]} if "agents" in rule else fields, asks, now)
|
||||
|
||||
|
||||
def grouped(permissions: object) -> list[dict]:
|
||||
"""Returns:
|
||||
The allow, ask and deny entries of a permissions section grouped by
|
||||
@@ -270,8 +258,7 @@ class Firewall:
|
||||
now = time.time()
|
||||
asks = self.recent_subjects("ask", now)
|
||||
listed = [{key: entry[key] for key in ("path", "exists", "folder", "sha256", "error")} | {"groups": counted(grouped(entry["settings"].get("permissions")), asks, now), "sandbox": sandbox_entries(entry["settings"].get("sandbox"), "sandbox")} for entry in files]
|
||||
rules = {rule["id"]: stored_hits(rule, asks, now) for rule in self.rules.listed()}
|
||||
return {**meta, "files": listed, "lists": list(signing.SETTINGS_LISTS), "patterns": deny_patterns(), "groups": self.groups.listed(), "sets": self.rule_sets.listed(), "days": RECENT_DAYS, "rules": rules}
|
||||
return {**meta, "files": listed, "lists": list(signing.SETTINGS_LISTS), "patterns": deny_patterns(), "groups": self.groups.listed(), "sets": self.rule_sets.listed(), "days": RECENT_DAYS}
|
||||
|
||||
def settings_changes(self, raw: object) -> list[dict]:
|
||||
"""Args:
|
||||
|
||||
Reference in new issue
Block a user