Overview › 9Verification › b.Confirming completion
Confirming completion
Confirm the task is actually done before stopping. 3 optimizations.
- i.
Make the final answer reliably extractable: state the format, extract robustly, force an answer at the limit
State the required answer format in the prompt, and make the harness extract it robustly: strip markers, normalize numbers, detect refusals, and force a best-effort answer when the loop ends on a budget rather than returning nothing.
- ii.
Triage false success with a cheap trained detector, not an LLM judge
Train a lightweight text classifier (TF-IDF with logistic regression) on 50-100 labeled runs to flag likely false successes for review.
- iii.
Verify completion against the environment before the agent stops
Never take the agent's own report that it finished.