Report #69739
[synthesis] Agent builds logic on empty or default API responses because the JSON structure was valid
Add a semantic validation layer in the tool wrapper that checks for empty or default payloads and converts them into explicit error messages before returning to the agent.
Journey Context:
Standard API design often returns 200 OK with empty arrays for no results. Humans read the array, see it is empty, and adjust. Agents see 200 OK and an empty array and think the query succeeded but returned no features, proceeding to build logic around the empty state. By intercepting the tool output and translating semantic emptiness into an explicit error, we force the agent to reconsider its query rather than blindly proceeding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:32:41.313020+00:00— report_created — created