As of November 17, 2026

What shipped

LEANGUARD (arXiv 2611.02332, November 2026) is a runtime guardrail for tool-using language-model agents: an intermediate layer that checks every proposed tool call against a policy written in Lean4 before the call reaches the environment. Where the paper is distinct is what "policy" means here: Lean4 predicates over agent state, plus scoped past-time temporal operators that can reference the execution history — "this write may only happen after that read has succeeded" expressed formally rather than in prompt text. Evaluation is fail-closed, and the decision procedure is itself proven equivalent to a LeanLTL semantics, so the runtime's behavior is a theorem rather than a code review.

Denied calls have two recovery paths. The first is feedback: the agent receives the specific violated rule plus a hint and can retry. The second is proof-guided repair: Lean metaprogramming searches for a nearby tool-call formulation that preserves the user's intent, and proves the policy admits it — with no language model in that loop. The agent gets a corrected call back instead of a dead end.

Measured results, across two benchmarks. On Tau-Bench, running five Qwen models from 0.8B to 27B: unguarded agents executed at least 33 calls their Lean policy forbade; LeanGuard executed zero; with feedback enabled, task success did not change significantly. On DTap, direct prompt-injection success fell from 57.9% to 5.9%, and in the telecom configuration — where benign tasks require no writes — benign task success was unchanged. The replay experiment prices the repair path: for 252 denials caused by argument values, proof-guided repair admitted an edit for 88, in a median of 2 ms.

The paper sits in the same November 2026 wave as SPILLWAY (2611.07222, covered in this scan's 05 finding), which is a complementary layer rather than a competitor. SPILLWAY is a deterministic target-admission floor — it checks where an action goes against typed tool returns and refuses targets that only exist in free text. LeanGuard is a machine-verified policy runtime — it checks whether an action, wherever it goes, violates a stated rule of engagement, and can mathematically repair the action. Both keep the model out of the safety-critical decision. Deployed together, the two cover an agent's main harm channels: destination attacks (SPILLWAY) and procedural violations (LeanGuard).

Why it matters

The runtime-guarantee class is moving from papers to deployable layers, and LeanGuard's contribution is the repair path. Block-only guardrails create the operational problem that killed earlier adoption attempts: a denied high-value call with no path forward trains operators to weaken policies or abandon the guardrail. A guardrail that provably fixes the call — intent-preserving, policy-admitting, 2 ms median — is a materially better offer, because the policy can stay strict.

The formal-methods angle matters for anyone whose buyers bring auditors into the room. "Fail-closed runtime, decision procedure proven equivalent to specified semantics, repair justified in Lean" is the kind of claim a compliance process can check independently — unlike any prompt-injection prompt or classifier threshold. The DTap numbers (injection success down to 5.9% at unchanged benign success) answer the usual objection that guardrails degrade good work.

The honest limits: the evidence is five Qwen models on agent benchmarks chosen by the authors; 88 of 252 argument-type denials were repairable, which means 164 needed human or agent feedback; and nobody has yet published an independent reproduction on a different model family. Treat it as a promising architecture with verifiable internals, not a finished product.

How to evaluate or adopt

  1. Get the paper and the semantics first (arXiv 2611.02332), and read the LeanLTL equivalence section before anything else — the whole value proposition rests on the decision procedure being a proven property, not a heuristic.
  2. Prototype the feedback path, not the repair path, when adapting: write policies for your agent's real write-actions (file writes, payments, sends) as Lean4 predicates with temporal operators on history, run against Tau-Bench-style replays of your own logs, and measure two things LeanGuard reports — forbidden calls executed (target: zero) and benign success (target: unchanged).
  3. Consider the pairing for high-stakes agents: SPILLWAY at the destination layer (pip install spillway-guard, recipes for LangChain/OpenAI SDK/MCP/Claude Code) and a LeanGuard-style policy runtime at the action layer. They intercept different failure classes, and neither requires trusting the model's self-reports.
  4. Watch for reproduction work on non-Qwen backbones before standardizing on it — the repair-rate number (88/252) is the figure most likely to move.

References