← Latest papers
💻 computer science

Coding-Agent Numerical Reference Reconstruction and Abstention: A 32-Case KPI Audit

This paper presents a 32-case audit of a coding agent's ability to reconstruct or abstain from deriving numerical KPI references from documentation, demonstrating that while the model consistently withheld or resolved values in most scenarios, the few concordant reconstructions were independently verified against archived inputs to establish a reproducible corpus for studying agent grounding prior to implementation.

Original author: Meshaal Obaid Mouawad

Published 2026-11-24
📖 6 min read🧠 Deep dive

Original author: Meshaal Obaid Mouawad

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of software engineering, a computer program is often judged by how closely its output matches a specific, expected number. This expectation is not a guess; it is a target derived from written rules, financial reports, or official documentation. Before a programmer can say a piece of code is "correct," they must first know what the correct answer is supposed to be. This is the job of a "test oracle," a concept that simply means having a reliable reference point to compare against. However, turning a paragraph of text into a precise number is rarely straightforward. Documents often leave out tiny details, such as whether a year should be counted as 365 days or 365.25 days, or whether a calculation should include every single data point or only the ones that show a loss. When these details are missing, the "correct" number becomes a matter of interpretation. As artificial intelligence tools known as large language models begin to write and check code, a critical question arises: when these digital assistants face a missing detail, do they confidently invent a number, or do they honestly admit they cannot decide?

A recent study by Meshaal Obaid Mouawad at Mississippi State University investigates exactly this moment of decision. The research focuses on a specific type of artificial intelligence agent designed to write code and check financial metrics. The author wanted to see how these agents behave when asked to find a specific number based only on a set of documents that might be incomplete. To test this, the researcher prepared 32 distinct "packets" of information. Each packet contained a specific financial metric, such as how much a portfolio grew or how volatile it was, along with the raw data and the relevant excerpts from official documentation. Crucially, the researcher hid the actual answers and the computer code that usually generates them, forcing the agents to rely solely on the text provided.

The experiment involved running the same AI model twice for each of the 32 cases. In the first run, the model was instructed to act as a procurement specialist; in the second, it was told to act as a corporate finance expert. Both were given the exact same documents and the same strict rule: if the documents did not clearly support a single, specific number, the agent had to state that the answer was unresolved rather than guessing. The goal was not to see if the agents were right or wrong in a general sense, but to observe their behavior when faced with ambiguity. Did the two different "personalities" of the same model agree on what the documents said? Did they both find a number, or did they both stop and say they couldn't decide?

The results revealed a clear pattern of caution and occasional divergence. Out of the 32 cases, 11 produced matching numerical point references, 20 were marked unresolved by both sessions, and one case produced different resolution decisions. In the 11 concordant cases, both sessions found enough information to agree on a specific number, and when the researcher later checked these numbers against the hidden, stored native results, they matched within the pre-specified tolerances. However, there was one case where the two sessions produced different resolution decisions. This case involved a measure of financial loss known as a "drawdown." The documents provided described the calculation but did not specify whether to measure the loss as a simple difference in wealth or as a percentage relative to the highest point the portfolio had reached. The session acting as the procurement specialist (Assessment A) retained two interpretations, noting that the documents supported both a literal wealth-difference expression and a peak-relative normalization. In contrast, the session acting as the corporate finance expert (Assessment B) submitted the literal wealth-difference value as its specific point reference. When the researcher looked at the hidden, original computer code that generated the data, it turned out to use the peak-relative method. However, the study explicitly notes that agreement with a native implementation does not establish that it is the governing reference. Therefore, while the session that gave a specific number matched the native code, the study does not conclude that the session which refused to answer was "right" or that the other was "wrong." Instead, the contrast highlights that the choice between interpretations was unresolved by the documents themselves, and the study records this divergence without adjudicating which interpretation was the correct one.

The study also examined why the agents struggled in the other 20 cases where they both refused to answer. By reviewing the notes the agents left behind, the researcher found that the missing details were often about how to prepare the data before calculating. Sometimes the documents did not say whether to use a sample of data or the entire population, or whether to count a year as 365 days or 365.25. In five specific instances, the researcher manually recalculated the numbers using different rules to show how much the final answer changed. For example, changing the divisor in a calculation or deciding whether to include a zero-value row at the start of a dataset could shift the final number significantly. These examples proved that the agents were not failing because they were confused, but because the documents themselves allowed for multiple valid mathematical paths.

The broader implication of this work is that for artificial intelligence to be trusted in software engineering, we need to understand not just if it gets the right answer, but how it decides to give an answer at all. The study demonstrates that these agents are capable of "grounding" their decisions in evidence, meaning they can point to the specific sentences in a document that led them to a conclusion. When the evidence is weak, they are capable of stepping back and admitting uncertainty, which is a vital safety feature. The research provides a detailed record of 32 specific instances where an AI had to make a choice, showing exactly which documents it read, which numbers it picked, and which times it chose silence. This record serves as a new kind of benchmark for future tools, allowing developers to see if their AI agents are making decisions based on solid evidence or if they are blindly guessing when the rules are unclear.

Ultimately, the study does not claim that the AI is perfect, nor does it suggest that the model is infallible. Instead, it offers a transparent look at the "upstream" part of the process, before a final verdict is ever made. It shows that when the rules are fuzzy, even a sophisticated AI can get stuck, and that getting stuck is sometimes the most honest and useful thing it can do. By separating the act of finding a number from the act of checking if that number is right, the researcher has created a way to inspect the thinking process itself. This allows us to see that the difference between a successful check and a failed one often comes down to a single missing word in a document, and that the ability to recognize that missing word is just as important as the ability to do the math.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →