Scarlet Sentinel · v0.4.0 · local policy gate

A gate in front of every agent tool call.

Sentinel is a local reverse proxy for MCP agents. It decides which tools exist, binds approval to the exact arguments, and writes a proof of every decision to a log you can verify offline. NZ$490 per node, incl. GST.

Paid pilot available · NZ GST invoice · 30-day refund on licences

An agent’s prompt is not a security boundary.

Shadow tools

An agent can discover a tool the team never approved, or a schema can change after review. The gate holds a registered set and refuses anything outside it.

Approval drift

“Yes” to a file read is not “yes” to a file write. Consent is bound to the canonical arguments, so a swapped path or shell fragment invalidates the approval.

Unprovable logs

A log the agent can rewrite is a story, not evidence. The gate uses a double-entry log and a Merkle root, and fails closed when verification breaks.

Schema, consent, proof, log.

RFC 6962 Merkle tree
  • Register the tool. Each approved tool schema is hashed into a Merkle tree, so the set of tools available to an agent has a single root you can publish.
  • Canonicalise the call. Arguments are reduced to one canonical form. Whitespace, key order and encoding cannot change what was approved.
  • Bind the consent. The operator’s approval is signed against that exact canonical leaf. Change one byte and the consent no longer matches.
  • Check the nonce. Per-tenant monotonic counters reject replays and cross-tenant collisions.
  • Write the proof. The decision lands in an append-only log. Replaying it offline either verifies to the same root or fails closed.

The result is not “the model behaved”. It is “this tool, with these arguments, was approved by this operator, and here is the proof” — checkable without trusting the model or the agent framework.

What the shipped binary passes.

Sentinel v0.4.0 release receiptRuns offline
22/22 tests

The full test suite passes, including five adversarial checks written to break the consent and log paths.

17 unit + 5 adversarial · cargo test --offline

12 stages

The built-in self-test walks every control from hashing to licence enforcement, with no network and no external runtime.

Selftest runs from the packaged binary

0 unsafe
0 Clippy warnings

No unsafe Rust and no hand-rolled cryptography. TLS uses three vetted crates; the policy core is standard library only.

#![forbid(unsafe_code)] · cargo clippy -D warnings

Test counts are from the v0.4.0 release record. A stale v0.3.0 artifact was quarantined rather than silently renamed; the release notes say so.

What it stops — and what it does not.

It enforces

  • Only registered tools with registered schemas.
  • Approval tied to the exact canonical arguments.
  • No replay and no cross-tenant nonce reuse.
  • Offshore egress blocked when local residency is policy.
  • Payload, header-deadline, connection and rate bounds.
  • A verifiable audit trail from genesis to head.

It does not

  • Make a model honest or a prompt safe.
  • Replace identity, IAM or network segmentation.
  • Audit your infrastructure for you.
  • Guarantee compliance with a standard.

One node, one licence, one invoice.

Node licence

NZ$490 incl. GST, one-off

A signed, machine-bound licence for one node. Includes the packaged binary for Linux x86_64, checksums, a systemd unit, the operator playbook and 30 days of support. Enterprise annual and multi-node deployments are quoted in writing.

Request a node licence

Paid pilot

Scoped fixed price

For a team that wants the gate proven against its own MCP servers before a licence. We scope the tool list, the policy inputs and the evidence pack, and quote it before anything is installed. A time-limited evaluation licence is issued inside the pilot, not as a standalone product.

Scope a pilot

Checkout through Creem is being finalised; until a link is live, the buttons open a pre-addressed invoice email and the licence is issued the same working day. No dead checkout is shown.

Before you install

Where does it run?

On your machine or server, in front of the MCP server. It binds to loopback or a private address; binding publicly requires an explicit IP allowlist. No cloud account and no outbound call is required to run the gate.

What does it add to latency?

It is a local HTTP proxy with hashing and a log write. We publish the test receipts but no latency figure yet, so we are not going to quote one.

Can I verify the licence offline?

Yes. Licences are signed tokens verified in-process; the private key never ships in the binary. A missing or edited licence fails closed for serve; offline audit commands still run.

Does it work with any MCP client?

It proxies HTTP MCP servers and is independent of the client or model. Tools are registered from a manifest or the built-in registry, so the gate does not need to understand your agent framework.

Put the gate in front of one server.

Send the MCP server you want to protect, the tools it exposes, and who approves writes. We will reply with a scope and the licence path.

Real agent session against the MCP gate.

Left: a local coding agent calling real MCP tools over stdio. Right: the gate inspecting every call — refusing path traversal, refusing a forged hash write, refusing overlapping hunks, then allowing the hash-matched atomic patch and sealing the session log.