Home / Concepts

What is a run contract for an AI agent?

A short written agreement that sets what an agent may change, what it may never do, and what proves it is finished.

A run contract is written before an AFK run starts. Mine has six parts: scope, permissions, permanent fences, a budget, stop conditions and exit tests. They sit in two documents. The slice spec is the plan. The kickoff prompt starts the run and points at the spec.

Scope says what the run is for. Permissions say what the agent may change. Fences are the actions that always stop the run. Exit tests are the observable conditions that mean the work is complete.

It also separates choices that can be undone, which the agent may make alone, from decisions only I make.

Lessons that use it

Try “secrets”, “merge”, “handover” or “database”.