fix(hub): tests follow requirement 030 and the line comments, dead ask answer path removed
🧪 Test / 🧪 Lock + lint (push) Waiting to run

Requirement 030 answers a permission ask with Grant and Deny only, so the
ask branch of choiceOf, answerAsk, askDialog, ALLOW and TELL had no caller
left; they are removed. test_ask_answers_e2e now denies one ask with Deny and
one through Deny via with a typed reason, both by post to the requester;
test_stream_keeps_typing_e2e types into a named-option decision while an
ask keeps its diff scroll. The grant-mode and inbox-gone harnesses load
page-diff.js (and page-deny.js) instead of missing lineNotes, the slash
marker test names the new Comment field, and the line-comment e2e expect the
requester and radio commands the hub really sends. The help line no longer
reads as an agent calling an agent and uses an ASCII minus for the zoom keys.

Evidence: tests/e2e 146 OK, make test 2123 OK with ruff, shellcheck and
markdownlint clean, MEDUSA 100 % over 624729d..this tree.

🎯 Fix: 96 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 94
🚦 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 08:29:50 +00:00
1 parent 2722cda1b5
commit d3bc54f401
11 files changed
+45 -44

No files matched your search

+2 -2
View File
@@ -136,7 +136,7 @@ class TestLineComments(base.OrchestratorE2ECase):
self.assertNotIn("error", stream, stream)
self.assertEqual((stream["item"], stream["sheet"]), ("Comment", {"title": "Comment", "range": "a.txt:2", "unlabelled": []}))
self.assertEqual(stream["marked"], {"rows": ["2", "2"], "notes": ["stream note"], "list": ["a.txt:2stream note"], "open": False})
self.assertEqual(stream["deny"], {"reason": "a.txt:2: stream note", "channel": "call", "to": "Skills session"})
self.assertEqual(stream["deny"], {"reason": "a.txt:2: stream note", "channel": "call", "to": "Skills"})
denial = [["ask", "reject", "call", "a.txt:2: stream note"]]
self.assertEqual(stream["posted"], [["/api/sign", None, denial], *([["/api/inbox/approve", None, denial]] if signs else [])])
self.assertNotIn("error", overlay, overlay)
@@ -159,7 +159,7 @@ class TestLineComments(base.OrchestratorE2ECase):
asks = [(ask["status"], ask.get("channel", ""), ask.get("reason", "")) for ask in self.httpd.hub.asks.listed() if ask["command"] == COMMAND]
self.assertEqual(asks, [("denied", "call", "a.txt:2: stream note")])
radio = [" ".join(args) for script, args in self.scripts.calls if script == skill_scripts.RADIO]
self.assertEqual(len([entry for entry in radio if entry.startswith("send post --to Skills session ") and f"Granted: {TITLE}. Notes:" in entry and "src/app.py:3: overlay note" in entry]), 1, radio)
self.assertEqual(len([entry for entry in radio if entry.startswith("post --to ") and f"Granted: {TITLE}. Notes:" in entry and "src/app.py:3: overlay note" in entry]), 1, radio)
@unittest.skipUnless(shutil.which(os.environ.get("FIREFOX", "firefox")), "no Firefox")
def test_firefox_keeps_line_comments_when_the_deny_and_the_grant_go_unsigned(self):