fix(orchestrator): E2E repairs of 085 to 099 and fades scoped to the swapped box

The first E2E run of 085 to 099 failed 69 tests and errored 2; every
spec is green again when run alone, and a full rerun left only a Firefox
swipe flake.

That flake was a real defect: fadeSwap() ran a page-wide View
Transition, and captured content takes no pointer hits, so a click or
swipe during any list fade was lost. fadeTransition(run, box) now names
only the swapped box (view-transition-name list-swap, the root none), so
everything outside it stays hit-testable; screen changes stay page-wide.
test_hub_motion_e2e proves a hit outside the box during a real fadeSwap;
it fails with the scoping removed. The swipe spec passed 3 of 3 runs.

Code: the Filter menu opens leftwards instead of past the viewport; kanban
lines measure beating cards at rest; a 409 toast names the row's title;
viewstore keeps the board legend; a closing context menu drops its focus;
the first closed-cards poll only takes a baseline (081 cadence); the Match
tile keeps the deck height; a swipe never starts a native link drag; the
heartbeat glow survives reduced motion; the Resources toolbar fits 390 px;
the Send button keeps 44 px.

Specs: elements fading out (086) and the new Claude dialogs section (094)
are expected; probes skip the docked bubble's own avatar (098); no
assertion was loosened.

MEDUSA: 5 false positives accepted on the operator's word (MM-SCAN-058
regex PLA in errors=replace, WM-SCAN-354 regex ELS in else ... code,
EXA007 toolbar line moved).

🎯 Fix: 94 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

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-28 09:12:11 +00:00
1 parent 38788b54a5
commit 0b4e3d3e6a
33 files changed
+124 -52

No files matched your search

+4
View File
@@ -118,6 +118,10 @@ HELPERS = """
await sleep(0);
return Boolean(shown);
};
const beatsAtRest = () => document.getAnimations().filter((motion) => motion.animationName === "lub-dub").forEach((motion) => {
motion.pause();
motion.currentTime = 0;
});
"""
OVERLAP = """
const shown = (node) => node.getClientRects().length > 0 && node.getBoundingClientRect().width > 0;
+6 -6
View File
@@ -88,7 +88,7 @@ RADIO = """
filters: audio().filters.slice(at.filters).map((node) => [node.type, node.frequency.value]),
oscillators: audio().oscillators - at.oscillators,
levels: audio().levels.slice(at.levels),
requests: audio().requests.slice(at.requests).filter((url) => !/\\/api\\/(state|stream|events|tts|tree|subagents|voice\\/[a-d]0)/.test(url)),
requests: audio().requests.slice(at.requests).filter((url) => !/\\/api\\/(state|stream|events|tts|tree|subagents|match\\/closed|voice\\/[a-d]0)/.test(url)),
});
const cpuShown = async (label) => {
refreshNow();
@@ -107,7 +107,7 @@ RADIO = """
};
const tabs = () => Object.fromEntries(all('.radio-tabs [role="tab"]', spot).map((tab) => [tab.dataset.tab, Number(text(tab.querySelector(".count")))]));
const selected = () => (spot.querySelector('.radio-tabs [aria-selected="true"]') || {dataset: {}}).dataset.tab || null;
const rows = () => all(".radio-row", spot).map((item) => ({dir: item.dataset.dir, cls: item.dataset.class, route: text(item.querySelector(".radio-route")), line: text(item.querySelector(".radio-line")), ts: Number(item.querySelector("time").dataset.ts)}));
const rows = () => all(".radio-row:not([data-vanishing])", spot).map((item) => ({dir: item.dataset.dir, cls: item.dataset.class, route: text(item.querySelector(".radio-route")), line: text(item.querySelector(".radio-line")), ts: Number(item.querySelector("time").dataset.ts)}));
const chip = async (name, value) => {
const select = spot.querySelector(`.chip-select[data-chip="${name}"] select`);
select.value = value;
@@ -193,7 +193,7 @@ LOG = """(async () => {@HELPERS@@RADIO@
all(".radio-filters button", spot).find((button) => name(button) === "Clear filters").click();
await sleep(150);
const clearedChips = [chips(), search().value, rows().length];
const faceOf = () => spot.querySelector(".radio-row .radio-sender");
const faceOf = () => spot.querySelector(".radio-row:not([data-vanishing]) .radio-sender");
const sender = name(faceOf());
faceOf().click();
const switches = await until(() => document.getElementById("popup").open && document.querySelector("#popup .agent-settings"), 4000);
@@ -213,7 +213,7 @@ LOG = """(async () => {@HELPERS@@RADIO@
const unmuted = [faceOf().dataset.quiet, await stored()];
all("#popup .popup-head button").find((button) => name(button) === "Close").click();
await sleep(150);
spot.querySelector(".radio-row .radio-pick").click();
spot.querySelector(".radio-row:not([data-vanishing]) .radio-pick").click();
const full = await until(() => document.getElementById("popup").open && document.querySelector("#popup .radio-full"), 4000);
const opened = [document.getElementById("popup").open, text(full)];
all("#popup .popup-head button").find((button) => name(button) === "Close").click();
@@ -238,8 +238,8 @@ LOG_KEPT = """(async () => {@HELPERS@@RADIO@
await sleep(300);
const top = Math.max(list.getBoundingClientRect().top, spot.getBoundingClientRect().top, document.querySelector(".head").getBoundingClientRect().bottom);
const bottom = Math.min(list.getBoundingClientRect().bottom, spot.getBoundingClientRect().bottom, innerHeight);
const shown = all(".radio-row", list).filter((item) => item.getBoundingClientRect().top >= top - 1 && item.getBoundingClientRect().bottom <= bottom + 1).length;
return {...kept, shown, total: all(".radio-row", list).length, fits: fits()};
const shown = all(".radio-row:not([data-vanishing])", list).filter((item) => item.getBoundingClientRect().top >= top - 1 && item.getBoundingClientRect().bottom <= bottom + 1).length;
return {...kept, shown, total: all(".radio-row:not([data-vanishing])", list).length, fits: fits()};
})()"""
SOUND = """(async () => {@HELPERS@@RADIO@
const found = {};
+4
View File
@@ -115,6 +115,10 @@ def probe(template: str, width: int) -> str:
class TestAgentMessageBox(base.OrchestratorE2ECase):
stored = attached.TestFieldAttachments.stored
def setUp(self):
super().setUp()
OUT.mkdir(parents=True, exist_ok=True)
def check_layout(self, width: int, layout: dict) -> None:
self.assertNotIn("error", layout, layout)
self.assertEqual(layout["files"], [["mic-attach-file", True, False]], layout)
+2 -2
View File
@@ -84,14 +84,14 @@ PROBE = """(async () => {@HELPERS@
const takesPointer = Boolean(hit && hit.closest("button.bubble-skip") === skip);
skip.focus();
const focused = document.activeElement === skip;
(hit && hit.closest("button.bubble-skip") ? hit : skip).click();
(hit && hit.closest("button.bubble-skip") ? hit : skip).dispatchEvent(new MouseEvent("click", {bubbles: true, cancelable: true, view: window}));
const gone = Boolean(await until(() => !layer.querySelector(`.speech-bubble[data-who="${CSS.escape(dockedWho)}"]`), 3000));
const kept = Boolean(of(anchoredWho));
poll();
await sleep(2500);
poll();
await sleep(1500);
const back = Boolean(of(dockedWho));
const kept = Boolean(of(anchoredWho));
all("[data-e2e-pin]").forEach((node) => node.remove());
return {dockedWho, anchoredWho, anchored, dock, states, takesPointer, focused, gone, back, kept};
})()"""
+3 -2
View File
@@ -66,7 +66,7 @@ SHOW = """(async () => {@HELPERS@
rows: shown,
withoutDeny,
restored: rows().length,
heads: all("#main table.fw-table thead th").map(text),
heads: all('#main table.fw-table[aria-label="Firewall rules"] thead th').map(text),
chips: all('#main [aria-label="Show rules"] button').map((node) => [node.dataset.filter, node.getAttribute("aria-pressed")]),
patterns: all('#main [aria-label="Never granted"] li').length,
targets,
@@ -197,7 +197,8 @@ GROUP_RULE = """(async () => {@HELPERS@
const pill = await until(() => all("#main li.hub-rule [data-agents]").find((node) => text(node) === "group builders"), 15000);
unfold();
const hits = await until(() => ruleRow() && text(ruleRow().querySelector(".hub-rule-count")), 8000);
const found = {group: text(document.querySelector('#main [data-group="builders"] strong')), members: text(document.querySelector('#main [data-group="builders"] .muted')), pills: all("#main li.hub-rule [data-agents]").map(text), found: Boolean(pill), hits, sheet: Boolean(document.querySelector("#sheet .rule-form")), toasts: all("#toasts .toast").map(text)};
const closed = await until(() => !document.querySelector("#sheet .rule-form"), 2000);
const found = {group: text(document.querySelector('#main [data-group="builders"] strong')), members: text(document.querySelector('#main [data-group="builders"] .muted')), pills: all("#main li.hub-rule [data-agents]").map(text), found: Boolean(pill), hits, sheet: !closed, toasts: all("#toasts .toast").map(text)};
const sets = document.querySelector('#main form[aria-label="New rule set"]');
sets.querySelector('input[aria-label="Set name"]').value = "ci";
for (const box of sets.querySelectorAll('[aria-label="Rules"] input[type="checkbox"]')) {
+1
View File
@@ -46,6 +46,7 @@ FLAT = """(async () => {@HELPERS@@HOME@@KIT@
}
return null;
};
beatsAtRest();
const found = all("#main .home-tile").map((node) => {
const body = node.querySelector(".home-body");
const flat = body.querySelector(".home-flat");
+17 -1
View File
@@ -151,10 +151,24 @@ BEAT = """(async () => {@HELPERS@
}
return {transforms: [...seen.transform].filter((value) => value !== "none").length, shadows: seen.shadow.size};
};
const fadeRuns = () => document.getAnimations().some((running) => String((running.effect && running.effect.pseudoElement) || "").startsWith("::view-transition"));
const through = async () => {
const field = document.querySelector("#main .task-bar input[type=search]");
const spot = field.getBoundingClientRect();
field.value = "work/delta";
field.dispatchEvent(new Event("input", {bubbles: true}));
const began = performance.now();
while (!fadeRuns() && performance.now() - began < 2000) {
await new Promise((resolve) => requestAnimationFrame(resolve));
}
const active = fadeRuns();
const at = document.elementFromPoint(spot.left + spot.width / 2, spot.top + spot.height / 2);
return {active, hit: at === field};
};
const tasks = [...@WORKING@, ...@STILL@];
const marked = Object.fromEntries(tasks.map((task) => [task, card(task) ? card(task).classList.contains("is-working") : null]));
const animation = Object.fromEntries(tasks.map((task) => [task, card(task) ? getComputedStyle(card(task)).animationName : null]));
return {marked, animation, beat: await sample(card("work/delta")), still: await sample(card("work/echo")), frames: {beat: keyframes("lub-dub"), glow: keyframes("lub-dub-glow")}};
return {marked, animation, beat: await sample(card("work/delta")), still: await sample(card("work/echo")), frames: {beat: keyframes("lub-dub"), glow: keyframes("lub-dub-glow")}, through: await through()};
})()"""
@@ -243,6 +257,8 @@ class TestHubHeartbeat(HubCase):
self.assertEqual(found["animation"], {**dict.fromkeys(WORKING, name), **dict.fromkeys(STILL, "none")}, found)
self.assertGreater(found["beat"]["shadows"], 1, found)
self.assertEqual(found["still"], {"transforms": 0, "shadows": 1}, found)
self.assertEqual(moving["through"], {"active": True, "hit": True}, moving)
self.assertEqual(calm["through"], {"active": False, "hit": True}, calm)
self.assertGreater(moving["beat"]["transforms"], 0, moving)
self.assertEqual(calm["beat"]["transforms"], 0, calm)
self.assertEqual(moving["frames"], {"beat": ["box-shadow", "transform"], "glow": ["box-shadow"]}, moving)
+1 -1
View File
@@ -310,7 +310,7 @@ class TestHubRadio(base.OrchestratorE2ECase):
self.assertEqual(saved["tones"], ["MAYDAY / PAN-PAN", "Reviews, asks, decisions", "Post and calls to you", "All radio", "Squelch", "speak while CPU < 50 %"])
self.assertEqual(saved["bells"], ["MAYDAY / PAN-PAN tone", "Reviews, asks, decisions tone", "Post and calls to you tone", "All radio tone"])
self.assertEqual((saved["kept"], saved["after"]), ([float(squelch), radio_bell != "off", post == "speak"], [radio_bell, post]))
self.assertEqual(saved["general"], {"sections": ["Ambience", "Location", "Appearance", "Music", "Undo window", "Passkey"], "radio": 0})
self.assertEqual(saved["general"], {"sections": ["Ambience", "Location", "Appearance", "Music", "Undo window", "Claude dialogs", "Passkey"], "radio": 0})
self.assertEqual((saved["tall"], saved["wide"]), (width == 390, False))
self.assertEqual(read, {"squelch": float(squelch), "radio": radio_bell, "post": post, "tall": width == 390, "wide": False})
heads = {"post": ["post", "--to", "Stage"], "call": ["send", "call", "--to", "Stage"], "newsletter": ["post"]}
+1 -1
View File
@@ -118,7 +118,7 @@ class TestInboxGoneRows(HubCase):
self.assertEqual((gone["open"], gone["wide"]), (False, False), gone)
with self.subTest(browser=browser, width=width, part="a present row whose run fails otherwise stays with its error"):
self.assertNotIn("error", kept, kept)
self.assertEqual((kept["toast"], kept["lines"], kept["bad"], kept["open"]), ("Run: echo kept: not possible", '409 {"id": "operator/kept", "status": "changed"}', True, True), kept)
self.assertEqual((kept["toast"], kept["lines"], kept["bad"], kept["open"]), ("Run: echo kept: not possible", "echo kept: changed", True, True), kept)
with self.subTest(browser=browser, width=width, part="the next refresh drops every row the hub no longer returns, without a reload"):
self.assertEqual((refreshed["settled"], refreshed["samePage"], refreshed["rows"]), (True, True, ["echo kept changed"]), refreshed)
+1 -1
View File
@@ -22,7 +22,7 @@ PINS = [
{"kind": "panel", "id": "tasks/burn", "w": 6, "h": 4},
{"kind": "panel", "id": "stream", "w": 6, "h": 4},
]
OWN = ("agents/orbit", "agents/chord", "agents/swimlane", "artifacts/orbit", "artifacts/chord", "artifacts/swimlane", "tasks/rasci", "tasks/gantt", "tasks/burn")
OWN = ("agents/orbit", "agents/chord", "agents/swimlane", "artifacts/orbit", "artifacts/chord", "artifacts/swimlane", "tasks/board", "tasks/rasci", "tasks/gantt", "tasks/burn")
EXPECTED = {
**{screen: [] for screen in base.SCREENS},
**{screen: [screen] for screen in OWN},
+1 -1
View File
@@ -30,7 +30,7 @@ MENU = """
}
await until(() => !shownMenu(), 3000);
};
const deckIds = () => all("#main .match-stack [data-card]").map((node) => node.dataset.card);
const deckIds = () => [...new Set(all("#main .match-stack [data-card]").map((node) => node.dataset.card))];
const hiddenHead = () => {
const button = document.querySelector("#main .match-hidden");
return button ? [button.hidden, text(button)] : null;
+1 -1
View File
@@ -28,7 +28,7 @@ LABELS = [
]
SOURCES = [("resources", "Resource warnings"), ("mayday", "MAYDAY calls"), ("dream", "Dream reminder")]
ON = {"browser": True, "sounds": True, "aloud": True, "title": True}
SECTIONS = ["Ambience", "Location", "Appearance", "Music", "Undo window", "Passkey"]
SECTIONS = ["Ambience", "Location", "Appearance", "Music", "Undo window", "Claude dialogs", "Passkey"]
KIT = """
const boxes = (group) => all("input[type=checkbox]", group).map((box) => [box.name, box.checked, words(box.closest("label"))]);
const rows = (fold) => all(".notify-source", fold).map((row) => [row.dataset.source, row.dataset.state, words(row.querySelector("label")), text(row.querySelector(".notify-state")), all("button", row).map(text)]);
+1 -1
View File
@@ -205,7 +205,7 @@ class TestOrchestratorE2E(base.OrchestratorE2ECase):
self.assertEqual(actions["keys"], ["#agents/chord", "#artifacts/tree", "#tasks/3d", "#home", "#stream"])
self.assertEqual(actions["ambience"], ["sky-look", "music-toggle", "leitstand", "notify"])
self.assertEqual((actions["settingsUnlabelled"], actions["popupUnlabelled"]), (0, 0))
self.assertEqual((actions["sections"], actions["radioFields"]), (["Ambience", "Location", "Appearance", "Music", "Undo window", "Passkey"], 0))
self.assertEqual((actions["sections"], actions["radioFields"]), (["Ambience", "Location", "Appearance", "Music", "Undo window", "Claude dialogs", "Passkey"], 0))
for tool in ("Radio …", "Cancel mayday", "Priority …", "Drain", "Suspend", "Resume", "Controls …", "Settings …", "Look at the sky", "Toggle control room", "Enable notifications"):
with self.subTest(tool=tool):
self.assertTrue(any(tool in entry for entry in actions["palette"]), actions["palette"])
+1
View File
@@ -38,6 +38,7 @@ READ = """
return [box.left + box.width / 2 - at.left, box.top + box.height / 2 - at.top];
};
const read = () => {
beatsAtRest();
const at = document.querySelector("#main .kanban").getBoundingClientRect();
const line = document.querySelector("#main svg.kanban-lines .kanban-queue");
const points = line ? line.getAttribute("points").trim().split(/\\s+/).map((pair) => pair.split(",").map(Number)) : [];
+3 -3
View File
@@ -272,14 +272,14 @@ VIEW = """(async () => {@HELPERS@@READ@
limits: lines().length, target: target().length, unknown: all("#main svg.res-chart[data-chart=hardware] rect.res-mark.unknown").length,
});
const before = count();
const view = menu("#main .res-view-menu");
const entries = all("label.res-pick", view).map((label) => [text(label), label.getAttribute("title")]);
const chip = document.querySelector('#main .res-hardware .legend-chip[data-chip="host:CPU"]');
chip.click();
await sleep(400);
const chipped = all('#main svg.res-chart[data-chart=hardware] path.res-line[data-series="CPU"]').length;
document.querySelector('#main .res-hardware .legend-chip[data-chip="host:CPU"]').click();
await sleep(400);
const view = menu("#main .res-view-menu");
const entries = all("label.res-pick", view).map((label) => [text(label), label.getAttribute("title")]);
for (const key of ["legend", "queue", "waits", "limits"]) {
await tick(`#main .res-view-menu input[data-show="${key}"]`, false);
}
@@ -438,7 +438,7 @@ class TestResourceLimits(HubCase):
steps.append({**self.step(1366, 768, "kept", KEPT), "shot": None})
data = self.drive(steps, None, init=w4.GUARD)["results"]
balanced = PROFILES["balanced"]
for (width, _), found in zip(base.WIDTHS, data, strict=True):
for (width, _), found in zip(base.WIDTHS, data[:-1], strict=True):
with self.subTest(width=width):
self.assertNotIn("error", found, found)
self.assertEqual([entry[0] for entry in found["entries"]], ["lower", "upper", "STOP", "MAYDAY", "target"])
+1 -1
View File
@@ -51,7 +51,7 @@ READ = """
const speaking = () => live().find((node) => node.dataset.state === "speaking") || null;
const waiting = () => live().find((node) => node.dataset.state === "waiting") || null;
const visible = (box) => box.width > 0 && box.height > 0 && box.right > 0 && box.bottom > 0 && box.left < innerWidth && box.top < innerHeight;
const face = (who) => [...document.querySelectorAll(`[data-face="${CSS.escape(who)}"]`)].map((node) => node.getBoundingClientRect()).find(visible) || null;
const face = (who) => [...document.querySelectorAll(`[data-face="${CSS.escape(who)}"]:not(#bubbles *)`)].map((node) => node.getBoundingClientRect()).find(visible) || null;
const read = (node) => {
if (!node) {
return null;