arXiv:2610.39410cs.AIOct 2026

Manuscript Offprint

arXiv:2610.39410

Retaining Repair Hypotheses for Cost-Aware Execution

Jae Hun Hwang, Hong-In Won

Abstract

Several corrections of an executable model can fit the same observations while predicting different execution outcomes. We study a repair-to-execution interface that retains compatible finite guard repairs, conditions their weights on diagnostic and ordinary-execution observations, and uses their predictions to choose routes, priced tests, or a backup. On 24 synthetic two-stage devices, an equal mixture of a language-model-generated repair and a uniform belief over compatible repairs (the AI-weighted belief) lowers no-test cost by 2.14 percent relative to committing to the generated repair. Access charges can erase the benefit of diagnosis on isolated tasks, while repeated work can recover it under the AI-weighted belief. With normal-execution learning in every repeated-work arm, workload-valued testing costs 3.33 percent less than same-budget random selection under the AI-weighted belief. Weighting changes the comparison: uniform normal learning costs 540.75 less than AI-weighted normal learning on this cohort, with a device-paired interval excluding zero. Testing recovers part of that gap, but uniform normal learning still has a lower aggregate cost than AI-weighted workload-valued selection. Under uniform beliefs, information-gain selection has the lowest total among the compared selectors, while workload-valued testing costs more than normal learning. These results support retaining alternatives to a generated repair and evaluating diagnostic selection together with repair weighting and learning from execution.

(a) Two-stage device

Figure

(b) Repeated-work decisions

Figure

Figure 1: Compatible repairs turn model ambiguity into route, test and backup choices. (a) Illustrative synthetic device. (b) Repeated-work decision loop: tests and ordinary execution update the retained belief. Access-charged stage-B tests include reset (0.25), stage-A setup and query.

1 Introduction

Consider a controller using a program that predicts whether an operation is enabled. A failed operation reveals that the program is wrong, but usually does not identify a unique correction: one observation can be explained by several missing preconditions. Selecting one corrected program and treating it as certain can turn a successful local repair into another downstream failure.

Planning-domain learning and repair construct an action model that explains available evidence. FAMA compiles partially observed traces into a learning problem [1]; hitting-set repair makes known-positive plans valid with a cardinality-minimal edit set [2], and counter-example repair also requires negative plans to remain invalid [3]. These objectives belong to the broader model-repair landscape [4]. Recent LLM-only repair work separately evaluates recovered model structure and satisfaction of test-plan constraints [5]. This distinction matters because a locally consistent repair can still leave uncertainty about unobserved behavior.

Executable world-model methods connect model construction to acting: WorldCoder uses replay consistency and optimistic goal reachability [6], while Generate, Improve and Fix with Monte Carlo Tree Search (GIF-MCTS) searches generated code using observed transitions [7]. LLM-SMC-S, a sequential Monte Carlo sampler over hypotheses proposed by a language model, maintains weighted hypotheses and directs new experiments [8]. These methods establish useful tools for generation, belief maintenance and experimentation. Here we specialize the use of compatible executable repairs to a finite decision interface and evaluate its representation, diagnostic access and execution feedback together.

The evaluation question is how to use remaining executable repair alternatives when the observations have not identified one model. Our interface lets each compatible program predict guard acceptance, keeps a weight on those predictions, and uses them to choose an execution route, buy a diagnostic observation, or take a backup. A point repair supplies one prediction; the retained belief also supplies disagreement that changes predicted route success and expected cost, the possible decision changes after a test, and candidates that ordinary execution can rule out.

Choosing the design. Table 1 contrasts the closest approaches with the interface studied here by model or repair representation, source and use of uncertainty, and evaluated objective.

Each design choice below is paired with the comparison that tests it. Retention is tested by comparing the AI point repair, a single repair generated by a language model, with the AI-weighted mixture without tests (Table 2). The source of weight is tested with uniform and minimum-description-length (MDL) beliefs (Tables 2 and 3). Observation reachability is tested by replacing flat test prices with reset and setup charges (Section 5.2). Whether diagnosis adds anything to what execution already teaches is tested by giving every repeated-work arm the same normal-execution updates, so that diagnosis competes with learning and not with a frozen error (Tables 4 and 6). The selector itself is tested against random testing and information gain with the same four-test cap (Section 5.6). These comparisons identify the effects of specified interface choices.

Figure 1 shows the world and repeated-work decision loop; Figure 2 illustrates a recorded direct-access decision. The experiments yield three findings.

  • Mixing a generated repair with its compatible alternatives helps before any test is bought. A fixed mixture of half AI repair and half uniform weight has lower aggregate independent-task cost than either its point-repair or its uniform endpoint. The paired device interval excludes zero for the contrast to point repair, but includes zero for the contrast to uniform retention, so the latter ordering is descriptive.

  • Value-directed probes pay when information is inexpensive. The benefit shrinks when reaching the test condition must itself be paid for, and it can disappear on isolated tasks.

  • Repeated execution is itself a source of information. A matched-budget comparison of workload-valued, random, and information-gain (EIG) test selection shows that workload-

valued selection has lower aggregate cost than random selection under the AI-weighted belief. Its margin over EIG rests on two devices. Under uniform beliefs the order reverses and information gain is cheaper, and uniform normal learning without any tests already has a lower aggregate cost than AI-weighted workload-valued selection. A diagnostic method must therefore be evaluated together with repair weighting and against normal learning and other selectors, not only against a frozen erroneous model.

Table 1: Methodological comparison drawn from the cited sources; the last column gives the objective each study evaluated.

ApproachModel or repair representationSource and use of uncertaintyEvaluated objective and validation
Domain repair and action-model learning: FAMA [1], plan-based repair [2], counter-example repair [3]STRIPS preconditions and effects of a planning domain; grounded or lifted repairsConsistency with partially observed traces or with positive and negative plans; repair sets are diagnoses, and a modeler may judge alternative repairs iteratively [2]Recovered model or cardinality-minimal or optimal repair; model-quality measures, plan validity, and repair benchmarks. Execution-time costs are not the evaluated quantity
Code world models: WorldCoder [6], GIF-MCTS [7]Python transition and reward programsReplay data and an optimistic goal-reachability constraint [6]; program-search values reflect predictive accuracy on stored transitions [7]; acting supplies further dataProgram that fits data and supports planning; GIF-MCTS compares with an earlier World-Coder version [7]
Hypothesis revision with experiments: LLM-SMC-S [8]Weighted natural-language rule particles revised by a language modelBayesian posterior over particles; experiments chosen by information gainPosterior prediction and informative experiments over language hypotheses; not costed route execution
This studyFinite executable guard repairs, as truth-table masks or syntax-counted disjunctive normal form (DNF) programsCompatible repairs weighted by uniform, MDL-weighted, or AI-weighted mass and conditioned on every observation; predictions enter route, test, and backup choices; normal execution also updates the beliefTotal task cost with priced tests, reset and setup access, and backup, on a fixed synthetic cohort with matched-belief controls

Our contribution is a reproducible decision interface for finite executable repairs, together with an analysis of three design choices: retaining compatible hypotheses, charging diagnostic access, and learning during ordinary work. It offers a concrete way to use generated repairs before they are uniquely identified. The experiments keep candidate generation apart from candidate use, and show that aggregate savings are concentrated on a subset of devices. The interface integrates Bayesian conditioning, expected-utility experimental design, of which information gain is one common instance [9], belief-state planning that joins acting and information gathering [10], and diagnosis from conflicting observations [11] at the repair-to-execution boundary for finite executable guards, and measures when this integration pays.