verify-scoring-change
БесплатноБез исполняемых скриптовНе проверенUse when reviewing, verifying, or triaging a PR or proposed fix that changes a scorer, a metric, an answer-extraction or verdict-parsing path, or code that…
от UKGovernmentBEIS★ 763 звезды на GitHubОб этом скилле
Verify a Scoring Change
A scoring change moves reported numbers. The review has to establish three things: that the bug exists, that the fix removes it, and what else moves. The output is a verdict a maintainer can act on without repeating your work.
The seven questions to answer are the Scoring-Change Gate. The rules behind them are in BEST_PRACTICES.md. Read these four sections first:
- "Route sample-level failures to the right outcome"
- "Handle grader failures as instrument failures, not model failures"
- "Say what a metric does when its denominator is empty"
- "Dict-valued scores and metric registration"
The receipts rule
Every claim about how inspect_ai behaves must be checked against the installed pin before it goes in the verdict.
- Find the source with
uv run python -c "import inspect_ai, pathlib; print(pathlib.Path(inspect_ai.__file__).parent)". - Cite
file:line, or run a probe and paste its output. - A claim without a receipt is left out.
The same rule applies to the eval. Before judging, read its README changelog, its eval.yaml version, and git log --oneline -- src/inspect_evals/<eval>/<scorer file>. Whether a branch is reachable, whether a zero was a deliberate decision, and who produces the artefact being scored are answered by that history rather than by the diff.
Behaviours that have been cited wrongly from memory
references/framework-receipts.md lists the inspect_ai behaviours that reviewers have got wrong from memory, each with a file:line on the pin it was read on. Open it when a verdict is about to rely on how the framework treats empty inputs, nan, reducers, grader parse misses, redacted reasoning, sandbox exceptions, or mockllm. Line numbers drift between releases, so re-check any row you quote against the current pin.
Setup
Create a worktree on the PR head.
git fetch origin pull/<N>/head:pr-<N> && git worktree add .claude/worktrees/pr-<N> pr-<N>- Record the head SHA with
git rev-parse pr-<N>.
Sync the worktree so the code under review is what runs.
- Check whether the eval has extras:
grep -n "^<eval>" pyproject.tomlunder[project.optional-dependencies]. Extra names are not one-to-one with directories (bfclandbfcl_v4are separate extras), so read the matches. - Run
uv sync --group dev, adding--extra <name>for each match. A missing extra makes the scorer fail at construction and voids every probe run afterwards. - If the scorer imports a model provider module (for example
inspect_ai.model._providers.openai), add--group test, which is where the provider packages live. - An eval under
packages/has no root extra and its own lockfile. Run its tests through its tox environment (uv run --group dev tox -e <eval> -- <pytest args>; tox appends the arguments topytest, so a probe cannot go this route) and its probes withuv run --project packages/<eval> python probe.pyfrom the worktree root. For apackages/eval, receipts cite the isolated lock'sinspect_aipin. - Confirm
uv run python -c "import inspect_evals; print(inspect_evals.__file__)"prints a path inside the worktree. If it does not, nothing you run is testing the PR.
- Check whether the eval has extras:
Create the artefact directory in the main checkout, outside the worktree.
- Path:
agent_artefacts/<eval>_<version>/scoring_review_pr<N>/, using the version the PR head declares. - A PR that bumps more than one eval gets one directory per eval, with VERDICT.md in the first and a one-line pointer in the others.
- A PR to a shared helper that touches many evals and bumps none uses
agent_artefacts/utils_<helper>/scoring_review_pr<N>/, with no version component. - Write NOTES.md there as you go, and VERDICT.md at the end.
- Do not
git addthis directory. It is ignored onmain; a local checkout may lag. - The worktree directory is removed when the review ends. The verdict reaches the maintainer through the batch runner or, when asked, as a PR comment.
- Path:
Read the four non-secret settings from the main checkout's
.env, and nothing else from it.- The file holds live API keys. The only command to run against it is
grep -E '^(RUN_SLOW_TESTS|RUN_DATASET_DOWNLOAD_TESTS|INSPECT_LOG_DIR|INSPECT_EVAL_MODEL)=' .env; nothing else opens it. - pytest-dotenv reads
.envfrom a nested worktree.RUN_SLOW_TESTS=yesorRUN_DATASET_DOWNLOAD_TESTS=yesrun Docker and download tests that CI skips by default. Set them empty on the pytest command line (RUN_SLOW_TESTS= RUN_DATASET_DOWNLOAD_TESTS= ...) when you want CI's selection, and expect local counts to differ from the PR body's when Docker is present. INSPECT_EVAL_MODEL, if set, is loaded too. A scorer test that callsget_model()with no active model then fails building that provider instead of on its assertion. Setting it empty on the command line (`INSPEC
- The file holds live API keys. The only command to run against it is
Установить verify-scoring-change в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл verify-scoring-change?
Use when reviewing, verifying, or triaging a PR or proposed fix that changes a scorer, a metric, an answer-extraction or verdict-parsing path, or code that consumes a grader model's output. Also use when asked whether a scoring fix is safe to merge or whether reported numbers will move. Do NOT use for reviewing a whole evaluation against every standard (eval-quality-workflow) or for general PR review (ci-maintenance-workflow).
Как установить скилл verify-scoring-change?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-scoring-change запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic