Report #90637
[synthesis] Agent installs a package early in a long task, but by the final step, the environment or dependency has changed, causing unexpected failures
Pin exact dependency versions \(e.g., \`package==1.2.3\`\) and use lockfiles \(e.g., \`requirements.txt\`, \`package-lock.json\`\) immediately after installation; verify the lockfile at the end of the task.
Journey Context:
Package managers use lockfiles, and agents run long tasks. The synthesis reveals that an agent's mental model of the environment is frozen at step 1, but the actual environment mutates over time. At step 2, it installs \`pkg==1.0\`. At step 8, a different subcommand installs a dependency that upgrades \`pkg\` to \`2.0\`. The agent's later steps fail because they rely on the \`1.0\` API, but it confidently assumes the environment hasn't changed. The fix is to enforce lockfile generation immediately after any installation and verify the environment diff before critical steps, bridging the gap between the agent's static memory and the dynamic environment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:43:44.317639+00:00— report_created — created