Blind to What They Can Fix: A Detection Gap in Self-Improving Agents
Authors: Teng Cao, Yu Deng, Kristian Kersting
Organizations: Artificial Intelligence and Machine Learning Lab, Technical University of Darmstadt, Germany · Hessian Center for Artificial Intelligence (hessian.AI), Germany · Department of Computer Science, Technical University of Darmstadt, Germany · German Research Center for Artificial Intelligence (DFKI), Germany · Centre for Cognitive Science, Technical University of Darmstadt, Germany
AI agents can write programs that carry out a task without calling a model at every step, so the task runs fast and its logic stays open to inspection. Agents improve these programs by running them, studying their failures, and revising the code, a form of recursive self-improvement (RSI). We ask whether this process also yields runtime checks that can be trusted. In five task domains, with up to seven author models, agents bring their programs to high scores. Yet when the environment changes, the checks they were told to write stay silent on half or more of the resulting failures in four domains. These failures can be detected and repaired: a monitor built from records of normal runs catches most of them in three domains, and the same agents usually repair them once called. The checks do not examine the recorded relations that reveal the failures, and the strongest agent writes checks that catch most of them once told that its checks are the only thing that calls it back. An unreported failure stays unrepaired, which limits what self-improvement is worth in autonomous operation. Evaluations of self-improvement should measure not only scores but also whether a system notices its own failures.
Figures & tables
Figure 1: An agent can repair a failure that its own program never reports. (1) The agent improves a task program and its runtime checks over rounds of execution feedback. (2) The program then runs without the agent. (3) A change in the environment makes the task fail, while the program keeps acting and its checks keep passing. (4) If nothing calls the agent, the failure persists; if a monitor or the experimenter calls it, the agent repairs the program. We measure detection, repair, and task performance on the same failures. The diagram is schematic, and the small curves in its panels show no measured data.
Figure 2: Every failure is classified twice: by whether it was detected and by whether it can be repaired. (1) A frozen program and its checks are deployed, without the agent, under an environment change written without seeing the checks; a deployment that keeps less than half of its task performance is a task failure. (2) Detection: the same execution record goes to the program’s own checks and to detectors outside the program. Repair: the agent is called on every failure, with no hint about the change, and the revised program is scored again. Failures that raised no alarm yet were repaired form the detection gap. (3) Further experiments test the cause, by changing what the checks cover, and the consequence, by replaying deployments. The curves are schematic.
Misses on failures (%)
Alarms on working units (%)
Programs with checks
P
F
Own checks
Own + ref.
Outcome
General
Own
Own + ref.
Outcome
General
Seaquest, Codex
20
168
52 [32, 71]
15
7
5
23
23
11
69
blind changes only
20
111
59 [35, 80]
17
5
3
23
18
7
67
new programs
16
90
69 [37, 93]
11
2
1
11
33
2
70
new programs, informed
16
84
6 [0, 21]
18
1
4
12
16
5
66
Kangaroo, Codex
6
22
55 [13, 91]
18
9
18
8
26
0
58
Table 1: Under the standard instructions, the program’s own checks miss half or more of the failures in four domains, for every group of author models. P : programs with checks; F : their failures. Misses: failures without an alarm, for the own checks under the format’s rule, for the same checks read against 20 reference episodes (Own + ref.), for the outcome rule (not available in AppWorld), and for the general monitor. Brackets: 95% intervals from resampling programs and changes jointly. New programs are evaluated under the blind changes; informed: Section 4.3 . † It alarms on 68% of unchanged Craftax days.
Figure 3: Most failures that the program’s own checks miss are repaired when the agent is called. (a) Every task failure, by what the program’s own checks did and by whether the agent repaired the program when called without being told what had changed; bold numbers give the share of all failures that raised no alarm (checks silent, or no checks written) and were repaired. AppWorld rows use the first study. (b) Failures of Codex programs with checks that raise no alarm: own checks, general monitor and, in Seaquest, the monitor on request. (c) Seaquest, 107 failures: performance kept under the change before and after a forced repair session; the dashed line is the failure threshold. Whiskers are 95% program-cluster bootstrap intervals.
Figure 4: The checks miss failures that additional recorded relations reveal. (a) With the task program held fixed: its own checks, alone, with added relations that are informative about the change, and with as many unrelated relations (service autoscaling pools the programs of seven author models; Kangaroo includes one Qwen3.8-Flash program). (b) Failures missed by the own checks of new programs under the standard and the informed instructions, which state the purpose of the checks (Section 4.3 ). (c) Seaquest, 168 failures of the 20 programs with checks: failures missed against unchanged episodes with an alarm (square-root scale), for the own checks under the format’s rule, under other alarm rules, and read against reference episodes, and for detectors outside the program. Whiskers are 95% bootstrap intervals over programs in (a) and over programs and changes in (b).
Figure 5: Where the agent can repair, detection limits the value of the deployment. (a) Replay of 10-day Seaquest deployments in which the environment changes before day 4 (failing deployments of programs with checks): mean daily task performance relative to before the change, by what calls the agent. (b) Ten-day task value by trigger on such deployments in Seaquest and service autoscaling, and for the new standard and informed AppWorld programs. (c) Service autoscaling, all 48 changed deployments of programs with checks: task value after each session is charged a cost in days of full task value (the lines of the monitor on request and the general monitor nearly coincide). Bands and whiskers are 95% program-cluster bootstrap intervals.
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Domain
Author model
P
F
Own checks
General monitor
On request, all failures
Seaquest
Codex
20
168
52
5
25
Kangaroo
Codex
6
22
55
18
–
Service autoscaling
Codex
4
25
64
0
0
Claude Code
2
12
83
0
5
Kimi-K2.6
4
24
38
0
47
Qwen3.8-27B
2
11
91
9
15
Appendix
Table 2: Detection by author model. Share of task failures (%) that raise no alarm, on the failures of programs that contain their own checks, and for the monitor that the same model wrote when asked (all failures of that model’s programs). P : programs with checks; F : their failures. A dash marks a condition that was not run for that model and domain.
Domain (failing / working units)
Detector
Failing units
Working units
Unchanged episodes
Seaquest (295 / 705)
Program’s own checks (168 / 332)
48
23
21
General monitor
97
73
3
its structural statistics alone
94
71
3
its success count alone
65
10
1
Monitor written on request by the author
75
8
1
Kangaroo (34 / 56)
Program’s own checks (22 / 38)
45
8
0
Appendix
Table 3: Alarms with and without failure. Share (%) of failing units and of changed units with a working program on which a detector alarms (in at least half of the episodes), and share of unchanged episodes with an alarm, for Codex programs. The program’s own checks are counted on the units of programs with checks (unit counts in brackets).
Instructions
P
F
Own checks
General
Difference
Unchanged
Working
Progress
Without
Seaquest, 16 blind changes
Standard
16
90
69 [37, 93]
1
68 [35, 93]
6
11 / 70
0
69
Informed
16
84
6 [0, 21]
4
2 [ − 9, 19]
10
12 / 66
16
70
Informed, test tool
15
83
17 [3, 40]
5
12 [ − 7, 38]
11
11 / 60
15
72
AppWorld, 12 blind changes
Standard, Codex
16
112
95 [84, 100]
62
33 [0, 68]
0
0 / 40
–
–
Appendix
Table 4: Detection when the instructions state what the checks are for (informed). New programs in the format with checks. Misses: share of failures (%) without an alarm, with 95% intervals from resampling programs and changes jointly (where every resample agrees, the exact binomial interval for the smaller of the numbers of programs and failing changes); difference: own checks minus general monitor on the same failures. Unchanged: share of unchanged episodes or days on which the own checks alarm. Working: share of changed units with a working program on which the own checks / the general monitor alarm. Progress: programs that declare an assumption on task progress; the last column gives the misses when such assumptions are left out. The progress columns apply to Seaquest only.
Figure 6: Coverage intervention, stated dependencies, and the general monitor in five domains. (a) With the task program held fixed: its own checks; its own checks plus relations that are informative about the change; and its own checks plus as many unrelated relations. Service autoscaling pools the programs of all seven author models, and Kangaroo includes one Qwen3.8-Flash program. The two conditions with added relations are computed on the failures that have enough unrelated relations to draw from (163, 106, and 25), on which the own checks miss 52%, 65%, and 48%. Alarm rates on unchanged runs are within about two points across the three conditions. (b) The same quantity as randomly chosen relations are added, which requires no knowledge of the change. (c) Failures on which the program’s own checks are silent, by whether the author had stated the dependency that broke, as judged by two model raters blind to the detection outcomes; n counts program–change pairs of programs with declared assumptions. (d) The general monitor in five domains: failures missed against alarms on unchanged runs, over all failures. Whiskers in (a) and (c) are 95% program-cluster bootstrap intervals.
Figure 7: Deployment replay in both domains, paired gains, and results by author model. (a, b) Replay of 10-day deployments in which the environment changes before day 4, for the failing deployments of programs that wrote their own checks. Top: share of deployments in which a repair session has been opened by the end of each day, when the session is triggered by the program’s own checks or by the general monitor; sessions opened before day 4 are false alarms. Bottom: mean daily task performance relative to the performance before the change. At most one session is opened per deployment, and the same recorded repair sessions are replayed under every policy. (c) Ten-day task value by who calls the agent, on the same deployments. (d) Paired gains from replacing the program’s own checks with the general monitor, and from replacing the real repairer with a perfect one, an offline upper bound, behind either trigger. (e) Service autoscaling, all failures, by author model. Bands and whiskers are 95% program-cluster bootstrap intervals.
Study
Registered prediction
Observed
Outcome
Detection (Q1)
Seaquest round 1 (C1)
General monitor misses ≤ 0.10, and fewer than the own checks of one format (CI upper < 0)
21/50 = 0.42 [0.28, 0.56]
failed
Seaquest round 2 (C1)
As round 1, monitor revised
13/64 = 0.20 [0.10, 0.32]
failed
Seaquest round 3 (C1)
Monitor revised again; needs ≥ 20 failures
11 failures
undetermined
Seaquest round 4 (C1)
Monitor revised again
4/76 = 0.053; diff. − 0.13 [ − 0.36, 0.10]
failed
Seaquest round 5 (C1)
Same monitor as round 4
1/20 = 0.05; diff. − 0.11 [ − 0.30, 0.00]
failed
Appendix
Table 5: Registered predictions and their outcomes. Registrations are dated files in the project repository whose hashes are printed in the job logs, and this table and its three continuations list all registered predictions with their outcomes. “Rule” marks a registered reading rule without a predicted direction, for which “held” means that its threshold was met; “misses” is the share of failures without an alarm and “false alarms” the share of unchanged runs with one, “diff.” is the missed share of the general monitor minus that of the own checks, the opposite sign to the difference in Tables 1 and 4 , and CI is a 95% interval unless noted. Codes in brackets are the identifiers of the registration files; Seaquest rounds are successive catalogues of changes, of which rounds 4 to 7 form the first catalogue of the paper.
Study
Registered prediction
Observed
Outcome
Detection (Q1), continued
Craftax episodes (C1-C)
As Seaquest round 1; needs ≥ 20 failures
15 failures; misses 0.27 [0, 0.53]
undetermined
Craftax episodes (C2-C)
As Seaquest C2
0.04
held
Craftax (C, own checks)
Own checks miss ≥ 0.30 of failures
0.10
failed
Craftax 6000-step days (C1-C2)
As Seaquest round 1; needs ≥ 20 failures
9 failures; misses 0
undetermined
Craftax 6000-step days (C2-C2)
As Seaquest C2
0.68 [0.48, 0.84]
failed
Appendix
Table 6: Registered predictions and their outcomes (continued).
Study
Registered prediction
Observed
Outcome
Cause and coverage (Q3)
Seaquest (D1)
Authors had stated ≤ 0.50 of the dependencies that broke (two raters)
0.25 [0.20, 0.31]; 0.41 [0.36, 0.46]
held
Seaquest (D2)
Stated share on failing pairs at most 0.20 above non-failing pairs
0.25 vs 0.15; 0.41 vs 0.24
held
Autoscaling (mechanism M1)
The general monitor’s success-count floor alone misses ≤ 0.10 of failures
0.00 to 0.05 for four authors; gemma 0.74
held (4/5)
Autoscaling (mechanism M2)
Requested monitor misses more where the progress rule misses
gemma 0.24 vs 0.00; other groups < 5 failures
held
Autoscaling and Kangaroo (mechanism M3)
Own checks miss more where the progress rule misses
Kangaroo +0.13 [ − 0.33, 0.42]; other groups < 5 failures
undetermined
Appendix
Table 7: Registered predictions and their outcomes (continued).
Study
Registered prediction
Observed
Outcome
Deployment value (Q4)
Seaquest (E5, Q1)
As trigger, the general monitor gains ≥ 0.10 in value over own checks (CI lower > 0)
+0.35 [0.25, 0.45]
held
Seaquest (E5, Q2)
General monitor within ± 0.05 of a call on the day of the change (whole CI)
− 0.047 [ − 0.094, − 0.010]
failed
Seaquest (E5, Q3)
General monitor beats one scheduled call (CI lower > 0)
+0.037 [ − 0.009, 0.075]
failed
Seaquest (E5, mechanism)
General monitor above the requested monitor
+0.033 [ − 0.025, 0.084]
undetermined
Autoscaling, Codex (E5, Q1)
As Seaquest Q1
+0.28 [0.15, 0.36]
held
Appendix
Table 8: Registered predictions and their outcomes (continued).
Change
What changes
Written by
Failing
Checks
Own
General
Outcome
controls_swap_y
Underwater, the up and down controls are exchanged.
developer
40/40
20/20
8
0
0
controls_swap_x
Underwater, the left and right controls are exchanged.
developer
28/40
16/20
4
1
4
lives_one
No spare lives: the life counter never exceeds one.
developer
3/40
3/20
1
3
0
dive_cost8
Leaving the surface costs 8 units of oxygen.
developer
3/40
3/20
3
0
0
wrap_edges
The left and right screen edges are joined for the submarine.
developer
2/40
1/20
1
0
0
emissile_homing
Enemy missiles in flight move one pixel per step toward the submarine’s depth.
developer
12/40
8/20
2
0
3
Appendix
Table 9: Seaquest, first catalogue: the 25 changes used for detection. Failing counts the frozen Codex programs that fail under the change, out of the 40 evaluated, and Checks restricts the count to the 20 programs that contain their own checks. The last three columns count failures without an alarm: Own, of the own checks among the failures of programs with checks; General and Outcome, of the general monitor and of the outcome rule among all failures under the change.
Change
What changes
Written by
Failing
central_ascent_hatch
The submarine can ascend to the surface only within a central horizontal band.
blind session
36/40
launch_jettisons_passenger
Each underwater torpedo launch loses one carried diver.
blind session
40/40
shark_predation †
A shark eats any uncollected diver at its depth within eight horizontal pixels.
blind session
—
enemy_forward_shields
An enemy absorbs a head-on torpedo within 24 pixels ahead of its front edge.
blind session
26/40
turning_brake
Reversing horizontal facing underwater spends the step turning in place.
blind session
2/40
paired_passengers
Each diver pickup adds two to the carried count, capped at six.
blind session
0/40
Appendix
Table 10: Seaquest, second catalogue: the eight blind changes used for repair and replay. Failing counts the frozen Codex programs that fail under the change, out of the 40 evaluated; † shark_predation was judged infeasible (no program completed a full rescue under it in any episode) and was therefore excluded before any repair session.
Change
What changes
Written by
Failing
ground_inertia
The kangaroo coasts when input is released and needs eight steps to reverse; crouching brakes.
blind session
1/9
ladder_rest_cycle
Climbing pauses for 32 of every 96 steps while the game continues.
blind session
7/9
platform_recovery
Finishing a jump or climb blocks the next one for 90 steps.
blind session
6/9
auto_hop
Fifteen consecutive walking steps trigger an automatic jump.
blind session
7/9
drifting_fruit
Fruit sweeps horizontally up to 24 pixels either side of its original position.
blind session
0/9
bell_elevator
The bell moves to the ground floor; activating it lifts the kangaroo one platform.
blind session
5/9
Appendix
Table 11: Kangaroo: the 12 blind changes. Failing counts the Codex programs that fail under the change, out of the nine evaluated; † two changes were judged infeasible (no program completed a level under them in any episode) and were excluded.
Change
What changes
Written by
Failing
slow_boot
New servers take fifteen minutes to boot instead of three.
blind session
2/7
compact_workers
Each running server handles 35 requests per step instead of 50.
blind session
0/7
square_wave_load
Traffic alternates between 60% and 140% of the daily load every five minutes.
blind session
5/7
cpu_headroom †
The CPU field reports percent idle capacity instead of percent busy.
blind session
5/6
high_utilization_hours
A good hour requires 70% mean utilization instead of 50%.
blind session
7/7
saturation_latency
CPU contention adds latency for utilization above 60%, even without a queue.
blind session
7/7
Appendix
Table 12: Service autoscaling: the 12 blind changes. Failing counts the Codex programs that fail under the change, out of the seven evaluated; † one program stopped with errors under cpu_headroom , a failure that announces itself, and is left out of the count.
Change
What changes
Written by
Failing
liked_song_offsets
The Spotify liked-songs page index is a row offset instead of a page number.
blind session
2/8
transactions_oldest_first
Venmo transaction lists default to oldest first when no sort is requested.
blind session
0/8
transactions_default_sent
Venmo transaction lists default to sent transactions instead of both directions.
blind session
8/8
liked_dates_day_first
Spotify liked-song dates use DD/MM/YYYY, keeping the time suffix.
blind session
8/8
transaction_like_origin
Venmo transaction lists report each like count plus one.
blind session
8/8
playlist_track_previews
The Spotify playlist library lists only the first track of each playlist.
blind session
8/8
Appendix
Table 13: AppWorld: the 12 blind changes. Failing counts the Codex programs that fail under the change, out of the eight evaluated; the last three changes were designated harmless controls by the session that wrote them.
Change
What changes
Written by
Failing
pivot_steps
Turning consumes a movement action; only a repeated heading walks.
blind session
0/5
two_hit_trees
Felling a tree requires two consecutive do actions facing it.
blind session
3/5
six_wood_tables
Placing a crafting table costs six wood instead of two.
blind session
3/5
brittle_pickaxes
Each pickaxe breaks after eight successful mining uses of its tier.
blind session
0/5
exertion_thirst
Each successful walking step adds three extra units to the hidden thirst timer.
blind session
0/5
furnace_recovery
Healing progress is discarded after every step without a neighbouring furnace.
blind session
0/5
Appendix
Table 14: Craftax: the 12 blind changes. Failing counts the Codex programs that fail under the change, out of the five evaluated.
Population
Programs
Failures
Programs with checks
Their failures
Seaquest, first catalogue (25 changes), Codex
40
295
20
168
of which under the 16 blind changes
40
199
20
111
Seaquest, second catalogue (7 blind changes), Codex
40
107
20
61
Kangaroo, Codex
9
34
6
22
Service autoscaling, Codex
7
46
4
25
Service autoscaling, seven author models
35
188
18
107
Appendix
Table 15: Failure populations. Programs and task failures in each domain and change catalogue, for all programs and for the programs that contain their own checks; the lower part lists the programs written for the later experiments.
Self-improving agents accumulate capability by repeatedly rewriting procedural policies, controllers, or heuristic rules. They typically rely on self-authored tests or metrics to decide whether to accept subsequent edits. The agent controls both the optimized object and its verifier. As a result, self-assigned scores can remain near perfect while real deployment performance degrades or stays low. We study this problem through the verifier--deployment gap. This gap refers to the discrepancy between an agent's self-authored verification signal and a sealed deployment evaluation that the agent cannot observe or access. We ask how self-authored verification fails under iterative policy-and-test rewriting, how the failure changes with capability, and how little exogenous trust is sufficient to prevent real regressions from being deployed. To address this problem, we introduce a Sealed Exogenous Acceptance Loop (SEAL). SEAL retains self-authored tests but compares each candidate with the incumbent through a fixed harness-side audit. The agent cannot author or inspect the audit, receives only accept/reject, and the whole incumbent state is retained after a clear regression. Our experiments show that this problem often appears in heuristic learning settings. These settings require trial-and-error discovery of the target objective. We further find that failures of self-written verification are stratified by capability. Weaker agents tend to damage previously acquired strategies behind easy self-tests. Stronger agents are more stable, but they still mismeasure the deployment distribution. Standard self-written constraints do not reliably close this gap. In contrast, SEAL outperforms unprotected baselines across six models and three random seeds. Reliable self-improvement need not abandon self-verification, but it requires at least one deployment-acceptance signal outside the agent's control.
Diandian Guo, Cong Cao, Fangfang Yuan +3
Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China · School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China
Environments are the foundation of recursive self-improvement: they provide the problems agents work on and the feedback used to evaluate progress. Yet constructing challenging research environments with reliable evaluation still depends on domain experts, limiting their scale and disciplinary coverage. We introduce RSI-Forge, a multi-agent pipeline that turns published papers into executable environments for self-improvement. Three agents coordinate construction, reproduction, and review to produce tasks with automated evaluators; each paper's method is independently reimplemented to establish a baseline score. We present 210 environments across 18 fields, including 90 reviewed by independent human domain experts. Both experts and agent judges give high ratings to the potential for improving the provided starting solutions and the evaluators' ability to distinguish solution quality, whereas experts are more critical of shortcut resistance, faithfulness to the source paper, and whether a single idea can exhaust a task. To validate their use for repeated improvement, we evaluate four models over 3 successive attempts on 120 environments, with each attempt inheriting prior code and notes while model weights remain fixed. At least one model improves after the first attempt in 84% of environments. Models also outperform the reproduced paper methods in 68 of the 120 environments, demonstrating room for gains beyond these baselines. Transcript analysis identifies work beyond parameter tuning in 95% of these successful attempts. Analysis of the resulting trajectories shows that models scoring lower on these tasks explore less, more often accept gains smaller than the reported standard error, and rely more heavily on tuning to the development set. RSI-Forge provides a scalable approach to constructing research environments for training and evaluating self-improving agents.
Renxiong Wang, Darvin Yi, Abril Herrlein +16
Scale AI · University of California, Santa Cruz · University of North Carolina at Chapel Hill
Self-improving autonomous agents are moving from research prototypes to deployed systems. The primary goal is controllable evolution, or adaptation, from experience with minimal or even no human input. This survey frames modern self-improving agents as adaptive systems that convert experience into accumulated capability gains. We offer a system-level framework that represents a modern agent as a configuration coupling a foundation model with an operational scaffold of prompts, memory, tools, and control logic. Within this framework, self-improvement is formalized as a self-induced update operator that obtains and commits updates to model parameters or scaffold components. We organize prior work by update target and by the signals that drive change, then review applications and discuss evaluation, before closing with open problems and future directions. For convenience, we track technical updates on https://github.com/selfimproving-agent/awesome-Self-Improving-Agents.
Zhe Ren, Yimeng Chen, Dandan Guo +9
School of Artificial Intelligence, Jilin University · King Abdullah University of Science and Technology (KAUST) · Independent Researcher +2