Reproducibility audit against Vangala et al. (2026)#
This audit takes Vangala, Adibifar, Gehani and Malik, “AI-Generated Code Is Not Reproducible (Yet):
An Empirical Study of Dependency Gaps in LLM-Based Coding Agents” (arXiv:2512.22387 v3, 2026) as a
checklist and runs WAYS through it. Every row below was checked by running a command or reading the
file named. Audit date: 2026-11-18, starting from commit 127abb5.
1. What the paper says#
Executable reliability (p. 1, p. 3, Eq. 2). The fraction of prompts for which an agent’s code
“executes without any manual intervention”. exec returns success only when the code runs using
exclusively the dependencies the LLM specified, in a standardized clean environment that holds only
the default operating system packages. Any debugging or dependency addition counts as a failure.
Clean-environment protocol (p. 4). AWS EC2 t2.large (4 vCPU, 16 GB), Ubuntu 22.04, reset
between projects to a baseline of exactly 91 packages (71 system, 20 user, including SciUnit
v0.4.post135), checked after each test (Eqs. 9 and 10). Runtime dependencies were captured with
SciUnit for Python, npm list --all for JavaScript and mvn dependency:tree for Java (Eqs. 11 to 13).
Algorithm 1 (p. 4) is used only for post-failure analysis. It installs the claimed set, runs the
code, adds the missing package on an ImportError, applies a minimal fix on a SyntaxError or logic
error, and marks anything else (for example conflicting version requirements) as unfixable. It loops
up to MAX_ITERATIONS, which the paper does not give as a number. In practice it took 2 to 3
iterations. Successes reported anywhere in the paper count only out-of-the-box runs, never projects
fixed by Algorithm 1.
Three dependency layers (p. 3).
Claimed, D_c = {d : d in parse(D_i)} (Eq. 3): what the requirements file lists.
Working, D_w = D_c ∪ D_m (Eq. 4): D_c plus the missing packages D_m found through ImportErrors.
Runtime, D_r = ⋃ over d in D_w of {d} ∪ transitive(d) (Eq. 5): everything that loads.
Completeness gap, Δ_completeness = |D_w| − |D_c| (Eq. 6).
Runtime multiplier, ρ_runtime = |D_r| / |D_c| (Eq. 7).
Failure causes and numbers.
Overall 205 of 300 projects (68.3 %) ran out of the box, 95 (31.7 %) failed (p. 1, p. 4, Table 1 p. 5). Table 1 also has a “Partial” column (14 projects) for code that runs but needs external services such as databases or APIs.
Missing dependencies and ImportError: 10.5 % of the failures, 10 of the 95 (p. 1, p. 6).
Fundamental code errors were the majority: malformed syntax, incorrect file paths, uninitialized variables and structural issues (p. 1). The paper names them but gives no per-cause percentage.
Language-specific issues (p. 5): Python 89.2 %, JavaScript 61.9 %, Java 44.0 % (Eq. 14, Table 2). Python does well because of flat requirements files and the pip resolver, JavaScript suffers from nested npm dependencies, and Java from pom.xml configuration, deep transitive graphs, dependency scopes and version conflicts.
Completeness gap (p. 6, Eq. 16): P(Δ = 0) = 0.87, P(Δ = 1) = 0.08, P(Δ = 2) = 0.03, P(Δ ≥ 3) = 0.02. So 13 % of projects needed 1 to 3 packages added by hand. Common omissions were lxml, python-dotenv and bcrypt (Python), body-parser, ws and dotenv (JavaScript), and JUnit and SLF4J (Java).
Runtime multiplier: 13.5x on average (abstract). 3 declared packages against 37 loaded (p. 1). Java 9.5x (2.2 declared, 20.8 loaded), JavaScript 1.0x, Python 2.5x (Fig. 5, p. 6).
Cost: about 15 minutes of manual debugging per failed project (p. 1, p. 5).
Prompt template (Figure 1, p. 3). “Provide EVERYTHING needed for reproduction in [Environment]:
Complete working [Language] code 2. Complete requirements.txt/package.json/pom.xml with ALL dependencies and versions 3. Brief usage instructions. Make it 100% reproducible in a clean [environment].” For WAYS the same three deliverables are the code,
requirements.txtwithpyproject.toml, and the README anddocs/reproducibility.md.
2. Each failure cause, applied to WAYS#
cause (paper) |
WAYS before |
evidence |
status now |
|---|---|---|---|
Out-of-the-box run in a clean env (Eq. 2) |
not exposed for the CPU path |
|
still passes, and the check is now wider (below) |
Clean-env check covers only part of the code |
exposed |
the old script imported only |
fixed: script now runs |
Missing dependency, ImportError (10.5 %) |
exposed, figure scripts only |
|
fixed: |
Claimed but never imported |
present, harmless |
|
left as is (see section 4) |
Direct-URL dependency (AADD not on PyPI) |
not exposed |
|
no change needed |
Incorrect file paths |
exposed |
an absolute path to the author’s own venv was the default interpreter in |
fixed: one resolver, |
Script that never terminates |
exposed |
|
fixed: checks for |
Failures hidden by the run scripts |
exposed |
the scripts used |
fixed: |
Malformed syntax |
not exposed |
|
none needed |
Uninitialized variables |
not exposed |
same ruff run: no F821 or F823. It does report 9 unused imports and one unused local ( |
none needed |
Structural issues, order of steps |
partly exposed |
|
fixed in the docs: a prerequisites paragraph, download commands, the missing |
Python version (language-specific) |
exposed |
|
fixed: |
Build backend deprecation |
exposed, dated |
the clean-env log warns that |
fixed: |
Version pinning of packages |
partly exposed |
|
direct pins kept. A lock file is a decision (section 4) |
Model weights from “latest” |
exposed |
|
fixed: |
AADD checkpoints |
exposed, outside WAYS |
AADD downloads from |
documented sha256 of the three files used. Not pinnable without changing AADD |
Seeds and determinism |
not exposed |
sample, bootstrap, controlled set and detector training all use seed 8001 through |
none needed |
External services (“Partial”, Table 1) |
exposed, stated |
the |
none needed |
Runtime provenance (D_r, SciUnit role) |
partly exposed |
the three |
documented in |
Docs misquoting the paper |
exposed |
|
fixed |
Usage instructions (Fig. 1, item 3) |
partly exposed |
every documented CLI flag exists in |
fixed in |
Tests: .venv/bin/python -m pytest tests -q -m "not gpu and not slow" gives 12 passed, 2 deselected before and after the edits. The 2 deselected tests are the GPU black-box tests, which
need the example clip from the data folder and cached whisper-tiny.
3. Edits#
experiments/common.py(new):data_root()andREVISIONS, with a docstring.experiments/sample_test100.py,run_models.py,run_aadd_variants.py,example_clip.py,vox_mixed_figures.py,detector_backbones.py,gif_erase_sweep.py: the data path now comes fromdata_root().gif_erase_sweep.pytakes the path as an argument.run_models.py,example_clip.py,controlled.py:load_backend(..., revision=REVISIONS.get(id)).run_models.pypasses the pinned revision to the manifest.train_detectors.py: the Moonshine encoder loads at its pinned revision.experiments/run_all.sh,run_controlled.sh,run_backbones.sh,run_detectors.sh: no absolute interpreter path,set -euo pipefail, offline mode can be overridden.run_detectors.shchecks for dev-clean instead of waiting on a log file.ways/cli.py:--revision.ways/provenance.py:manifest(models=...)accepts{id: revision}.tests/test_openai_compat.py: the clip path comes fromWAYS_DATAor the sibling folder.requirements.txt:pillow==12.2.0,playwright==1.65.2, with a comment.pyproject.toml:requires-python = ">=3.12", SPDX licence string,setuptools>=77,figuresextra.scripts/reproduce_clean_env.sh: writes its own log, runspip check,ways explain --helpand an import check of every third-party module.README.md: prerequisites before the first command, model pins, new clean-env numbers, links to this audit,common.pyin the layout table.docs/reproducibility.md: corrected summary of the paper, pinned weights and AADD hashes, the provenance caveat, the wider clean-env test, prerequisites and download commands in “Re-running”.provenance/clean_env_run.jsonand.log: rewritten by the final clean-env run.
Later (2026-11-19, after the VoiceBank-DEMAND set was added): the README claimed that every run
writes provenance.json, but only run_models.py did. controlled.py, latent_run.py and
demand.py now write one at the end of each model pass (the finished passes were re-entered, which
skips the done clips and writes the manifest, so their code_commit is the commit of that re-entry,
not of the original run). The clean-environment test was re-run on the final tree.
4. Not fixed, and why#
AADD weights are fetched from
main. The URLs live inside AADD (aadd/model.py). Pinning them needs a change upstream, or a pre-download step in WAYS that checks the sha256 values listed indocs/reproducibility.md. I did not add that step.The whisper-base detector backbone has no revision pin. It is built by AADD’s
WhisperFrameModel(backbone="openai/whisper-base"), which takes no revision. At inference the trained checkpoint overwrites the weights, so only retraining depends on it.Transitive packages are unpinned.
requirements.txtpins the direct layer, which is what the paper asks for. Pinning the transitive layer needs a lock file (pip freezefrom the clean venv). That is the authors’ call.torchaudiois claimed but unused. Removing it shrinks the install and changes nothing I could find, but the results were produced with it present, so I left the decision to the authors.The GPU runs were not re-executed (
run_all.sh,run_controlled.sh,run_backbones.sh), as agreed. Executable reliability is shown here for the CPU path and the import layer only.code_commitis null in the three 100-clipprovenance.jsonfiles, and their D_r comes from a fuller environment. These are data files, so they were not edited.The hand-drawn figures load their fonts from Google Fonts at render time, although the same TTF files are in
docs/images/fonts/. Switching to@font-facewith local files could shift the rendering, so it is noted in the docs rather than changed.HEAD moved during the audit. Commit
c5383a5(detector figure) was made in parallel. It adds stdlib-only scripts and no new dependency.
5. Clean-environment run, before and after#
before (commit |
after (this audit) |
|
|---|---|---|
result |
passed, exit 0 |
passed, exit 0 |
|
not run |
“No broken requirements found” |
tests |
12 passed, 2 deselected |
12 passed, 2 deselected |
|
not run |
passed |
claimed packages (size of D_c) |
14 |
16 |
distributions loaded (excluding |
15 |
59 |
loaded but not claimed |
11 |
45 |
multiplier as the script prints it |
1.1x |
3.8x |
The after column comes from provenance/clean_env_run.json. The multiplier rose because the check
now loads the whole stack (transformers, AADD, librosa, openai), not because anything got worse. The
committed JSON before the audit also listed ways itself under “not claimed”, which the script
already filters out. Re-running it unchanged removed that entry, so that copy had been produced by
an older version of the script.