Stop Claude Code From Declaring Victory Before Actually Fixing the Problem
Implemented · by Mehrad Arbab · updated
Source-linked: the author links a source to inspect. PhynixClub has not independently verified the results.
The problem
AI coding agents often consider a task complete when existing tests pass. But passing tests doesn't necessarily mean the original problem has been solved.
Incomplete test coverage, incorrect assumptions, and misleading success signals can make an unsuccessful implementation appear successful.
The solution
Introduce an evidence-based verification workflow before allowing an AI agent to mark a task as complete.
1. Reproduce the original problem.
2. Identify the root cause.
3. Implement the smallest effective solution.
4. Test the original failure scenario.
5. Test relevant edge cases and regressions.
6. Report verified results separately from assumptions and remaining uncertainties.
Source & evidence
- Repository: promptfoo/promptfoo
Prompt for AI agents
Before marking any engineering task as complete:
- Reproduce the original failure.
- Identify and document its root cause.
- Implement the smallest effective fix.
- Verify the original scenario independently.
- Check relevant edge cases and potential regressions.
- Provide concrete evidence of successful execution.
Separate your final report into:
IMPLEMENTED
VERIFIED
UNVERIFIED
REMAINING RISKS
Passing existing tests alone is not sufficient evidence of success.
Never claim completion without supporting evidence.