The Empty Shelf, Audited: When Program Libraries Should Gate Synthesis

A new study examines when missing documentation justifies declining a coding task.

Why Better AI Needs Better Stopping Rules
Artificial Intelligence · Computer Science · Software Engineering
Why Better AI Needs Better Stopping Rules
Knowing when to stop requires evidence about when generation is likely to fail.
2026

A new study examines when missing information justifies declining a coding task, and why those decisions need fresh evidence as AI systems change.

I. The Meaning of an Empty Shelf

Before a coding assistant writes its first line, it may search for something that makes the problem easier: documentation, an existing implementation, or a record of an earlier solution. Sometimes that search comes back empty. The machine then faces a deceptively difficult decision. Should it attempt the task using what it already knows, or stop before spending resources on an answer that may fail? In The Empty Shelf, Audited, a preprint posted on October 9, 2026, Aneesh Durai and colleagues at Daice Labs examine what evidence could justify that choice. Their starting point is a distinction that is easy to overlook. Missing information and missing ability are different things.

Consider a coding assistant asked to connect an application to an unfamiliar software service. It searches its library but finds no documentation explaining how the service expects requests to be formatted. That absence could matter enormously if the service follows unusual rules. Yet the assistant might still succeed if the task relies on conventions it already knows. The unsuccessful search tells us something about the available reference material. By itself, it tells us much less about whether the assistant can produce working code.

The researchers call the crucial relationship “support and failure linkage”: the difference in failure rates between tasks that lack relevant library information and tasks that have it. If both groups fail equally often, identifying the unsupported group offers no advantage for predicting failure through support status alone. Even a perfect detector of missing information cannot create a relationship that does not exist. Declining those tasks would reduce the number of attempts, but it would not improve the success rate of the remaining work. The paper, which has not been peer reviewed, builds its framework around this requirement: a reason to stop must be connected to measured outcomes.

01 What does an empty shelf tell us?
Missing information becomes useful for deciding to stop only when it predicts a higher failure rate.
An empty search is not a failure predictionMissing library information becomes useful for deciding to stop only when it predicts a higher failure rate. 1. What does an empty shelf tell us? A search result describes available information. No relevant library information The search finds no useful support. Measure what happens on real attempts Compare supported and unsupported tasks. Similar failure rates Missing support does not separate likely failures. Higher unsupported risk Missing support may help identify likely failures. No basis to stop from this signal alone A candidate signal Further checks are required. The key is the link between missing support and failure.
II. When Information Changes the Outcome

Establishing that connection requires care. Tasks with poor documentation may also be inherently harder, making it difficult to tell whether missing information actually causes failure. A statistical association can help predict outcomes without explaining what produces them. To investigate whether library material could directly improve generation, the researchers needed to change the information available while keeping the task and model fixed. That would let them distinguish the benefit of useful evidence from differences between easy and difficult assignments.

In one controlled experiment, they used a small, locally trained neural network with roughly 396,000 parameters to generate short Python programs. Across 720 confirmatory tasks, the model received an authoritative implementation note, no note, or a conflicting note. It had three attempts under each condition, and its programs faced hidden tests. With an empty library, all three attempts failed on about 91 percent of tasks. Authoritative notes reduced that figure to about 41 percent. Conflicting notes pushed it to nearly 99 percent. The reduction from useful notes was approximately 50 percentage points, with a statistical interval indicating a substantial effect within the experiment.

Those results establish that the supplied information changed performance in this setting. They also show why the mere presence of reference material is an inadequate measure of support: misleading material can make the situation worse. But the experiment used a deliberately restricted model and tasks whose required behavior was defined by implementation notes. It does not establish the same benefit for modern coding assistants working in complex software projects. Even with correct notes, failure remained common. Useful information can improve a system’s chances without making it dependable enough to proceed automatically.

02 What evidence justifies stopping?
Useful failure prediction, acceptable risk and worthwhile savings must hold together, with uncertainty included.
Evidence required before declining a taskA library based abstention rule needs useful failure discrimination, acceptable retained risk and worthwhile savings, validated for its workload with uncertainty. 2. What evidence justifies stopping? The synthesis abstention card tests a decision rule. First validate the setting Current system, target workload and selection assumptions Does missing support predict failure? The failure gap must exceed a declared minimum. Is the accepted work reliable enough? Its failure risk must stay below a declared maximum. Is enough work avoided? Savings must exceed a declared minimum. A supported abstention rule All requirements must hold with uncertainty included. Set the limits before evaluating the results. Too little useful linkage: non-actionable. Failed checks or unresolved evidence: uncertified. Neither result justifies declining on library support alone.
III. Putting a Decision to Stop on the Record

The researchers’ proposed “synthesis abstention card” turns these observations into a structured assessment made before code generation. It combines the prevalence of unsupported tasks, the detector’s mistakes, and the failure rates of supported and unsupported work. From those quantities, it estimates how often declined tasks would have failed, how often accepted tasks will fail, and how many generation calls can be avoided. The distinction between those first two risks matters. A system might correctly reject many difficult assignments while still accepting too many tasks it cannot solve. A better success rate also needs to be considered alongside how much work the system leaves unattempted.

A separate controlled experiment illustrates both the appeal and the difficulty of this approach. Using a system that generated programs from learned templates, the researchers examined a workload in which half the tasks lacked relevant library support. Abstention avoided 50.6 percent of generation calls. Among accepted tasks, the proportion for which all three attempts failed was 12.9 percent, compared with 36.6 percent when every task was attempted. When the unsupported share rose to three quarters, selection still reduced failure among accepted tasks. Yet the predicted failure rate for that group was 27.4 percent, while the observed rate was 19.3 percent. The prediction missed the study’s declared tolerance, and inconsistencies in other summaries prevented validation of the complete card.

The framework therefore demands more than an encouraging average. Before evaluation, an application’s operators must specify a minimum useful relationship between missing support and failure, a maximum acceptable failure risk among accepted tasks, and a minimum worthwhile saving. Statistical uncertainty must fit within those requirements. The card can classify a rule as supported, as lacking sufficient decision value, or as uncertified because the evidence remains unresolved. Its estimates also depend on stable definitions and failure rates, with checks for whether the detector is selecting harder tasks even within the same support category. And the savings reported here concern generation calls. They do not establish equivalent reductions in computing time, tokens, testing, or human effort.

Conceptual illustration of evidence guiding an AI decision to stop or continue

A useful stopping rule connects missing support to measured failure risk while allowing justified work to continue.

IV. Why Familiar Words Can Be Poor Evidence

The difficulty grows when a library contains ordinary descriptions of software problems. Similar wording can identify a shared topic without supplying the knowledge needed to implement a solution. That creates a subtle statistical trap. A risk estimate can agree with the overall frequency of failure while doing little to distinguish which individual tasks will fail. Researchers call these separate properties calibration and discrimination. Calibration concerns whether predicted frequencies match observed frequencies. Discrimination concerns whether a signal separates likely successes from likely failures. A useful rule for declining work needs evidence about both.

To examine this problem in existing software projects, the team analyzed a fixed historical collection of 500 SWE-bench Verified tasks and outcomes from 127 public submissions. They built reference libraries from issue descriptions associated with success or failure, then tested whether textual similarity predicted new failures. Three retrieval approaches produced discrimination scores between 0.522 and 0.538 on a scale where 0.5 represents chance ranking and 1 represents perfect separation. Knowing the repository and the length of an issue description performed better, reaching about 0.572. Adding the library signal provided essentially no further discrimination. Predictions also became less reliable when transferred between different mixtures of repositories.

This audit reveals limits of the particular text libraries tested. The submitted systems never used those libraries during generation, so the analysis cannot show whether supplying the material would have changed their answers. Nor can it establish that libraries of executable code or reusable skills would be ineffective. The authors also avoid formally declaring the signals useless because the audits lacked the advance thresholds required by their own protocol. They classify them as uncertified. That distinction preserves an essential boundary: weak observed evidence can undermine a proposed decision rule without proving that every better version of the idea must fail.

V. A Boundary That Must Move

An abstention rule has another complication: the system it governs can change. A larger library alters what the assistant retrieves. A stronger model changes what it can solve without help. Revised tests can change which outputs count as successful. A rule calibrated under an earlier configuration may therefore become too restrictive or too permissive. The paper uses “transport” to describe applying risk estimates to a target workload under explicit stability assumptions. Its broader implication is that evidence supporting a decision belongs to a particular combination of knowledge, capabilities, tests, and tasks.

In an illustrative analysis of library growth, the researchers compared a stale card with one whose retrieval threshold and detector measurements had been refreshed. The discrepancy between the predicted and observed fraction of flagged tasks fell from 22 percentage points to 2.4 percentage points. Updating the measurements substantially improved that estimate. It did not establish that every part of the decision framework remained valid. The example shows why accumulating knowledge creates a second responsibility: reassessing the measurements used to decide when that knowledge is sufficient.

A difficult feedback problem remains. If an assistant never attempts the tasks it declines, it cannot discover whether its ability to solve them has improved. The authors propose independently sampling declined tasks for controlled evaluation, allowing the boundary of accepted work to change with the evidence. They also call for a prospective study combining modern code models, natural software tasks, imperfect support detection, and direct tests of retrieved information. Those conditions have not yet been demonstrated together. For now, the paper offers a way to make restraint accountable. An empty shelf can be a reason to investigate, gather information, or seek help. Making it a reason to stop requires evidence about what the machine would otherwise be able to do.

03 When the system changes, check again
Reassess the decision rule after changes, including independent audits of tasks the system declines.
Reassess the boundary as the system changesEvidence is specific to a system and workload. Changes require reassessment, including independent audits of declined tasks, before a revised decision rule is used. 3. When the system changes, check again A past decision rule does not validate a new configuration. A validated decision rule Evidence for the current system and workload Something changes Library, model, retrieval, tools, tests or tasks Reassess with fresh evidence Recheck failure risk, useful linkage and savings. Audit an independent sample of declined tasks. Requirements still hold Use the validated rule for the new configuration. Evidence is insufficient Gather evidence or seek help before relying on this rule. The scope of action must follow measured capability

Source: Aneesh Durai, Sarah Anthony, Connor White, Lida Guerrero, Juan Miguel Navarro Carranza and Leandro Z. Agudelo. The Empty Shelf, Audited: When Program Libraries Should Gate Synthesis. Preprints.org, October 9, 2026. This preprint has not been peer reviewed.