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

+8 -3
View File
@@ -12,7 +12,7 @@ from kvb_orchestrator import batches, skill_scripts
from kvb_orchestrator.asking import TERMINAL
from kvb_orchestrator.denying import LAPSED
from kvb_orchestrator.inbox import LAPSE_WINDOW, lapsed_of
from kvb_orchestrator.matching import EXPIRED, EXPIRED_REASON, expired_card
from kvb_orchestrator.matching import EXPIRED, EXPIRED_REASONS, expired_card
from test_hub_match import MatchCase
FEEDBACK = "run it again after the gate"
@@ -49,9 +49,14 @@ class TestExpiredFilter(unittest.TestCase):
def test_an_expired_card_is_greyed_with_blocked_kind_expired_and_keeps_its_expires(self):
card = expired_card({"id": "ask:a1", "kind": "ask", "blocked": "", "stale": False}, 990.0)
self.assertEqual((card["blocked_kind"], card["blocked"], card["expires"], card["stale"]), (EXPIRED, EXPIRED_REASON, 990.0, False))
self.assertEqual((card["blocked_kind"], card["blocked"], card["expires"], card["stale"]), (EXPIRED, EXPIRED_REASONS["ask"], 990.0, False))
self.assertIn(LAPSED, card["blocked"].lower())
def test_an_expired_decision_says_its_agent_stopped_waiting_not_that_a_tool_call_returned(self):
card = expired_card({"id": "decision:d1", "kind": "decision", "blocked": "", "stale": False}, 990.0)
self.assertEqual(card["blocked"], EXPIRED_REASONS["decision"])
self.assertNotIn("tool call", card["blocked"])
class TestExpiredRelease(MatchCase):
def radio(self) -> list[list[str]]:
@@ -81,7 +86,7 @@ class TestExpiredRelease(MatchCase):
def test_an_expired_ask_stays_a_greyed_card_with_its_expiry_but_leaves_the_inbox_and_the_badge(self):
ask = self.lapsed_ask(CALLED)
card = self.card(f"ask:{ask}")
self.assertEqual((card["kind"], card["blocked_kind"], card["blocked"], card["to"]), ("ask", EXPIRED, EXPIRED_REASON, "Skills"))
self.assertEqual((card["kind"], card["blocked_kind"], card["blocked"], card["to"]), ("ask", EXPIRED, EXPIRED_REASONS["ask"], "Skills"))
self.assertEqual(card["expires"], self.httpd.hub.asks.get(ask)["expires"])
snapshot = self.snapshot()
self.assertNotIn(ask, [item["id"] for item in snapshot["inbox"]])