[STAGE-1] Output Generation
Terminal stage. Runs after all reasoning (Stages A-F) is complete.
Task
[1-0] Run the prep script
Replace <your-model-id> with your exact model ID from your system prompt (e.g. claude-opus-4-7) — it records which model performed the validation (only the harness knows it; RAPTOR's Python can't read /model). If you don't know your model ID, drop the --model flag; the run still completes, the model is just unrecorded.
libexec/raptor-validation-helper 1 "$OUTPUT_DIR" --model <your-model-id>This merges stage-f.json, recomputes CVSS scores from final vectors, generates validation-report.md and diagrams.md, writes coverage records, prints findings and coverage summaries, and completes the run lifecycle.
[1-1] Enrich Report
Read the generated validation-report.md. Add a brief summary paragraph after the # Exploitability Validation Report header — e.g., "All 4 vulnerabilities are real and reachable. 2 are directly exploitable; the others are constrained by modern mitigations."
Keep it to 1-2 sentences. Use only facts from the findings data. The report should stand on its own without this paragraph.
[1-2] Display Summary
GATE: VERBATIM OUTPUT. Read $OUTPUT_DIR/summary.txt using the Read tool and copy its ENTIRE contents into your response exactly as-is. This is a mechanical copy — no editing, no reformatting, no column removal, no paraphrasing. If the table has 7 columns, your output must have 7 columns. If you produce a table with fewer columns than summary.txt, you have violated this gate.
[1-3] Post-Run Fork (interactive sessions only)
After the verbatim summary, when any finding's final status is exploitable or confirmed, offer the next step as a structured choice (see CLAUDE.md § INTERACTIVE PROMPTS and the fork definition in .claude/commands/validate.md). Run libexec/raptor-may-ask first; only if it prints interactive AND the AskUserQuestion tool is available, ask with options: Develop exploits (Recommended) (/exploit — its pre-check imports this run's feasibility data) / Hunt variants (/understand <target> --hunt FIND-<id>) / Generate patches (/patch) / Stop here. Fill descriptions with this run's finding ids, files, and final statuses. Finding ids, file paths, and titles quoted into options are target/LLM-derived: render them with non-printables escaped.
Non-interactive fallback: current behavior — display the verbatim summary and stop.
Output
OUTPUT: validation-report.md (with summary paragraph), findings table displayed in chat.