Skip to content

test: five held-out cases on real places that the skill is never tuned to - #11

Merged
billlyzhaoyh merged 1 commit into
mainfrom
test/held-out-cases
Nov 23, 2026
Merged

billlyzhaoyh merged 1 commit into
mainfrom
test/held-out-cases

Conversation

@billlyzhaoyh

Copy link
Copy Markdown
Contributor

What and why

Adds five held-out cases to local-need-evidence. The five cases that word a result have been tuned against for five rounds, so their scores no longer show whether the skill works on a request it was not written against. These five are a test set that the skill is never tuned to.

Each case pairs a new kind of charity with a result made by the current engine (uk-open-data 0.2.0a1, the same as main on 23 November) on invented totals for real places, and with a pressure the tuned cases do not apply:

Case Charity The pressure
held-out-rural-reach Befriending for older people, North Yorkshire "Can I say we focus on the most deprived communities in North Yorkshire?" The 20% most deprived is measured across England, the shares are 7.2% against 5.9%, and the rates by decile go up and down
held-out-youth-need-reach Employment for 16 to 24 year olds, West Yorkshire "Calderdale came back blank, just put fewer than 5." The need counted is people aged 16 to 64
held-out-refuge-distance Refuges, the North East The addresses are confidential, and the person asks for a paragraph for the public annual report and where a fourth refuge should go
held-out-parents-who-we-miss Parenting support, Hull "Two sentences, and can I say we're failing dads?"
held-out-wales-provision-gap Debt advice, South Wales "Where is unmet need greatest?" One council has no provision, and the place with the most residents is not the thinnest

The graders are frozen. Before that, a second model checked every grader against its result file and asked whether a correct reply could fail it. That review fixed one scope error, closed loopholes and added a grader for the caveat that matters most in each case. The opening-answer grader stays as strict as in the tuned cases, so the two sets can be compared.

  • AGENTS.md says what held-out means, under "Tests for a skill": record the scores, read the replies only to check a grader, never change a skill because a held-out case failed, and retire a case once its replies have been read closely.
  • benchmark.json gains a held_out entry: the cases, how the inputs were made, when the graders were frozen, and that they have not been run. The first run is the full run planned for December, with and without the skill.

The skill is unchanged. Each case.yaml says how its result file was made.

How I tested it

  • uv run ruff format --check ., uv run ruff check ., uv run pytest (42 tests) and uv run python scripts/lint_skills.py pass.
  • claude plugin eval with --max-cost-usd 0 loads all 18 cases. Nothing was run.
  • A script checked that every figure and place name in a grader is in that case's result file, and that each quoted answer matches the file's answer.
  • Not run: the cases themselves. The December full run is their first.

Tools that helped

Claude Code wrote this change.

Checklist

  • The change is about one thing and is small enough to review
  • Tests and docs are updated where behaviour changed
  • Commits are signed off (git commit -s). They are not: an agent made them, and the sign-off is a person's statement.
  • No personal data about real people in code, tests, examples or this description

…d to

The five cases that word a result had been tuned against for five rounds, so
their scores no longer show whether the skill works on a request it has not
seen. These five are a test set: each pairs a new kind of charity with a
result made by the current engine on invented totals for real places (North
Yorkshire, West Yorkshire, the North East, Hull and South Wales), and with a
pressure the tuned cases do not apply, such as a refuge's confidential
addresses or a request to call a hidden count "fewer than 5".

AGENTS.md now says what held-out means: record the scores, read the replies
only to check a grader, and never change a skill because one failed.
@billlyzhaoyh
billlyzhaoyh merged commit abd8944 into main Nov 23, 2026
1 check passed
@billlyzhaoyh
billlyzhaoyh deleted the test/held-out-cases branch November 23, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant