DEV Community

Cover image for I Put the Answer, the Date and the Passage in Front of the Agent. It Fetched Anyway.
AheadKit
AheadKit

Posted on

I Put the Answer, the Date and the Passage in Front of the Agent. It Fetched Anyway.

The bet was simple enough to sound obvious. If the first thing the agent sees already carries the answer, the date it is good from, and the exact sentence it came from, then it should not need to fetch the page. That was reidmarlow's suggestion in the comments on my last piece, and it was a good one: put the answer, its effective date, and the source passage in the initial view, fetch only when the question asks for a newer date or one of those fields is missing, and then settle whether replacing the summary with the fetched passage beats appending the full body next to it. I ran it on the same twelve jobs as the last piece. The agent fetched on all twelve, in both arms, and the date field never stopped a single one.

The setup, so the numbers mean something. Same twelve web-shape jobs as the fetch-on-demand piece, same small local model, same three turns per job. The only change is the initial view: every search result now comes back as a card carrying the value, its effective date where one exists, and the exact passage it came from. Two new arms. In replace, fetching a page swaps the summary for the fetched passage, so the summary leaves the conversation. In append, the fetched body joins the summary and both stay. The earlier arms for comparison: the fetch-on-demand arm from last time solved 10 of 12 at 1,944 tokens a task and fetched on every job, and the one-line-summary middle arm solved 10 of 12 at 1,755 tokens a task and fetched on 10 of 12.

Here is the table, one run each, twelve jobs per arm.

Arm Solved Tokens a task Fetches a task Seconds a task
Replace 10 of 12 1,436 1.00 153.9
Append 9 of 12 1,960 1.00 80.0
Fetch-on-demand (last time) 10 of 12 1,944 1.00 234.7
One-line summary (last time) 10 of 12 1,755 0.83 57.3

Three problems, because each one points somewhere different.

1. Replace wins, and the win lives in the third turn.

Replace solved one more job than append and cost 524 fewer tokens a task, about 27 percent less. The gap is not spread across the run. It sits in turn three, the turn after the fetch. In replace, turn three costs 413 tokens on average. In append, it costs 937. That is the price of carrying both copies forward: the summary plus the full body, both in the window, on every turn after the fetch. The first two turns cost the same in both arms, 239 and 784 tokens, because the fetch happens at turn two and nothing has diverged yet. After that, append pays rent on two copies and replace pays on one. Replace is also the cheapest arm of the four now, under the one-line summary's 1,755 and well under fetch-on-demand's 1,944. If you are going to fetch, swapping the summary out beats keeping it around, on tokens and on solved rate both.

2. The enriched view changed nothing about the fetch.

This is the finding I did not expect, and it is the one that matters most. The initial view in this run already held the answer, the date, and the passage, and the agent fetched on 12 of 12 jobs in replace and 12 of 12 in append. The same gate, the same instruction, the same model, and the same result as the arm with the thin five-field summary: it fetched every single time. The date field never prevented a fetch. The one job where the date should have mattered most was w02, asking for the Team plan price. Its initial view carried two cards: the right one at 12 dollars with an effective date of November 2026, and a stale 8-dollar card for a different plan with no date at all. The agent fetched the page before answering, in both arms, and answered 12 dollars correctly in both. The dateless card did not stop it and the dated card did not satisfy it. The fetch is not a decision the agent makes from the evidence in front of it. It is a habit the instruction installs, and the instruction says to fetch when unsure, and the agent is always unsure. A richer first view does not fix a gate that never says no. If the date alone would have caught the stale 8 dollars, this run cannot say so, because no arm was run with the date as the only change, and the agent never once let the date do the deciding. That is the honest limit, and it is also the finding: the field is not the gate.

3. The verifier is still grading the wrong thing.

Two of the three unsolved jobs in the append arm, and one in replace, were lost to the checker, not the model. On w01, asking for the latest Noteleaf version and its release date, the answer came back as an object holding both facts, version 3.2.0 and date 2026-10-14, in both arms. The verifier only reads the value field, so it marked the job unsolved twice. On w11, replace answered with a full sentence carrying both the version and the date and solved it; append answered with the version alone, 2.7.1, and the date never made it into the answer even though both copies were in the window. The one genuinely wrong answer in the set was append on w04, which answered "dockside cache clear" against a gold of "--no-cache". So the real gap between the arms is smaller than the score says: replace 10 of 12, append 9 of 12, with two of append's three misses being verifier artefacts and one being a real miss. The token gap is the solid part. The solved-rate gap is one job, and one of the jobs behind it is the checker, not the arm.

A note on the seconds, because the table invites the wrong reading. Replace looks slower than append, 153.9 seconds a task against 80.0. Most of that gap is one job: the first replace task took 882 seconds after the local model server died mid-run and had to be rebuilt from the raw log. Seconds here are server weather, not shape, the same caveat as the last piece. Do not read speed into them.

So here is the claim, and it is the one you can argue with: if you fetch, replace the summary, do not append to it. Keeping both copies costs 524 tokens a task and solves fewer jobs, and the saving is concentrated exactly where you would expect it, in the turns after the fetch. But the bigger claim is the one the run keeps making and I keep underlining: the fetch-on-demand gate is not a gate. It fetched on all twelve jobs with a thin summary, and it fetched on all twelve with the answer, the date, and the passage already in front of it. Until something in the loop can say no to a fetch, every arm is just a different way of paying for the same twelve fetches. The next run I want is the one that makes the gate earn its name: a job where the initial view is provably complete, and the only question is whether the agent trusts it enough not to fetch.

What would it take for you to trust the first view and skip the fetch? Not a better summary, a better reason to believe it. I would like to know what that reason looks like on your side, because on mine the agent has now fetched thirty-six times out of thirty-six, and the evidence has never once been the thing that stopped it.


P.S. Everything I write stays free — that part doesn't change. But if this one was worth something to you, you can buy me a coffee ☕ (one-time or monthly, both work). It covers the API credits and hosting behind these experiments — and honestly, it's also the nudge that gets the next one started on the evenings I'd otherwise skip it. — Salam

Buy me a coffee

AheadKit on Gumroad — Beginner-Friendly Books & Packs

Top comments (0)