← Lab /AI/ML

Proof-Carrying Contracts ensure agents cannot violate agreed constraints

Agents can be forced to provide machine-checkable proofs that they always preserve specified constraints

AI/ML arXiv 20 Oct 2026 Method Theory

Published as “Proof-Carrying Contracts: Commitments AI Agents Cannot Break”

Why it matters

If proof generation can be automated at acceptable cost, PC2 could enable trustworthy delegation of AI agents without requiring trust in the agents themselves.

Summary

PC2 guarantees that, under its stated assumptions, contract clauses hold at every instant for any agent, even malicious ones, and settlement can occur automatically once the goal is proved. The paper proves these guarantees formally (Thm. 1, 2, 5) and provides a Lean 4 mechanization. However, the authors note that finding the required proofs can be computationally hard and that writing precise contracts is a substantial effort, which may limit practical deployment.

What they found 2

  1. The contract clauses hold at every instant for any sequence of requests and proofs, even with malicious agents.

    “Under the stated assumptions, from the moment the contract starts, the clauses hold at every instant for arbitrary requests and proposed proofs (Thm. 1).”

  2. Settlement can be authorized solely by a proof of goal achievement, without further client approval.

    “For the standard contract, settlement requires proof of the goal, an authorized settlement request requires no further client approval, and the contract otherwise ends as agreed (Thm. 2).”

Caveats 3

  • Conservative models and difficulties in finding proofs can still prevent safe calls from executing (Sec. 4.1 and 8.2).
  • Writing a formal contract that captures the parties’ intentions is itself a substantial task.
  • Finding it may require substantial search even when checking it is straightforward.

What’s new here 4

  • Enforces contract constraints per tool call via machine-checkable proofs rather than static permission policies.
  • Provides formal guarantees that hold for arbitrary agents, including adversarial ones, without needing to trust the agent's internal reasoning.
  • Introduces reusable capability modules that package tool models and guarantees for constructing contracts.
  • Implements the framework in Lean 4 with an open-source Airlock sandbox for proof checking.