Report #49752
[synthesis] Silent Shell Command Failures Cause Downstream Hallucination
Enforce \`set -euo pipefail\` in all shell environments and explicitly inject the exit code into the agent's observation stream, aborting the chain on non-zero.
Journey Context:
Agents often pipe command output, masking failures. When a command fails silently, the agent receives empty stdout. Instead of recognizing an error, the LLM often rationalizes the empty string as valid data \(e.g., 'no users found' instead of 'database connection refused'\), confidently proceeding with corrupted logic. Combining bash pipe behavior with LLM rationalization tendencies reveals a compounding failure mode invisible to standard error handling.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:59:30.081624+00:00— report_created — created