تخطَّ إلى المحتوى
أمرمستورد

list-pending

List the review actions that the review-governance policy blocked in this session. protect-mcp 0.32.4 writes no receipt for a denied call, so the list comes from the session, not from ./review-receipts/.

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 3.6 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/review-agent-governance-list-pending.zip -d .claude/commands

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/review-agent-governance-list-pending.zip -d ~/.claude/commands

التعليمات

List Pending Reviews

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.32.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.

Usage

/list-pending
/list-pending --last 5

What this does

  1. Looks back through the current session for tool calls that a PreToolUse hook blocked.
  2. Keeps the most recent N (default 10).
  3. Prints each one with the tool name and the command or file path.

It cannot list denials from earlier sessions, because protect-mcp 0.32.4 does not log them.

Check a command against the policy

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.32.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.

What to show the user

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.

When there are no denials

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.

Notes

  • The command reads the session only. It does not read or change ./review-receipts/.
  • A call made while ./.review-approved exists skips the policy, so it is never blocked and never appears here.

References

  • Approve an action: /approve-review "<reason>"
  • Verify the signed receipts: the "Verifying the receipts" section of the review-agent-setup skill
  • Plugin README: ../README.md

الملفات

  • LICENSE1 ك.ب
  • list-pending.md2.5 ك.ب

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • أمرمستورد

    ai-assistant

    Build AI assistant application with NLU, dialog management, and integrations

    MITالملفات: 1

  • أمرمستورد

    create-docker-mcp-tunnel

    Stand up an Anthropic MCP tunnel locally with Docker Compose so Claude can call a private MCP server (manual-credentials quickstart).

    Apache-2.0الملفات: 1

  • أمرمستورد

    finetune

    Run the eval-gated fine-tuning lifecycle end to end — eval harness, method selection, data, environment, training, checkpoint gate, export

    MITالملفات: 1

  • أمرمستورد

    github-issues

    Create, update, and manage GitHub issues using MCP tools. Use this skill when users want to create bug reports, feature requests, or task issues, update existing issues, add labels/assignees/milestones, or manage issue workflows. Triggers o

    MITالملفات: 1

  • أمرمستورد

    langchain-agent

    Create LangGraph-based agent with modern patterns

    MITالملفات: 1

  • أمرمستورد

    load-llms-txt

    Load and process external documentation context from llms.txt files or custom sources

    MITالملفات: 1