Mahal Systems

Overview › 9Verification › b.Confirming completion

Confirming completion

Confirm the task is actually done before stopping. 3 optimizations.

  1. 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.

    Better quality

    Tier 2 · reliability · changes control flow, prompt · structured output agents · 4 sources

  2. 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.

    Better qualityLower costFaster

    Tier 2 · reliability · changes control flow · judging agents · 6 sources, 6 measured

  3. iii.

    Verify completion against the environment before the agent stops

    Never take the agent's own report that it finished.

    Better qualityHigher costSlower

    Tier 2 · reliability · changes control flow · any agent · 22 sources, 9 measured

Before you go...

Build better agents, weekly

Our latest research, performance benchmarks, optimization strategies, and updates around AOT development.

One email a week, nothing else. Unsubscribe anytime.