feat(kvb-org-operator): call the initiating agent back on every row close
Operator order 2026-11-13: once the operator ran a command, the agent that queued it must hear it directly, without the operator relaying it. Every row close now sends one radio call to the stored initiator (party name plus the session id add pinned; legacy rows by the A name): run and hub ran (done, exit 0), check still open, the check-pass sweep of list and run, done, cancel, failure and hub failed. The call names row, outcome and exit code and never carries command output; shared stderr stays in failed.output of the register. radio.py send takes --sid for a call to exactly one address. Accepted MEDUSA false positives: CGS-SCAN-029 and CGS-SCAN-030 at operator.py:930, which runs the row command only after the operator's per-row answer. 🎯 Fix: 93 % 💥 Break: 4 % 💸 Cost: 105 % ⏱️ Time: 100 % 🛡️ Security: 100 % 🏆 Score: 85 🚦 Gate: ⚠️ cost 105 % > 100: ask the operator before the commit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca9cd96442
commit
7cb2616528
7 files changed
+242
-102
No files matched your search
@@ -752,6 +752,23 @@ class TestRadio(unittest.TestCase):
|
||||
self.assertEqual(self._send("s1", "feedback", "send", "ran y", "--to", "Two", "--sid", "s9"), ["sent call to Two"])
|
||||
self.assertEqual(self._send("s1", "feedback", "send", "ran z", "--to", "Nine", "--sid", "s9"), ["sent call to Nine", "wake: SendMessage to Nine (session s9)"])
|
||||
|
||||
def test_send_pins_a_call_to_its_session_whatever_its_feedback_channel_and_only_a_call(self):
|
||||
self._send("s2", "feedback", "set", "post")
|
||||
self.assertEqual(self._send("s1", "send", "call", "ran x", "--to", "Two", "--sid", "s2"), ["sent call to Two", "wake: SendMessage to Two (session s2)"])
|
||||
self.assertEqual(self._send("s1", "send", "direct", "ran y", "--to", "Two", "--wake", "--sid", "s2"), ["sent call to Two", "wake: SendMessage to Two (session s2)"])
|
||||
for args in (
|
||||
("send", "call", "t", "--to", "Two", "--to", "Three", "--sid", "s2"),
|
||||
("send", "direct", "t", "--to", "Two", "--sid", "s2"),
|
||||
("send", "broadcast", "t", "--sid", "s2"),
|
||||
):
|
||||
with self.subTest(args=args):
|
||||
self.assertEqual(self._cli("s1", *args).returncode, 2)
|
||||
self.assertEqual([(row["class"], row["to"], row["to_sessions"]) for row in self._rows()], [("call", ["Two"], ["s2"])] * 2)
|
||||
(self.home / ".claude" / "sessions" / "s2.json").write_text(json.dumps({"sessionId": "s2", "name": "Deux"}), encoding="utf-8")
|
||||
self.assertEqual(self._prompt("s2"), ["CALL One to Two: ran x", "CALL One to Two: ran y"])
|
||||
self._send("s1", "send", "call", "plain", "--to", "Two")
|
||||
self.assertNotIn("to_sessions", self._rows()[-1])
|
||||
|
||||
def test_feedback_send_without_a_session_takes_the_channel_the_name_set(self):
|
||||
self._send("s2", "feedback", "set", "call")
|
||||
self._send(None, "feedback", "set", "call", "--session", "codex-1")
|
||||
|
||||
Reference in new issue
Block a user