Indaba

The workflow file

A workflow file is the YAML document Indaba executes: roles, steps, guards and retries. By convention it is called workflow.ai.yml, and indaba looks for .indaba/workflow.ai.yml when you give no file.

This is not the workflow.ai.yml at the root of the Indaba repository. That one is the development workflow of Indaba itself, with a different schema, and no indaba command reads it. Given one by mistake, validate adds this looks like a development workflow (stages, governance), not an Indaba workflow: see docs/workflow-format.md.

The format version is "1.0". Run indaba validate <file> to check a file; it lists every problem it finds at once, each prefixed with its path in the document, for example $.steps[1].isolation "copy" is not supported or step "verify" depends on unknown step "code2".

The file must be one YAML document, parsed with the YAML core schema (no custom tags) and with unique keys: a duplicate key is an error.

Writing a tool that reads or writes these files (an editor, a form, a wizard)? See For tools that write workflow files.

A complete example#

version: "1.0"
name: "indaba-task-pipeline"

artifacts:
  spec: ".indaba/artifacts/spec.md"
  patch: ".indaba/artifacts/change.patch"

roles:
  architect:
    runner: "openrouter"
    model: "anthropic/claude-3.7-sonnet:thinking"
  implementer:
    runner: "claude-code"
  reviewer:
    runner: "antigravity"

steps:
  - id: "rfc"
    role: "architect"
    goal: "Prepare technical specification in ${{ artifacts.spec }}"
    outputs: ["${{ artifacts.spec }}"]
    guards:
      - type: "git_diff_empty"
        paths: ["src/", "tests/"]

  - id: "code"
    depends_on: ["rfc"]
    role: "implementer"
    input_artifacts: ["${{ artifacts.spec }}"]
    goal: "Implement changes satisfying the technical specification."
    isolation: "git_worktree"

  - id: "verify"
    depends_on: ["code"]
    runner: "shell"
    commands:
      - "pnpm test"
      - "pnpm typecheck"
    on_failure:
      action: "retry_step"
      target: "code"
      max_retries: 3

  - id: "debate_review"
    depends_on: ["verify"]
    role: "reviewer"
    consensus_with: ["architect"]
    decision_type: "consensus"

This is examples/task-pipeline.workflow.ai.yml; examples/mcp.workflow.ai.yml shows MCP servers.

Top-level fields#

Field Required Meaning
version yes Must be "1.0". Anything else is unsupported version "<x>" (expected "1.0")
name yes Non-empty string; names the trace (indaba.task <name>)
artifacts no Map of name to a path string. Names a path once so steps can refer to it
roles no Map of role name to a role (see below). Needed by any step that uses role
steps yes A list with at least one step
mcp_servers no Map of server name to a Model Context Protocol server
max_parallel no A whole number of at least 1. The most steps this workflow lets run at once; it lowers the limit of the run and never raises it. See Steps at the same time. Steps that work in a worktree then run in forks of the run's worktree
max_waits no A whole number of at least 1. How many times a step may be put back to wait for another before it is admitted alone; it lowers the configured value and never raises it
requires no A list of what a run needs that Indaba cannot infer: kind, name, description, optional how and critical. Shown before the run, never a reason to refuse it. See What a run needs
defaults no defaults.mcp_policy (required, the default, or optional) and defaults.permissions (see Permissions). Nothing else under defaults is read

artifacts and interpolation#

${{ artifacts.<name> }} (name matching [A-Za-z0-9_-]+) is replaced by the artifact's path. It is resolved in a step's goal, input_artifacts, outputs, commands and each guard's paths, and nowhere else. An unknown name is an error: $.steps[0].goal: unknown artifact "x". There is no other interpolation syntax.

Artifact paths are relative to the step's working directory and may not leave it. One name has meaning: if an artifact called patch exists, the diff of an isolated worktree is written to its path after every isolated step that succeeds.

roles#

Field Required Meaning
runner yes The runner that executes the role, or a list of runners in priority order (see Transports and fallback): openrouter or another API runner, acp, claude-code, codex, antigravity, cursor, opencode, openclaw, or the name of a runner a plugin registers
agent no For the acp runner: the agent to start, a preset name (claude, codex, gemini, opencode) or a mapping with a preset or a command: [program, arg, ...] and optionally auth, the agent's own id for how to log in (see Logging in to an ACP agent). Other runners ignore it
model no Passed to the runner as its model. API runners require one
mcp no List of mcp_servers names that every step of the role may use
permissions no A permissions block for every agent step of the role that has none of its own. level is refused on a role whose runner is shell

A role named in a step must exist (step "x" uses unknown role "y"). Role names may be any string; keep to letters, digits, _ and -.

steps#

Steps run in dependency order, one at a time unless a limit above 1 is set (see Steps at the same time). Ties between steps that could run next are broken by the order they are written in. A cycle or a dependency on an unknown step is a validation error.

Field Required Meaning
id yes Unique, matching [A-Za-z0-9_-]+
role one of role or runner A key of roles. The step is an agent step run by the role's runner and model
runner one of role or runner A runner, or a list of runners in priority order, named directly. shell makes a shell step. When a step has both a role and a runner, the step's runner is used and the role still supplies the model; validate warns when the two lists differ: step "x" sets runner (...), which takes precedence over role "y" (...).
agent no For the acp runner: overrides the role's agent
permissions no What the step's agent may touch (see Permissions)
goal no The instruction given to the agent (interpolated). Empty for a shell step
depends_on no List of step ids that must complete first. A step may not depend on itself
input_artifacts no Paths the agent is told to read first (interpolated). Copied into a worktree if they exist only in the project directory
outputs no Paths the step must create (interpolated). Missing after the step is a failure: Expected output "x" was not produced.
commands shell steps List of command lines (interpolated), run in order; the first non-zero exit fails the step. Only a runner: "shell" step may have them, and it must have at least one
guards no Checks run after the step succeeds (see Guards)
isolation no none (default) or git_worktree
timeout_seconds no A whole number from 1 to 86400. The limit, in seconds, of each call of a runner and each command of a shell step; it replaces indaba run --timeout (default 900) for this step. It is not a limit on the step as a whole: a step that falls back to another runner, or a debate with several rounds, can take longer in total. On a debate step it limits each call of each participant (a debate without it is not bound by --timeout). It is not the timeout_seconds of a permissions block, which is still refused. A step that times out fails with Timed out after N seconds. and its on_failure applies
stall no { after_seconds, retries }: stop an attempt that shows no activity for after_seconds (60 to 3600) and run it again up to retries (0 to 3, default 0) times. Agent steps only, not a debate; retries above 0 needs isolation: git_worktree on the step; every runner of the step must be able to report activity (today claude-code). Independent of timeout_seconds. See Stalls
touches no A list of paths or globs. Only a runner: "shell" step may have it: what the step touches, which stands in for the intent an agent step declares when steps run at the same time. Without it a shell step intends nothing
on_failure no What to do when the step fails (see Retries)
consensus_with no Roles that debate with this step's role
decision_type no consensus (every participant agrees) or majority (more than half)
arbiter no Who settles a debate that failed: human, or the name of an adjudicator a plugin registers. Letters, digits, _ or -. Only on a debate step, otherwise has an arbiter but is not a debate (it needs consensus_with or decision_type) (see Consensus steps)
mcp no mcp_servers names this step may use, in addition to its role's
mcp_policy no required or optional; overrides defaults.mcp_policy for this step

A step needs a role or a runner. Using commands on a step whose runner is not shell is an error.

The agent receives a prompt built from the role name, the goal, the input artifacts and required outputs, and, on a retry, the failure of the previous attempt.

Transports and fallback#

An agent is reached in one of three ways. Choose the first that fits and list the others after it.

Transport Runners Choose it for Trade-off
API openrouter, and any OpenAI-compatible endpoint you configure text work: specs, reviews, debate, consensus. Needs only a key the model returns text; it cannot edit files or run tools itself
ACP acp with an agent an agent that changes code. Structured events in the trace, and a permission gate you control needs a local agent program; the presets start it with npx, which on Windows is a shim Indaba does not start (use a native executable)
CLI claude-code, codex, antigravity, cursor, opencode a last resort, or an agent with no API or ACP route scrapes terminal output, so it breaks when the CLI's output changes; no per-action permissions
roles:
  implementer:
    runner: ["acp", "claude-code"]   # ACP first, the CLI only as a fallback
    agent: "claude"

The first runner in the list that can run is used. A runner cannot run when nothing has yet been sent to the agent: there is no API key, the program was not found, the endpoint did not answer, an API key was rejected, or the ACP handshake failed. A runner that started and then failed is a failed task: the next runner is not tried, because the agent may already have changed files; on_failure decides what happens. If no runner of the list could run, the step fails and names each one and why.

Each attempt gets the original prompt, never the output of an earlier runner. indaba plan prints the list (runners acp -> claude-code), and the trace records which runner ran and an indaba.runner.skipped event for each one that could not.

API endpoints beyond openrouter are configured in the environment, never in the workflow file (a base URL in a file you did not write could send your key elsewhere); see getting-started.md. Examples: examples/transport-fallback.workflow.ai.yml and examples/api-only.workflow.ai.yml.

Permissions#

permissions:
  fs:
    read: ["src/**", "tests/**"]   # empty or absent: reads are not restricted
    write: ["src/**"]               # empty or absent: the step may change nothing
  terminal: "deny"                  # allow | deny (default deny)

Globs use * and ? inside one path segment and ** for any number of segments, relative to the step's working directory. permissions does two things:

indaba validate warns when a step declares permissions (at any level but full) without isolation: git_worktree, and when no acp runner is in its chain (then only the guard enforces it, after the step has run).

The level: read, edit, full#

permissions.level says how much a step's agent may do, and Indaba passes it to the runner in the runner's own terms:

permissions: { level: read }                                      # look only
permissions: { level: edit, fs: { write: ["src/**"] } }           # change these files; commands only with terminal: allow
permissions: { level: full }                                      # no limit from Indaba and nobody asked

Shell steps#

runner: "shell" runs each command line through the platform shell (/bin/sh -c on macOS and Linux, cmd.exe /d /s /c on Windows), in the step's working directory. This is the one place a string is given to a shell. The command lines are yours, written in the file; never put text produced by a model into a command. Each command is limited by the step timeout (the step's timeout_seconds, else indaba run --timeout, else 900 seconds). Write commands that work on every OS you target, or call one executable with simple arguments.

Consensus steps#

A step with decision_type or consensus_with is a debate. The participants are its role plus every role in consensus_with, each run by its own runner; they exchange messages on a shared blackboard for up to four rounds. A step that takes part in a debate needs a role. If the participants do not reach the decision type's quorum, the step is escalated, not retried, and the run ends with status escalated.

Only an AGREEMENT reply counts as approval. Two reviewers who both answer CRITIQUE and agree on the same list of changes have not reached consensus, however close they are. That is what an arbiter is for.

Pattern: a review debate#

A debate whose job is to review something has a trap. If AGREEMENT means "the work is good", reviewers who find the same problems keep answering CRITIQUE, because they are still criticising the work. They agree with each other from the second or third round, and the step still ends max_rounds_exceeded. The reply type says what a reviewer thinks of the work; the debate needs to know what each reviewer thinks of the other reviewers' findings.

Write the step's goal so that the two reply types answer the second question:

The review is then the list the reviewers settled on, read from the transcript; the debate's status says whether they settled. If the reviewers must also rule on the work (ship or do not ship), put that in a separate step after the debate, or let an arbiter decide, rather than overloading AGREEMENT.

goal: >-
  Review src/core in the working directory. Do not modify any file. Keep your reply under 200 words.
  Begin it with exactly AGREEMENT: when you accept the other reviewers' findings as the review's result
  (they may criticise the code; that is fine), or CRITIQUE: when a finding is missing, wrong or badly
  worded, and then say which. In your first reply there are no other findings yet, so list yours
  (at most five, each with a file path) and begin with CRITIQUE:.

This is what examples/review-debate.workflow.ai.yml does.

Every debate writes its transcript to .indaba/artifacts/<step-id>.transcript.md in the step's working directory.

Arbiter#
- id: "review"
  role: "claude"
  consensus_with: ["antigravity"]
  decision_type: "consensus"
  arbiter: "human"

When the debate ends stalled or max_rounds_exceeded, the arbiter rules on it instead of the step escalating at once. A debate that reaches quorum never asks. human shows the transcript in the terminal and reads accept or reject and an optional one-line note (three wrong answers give up):

The decision ledger#

Every ruling is also appended, as one JSON line, to .indaba-decisions/<workflow-name>.jsonl in the project. Unlike .indaba/, this directory is meant to be committed: it is the record of who decided what, and a team can review it in a pull request. It holds the verdict, the note (credentials redacted), the debate's outcome and rounds, the commit and the time. It never holds the transcript.

It is also a memory. Before the debate runs, Indaba looks for a ruling with the same key: the workflow name, the step id, the goal text and every file committed in the project (outside .indaba/ and .indaba-decisions/). On a hit it uses that ruling and skips the debate, so an identical re-run neither asks you again nor pays for the agents again. Any change to a committed file, the goal or the workflow name is a new question. With uncommitted changes, or outside a git repository, nothing is reused (the span says indaba.arbiter.memo = skipped). To ask again, delete the line or change a file. A line that is not a valid ruling fails the step and names the file and line.

Isolation#

git_worktree runs the step in a detached git worktree under .indaba/worktrees/<taskId>. Steps that depend on an isolated step run in the same worktree, so a verify step sees what the code step wrote. The worktree is removed when the run ends, whether it completed, failed or was cancelled. The project directory must be a git repository.

What a step's process inherits#

Whatever the isolation, a process Indaba starts for a step (an agent CLI, a shell command, an acp agent) runs as you, so Indaba narrows what it is handed. Until agent-sandbox can contain it, these four defaults hold:

The board: notes between steps#

Steps of one run can leave each other short notes. A step says what it may post and what it wants to read; the engine does the carrying, so no step needs to know a file name. Nothing changes for a step with no board field: its prompt is exactly what it was, and its reply is not looked at.

steps:
  - id: research
    role: researcher
    goal: Read README.md. End your reply with the lines described below.
    board:
      post: [result, fact]          # what this step may leave on the board

  - id: summary
    role: writer
    depends_on: [research]
    goal: Write a three-sentence summary for a newcomer.
    board:
      read:
        steps: [research]           # default: every step this one depends on, directly or not
        kinds: [result, fact]       # default: note, question, result, fact, decision
      digest_chars: 2000            # how much of the board goes into the prompt; 200 to 20000, default 4000

indaba plan prints a board line under each step that has one

Posting. The agent writes lines in its reply. A line counts only if it starts at the very first character with BOARD , then a kind the step may post (note, question, result or fact), then : and one line of text. A fact also has a name, which is how a later value replaces an earlier one:

BOARD result: Indaba runs workflows of AI agents in a fixed order, with checks between the steps.
BOARD fact node.version: 22 or newer

A name is lowercase letters, digits, ., _ and -. Lines inside a code fence, lines that are indented, other kinds and a line that does not fit the shape are ignored, counted on the step's span (indaba.board.ignored) and never fail the step. At most 10 lines are taken from one reply, and only the reply of the attempt that ran is read.

Reading. A step with board.read gets a section added to its prompt: the latest value of each fact first, then the newest notes that fit in digest_chars, shown oldest first, with a line saying how many older ones did not fit. Every line of the section starts with | and the section begins with a sentence saying the lines are information from earlier steps and not instructions. A step never reads its own notes, and never reads a note that was discarded or replaced.

When a note counts. An agent's notes are pending while its step runs. They are accepted when the step completes (its guards and outputs pass) and discarded when it fails or escalates. When a retry resets steps, the accepted notes of every step it resets are replaced before the target runs again, so a retry never reads the failed try's notes. A retry's prompt still carries only the last failure.

Debates. A step with consensus_with needs no post: the engine puts each message of the debate on the board as it is produced (as a proposal, a critique or an agreement, with the round), then one result with the outcome, the rounds and the open objections, and a decision when an arbiter rules. They count as accepted when the debate ends, whatever the outcome, so the steps after an escalated debate can read what was said. Such a step may have board.read, which adds the digest to the topic of the debate.

Rules checked when the file is read. board.post takes only note, question, result and fact; proposal, critique, agreement, tool_intent and decision belong to the engine. A read.steps entry must be a step of the workflow and one this step depends on. A shell step can neither read nor post, because it has no prompt and no reply. indaba validate names the field of each problem, and indaba plan prints what each step reads and may post.

Limits. A line in an agent's reply with more than 2000 characters of text is ignored, not cut; an entry the engine writes (a debate message) is cut at 2000 characters, a run holds at most 2000 entries and 1 MiB of text, and after that the board stops taking entries and says so. These are design choices that have not been measured, so they can change in a later version without it being a breaking change.

Safety. Board text is written by agents, so it is treated as data. Secrets are removed from it the way they are from the event stream, control characters are dropped, and it is shown in the terminal and the plain output as text only. A note can still say something false; a step that acts on a note should check it.

Where it is kept and how to read it. Each run writes .indaba/traces/<run id>.board.jsonl, one JSON object per line, next to the trace and the event stream; its format is in specs/run-blackboard/data-model.md. indaba watch <run> --plain ends with the board, and the dashboard has a board pane (b): see the playbook. A plugin can follow every entry as it is made: see Extending. The example board-handoff.workflow.ai.yml is the one above, ready to run.

Guards#

guards:
  - type: "git_diff_empty"
    paths: ["packages/"]

A guard runs after a step succeeds and its outputs exist. Each entry needs a type; paths is a list (interpolated). A guard that fails fails the step with Guard <type> failed: ....

Type Passes when
git_diff_empty nothing under the listed paths (default: the whole directory) was modified, added or deleted, tracked or not. It fails if git state cannot be read
diff_within_scope every path changed in the working directory, tracked or not, matches one of the listed paths (globs; an empty list means nothing may change). .indaba/ is ignored. It fails if git state cannot be read. It is added automatically to a step with permissions, except at level: full. With a written read or edit level it is added even when the step declares its own diff_within_scope; with no level, a declared one replaces it

An unknown type is $.steps[0].guards[0].type "x" is not a known guard. A plugin can register more types; see extending.md.

Retries: on_failure#

on_failure:
  action: "retry_step"
  target: "code"
  max_retries: 3
Field Meaning
action retry_step, escalate or fail
target For retry_step: the step to run again. It must be the failing step itself or one of its ancestors
max_retries For retry_step: an integer of at least 1 (default 0, which is invalid for retry_step); a value that is not an integer is an error

When a step fails with retry_step, the target and every step after it are reset and run again. The target's next prompt carries only the failure of the last attempt (trimmed to its last 4000 characters), never the history. After max_retries attempts the run ends escalated. escalate ends the run as escalated at once, and fail (or no on_failure) ends it as failed.

Stalls: stall#

timeout_seconds limits how long a call may take. stall is the other question: has the call gone quiet? An agent can stop making progress without failing, with the process alive and nothing printed, and a time limit only ends that after all of its minutes. A step with stall is stopped when its runner has seen no sign of life for after_seconds, and can then be run again.

steps:
  - id: implement
    role: implementer
    isolation: git_worktree        # needed for retries above 0
    timeout_seconds: 1800          # still applies, independently
    stall:
      after_seconds: 300           # required, 60 to 3600
      retries: 1                   # optional, 0 to 3, default 0
Field Meaning
after_seconds Required. A whole number from 60 to 3600: the silence that stops an attempt. The clock starts when the process starts and every piece of output restarts it
retries Optional, a whole number from 0 to 3, default 0. How many times a stalled attempt is run again. Above 0 needs isolation: git_worktree on the step itself

Nothing is on by default: a step without stall behaves exactly as before.

What counts as activity is the runner's own, and not every runner can say. claude-code reads its answer from a stream, and anything on that stream counts: the model thinking, its messages, the progress of a tool call. A runner that cannot report activity is refused in a step that sets stall, by name, by validate, plan and the start of a run:

Runner Can report activity?
claude-code Yes, while it reads its stream (the default). Not with reportUsage: false or your own --output-format in extraArgs: then nothing arrives before the end, and it says so
codex, antigravity, cursor, opencode, acp No. Their silence while healthy has not been measured, and a guess would stop working calls
openrouter and other OpenAI-compatible runners No. A time limit bounds them, and they change no files, so there is nothing to retry
shell No. A command is limited by timeout_seconds and nothing else
a runner from a plugin Only if it implements StallCapable (see extending.md)

Why 60 seconds at least. A healthy claude-code call that ran a tool for 75 seconds sent its events up to 30 seconds apart (measured on one machine, specs/step-stalls/research.md), so a lower limit would stop work that was going well. Set after_seconds several times above the longest quiet stretch a step can have, for example a test run that prints nothing for minutes, and use timeout_seconds for the total.

What happens. The runner stops the whole process tree and the attempt fails with Stalled: no activity for N seconds., never Timed out. With retries left, the engine puts the step's worktree back as it was when the step began and runs the step again; the next prompt says only Your previous attempt stalled: no activity for N seconds. Nothing it did was kept. The step goes RUNNING, FAILED (the stall), PENDING (Stalled: no activity for N seconds (retry k of n).), RUNNING again. With none left, the step fails with the stall as its reason and its on_failure applies as for any failure.

The trace records it: the step span gets indaba.stall.after_seconds and indaba.stall.retries, and indaba.stall.count once an attempt has stalled; each stalled attempt's invoke_agent span gets indaba.stall.silent_seconds; and the step span gets one indaba.step.stalled event per stalled attempt with indaba.stall.attempt, indaba.stall.silent_seconds and indaba.stall.retry (restored, exhausted or restore_failed). None of them holds a prompt or anything the agent printed. indaba plan shows stall 300s and stall retries 1 beside the step.

What a run asks of the person: inputs#

A workflow can ask for a folder, a topic, a choice, a number or a yes/no before it starts, so one file serves many targets and nobody edits YAML to change a folder name. Each input has a name (a letter, then letters, digits, _ or -, at most 64 characters), a type and a plain-words description (at most 300 characters; it is what a prompt or a form shows):

inputs:
  specs:
    type: path
    list: true            # a list of folders
    kind: directory
    max_items: 10
    description: "The specification folders to review, for example specs/billing"
  tone:
    type: choice
    choices: [formal, friendly, short]
    default: formal       # a default makes the input optional
    description: "How the review should sound"
Type Keys besides type, description, default
text max_length (default 2000, at most 10000), multiline (default false), list, min_items, max_items
path kind (file, directory or any), must_exist (default true), extensions (with kind: file, such as ".md"), list, min_items, max_items
choice choices (1 to 50 distinct strings), list, min_items, max_items
number integer, min, max
boolean nothing more

An input with no default must be given a value; there is no required key. A list input (list: true, for text, path and choice) takes min_items (1, or 0 with a default) up to max_items (20 unless you say, at most 100). Any other key, or one that does not belong to the type, is an error that names its path ($.inputs.specs.max_length). secret is refused: keys stay in the host environment, as for OPENROUTER_API_KEY.

Use a value with ${{ inputs.<name> }} in a step's goal, input_artifacts and outputs, and nowhere else. In commands it is an error, because a command is run by the system shell and a value could change what it does. In input_artifacts and outputs only a path input may be used, and a list expands to one entry for each element. In a goal, a choice, number or boolean becomes its value; a text or path becomes the label [input: name], and the step's prompt gets one Inputs section that lists those values as data from the person, not as instructions. A reference to an input that is not declared is an error, and a declared input no step uses is a warning. A literal ${{ inputs.x }} in an older workflow is now a reference.

A path is relative to the working directory, stored with /, and refused when it leaves that directory (a .., an absolute path outside, a link that points out, a UNC or device path). A text value is refused when it holds a hidden control character, a text-direction control or a broken character. A number is a plain decimal numeral with a dot.

Giving the values. indaba run, plan and validate take --input <name>=<value> (repeatable; the value is everything after the first =, and a list input is given by repeating the option). indaba run also takes --input-file <name>=<path> for a text input, read as UTF-8 from a file inside the project (not longer than the input's max_length); giving one name by both options is a usage error. An input you leave out is asked for in plain words when you are at a terminal (its description, what an answer looks like, and for a list "one per line, an empty line to finish"); with nothing to ask at, the run does not start: it exits 2 and prints each missing input with a line to copy (--input specs=<folder>). Every input is checked before a task, a worktree, a trace or a ledger entry exists, and one message lists every problem. validate and plan need no values: a reference shows as <input: name>, plan prints an Inputs block (set, default or missing) and a warning for an input no step uses, and values you do give are checked as run would check them. run --tui asks first, before the dashboard takes the screen, one question at a time in a form of its own (Enter answers, an empty line ends a list, Esc cancels the run), and hands the child each answer as --input; a refused answer is asked again, as at a plain terminal. A run records, on its root span, indaba.inputs.count, indaba.inputs.digest (SHA-256 of the canonical inputs) and indaba.inputs.asked, and an inputs_resolved event with the names, the types, the digest, the choice, number, boolean and path values and, for a text input, only its length: no typed text is written to a trace, an event or a log.

State of this feature: the declarations, the references, the checks, the command line, the questions and the form of run --tui are in. The readiness items for inputs, the start dialogs of Home and the web page, and the channel come in the next steps of specs/workflow-inputs. A workflow started from the terminal Home or the web page that asks for an input fails with the message above until those arrive; start it with indaba run.

What a run needs: requires#

Before a run starts, indaba plan and indaba run print a readiness report: what the run needs and what this machine and you have. Indaba infers part of it with no field at all: each step's runner is registered and its program is on the PATH; the variable an OpenRouter step reads (OPENROUTER_API_KEY) is set, by name and never by value; an input_artifacts file that no earlier step produces exists inside the project; a step that asks for a git worktree is in a git repository.

What Indaba cannot infer, the author declares:

requires:
  - kind: env
    name: GITHUB_TOKEN
    description: Lets the release step open the pull request
    how: Create a token in your GitHub settings and export it
    critical: true
  - kind: account
    name: Google OAuth client
    description: The client the login step uses exists
Field Meaning
kind env, file, tool, account, decision or asset
name The variable, a path relative to the project (no absolute path, no ..), a program, or the thing needed
description Required, at most 300 characters, shown to the person
how Optional, at most 500 characters: where to get it
critical Optional, default false: the run will probably fail without it. It only orders the list and marks the item

env, file and tool are checked on this machine. account, decision and asset cannot be, so they show as needs your confirmation until you pass --confirm <id> to indaba run (the id is <kind>:-:<name>, for example account:-:Google OAuth client). A confirmation belongs to that run: the next run asks again, and it is never written to the workflow file.

The report informs and never blocks. A missing item does not change the exit code and indaba run starts exactly as before. A check that could not be made is shown as "could not be checked", never as ready. The run's trace records the id and state of each item (the span attribute indaba.readiness.items), never a value.

Steps at the same time: max_parallel#

The limit of steps that may run at once is decided, strongest first, by indaba run --parallel <n>, the variable INDABA_PARALLEL, parallel.max_steps in indaba.config, and then the default, 1. Each is a whole number of at least 1: a bad flag is a usage error, a bad variable is ignored with a warning, a bad value in the file is a configuration error that names the key. A workflow can lower the limit of its own run with max_parallel and max_waits, never raise it. indaba.config also sets parallel.max_waits (default 3).

Above 1, steps that work in a worktree run at the same time, each in a fork of the run's worktree; a step that works in the project directory runs alone. The limit is resolved and recorded on the run (indaba.workflow.max_parallel and indaba.workflow.max_parallel.source on the root span, where the source is flag, env, config, workflow or default). Each agent step first says what it intends to change; steps whose intentions meet wait or negotiate a contract, their changes land one at a time, and a landing that collides is resolved by the agents, which the dashboard and watch show as waiting steps. The trace records the waiting as an indaba.step.wait span (indaba.step.id, indaba.wait.blocker, indaba.wait.count) and each resolution of a collision as an indaba.resolution span. There is no review before a step lands yet (step-verdicts). Wherever the limit is set above 1 and at the start of such a run, Indaba states what it costs (specs/parallel-steps):

Steps run at the same time. What that costs:
- each agent step makes an extra call first, to say what it intends to change;
- steps whose intentions meet hold a negotiation and may resolve conflicts, which means more calls and more spend;
- each running step works in a worktree of its own on disk;
- a negotiation or a conflict nobody can settle comes to the decider.

A shell step declares what it will change with touches; an agent step says it in a call of its own before it works.

MCP servers#

mcp_servers:
  docs:
    command: "npx"
    args: ["-y", "my-docs-mcp"]
    env:
      DOCS_TOKEN: "set-me"
  tracker:
    url: "https://mcp.example.com/sse"

Each server needs exactly one of command (a local process; args and env are optional) or url (an http or https endpoint; args and env do not apply). Names match [A-Za-z0-9_-]+. Server definitions can hold secrets and never appear in logs, traces or messages; only names do.

How a server reaches a step depends on the runner:

Runner MCP
claude-code, codex, acp Indaba injects the servers into the agent's configuration (over ACP, an http server needs an agent that supports it; otherwise the runner cannot run and the next one is tried)
cursor, antigravity, opencode The agent manages its own servers; Indaba assumes the named ones are configured and says so in plan
openrouter and other API runners, shell, others No MCP support

If a step wants a server its runner cannot provide, mcp_policy: required (the default) refuses the run before it starts, and optional runs the step without it. indaba plan prints these findings as MCP error: and MCP warning: lines.

Beyond code: a media pipeline#

Nothing in the format is specific to programming. A step can drive any tool through a shell command or an MCP server, so a workflow can prepare and assemble media as easily as it edits code. This example sketches a pipeline; the tools it calls (ffmpeg, a media-mcp server) are stand-ins for whatever you have installed, and Indaba ships no integration with any editing application.

version: "1.0"
name: "episode-assembly"

artifacts:
  shotlist: "work/shotlist.md"
  proxy: "work/proxy.mp4"
  report: "work/report.md"

mcp_servers:
  media:
    command: "media-mcp"
    args: ["--project", "episode-12"]

roles:
  editor:
    runner: "claude-code"
    mcp: ["media"]
  critic:
    runner: "openrouter"
    model: "anthropic/claude-3.7-sonnet"

steps:
  - id: "proxies"
    runner: "shell"
    commands:
      - "ffmpeg -y -i raw/interview.mov -vf scale=1280:-2 ${{ artifacts.proxy }}"
    outputs: ["${{ artifacts.proxy }}"]

  - id: "plan_cut"
    depends_on: ["proxies"]
    role: "editor"
    input_artifacts: ["${{ artifacts.proxy }}"]
    goal: "Write a shot list for a three minute cut to ${{ artifacts.shotlist }}."
    outputs: ["${{ artifacts.shotlist }}"]

  - id: "assemble"
    depends_on: ["plan_cut"]
    role: "editor"
    mcp: ["media"]
    input_artifacts: ["${{ artifacts.shotlist }}"]
    goal: "Assemble the timeline described in the shot list using the media tools."
    on_failure:
      action: "retry_step"
      target: "assemble"
      max_retries: 2

  - id: "check"
    depends_on: ["assemble"]
    runner: "shell"
    commands:
      - "ffprobe -v error -show_format work/episode.mp4"
    on_failure:
      action: "retry_step"
      target: "assemble"
      max_retries: 2

  - id: "review"
    depends_on: ["check"]
    role: "critic"
    consensus_with: ["editor"]
    decision_type: "majority"
    input_artifacts: ["${{ artifacts.shotlist }}"]
    goal: "Decide whether the assembled cut matches the shot list."

What a run reports#

indaba run ends with completed, failed, escalated or cancelled; the exit codes are 0, 1, 2 and 130. Every step's state changes are printed, and the run is written as a trace under .indaba/traces (see getting-started.md).

When a run starts, its trace records the shape of the workflow: every step, in the order the engine runs them, with the steps it waits for (depends_on) and where a failure leads (on_failure). It is the indaba.workflow.structure attribute of the run's root span, one JSON string. A view can draw the whole graph from it before the later steps run, and it describes the run even if the workflow file changes afterwards. Runs recorded by an earlier version do not have it.

For tools that write workflow files#

Three things in @indaba/engine let a program work with this format without copying it from this page: