Synthesize Verification Report
Produce the final verification output JSON and verdict.
Input Contract
Aggregate all findings you produced earlier in this verification session — the
per-item records from the sequential check and the reference check, held in
context. Each issue must include location and issue.
Procedure
- Collect all critical errors and all gaps from previous checks.
- Build a complete
verification_reportobject with:summarycritical_errorsgaps
- Apply strict verdict rule:
correctiffcritical_errors=[]andgaps=[].- otherwise
wrong.
- If verdict is
wrong, produce concrete non-emptyrepair_hints. - Self-check the JSON against its schema before emitting — do this by reasoning, not by calling a tool:
verdictis exactly"correct"or"wrong",repair_hintsis non-empty iffverdict == "wrong"(empty string when"correct"),- every entry of
critical_errorsandgapshas bothlocationandissue, - the verdict is consistent with the rule in step 3 (any critical error or gap forces
"wrong"). If the self-check fails, correct the object before continuing.
- Write the final JSON to the run's result file and emit it as your final message.
The verify service injects the absolute path for this run — write to
results/{run_id}/verification.jsonunder the service-provided run directory ({run_id}is theRun_idgiven to you). The verify service reads this file back and returns it verbatim as the HTTP/verifyresponse; you invoke no MCP tool to persist it. Stop only after the file is written and the same JSON is your final message.
Output Contract
Final output JSON:
{
"verification_report": {
"summary": "string",
"critical_errors": [],
"gaps": []
},
"verdict": "correct",
"repair_hints": ""
}
If there is any error or gap, verdict must be "wrong" and repair_hints must be non-empty.
Tools
- None — you build, self-check, and write the report by reasoning. The final JSON
is written to
results/{run_id}/verification.json; the verify service returns it as the/verifyresponse.
(The verdict is the verifier's only output — no memory is written; the worker does all writing to global memory and the fact graph.)