agentleFS
marin-communitymarin-community/marin/.agents/skills/audit-grader/SKILL.md

audit-grader

Skill4.2k starsChanged 3 months agoApache-2.0View on GitHub

Audit a programmatic checker, LLM judge, RL reward function, or agent-task verifier against its task text, measure its effect on scores, and estimate its error rate with a blinded review of frozen samples. Use when asked to audit a grader, including one whose scores look implausible; do not activate for routine grader changes.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about marin-community/marin

The biggest 5 of 55 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 55

Talked about on GitHub and Bluesky (55 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 5

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Build labeled fixtures: Write short responses labeled from the contract alone, and run them against the grader as regression tests.

    line 23
  2. Very specific:

    If the task has no issue, open one with file-issue before step 2.

    line 95
  3. Very specific:

    Keep fixtures as regression tests in the repository's grader test directory, and mark the ones that the current grader fails with …

    line 97
  4. Very specific:

    If the text allows two verdicts, add a decision entry named D-<topic> to the report's decision table, with both readings, an example of …

    line 162
  5. Distinctive:

    Write pass, fail, and near-miss responses for every check, and label them from the contract alone.

    line 176
  6. Distinctive:

    Keep the smallest response that reproduces each wrong verdict, and give each fixture a stable id, such as the check name plus a content …

    line 184
  7. Distinctive:

    When a fixture or a later step shows a defect that a change to the grader's code can fix, build a replacement grader from the contracts.

    line 192
  8. Distinctive:

    Run the grader and the reference implementation on the same responses, and classify every disagreement as a grader defect, a reference …

    line 203
  9. Distinctive:

    If the audit has a replacement grader, run the reference's unit tests against it, and list each assertion that the contract contradicts.

    line 207
  10. Distinctive:

    Add property and metamorphic tests.

    line 210
  11. Distinctive:

    Test score-level transforms against the contract, such as IFBench's loose grading (references/ifbench.md, section 4).

    line 218
  12. Distinctive:

    Start from the stored records of existing runs, and count what they already show, such as truncated responses or merged reasoning, before …

    line 226
  13. Distinctive:

    Before the review, record in the issue the result that would change the recommendation in step 7.

    line 252
  14. Distinctive:

    When the audit has no replacement, nothing was fitted to the panel, so a round may draw from the whole panel.

    line 272

≈ “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

Audit a grader

A grader turns a response into a verdict: pass or fail, or a class such as correct, incorrect, or not attempted. It can be a programmatic checker, an LLM judge, an RL reward function, or the verifier of an agent task. This audit measures how often a grader contradicts the task text and how much that changes scores. It ends with one recommendation: admit the grader, fix it, or replace the benchmark.

Overview

The audit has seven steps:

  1. Pin the inputs. Record every file, setting, and dependency that can change a verdict.
  2. Write a contract for each check. State its pass and fail conditions from the task text, before reading the grader code.
  3. Build labeled fixtures. Write short responses labeled from the contract alone, and run them against the grader as regression tests. When they or a later step show a defect in the grader's code, build a replacement grader from the contracts.
  4. Compare with the reference and stress the grader. Grade the same responses with the benchmark authors' grader, and add property tests, fuzzing, and content-free responses.
  5. Run a model panel. Grade real model responses with every grader, and measure how each model's score changes.
  6. Estimate the error rate with a blinded review. Two reviewers label a frozen sample of cases without seeing any grader's verdict.
  7. Report. Lead with the error rate and its effect on scores, then list the findings and the decision entries.

Steps 1 to 4 need no model responses. Steps 5 and 6 use model responses: step 5 measures how much the grader moves scores, and step 6 how often it is wrong.

Terms used below:

  • Check: one separately scored requirement, such as an instruction type or a rubric item.
  • Graded text: the part of a response that the grader scores, such as the text after the model's last end-of-reasoning marker.
  • Contract: a check's pass and fail conditions, written from the text that the model or the judge sees.
  • Decision entry: a named point, D-<topic>, where the text allows two verdicts. The maintainers of the evaluation choose the reading.
  • Finding: a defect, such as a verdict that is wrong under every reading the text allows, an unpinned input, or a grader exception.
  • Fixture: a response labeled from the contract alone and kept as a regression test.
  • Reference implementation: the benchmark authors' original grader, if one exists.
  • Replacement grader: an implementation of the contracts, with one switch per decision entry. Step 3 says when the audit needs one.
  • Panel: responses from several models and decoding settings, graded by every grader.
  • Scored coverage: the share of expected items that receive a verdict.
  • Lean and consensus: a reviewer's lean is their verdict under the reading they find most natural; two agreeing leans are a consensus.
  • Error rate: the share of a grader's verdicts that differ from the consensus, estimated per stratum of the review sample and weighted by stratum size.
  • False reward: a reward pass that the contract contradicts.

The steps apply to each kind of grader as follows:

  • A programmatic checker, such as an instruction checker or a test runner for code, is audited one check at a time.
  • An LLM judge is a pipeline: graded-text extraction, judge-prompt rendering, the judge call, reply parsing, label mapping, and aggregation. Audit every stage. Fixtures test the deterministic stages with a fake judge, and the real judge grades responses only in step 5.
  • An RL reward is a grader whose verdicts train a model, so step 5 also counts its false rewards.
  • An agent task's verifier grades the state that an agent leaves in a sandbox, such as an answer file. Its fixtures are sandbox states, and its review cases show the state frozen from each trial.

references/ifbench.md is a worked example, the audit of the 58 IFBench instruction checkers, with one example per step. That audit read the checker code before it wrote its contracts, counted as findings nine checker behaviors that step 3 treats as decisions, and kept its frozen samples in its own repository; where it differs from the steps below, follow the steps. references/validation.md reports runs of this skill, without the answer keys, on five small graders with planted defects that cover the four kinds above, and a blind rerun on IFBench.

Records

Record the audit in the task's existing issue: the pinned inputs, the contract hash, the decision entries, the findings, and the hash of each frozen sample. If the task has no issue, open one with file-issue before step 2.

Keep fixtures as regression tests in the repository's grader test directory, and mark the ones that the current grader fails with pytest.mark.xfail(strict=True), so the change that fixes the grader must remove the mark. Keep the frozen samples, the keys (each case's source model and grader verdicts), and the reviews in an immutable artifact, such as a pinned Hugging Face dataset revision, and link it from the issue. Keep the audit's scripts and any replacement grader on a research branch, following research-engineering, and land fixture tests and grader fixes through manage-pr.

1. Pin the inputs

A benchmark can have several implementations, such as an Evalchemy task and a Harbor task. If the audit starts from scores that look implausible, find the implementation that produced them in the run configuration or the stored run records, and audit that one first.

Record the grader commit, the reference implementation (the benchmark authors' original grader, if one exists) and its commit, the dataset revision with one hash per row, how each prompt is rendered for the model, the response extraction rule, and every grader dependency, including data files such as NLTK data. Pin the generation settings that change the graded text: output budget, stop sequences, chat template, the server's reasoning parser, and any policy that merges a reasoning field into the answer. For an LLM judge, also pin the judge model, prompt template, decoding settings including the token limit, and reply parser. For an agent task, where an agent program prompts a model and runs the model's commands in a sandbox, and a verifier script grades the result, also pin the agent and its prompt template, the task's image, the sandbox's network access, and the verifier script from the run's task files.

Take each value from the stored run records when they include it; a run can override the defaults in code and configuration. Until step 2 has recorded the contract hash, pin only what the run records, configuration, and lockfiles show; record an extraction rule, reply parser, or dependency that only the code shows after that. Report an input that the benchmark leaves unpinned as a finding, and list an input you cannot fetch as unverified, with its location (a URL or a record field) and the command that would verify it. Before and after each run, check that every file the run loads matches its pinned commit or hash.

2. Write a contract for each check

A check is one separately scored requirement, such as an instruction type or a rubric item. Write its pass and fail conditions, or the class each kind of response must get, from the text that the model or the judge sees: the instruction, rubric, or reference answer. Write the contract before you read the grader code, so that it does not copy the grader's behavior. For an LLM judge, read only the rubric in the prompt template first. Record the contract file's hash and the time in the issue before you read any code, and mark each later contract change or decision entry with its reason.

  • Define the graded text: the whole visible answer, an exact answer, or a payload such as a CSV block. For a reasoning model, grade the text after the model's last end-of-reasoning marker (</think> for Qwen3), and never a separate reasoning field such as reasoning_content. A response whose reasoning never closes is an extraction failure: it fails every check, and the report counts these responses separately. For a grader with more than two labels, give an extraction failure its own label: it counts in the denominator, is never correct, and is not an attempt. Never give it the not-attempted label, which would hide it among the model's abstentions.
  • For an agent task, a trial is one agent run on one task, and the verifier often grades an answer file that the agent writes. State how a missing or empty answer file counts, which trials enter the denominator (for example, trials in which the agent or the verifier raises an error), how each label maps to the reward, and whether the agent may use the network.
  • If the text allows two verdicts, add a decision entry named D-<topic> to the report's decision table, with both readings, an example of each, and a proposed reading. The maintainers of the evaluation that runs the grader decide. Count decisions separately from defects.
  • A term that the text leaves undefined allows two verdicts when a careful reader could defend either, for example which characters count as whitespace, or whether other words may surround an answer. Give it a decision entry, and write the contract's reading as the proposal.
  • Give a replacement grader one switch per decision, so that the effect of each reading can be measured. For an LLM judge, a replacement changes the deterministic stages and keeps the judge model and template.

3. Build labeled fixtures

Write pass, fail, and near-miss responses for every check, and label them from the contract alone. Run them against the grader as regression tests. Run an agent task's verifier as the evaluation runs it: in the task's image, or with the same interpreter, text encoding, and shell. A fixture that the grader gets wrong is a finding when the contract is unambiguous, and a decision entry otherwise. A wrong verdict is also a decision when the non-proposed readings of several decision entries together make it correct; name every entry involved. If no combination of readings makes it correct, it is a finding. Keep the smallest response that reproduces each wrong verdict, and give each fixture a stable id, such as the check name plus a content hash.

For an LLM judge, write fixtures for each deterministic stage: judge replies for the parser and the label mapping, run with a fake judge, and candidate responses for extraction and judge-prompt rendering. Grade candidate responses with the real judge only in step 5.

When a fixture or a later step shows a defect that a change to the grader's code can fix, build a replacement grader from the contracts. For an LLM judge, this means a defect in a deterministic stage; report a defect in the judge model or its template as a finding, and measure a changed judge setup in step 5. Steps 5 and 6 compare the replacement with the grader on the same responses, so a recommendation to fix the grader comes with the measured difference in error rate. When the audit finds no such defect, it needs no replacement, and step 6 estimates the error rate of the grader alone.

4. Compare with the reference and stress the grader

  • Run the grader and the reference implementation on the same responses, and classify every disagreement as a grader defect, a reference defect, or a decision. Run the whole reference pipeline, including its sampling, retry, and aggregation code. Skip this comparison when no reference exists.
  • If the audit has a replacement grader, run the reference's unit tests against it, and list each assertion that the contract contradicts. If the reference has no tests, list the grader's own tests that encode a decision.
  • Add property and metamorphic tests. A verdict must stay the same under edits that the contract ignores, and a passing response must fail after an edit that the contract forbids.
  • Fuzz the grader, or for an LLM judge, its reply parser and judge-prompt renderer. Count an exception as a grading failure, separate from model accuracy, and check whether one exception stops the run. Fuzz counts depend on the fuzzer's input distribution, so report them as counts; take rates from steps 5 and 6.
  • Test score-level transforms against the contract, such as IFBench's loose grading (references/ifbench.md, section 4).
  • Grade content-free responses: empty text, repeated text, and a restatement of the instructions. List each check that they pass. For an LLM judge, check offline that they reach the judge unchanged, and grade them in step 5.

5. Run a model panel

Start from the stored records of existing runs, and count what they already show, such as truncated responses or merged reasoning, before you generate anything. When the task authorizes compute, generate responses from several models and decoding settings with the pinned prompt rendering, and launch the jobs through use-iris. Otherwise, report what the stored records show and treat the panel as not run. Grade every response with the grader under audit, and with the reference and the replacement where they exist. Before you use the panel to change a replacement grader, set aside held-out responses, such as one sampled run per configuration. Report pass rates per check, verdict disagreements, scored coverage (the share of expected items that receive a verdict), and the change in each model's score.

  • Rerun at least one configuration with identical settings, and compare each score change with the rerun difference.
  • For an LLM judge, repeat each judgment at the deployed settings and report how often the verdict flips. Grade each graded-text variant (the grader's and the reference's) with each judge setup (model and settings), so that each score change belongs to one stage. Give each grader the text that its own extraction produces; feeding both the same text hides differences in extraction.
  • For an RL reward, report the share of passes that contradict the contract, as judged by the replacement grader, or by the blinded review when the audit has none. These are false rewards.

6. Estimate the error rate with a blinded review

Before the review, record in the issue the result that would change the recommendation in step 7. With a replacement, for example: the replacement passes every fixture, scored coverage is complete, and its error rate is lower than the current grader's, with a paired interval that excludes zero. Without one, for example: the upper end of the grader's error-rate interval is below 2%.

  1. Draw the sample with a script and a recorded seed, and record the population size of each stratum. With a replacement grader, stratify by whether it and the grader under audit disagree; without one, stratify the same way against the reference. Sample all or most of the disagreements. The agreement stratum is usually most of the population, so its sample size sets the width of each grader's interval. With neither a replacement nor a reference, stratify by the grader's verdict, one stratum per label, so that the review covers every label. No stratum then concentrates the errors, so size every stratum's sample for the interval that the result recorded above needs. For example, by item 5, when a review finds no error in two label strata that hold 70% and 30% of the population, about 250 and 170 cases with a consensus give an upper end below 2%. A review round is one sample and its reviews. Draw the final round from the held-out responses of step 5. When the audit has no replacement, nothing was fitted to the panel, so a round may draw from the whole panel; still leave responses unused, because a round that shows the first defect calling for a replacement needs a later round on new responses. If a round prompts changes to the replacement grader, or shows the first defect that calls for one, run another round on held-out responses that no earlier round used. When none are left and the task allows no new ones, report the replacement's error rate on the reviewed responses, and say that it was fitted to them.
  2. Freeze the sample: write the sha256 of the case list in the issue before any review starts.
  3. Render the cases into batch files. Each case shows an opaque case id, the check's name and text, the prompt, and the response between explicit begin and end markers. For an agent task, the response is what the verifier reads, frozen from the trial: the answer file or other graded state, and any execution result the verifier uses. Do not show the source model, a grader verdict, or another reviewer's labels.
  4. Have two reviewers label every case, in separate runs and in different orders. Each label has a verdict (one of the grader's labels, or ambiguous), a lean (the label under the reading that the reviewer finds most natural), a confidence, and a reason that states the deciding fact or count. For language-model reviewers, use references/reviewer-prompt.md, and give them a helper that prints a case's exact response. Isolate each reviewer run if the reviewers' environment allows it. Otherwise, report that independence was instructed. Report whether the reviewers were people or language models, and name the models; two runs of one model can share blind spots.
  5. A case has a consensus when both leans agree, and an error is a grader verdict that differs from the consensus. A grader's error rate is the share of population verdicts with an error. Estimate it per stratum from the cases with a consensus, weight it by stratum size, and give 95% bootstrap intervals that resample within strata. A stratum in which a grader has no error among its n cases with a consensus adds zero to every resample, although the grader's true rate there can be above zero. For such a stratum, multiply its share of the population by the upper end of the exact two-sided 95% interval for no error in n cases, 1 - 0.025 ** (1 / n) (about 3.7/n), and raise the upper end of the grader's interval by this product. With k such strata, use 1 - (0.025 / k) ** (1 / n) for each, a Bonferroni correction, and raise the upper end by the sum of the products. A lean on an ambiguous verdict only prefers one of the readings that the text allows, so also report each rate over the cases where both verdicts are definite and agree. Report the paired difference between graders when the audit compares two, Cohen's kappa between the reviewers' leans, and the disputed cases. For a grader with more than two labels, also report the confusion matrix against the consensus. Do not resolve disputed cases yourself.

7. Report

Lead with the error rate and its effect on scores. For each finding, give an id, the check or pipeline stage, the fixture or case that shows it, the contract that it breaks, the share of verdicts that it affects, and its status in the reference grader. When the share needs a panel that has not run, name the stored field that would measure it. List the decision entries for the evaluation's maintainers. Recommend one action: admit the grader, fix it, or replace the benchmark. Post the report in the issue, following docs/dev-guide/writing-style/issues.md.

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.