| name | generate-eval |
| description | Create one pinned fresh-API coding case that passes execution and defeats a no-search baseline. |
Generate Eval
Use this for one benchmark case that measures whether current official documentation helps a coding agent use an exact API correctly.
Do not use it for general coding quality or subjective output.
Inputs
TARGET: a pinned package version, repository commit, or release.
OUT: the path for one candidate JSON object.
Read bench/src/generate-eval/schema.ts and bench/src/generate-eval/certify.ts before authoring the candidate.
Those files define the current format and checks.
Build One Case
- Read the target's official documentation, release notes, types, and installed implementation.
- Find one recent or niche identifier, option, behavior, or migration that a capable model could plausibly get wrong without search.
- Pin the target exactly and record the primary source URL.
- Write a realistic prompt that requires the detail but does not reveal it.
- Add a minimal reference workspace that imports and exercises the real target.
- Make the reference command fail on a no-op, deprecated form, or plausible wrong guess.
- Add exact positive and negative answer checks only where text matching cannot be satisfied accidentally.
Never mock the target or use the candidate answer as the source of truth.
Prefer executable behavior over identifier matching.
Calibrate
Run all of these before writing OUT:
- Fresh setup plus the reference command passes in a clean workspace.
- The correct answer passes the answer checks.
- A plausible wrong answer fails.
- A strong no-search baseline fails for the intended API mistake rather than setup, network, or scoring failure.
- A search-enabled pilot can find the official source and solve the case.
Reject a case that both baselines solve, neither baseline can solve, depends on an unavailable package, leaks the answer through setup, or grades generic words.
Output
Write exactly one schema-valid candidate to OUT.
Include the pinned target, source, clean setup, reference files and command, expected output, answer checks, and the observed calibration results required by the current schema.
Then consider
calibrate-before-measure before running a larger search comparison.
eval-engineering when the target is a production agent capability rather than fresh API recall.
verify before publishing a generated task set.