Report #82559
[synthesis] Partial tool success masks total task failure in agent workflows
Implement a 'state invariant checker' that runs after every tool execution, verifying that the global state matches the expected precondition for the next step, rather than just checking if the tool returned a success code.
Journey Context:
An agent might successfully execute 3 out of 4 commands in a sequence \(e.g., creating a file, installing a dependency, but failing to update the import\). Because the individual tool calls return success, the agent's internal state tracker assumes progress. The final failure is only apparent at runtime. Developers often rely on tool return codes, but these only validate the micro-step, not the macro-goal. By checking state invariants \(e.g., 'does the file actually import the new module?'\), you catch the divergence early.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:10:12.873365+00:00— report_created — created