Latch by Sundrylab.ai

Authorization for AI agents

AI agents stopped talking and started doing.

Every tool an agent calls and every model it reaches for goes through one set of rules, and gets back one of four answers in milliseconds. Latch decides. Your traffic never passes through it.

Tool calls and model hops, one set of rules

live example
Your agent proposes
payments.refund
order ord_5521 · $89.00
tool call
Latch
Allowroutine for this role
Denyoutside its remit
Escalatea person confirms first
Reroutea safer action instead
Decided by policy. No model in the path Recorded: who, what, which rule, when Metered: one decision, one unit Beside your traffic, not in front of it

One question, four answers.

Before a consequential action runs, the agent asks. The answer is one of four verbs.

How the question is put

Structured, not prose: kind, name, args, plus the agent's own state. There is no sentence to interpret and nothing to talk the gate out of. The caller branches on the verb it gets back.

Allow

A rule matched and permits it. The action proceeds, and the decision is on the record.

Deny

A rule forbids it. The tool never runs. The block happens before the side effect.

Escalate

It is plausible, but it matters enough that a person should confirm it first.

Reroute

The action is reasonable but the route is not. Latch names a safer one to take.

If Latch cannot answer, the answer is no.

No rule, a degraded engine, a missed deadline. In each case Latch denies rather than guessing, and says which it was.

Why nothing slow sits in the path

The promise only holds if answering is fast, so the decision path evaluates policy and nothing else. No model runs on the request. A hosted one would put a third party's outage inside your safety guarantee, and its latency inside your budget.

Policy decision
~2 ms
Budget
50 ms

Turn it on and it blocks nothing, until you say so.

In shadow mode Latch answers every proposal and enforces none of them. Your agent carries on exactly as before. What you get is a week of real decisions showing what would have been stopped, and who would have complained.

You read that, fix the rules that were wrong, and turn enforcement on when the report is boring. Nobody has to take the gate on faith.

Then it gets better at its job.

Every gap a person closes becomes a rule. The gate covers more each week, and never gets slower for it.

01DecidePolicy answers in milliseconds. The row is written before the action runs.
02ObserveWhat happened next comes back: accepted, rejected, or overridden by a person.
03ScoreShapes with no rule get a second opinion from the AI engine, off the hot path.
04WeighIts verdict is checked against what the humans actually did.
05SuggestA recurring gap becomes a drafted rule with its evidence attached.
06PublishA person reads the evidence and decides. The gate is faster and stricter next time.
Decide Observe Score Weigh Suggest Publish
A decision arrives
Covered by a rule17 / 24
Still failing closed7
Rules published5

The humans are the ground truth

A second opinion disagreeing with policy proves nothing on its own. An override, where a person reverses the gate, is what settles who was right. It is the only thing the loop learns from.

It never grades its own work

The model's earlier verdicts are never used as evidence for its later ones. Without that rule it ends up agreeing with itself.

Nothing publishes itself

A suggestion arrives as a draft with its evidence and its lint result. It becomes policy when a person decides it should, and not before.

Improvement lands in the fast path

Once published, the new rule is evaluated like any other, in milliseconds, with no model involved. The learning happens away from the request. Only the result shows up in it.

Latch is authorization for AI agents: the answer between deciding and acting.

Sundrylab.ai · hello@sundrylab.ai

Latch

Authorization for AI agents

Decisions, policy, keys and break-glass for your agent estate.

Sign in with a management token

Optional. Needed to publish policy, mint keys, or arm break-glass. Held on the server for this session only. It never reaches this browser and is not stored.

Session only. This browser never receives a Latch API key.

Latch

Set your password

Checking your link…

Latch

Observe

Govern

Connect

Reference

Overview

Overview

What the control plane decided in this window, and what needs a person.

Custom range

Outcomes

Needs attention

Latest decisions

The most recent decisions
RecordedOutcome ProposalContextReported
Recorded decisions, newest first
RecordedOutcomeProposal ContextReportedOpen

One tree is one task. The agent that started it comes first, and anything it spawned is indented beneath, in the order the decisions were recorded.

Billable unitdecision
Decisions by your agents—
The demo—
RoleEnvDecisionsShare

Shadow and enforce both count. Outcome posts and reads are not billable. A decision the SDK produced locally while Latch was unreachable was never recorded and is not counted.

Shapes with no rule—
Decisions behind them—
Scored—
Engine disagreed—

ProposalRoleEnv SeenPolicyAI engine ConfidenceReported

Suggested rules

Drafts. Publishing is yours.

Calibration

BandLabelled Engine matched the humanPolicy matched the human

Decisions policy had no rule for, plus the ones it escalated, grouped by proposal shape so repeat traffic is one entry. The AI engine is asked after the fact and never on POST /v0/decisions; no answer here changed any decision that already happened. A disagreement is a candidate rule for a human to write, not a rule.

The frozen enum. Clients branch on action and enforced, never on these strings.

CodeConsole labelMeaning

Lab build. Every step below sends a real, billable decision against the configured lab role, and lands in the audit log.

Draft a new scenario
The model writes what the agent tries. Your policy still decides every step.

Lab build. Each check is a real, billable decision against the configured lab role.

Mode

Try something this policy has a rule for

Arguments

What the agent would pass to the tool.

Agent state optional

What the harness knows about the run: counters, the task, the user. Rules can read it as state.….

Policy scopes
RoleEnvActiveVersionsOpen

Select a role and env above to see its rules and change them.

Rules

Tried in order. The first rule that matches decides, so a restriction has to sit above anything that would allow the same thing.

Add a rule
Only when an argument matches

The argument name has to match what your agent actually sends. Latch never records argument values, so nothing here can check it for you.

Describe a rule instead

Say what you want in plain language. Anything new is offered for you to add; nothing is published.

Publish

A published version is immutable, and publishing does not activate.
Advanced: the document as JSON

            
API keys
KeyStateCapabilityRolesEnvsLast usedActions

Mint a key

The token is shown once and never stored.

What it is for

Roles it may act for

Environments

Break-glass turns a fail-closed decision into an allow. It cannot loosen a matched deny, escalate, or reroute. Every grant expires.

Break-glass grants
EnvRolesExpiresReasonArmed by

LatchOn

Only an admin can switch LatchOn on or off. Ask one to switch it on.

Business rules only restrict. A rule can block an action, stop it for approval, or send it somewhere safer; it can never allow what role policy denies. A rule in Monitor is recorded but decides nothing.

Business rules in force
RuleModeFacts the agent must sendMessage to the agent

Published versions

In prod, the person who published a version cannot also switch it on. A second rules approver does.

Draft

Build rules from your terms. Check reads each rule back as a sentence and runs its examples. Nothing changes until the draft is published and switched on.

Import rules from a document

Paste the part of a policy document that holds the rules, or choose a file (.txt, .md or .docx). The AI engine proposes rules in your terms only; you pick which go into the draft, and every one starts in Monitor.

Advanced: the draft as JSON

Terms

The words rules are written in, and the tools each one covers. Engineering keeps these; a term marked from the agent is a fact the harness sends with every call.

Management activity
WhenWhoWhatResult

Who is the person signed in to the console, and the key their change went through. A change made with an API key directly shows the key alone.

Users are kept in memory on this deployment. A restart forgets every account and brings the shared passcode back. Set CONSOLE_USERS_PATH to a mounted volume.

Add a person

What they may change

Everyone can view. Leave every role off for view-only access.

Console users
PersonRolesStatusLast sign-inActions

Recent changes

    Generate a latch-mcp gateway config. It runs in your environment. Latch never speaks MCP and keeps no record of which servers you run.

    Gateway

    Upstreams

    The name is the stable policy prefix: a tool becomes name.tool. Renaming a server internally then does not move your policy.

    Not in this console