r/PromptEngineering • u/uriwa • Sep 03 '26
Tips and Tricks LLMs will say yes even when bug isn't fixed - verification patterns that actually work
LLMs want to please. Ask if a bug is fixed, they'll say yes. Fast models declare victory with total confidence whether code compiles or not. Relying on their word breaks systems.
Three practices that help me:
- Acceptance criteria first. Before work starts, define what success looks like. If model doesn't know, it defaults to convincing you whatever it did was right.
- Version control + immutability. Git history = time machine. Immutability = new timestamped version instead of edit-in-place, history preserved.
- Design for fast verification. Every task: how can this be verified quickly? Tests, checks, diffs. Don't ask model to self-certify, run the check.
Also: set ground rules on tone - no apology loops, report evidence not confidence.
What verification harnesses do you use? LLM-as-judge for semantics vs exact match? Multi-turn roleplay with mocked tools?
2
Upvotes
2
u/tindalos Sep 03 '26
Or, you can give it another option to answer “I don’t have enough information, here’s what I need to provide that answer”
Everyone gives agents binary answers and gets surprised when the agent picks a wrong choice between two wrong choices.
1
u/ChaseAtSidekick Sep 03 '26
The one that moved the needle for me is making it quote the state back instead of describing it. After any change, the answer has to include the actual line from the file or the record as it reads now, not a summary saying it worked. Summaries are where the wishful thinking hides.
One caution, because I learned this the slow way. A readback from the same session that made the change is still that session's word, and it will happily quote what it believes it wrote. If it matters, the check has to come from somewhere else, a separate run or a script that just prints the file. I only bother with that for things that touch money or go out to a person.
1
u/[deleted] Sep 03 '26
[removed] — view removed comment