agentleFS
ityaadiiiityaadiii/skills-that-say-i-dont-know/skills/eval-set-builder/SKILL.md

eval-set-builder

Skill0 starsChanged 3 months agoMITView on GitHub

Build an evaluation set from real traffic and check whether it is large enough to support the error budget being claimed. Use when someone wants to measure model accuracy, certify an error rate, decide if a model is safe to deploy, or asks "how many test cases do we need". Refuses to certify a budget the sample cannot support.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run certifies(errors, n, budget) and report upperBound, not the point estimate.

    line 25
  2. Distinctive:

    Get the budget first: Ask what error rate the process can absorb before anyone picks a sample size.

    line 29
  3. Distinctive:

    Check for contamination: If items could plausibly be in a model's training data, say so.

    line 38
  4. Distinctive:

    Get labels you can defend: If a field is a judgement call, it needs two annotators and an agreement statistic before it goes in a composite …

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Building an eval set that can actually answer the question

Most eval sets are assembled to a round number. Someone picks 50 or 100 items because those feel like enough. Then a 2% error budget gets claimed off a sample that could never have detected a 2% error rate in the first place.

The refusal

If the sample is too small to certify the budget, say so and stop. Do not report a pass. "No errors found in 60 items" is a fact about the sample, not about the model.

Rule of three: with zero observed errors in n items, the 95% upper bound on the true error rate is roughly 3/n. Certifying "under 2%" therefore needs about 150 clean items. Under 1% needs 300.

node lib/stats.ts   # see certifies() and minItemsToCertify()

Run certifies(errors, n, budget) and report upperBound, not the point estimate.

Procedure

  1. Get the budget first. Ask what error rate the process can absorb before anyone picks a sample size. If nobody can answer, that is the finding. Stop there.
  2. Compute the floor. minItemsToCertify(budget). State it before any data is collected, so the number is not negotiated after the fact.
  3. Sample from real traffic, not from imagination. Generated or hand-written items are easier than production and will overstate accuracy. If only synthetic data is available, label the whole result as non-evidential.
  4. Stratify by the slices that matter (channel, language, document type, region). An aggregate that hides a collapsed slice is worse than no number.
  5. Check for contamination. If items could plausibly be in a model's training data, say so. Public benchmarks almost always are.
  6. Get labels you can defend. If a field is a judgement call, it needs two annotators and an agreement statistic before it goes in a composite score. Grade it, show it, exclude it from the headline until then.

Output contract

Report every one of these, in this order:

  • error budget, and where it came from
  • items needed to certify it, items actually collected
  • observed errors, and the Wilson upper bound
  • certified: true | false
  • slices, with per-slice counts, flagging any slice too small to speak for itself
  • fields excluded from the composite, and why

What this prevents

A model gets deployed on "99% accurate, no errors in our test set", where the test set had 40 items. The honest version of that sentence is "our error rate is somewhere under 7%, and we cannot see anything finer than that yet."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.