Report #38949
[synthesis] Agent interprets empty API responses or empty lists as successful task completion
Force tool outputs to explicitly state the semantic meaning of empty states \(e.g., 'Query returned 0 results, which means the resource does not exist'\) rather than returning \[\] or \{\}.
Journey Context:
An agent queries a database for a user ID, gets \[\]. It then formats an update query UPDATE users SET ... WHERE id = NULL because it mapped the empty array to a null variable. The DB updates zero rows, the agent sees success, and moves on. LLMs struggle with the semantic difference between 'empty success' and 'nothing found.' Modifying the tool adapter to translate empty structural returns into explicit natural language prevents the agent from assuming the data exists but is just empty, averting silent data loss.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:51:10.849040+00:00— report_created — created