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

+96
View File
@@ -0,0 +1,96 @@
from __future__ import annotations
import json
import os
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
from hub_case import HubCase
from hub_support import ASK
OUT = Path(os.environ.get("E2E_OUT", "/tmp/bubbles-mode-row-shots"))
PROBE = """(async () => {@HELPERS@
await screenShown(8000);
location.hash = "#stream/radio";
const toggle = await until(() => document.querySelector("#radio-spot:not([hidden]) .radio-bubbles"), 8000);
if (!toggle) {
return {error: "no bubbles toggle in the mode row"};
}
const header = document.getElementById("bubbles-toggle");
const row = toggle.closest(".radio-mode-row");
const modes = row.querySelector(".radio-modes");
const stored = async () => (await (await fetch("/api/state", {cache: "no-store"})).json()).settings.bubbles;
const mode = () => all("#radio-spot .radio-modes button[aria-pressed='true']").map((button) => button.dataset.mode);
const look = async () => ({radio: toggle.getAttribute("aria-pressed"), header: header.getAttribute("aria-pressed"), stored: await stored(), mode: mode()});
const flip = async (button, want) => {
button.click();
await until(() => toggle.getAttribute("aria-pressed") === want && header.getAttribute("aria-pressed") === want, 8000);
const end = Date.now() + 8000;
while (Date.now() < end && String(await stored()) !== want) {
await sleep(200);
}
return look();
};
const divider = row.querySelector(".mode-divider");
const [lane, bar, switcher] = [modes, divider, toggle].map((node) => node.getBoundingClientRect());
const layout = {
order: [...row.children].map((node) => node.className),
divider: [Math.round(bar.width), bar.height > 0, getComputedStyle(divider).backgroundColor !== "rgba(0, 0, 0, 0)"],
sameLine: switcher.top < lane.bottom && switcher.bottom > lane.top,
after: bar.left >= lane.right - 1 || bar.top >= lane.bottom - 1,
named: [toggle.getAttribute("aria-label"), Boolean(toggle.title), toggle.getAttribute("aria-controls")],
inModes: Boolean(modes.querySelector(".radio-bubbles")),
};
const before = await look();
const want = before.radio === "true" ? "false" : "true";
const flipped = await flip(toggle, want);
const back = await flip(header, before.radio);
return {layout, before, flipped, back, wide: document.documentElement.scrollWidth > innerWidth + 1};
})()"""
@unittest.skipUnless(shutil.which(os.environ.get("CHROMIUM", "chromium")), "no Chromium")
class TestBubblesModeRow(HubCase):
drive = base.OrchestratorE2ECase.drive
authenticator = base.OrchestratorE2ECase.authenticator
def setUp(self):
super().setUp()
OUT.mkdir(parents=True, exist_ok=True)
self.claim("s1", "Skills session")
self.create_ask({**ASK, "timeout": 3600})
def test_chromium_switches_bubbles_from_the_mode_row_and_the_header_toggle_follows_at_three_widths(self):
authenticator = self.authenticator()
for width, height in base.WIDTHS:
with self.subTest(width=width):
probe = PROBE.replace("@HELPERS@", base.HELPERS)
data = self.drive([{"width": width, "height": height, "url": f"http://{self.host}/?{width}#stream", "wait": 1200, "probe": probe, "shot": str(OUT / f"chromium-{width}-bubbles-row.png")}], authenticator)
(OUT / f"chromium-{width}-bubbles-row.json").write_text(json.dumps(data, indent=1), encoding="utf-8")
self.assertEqual(data["errors"], [])
found = data["results"][0]
self.assertNotIn("error", found, found)
layout = found["layout"]
self.assertEqual(layout["order"][1:], ["mode-divider", "btn small ghost icon-only radio-bubbles"])
self.assertIn("radio-modes", layout["order"][0])
self.assertEqual((layout["divider"], layout["after"], layout["inModes"]), ([1, True, True], True, False), layout)
self.assertEqual(layout["named"], ["Speech bubbles", True, "bubbles"])
if width >= 1024:
self.assertTrue(layout["sameLine"], layout)
before, flipped, back = found["before"], found["flipped"], found["back"]
self.assertEqual((before["radio"], before["stored"]), (before["header"], before["radio"] == "true"), before)
self.assertEqual((flipped["radio"], flipped["header"], flipped["stored"]), (str(not before["stored"]).lower(), str(not before["stored"]).lower(), not before["stored"]), flipped)
self.assertEqual((back["radio"], back["header"], back["stored"]), (before["radio"], before["radio"], before["stored"]), back)
self.assertEqual((flipped["mode"], back["mode"]), (before["mode"], before["mode"]))
self.assertEqual(len(before["mode"]), 1)
self.assertFalse(found["wide"])
if __name__ == "__main__":
unittest.main()