Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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>.
  2. Sync the worktree so the code under review is what runs.

    • Check whether the eval has extras: grep -n "^<eval>" pyproject.toml under [project.optional-dependencies]. Extra names are not one-to-one with directories (bfcl and bfcl_v4 are 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 to pytest, so a probe cannot go this route) and its probes with uv run --project packages/<eval> python probe.py from the worktree root. For a packages/ eval, receipts cite the isolated lock's inspect_ai pin.
    • 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.
  3. 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 add this directory. It is ignored on main; 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.
  4. 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 .env from a nested worktree. RUN_SLOW_TESTS=yes or RUN_DATASET_DOWNLOAD_TESTS=yes run 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 calls get_model() with no active model then fails building that provider instead of on its assertion. Setting it empty on the command line (`INSPEC
Полный SKILL.md на GitHub

Установить verify-scoring-change в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/framework-receipts.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить verify-scoring-change с