DEV Community

Cover image for OpenAI Evals Went Read Only: Save Your Regression Datasets
Mudassir Khan
Mudassir Khan

Posted on

OpenAI Evals Went Read Only: Save Your Regression Datasets

OpenAI's evaluation docs now say existing Evals are read only, with a shutdown already scheduled. If your regression suite lives there, the graders, the test rows and every past run result are about to become something you can look at but never rerun, and then something you can't look at either. Here's how I'd get all of it into your own repo this week, turn it into a suite you control, and prove nothing went missing on the way out.

TL;DR

  • Read only means you can still list and read your evals, runs and output items through the API. Export them now, while that's true.
  • Export three layers, not one: the eval definition (data schema and graders), the runs, and the per row output items. The rows alone are not your regression suite.
  • Rebuild the suite as plain JSONL plus a runner you own, check outcomes instead of trusting a reply that says "done", and run each case more than once.

What changed and what is actually available

The verified surface is small. OpenAI's evaluation guide documents a platform transition: existing Evals become read only, and a shutdown date is scheduled after that. That's it. Nothing in the note promises an export button, a migration tool or a drop in replacement, so plan as if you're on your own.

What read only buys you is a window. The SDK still exposes evals.list, evals.runs.list and evals.runs.outputItems.list, which is everything you need to copy the data out. What it takes away is the part that made the suite useful: you can't run it again. A regression suite that can't run is an archive, and an archive that sits on a vendor's server past its shutdown date is gone.

If you've never thought hard about what a good eval suite holds, I wrote up a practical AI agent evaluation framework that covers what to keep and what to throw away. Short version for today: keep everything, sort it later.

Three stages build left to right: active, where you create and run evals; read only, where you can read but not run; shutdown, where the data is gone; the export window is highlighted in the read only stage

Implementation details and limits

An eval on that platform is three things stacked on top of each other, and people tend to export only the middle one.

  1. The eval definition. Its data_source_config (the shape of a test row) and its testing_criteria (the graders: string checks, model graders, Python graders). This is the logic of your suite.
  2. The runs. Which model ran, against which data, with what status. This is your history.
  3. The output items. One per test row per run: the datasource_item (the input row), the sample (what the model produced) and the grader results. This is your evidence.

Three stacked layers are highlighted one at a time: eval definition with schema and graders, runs with model and status, output items with input, output and grader results, all flowing into a folder in your own repo

Here's the export script I'd run. It walks every eval, every run and every output item with the SDK's auto pagination and writes them to a folder you can commit. I wrote it against the openai Node SDK v5, so check the method names if you're on another major version.

// export-evals.ts: copy every eval, run and output item into your repo
import OpenAI from "openai";
import { mkdir, writeFile, appendFile } from "node:fs/promises";
import { join } from "node:path";

const client = new OpenAI(); // reads OPENAI_API_KEY
const outDir = process.env.EVAL_EXPORT_DIR ?? "evals-archive";

async function exportAll() {
  await mkdir(outDir, { recursive: true });
  let evalCount = 0;
  let itemCount = 0;

  for await (const ev of client.evals.list()) {
    evalCount++;
    const dir = join(outDir, ev.id);
    await mkdir(dir, { recursive: true });
    // The definition: data source schema and testing criteria (your graders)
    await writeFile(join(dir, "eval.json"), JSON.stringify(ev, null, 2));

    for await (const run of client.evals.runs.list(ev.id)) {
      await appendFile(join(dir, "runs.jsonl"), JSON.stringify(run) + "\n");

      for await (const item of client.evals.runs.outputItems.list(run.id, { eval_id: ev.id })) {
        itemCount++;
        await appendFile(join(dir, `items-${run.id}.jsonl`), JSON.stringify(item) + "\n");
      }
    }
  }
  console.log(`exported ${evalCount} evals, ${itemCount} output items to ${outDir}`);
}

exportAll().catch((err) => {
  console.error(err);
  process.exit(1);
});
Enter fullscreen mode Exit fullscreen mode

Run it with npx tsx export-evals.ts. Three limits to know before you trust the output:

  • Uploaded datasets live elsewhere. If a run's data_source points at an uploaded file, the rows you see in output items are only the rows that run touched. Pull the original file through the Files API as well, or you lose the cases that were never run.
  • Model graders are prompts, not magic. The testing_criteria export gives you the grader prompt and settings. Rerunning it on another stack means another judge model, so expect the scores to shift and recalibrate before you compare.
  • Python graders are code. Copy their source out of eval.json into real files with tests. A grader you can't read is a grader you can't fix.

Turn the archive into a suite you own

The archive proves what happened. To keep catching regressions you need something that runs. I keep it boring on purpose: one JSONL file of cases and a small runner.

{"id":"refund-policy-01","input":"Can I get a refund after 45 days?","mustInclude":["30 days","store credit"]}
{"id":"tool-call-cancel-02","input":"Cancel order 8812 and confirm","mustInclude":["8812","cancelled"]}
Enter fullscreen mode Exit fullscreen mode
// run-regression.ts: a portable regression suite you own, with repeated trials
import OpenAI from "openai";
import { readFile } from "node:fs/promises";

type RegressionCase = {
  id: string;
  input: string;
  mustInclude: string[]; // the outcome check, not "did the model say it worked"
};

const client = new OpenAI();
const model = process.env.EVAL_MODEL ?? "";
const trials = Number(process.env.EVAL_TRIALS ?? 3);
const passBar = Number(process.env.EVAL_PASS_BAR ?? 1); // 1 = every trial must pass

function checkOutcome(output: string, c: RegressionCase): boolean {
  const text = output.toLowerCase();
  return c.mustInclude.every((needle) => text.includes(needle.toLowerCase()));
}

async function main() {
  if (!model) throw new Error("set EVAL_MODEL to the model you ship");
  const raw = await readFile("regression/cases.jsonl", "utf8");
  const cases: RegressionCase[] = raw.trim().split("\n").map((line) => JSON.parse(line));
  let failed = 0;

  for (const c of cases) {
    let passes = 0;
    for (let t = 0; t < trials; t++) {
      const res = await client.responses.create({ model, input: c.input });
      if (checkOutcome(res.output_text, c)) passes++;
    }
    const rate = passes / trials;
    const ok = rate >= passBar;
    if (!ok) failed++;
    console.log(`${ok ? "PASS" : "FAIL"} ${c.id} ${passes}/${trials}`);
  }
  if (failed > 0) process.exit(1);
}

main().catch((err) => {
  console.error(err);
  process.exit(1);
});
Enter fullscreen mode Exit fullscreen mode

The string check is the simplest grader there is, and that's the point: it's an escape hatch you can read in ten seconds. Swap checkOutcome for whatever your old testing_criteria did. Map each exported datasource_item into a case, and keep the old output items next to it as the baseline you compare against.

Evidence and verification checklist

Two ideas from Anthropic's guide to evals for AI agents shape the runner above. Verify the outcome, because a generated reply saying the task succeeded is not proof that anything actually changed. And run each case more than once, because one pass on a nondeterministic system tells you very little. For an agent, the outcome check means reading the real state afterwards (the row in the database, the file on disk, the order status), not grepping the reply.

Two cards compared: on the left a reply that says success, marked unverified; on the right the real state is checked across repeated trials, marked verified

Then prove the migration itself didn't drop anything:

cd evals-archive
# one hash per exported file, so any later edit or loss is visible
find . -type f \( -name '*.json' -o -name '*.jsonl' \) | sort | xargs shasum -a 256 > MANIFEST.sha256
# total exported output items; compare with the counts your old dashboard shows
cat */items-*.jsonl | wc -l
Enter fullscreen mode Exit fullscreen mode

Check that the number of eval folders matches the number of evals you can see in the dashboard, that every run listed in runs.jsonl has its items file, and that one replayed case gives roughly the old score. If it doesn't, you found a grader that behaved differently, which is exactly what you wanted to find before the shutdown and not after.

Where rollout or governance fails

The technical export is an afternoon. The failures I'd watch for are organisational:

  • Nobody owns it. Evals were "on the platform", so no team thinks the archive is theirs. Name one owner and one repo.
  • Only the latest run is kept. History is how you show a model change didn't make things worse. Keep every run.
  • The new runner quietly changes the bar. A different judge model or a looser threshold turns a failing suite green. Write the pass bar down next to the cases.
  • No record of the change. The NIST AI RMF 1.0 treats risk management as a lifecycle, and a change to how you evaluate a model is part of that lifecycle. A short note in the repo (what moved, which graders changed, what the baseline scores were) is enough.

It's an easy trap: the dashboard looks fine for months, then a provider change lands and nobody can say what "passing" used to mean. My opinion: the eval suite is product code, and it belongs in the same repo as the thing it tests. For what that looks like once agents are involved, see how to evaluate LLM agents in production.

Actionable next steps

Takeaway checklist with five items: export every eval, run and output item; pull uploaded dataset files; copy graders into code; replay one case against the baseline; commit the archive with a hash manifest

  1. Run the export script today and commit evals-archive/ with its manifest.
  2. Download any uploaded dataset files your runs referenced.
  3. Move graders into real code, one file per grader, with a test each.
  4. Convert the rows to cases.jsonl and wire run-regression.ts into CI.
  5. Replay a handful of cases and compare against the archived scores before you call it done.

FAQ

How does the OpenAI evals deprecation migration work for datasets?
There's no documented one click path. While Evals are read only, you list your evals, runs and output items through the API and save them yourself, then pull any uploaded dataset files separately.

When should developers move their evals off the platform?
Now. Read only is the window where export still works; after the scheduled shutdown there is nothing left to export.

Do I lose my grader logic?
Not if you export the eval definition. The testing_criteria field holds your graders; copy them into code and test them.

Related reading: AI agent evals need live internet containment before production realism and what OpenAI's sandbox findings mean for agent controls.


Before you trust a migrated suite on a new model, get a quick read on how risky its answers are with the LLM hallucination risk estimator on my site.


Drop a comment if your eval setup looks different. Curious where people are moving their suites.

Top comments (0)