A RU Habr author (independent)·Practitioner post·

The AI agent is confidently wrong and the AI checker says all is fine (ИИ‑агент уверенно ошибается, а ИИ‑проверяющий говорит: всё в порядке)

A · Strong evidence A single-author Habr experiment with a fully stated method (state-diff checks, separate LLM judge, 140 runs, paired bootstrap), exact traces and rubric published, and conclusions kept within what the data supports.

Summary based on the full text·Original: about 15 minutes to read

In short

A Habr sandbox post (10 November 2026) reporting a small, carefully documented experiment on a local test bench (Python, SQLite, Ollama). A Qwen3 8B agent handles order cancellations and address changes; code compares the full database against the expected state; a Llama 3.1 8B judge rates only the agent's explanation. The author's hypothesis, that adding "if the answer is obvious, answer directly" would make the agent skip state reads, was not supported. The value is in separating three different failures that a single success rate hides: the agent acted without required clarification and the judge did not catch it, the test demanded a convention the instructions never stated, and the judge rejected a correct answer by inventing a fault.

Key numbers

  • 140completed runs: 7 synthetic scenarios, 10 repeats each, two prompt versions
  • 49/70 vs 48/70joint score (code checks plus judge approval) before and after the prompt change
  • -7.1 to +2.9 pptwo-sided 90% paired-bootstrap interval for the difference, consistent with both worse and better
  • 20runs of the ambiguous-request scenario; the agent cancelled an order without asking in every one
  • 14,3 (14.3 pp)drop in each version's overall score caused by a response-code rule the instructions never explained

As reported by the source.

Read the original on habr.com

Russian·Web page·opens habr.com

What it reports

  • Bench: each run gets a fresh in-memory database with two of the user's orders and one belonging to someone else; tools are get_order, cancel_order, update_address; the server enforces ownership and status; the user ID is fixed server-side so the model cannot spoof it.
  • Ambiguous request ("Cancel the previous one" with two orders and a stale hint): the agent read and cancelled order o1 instead of asking, in all 20 runs of that scenario. Code caught it; the judge approved the explanation because it truthfully described the cancellation.
  • Shipped order: the agent correctly refused and left the database unchanged but returned outcome "denied" where the test expected "shipped"; all 20 runs failed the format check, costing each version 14.3 points. The prompt listed the codes without saying how to choose between them.
  • Timeout after commit: the agent re-read the order and correctly reported it as already cancelled; the judge rejected it twice as "inventing a completed action," with identical answers across three repeated calls.
  • Prompt comparison: unwanted changes 10/70 in both versions; programmatic checks 49/70 vs 50/70; extra judge rejections 0 vs 2; joint score 49/70 (70%) vs 48/70 (68.6%). Paired bootstrap 90% interval for the difference: -7.1 to +2.9 points.
  • State reads were present in 70/70 runs before and 68/70 after; both misses were successful refusals on someone else's order. The author notes this was counted after seeing results.
  • Recommendations: check permitted state changes and required confirmations in code first; confirmation must come from a trusted user interface, not from the model; define response codes explicitly; calibrate any LLM judge against independent human labels before using it as a release gate.

How they got it

A designed experiment with stated parameters (agent temperature 0.4, 8,192 context, eight steps; judge at temperature 0, three identical calls per answer), exact prompts, traces, the judge rubric and the state-check code shown. 185 attempts produced 140 completed trajectories after infrastructure retries. The run log is not attached, so aggregates cannot be recomputed independently.

Limits

  • Seven synthetic scenarios in one domain, small 8B models; not an estimate of real error rates.
  • No power calculation; the mechanism metric (state reads) was chosen after the fact, as the author states.
  • The judge was not calibrated against human labels; runs mixed CPU and an RTX 3060.
  • Not replicated on another machine.

Why it matters for companies

Teams that evaluate agents with a single pass rate, or with an LLM judge as the final gate, will miss exactly the failures shown here. For agents that change data, the reliable check is a code comparison of the actual state change against the permitted one; a judge can only assess the explanation it is shown and can be wrong in both directions. Some "agent failures" are test failures, where the agent is penalised for conventions nobody wrote down. The post is a compact template for agent evaluation design: separate state, contract and explanation checks, and require human calibration before trusting a judge.

Key passages in translation

Russian original

Главная мысль этого разбора состоит в том, что один общий процент успеха смешивает разные проблемы, которые нужно проверять по отдельности.

English translation

The main point of this analysis is that one overall success rate mixes different problems that need to be checked separately.

Russian original

Согласие проверяющего с самим собой не делает его оценку правильной, а использование отдельной модели не превращает её в эталон.

English translation

A checker agreeing with itself does not make its verdict correct, and using a separate model does not make it a gold standard.

Russian original

Модель не должна выдавать такое подтверждение себе: иначе разделение отмены на подготовку и выполнение останется двумя вызовами того же агента.

English translation

The model must not issue such a confirmation to itself; otherwise splitting cancellation into preparation and execution remains two calls by the same agent.

Summary based on the full text. Read the original for the full argument and data.Read the original on habr.com

Tags

Same week

All of Week 46