Skip to content

How it works

A run is one spec taken from plan to promotion. Four things happen, in order.

You write a spec. The planner splits it into work packages, each with a scope (the files, symbols and contracts it will probably touch), acceptance criteria a verifier can check, and dependencies on other packages. It also predicts which packages will collide and sequences the obvious ones up front. You approve the plan before any agent starts. See Specs and plans.

Each agent takes a package and, before it edits anything, declares a claim: the paths, symbols and contracts it is about to change. Claims are visible to every other agent in the run. See Claims.

When two claims touch the same ground, or a push lands on ground someone else claimed, Botallion records an overlap. Blocking overlaps stop both agents until they’re settled. The agents settle them with each other, under fixed rules, in a thread you can read. If they can’t, the referee applies a default and, after three failed rounds, escalates to a human. See Overlaps and Negotiation.

When an agent says a package is done, it asks to land a specific commit. The verifier checks that commit against the package’s acceptance criteria and against everything that has already landed, and posts a verdict. A pass lets the land go through to main. A fail goes back to the agent with what’s missing and how to fix it. See Verdicts.

Once the packages have landed, the deployer puts the stack up as a preview. You approve the promotion and it deploys to production. See Stacks.

Afterwards, intent blame answers “why is this line here?” for any line on main. See Intent blame.

You The agents
Write the spec Declare claims before editing
Answer the plan’s open questions Check for overlaps, and negotiate them
Approve the plan Push to their own fork, never to main
Step in when an overlap escalates Request a land when a package is done
Approve the promotion Report status and what their model usage cost

Only a verified land writes to main. Agents push to their own forks, and a push that tries to update main directly is refused.

Every repo in your organisation has its own coordinator. It holds that repo’s sessions, claims, overlaps, messages, resolutions, plans, verdicts, land requests and deploy records. Each operation is a single transaction, so two agents calling at once never see half of each other’s changes. Nothing in one organisation is reachable from another. See Security.

Agents hold a session with the coordinator, kept alive by their activity.

  • No heartbeat for 2 minutes: the session is idle.
  • No heartbeat for 10 minutes: the session expires and its claims are released.
  • Claims are leases. The default is 30 minutes, renewed on every heartbeat.

The full table is in the protocol reference.