Every Call Passed and Nothing Got Done

Every call passed and nothing got done: Funnel's Reef agent reran one SQL query 254 times. Cap equivalent calls and score the whole task, not each 200.

When every tool call returns success and the task still is not done, the harness is missing a loop cap and an exit condition. Funnel’s Reef agent hit that on a 20-row SQL preview, executing the same query 113 times in one run and 254 times in another. Treat each step like a test-station sequence: say what a complete result looks like, bound repeats, and score the whole task.

A test sequence that loops on a passing step forever is a broken sequence.

That’s why every step on a test station has two things written next to it: how many times it may repeat, and what ends it. Pass, fail, or out of retries. Nobody ships a sequence where a step can pass, decide it isn’t satisfied, and run again with no ceiling.

Agents ship that way all the time.

Why would an AI agent execute the same successful query 254 times?

Funnel runs an internal data agent called Reef. On October 28 they published what an A/B test between two models taught them about the harness.

Reef is not a toy chat wrapper. Funnel describes three layers of company knowledge: a company world model as a graph, structured operational data with financial, SaaS, and CRM metrics, and unstructured customer conversations from which they extract structured claims. The agent has to navigate that mix, including deeper follow-ups and interactive dashboards they call explorations.

They ran a randomised A/B test of GLM-5.2, an open-weight model, against Claude Opus 4.8. Each new user task was assigned a model at random, and that model stayed for later turns on the same task. In two separate runs, GLM executed the same successful SQL query 113 times and 254 times.

The tool only exposed a 20-row preview. The agent wanted more data. It did not recognize the limit, so it ran the query again. And again. Every call succeeded. As the post puts it: a successful tool call is not necessarily a useful tool call.

That is the station failure I have seen with a continuity test that returns in-spec forever because the probe never lifts. The meter is happy. The board is not finished.

Why can faster model calls still make the task slower?

The per-call numbers looked great. Across Funnel’s observation window, GLM averaged 7.8 seconds per model call against 18.1 for Opus, more than twice as fast.

End to end, the picture flipped. GLM made 66 percent more tool calls, averaging 19 per task against Opus’s 11. Despite faster individual responses, GLM took 14 percent longer to complete those tasks.

Fast steps. Slow sequence. Same thing you see when a station’s cycle time looks good and the yield report says otherwise.

Funnel also notes similar looping tendencies with Kimi K2.6 and Qwen3.8 27B, and says Qwen is twice as aggressive on tool usage compared to GLM. They do not claim those models hit 254 repeats. The point is the pattern: some models spend more successful calls to get the same work done.

If you only plot seconds per call, you pick the loopy one. One run is an anecdote when you report a single latency. A single success code is an anecdote too.

Is this a model problem or a harness problem?

The easy read is “that model is dumb.” Funnel didn’t stop there, and neither should you.

They found saved agent instructions pointing at Athena tables and fields that didn’t exist. Tool contracts that were ambiguous. No safeguard against repeated calls. Instructions about data retrieval that were not explicit enough. Opus got around most of that. GLM ran straight into it.

That’s a fixture problem, not a DUT problem. A good fixture makes it hard for the unit under test to fool the station. A good harness makes it hard for the model to fool itself. The sandbox is the fixture, not the record: you still need the fixture to tell the truth about what happened.

Funnel’s line is the one I would tape above the eval board: agent harnesses matter as much as model intelligence. Different models interpret the same instructions, tools, and stopping conditions differently. Replacing a model exposes architectural assumptions that were previously invisible.

They even say GLM is in a better place now, and that they now use GLM-5.3. That does not retire the harness work. A later model can paper over the same missing pagination flag. The next swap will find it again.

How do you stop an agent from looping on a passing step?

Funnel’s three recommendations map almost one to one onto a test sequence.

Say what a pass means. Make the tool contract explicit. A preview is not a complete result. If there are more rows, say so and show how to page. On a station this is the spec limit next to the measurement. Without it, “passed” means “returned.”

Cap the loop. Detect repeated equivalent calls. Set an execution budget for the task. Validate saved instructions against the real schema before the run, the same way you’d check the test program matches the board revision. A step that has run the same inputs ten times and gotten the same output ten times is done, whether the agent agrees or not.

Measure the whole sequence. Funnel lists useful task completion, correctness, latency, tool efficiency, billed costs, and the effects of input caching. Not just “every call returned OK.” A station that logs every step green and never prints a final verdict isn’t a tester.

This is the same hole I keep hitting in trajectory evals for kagent. A subset check on tool names will pass a run that called run_sql 254 times, because the name is allowed. An allowlist does not count repeats. Tests lying to your agent is the sibling failure: a green result the agent should not trust. Here the calls are green and the task is not done.

If you score risk or confidence per call, remember that a 200 is not a calibrated “useful” either. Jev’s reliability curve is about whether a high score means what you think. A successful SQL response is the same kind of scoreboard. It can be confident, fast, and still stuck.

What harness checks would I add today?

If you run agents behind a gateway or a harness you control, do not wait for 254. Put a cheap counter in the path and fail on purpose.

Use this as a test plan, not a vibe:

  1. Name the unit of work. One user task, one budget. Funnel kept the model sticky across later turns on the same task. Your counter has to use that same boundary, not “this HTTP request.”
  2. Define equivalent. Same tool, same arguments, same result hash. If the tool returns a preview, the hash will match and that is the point.
  3. Set a repeat ceiling before the run. Pick a number on purpose. Three identical hits is already a smell. Ten is a bug. 254 is a missing spec.
  4. Fail the task, not just the call. The 254th call still returns 200. The sequence should not. Alert, stop, and keep the trace.
  5. Label partial results in the tool response. If the payload is a preview, the body has to say so and point at the next page. Read your tool descriptions for the word “preview.” If a result can be partial and the tool doesn’t say so in the response, you’ve built the loop yourself.
  6. Validate saved instructions against schema. Funnel’s dead Athena fields lived in prompts, not in the warehouse. A pre-run check would have caught them without waiting for a model to notice.
  7. Score the sequence. Task complete, answer correct, wall time, tool-call count, billed tokens, cache hits. If per-call latency improved and task time got worse, the eval should say that in one line.
  8. Re-run the A/B after the cap. Funnel’s swap of GLM and Opus is what made the gap visible. After you add the ceiling, run both models again. If the loopy model now finishes, the harness was the defect. If it still thrashes until the budget trips, you have a model-plus-harness problem, and you can say so with numbers.

It’s a cheap counter. It catches 254 before it becomes 2,540.

Then go look at how you grade a trajectory and how you report more than one run. A passing call is a step. It is not a verdict.

Frequently asked questions

Why would an AI agent repeat the same successful tool call?

Because nothing told it the result was complete. Funnel’s Reef tool returned a 20-row preview, the agent wanted more rows, and it reran the same SQL query. Each call succeeded, so no error stopped the loop. The harness has to say when a result is a preview, expose pagination, and cap repeated equivalent calls.

How do you stop an agent from looping on a passing step?

Treat it like a test sequence. Give each step a repeat limit and an exit condition, detect repeated equivalent calls, and set an execution budget for the whole task. Then measure whether the task finished correctly, not whether each call returned 200.

Is this a model problem or a harness problem?

Mostly harness. Funnel found saved instructions that referenced Athena tables and fields that did not exist, ambiguous tool contracts, and no guard against repeated calls. Opus papered over those gaps and GLM ran into them. Swapping models is what made the gaps visible.

Why can a faster model still finish the task slower?

Per-call latency is not task latency. In Funnel’s A/B test, GLM averaged 7.8 seconds per model call against 18.1 for Opus, but it made 19 tool calls per task against 11 and took 14 percent longer end to end. Extra successful calls still cost time.

What should you measure instead of per-call success?

Useful task completion, correctness, end-to-end latency, tool-call count, billed cost, and the effect of input caching. Funnel’s write-up is explicit: a successful tool call is not necessarily a useful tool call.

Disagree or have a war story? Reply on X