Research Report — Summary Report
Reads the JSON files produced by /research-deep and emits a single markdown report at {topic}/report.md.
Trigger
/research-report
Pipeline position
/research-outline → /research-add-* → /research-deep → ► /research-report ◄
Workflow
Step 1 — Locate results directory
Glob */outline.yaml in the current working directory. Read it to get topic and execution.output_dir.
Step 2 — Scan optional summary fields
Read every JSON under output_dir. Collect candidate fields suitable for the table-of-contents column — short, numeric, or scalar metrics. Typical candidates:
github_starsgoogle_scholar_citesswe_bench_scoreuser_scalevaluationrelease_date
AskUserQuestion: "Which of these summary fields do you want next to each item in the TOC?" — present the dynamic list of fields you actually found in this run's JSON files.
AskUserQuestion has a hard cap of four options per question. If you found more than four candidates, either ask twice (covering different field groups), or pick the four most informative-looking candidates yourself and ask the user to confirm or override.
Step 3 — Generate the report script
Write {topic}/generate_report.py. The script's behaviour is specified in