fix(hub): let the operator pick who hears a denial and require the agent on review requests
A review_request without agent reached nobody when denied: the hub found no requester and dropped the reason. The MCP schema now requires agent, the deny sheet preselects Call, offers a recipient picker defaulting to the card's creator and stays disabled for a direct channel without one, and the hub accepts a picked name only for a direct channel and an agent with a unique claimed radio address. 🎯 Fix: 93 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 89 🚦 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
7505fcb55d
commit
dbc10536a4
8 files changed
+100
-22
No files matched your search
@@ -94,10 +94,26 @@ DENY_SHEET = """(async () => {@HELPERS@@LABELS@
|
||||
const row = await until(() => rowOf("git push"), 8000);
|
||||
press(row, "Deny via …");
|
||||
const box = await until(() => document.querySelector(".sheet-box"), 4000);
|
||||
const channels = all(".deny-channels input[type=radio]", box).map((input) => [input.value, input.checked]);
|
||||
const hints = all(".deny-channel small", box).map(text);
|
||||
const recipient = box.querySelector(".deny-recipient select");
|
||||
const deny = all("button", box).find((button) => text(button) === "Deny");
|
||||
const picked = recipient.value;
|
||||
const sendable = !deny.disabled;
|
||||
recipient.value = "";
|
||||
recipient.dispatchEvent(new Event("change"));
|
||||
const blocked = deny.disabled;
|
||||
box.querySelector(".deny-channels input[value=broadcast]").click();
|
||||
const toAll = !deny.disabled;
|
||||
box.querySelector(".deny-channels input[value=call]").click();
|
||||
recipient.value = picked;
|
||||
recipient.dispatchEvent(new Event("change"));
|
||||
return {
|
||||
title: text(box.querySelector(".panel-title")),
|
||||
channels: all(".deny-channels input[type=radio]", box).map((input) => [input.value, input.checked]),
|
||||
hints: all(".deny-channel small", box).map(text),
|
||||
channels,
|
||||
hints,
|
||||
recipient: picked,
|
||||
gate: [sendable, blocked, toAll, !deny.disabled],
|
||||
reason: Boolean(box.querySelector("textarea")),
|
||||
unlabelled: unlabelled(box),
|
||||
wide: wide(),
|
||||
|
||||
Reference in new issue
Block a user