On this page
News Agent Evaluation: Don’t Keep the Answer Key in the Workspace

News Agent Evaluation: Don’t Keep the Answer Key in the Workspace

News Agent Evaluation: Don’t Keep the Answer Key in the Workspace

News agents may be able to create correct answers without performing the search your test intends to measure. Placing the expected answer in a file alongside the task means the final output can’t be used to assess if the search worked.

Together AI open-sourced Hurdle on November 25, 2026. Announcing the release, they described running Claude Code and Codex on API tasks, recording and scoring the runs using code checks or an LLM judge. For teams evaluating news agents, the relevant question for the grader would be what evidence they have to confirm the search took place.

An agent can provide the correct answer to a question using the wrong method to get there

For example, consider a constructed test about the fictional Alder Harbor. The test asks an agent to use the supplied news search tool to identify which berth has reopened and cite the supporting report. A controlled search response says “Berth 2 reopened and the rest of the harbor remained closed”.

The test also contains a file called expected.json which contains the correct answer. An agent could simply read expected.json and provide the correct answer to the test without even performing the search. Therefore, a grader assessing only the answer provided would accept an outcome where the agent has simply read the answer from the reference file, as opposed to performing the correct search.

Agents don’t need to look for an answer key to encounter this problem. Running broad file read requests could also potentially expose grading material. Renaming the file is not as effective as removing the file from the agent’s environment.

Keep Instructions Separate From Grading Materials

Provide agents with the question, tool instructions and output requirements. Instruct the agent to look for the answer using the tool provided. The grader should evaluate the output and answer outside the agent’s environment.

Example: For the Alder Harbor case, allow the agent to perform the test search to retrieve the expected result. The grader can then evaluate the answer given by the agent against the expected claim. The agent should not have access to a second copy of the expected result.

Note: Also check other directories besides the working directory. These may include mounted directories, starter files and inherited conversation history. If the process can access the parent directory, moving expected.json to a neighboring directory does not establish separation.

Local agents run with the user’s file access. Choose an execution mode that best fits your scoring intent and check the files exposed to determine what the agent can access.

In Hurdle, local runs cannot block or inspect API requests. Sandboxed runs can do both.

Publish the success criteria for the task. Asking for a supporting citation is part of the assignment. Supplying the reference citation before the search is not part of the assignment. Hiding the requirements will not hide the answer and will only make it more difficult to understand failures.

Use the returned news articles as the basis for your evaluation.

Webz.io’s News Search API allows users to perform natural language queries to retrieve articles and relevant content. Response fields include the article identifier, URL of the article, the date the article was published, and a relevant passage from the article. Using these, the evaluator can compare and verify the citation provided against the claim.

In the example with Alder Harbor, the evaluator would need to check that a search was performed and that the returned passage supports the reopening of berth two. It would also be correct to reject an answer claiming that the entire harbor reopened.

Use controlled responses for this test to avoid obscuring workspace access issues when live coverage changes. Coverage and relevance of the live retrieval trial can be assessed separately. The controlled case answers the question of whether the agent can perform this task under the given conditions.

Prove that the grader rejects the shortcut.

Set up a negative control with the search unavailable and no answer provided to the agent. An answer must not pass the retrieval task without a recorded successful search, and the grader should record the missing retrieval evidence.

Also try providing a correct answer with no search to see if it passes.

If the answer passes, update the grading rule before comparing models or prompts.

After fixing the fixture, do a normal run and check the recorded search along with the final citation. Retain the fixture version with the result so an earlier score earned under the exposed-answer setup cannot be presented as a result from the corrected test.

Subscribe to our blog for more news and updates!

By submitting you agree to Webz.io's Privacy Policy and further marketing communications.

Footer Background Large
Footer Background Small

Power AI with Web Data

icon

Ready to Explore Web Data at Scale?

Speak with a data expert to learn more about Webz.io’s solutions
Speak with a data expert to learn more about Webz.io’s solutions
Create your API account and get instant access to millions of web sources
Create your API account and get instant access to millions of web sources