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
@@ -27,7 +27,7 @@ from .jobs import JOB_OPEN
|
||||
from .messaging import message_row
|
||||
from .orbits import TRACK_STEPS, track
|
||||
from .phrasing import phrase_parts
|
||||
from .presence import presence, read_snapshot
|
||||
from .presence import beats, presence, read_snapshot
|
||||
from .queue_order import grant_order, live_ids
|
||||
from .receipts import inline, read_of
|
||||
from .records import epoch, iso_epoch, read_jsonl, write_atomic
|
||||
@@ -40,6 +40,7 @@ from .register import (
|
||||
stored_order,
|
||||
)
|
||||
from .reviewing import review_row
|
||||
from .running import running_job
|
||||
from .settings import NOTIFY, completed, media_origins, station_origins, valid_settings
|
||||
from .signed import signing
|
||||
from .skill_scripts import OUTPUT_LIMIT
|
||||
@@ -49,7 +50,7 @@ RADIO_WINDOW = 86400
|
||||
JOBS_SHOWN = 20
|
||||
ACTIVE = 900
|
||||
INDEX_CSP = (
|
||||
"default-src 'none'; script-src 'nonce-{0}'; style-src 'nonce-{0}'; connect-src 'self'; media-src {1}; frame-src 'self'; "
|
||||
"default-src 'none'; script-src 'nonce-{0}'; style-src 'nonce-{0}'; connect-src 'self'; media-src {1}; img-src blob:; frame-src 'self'; "
|
||||
"base-uri 'none'; form-action 'none'; frame-ancestors 'none'"
|
||||
)
|
||||
ENCODER_CSP = (
|
||||
@@ -147,6 +148,7 @@ class View:
|
||||
rows = task_rows(tasks, queue, self.tree.get())
|
||||
chain = grant_order(queue_chain(queue, tasks, order, now), queue_jobs)
|
||||
stored = self.messages.listed()
|
||||
snapshot = read_snapshot(self.agent_sessions, now)
|
||||
return {
|
||||
"settings": settings,
|
||||
"schedules": self.schedule_settings.view(),
|
||||
@@ -156,7 +158,7 @@ class View:
|
||||
"inbox": inbox,
|
||||
"badges": badges(self.match_open(inbox), claims, self.jobs.listed(), now),
|
||||
"pending": self.batches.listed(),
|
||||
"rules": [{**{key: value for key, value in rule.items() if key != "proof"}, "signed": rule.get("proof") is not None} for rule in self.rules.listed()],
|
||||
"rules": self.rule_rows(now),
|
||||
"approvers": self.keys(),
|
||||
"jobs": jobs,
|
||||
"views": VIEWS,
|
||||
@@ -183,11 +185,22 @@ class View:
|
||||
"grants": grant_rows,
|
||||
"night": night_mode(self.council),
|
||||
"night_parts": night_parts(self.council),
|
||||
"presence": presence(read_snapshot(self.agent_sessions, now), night_parts(self.council), night_mode(self.council), claims, news, now),
|
||||
"presence": presence(snapshot, night_parts(self.council), night_mode(self.council), claims, news, now),
|
||||
"beats": beats(snapshot, claims),
|
||||
"runner": running_job(self.runner_marker, self.jobs.listed()),
|
||||
"silence": silence_of(self.council, now),
|
||||
"graph": drawn,
|
||||
}
|
||||
|
||||
def rule_rows(self, now: float) -> list[dict]:
|
||||
"""Returns:
|
||||
The stored rules without their proof, each with signed and the
|
||||
matched and of of rule_counts().
|
||||
"""
|
||||
stored = self.rules.listed()
|
||||
counts = self.rule_counts(stored, now)
|
||||
return [{**{key: value for key, value in rule.items() if key != "proof"}, "signed": rule.get("proof") is not None, **counts[rule["id"]]} for rule in stored]
|
||||
|
||||
def signed_changes(self, settings: dict, saved: dict) -> list[dict]:
|
||||
"""Args:
|
||||
settings: valid settings the page wants to save.
|
||||
|
||||
Reference in new issue
Block a user