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:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-25 00:17:42 +00:00
1 parent 7505fcb55d
commit dbc10536a4
8 files changed
+100 -22

No files matched your search

+9
View File
@@ -132,6 +132,15 @@ class Denying:
def addressee(self, who: str) -> tuple[str, str]:
return requester_of(read_claims(self.council), who)
def pickable(self, channel: str, name: object) -> bool:
"""Returns:
Whether the operator may address a denial over channel to name:
a direct channel and the agent of a claim with a radio address
that no other agent's claim shares.
"""
claims = read_claims(self.council)
return channel in DIRECT and isinstance(name, str) and any(claim["agent"] == name and claim["address"] for claim in claims) and requester_of(claims, name)[0] == name
def tell(self, item: dict, proof: dict | None, who: str, what: str) -> str:
"""Args:
item: the denied inbox item: its note holds the chosen channel,