Repository navigation
v0.3.0: Hardened execution, MCP compliance, and decision traces
A hardening release from a self-review of v0.2.1: six issues closed, an MCP
endpoint that follows the protocol lifecycle, and an operator console that shows
why every decision was made. The test suite grows from 20 to 61 tests.
⚠️ Breaking change
POST /approvals/{approval_id}/decision no longer returns capability_lease or
expires_at. The checker authorizes; only the maker can claim the lease.
# v0.2.1: the checker received the lease in the approval response
# v0.3.0: approve, then the maker claims the lease once and executes
curl -s -X POST "$GATEWAY/approvals/APR_ID/decision" -H "Authorization: Bearer $SECURITY_KEY" \
-H "Content-Type: application/json" -d '{"decision":"approved"}'
curl -s -X POST "$GATEWAY/requests/REQUEST_ID/lease" -H "Authorization: Bearer $OPERATOR_KEY"Highlights
Security fixes
- Unsafe
repo.write_filepaths (traversal, absolute, drive, NTFS stream,
non-allowlisted type) are blocked at policy time, before approval and lease
issuance, instead of after the lease was consumed. - Adapter failures are recorded as
failedexecutions with an HMAC-chained
tool_execution_failedevent. - The SSRF filter catches decimal, hex, octal, and shortened IPv4 literals
(http://2130706433/) and non-global addresses such as100.100.100.200.
MCP protocol compliance
- Version negotiation (
2025-11-25,2025-06-18),202 Acceptedfor
notifications,400for invalid ids and unsupportedMCP-Protocol-Version,
and an honesttools.listChanged: false. - Verified with the official MCP Python SDK 2.3.0 client, which negotiated down
from its own2026-07-28revision. New README section: Connect Your Client.
Separation of duties
- Leases are claimable and executable only by the requesting workload; the
platform-administrator execution override is gone.
Honest attack testing
- The Attack Lab replays rug pull, approval tampering, secret egress, and an
encoded SSRF destination through the real gateway flow on an isolated replica.
Tests prove it fails when argument DLP or execution binding is disabled.
Operator console
- Decision reasons on every row, an expandable per-control trace, and approval
cards that show the tool, justification, and redacted payload. - Attacker-controlled data is rendered as text only, guarded by a test against
HTML sinks; a browser XSS probe injected no elements.
Verification
- 61 tests; CI (pytest and
pip-audit) green on the merged commit. - New tests fail against the pre-fix code; the platform-admin fix was also
checked with a mutation that restores the bypass. - Console exercised in a browser, including phone width.
Known limitations
Production-shaped, not production-ready: static Bearer credentials without
OAuth 2.1 protected-resource metadata, SQLite persistence, and a fixed
in-process execution adapter rather than a proxy to arbitrary MCP servers. The
Claude Code, Cursor, and VS Code snippets follow each client's documented format
but were not individually exercised.
Full changelog: CHANGELOG.md ·
Pull request: #3