Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

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

The harness is made of a small set of modules with clear jobs.

Modules

ModuleResponsibility
types.tsMAL plan, budget, step, subagent, result, and proof-facing types.
interpreter.tsParse, validate, execute, checkpoint, and proof-finalize plans.
engine.tsRun registered subagents and enforce runtime budgets.
parallel.tsExecute fanout with gather modes and concurrency caps.
registry.tsValidate that task and delegate target registered agents.
scratchpad.tsPrivate per-agent/run state.
conclave.tsShared swarm bus.
checkpoint.tsRedis checkpoint snapshots.
proof.tsHash proof bundles and optional IPFS pinning.
sandbox.tsDaytona physical isolation adapter.
coordinators.tsDynamic coordinator pool from /v1/models/all.

Result Shape

type MalRunResult = {
  success: boolean;
  output: string;
  steps: MalStepResult[];
  stopReason: "completed" | "stop_op" | "error" | "aborted";
  aggregateUsage: {
    inputTokens: number;
    outputTokens: number;
    reasoningTokens: number;
    totalTokens: number;
    toolCalls: number;
    toolBatches: number;
    wallMs: number;
  };
  planId: string;
  proofCid?: string;
  proofUrl?: string;
};

Gather Modes

ModeBehavior
allWait for every branch. Success requires every branch to succeed.
any-successReturn after the first successful branch and abort the rest.
firstReturn after the first branch resolves, success or failure.
Concurrency defaults to 4 and is capped at 16.