Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/bitwikiorg/continuity/llms.txt

Use this file to discover all available pages before exploring further.

Most agents work fine with state files and a clear scope chain. Recursive agents — agents that spawn sub-agents, delegate tasks across boundaries, or operate within strict resource budgets — need a stronger guarantee. The Advanced tier adds a machine-readable binding contract that defines exactly who is running, what they are authorized to do, how many resources they may consume, and when they must stop. Every binding is finite. Every authorization is explicit. Every checkpoint is logged. This page covers the three Advanced tier files, the full binding lifecycle, and the BINDING.schema.json field reference.

What a binding is

A binding is a finite authorization for a computation. It answers five questions before any work begins:
  • Who is running — the agent’s name, role, and parent agent (if delegated)
  • What they are doing — the objective and the criteria that define success
  • What tools they may use — an explicit allowlist; anything not listed is forbidden
  • What budget they have — seconds, tokens, turns, recursion depth, disk space
  • When to stop — explicit stop conditions that terminate the binding regardless of progress
Without a binding, a recursive agent can drift: consuming unbounded resources, using tools it was never meant to touch, or silently delegating beyond its intended scope. The binding contract makes all of these constraints machine-readable and auditable.

Binding lifecycle

Every binding moves through a fixed sequence of phases:
1

POTENTIAL

The binding exists as a declared intent. The contract is written but execution has not begun. Budget and tool constraints are stated; the agent has not yet acted on them.
2

BIND

The agent accepts the contract. Identity, objective, allowed tools, and budget are locked. Any action outside these constraints is a violation detectable by INIT.md validation.
3

RECURSE

The agent may delegate sub-tasks to child agents. Each child receives its own binding — a narrower authorization derived from the parent. max_depth in the budget limits how deep delegation can go.
4

COMPOSE

Sub-agent results are assembled. Outputs from child bindings flow back to the parent’s context. Composition is explicit — the parent binding declares what it expects from each child via success_criteria.
5

VERIFY

The checkpoint gate fires. Evidence is checked against evidence.required_evidence. If the checkpoint type is manual, a human approves. If scripted, automated checks run. If evidence, output must meet a quality threshold.
6

PERSIST

Verified outputs are written back to state files according to the writeback declaration. STATE.md, ARTIFACTS.md, or any other target receives the result in the declared format.
7

UNBIND

The binding is released. Resources are freed. The event is logged to logs/events.jsonl. The agent returns to an unbound state, ready for a new binding or session end.

The three Advanced tier files

The Advanced tier adds exactly three files to the Full tier. Together they form the runtime contract system:

CHECKPOINT.md

The approval gate. Defines when to pause before irreversible actions. Three gate types: manual (human approval required), scripted (automated structural checks), evidence (output must meet quality threshold). Every trigger and result is logged to logs/events.jsonl.

AGENT_ACTIONS.md

The action reference. Documents the conceptual action vocabulary the agent uses — what each action class is, what preconditions it requires, and what post-conditions it produces. Serves as a contract between the agent’s reasoning and its execution layer.

BINDING.schema.json

The machine-readable binding contract. JSON Schema (draft 2020-12) that validates every binding before execution begins. Fields are documented in full below. Runtime validators use this schema to detect constraint drift, dangling edges, and budget violations before they cause silent failures.

BINDING.schema.json field reference

The schema requires binding_id, who, what, budget, allowed_tools, and stop_conditions. The checkpoint, evidence, and writeback objects are optional but recommended for any binding that involves irreversible actions or multi-agent delegation.

Top-level fields

binding_id
string
required
Unique identifier for this binding instance. Used in logs, audit trails, and cross-binding references. Format is operator-defined; UUIDs or slugs both work.
allowed_tools
array of strings
required
Explicit allowlist of tools this agent may use during the binding. Any tool not listed here is forbidden for the duration. Examples: ["read_file", "write_file", "run_tests"]. An empty array means no tools are permitted.
stop_conditions
array of strings
required
Conditions that terminate the binding immediately, regardless of progress. Evaluated after every action. Examples: ["budget.max_tokens exceeded", "checkpoint failed", "parent binding unbound"].

who object

who
object
required
Identifies the agent accepting this binding.

what object

what
object
required
Declares the objective and success criteria for this binding.

budget object

budget
object
required
Resource limits for this binding. All sub-fields are integers. The binding enters stop_conditions evaluation as soon as any limit is reached.

checkpoint object

checkpoint
object
Configures the checkpoint gate that fires at the VERIFY phase.

evidence object

evidence
object
Declares what evidence must exist before the binding can proceed to PERSIST.

writeback object

writeback
object
Declares where and how the binding’s output is written back to state files at the PERSIST phase.

Example binding

A complete binding for a backend sub-agent delegated to run database migration tests:
{
  "binding_id": "bind-db-migration-2026-06-29",
  "who": {
    "name": "backend-worker",
    "role": "database-migration-verifier",
    "parent": "bind-orchestrator-deploy-2026-06-29"
  },
  "what": {
    "objective": "Run migration tests against staging database and confirm zero data loss",
    "success_criteria": "All migration tests pass; row counts match pre-migration snapshot"
  },
  "budget": {
    "max_seconds": 300,
    "max_tokens": 50000,
    "max_turns": 20,
    "max_depth": 1,
    "max_disk_mb": 50
  },
  "allowed_tools": ["read_file", "run_tests", "query_database", "write_file"],
  "checkpoint": {
    "type": "evidence",
    "triggers": [
      "before any write to production database",
      "before schema-altering migration"
    ]
  },
  "evidence": {
    "required_evidence": ["passing test suite", "artifact in artifacts/"],
    "validation_method": "automated CI"
  },
  "stop_conditions": [
    "budget.max_tokens exceeded",
    "checkpoint type=evidence failed",
    "parent binding unbound"
  ],
  "writeback": {
    "to": "runs/active/STATE.md",
    "format": "markdown"
  }
}

When to use the Advanced tier

The Advanced tier is designed for recursive multi-agent systems. You do not need it for single-agent workflows.
  • Your agent spawns sub-agents and needs to bound their resource usage
  • Actions are irreversible and require a formal checkpoint before proceeding
  • Multiple agents write to shared state and you need ownership boundaries enforced
  • You want CI-level validation that detects constraint drift before it causes failures
  • Delegation depth needs a hard limit to prevent runaway recursion
The Full tier already includes WARNING.md and CHECKPOINT.md is available as a standalone safety gate. The Advanced tier adds BINDING.schema.json and AGENT_ACTIONS.md for teams that need machine-readable contracts and recursive delegation discipline. Most agents do not need this. Add it when your agent actually loops across agent boundaries.

Nesting

How scope chains work — the foundation that binding authority flows through.

Vector Retrieval

Schema validation at the mesh level: CI checks, drift detection, and semantic search.

Binding Schema Reference

Full JSON Schema source for BINDING.schema.json.

Core Tiers

Minimum, Standard, Full, and Advanced — which files belong to each tier.

Build docs developers (and LLMs) love