Skip to content

feat(action-gate): deterministic Gate/Prove policy firewall & hash-chained ledger for MCP tool execution - #4649

Open
AAH20 wants to merge 3 commits into
modelcontextprotocol:mainfrom
AAH20:feat/action-gate
Open

feat(action-gate): deterministic Gate/Prove policy firewall & hash-chained ledger for MCP tool execution#4649
AAH20 wants to merge 3 commits into
modelcontextprotocol:mainfrom
AAH20:feat/action-gate

Conversation

@AAH20

@AAH20 AAH20 commented Aug 17, 2026

Copy link
Copy Markdown

Summary

Adds action-gate, an MCP security middleware server implementing deterministic Gate/Prove execution boundaries, Simulation Mode, and append-only hash-chained action ledgers.

Problem Solved

As autonomous agents and MCP clients gain write and shell execution capabilities, treating raw LLM probability or tool-call intent as authorization introduces severe production outages and compliance blockers.

This server enforces a zero-trust execution boundary:

  1. Never Equate Intent to Approval: High model confidence (model_confidence: 0.99) is explicitly rejected as authorization for destructive operations.
  2. Tiered Tool Governance:
    • READ: Logged and allowed.
    • WRITE: Defaults to non-destructive simulation mode unless approved.
    • DESTRUCTIVE / PROVISION / DECOMMISSION: Hard DENY without a valid HITL prove token.
  3. Immutable Action Ledger: Records an append-only JSONL ledger with SHA-256 hash-chain verification.
  4. Atomic Kill-Switch: Instant freeze via environment variable (AAG_KILL_SWITCH=1) or file sentinel.

Testing & Validation

  • Protocol: Fully JSON-RPC 2.0 stdio compliant.
  • Test Suite: 21 automated unit and integration tests passing.
  • Benchmarks: Includes cost avoidance models and ATT&CK evaluation cases (T1059, T1078, T1562, T1578).

Production & Commercial Context

Maintained and battle-tested by A2Z SOC for AI Forward Deployed Engineering, ISO 42001, NIST AI RMF, and SOC 2 Type II audit readiness.

For organizations deploying autonomous agent fleets requiring formal Gate/Prove audits or production hardening:

Copilot AI balanced review requested due to automatic review settings August 17, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Signed-off-by: aah20 <aah20@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 17, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Signed-off-by: aah20 <aah20@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 17, 2026 09:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants