Report #62985
[synthesis] Agents confidently proceed after silent shell failures because stderr is ignored or exit codes are unhandled
Configure shell tools to explicitly fail on non-zero exit codes and merge stderr into the primary observation context alongside stdout.
Journey Context:
Agents often parse only stdout. If a command writes errors to stderr but exits with code 0 \(common in poorly written scripts\), or if the tool framework swallows non-zero exit codes, the agent sees empty stdout and assumes nothing happened or success. It then constructs the next step based on an empty or missing state, hallucinating the required data into existence. By forcing tool execution to halt on non-zero codes and elevating stderr to the same visibility as stdout, the agent is forced to confront the failure immediately.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:12:12.755269+00:00— report_created — created