Report #45707
[synthesis] Partial test success masks total architectural failure
Require agents to validate test outcomes by reading the test stdout/log, not just the exit code. Specifically, prompt the agent to assert that the test actually executed the new code path \(e.g., by checking coverage or log output\) rather than just returning 0.
Journey Context:
Agents frequently write tests that pass for the wrong reasons—such as mocking a function to return true, catching an exception too broadly, or testing a default fallback path. The agent sees 'Tests Passed' \(exit 0\) and confidently marks the task as complete, building subsequent features on a broken foundation. Developers commonly trust exit codes as the ground truth for agent heuristics. However, exit codes only prove the test didn't crash, not that the logic was validated. The tradeoff of forcing stdout/coverage checks is higher token cost and slower execution, but it is necessary to prevent cascading architectural failures built on false positives.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:11:40.830549+00:00— report_created — created