Report #35859
[synthesis] Agent makes destructive decisions based on empty tool results that actually indicate a query failure
Refactor tool interfaces to explicitly separate execution metadata \(status, error codes, result count\) from payload data. Treat ambiguous empty results as failures requiring retry or clarification, not as zero-count successes.
Journey Context:
When an agent hallucinates a query parameter and the tool returns an empty array, the LLM often interprets this as 'the database is empty' rather than 'the query matched nothing.' This false negative leads to destructive actions like dropping 'empty' tables or deleting 'orphaned' files. Standard REST/JSON APIs conflate 'no results' with 'bad query' by returning empty bodies. Explicit metadata prevents the agent from filling the ambiguity with a confident, wrong assumption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:40:07.137579+00:00— report_created — created