35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
---
|
|
name: af-dag
|
|
description: |
|
|
Show the DAG of the current or last ArcheFlow run.
|
|
<example>User: "/af-dag"</example>
|
|
<example>User: "/af-dag 2026-04-06-jwt-auth"</example>
|
|
---
|
|
|
|
# ArcheFlow Run DAG
|
|
|
|
1. Parse `run_id` from args. If none provided, read the latest run_id from `.archeflow/events/index.jsonl`.
|
|
2. Run `./lib/archeflow-dag.sh .archeflow/events/<run_id>.jsonl` if the script exists. Display its output.
|
|
3. If the script does not exist, read `.archeflow/events/<run_id>.jsonl` and render a text DAG:
|
|
- Each node is an event (phase transitions, agent starts/completes, findings).
|
|
- Show parent relationships via indentation.
|
|
- Mark completed events with `[done]`, active with `[running]`, failed with `[FAIL]`.
|
|
|
|
Example output:
|
|
```
|
|
run.start 2026-04-06-jwt-auth
|
|
plan.start
|
|
agent.complete explorer (42s)
|
|
agent.complete creator (68s)
|
|
do.start
|
|
agent.complete maker (180s)
|
|
check.start
|
|
agent.complete guardian (55s) -- 3 findings
|
|
agent.complete skeptic (40s) -- 1 finding
|
|
act.start
|
|
fixes.applied 3/4
|
|
run.complete (6m12s)
|
|
```
|
|
|
|
4. If no events found for the run_id, say: "No events found for run `<run_id>`."
|