← Back to Research

Safety & Verification · Cryptographic Control Planes

Fail-Closed Policy Gates & Verifiable Agent Provenance

Agents running local or networked tools fail in predictable ways: they mistake superficial text checks for real completion, mutate stale files, or swap payload arguments after human approval. Safety cannot rely on polite system prompts — it has to live in the boundary proxy.

1. The Completion Signal Problem

In iterative agent loops, models reliably exhibit reward-hacking around exit criteria: reporting "tests look good" without running them, emitting stub code to satisfy syntax checks, or writing past stale file contexts. Exit criteria are falsifiable by design: no step counts as complete unless an external deterministic check produces a matching artefact hash or exit code.

2. Cryptographic Tool Boundaries (Inside Scarlet Sentinel)

To give IT teams and developers hard guarantees around Model Context Protocol (MCP) tools, our reverse proxy gate applies five deterministic invariants before any upstream tool runs:

3. Optimistic Hash-Locked File Edits

At the developer-tool layer (Crimson Codex), the same anti-guessing rule applies to file edits: an agent must present the content hash of the span it actually read before a patch is allowed to commit. If another process or human modified the file underneath, the edit refuses loudly with both hashes rather than blindly clobbering bytes.

Inspect the Live Implementation

Explore the interactive 12-stage cryptographic self-test matrix on the product page.

Explore Scarlet Sentinel