Tell Codex what to improve. Let it build the measurement and run the experiment.
Codex Eval Lab turns an improvement goal into a reviewable change with an evidence trail. Codex inspects the application, designs the contract and cases, validates the grading, proposes changes, and explains the result. A local runner freezes the measurement, enforces scope and budgets, selects candidates, and seals the winner before the final comparison.
The default is end-to-end automation within your instructions. You should not have to construct evaluation forms, label answers a program can check, or approve every iteration. Codex asks when a domain decision or required permission is genuinely missing. A visual evidence viewer is available when useful; it is optional.
Unreleased source · target 0.5.0 · Python 3.11+ · standard-library core · MIT
Package metadata reports 0.5.0 as an unreleased source version. The measured implementation reported 0.4.0; identify it by commit and runtime hashes. The upgrade and packaging checklist distinguishes this source revision from a later version-only packaging change. No 0.5.0 release is published by these instructions.
Install the runner and four Codex skills:
git clone https://github.com/trevordcampbell/codex-eval-lab.git
cd codex-eval-lab
python -m pip install -e .
python scripts/install_skills.py --scope userOpen your application in Codex and give it a bounded job:
$build-eval Make this parser faster while preserving exact output. Inspect the
project and build an evaluation yourself. Keep the current language and toolchain.
You may edit parser.rs and run local tests, up to four proposal sessions, and a final
held-out comparison within 20 minutes. No production data, paid external APIs or
deployment. Ask me only for a material domain decision or missing permission.
Codex works through the whole job:
- Inspect the actual entry point, tests, constraints and improvement headroom
- Build a precise contract, grouped cases, adapters and independent outcome checks
- Challenge those checks with boundary cases, known-wrong outputs and a separate reference; identify any remaining judgment or evidence gap
- Freeze a source-bound plan and baseline, then generate and measure scoped proposals within the authorized limits
- Select, seal, run the preauthorized final test, and report the result, uncertainty, regressions and costs, including an honest unsuccessful result
Existing valid evaluation and calibration work is reused. The skills wrap the
project's current runner and provider through a small JSON-in/JSON-out adapter;
you don't need to rewrite the application in Python. $audit-eval, $hillclimb
and $report-eval are also available for a specific stage.
For exact outcomes, executable checks do the routine judging. Codex can derive boundary examples from a specification, implement a separate reference, and inject incorrect outputs to test whether the grader catches them.
The new native oracle path supports JSON-input/output tasks. It executes the reference and actual grader on positive and negative controls, then checks every frozen case for reference/expected-label/grader consistency. Each call is budgeted and retained. Artifact-dependent tasks need a separately validated adapter workflow; the generic oracle preflight does not yet transport generated files.
Keep the claim precise: executable checks passed. Model-authored cases and specifications remain model-authored. Two implementations can share a mistaken assumption; two agreeing models do not establish ground truth. Finite checks cannot prove universal correctness, source independence or production representativeness. Those assumptions stay visible with the result.
When the outcome genuinely requires judgment, the existing expert-calibration path remains strict. Reuse validated domain anchors within their scope, inspect actual traces and disagreements, and involve an expert where needed. Keep model suggestions separate from human labels. Each semantic criterion needs independent calibration and adequate support; a composite score cannot hide an unverified judge. Model-only heuristic scores can guide honestly labeled exploration, but cannot certify gains through the end-to-end readiness gate.
The evidence guide covers semantic calibration. The automation guide describes executable controls, provenance, all-case consistency and remaining assumptions.
The model proposes structured edits; the controller applies and measures them. Only approved files can change. Cases, grader, objective, guardrails and measurement design remain frozen. An evaluator fix starts a new experiment and baseline.
Development evidence informs proposals. Validation selects candidates. A candidate must pass the gates against both the incumbent and original baseline, preventing small tolerated regressions from accumulating. Related groups, rather than repetitions of the same case, are the uncertainty resampling unit.
New suites can opt into an exploratory archive policy: retain promising candidates and diverse development behaviors as future parents, while treating observed gains as search guidance. Final confirmation keeps the original threshold and guardrails. Best found, validation champion and release outcome are reported separately. Conservative selection remains the default until fresh comparisons establish which policy helps a given task.
Native Codex can initialize a protected plan with start-native, then use
prepare-turn, submit-turn and active-only evaluate-turn --call-id to reserve
proposal opportunities and capture bound prompt/source/feedback/response and
selection receipts. Evaluation never falls through to a new optimizer call.
These later native workflow hardening commands are separate from the frozen
comparative benchmark and its measured runtime. This makes external orchestration
inspectable when a standalone CLI backend is unavailable.
Exact-JSON adversarial controls also strengthen new objective
evaluations with explicit type, shape, value and positive-invariance checks.
The final test is separate. The runner seals exact source identities before opening it, using permission already included in the plan. A failed final comparison is retained and consumes that holdout; it is not permission to tune on its failures. For timing-sensitive experiments, persisted paired AB/BA cohorts remeasure references beside candidates. They reduce slow drift, not every source of noise.
Reservations precede execution. Oracle checks, application and grader calls, failures and unknown outcomes stay in the ledger. Automation protects trial and evaluation-dollar capacity for the final comparison. Optimizer usage is separate; unknown charges stay unknown. These are scheduling limits based on honest cost bounds, not provider-side hard caps.
The following automatic CLI path requires a working configured command or Codex
CLI proposal backend. The native start-native / prepare-turn / submit-turn /
evaluate-turn bridge is a separate
host-orchestrated path; using it does not verify one-command live automate
execution. See the native handoff example.
Native commands are available when you want to inspect the plan directly:
eval-lab automation-plan <suite> --app <app> --out <new-plan.json>
eval-lab automate <suite> --app <app> --state <new-state> \
--plan <new-plan.json> --approve-plan \
--authorization-note "<the actual bounded permission>"
eval-lab resume-automation <state>The plan binds exact bytes, execution settings, scope, limits and final-test intent. A flag records permission already granted; it cannot grant authority for spending, private-data transmission, security changes or other consequential actions. Interrupted or indeterminate attempts are never silently retried. Reports preserve raw local evidence while showing bounded trace previews by default.
The Rust request-log aggregation study contains four live model-authored proposals, an intentionally incorrect negative control, unchanged controls, rejection decisions and a sealed synthetic final test. The selected implementation achieved a 1.631× normalized paired kernel speedup with 100% exact output correctness on 36 final cases in 18 seeded groups. The full result explains the interval, workload, measured quantity, observed failures and limits.
This is historical evidence from the 0.2 engine with a custom protected Rust timing driver. It did not use the new automation CLI or authenticated Codex CLI proposals. Its public final cases are now reproduction data, not a fresh holdout. The source-only replay helper has been syntax/help checked; this revision has not rerun the complete historical benchmark. Native model-session cost was unmeasured.
A three-family synthetic Python pilot used 18 fresh native author contexts and a strong iterative Direct comparator. The new archive workflow improved geometric kernel CPU efficiency by 11.3% over the historical workflow, but used 21.3% more CPU than Direct and lost five of six matched context comparisons. All final outputs were exactly correct. The policy author retained the original policy; no successful meta mutation or live component ablation was achieved. Archive search remains opt-in, with unchanged release gates.
Separate verification experiments removed a duplicate executable read inside each oracle check, then added an exact completed-matrix revisit path. Fresh entry/exit bytes and exact ledger identity remain checked; actual adapter execution boundaries are unchanged. A direct original-to-final comparison measured 87.47% less process CPU for the prespecified synthetic 12-case completed-result revisit (three matched pairs). This phase-specific Python 3.12.14 result is separate from model quality, whole-workflow speed and newer-interpreter compatibility.
python scripts/automation_demo.py --out ../eval-lab-automation-demoThis executes real local oracle controls, all-case consistency checks, baseline, three scripted proposals, selection, a sealed final comparison and a self-contained report. No API key, network or paid model call is needed. It tests the machinery; the proposals are scripted and cases synthetic, so it is not a live model benchmark. The earlier routing and timing fixtures remain available.
The local plugin packages the same skills with read-only MCP evidence tools and an optional MCP Apps UI. Native Codex uses its own authorized environment tools to run the CLI. The hosted/read-only plugin does not execute experiments, run arbitrary code or approve anything on your behalf.
python -m pip install -e ".[plugin]"
python scripts/build_plugin.py --out ../eval-lab-plugin
python scripts/validate_plugin.py ../eval-lab-plugin/catalog/plugins/codex-eval-labSee the plugin guide for installation, host support and artifact scoping. UI availability is distinct from evidence readiness. Local execution and fresh proposal contexts are cooperative boundaries, not hostile-code or private-file isolation. Use a separately provisioned trust domain for genuinely hidden holdouts.
- Upgrade guide: unreleased changes, compatibility and packaging checklist
- Automation: workflow, evidence categories, budgets and migration
- Operating guide and protocol: commands, adapters and configuration
- Statistics and security: uncertainty, adaptive selection, spending and isolation
- Evidence: expert labels, atomic judge calibration and drift
- Validation record: verified and unverified integrations
- Capabilities, dependencies, contributing and changelog
An upgrade does not rewrite a frozen experiment. Preserve its original runtime; new evaluator/runtime semantics need a new state and baseline. No measured outcome here guarantees improvement on unsampled tasks or production traffic.
This independent project was inspired by Lance Martin's Automating eval design and hillclimbing with Claude. It is not an official OpenAI or Anthropic product.