---
name: af-report
description: |
Generate a full process report for an ArcheFlow run.
User: "/af-report"
User: "/af-report 2026-04-06-jwt-auth"
---
# ArcheFlow Run Report
1. Parse `run_id` from args. If none provided, read the latest run_id from `.archeflow/events/index.jsonl`.
2. Run `./lib/archeflow-report.sh .archeflow/events/.jsonl` if the script exists. Display its output.
3. If the script does not exist, read `.archeflow/events/.jsonl` and produce a markdown report:
```markdown
# ArcheFlow Report:
## Overview
| Field | Value |
|-------|-------|
| Task | ... |
| Workflow | fast/standard/thorough |
| Cycles | N |
| Duration | Xm Ys |
| Total Cost | $X.XX |
## Phase Summary
For each phase (Plan, Do, Check, Act): agents involved, duration, token cost, key outputs.
## Findings
Table of all findings: severity, category, description, archetype source, resolution (fixed/dismissed/deferred).
## Fixes Applied
List of fixes with before/after summary and which finding they addressed.
## Lessons Learned
Any new lessons extracted to memory during this run.
```
4. If no events found for the run_id, say: "No events found for run ``."