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

+131
View File
@@ -0,0 +1,131 @@
from __future__ import annotations
import json
import os
import shutil
import sys
import time
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 test_home_bookmarks_e2e as bm
from hub_case import HubCase
OUT = Path(os.environ.get("E2E_OUT", "/tmp/hub-059-shots"))
INIT = """() => {
window.e2eViolations = [];
document.addEventListener("securitypolicyviolation", (event) => window.e2eViolations.push(`${event.violatedDirective} ${event.blockedURI}`));
window.e2eHidden = false;
Object.defineProperty(Document.prototype, "hidden", {configurable: true, get: () => window.e2eHidden});
window.e2eAudio = {starts: 0, stops: 0};
const start = OscillatorNode.prototype.start;
const stop = OscillatorNode.prototype.stop;
OscillatorNode.prototype.start = function (...args) { window.e2eAudio.starts += 1; return start.apply(this, args); };
OscillatorNode.prototype.stop = function (...args) { window.e2eAudio.stops += 1; return stop.apply(this, args); };
}"""
POLLS = """(async () => {@HELPERS@
await streamShowsAll();
const list = await until(() => document.querySelector('#main [data-panel="stream"]') && document.querySelector('#main [data-panel="stream"] li.entry') ? document.querySelector('#main [data-panel="stream"]') : null, 10000);
if (!list) {
return {error: text(document.getElementById("main"))};
}
await sleep(1500);
const first = list.querySelector("li.entry");
let replaced = 0;
new MutationObserver((records) => { replaced += records.length; }).observe(list, {childList: true});
await sleep(11500);
const kept = {connected: first.isConnected, replaced, rows: list.querySelectorAll("li.entry").length};
const note = document.getElementById("sky-note");
let sky = 0;
new MutationObserver((records) => { sky += records.length; }).observe(note, {childList: true, characterData: true, subtree: true});
window.e2eHidden = true;
document.dispatchEvent(new Event("visibilitychange"));
await sleep(11500);
const hidden = sky;
window.e2eHidden = false;
document.dispatchEvent(new Event("visibilitychange"));
await sleep(3000);
return {kept, hidden, shown: sky - hidden, violations: window.e2eViolations};
})()"""
MUSIC = """(async () => {@HELPERS@
const audio = () => ({...window.e2eAudio});
const save = async (on, volume) => {
document.getElementById("settings-open").click();
const form = await until(() => document.querySelector("#sheet form.settings"), 5000);
if (!form) {
return false;
}
const box = [...form.querySelectorAll("label.check")].find((label) => label.textContent.includes("Music on")).querySelector("input");
box.checked = on;
form.querySelector('input[aria-label="Overall volume"]').value = String(volume);
form.requestSubmit();
return Boolean(await until(() => !document.querySelector("#sheet form.settings"), 8000));
};
const before = audio();
const on = await save(true, 0.5);
const started = await until(() => window.e2eAudio.starts >= before.starts + 4, 8000);
const loud = audio();
const quiet = await save(true, 0);
await sleep(3500);
const stopped = audio();
await sleep(6000);
const later = audio();
const rose = await save(true, 0.5);
const restarted = await until(() => window.e2eAudio.starts >= later.starts + 4, 8000);
const off = await save(false, 0.5);
return {saved: [on, quiet, rose, off], started: Boolean(started), restarted: Boolean(restarted), before, loud, stopped, later, violations: window.e2eViolations};
})()"""
def probe(template: str) -> str:
return template.replace("@HELPERS@", base.HELPERS)
@unittest.skipUnless(shutil.which(os.environ.get("CHROMIUM", "chromium")), "no Chromium")
class TestPollCost(HubCase):
drive = base.OrchestratorE2ECase.drive
def setUp(self):
super().setUp()
OUT.mkdir(parents=True, exist_ok=True)
now = time.time()
self.write_council({"news.jsonl": self.jsonl([{"ts": now - 60 * n, "from": "One", "to": [], "text": f"row {n}"} for n in range(1, 6)])})
self.page_url = f"http://localhost:{self.port}/"
def test_chromium_keeps_stream_rows_across_polls_stops_the_sky_hidden_and_the_music_at_level_zero_at_three_widths(self):
steps = []
for width, height in base.WIDTHS:
at = {"width": width, "height": height}
shot = OUT / f"chromium-{width}"
steps += [
{**at, "url": f"{self.page_url}?{width}-clear#stream", "wait": 600, "probe": bm.CLEAR, "shot": None},
{**at, "url": f"{self.page_url}?{width}#stream", "wait": 1500, "probe": probe(POLLS), "shot": f"{shot}-stream.png"},
{**at, "url": None, "wait": 0, "probe": probe(MUSIC), "shot": None},
]
data = self.drive(steps, None, init=INIT)
(OUT / "chromium-poll-cost.json").write_text(json.dumps(data, indent=1), encoding="utf-8")
self.assertEqual(data["errors"], [])
results = iter(data["results"])
for width, _ in base.WIDTHS:
_, polls, music = next(results), next(results), next(results)
with self.subTest(width=width):
self.assertNotIn("error", polls, polls)
self.assertEqual((polls["kept"]["connected"], polls["kept"]["replaced"]), (True, 0), polls)
self.assertGreaterEqual(polls["kept"]["rows"], 5, polls)
self.assertEqual(polls["hidden"], 0, polls)
self.assertGreaterEqual(polls["shown"], 1, polls)
self.assertEqual(polls["violations"], [])
self.assertEqual(music["saved"], [True, True, True, True], music)
self.assertTrue(music["started"], music)
self.assertGreaterEqual(music["stopped"]["stops"] - music["loud"]["stops"], 4, music)
self.assertEqual(music["later"]["starts"], music["stopped"]["starts"], music)
self.assertTrue(music["restarted"], music)
self.assertEqual(music["violations"], [])
if __name__ == "__main__":
unittest.main()