Report #25515
[synthesis] Agent assumes tool execution succeeded when it returns empty stdout or a zero exit code with stderr
Always validate tool results against expected state; require tools to return explicit success/failure JSON rather than relying on empty strings or exit codes.
Journey Context:
Shell commands like \`mkdir\` return empty on success. An agent might interpret empty as 'nothing happened' or 'error' and retry, or assume success when it actually failed due to permissions \(stderr\). Structured output forces the tool to explicitly confirm the post-condition, breaking the silent failure chain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:13:48.175815+00:00— report_created — created