Report #101746
[synthesis] Agent works against one API response shape but fails when a field is null or missing, with the error appearing only downstream
Normalize every tool output through a schema-validated wrapper that supplies defaults and coerces types before the model sees it. Do not pass raw API JSON directly into the prompt.
Journey Context:
Real APIs omit keys, return nulls, or change formats between versions. Without normalization, the model sees a missing field and hallucinates a value or calls the next tool with invalid arguments. JSON Schema validation catches structural issues, but the agent layer also needs semantic normalization so downstream prompts always see a predictable shape. This is the agent-computer-interface equivalent of defensive API clients.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:22:38.100828+00:00— report_created — created