Skip to main content

How Loom works in practice

This guide is for people already past the landing page and quickstart. It explains the operator loop behind Loom so you know which command to run, which artifact to inspect, and where to go next when a run fails.

Command to artifact map​

CommandWhat it gives youNext file or page to inspect
loom checkSchema validation result plus a receiptFix schema issues, or continue to loom compile
loom compile --workflow .loom/workflow.ymlResolved Graph IRConfirm the plan before you execute
loom run --local --workflow .loom/workflow.ymlState and execution eventsRun loom logs <run_id> --state, then read events
Failing run triageState and event inspectionDiagnostics ladder

The four-step loop​

StepWhat you doWhat Loom does
1. AuthorWrite .loom/workflow.yml—
2. ValidateRun loom checkValidates against schema v1, resolves includes, emits a receipt
3. RunRun loom run --local --workflow .loom/workflow.ymlExecutes jobs (host or Docker), writes state.jsonl + events.jsonl
4. DiagnoseRead workflow state, then contextual eventsIdentifiers locate the failed command and its output

Common failure branches​

Use these as your first branch instead of reading everything top to bottom.

Schema or authoring failure​

Symptom: loom check fails before execution starts.

What to inspect next: the validator error output and Syntax v1.

Runtime failure in a user step​

Symptom: loom run --local starts, but a pipeline or job ends in failure.

What to inspect next: Diagnostics ladder, starting from the announced run directory.

Provider or environment failure​

Symptom: missing tools, Docker startup issues, permissions problems, or host/container drift.

What to inspect next: Providers overview, Common failures, then the recorded diagnostics.

What the workflow loop produces​

Recorded runs write state.jsonl and events.jsonl under .loom/.runtime/runs/<run_id>/. State follows workflow, job, step and command transitions. Events retain contextual messages and stdout/stderr. Declared artifact bodies are separate under .loom/.runtime/artifacts/<run_id>/.

See Runtime logs, loom logs and the Diagnostics ladder.

Next steps​

GoalLink
Run your first workflow end to endHello Loom
Practice saved-run diagnosisDiagnostics ladder
Learn the full workflow syntaxSyntax v1
Explore the CLI surfaceCLI overview