fix(hub): E2E repairs of 066 to 084 and unclipped stream code boxes

Real bugs: the 084 limit bar wrapped at 390 px and dropped the hardware
chart; the 066 footer rule shrank the mic below 44 px; the board's Running
and Prune labels pushed the Tasks head onto two rows; a closed code box
cut long commands off instead of scrolling. Resources reads disk use as
df does (total = used + available) and gives every hardware kind its own
tone. Stale specs follow 067, 070, 072 and 078 decisions.

🎯 Fix: 80 %
💥 Break: 8 %
💸 Tokens: -
⏱️ Velocity: -
🛡️ Security: 100 %
🏆 Score: 74
🚦 Gate: ⛔ fix 80 % < 90, break 8 % > 5 (E2E rerun after 085 to 094, operator word 2026-11-27)

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-27 20:52:24 +00:00
1 parent b0ee62dd0b
commit ca97776b4d
18 files changed
+67 -29

No files matched your search

+5 -1
View File
@@ -115,7 +115,11 @@ BULK = """(async () => {@HELPERS@@PLAN_HELPERS@
found.toast = await fresh(shown, "Business value @VALUE@ for 2 tasks");
found.asked = asked;
found.posted = posted;
found.after = [button.disabled, all("#main .task-row input.task-pick:checked").length];
const picked = () => [document.getElementById("bulk-value").disabled, all("#main .task-row input.task-pick:checked").length];
if (@SIGNS@) {
await until(() => JSON.stringify(picked()) === JSON.stringify([true, 0]), 8000);
}
found.after = picked();
Object.assign(found, fits());
all('#main [aria-label="Estimation"] button').find((entry) => entry.dataset.estimation === "none").click();
found.reset = Boolean(await until(() => requestShown() === false, 8000));
+5 -1
View File
@@ -82,6 +82,9 @@ class TestCommitTreeDiff(HubCase):
repo, target = merge_repo(Path(work.name))
tree = git(repo, "rev-parse", f"{target}^{{tree}}").strip()
self.parent = git(repo, "rev-parse", "main").strip()
with self.assertRaises(staged_diff.DiffError) as missing:
staged_diff.git(repo, ["cat-file", "-t", MISSING], None)
self.missing = str(missing.exception)
now = time.time()
self.write_council({
"work/s1/claim.json": {"office": "work/s1", "session": "s1", "runtime": "claude", "name": "Skills", "since": iso(now - 86400), "beat": now, "work": "commit-tree"},
@@ -120,7 +123,8 @@ class TestCommitTreeDiff(HubCase):
with self.subTest(browser=browser, width=width, step="error"):
self.assertNotIn("error", broken, broken)
self.assertEqual((broken["failed"], broken["files"], broken["none"], broken["wide"]), ("true", 0, "No diff to show.", False), broken)
self.assertIn(f"No commit-tree diff: git cat-file -t {MISSING} failed: fatal: Not a valid object name {MISSING}", broken["line"])
self.assertTrue(self.missing.startswith(f"git cat-file -t {MISSING} failed: fatal: "), self.missing)
self.assertIn(f"No commit-tree diff: {self.missing}", broken["line"])
def test_chromium_shows_the_commit_tree_diff_its_eye_toggle_and_the_git_error_line(self):
data = self.drive(self.steps("chromium"), None)
+2 -2
View File
@@ -115,7 +115,7 @@ TOOLS = """(async () => {@HELPERS@
return {error: text(document.getElementById("main"))};
}
const rows = () => all("#main .tool-row").map((node) => [node.closest("[data-list]").dataset.list, node.dataset.tool, node.dataset.on, node.hasAttribute("data-staged")]);
const bar = () => document.querySelector("#main .apply-bar");
const bar = () => document.querySelector('#main .apply-bar[aria-label="Apply changes"]');
const found = {before: rows(), hidden: bar().hidden};
await flip("blender", true);
await flip("caveman@caveman", true);
@@ -308,7 +308,7 @@ class TestFirewallE2E(HubCase):
with self.subTest(width=width):
self.assertNotIn("error", shown, shown)
self.assertEqual((shown["title"], shown["subs"]), ("Controls", base.SUBS))
self.assertEqual(shown["tabs"], {"first": [["tools", "true", False], ["rules", "false", True], ["schedules", "false", True]], "picked": [["tools", "false", True], ["rules", "true", False], ["schedules", "false", True]]})
self.assertEqual(shown["tabs"], {"first": [["tools", "true", False], ["rules", "false", True], ["schedules", "false", True], ["queue", "false", True]], "picked": [["tools", "false", True], ["rules", "true", False], ["schedules", "false", True], ["queue", "false", True]]})
self.assertEqual(shown["collapsed"], [True] * 4)
self.assertEqual(shown["sources"], [str(self.settings)])
self.assertEqual(shown["folded"], {"expanded": ["false"], "rows": 0})
+1 -1
View File
@@ -377,7 +377,7 @@ class TestHomeBookmarks(HubCase):
loaded = next(results)
self.assertTrue(loaded["drawn"], loaded)
found = next(results)
self.assertEqual((found["charts"], found["stars"]), ([True] * 4, 0), found)
self.assertEqual((found["charts"], found["stars"]), ([True] * 5, 0), found)
self.assertEqual(found["tree"], [True], found)
self.assertTrue(found["rows"]["repo"] and all(found["rows"]["repo"]), found)
self.assertTrue(found["rows"]["branch"] and all(found["rows"]["branch"]), found)
+2
View File
@@ -72,8 +72,10 @@ RADIO = """(async () => {@HELPERS@@SCAN@
const mic = foot.querySelector(":scope > button.mic");
const idle = getComputedStyle(mic).backgroundColor;
mic.setAttribute("aria-pressed", "true");
await sleep(300);
const recording = getComputedStyle(mic).backgroundColor;
mic.setAttribute("aria-pressed", "false");
await sleep(300);
area.style.height = "260px";
await sleep(100);
const after = scan().find((entry) => entry.id === area.id);
+4 -3
View File
@@ -106,14 +106,15 @@ USAGE = """(async () => {@HELPERS@@KIT@@BAR@
pointer(document, "pointermove", rect.left + rect.width * 0.25, y);
pointer(document, "pointermove", rect.left + rect.width * 0.4, y);
pointer(document, "pointerup", rect.left + rect.width * 0.4, y);
const dragged = await settled(40);
const landed = await settled(40);
const dragged = landed ? read(landed) : null;
const stored = (await (await fetch("/api/accounts", {cache: "no-store"})).json()).calibrations;
const before = {pressed: toggle().getAttribute("aria-pressed"), marks: marks()};
toggle().click();
await until(() => toggle().getAttribute("aria-pressed") === "true" && marks().every(([, found]) => found.length === 1), 6000);
const on = {pressed: toggle().getAttribute("aria-pressed"), marks: marks()};
bar().scrollIntoView({block: "center", inline: "center"});
return {shown, right, paged, keyed: Boolean(keyed), kept, dragged: dragged ? read(dragged) : null, stored, before, on, page: wide(), violations: window.e2eViolations || null};
return {shown, right, paged, keyed: Boolean(keyed), kept, dragged, stored, before, on, page: wide(), violations: window.e2eViolations || null};
})()"""
RELOAD = """(async () => {@HELPERS@@KIT@@BAR@
if (!(await until(() => bar() && toggle() && marks().every(([, found]) => found.length === 1), 15000))) {
@@ -141,7 +142,7 @@ class TestResourcesAccounts(HubCase):
sample = w4.TestWorkbenchResources.sample
def setUp(self):
super().setUp()
HubCase.setUp(self)
OUT.mkdir(parents=True, exist_ok=True)
now = int(time.time())
self.start = now - now % 60 - w4.ROWS * 60
+2 -2
View File
@@ -50,10 +50,10 @@ EXPLORE = """(async () => {@HELPERS@@READ@@KIT@
rowOf("kvb-help").click();
const drilled = Boolean(await until(() => filters().join() === "skill" && keys().join() === "kvb-help", 6000));
choose(group(), "tool");
const switched = Boolean(await until(() => keys().join() === "Bash,Read," && split(), 6000));
const regrouped = Boolean(await until(() => keys().join() === "Bash,Read," && split(), 6000));
const byTool = {group: group().value, keys: keys(), shares: cells("share"), split: split(), filters: filters()};
box().scrollIntoView({block: "start"});
return {bySkill, byCost, drilled, switched, byTool, page: wide(), violations: window.e2eViolations || null};
return {bySkill, byCost, drilled, switched: regrouped, byTool, page: wide(), violations: window.e2eViolations || null};
})()"""
RESET = """(async () => {@HELPERS@@READ@@KIT@
document.querySelector('#main .res-usage [data-filter="skill"]').click();
+1 -1
View File
@@ -27,7 +27,7 @@ PAGE = """(async () => {@HELPERS@
}
window.e2eSameDocument = true;
const fold = (id) => document.querySelector(`#main details[data-fold="${id}"]`);
const shown = (node) => Boolean(node && node.getClientRects().length);
const shown = (node) => Boolean(node && node.checkVisibility());
const visible = (id) => all("li.hub-rule", fold(id)).filter(shown).length;
const rowOf = (pattern) => all("#main li.hub-rule").find((node) => text(node.querySelector(".hub-rule-pattern")) === pattern);
const chipOf = (row) => row.querySelector("[data-expiry]");
+1 -1
View File
@@ -54,7 +54,7 @@ HOME = """(async () => {@HELPERS@@SHAPE@
}
await sleep(40);
const body = tile.querySelector(".home-body").getBoundingClientRect();
const out = [".ptt-split", ".mayday-toggle"].filter((selector) => {
const out = [".ptt-split > :first-child", ".ptt-split .ptt-more", ".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);
});
+1 -1
View File
@@ -128,7 +128,7 @@ class TestWorkbenchResources(HubCase):
self.assertEqual(found["unknown"], [[self.start + UNREAD[0] * 60, self.start + UNREAD[1] * 60]])
self.assertEqual((found["agents"], found["bottoms"], found["stacked"]), (["Skills", "Stage"], ["Skills"], True))
self.assertEqual(found["legend"], ["CPU 60 %", "RAM 55 %", "Swap 5 %"])
self.assertEqual(found["labels"], {"tab": ["Resources (key 6)", "Resources"], "reload": ["Reload: read the sampler files and the accounts again", "Reload"], "titles": [[name, name] for name in PANELS.values()]})
self.assertEqual(found["labels"], {"tab": ["Resources (key 6)", "Resources"], "reload": ["Reload: read the sampler files, the accounts and the usage again", "Reload"], "titles": [[name, name] for name in PANELS.values()]})
self.assertEqual((found["unlabelled"], found["plots"]), (0, [True] * 2))
self.assertEqual((found["tall"], found["wide"]), (False, False), "the page scrolls")
self.assertEqual(quiet(found["violations"]), [])