feat(hub): an answered decision row shows greyed with its answer until its agent closes it
🧪 Test / 🧪 Lock + lint (push) Waiting to run

The stream kept an operator decision row the operator had already answered as waiting with live options and actions; a second pick ended in 409 answered. The stream event now carries ref.answered, and the row stays visible (also under For you) but greyed like a blocked row, with the pills decided and the answer, without options and without actions. The agent still closes the row; the hub offers no remove.

🎯 Fix: 95 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 92
🚦 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-25 10:30:15 +00:00
1 parent 724042aa5b
commit e5fd70e183
5 files changed
+68 -6

No files matched your search

+6
View File
@@ -485,6 +485,10 @@ class TestWaitingCards(MatchCase):
def answered(self, task: str) -> str:
return next(item["answered"] for item in self.snapshot()["inbox"] if item["id"] == task)
def streamed(self, task: str) -> tuple[bool, str]:
row = next(row for row in self.events("kinds=operator&waiting=1")["events"] if row["id"] == f"operator:{task}")
return row["waiting"], row["ref"]["answered"]
def waiting(self) -> dict[str, str]:
self.claim("s1", "Skills session")
self.add(staged_repo(self.work))
@@ -533,8 +537,10 @@ class TestWaitingCards(MatchCase):
self.assertEqual({card["kind"] for card in self.cards()}, {"commit", "command", "rule"})
self.assertEqual(self.post_json("/api/sign", {"items": [entries[0]]}, self.guard(self.host))[0], 409)
self.assertEqual(self.answered("operator/pick"), "Wait")
self.assertEqual(self.streamed("operator/pick"), (True, "Wait"))
self.write_council({"rasci.json": {"operator/pick": {**PICK, "title": "Merge the hub tonight?"}}})
self.assertEqual((self.card("operator:operator/pick")["title"], self.answered("operator/pick")), ("Merge the hub tonight?", ""))
self.assertEqual(self.streamed("operator/pick"), (True, ""))
def test_a_decision_row_takes_one_line_of_other_text_and_no_forged_line(self):
self.waiting()