Skip to content

feat(evals): close the eval suite's calibration gaps and convert other plugins' evals #5879

Closed

Description

@kyle-sexton

Problem

The evals plugin's eval suite reached a VALID run with the plugin scoring 0.99 and 0.31 without (delta +0.68, 95% interval +0.52 to +0.83; 29 of 31 cases at 1.00). The work left gaps in the suite's judge calibration, and a wider conversion task, none of them blocking.

Follow-ups

  1. Two judges fail correct answers that their calibration samples don't cover.
    • noise-report-before-posting/gate-before-numbers failed correct answers in four runs. Every one used the shape "run run-validity.py first; on INVALID, post the INVALID line and its reasons". Candidate causes: an absolute script path, a second gate on the noise report, or a trailing partial check.
    • noise-before-gain/not-established failed an answer that opens with "the numbers point the right way", which its rubric names as allowed.
    • Add must-pass samples of these shapes, then recalibrate.
  2. Three must-fail samples are never tested, because the reply-only agent will not reproduce them word for word:
    • measurable-criterion four-properties sample 3: the model drops its "launch a medical bot with 'answers are safe'" paragraph as unsafe advice.
    • worktree-guard-stop no-way-around sample 4, and zeros-after-usage-limit check-and-rerun sample 3: both get paraphrased.
    • Rewrite each so it still fails for one reason, with wording the model will repeat, for example a retraction that isn't safety-sensitive.
  3. measurable-criterion must-fail sample 2 now misses two properties. It was built to miss only the trial set. Since the Achievable rule changed, its invented "2% measured last month" baseline fails too, so it no longer tests one gap on its own.
  4. Convert the other plugins' evals (V7). Split to feat(evals): convert other plugins' evals.json files to claude plugin eval suites #8635.

This issue carries follow-ups 1-3 as free sample edits in one plugin's suite. The paid calibration and suite runs are split to the needs-human child (Attended Build).

Acceptance criteria

  • noise-report-before-posting gate-before-numbers and noise-before-gain not-established each gain must-pass samples in plugins/evals/evals/<case>/samples/<grader>.json, covering the shapes listed in follow-up 1.

  • The three named must-fail samples are rewritten so each misses exactly one rubric property, with wording that is not safety-sensitive and that the model reproduces:

    • measurable-criterion sample 3;
    • pe-worktree-guard-stop sample 4;
    • the check-and-rerun sample 3 of zeros-after-usage-limit. No case by that name appears in plugins/evals on main, so the PR names the case it was renamed to, or records that the sample is gone.

    The PR states each fix's one missing property.

  • measurable-criterion must-fail sample 2 again misses only the trial-set property.

  • The PR's CI runs the evals plugin tests and they pass.

  • python3 plugins/evals/skills/plugin-eval/scripts/calibrate-judge.py build --suite plugins/evals/evals --out <tmp> succeeds, and plugins/evals/skills/validate/scripts/validate-cases.py reports no FAIL. CI runs neither and neither is a lane check, so the merging reviewer runs both.

  • An evals fragment exists (scripts/new-changelog-fragment.sh evals patch), and scripts/check-changelog-fragments.sh --check passes.

Context

The loop that produced these, and the reasoning behind each, is in the pull request that adds the evals suite and validity gate (link to follow).

Activity

  1. added
    needs-triage
    on Oct 2, 2026
  2. kyle-sexton commented on Oct 4, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Agent Brief

    Type: Feature
    Summary: Close the evals plugin suite's judge-calibration gaps, and convert other plugins' skill-creator evals to claude plugin eval suites.

    Current behavior:
    The evals plugin's own claude plugin eval suite passes its validity gate, but some llm judges have uncovered shapes: the noise-report-before-posting gate-before-numbers judge and the noise-before-gain not-established judge fail correct answers their must-pass samples do not cover; three must-fail samples (measurable-criterion four-properties sample 3, worktree-guard-stop no-way-around sample 4, zeros-after-usage-limit check-and-rerun sample 3) are never exercised because the model will not repeat them word for word; and measurable-criterion must-fail sample 2 now misses two properties instead of one. Most plugins still carry only skill-creator evals.json files.

    Desired behavior:

    • Each named judge has must-pass samples for the shapes it wrongly failed, and recalibrates at or above the calibration threshold.
    • Each named must-fail sample fails for exactly one reason, with wording the model reproduces.
    • Conversion of other plugins' evals is scoped and tracked separately (see routing).

    Acceptance criteria:

    • The judge calibration script passes for every llm grader in the evals suite, including the new samples
    • Each rewritten must-fail sample misses exactly one property of its rubric
    • A valid suite run (per the validity gate) shows no judge failing an answer its rubric allows

    Out of scope:

    • Changing grader rubrics' intent
    • The run-validity and noise-report scripts

    Routing: human-gated (needs decision)

    The issue holds two different sizes of work. Follow-ups 1 to 3 are scoped calibration fixes inside one plugin's suite (C3). Follow-up 4, converting other plugins' evals, is a cross-plugin migration across dozens of plugins (C4), and its numbers are stale: code-tidying, discovery, education, improvement and planning now also have case.yaml suites, not only source-control, and the repository holds 341 evals.json files.

    Question for the owner: split follow-up 4 into its own item (decomposed per plugin), and let this issue cover follow-ups 1 to 3 only? Recommended: yes. Once split, this issue can be routed agent-ready as work-class: scoped; until then it carries the structural class of its largest part.

    Basis: verified, PR #5895 (merged 2026-10-03) names this issue as a follow-up; the named cases and samples exist under plugins/evals/evals/ unchanged since #5895; find plugins -path '*/evals/*' -name case.yaml lists suites in six plugins; find plugins -name evals.json counts 341. Searched docs/out-of-scope/: no matching concept.

  3. added
    needs-human
    needs-owner-decision
    and removed
    needs-triage
    on Oct 4, 2026
  4. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner approved applying independently verified recommendations on 2026-10-12.

    Follow-ups 1-3 are judge-calibration fixes in the evals plugin's own suite; follow-up 4 converts other plugins' evals.json files, a cross-plugin migration. Triage recommends splitting 4 out so 1-3 can go agent-ready as scoped work; no split issue exists yet.

    Verified by an independent fresh-context check (confirmed, risk low): gh issue view 5879: triage recommends the split, no owner answer; git show --stat for #7000 and #6269: neither touched the named cases (noise-report-before-posting, noise-before-gain, measurable-criterion, worktree-guard-stop, zeros-after-usage-limit); assumption true; gh issue list search: no split item exists (#6405 is a CI lane, not the conversion)

    Admission to an agent lane stays with the work-class rules and owner ratification.

  5. removed
    needs-owner-decision
    on Oct 13, 2026
  6. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: scoped. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.

  7. added
    agent-ready
    needs-human
    and removed
    needs-human
    agent-ready
    on Oct 13, 2026
  8. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Correction: this issue already carried work-class: structural, which batch ratification never admits. The admission above is reverted; it stays escalated for an attended decision.

  9. added theissue type on Oct 15, 2026
  10. added
    status: ready
    agent-ready
    and removed
    needs-human
    on Oct 22, 2026
  11. kyle-sexton commented on Oct 30, 2026

    @kyle-sexton
    MemberAuthor

    Per-grader judge agreement from the #9155 calibration run, as this issue's done-when asks:

    Judge calibration (calibrate-judge.py score)

    Verdict: PASS. Every grader is at or above 90%, and 3 samples are untested.

    Grader Agreement on reproduced runs Samples
    measurable-criterion/four-properties 23/23 (100%) 8
    noise-before-gain/not-established 24/24 (100%) 10, 2 untested
    noise-report-before-posting/gate-before-numbers 30/30 (100%) 11, 1 untested
    worktree-guard-stop/no-way-around 24/24 (100%) 8
    zeros-after-usage-limit/check-and-rerun 27/27 (100%) 9
    • The judge got 128 of 128 runs right where the agent reproduced the planted sample verbatim. All 128 had three matching judge votes.
    • By majority verdict per case, 44 of 46 cases match their label. Both mismatches are runs where the planted sample was never played back, not judge errors.
    • Three cases did not play back the planted sample (playback deviation):
      • noise-before-gain--not-established--04, all 3 runs. This is a must-fail sample with a retraction ("F-retract"). The agent wrote its own correct answer instead, and the judge rightly passed it.
      • noise-report-before-posting--gate-before-numbers--06, all 3 runs. The same pattern: a must-fail retraction sample replaced by a correct answer.
      • measurable-criterion--four-properties--08, run 3 only. Runs 1 and 2 reproduced the retraction and were judged FAIL, as labelled.
    • Safeguard flag: noise-before-gain--not-established--10 never reached the judge. Run 1 returned "API Error: Opus 5's safeguards flagged this message". Runs 2 and 3 refused to continue a reply they said had been cut off. Its FAIL matches the label only by coincidence. The flag comes from the model provider, not this plugin. Whether it recurs is UNVERIFIED.
    • Untested, so this run cannot show whether the judges catch them: the two noise-before-gain must-fail samples (04 and 10) and the gate-before-numbers must-fail sample 06. Among retraction samples, only measurable-criterion 08 reached the judge, and it was judged FAIL both times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions