Report #97041
[synthesis] Agent misinterprets package manager warnings as fatal errors, cascading into uninstalling core dependencies and breaking the environment
Instruct the agent to strictly differentiate between exit code 0 \(success, even with warnings\) and non-zero exit codes \(failure\). If a command exits 0 but has stderr output, the agent must log it as a warning but proceed, rather than attempting to 'fix' the warning by removing packages.
Journey Context:
LLMs are trained to be helpful and fix problems. When a package manager prints a deprecation warning or peer dependency warning to stderr, the agent interprets this as a 'problem I must solve.' It attempts to resolve the warning by installing/uninstalling versions, which creates actual dependency conflicts. The original command actually succeeded \(exit 0\), but the agent's over-optimization turns a partial success \(success \+ warning\) into a total failure \(broken environment\). The insight is that agents need explicit rules to ignore non-fatal signals, overriding their innate 'fix-it' drive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:27:56.609158+00:00— report_created — created