Large language models can now write simulation programs of operational processes and workflows. These programs can be reused to answer what-if questions on new records and policies. However, a program that reproduces recorded history can still give wrong answers to what-if questions; requested changes may be applied wrongly, or they may be applied to records other than the ones the question is about, or the program may stop being valid once its policy is revised. Current checks return a pass-or-fail verdict for the whole program, which says little about whether any single answer can be trusted. We propose Vouch, a library that judges whether an answer from a generated simulator can be trusted for the change being asked about. Each what-if question is turned into a structured change, which is checked against the program and the current records. The library also keeps a record of the kinds of change each program has passed or failed, and repeats the relevant tests whenever the program is reused. We apply it to three program-generation platforms, with programs built by five language models, across four domains: manufacturing, IT operations, and pharmacy and loan-application workflows, using independently checked reference answers. Our baselines are the platforms' own checks where such checks exist, an LLM-as-a-judge, and a ReAct agent that can run the program. We measure how many correct answers are trusted, how many are wrongly rejected, how many wrong answers are accepted, and what the checking costs. On programs written by Haiku and Sonnet in one platform, Vouch removes 97.6% of the wrong answers, while still trusting 80.1% of all answers. At equal coverage, it accepts fewer wrong answers than LLM judges built on Claude Haiku. We disclose code and results for reproducibility.
Figures & tables
Figure 1. The gap in LLM-generated simulators built from historical records. (1) Every applicant in the records took one day on the form; the simulator ignores the per-case durations and assumes one day for everyone, yet still passes the history check. (2) Asked what if Sarah had finished the form in one second, it still applies one day and predicts a delayed finish. (3) Reproducing history cannot show that a program handles new interventions; this is the gap Vouch tests for.
Figure 2. How Vouch decides whether to trust a what-if answer, here when case c0014 would finish if one Technician were unavailable. If any step fails, Vouch declines with a reason; it never looks at the final answer itself. Failed tests go into a capability record, so later questions about the same kind of change and target are declined as Already caught . A left-to-right flow. A what-if question is turned into a structured change, which passes a contract check, a history check, and tests aimed at the requested change that read and write a capability record. Passing every step gives Trusted. Side exits are labelled Request rejected, Failed history check, Caught, Already caught, Untestable, and Can't express.
Domain
Source of inputs and rules
Change families (what a question changes)
Test qs.
No-effect
Loan application
Published process model and simulation parameters ( Chapela-Campa and Dumas, 2023 ) ; 17 activities, loops, 6 worker pools
activity duration; timer delay; the route one case takes; routing probabilities; worker availability (workers added or unavailable); case removal
120
24
Pharmacy
Same source; 12 activities, loops, 3 worker pools
the same six families
120
24
Manufacturing
SupplyGraph production and orders ( Wasi et al., 2024 ) ; written dispatch policy ( Anonymous, 2026 )
order removal; production quantity; production timing; dispatch capacity
96
16
IT operations
Google 2011 cluster trace ( Reiss et al., 2011 ) ; written priority scheduler on 8 machines ( Anonymous, 2026 )
Loan and Pharmacy with one more worker in one pool (P) or with the rules reworded (H)
the six workflow families
91
22
Table 1. Domains, change families and test questions. The no-effect column counts the test questions whose change, though valid, leaves the queried outcome unchanged.
Built by Sonnet and Haiku
Built by open-weight models
OTF-Tools R1 (24 progs)
DEVS-Gen (22)
Coding agent (16)
All three (62)
OTF-Tools R1 (24)
2,736 pairs
2,496
1,824
7,056
2,736
Judge
Cov.
Wrong
Δ K
Cov.
Wrong
Δ K
Cov.
Wrong
Δ K
Cov.
Wrong
Δ K
Cov.
Wrong
Δ K
Platform check only
87.0
243
−7.6
87.8
34
−8.4
97.6
0
−0.7
90.0
277
−6.1
61.0
1161
−14.4
History check
82.4
202
−4.5
79.0
5
−0.7
97.6
0
−0.7
85.1
207
−2.2
4.9
18
−0.1
Generic tests
82.1
200
−4.3
78.7
5
−0.5
97.6
0
−0.7
84.9
205
−2.0
4.9
18
−0.1
Table 2. Rule-based judges and Vouch on the main test set. Cov.: share of all program–question pairs whose answer the judge releases (%). Wrong: released wrong answers (for random refusal, the expected number). Δ K: correct answers kept by Vouch minus those kept by the judge, in percentage points of all pairs; negative values mean the judge keeps more correct answers. Bold: the 95% interval of Δ K excludes zero under both bootstrap analyses (§ 5 ). The contract check alone releases exactly what the platform check releases.
Vouch
Judge, matched
Judge, own verdict
Judge
n
Err.
Err.
Δ precision
Cov.
Err.
Δ kept
Failed replies
Answer-level judge
Haiku
2,028
0.2 (3)
1.1 (20)
+0.9 [0.2, 2.0]
85.7
0.6 (10)
+3.1 [ −2.7 , 7.8]
1/3,000
Sonnet
101
0.0 (0)
0.0 (0)
0.0 [0.0, 0.0]
94.1
0.0 (0)
−9.9 [ −23.4 , 1.1]
0/150
gpt-oss
101
0.0 (0)
3.2 (3)
+3.2 [0.0, 6.2]
60.4
3.3 (2)
+25.7 [6.2, 43.6]
0/150
Gemma
101
0.0 (0)
2.7 (2)
+2.7 [0.0, 5.5]
81.2
1.2 (1)
+4.0 [ −10.7 , 18.4]
0/150
Table 3. LLM judges and a decision model (Jev) against Vouch on Claude-built programs (main test set). Each judge ran on its own fixed subset of n answered pairs, so coverage and error here are shares of answered pairs. Err.: error among released answers (%), with the number of wrong answers in parentheses (expected number when matched). Matched: the judge’s most confident answers, up to Vouch’s count in each domain, platform and builder model. Own verdict: the judge’s own decisions. Δ : Vouch minus the judge, in points, with 95% interval; positive Δ precision favors Vouch, negative Δ kept means the judge keeps more correct answers. Bold: interval excludes zero under both bootstrap analyses; ∗ excludes zero only when resampling questions (resampling runs: [ −13.5 , 0.5]). Failed: replies counted as declines (§ 5 ). Jev’s own verdicts depend on its 0.5 threshold.
Figure 3. Error against coverage on OTF-Tools R1 programs built by Sonnet and Haiku, where 243 of the 277 wrong answers occur. Curves sweep each Haiku judge’s confidence threshold on the pairs it judged ( n ); markers are judges with a single operating point, on all 2,380 answered pairs. Vouch trusts 81% of these pairs with no wrong answer, at a lower coverage than the history check (95%). A line chart with coverage on the x axis and error on the y axis. Three dashed or solid curves for Haiku judges stay between about 2 and 10 percent error at coverages above 20 percent. A red dot for Vouch sits at about 81 percent coverage and 0 percent error. Points for the history check and no added check sit near 95 and 100 percent coverage at about 9 and 10 percent error; disagreement sits at about 69 percent coverage and 2 percent error.
Family
Pairs
Wrong
Kept
Detect
Abstain
Workflows (Loan and Pharmacy)
Activity duration
620
11
0
11/55
0/0
Timer delay
620
15
0
15/67
0/0
Route draw (one case)
620
5
0
5/44
0/14
Routing probabilities
620
195
0
195/70
0/0
Worker availability
620
33
1
32/36
0/0
Table 4. Why Vouch declined, by change family (Claude-built programs, main test set). Wrong: wrong answers under the platform check alone. Kept: wrong answers Vouch releases. Detect and Abstain: wrong answers removed / correct answers lost by declines that detect a problem ( Caught , Already caught , Failed history check ) and by declines that abstain ( Untestable , Can’t express ). Manufacturing is omitted: no program gave a wrong answer there, and Vouch abstained on 9 correct answers. The totals include it.