List the review actions that the review-governance policy blocked in this session. protect-mcp 0.7.4 writes no receipt for a denied call, so the list comes from
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agents-5591d9f7085a ,按照其中的说明把「list-pending」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
List the review-surface actions that the review-governance policy blocked in
the current Claude Code session. These are candidates for human approval via
/approve-review.
protect-mcp 0.7.4 writes a receipt only for a tool call that ran. A denied
call never runs, so it has no receipt, and ./review-receipts/receipts.jsonl
cannot show denials. The PreToolUse hook blocks a denied call with exit code
2, and Claude Code shows that block in the session, so the session is where
denials are visible.
/list-pending
/list-pending --last 5
It cannot list denials from earlier sessions, because protect-mcp 0.7.4 does not log them.
To check whether a specific command is denied right now, run the policy evaluation in a shell. Exit 2 means the policy denies it, and exit 0 means it is allowed:
npx protect-mcp@0.7.4 evaluate --policy ./review-governance.cedar \
--tool Bash --input '{"command":"gh pr review 42 --approve"}'
The evaluation ignores the approval flag, so it shows what the policy does when no approval window is open.
Blocked in this session (most recent first, top 10):
Bash gh pr review 42 --approve --body 'LGTM'
Write .github/workflows/ci.yml
Bash gh issue comment 18 --body '...'
To approve one of these and retry, run:
/approve-review "<reason>"
Then retry the original tool call.
No tool call was blocked in this session.
This is the common state. It means either the agent has not attempted any review-surface actions, or the approval flag has been present for every attempt.
./review-receipts/../.review-approved exists skips the policy, so it is
never blocked and never appears here./approve-review "<reason>"../README.md