#13986·oh-my-pi

reviewer: prompt vs incremental-yield validator — findings sent as array fail the schema; final payload with findings: null erases assembled findings

Author: MtuchelCreated Oct 1, 2026Updated Oct 1, 2026
Labelswontfixtoolagentpromptingtriaged

Version: omp 18.4.4 (the bundled reviewer agent is unchanged on main).

The bundled reviewer's prompt and the incremental-yield validator disagree in two places.

1. Array under type: ["findings"]. prompts/agents/reviewer.md says "Each issue: incremental yield, type: ["findings"]" and gives findings as an array in the output schema. Models often send all findings at once as data: [...]. The validator applies the element schema to each section, so the call fails with:

Section "findings" does not match schema: expected object, received array

We saw this about 37 times in 48h of reviewer subagents (gpt-6.1-sol). Every retry with a single object succeeded. Saying "data is ONE finding object, never an array" in step 3 and in <output> removed it: 0 errors in 60 runs.

2. A final payload with findings: null erases the assembled findings. After the sections, the model often sends a final whole-result yield with no type. With strict tool schemas, optional properties become required and nullable, so the payload carries findings: null (or [] when there are no findings). That value replaces the sections assembled from the findings yields, and the task result has no findings. This happened in 1 of 16 runs with the bundled wording ("don't repeat it in a final payload"), and in 11 of 16 when we told the model to leave the key out. When the final payload repeats the full list, the result is correct, because sections are replaced, not duplicated.

Suggestions: in finalization, ignore a null findings in a terminal payload when findings sections exist, and state in the prompt that data is one object per section.