Maria Romaniuk

I'm a software engineer with a multi-disciplinary background across engineering, design, and product

← All posts

How To Make Your Agent Time Travel

Why date filters can't stop web agents from cheating on historical evals, and how to build a harness that can

To test a coding agent on an old bug, you check out the commit from before the fix. To test a web agent on an old question, there is nothing to check out: the internet only exists in the present.

Run a research agent today on a question from last month, and the same URLs it would have visited then may now contain the answer. Your eval dashboard reports a breakthrough. In reality, the agent read tomorrow’s news.

How one leak breaks an eval

On October 31, a forecasting agent was asked whether US payroll growth would average under 100,000 jobs across September and October. The answer turned out to be no.

The agent running live that day gave “no” an 8% chance. When researchers later replayed the same question with the same cutoff, the agent gave it 94%. During the replay, a search result surfaced the Bureau of Labor Statistics release from November 6, which reported that October payrolls rose by 165,000 and revised August and September up by a combined 84,000. The agent had read a report that would not exist for another six days.

Payroll forecast: live run vs replay

Payroll forecast: live run vs replay

The Brier score, a forecasting error measure where 0 is perfect, went from 0.8464 to 0.0036. Anyone comparing agent versions by score alone would conclude the new run reasons far better. Nothing about its reasoning changed.

This is the quiet failure mode of evaluating tool-using agents. An agent writes its own queries, opens URLs and follows citations, pulling in information you never put in the prompt. In production, that live access is the point. In an eval, every tool call is a door for hindsight. The same model with the same prompt can look much smarter simply because the web changed between runs.

Why date filters fail

The first fix most people try is a date filter: Google’s before:2026-10-01 operator, or a published_date or end_date parameter on a search API. It looks like a clean boundary. It fails in three predictable ways:

  • Pages are edited in place. An article published on September 29 gets updated on November 6 with the election winner or the earnings figure. The URL and the original publish date stay the same, so the filter still returns it, now with the answer inside.

  • Snippets come from today’s crawl. Search indexes are rebuilt continuously from the current web. Even if the agent’s fetch tool returns an old archived copy, the title and snippet on the results page already carry the updated headline.

  • Old pages load live content. An archived page can still render live widgets: price tickers, scoreboards, “latest news” sidebars that pull post-cutoff data into a historical snapshot.

The forecasting platform Prophet Arena measured how often this happens. Across 196 historical reruns, Google’s before: operator surfaced post-cutoff information in 129 runs, a 66% leak rate. In one run with an October 1 cutoff, a search result showed an election result from 37 days later. In 47 of the 196 runs (24%), the leaked information measurably improved the forecast.

Prophet Arena time-gated search benchmark, as reported in the original article

Prophet Arena Time-Gated Search Eval, December 2026

Those are two separate problems. An agent can see future data without using it, or see it and get an unearned score boost. Date filters allow both. Prophet Arena found the same pattern across other search APIs’ date parameters: leaks helped forecasts in roughly 3% to 54% of runs, depending on the provider.

Why coding agents pulled ahead

This is more than a forecasting quirk. It may help explain why coding agents improved so quickly while open-world web agents lagged.

Coding agents work in a deterministic world. You pin a repository at a commit, hand the agent a bug, let it edit files and run a test suite. Benchmarks like SWE-bench formalized this with tests that must go from failing to passing while existing tests keep passing. Because the environment is frozen, you can swap models, cut token budgets or refactor your harness and know whether the change really helped.

Even there, the future can leak in. In one SWE-bench Verified run, the agent ran git log --all and found later commits that fixed the exact bug it was working on. The benchmark’s containers had removed the Git remote, but the future history was still reachable locally. NIST’s Center for AI Standards and Innovation found related cheats in its own SWE-bench Verified runs, where agents looked up newer versions of the code online. Checking out the old files is not enough while later history is still within reach.

Web agents face the same problem on a far messier surface. Some benchmarks, such as BrowseComp-Plus, sidestep it by freezing a fixed document collection. That keeps runs comparable but is not the real web. To test agents on real historical decisions, without waiting months for outcomes to resolve, you have to rebuild the web as it stood before the outcome was known.

The solution: seal the harness at a cutoff

You cannot bolt a date parameter onto a live search tool and call it time travel. The whole execution environment has to be isolated around one exact cutoff instant, with three controls.

Time-gated eval harness · 3 controls

Time-gated eval harness · 3 controls

  1. Pin the clock. Every process in the sandbox should read the cutoff as the current time, so phrases like “today” or “last week” resolve correctly. Use a full timestamp with a timezone (2026-10-31T11:13:00Z), not a loose date: a lot can happen between 9 a.m. and 5 p.m. on release day.

  2. Seal the network. Block all direct internet access. If the agent can shell out to curl, hit an RSS feed or call a secondary connector, it will route around the time gate, often without anyone noticing.

  3. Time-gate both search and fetch, to the same instant.

  • Search must query an index whose text, titles and snippets reflect only what existed at or before the cutoff.

  • Fetch must resolve every URL to a capture from the cutoff or earlier. If none exists, it returns a clean miss, never the live page or a later capture. Some archive lookups, such as the Wayback Machine’s availability API, can return a snapshot taken after the requested time, so check the capture date on every fetch.

The two retrieval layers must agree. A clean archive behind a live search index still leaks through the snippets; a historical index that hands the agent live URLs leaks on the first click.

Choosing or building the time-gated search layer

Every time-gated search setup trades off two qualities:

  • Leak-free: nothing from after the cutoff gets through, in snippets or in fetched pages.

  • Coverage: everything the web held at the cutoff is still findable.

Blocking leaks is easy if you return almost nothing. The hard part is blocking the future while keeping the past. An engine that is clean but thin starves the agent, and its scores drop for the opposite reason.

How to measure any option

Prophet Arena’s benchmark gives a good template. Because it logs every live forecasting run, it knows exactly what the agent predicted on the day each question was asked. It replayed 196 resolved questions across nine search setups, holding the model and harness fixed, and audited 73,007 retrieved documents for leaks. A multi-stage review with a blind final judge confirmed 2,902 real leaks.

Use four measures:

  1. Gap to live: the replay’s average Brier score minus the original live run’s. Zero means the replay saw what was knowable at the time. Above zero means poor coverage starved the agent. Below zero almost always means leaks.

  2. Helpful-leak rate: the share of runs where a verified leak improved the forecast. The best setup in the benchmark, Epochal’s Time Portal, reached 0%, with a gap to live of about +0.0001 Brier.

  3. Search efficiency: how much each search improves the answer, and how many searches a run needs. Every extra call adds a model turn, latency and thousands of noisy tokens.

  4. Archive depth: the share of pages the agent opens that are served as they stood at the cutoff. Snippets are only the first hop; real research opens the article, then the filing or data table it cites. The strongest archive tested served about 80 of every 100 opened pages; in the weakest, under 40.

Reading the gap-to-live measure

Reading the gap-to-live measure

Run these on your own question set before trusting any vendor’s numbers, including these. The top scorer, Epochal, sells the engine that was tested and promoted the results publicly, so treat one benchmark as a starting point, not a verdict.

What the time machine cannot fix

Sealing the environment controls what the agent can look up. It does nothing about what the model already knows.

If a model was trained on data from after your cutoff, it may simply remember the outcome: the election winner, the jobs number, the earnings surprise. Pinning the clock doesn’t erase its training data. The agent can produce a perfectly clean search trace and still answer from memory.

Two ways to handle this:

  • Use questions that resolved after the model’s training cutoff. This is the only fully clean option. It limits how far back you can test, so the question pool shrinks as models get newer.

  • Measure how much the model knows without tools. Run every question with search turned off. If the model scores well with no retrieval, the question is contaminated for that model, whatever the time gate does.

A leak-free search layer is necessary for honest historical evals, but it is not sufficient. Report the model’s training cutoff next to every historical result.

Three checks before you trust a historical eval

Even with a sealed harness and a clean search layer, an eval can still fool you. Run these three checks first.

  1. Unit-test the time gate. Pick an event with a hard release time, such as a jobs report or an earnings release. Query just before it and confirm the outcome is absent from both snippets and fetched pages. Query just after and confirm it appears. If the gate passes only one side, it is either leaking or broken.

  2. Run three modes. Run each task with no search (exposes what the model already knows), with time-gated search and fetch (your real eval), and with unrestricted live search (proves the task would leak if left unguarded). A good eval shows a clear gap between the second and third modes.

  3. Separate retrieval drift from code changes. When a change to your prompt, memory or harness moves the score, replay the saved tool responses from the earlier run first. That tells you whether the agent reasoned differently, or just ran different queries and got different results.

Three-mode diagnostic · what each mode reveals

Three-mode diagnostic · what each mode reveals

What a deterministic web unlocks

Once you can freeze the web at any moment without losing coverage, history stops being noise and becomes a test suite.

  • Honest CI for memory and retrieval. When you swap a reranker, change context compaction or upgrade the agent’s memory store, the eval measures your change, not this week’s news cycle.

  • Faster feedback on real-world tasks. Instead of waiting weeks for live outcomes, you can test against events that have already been resolved, then confirm the gains on live questions.

  • Reproducible debugging. When a research agent makes a bad call in production, you can return to the exact moment it ran, see what was knowable then, and test your fix against the same world.

Coding agents became reliable once engineers could check out any commit and run deterministic tests. Pinning a moment, sealing the network and serving a versioned web state gives open-world agents the same foundation. The next time your agent jumps 20 points on an eval, you’ll know whether it earned them.

Sources