---
title: "The Agent Said It Was Done. The Database Disagreed."
description: "ThinkingBox grades AI agents on the terminal database state and side effects they leave behind rather than their tool calls or final responses, running each of 507 stateful business workflows 20 times from a clean backend via isolated MCP sessions."
url: "https://swe.quest/articles/the-agent-said-it-was-done-the-database-disagreed-7d8a074883d7b348"
canonical: "https://huggingface.co/blog/microsoft/thinkingbox"
source: "Hugging Face"
published: "2026-10-03"
difficulty: "medium"
kind: "Research"
reading_minutes: 16
tags: ["evals","ai-agents","llms"]
---

# The Agent Said It Was Done. The Database Disagreed.

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-10-03, 16 min read, Research. Original: [https://huggingface.co/blog/microsoft/thinkingbox](https://huggingface.co/blog/microsoft/thinkingbox)

## Summary

ThinkingBox grades AI agents on the terminal database state and side effects they leave behind rather than their tool calls or final responses, running each of 507 stateful business workflows 20 times from a clean backend via isolated MCP sessions. Among failed attempts, 67% still terminated cleanly with state-changing calls and no tool errors, yet had wrong field values, extra effects or missing effects. Breadth and consistency diverge: Kimi-K3 solves 94% of tasks at least once but only 13% on all 20 runs, while Claude Opus 5 and 5.5 pass 241 tasks 20/20, and cost per dependable task ranks models differently from cost per single success. About 80% of failures are tool-handling and error-recovery problems, so checking terminal state, classifying retryable errors, trimming tool surfaces and gating irreversible changes are the recommended mitigations; the benchmark runs through OpenEnv on Hugging Face.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Model Context Protocol (MCP) ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))
- pass@k metrics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

ThinkingBox, ThinkingBox-Bench, OpenEnv, MCP, Hugging Face, OpenRouter

## Related posts

- [IBM and UC Berkeley Diagnose Why Enterprise Agents Fail Using IT-Bench and MAST](https://swe.quest/articles/ibm-and-uc-berkeley-diagnose-why-enterprise-agents-fail-using-it-bench-and-mast-8ef90262771faa1d.md): Hugging Face · 2026-02-18 · Medium · 10 min read · AI agents, Evaluation, LLMs, SRE
  Applying the MAST failure taxonomy to 310 annotated ITBench SRE agent traces shows that frontier models fail in isolated ways (Gemini-3-Flash averages 2.6 failure modes per failed trace).
- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored.
- [Inside DigitalOcean Simulations: how user simulation, execution, and validation work](https://swe.quest/articles/inside-digitalocean-simulations-how-user-simulation-execution-and-validation-f1c7f6f7ce54de3d.md): DigitalOcean · 2026-10-29 · Medium · 16 min read · Evaluation, AI agents, LLMs
  DigitalOcean Simulations evaluates agents over whole multi-turn conversations instead of single responses.
- [How to build and maintain an agentic evaluation](https://swe.quest/articles/how-to-build-and-maintain-an-agentic-evaluation-c4d1ca50835658f2.md): Hugging Face · 2026-11-23 · Medium · 35 min read · Evaluation, AI agents, LLMs, Open source
  Agentic evaluations depend on far more than the model: task instructions, agent harness, environment, verifier and traces can each move a score, with harness changes alone shifting Terminal-Bench accuracy by up to 29.9 points.
- [Turning Database Grading into RL Rewards: Post-Training Agents with ThinkingBox](https://swe.quest/articles/turning-database-grading-into-rl-rewards-post-training-agents-with-thinkingbox-9126975f97c5fba4.md): Hugging Face · 2026-10-22 · Hard · 18 min read · Model training, AI agents, Evaluation, LLMs
  Executable checks on terminal database state, originally built to grade agents in ThinkingBox-Bench, double as binary RL rewards for post-training tool-using agents.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
