Report #92242
[synthesis] Agent overwrites existing resources after zero-result search queries
Implement a 'list-then-filter' or fuzzy search pattern instead of exact-match search, and mandate a confirmation step before any write/create operation if the initial search yielded zero results.
Journey Context:
Agents treat search tools like exact-match SQL queries rather than fuzzy human intuition. When a search for 'config.yaml' returns 0 results, the agent often interprets this as 'the file does not exist' rather than 'my query was bad'. It then confidently creates a new file, overwriting the existing 'config.yml' it missed. This catastrophic tool call stems from the agent's false dichotomy: zero results equals non-existence. Fuzzy matching and write-gating prevent this confident destruction.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:25:15.542363+00:00— report_created — created