fix(match): release card repairs, hotfix 092

An Ask accepted while pending expired before the release, and the hub
refused all 11 decisions with a raw 409. The release card now checks
every row first: an unreleasable row turns red with its reason, Release
names the rows on click, and a red Cancel drops them and their cards.
A hub refusal names the card's title and marks its row. The verdict pill
opens a menu (options, Accept, Reject, Back to the stack, impossible
entries greyed with their reason). Back to the stack puts the card
behind the release card, last in the deck. W no longer puts a skipped
card in front of the release card. An expired decision no longer claims
its tool call went back to the terminal.

🎯 Fix: 85 %
💥 Break: 8 %
💸 Tokens: -
⏱️ Velocity: -
🛡️ Security: 100 %
🏆 Score: 78
🚦 Gate: ⛔ fix 85 % < 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:53:57 +00:00
1 parent ca97776b4d
commit b15dd5e414
11 files changed
+301 -49

No files matched your search

+11 -3
View File
@@ -84,8 +84,11 @@ FLOW = """(async () => {@HELPERS@
const leaned = await swipe(width * 0.4, 0);
await until(() => front() !== order[2], 3000);
order.push(front());
key("w");
await until(() => front() !== order[3], 3000);
order.push(front());
const short = await swipe(width * 0.1, 0);
const stayed = front() === order[3];
const stayed = front() === order[4];
await swipe(width * 0.4, 4);
const overview = await until(() => document.querySelector("#main .match-overview"), 3000);
const rows = overview ? all("#main .match-decision").map((item) => [item.dataset.card, item.dataset.verdict, text(item.querySelector(".match-decision-feedback"))]) : [];
@@ -102,7 +105,12 @@ FLOW = """(async () => {@HELPERS@
found.kept = all("#main .match-decision").length;
}
const flashed = new Set();
const watch = window.setInterval(() => all("#main .match-card").forEach((node) => flashed.add(node.dataset.card)), 20);
const shownBefore = new Set(all("#main .match-card").map((node) => node.dataset.card));
let cleared = false;
const watch = window.setInterval(() => {
cleared = cleared || Boolean(document.querySelector("#main .match-stack .empty"));
all("#main .match-card").filter((node) => !node.hasAttribute("data-blocked") && (cleared || !shownBefore.has(node.dataset.card))).forEach((node) => flashed.add(node.dataset.card));
}, 20);
found.toast = await toastAfter(() => document.querySelector("#main .match-release").click());
found.emptied = @SIGNS@ ? Boolean(await until(() => document.querySelector("#main .match-stack .empty"), 15000)) : false;
await sleep(@SIGNS@ ? 2500 : 0);
@@ -175,7 +183,7 @@ class TestMatchRelease(HubCase):
def check_flow(self, found: dict) -> None:
reason = f"{FIRST}:3: rename it"
self.assertNotIn("error", found, found)
self.assertEqual(found["order"], [self.cards[0], self.cards[1], self.cards[2], self.cards[1]], found)
self.assertEqual(found["order"], [self.cards[0], self.cards[1], self.cards[2], "release", self.cards[1]], found)
self.assertEqual((found["prefill"], found["leaned"], found["short"], found["stayed"]), (reason, "accept", "accept", True), found)
expected = [[self.cards[0], "reject", f"{reason}\nalso add a test"], [self.cards[1], "accept", None], [self.cards[2], "accept", None]]
self.assertEqual(sorted(found["rows"]), sorted(expected), found)
+4 -1
View File
@@ -65,9 +65,12 @@ WASD = """(async () => {@HELPERS@@CARD@@STEPS@
for (let step = 0; step < 8; step += 1) {
lap.push(await press("w"));
}
while (front() !== "release") {
for (let tries = 0; tries < 12 && front() !== "release"; tries += 1) {
await press("w");
}
if (front() !== "release") {
return {error: "W never brought the release card", seen, lap};
}
const onRelease = {a: await press("a")};
document.querySelector("#main .match-open-overview").click();
await until(releasing, 3000);
+7 -2
View File
@@ -48,7 +48,12 @@ RELEASED = """(async () => {@HELPERS@@CARD@@STEPS@
if (!(await until(card, 8000)) || !(await decideAll())) {
return {error: text(document.getElementById("main")).slice(0, 300)};
}
return {title: document.querySelector("#main .match-release").title};
const risk = document.querySelector('#main .match-decision[data-card="@RED@"] .match-accept-risk');
if (risk) {
risk.click();
}
const release = await until(() => document.querySelector("#main .match-release"), 4000);
return release ? {title: release.title} : {error: text(document.getElementById("main")).slice(0, 300)};
})()"""
@@ -63,7 +68,7 @@ class TestUndoDial(deck.ReleaseDeck):
def test_chromium_sets_the_undo_window_on_a_dial_and_every_undo_text_names_the_saved_seconds(self):
steps = [
{"width": 1366, "height": 768, "url": f"{self.base}?dial#stream/inbox", "wait": 1500, "shot": str(OUT / "chromium-1366-undo-dial.png"), "probe": deck.probe(TEXTS, red=f"review:{self.red}")},
{"width": 1920, "height": 1080, "url": f"{self.base}?dial-release#tasks/match", "wait": 1500, "shot": str(OUT / "chromium-1920-undo-release.png"), "probe": deck.probe(RELEASED)},
{"width": 1920, "height": 1080, "url": f"{self.base}?dial-release#tasks/match", "wait": 1500, "shot": str(OUT / "chromium-1920-undo-release.png"), "probe": deck.probe(RELEASED, red=f"review:{self.red}")},
]
data = self.drive(steps, None, init=deck.INIT)
(OUT / "chromium-undo-dial.json").write_text(json.dumps(data, indent=1), encoding="utf-8")