← work

Current build / active alpha

Latch

A fail-closed security firewall that evaluates AI-agent actions before real-world execution.

Creator & lead developer · Active alpha · Open source

conformance checks
41
official SDKs
3
explicit verdicts
3
desktop OS targets
3
overview

Latch is a protocol-neutral security control plane for AI agents. It intercepts a proposed tool call, normalizes it into one action model, and evaluates it outside the model before the action can reach a shell, file, API, database, local process, or MCP server.

The engine returns one explicit verdict—ALLOW, BLOCK, or REQUIRE_APPROVAL—using human-readable YAML policy, deterministic risk analysis, transport-verified identity, least-privilege capabilities, rolling action budgets, and exact-action approval grants. Errors, ambiguity, unavailable security state, and invalid responses fail closed.

the problem

Modern AI agents can execute commands, read files, call APIs, query databases, deploy software, and invoke MCP tools. Tool visibility controls do not answer whether one specific invocation is safe, authorized for that resource, or part of a runaway sequence.

Latch creates a reusable enforcement boundary at the moment before execution. The agent cannot talk its way around the decision because policy and risk evaluation live outside the model, and protected actions proceed only after an exact valid ALLOW.

my role

I am the creator and lead developer. I designed the Go enforcement core, normalized action and assessment models, policy and risk engines, identity and capability controls, budgets, approvals, audit model, and versioned Enforcement API.

I also built the official Go, Python, and TypeScript SDKs; MCP and HTTP proxies; OpenAI, Anthropic, LangChain, and LangGraph adapters; protected local executors; CI enforcement; cross-platform delivery; and a Next.js developer portal with a real-engine Policy Lab.

architecture

Every integration adapts its native request into the same protocol-neutral action. One engine then evaluates policy, structural risk, identity, budgets, and approvals before the adapter enforces the verdict and records a redacted audit event.

  1. 01

    Agent or application

    An agent proposes a shell, file, API, database, process, framework, or MCP tool action.

  2. 02

    Adapter or SDK

    A proxy, gateway, framework adapter, SDK, or CI gate intercepts the request before execution.

  3. 03

    Action normalization

    Transport-specific input becomes one typed model of identity, tool, operation, resource, arguments, and metadata.

  4. 04

    Security evaluation

    YAML policy, structural risk, verified capabilities, rolling budgets, and approval state are evaluated together.

  5. 05

    Enforced verdict

    Only an exact ALLOW proceeds; BLOCK, REQUIRE_APPROVAL, ambiguity, invalid state, and transport failures stop the action.

engineering decisions

One model across many transports

Protocol adaptation stays separate from security logic, so every integration preserves the same policy and risk semantics.

Trade-off: Adapters must normalize faithfully and prove equivalent behavior through conformance tests.

Whole-batch authorization

Framework batches are fully evaluated before any handler runs, preventing partial side effects from mixed allow/deny results.

Trade-off: One rejected action stops otherwise acceptable calls in the same batch.

Approval without privilege expansion

A grant binds to the action fingerprint, verified agent, approver, expiry, and complete effective policy digest.

Trade-off: Minor changes require fresh review, which is intentionally stricter than a reusable bypass.

Analyze structure, not keywords

Parsers separate executable syntax from strings and comments and share semantics across shell, HTTP, SQL, and filesystem analysis.

Trade-off: Unsupported or ambiguous syntax must become an explicit risk signal rather than a guessed interpretation.

security guardrails
  • Policy is evaluated outside the model and enforced before execution.
  • Invalid input, ambiguity, unavailable state, audit failures, and transport errors fail closed.
  • Deny rules override broad allows, approvals, and unsafe convenience paths.
  • Identity is bound at an operator-controlled boundary rather than trusted from agent metadata.
  • Approvals are exact, temporary, separately authenticated, and invalidated by action or policy changes.
  • Strict parsing, replay defenses, redaction, file locking, atomic updates, and bounded execution protect the enforcement boundary itself.
current evidence

Verified today

  • All Go packages passed their repository test suite on August 26, 2026.
  • The latch.conformance/v1 corpus passed 41 of 41 decision and wire checks across the core engine and major adapters.
  • The Python SDK passed 28 tests and the TypeScript SDK passed 58 tests, with only environment-dependent live tests skipped.
  • The developer portal completed a production build and passed its rendered-route tests.

Not proven yet

  • Latch remains alpha software and is not presented as a mature production service.
  • The v0.2.0 code and package state is ahead of the repository's currently visible Git tags and needs release reconciliation.
  • Production telemetry, operational dashboards, alerting, and reference deployments remain roadmap work.
  • Broader adversarial coverage and feedback from real agent-integration environments are still needed.
what it does
  • Protocol-neutral enforcement

    One normalized Action and explainable Assessment model protects multiple agent frameworks and transports.

  • Deterministic risk analysis

    Structure-aware analyzers inspect shell, PowerShell, CMD, HTTP, SQL, and filesystem actions without executing them.

  • Verified identity & capabilities

    Operator-bound identities and capability ceilings prevent agents from self-asserting authority.

  • Budgets & exact approvals

    Rolling action limits constrain cumulative behavior, while short-lived grants authorize only one action under one policy version.

  • SDKs & enforcement adapters

    Go, Python, and TypeScript SDKs connect the engine to MCP, HTTP, OpenAI, Anthropic, LangChain, LangGraph, processes, and CI.

  • Security-conscious delivery

    Cross-platform releases include checksums, SBOMs, provenance, attestations, a non-root container, and multi-platform CI.

next engineering milestones
  1. 01Add production observability, operational dashboards, and security alerting.
  2. 02Publish reference deployments for common agent and gateway architectures.
  3. 03Expand adversarial and cross-adapter regression coverage.
  4. 04Collect integration feedback from real agent-development environments.
  5. 05Reconcile release tags and package versions for the next public milestone.
details
Built with
Go · Python · TypeScript · React · Next.js · YAML · OpenAPI
Integrates
MCP stdio & Streamable HTTP · OpenAI-compatible APIs · Anthropic Messages · LangChain / LangGraph · HTTP APIs · GitHub Actions
Platforms
Linux · Windows · macOS · Docker

Open-source under Apache 2.0 and actively developed as alpha software. Latch is an execution-boundary control, not a prompt-injection detector.