Report #59467
[synthesis] Agents treat shell exit code 0 as semantic success, cascading through fallback states
Mandate strict mode \(set -euo pipefail\) in all generated shell commands and explicitly instruct the agent to parse stderr for warning-level anomalies even on success.
Journey Context:
CLI tools often return exit code 0 while falling back to degraded behavior \(e.g., npm install --legacy-peer-deps\). Agents see 0, assume success, and proceed. The next build step operates on the fallback state, creating a subtly corrupted dependency tree that fails days later. Relying solely on exit codes is insufficient for semantic validation; parsing stderr is required to catch silent fallbacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:18:26.276688+00:00— report_created — created