feat: hub and skills requirements 032 to 063

Hub: send in the field (032), coherent speak box (033), stream head band (034), Match at full width with its pile (035, 036), Home without the outer box (037), badge to Match (038), rejects that survive a changed or withdrawn card (039), the release card (040), code marks in the review diff (041), why Deny is off (042), the undo window clock (043), widgets without inner boxes (044), the Artifacts head on one line (045), accepting a red gate's risk (046), one code box (047), done rows greyed and folded (048), one control height (049), menus that stay open (050), radio settings in the Device card (051), bubbles beside the modes (052), agent settings on every face and name (053), pin only by menu (054), WASD in Match (055), the flowing card edge (056), Schedules in Controls (057) and the hub poll cost (059).

Skills: the coach leaves for its own repository kevinveenbirkenbach/coach (058; test_install pins its four skills in skills-lock.json and stays red until that repository is published and pinned), hooks and timers start fewer processes (060), council files on hot paths stay bounded and mirror by marker instead of mtime (061), scripts and hooks hand agents less output (062), and block.py builds the commit table and message block in one run (063). Requirement documents 032 to 063 with their implementation amendments.

MEDUSA false positives accepted after kvb-think-criticize (36 lines): MM-SCAN-058 (pla inside replace or plan), JB-SCAN-616/641 (the local clip helper), CODEGEN-SCAN-001 (drop-in paths), CGS-SCAN-029 (systemctl argv from constants), CGS-SCAN-040 (runner poll loop), FLA-SCAN-055 (feedback), WM-SCAN-354, AI-BACKDOOR-006, GENAI-SCAN-1270, B604 (runner shell path for passkey-verified commands), TC004, EXA002, EXA006, EXA010 and WEB-SSRF.

🎯 Fix: 92 %
💥 Break: 8 %
💸 Tokens: 89 %
⏱️ Velocity: –
🛡️ Security: ~100 %
🏆 Score: 95
🚦 Gate: ⛔ break 8 % > 5

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-26 08:44:15 +00:00
1 parent e5fd70e183
commit 0fad1bfae3
265 files changed
+10434 -2242

No files matched your search

+127
View File
@@ -0,0 +1,127 @@
from __future__ import annotations
import json
import os
import re
import shutil
import sys
import unittest
from pathlib import Path
HERE = Path(__file__).resolve().parent
sys.path[:0] = [str(HERE.parent), str(HERE)]
import hub_e2e_kit as base
import hub_support
from hub_case import HubCase
OUT = Path(os.environ.get("E2E_OUT", "/tmp/hub-033-shots"))
COMPOSER = (hub_support.HUB / "templates" / "page-composer.js").read_text(encoding="utf-8")
HINTS = re.findall(r'^\s+"?[\w-]+"?: "([^"]+)",$', COMPOSER.split("const MAYDAY_ASK")[0], re.MULTILINE)
SHAPE = """
const hints = @HINTS@;
const role = (node) => [["channel", ".composer-grid"], ["text", "textarea"], ["foot", ".mic-foot"], ["mic", "button.mic"], ["ptt", ".ptt-split"], ["mayday", ".mayday-toggle"],
["spacer", ".spacer"], ["status", ".composer-status"], ["record", "button[aria-pressed]"]].find(([, selector]) => node.matches(selector))?.[0] || node.tagName.toLowerCase();
const edges = (node) => ["Top", "Right", "Bottom", "Left"].map((side) => getComputedStyle(node)[`border${side}Width`]);
const shape = (form) => {
const frame = form.querySelector(":scope > .mic-frame");
const foot = frame.querySelector(":scope > .mic-foot");
return {
frame: [...frame.children].map(role), foot: [...foot.children].map(role),
lines: {channel: edges(frame.querySelector(".composer-grid")), text: edges(frame.querySelector("textarea")), foot: getComputedStyle(foot).borderTopWidth},
titles: all("[title]", form).map((node) => node.title).filter((title) => hints.some((hint) => title.includes(hint))),
};
};
"""
RADIO = """(async () => {@HELPERS@@SHAPE@
const form = await until(() => document.querySelector("#radio-spot .radio-speak form.composer"), 15000);
await sleep(300);
return {shape: shape(form), wide: document.documentElement.scrollWidth > innerWidth + 1};
})()"""
HOME = """(async () => {@HELPERS@@SHAPE@
const misfits = [];
let first = null;
for (let rows = 3; rows <= 8; rows += 1) {
for (let cols = 4; cols <= 12; cols += 1) {
await ViewStore.update("home.pins", () => [{kind: "panel", id: "radio-speak", w: cols, h: rows}]);
const tile = await until(() => {
const node = document.querySelector('#main .home-tile[data-pin="panel:radio-speak"]');
return node && node.dataset.w === String(cols) && node.dataset.h === String(rows) && node.querySelector("form.composer .mayday-toggle") ? node : null;
}, 4000);
if (!tile) {
misfits.push({cols, rows, missing: true});
continue;
}
await sleep(40);
const body = tile.querySelector(".home-body").getBoundingClientRect();
const out = [".ptt-split", ".mayday-toggle"].filter((selector) => {
const edge = tile.querySelector(selector).getBoundingClientRect();
return !(edge.width > 0 && edge.left >= body.left - 0.5 && edge.right <= body.right + 0.5 && edge.top >= body.top - 0.5 && edge.bottom <= body.bottom + 0.5);
});
if (out.length) {
misfits.push({cols, rows, out});
}
if (!first) {
first = {shape: shape(tile.querySelector("form.composer")), speak: tile.querySelector(".home-body").innerText.includes("Speak")};
}
}
}
await ViewStore.update("home.pins", () => [{kind: "panel", id: "radio-speak", w: 6, h: 5}]);
await sleep(400);
return {misfits, first, wide: document.documentElement.scrollWidth > innerWidth + 1};
})()"""
FRAME = ["channel", "text", "foot"]
FOOT = ["record", "status", "spacer", "mic", "ptt", "mayday"]
LINES = {"channel": ["0px", "0px", "1px", "0px"], "text": ["0px", "0px", "0px", "0px"], "foot": "1px"}
def probe(template: str) -> str:
return template.replace("@HELPERS@", base.HELPERS).replace("@SHAPE@", SHAPE).replace("@HINTS@", json.dumps(HINTS))
@unittest.skipUnless(shutil.which(os.environ.get("CHROMIUM", "chromium")), "no Chromium")
class TestSpeakBox(HubCase):
drive = base.OrchestratorE2ECase.drive
def setUp(self):
super().setUp()
OUT.mkdir(parents=True, exist_ok=True)
self.claim("s1", "Skills")
self.snapshot()
self.page_url = f"http://localhost:{self.port}/"
def check_shape(self, shape: dict) -> None:
self.assertEqual((shape["frame"], shape["foot"]), (FRAME, FOOT), shape)
self.assertEqual((shape["lines"], shape["titles"]), (LINES, []), shape)
def test_the_hint_list_is_read_from_the_composer(self):
self.assertEqual(len(HINTS), 6, HINTS)
def test_chromium_draws_one_speak_frame_in_the_radio_view_and_keeps_ptt_and_mayday_inside_every_home_widget_size(self):
steps = []
for width, height in base.WIDTHS:
shot = OUT / f"chromium-{width}"
steps += [
{"width": width, "height": height, "url": f"{self.page_url}?{width}-radio#stream/radio", "wait": 1200, "probe": probe(RADIO), "shot": f"{shot}-radio-speak.png"},
{"width": width, "height": height, "url": f"{self.page_url}?{width}-home#home", "wait": 1200, "probe": probe(HOME), "shot": f"{shot}-home-speak.png"},
]
data = self.drive(steps, None)
(OUT / "chromium-speak-box.json").write_text(json.dumps(data, indent=1), encoding="utf-8")
self.assertEqual(data["errors"], [])
results = iter(data["results"])
for width, _ in base.WIDTHS:
radio, home = next(results), next(results)
with self.subTest(width=width, view="radio"):
self.assertNotIn("error", radio, radio)
self.check_shape(radio["shape"])
self.assertFalse(radio["wide"])
with self.subTest(width=width, view="home"):
self.assertNotIn("error", home, home)
self.assertEqual(home["misfits"], [], home["misfits"][:5])
self.check_shape(home["first"]["shape"])
self.assertFalse(home["first"]["speak"])
self.assertFalse(home["wide"])
if __name__ == "__main__":
unittest.main()