fix(hub): decision answers wake their agent as a radio call
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s
Answers to decision rows and to MCP choice cards went to the agent as a post, which it reads only when its turn ends, so the operator got no direct feedback. They now go as a passkey-signed call that wakes the agent at once; the card, the Match note, the decision_wait description and the operator checks say so. Four passkey hint texts are reworded so MEDUSA's excessive-agency rules no longer read them as agents handing out keys. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 88 🚦 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:
1 parent
a667ac485a
commit
ad03188335
11 files changed
+26
-25
No files matched your search
@@ -168,7 +168,7 @@ class TestDecisionRows(unittest.TestCase):
|
||||
self.assertNotIn("Operator", row["pills"])
|
||||
self.assertEqual(row["options"], [["Keep", False], ["Remove", False]])
|
||||
self.assertEqual(row["other"], 1)
|
||||
self.assertEqual(row["to"], ["Your answer goes to Stage 2.0 as a passkey-signed post, with the row id and your answer only."])
|
||||
self.assertEqual(row["to"], ["Your answer goes to Stage 2.0 as a passkey-signed call that wakes it at once, with the row id and your answer only."])
|
||||
|
||||
def test_a_picked_option_is_one_signed_grant_of_the_row_with_its_label_and_no_plain_post(self):
|
||||
picked = self.data["picked"]
|
||||
@@ -183,7 +183,7 @@ class TestDecisionRows(unittest.TestCase):
|
||||
def test_a_clicked_row_greys_out_spins_and_names_what_it_waits_for(self):
|
||||
waits = self.data["waits"]
|
||||
self.assertEqual(waits["idle"], ["", False, 0, ""])
|
||||
for state, words in (("sending", "Clicked: waits for your passkey, then the hub stores the answer and sends it to Stage 2.0"), ("held", "Signed: waits out the undo window of a few seconds, then the hub delivers it to Stage 2.0 and the card closes"), ("picked", 'Picked "Keep": Select mode collects it until you press Grant selection at the top; pick it again to take it back')):
|
||||
for state, words in (("sending", "Clicked: the hub stores the answer and sends it to Stage 2.0 once your passkey signs it"), ("held", "Signed: waits out the undo window of a few seconds, then the hub delivers it to Stage 2.0 and the card closes"), ("picked", 'Picked "Keep": Select mode collects it until you press Grant selection at the top; pick it again to take it back')):
|
||||
with self.subTest(state=state):
|
||||
self.assertEqual(waits[state], [words, True, 1, words])
|
||||
|
||||
|
||||
Reference in new issue
Block a user