Ecosystem / Runners
Run a workflow exactly as written.
An agent given a workflow as instructions can skip a step, ignore a retry or report an outcome that does not exist. A runner is code that walks the workflow itself. It gives the agent one task at a time and rejects any result that breaks the task's schema.
in developmentNo runner ships yet. See the roadmap.
a run of pr-review@0.1.0run 7f3a
sha256-4351e4fd57be… verified mcp github: GITHUB_TOKEN set, 3 tools allowed gather attempt 1 done 12 turns review attempt 1 failed result has no outcome review attempt 2 changes 2 unmet guidelines comment attempt 1 done review posted finished at comment · 4 attempts · 1 retry
Runners
| Harness | Status | Tool | Command | How a task runs |
|---|---|---|---|---|
| Claude Code | in development | awf-cli | awf run | One headless claude -p process per task, with structured output built from the outcomes |
| Claude Code, as a skill | in review | awf-cli | awf export --format claude | One skill walks the workflow inside a single Claude session. Claude follows it as instructions, and nothing checks the results. |
| Codex | none yet | none yet | ||
| Durable engines (Temporal, DBOS) | none yet | none yet |
The run loop
- Verify. Recompute the sha and refuse a draft or a mismatch. A draft has no identity to record.
- Resolve credentials. Replace each
${NAME}inmcp. A missing variable stops the run and names the variable. - Start a task. Substitute
{{field}}from the input. Passsystemas the system prompt andbodyas the first message. Expose only the toolsusesgrants. - Check the result. The result names one declared outcome and matches its schema. Otherwise the attempt fails.
- Follow the edge. A failed attempt retries until the edge's
retriesrun out. A good result, minusoutcome, becomes the next task's input.session: resumecontinues that task's previous session. - Stop. The run ends after a terminal task, or when a task fails hard.
What each field means at run time
| Field | Runner behaviour | Spec |
|---|---|---|
sha | Runs only a sealed document whose sha matches its content. | §8 |
orchestration | Starts at start, follows edges and branches, stops after a null transition. | §3, §10 |
outcomes, output | Fails an attempt whose result names no declared outcome or breaks its schema. | §4.5 |
retries | Counts failed attempts on the edge into a task. null retries without limit. | §3 |
session | resume continues the target task's own previous session with the new input as the next message. | §3 |
max-turns, timeout | Fails an attempt that reaches either limit. Each attempt starts with fresh limits. | §4.4 |
model, effort | Uses the first model in the list it can run, at the nearest effort its provider offers. | §2.4, §2.5 |
{{field}} | Inserts the input field as plain text before the agent sees the prompt. | §4.3 |
uses, allow, deny | Never lets a task call a tool its server withholds. Exposes to each task only the tools it names. | §6.1, §6.3 |
${NAME} | Refuses to start a server whose variable has no value. | §6.4 |
x- keys | Reads its own keys and ignores the rest. | §2.2 |
Build a runner
A runner needs an agent that takes a system prompt, a message and a tool list, and returns structured output. The Claude Agent SDK, the OpenAI Agents SDK, LangGraph and a durable execution engine can each host one.
Three runner behaviours are left to a later spec version (§10). A runner chooses its own answer until then:
- When to move to the next model in a fallback list.
- How tools from
usesare bound to the agent. - How artifacts are tagged with the workflow's identity.
Open a pull request on the specification repository to list a runner here.