# `mix workflow_dag_check`
[🔗](https://github.com/jaizendra-netizen/workflow_dag_check/blob/main/lib/mix/tasks/workflow_dag_check.ex#L1)

Usage: `mix workflow_dag_check steps.csv`

CSV columns: step, depends_on (step ids separated by a semicolon, empty for none).

Exit code 0 when no problem is found, 1 when any problem is found (all problems are
printed first), 2 when the input cannot be read or the arguments are wrong.
Background: https://www.onegtmlab.dev/glossary/agentic-workflow

# `execute`

```elixir
@spec execute([String.t()]) :: {:ok, 0 | 1, String.t()} | {:error, String.t()}
```

Run the check. Returns `{:ok, exit_code, output}` or `{:error, message}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
