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

+12 -4
View File
@@ -1,5 +1,6 @@
const RESOURCE = {left: 46, right: 10, wide: 50, top: 6, bottom: 6, axis: 18, poll: 5000, stale: 60, tones: 6, glyph: 6.5, shown: 100, lane: 13};
const RESOURCE_PANELS = [["hardware", "bi-cpu", "Hardware: disks, CPU, RAM, swap, GPU and VRAM"], ["tokens", "bi-coin", "Tokens per agent"], ["combined", "bi-layers", "Hardware, tokens and burnup"]];
const HARDWARE_TONES = {shades: 3, host: {CPU: "res-cpu", RAM: "res-ram", Swap: "res-swap"}};
const RESOURCE_ZONES = {idle: "Idle: below 30 %", saturated: "Saturated: above 90 %"};
const RESOURCE_MARKS = {
wait: ["#bi-hourglass-split", (mark) => `Idle waiting: ${mark.peak} jobs waited while CPU and RAM stayed under 50 %`, 0],
@@ -229,14 +230,21 @@
}
}
/**
* @param samples - sampler rows.
* @returns the hardware lines, each with its tone: the disks in shades of one hue, CPU, RAM and swap each in its own
* hue, every GPU in shades of a further hue and its VRAM in yet another, so that no two kinds share a colour.
*/
function hardwareSeries(samples) {
const tones = new Map();
const shades = {disk: new Map(), util: new Map(), vram: new Map()};
return Resources.hardware(samples).map((line) => {
if (!tones.has(line.name)) {
tones.set(line.name, tones.size % RESOURCE.tones);
const shade = shades[line.kind];
if (shade && !shade.has(line.name)) {
shade.set(line.name, shade.size % HARDWARE_TONES.shades);
}
const tone = shade ? `res-${line.kind}${shade.get(line.name)}` : HARDWARE_TONES.host[line.name];
const last = [...line.points].reverse().find(([, value]) => value !== null);
return {...line, id: ViewStore.id(line.kind, line.name), label: `${resourceLabel(line)} ${dash(last === undefined ? null : last[1])} %`, tone: `res-c${tones.get(line.name)} k-${line.kind}`};
return {...line, id: ViewStore.id(line.kind, line.name), label: `${resourceLabel(line)} ${dash(last === undefined ? null : last[1])} %`, tone: `${tone} k-${line.kind}`};
});
}