Topic hub · Contracts

Prompts state intent. Contracts enforce it.

A prompt asks an agent to behave; nothing checks that it did. Contracts state preconditions, invariants, governance policies and recovery, check them at runtime, and give each decision a typed answer and a receipt.

3 tools2 papers6 posts

Tools

What to run.

Contracts

AgentAssert

Design-by-contract for agents: preconditions, invariants, governance and recovery checked at runtime, so a violation is caught at the step that caused it.

CodeAGPL-3.0

Contracts

AgentAssert Type-C

Behavioural contracts with no agent code changes: an HTTP proxy that enforces budgets, latency, tool allowlists, topic bounds and PII filters.

CodeMIT

Decisions

Jev Decision Layer

Typed task, tool, skill and review routing for agents, with local policy gates and an auditable receipt for every decision.

CodeMIT

Research

The papers.

arXiv:2602.223022026-02-25Preprint

Agent Behavioral Contracts: Formal Specification and Runtime Enforcement for Reliable Autonomous AI Agents

Design-by-contract for agents — invariants that hold on every execution path. 1,980 sessions across 7 models

arXiv:2608.128952026-08-13Preprint

Agent Behavioral Contracts II: Certifying Compositional Reliability Without Assuming Independence

Two instances of the same model failed together on 90% of missions where either failed — independence is not a safe assumption

Glossary

Terms you'll meet.

Behavioural contract

Design-by-contract applied to an autonomous agent: formal, runtime-enforceable rules about what it must and must not do, with recovery when it drifts.

Contract components (P, I, G, R)

The four parts of an agent behavioural contract: preconditions that must hold before the agent acts, invariants that must hold throughout, governance policies, and recovery mechanisms for when a constraint is broken.

Failure independence assumption

The common but rarely tested assumption that agents in a system fail independently. Measured dependence is strongly positive, so bounds built on it understate joint failure.

Contract proxy

An HTTP proxy between an agent and its model provider that enforces contract rules, such as budgets and tool allowlists, with no change to the agent's code.

Typed decision

A bounded choice, such as which tool or skill to use, answered from a fixed set of options with a confidence and a local receipt. The host keeps execution authority.

Writing

Posts on contracts.