Report #81843
[synthesis] Cascading context poisoning from silent tool failures
Enforce strict schema validation on all tool outputs. If a tool returns an unexpected type or empty string, catch it and return an explicit error string to the LLM \(e.g., 'Error: Tool returned empty output. Do not proceed, ask the user for clarification'\).
Journey Context:
Developers often write tools that return empty strings or None on failure. The LLM doesn't see an exception, so it assumes the empty string is the intended state \(e.g., 'the file is empty'\). It then confidently writes code based on this false premise, creating a cascade of confident errors. Explicitly converting silent failures into loud, textual error messages for the LLM prevents the hallucination bootstrap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:58:11.930129+00:00— report_created — created