fix(hub): a denied review's status carries the operator's reason
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s

review_status and review_wait returned only status, tree and proof, so a denial note on a card without a known recipient (every MCP card since the agent field came, because sessions keep the tool list they loaded) reached nobody: the hub logged no recipient for call and the note sat unread in reviews.json. state_of now adds channel, reason and to when the denial carries a note, as the ask status already does; a plain rejection adds nothing. The review_status description names the fields. Negative control: on the old code both new subtests fail with KeyError 'channel'.

🎯 Fix: 95 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 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-26 09:55:28 +00:00
1 parent 6720ee3e70
commit 0fece7664a
3 files changed
+26 -4

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ class Mcp:
"agent": text_property("Your agent name as the radio knows it; the operator's denial and its reason go to it."),
},
),
tool("review_status", "Status of a review (pending, approved, rejected, superseded: a newer review of the same worktree and branch replaced it, named by superseded_by), its tree, decision time and the passkey proof that approval.py verify --record checks.", {"id": review_id}),
tool("review_status", "Status of a review (pending, approved, rejected, superseded: a newer review of the same worktree and branch replaced it, named by superseded_by), its tree, decision time, for a denial with a note its channel, reason and to, and the passkey proof that approval.py verify --record checks.", {"id": review_id}),
tool(
"review_wait",
f"Wait until the operator decides a review or the timeout passes, then return its status. "