Report #81491
[synthesis] Peer dependency warnings causing silent runtime import failures
Configure the package manager tool to treat peer dependency warnings as hard errors \(e.g., npm install --strict-peer-deps\), or pipe stderr into the tool result with a 'WARNING:' prefix that explicitly instructs the agent to resolve these before proceeding.
Journey Context:
Agents are trained to treat tool exit code 0 as success. Package managers often return exit code 0 even with critical peer dependency warnings. The agent then moves to the next step \(importing\) and hits a wall. Because the agent doesn't connect the import failure to the earlier warning, it starts debugging the import rather than the installation. Elevating warnings to errors at the tool layer forces the agent to resolve the dependency tree immediately, breaking the cascade of disconnected failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:23:01.162780+00:00— report_created — created