← Lab /AI/ML

Explicit contracts prevent harmful effects in composable LLM agents

CONTINUITY guarantees that no harmful external effect occurs despite attacks on LLM agent components

AI/ML arXiv 4 Sep 2026 Method Prototype evidence Threat model

Published as “CONTINUITY: Security-Context Contracts for Composable LLM Agent Controls”

Why it matters

Continuity shows that composable, contract-driven controls can provide strong end-to-end security guarantees for LLM agents, but only under the assumed trusted-computing-base and deterministic fault model.

Summary

Continuity prevents every harmful effect in a deterministic benchmark of 2,560 attack instances, covering all 128 modeled fault-domain classes, while still completing all benign tasks and correctly escalating ambiguous ones. The strongest incomplete configuration (Gateway+Finality) still allows a harmful effect in 65.6% of attacks, showing the importance of the full contract suite. Median verification time is 4.21 ms and full end-to-end processing costs 7.17 ms per request. The results are deterministic conformance under an explicit trusted-computing-base model and do not claim real-world attack probability.

What they found 3

  1. The full Continuity system commits no harmful effect in the entire attack suite.

    “Continuity commits no harmful effect in 2,560 attack instances and contains every one of the 128 fault-domain classes.”

  2. An incomplete configuration (Gateway+Finality) still allows attacks in roughly two-thirds of cases.

    “The strongest incomplete configuration, Gateway+Finality, still has 65.6% effect ASR.”

  3. Proof verification and full processing incur sub-10 ms latency on the test host.

    “Median proof verification is 4.21 ms and median end-to-end transition production, verification, permit issuance, and finality is 7.17 ms on the recorded host.”

Caveats 1

  • These are deterministic conformance results under an explicit trusted-computing-base model, not an estimate of real-world attack probability or a claim to solve semantic correctness.

What’s new here 4

  • Defines the security-context discontinuity class for LLM agent pipelines.
  • Introduces an assume-guarantee contract model that ties root grants, provenance, typed releases, transformation witnesses, and finality permits together.
  • Implements a reference system (Continuity) that enforces end-to-end consequence integrity across multiple independent controls.
  • Evaluates a deterministic conformance suite covering 32 fault classes across four domains, demonstrating full coverage only when all contracts are present.

Threat model stated by the source

AdversaryControls all natural-language and structured content supplied by external web pages, emails, documents, tool responses, and remote agents; can cause the planner to emit arbitrary operations and exploit compromised non-root pipeline components.
CapabilityCan cause arbitrary action proposals, forge signatures only with compromised component keys, reorder, truncate, substitute, replay, mutate actions, invoke alternate effect paths, and present stale policy or revocation state. Cannot break SHA-256 or forge Ed25519 signatures of uncompromised keys, cannot directly modify verifier or finality-sink code, nor bypass OS isolation of the TCB.
AssumesSignature schemes are unforgeable and hash functions collision-resistant.; The TCB components (ingress, root-grant issuers, provenance, release validators, verifier, finality sinks) are correctly configured and their keys are trusted for their assigned roles.; Policy, revocation, and nonce state are current and correctly enforced by the verifier and sinks.