# Reproducing the FIRE results ## Level 1: validate the package (seconds) Requirements: Python 3.10 or newer. The analysis uses only the standard library; Node.js is needed only for the optional syntax check. ```bash python3 analysis/verify_results.py find policies -name '*.mjs' -print0 | xargs -0 -n1 node --check ``` The first command is non-mutating. It checks source-row cardinality, pairing, task-digest agreement, cross-table identities, regenerated statistics, and the frozen checksum manifest. ## Level 2: regenerate statistics (minutes) ```bash python3 analysis/reproduce.py --out /tmp/fire-reproduced ``` This recomputes the complete-suite primary metrics, task transitions, task-cluster bootstrap intervals, paired sign-flip permutation tests, costs, termination counts, policy-firing summaries, eligible-cohort comparison, and the five-arm aggregate and comparison tables. The frozen settings are 10,000 bootstrap repetitions, 100,000 permutations, seed 20260909 for the complete suite, and seed 20260910 for the control panel. The inputs are `results/complete-suite/attempts.csv`, `results/five-arm-panel/attempt-funnel.csv`, and the panel lineage and task matrix files. These contain scalar outcomes and provenance only. ## Level 3: rerun model experiments (expensive) The recorded environment was: - Terminal-Bench 2.1, revision 6, digest recorded in `configs/base.yaml` - Harbor 0.20.0 with Docker and task-declared CPU, memory, and timeouts - Codex CLI 0.146.0, medium reasoning effort - `openai/gpt-5.6-luna`, `openai/gpt-5.6-terra`, and `openai/gpt-5.6-sol` - FailproofAI policy hook registered as shown in `configs/arms/harness/codex.policy.json` Baseline runs use `configs/arms/harness/codex.baseline.json`; policy runs use `configs/arms/harness/codex.policy.json` and the corresponding arm YAML. Exact source-run selection and panel replacement order are frozen in the two config ledgers. A full rerun requires access to the named models and service credentials, the Terminal-Bench task environments, Harbor, Docker, Codex CLI, and the FailproofAI runtime package. Model calls are paid. The released experiment costs can be summed from the `cost_usd` columns; wall-clock time depends on host capacity and concurrency. Several tasks request 8 GB RAM, and task timeouts range from 600 to 12,000 seconds. This package does not ship the private runtime launcher or raw run directories, so it does not claim one-command experiment reproduction. The public artifact does provide the exact arm settings and enough sanitized outcome data to audit and rerun the full statistical analysis. ## Statistical conventions - Primary score: mean verifier reward across two attempts per task (`pass@1`). - Bootstrap: resample paired tasks with replacement; percentile endpoints. - Paired test: two-sided task-level sign-flip permutation test. - Monte Carlo p-values use the plus-one correction `(hits + 1)/(reps + 1)`. - Missing infrastructure attempts in the panel follow the frozen replacement lineage. Scored failures remain failures. - Firing-conditioned analyses are diagnostic because firing is post-treatment.