Report #39601
[synthesis] Agent receives plausible-looking null results from tools due to schema drift or partial JSON
Strictly validate tool outputs against JSON Schema with 'additionalProperties: false' and required field enforcement, rejecting any response that doesn't match the expected schema exactly rather than coercing or defaulting.
Journey Context:
When APIs evolve or tools return partial JSON \(common with streaming or truncated outputs\), agents often receive HTTP 200 responses with error messages in the body, or objects with missing fields. Many tool implementations return default values \(empty strings, zeros\) for missing keys, which looks like valid data to the agent. The agent then reasons over garbage. Common mistakes include 'graceful degradation' where partial matches are accepted, or using 'lenient' JSON parsers. The synthesis reveals that agents cannot distinguish between 'empty valid result' and 'schema mismatch error' without explicit structural guarantees. You must fail fast and surface the schema error to the LLM rather than masking it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:56:40.894779+00:00— report_created — created