Open a production agent codebase and inspect what sits directly downstream of an LLM call. You’ll almost always see a check — a JSON parser, a Pydantic schema, a non-empty assertion — and it’s easy to walk away thinking the boundary is guarded.
In When Code Becomes an LLM Call (Weng et al., Oct 2026 preprint), researchers audited 496 LLM call sites across 40 open-source agentic systems (13.4 million lines of code) and found the opposite. Nearly half (48%) of LLM outputs directly drove program control flow or execution, and 73% of those ran with zero human review. Programs structurally enforced 78% of code-side constraints, yet left 67% of prompt-side constraints as bare natural-language requests.
Most telling was what the authors call the Post-Condition Illusion: 82% of call sites ran some post-check, yet 63% of expected constraints went unmet and only 5.3% satisfied their full contract. Agreement across independent raters who didn’t see the surrounding code was ≥0.95, and minimal code-enforcement patches blocked every evaluated runtime exploit trigger.
That 5.3% figure explains why Wave 3 split runtime enforcement out from offline evaluation and turned it into its own formal-methods and systems track. If you can’t rely on prompt wording or partial JSON parsing at the call site, what can runtime monitors, temporal contracts, type-and-effect systems, and staged commit contracts actually guarantee over probabilistic agents — and where does each layer stop?
Seven core 2026 systems, bracketed by three boundary results, map the runtime enforcement stack: decoupling the event bus, running temporal specs over traces, testing why probabilistic approval quorums collapse without deterministic rules, and pushing verification down to staged persistent state and mechanized capability calculi.
Minimal code checks at a single LLM call site close raw parser exploits, as Weng et al. showed, but the moment you monitor multi-step tool sequences you hit a plumbing problem: agent frameworks (LangGraph, MCP, A2A) interleave proposals, retries, and completed tool calls in ways that easily corrupt naive stateful monitors.
If a monitor watches a stream of tool requests and blocks an unauthorized delete_record call, what should the monitor’s own state machine record? If it advances its automaton as though the deletion happened, a single rejected proposal permanently poisons every downstream temporal check.
AgenticRV (Angelo Ferrando, Oct 2026 preprint) tackles that seam directly with a formalism-agnostic runtime-verification bus that decouples framework event adapters from heterogeneous monitors. AgenticRV explicitly separates rejected execution attempts from completed effects on the event stream so blocked tool requests don’t corrupt monitor state. On an Apple M3 Pro running LangGraph, the bus itself is cheap: +413.6 μs for first-monitor dispatch (1.333 ms full guarded call), +868.8 μs across 8 monitors, and 76–86 μs for JSONL audit logging, and blocking a call is 144.2 μs faster than letting it through.
Microsecond bus overhead removes the “runtime verification is too slow” excuse. It doesn’t tell you what specification language to run on that bus, or whether the specification sees the ground truth.
Once you have a clean event stream, two 2026 monitors bring classic runtime verification (first-order temporal logic and finite automata) onto agent traces, from opposite ends of the grounding problem.
DejaVuGuard (Cohen, Havelund, Omer, and Peled, RV 2026, Springer LNCS) runs an inline two-phase monitor over conversational policies. First, a local grounding LLM (Ministral-3-8B) extracts structured predicates, entity IDs, and quantities from natural-language turns; then an extended DejaVu symbolic engine evaluates first-order past-time Quantified Temporal Logic (QTL) policies using binary decision diagrams (BDDs). Across 500 scripted conversations (3,669 messages) spanning 5 policy families, DejaVuGuard reached 90.5% scenario accuracy and 98.6% per-message verdict accuracy (the Springer LNCS proceedings are paywalled, so I couldn’t check latency tables). The BDD engine is symbolically exact only over the grounded event stream: whenever the local grounding LLM mis-extracts a predicate or entity ID, the formal engine faithfully verifies the wrong fact.
ContrAgent (Xiao, Liu, and Nuzzo, UC Berkeley / Sponsio Labs, Sep/Nov 2026 preprint) skips natural-language grounding by targeting fixed tool-call predicates directly. It compiles model-independent LTL<sub>f</sub> assume-guarantee contracts into deterministic finite automata (DFAs) that gate tool invocations online in milliseconds and audit traces offline across SOPBench, AgentDojo, R-Judge, and τ²-bench. On R-Judge, ContrAgent achieved 91.8% F1 (97.0% precision, 87.0% recall), outperforming both GPT-4o (74.4% F1) and the human baseline (~89%).
Both monitors beat free-form LLM judges because the temporal decision procedure is deterministic once events are typed. Both share the same hard boundary, too: they inspect dialogue turns or tool-call requests, not the persistent state those tools actually mutate. A tool call whose arguments match the DFA contract can still trigger an unexpected write inside a backend database or an undocumented side effect downstream.
When policies can’t easily be reduced to fixed tool predicates, teams often try a seemingly sensible fallback: put an ensemble of LLM approval monitors in front of sensitive actions and require a quorum vote.
Correlated Failures of AI Approval Monitors (Luca Zanolini, Oct 2026 preprint) applies distributed-systems fail-prone systems theory to show why vote-counting across LLM approvers is a false comfort.
Counting independent evidence sources beats voting LLM judges ~8x on false blocks — and no pure-LLM quorum survived every attack.
Zabolotnii’s Trust Is Not a Score (Sep 2026 preprint) makes a complementary point, arguing for non-compensatory fail-closed gates over weighted risk scores: if a single hard invariant fails, high confidence on three other dimensions shouldn’t average it back into an approval. Together, Zanolini and Zabolotnii mark the limit of probabilistic monitors: LLM judges can triage ambiguous signals, but safety boundaries need independent evidence channels and deterministic fail-closed rules that prompt content can’t talk past.
Even a deterministic DFA or an unpersuadable approval rule engine still only checks what the agent proposed to do, not what actually changes in persistent state. The next step moves verification from the call request down to the staged database commit — and to mechanized proofs over the capability plumbing itself.
Run agent tool calls inside a rollback-capable PostgreSQL candidate transaction and diff the actual state writes against single-use permits before commit.
EffectMatch crosses a line that tool-call monitors like ContrAgent can’t. Even if a buggy tool wrapper or multi-step SQL sequence tries to mutate an extra table, the candidate-transaction diff sees the real persistent write and rolls it back before commit. Its limits are just as concrete: it requires a transactionally stageable backend like PostgreSQL, locking registered relations creates contention under concurrent multi-agent fleets, and non-transactional external side effects (webhooks, emails, payment rails) still sit outside the database transaction boundary.
At the static-verification end, Hard-KLAIM (Aldinucci, Bracciali, Colonnelli, Medić, Mulone, Roversi, and Santimaria, JLAMP, Elsevier, 2026/2027) extends the KLAIM process calculus with a locality-aware type-and-effect system for MCP workflows split into three explicit phases (proposal → commitment → execution). The authors mechanize trace-safety proofs (provenance and authority confinement, capability non-amplification, and boundary fidelity) in Rocq (JANJI-ROCQ). It’s a purely formal, paywalled journal paper with zero runtime benchmarks, and by design it’s blind to whatever happens inside the LLM’s weights; what it buys is machine-checked assurance that the plumbing between localities can’t silently amplify authority.
Two companion preprints show the cost of tightening formal harnesses in practice:
| System | What It Enforces Over | Key Verified Evidence | Where Enforcement Stops |
|---|---|---|---|
| Call-Site Audit | Code–LLM boundary in OSS agents | 496 sites / 40 repos (13.4M LOC): 82% have some check, only 5.3% meet full contract | Diagnostic audit + minimal patches on evaluated triggers, not a universal runtime |
| AgenticRV | Framework event bus (LangGraph/MCP/A2A) | Separates rejected attempts from effects; +413.6 μs first monitor, 1.333 ms guarded call | Transport/event decoupling only; semantic guarantees depend on attached monitors |
| DejaVuGuard (RV '26) | Dialogue turns via local LLM + QTL BDDs | 500 scripts / 3,669 msgs: 90.5% scenario acc,98.6% message verdict acc | Paywalled (no latency data checked); grounding LLM errors break end-to-end soundness; no DB view |
| ContrAgent | Tool-call traces via LTL <sub>f</sub> DFAs | R-Judge 91.8% F1 (97.0% precision, 87.0% recall), beating GPT-4o (74.4%) and humans (~89%) | Bounded by predicate vocabulary; checks tool requests, not hidden backend writes |
| AI Approval Monitors (Zanolini) &Trust Is Not a Score | Multi-monitor approval quorums & fail-closed gates | Independent sources cut false blocks 7.4% → 0.9% ; pure-LLM quorum failed worst-case attack; deterministic rule engine + non-compensatory gates restore safety | Deterministic rules only cover invariants expressible over structured fields |
| EffectMatch | Staged PostgreSQL persistent state | 206 DB/business tasks: 100% clean preserved,100% tested unapproved commits blocked | Needs transactional DB; relation locks add contention; external webhooks/emails stay outside; plan edits hit revision-contract reuse limits |
| Hard-KLAIM (JLAMP) | Typed MCP proposal/commit/exec calculus | Rocq-mechanized confinement, non-amplification, and boundary-fidelity proofs | Purely formal (no runtime benchmarks); blind to internal LLM reasoning; strict formal harnesses carry capability taxes (e.g., L3M ~27.0% vs. ~41.7%–43.2%) |
Once the input itself is adversarial, monitoring cooperative specifications stops working. You have to move security enforcement completely out of the model and onto the execution boundary.
Next up: intent-scoped capabilities, information-flow control, transactional OS confinement, and the poisoned-memory wall.