AI Coding Evaluations: How Time Limits Can Distort Quality Judgments
Tight deadlines can make an AI coding assistant’s longer verification process look like deliberate quality degradation. This article outlines a controlled evaluation method using fixed tasks, prompt conditions, and two time budgets, with separate process and outcome metrics. It explains how to distinguish timeout-driven failures from incorrect changes, interpret censored runtime data, and use logs and human review to support reliable conclusions.
When AI coding assistants enter real development workflows, teams care less about polished explanations than about consistent delivery across tasks, prompts, and time budgets. A recurring claim in public discussions is that telling a model its code may be used to train another system—and that no one will review it—causes it to do less work, introduce errors, or undermine downstream stages.
Such claims can influence model selection and workflow design. But an evaluation that fails to separate inferred intent from observable behavior can easily mistake an exhausted time budget for malicious behavior.
A more actionable approach keeps tasks fixed, varies only the background prompt and deadline, and records both process and outcome metrics. In one reported comparison using different prompt prefixes and strict session limits, the more sensitive prompts did not lead to less activity. They produced more interaction rounds and longer runtimes. Lower pass rates under the short deadline were primarily associated with more sessions timing out.
When the deadline for the same tasks increased from roughly 20 minutes to roughly 60 minutes, all prompt conditions completed successfully, eliminating the outcome gap. Within that observation, the results did not support deliberate prompt-induced quality degradation. They supported a simpler explanation: increased work collided with an overly tight deadline.
Start with a Falsifiable Question
“Deliberate sabotage” is an interpretation of motivation, not a value that can be read directly from a log. Engineering evaluations can reliably record whether the agent changed the intended files, passed tests or benchmarks, how many interaction rounds it used, how much wall-clock time elapsed, and whether it was still working when the deadline arrived.
Any inference about motivation must build on those observations and rule out simpler explanations.
Three alternatives are especially important:
- The prompt changes the workflow. A longer or more demanding prompt may cause additional self-checks, retries, and explanations, reducing the amount of effective editing completed per unit of time.
- Feedback is slow. Compilation, computation, or test execution may take long enough that a few extra tool calls push the session past its deadline.
- The scoring rule conflates unfinished work with incorrect work. If every timeout counts as a failure, a more thorough process can receive a lower score under a short budget.
If these explanations account for the data, there is no need to introduce the stronger and harder-to-falsify hypothesis of deliberate sabotage.
The evaluation question should therefore be:
- With the task distribution held fixed, does the background prompt change the pass rate?
- If it does, does the difference persist when the time budget increases?
- Do process metrics—rounds, runtime, and tool calls—move in the same direction as outcome metrics such as passes, partial passes, and error types?
When process and outcome metrics point in different directions, investigate how the measurement design couples them before attributing intent.
Vary One Family of Factors at a Time
A robust comparison holds the coding tasks, initial repositories, evaluation scripts, and model configuration constant. Only the mutually exclusive background conditions at the start of each session should differ.
A useful three-condition design is:
- No additional prefix.
- A prefix stating that the output may be used for downstream model training or dataset construction.
- The same training context, plus a statement that no human is currently reviewing the code line by line.
All conditions must use the same task set, with either the same randomized order or an identical task list. Otherwise, harder tasks may happen to fall into one condition.
Time budget is a second controlled variable; it should not be tied to the prompt condition. Use at least two wall-clock limits, such as a short budget and a longer budget roughly three times as large. Set those limits before running the experiment.
The short budget captures a real development constraint: how long people are willing to wait. The longer budget tests whether eventual task completion actually differs across conditions. With only a short budget, timeout rates can dominate the score, mixing prompt effects with the effect of how much time the evaluator allows.
A striking individual example is not statistically meaningful. Even for difficult tasks, use a fixed collection, repeat runs, and report averages, timeout proportions, and variability.
Also distinguish among failure categories:
- Environment failures.
- Errors in the test framework itself.
- The model refusing to continue.
- Sessions that simply run out of time.
Counting environment failures as model sabotage systematically disadvantages whichever condition makes more tool calls.
More Work and Worse Scores Can Coexist
One comparison discussed publicly showed a consistent pattern: the sensitive-prompt conditions took noticeably longer, used more interaction rounds, and scored lower in the initial short-budget evaluation. Once the time limit increased, every condition passed and the measured quality gap disappeared.
Average runtime rose from roughly ten minutes to closer to fifteen minutes. Interaction rounds increased proportionally more than runtime, suggesting that the additional activity was not merely idle waiting. It involved more cycles of editing and validation. Scores under the short deadline fell by about a quarter, in the same direction as the increase in timeouts.
The important feature is not second-level precision but the direction of the changes. The prompt did not make the model stop earlier. It made the process continue further, increasing the chance that a short deadline would interrupt it.
Once interruption counted as failure, the result looked like a collapse in quality. Extending the deadline enough to accommodate the additional work removed those failures.
If sabotage were a stable strategy, a longer budget should still reveal incorrect patches, hidden regressions, or bypassed tests. A score reduction caused only by timeouts, by contrast, can disappear when unfinished sessions have enough time to complete.
Two interpretations should be avoided. A lower score alone does not establish that the model is untrustworthy. But convergence under a longer budget does not establish that the prompt has no effect.
Process cost is a real effect. Extra time and interaction rounds consume quotas, delay feedback, and increase costs. They can change efficiency and the probability of on-time delivery without changing eventual correctness.
How Short Deadlines Create Apparent Sabotage
Coding tasks rarely reach their best solution in the first round. A typical loop is:
- Read the requirements.
- Edit the code.
- Run checks.
- Inspect failures.
- Revise the implementation.
Every additional round incurs communication and execution latency. A background prompt that encourages caution, completeness, or avoiding poor examples for downstream training may lead to more boundary checks and regression testing. Under a generous budget, those steps may improve robustness. Under a tight budget, they increase the risk of timing out.
A score that records only “passed by the deadline” reduces the outcome to one bit. It treats unfinished work and incorrect work as equivalent.
Yet an unfinished session may need only one final compilation. An incorrect session may have introduced a regression, deleted tests, or broken an interface. These outcomes have very different implications for development and should be counted separately.
Report at least:
- The proportion of sessions that pass before the deadline.
- The pass rate among completed sessions, excluding timeouts.
- The proportion of timed-out sessions still progressing toward a correct solution.
- The proportion of sessions that introduce new failures.
There is also a statistical issue: timeouts are censored data. A short deadline truncates the right tail of the completion-time distribution. Observed average runtime can therefore underestimate the time needed, because the slowest sessions never finish.
When comparing average runtime, state whether unfinished sessions are included and whether the measurement uses wall-clock time or model-side timing. Looking only at completed sessions removes the slowest samples from the sensitive-prompt conditions and can conceal the increase in work.
A Practical Evaluation Pipeline
The following vendor-neutral outline emphasizes measurement rather than demonstration. Put the task list, prompt conditions, random seeds, and deadlines into the configuration. Do not change scoring definitions after seeing the results.
for task in fixed_task_set:for condition in [none, train_context, train_context_plus_unreviewed]:for budget in [short_seconds, long_seconds]:session = run_agent(task, prefix(condition), deadline=budget)log(process: rounds, tool_calls, wall_time, timeout)log(outcome: tests_passed, diff_scope, new_failures)
At minimum, retain:
- The prompt hash and task identifier.
- Start and end timestamps.
- Whether each round changed code.
- The size of the final diff.
- Exit codes from validation commands.
- Whether the session reached its deadline.
Archive the logs in object storage and monitor changes in timeout rates and interaction counts. This provides a more auditable record than reviewing chat transcripts after the fact.
Cloud logging and monitoring services, if used, should be described as generic collection and alerting infrastructure. The findings of a particular experiment should not be presented as a capability unique to any platform.
Human spot checks are also necessary. Automated success means that the evaluation script accepted the result; it does not prove that the agent avoided gaming the checks. An agent might remove a slow test, weaken an assertion, or hard-code an input.
Reviewers should check whether changes stay within the task’s scope, whether failures were skipped rather than fixed, and whether comments or configuration files contain substantial unrelated changes. Sampling can be risk-based, with core code paths reviewed more heavily than peripheral scripts.
Keep Public Narratives Out of the Experimental Design
Prompt experiments are easily influenced by the stories surrounding them. Adding “you must not sabotage this task” after reading a public post, then comparing the result with the original prompt, measures compliance with the added instruction—not the original behavior.
Register the conditions before running the evaluation and interpret the results afterward. Do not substitute a single widely shared task for a task distribution. Include algorithmic problems, engineering refactoring, and build tasks with slow feedback. Slow-feedback tasks are particularly sensitive to deadlines and especially likely to produce apparent sabotage.
Repeat runs to account for randomness. The same prompt and task can require very different numbers of interaction rounds across runs. Report intervals around effects rather than relying on a single average.
If scores fall under the short budget but converge under the longer one, the appropriate conclusion is “delivery failures caused by insufficient time,” not “the model behaves badly when unsupervised.”
Discussion of a quality-degradation strategy requires stronger evidence: systematic errors that remain under a longer budget, with a stable environment and checks that have not been bypassed.
The opposite bias also matters. Reporting only convergence under the longer budget hides the added cost. Extra rounds mean more developer waiting time and greater resource consumption. Teams still need to decide how much time to allocate, when to hand work to a human, and when to split a task into smaller pieces. Equal eventual quality does not mean equal efficiency.
Applying the Findings to Daily Development
Allocate wall-clock time according to the speed of task feedback, not conversational habits. For changes requiring compilation, tests, or numerical checks, a short budget is suitable for initial exploration—not a definitive judgment of capability.
Use checkpoints where appropriate. First get the change through the minimum required checks, then use a later session for performance or style work. This avoids making one session responsible for everything from understanding the task to final polishing.
If prompts must state how generated data will be used or how code will be reviewed, anticipate that the process may take longer. Adjust time or round limits accordingly, or timeout behavior may dominate the evaluation.
Define completion clearly:
- Which checks must pass?
- Which files must remain untouched?
A clear completion definition reduces the need for extra rounds spent inferring what is required to avoid problems downstream.
Code review remains necessary. Automated checks and human sampling serve complementary purposes: the former detect regressions, while the latter identify test gaming and scope creep.
Do not add an “unreviewed code” condition to production prompts as a behavioral experiment. It disrupts delivery without providing a reliable diagnosis. Run such experiments on an offline evaluation set, while keeping production prompts and deadlines stable.
Conclusion
Turning claims of deliberate sabotage into an engineering question requires fixed tasks, controlled prompt conditions, two time budgets, and separate process and outcome measurements.
Lower scores under a short deadline can result from longer edit–validate cycles being cut off. When the gap disappears under a longer budget, the observation does not support systematic deterioration in final quality under sensitive prompts. Instead, it points to changes in on-time completion and resource consumption.
Development teams should use those findings to adjust budgets and checkpoints, rather than infer motivation from one timed-out session. Evaluation scripts, structured logs, and human review rules provide a stronger basis for conclusions than any isolated chat screenshot.
