feat(orchestrator): verify hub approvals from an MCP record

Sandboxed agents cannot reach the hub on localhost:8737 (refused directly, timeout through the sandbox proxy), so approval.py verify failed and every kvb-git-diff approval fell back to the chat question (Quality: 3 reviews on 2026-11-17). The MCP tools review_status and review_wait, which run outside the sandbox, now also return the review's passkey proof, the record the HTTP proof route already served; approval.py verify --record <file> reads that object instead of fetching it and checks the signature against the pinned approvers, the replay store and the local tree as before, so trust stays with the operator's passkey, not the transport. kvb-git-diff names the sandbox path.

🎯 Fix: 93 %
💥 Break: 3 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 90
🚦 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-17 21:13:45 +00:00
1 parent d768851b8b
commit b95af2a8e0
6 files changed
+76 -26

No files matched your search

+7 -7
View File
@@ -30,10 +30,9 @@ once the operator's pinned passkey signature over it verifies here.
```
Only a `pass` review can be approved in bulk or by a rule. Tell the
operator in one line that the review waits in the hub at the `url` it
prints, written out as plain text: chat links do not open for this
operator. Without the script, the MCP tool `review_request` takes the
same fields without the diff.
operator the `url` it prints in one plain-text line; chat links do not
open for this operator. Without the script or port 8737, the MCP tool
`review_request` takes the same fields without the diff.
3. Call `review_wait` with its `id` and `timeout_seconds` 240 until the
status is no longer `pending`.
4. `approved`: in the worktree, verify the operator's passkey signature
@@ -43,9 +42,10 @@ once the operator's pinned passkey signature over it verifies here.
python3 ~/.local/share/kvb-orchestrator/client/approval.py verify --port 8737 --approvers ~/.config/kvb-orchestrator/approvers.json --replay <approvals>/commit.json --review <id> --gate <gate>
```
Sandboxed without port 8737: save `review_wait`'s answer under `/tmp`,
add `--record <file>`.
Exit 0 only: commit as the calling skill says. Any other exit,
`rejected`, or the tree changed: no commit; report the printed reason.
The hub is unreachable (no kvb-orchestrator tools, or a call cannot connect), or the
verify step refused: ask the calling skill's normal approval question in
chat instead.
No kvb-orchestrator tools, or the verify step refused: ask the calling
skill's approval question in chat.