Skip to content

evals: shared tested matchers for free-text graders instead of a hand-written regex per case #12183

Closed

Description

@kyle-sexton

Problem

Eval-case graders that judge free-text replies are hand-written regexes, one per case. Two shapes recur and keep failing review:

Each PR took three review rounds of boundary patches on the same class. Each round fixes the reviewer's example and misses the next phrasing.

Proposal

A small tested helper in the evals plugin that case graders call instead of an inline pattern:

  • shared sub-patterns for the recurring shapes (command position, token argument, negation before a verb, table verdict cell), each with its own pass/fail samples;
  • one sample harness that runs every grader's samples under both Python re and Node RegExp, so a case cannot ship a pattern its samples do not prove.

Acceptance

Refs: #12129, #12131, #12170, #12173

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    I understood this as a request for a tested, shared grader-matcher helper in the evals plugin. It would come with a dual-engine (Python re and Node RegExp) sample harness. The graders from #12129, #12131, #12170 and #12173 would move onto it. I found no duplicate among the open issues.

    The recorded decision below settles the open questions. The stored-reply replay can't run unattended, so it is left to a person on the host.

    Decision recorded. Build the shared, tested grader helper this issue proposes. Author: the issue-triage session, restating the body's Proposal and Acceptance as criteria; no new scope. The four PRs whose graders it replaces have merged: #12129, #12131, #12170 and #12173.

    Route: host-run. The replay criterion re-grades those graders' stored smoke replies, which are kept outside the repository, so the issue lane cannot run it.

    [quote truncated; the full decision is at the link]

    #12183 (comment)

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Nov 2, 2026
  4. added
    status: ready
    status: confirmed
    on Nov 2, 2026
  5. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. removed
    status: ready
    on Nov 2, 2026
  7. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  8. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    More evidence: #12173's no-pretyped-name-ack grader is on its fifth review round. Rounds 1 to 4 each found false matches on correct refusals; round 5 found the fix had gone the other way and now misses three replies it should fail (the case's title, or "it", in place of "the name"). Each round patches one direction and the next round finds the other. A shared object sub-pattern with pass and fail samples in both directions, checked together, is what the proposal asks for.

  9. added
    host-run
    on Nov 2, 2026
  10. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Build the shared, tested grader helper this issue proposes. Author: the issue-triage session, restating the body's Proposal and Acceptance as criteria; no new scope. The four PRs whose graders it replaces have merged: #12129, #12131, #12170 and #12173.

    Route: host-run. The replay criterion re-grades those graders' stored smoke replies, which are kept outside the repository, so the issue lane cannot run it.

    Acceptance criteria:

    Posted by the issue-triage session. This was generated by AI.

  11. removed
    status: confirmed
    on Nov 2, 2026
  12. 13 remaining items

  13. added
    status: ready
    on Nov 2, 2026
  14. added
    status: confirmed
    and removed
    status: ready
    on Nov 2, 2026
  15. added
    status: ready
    on Nov 2, 2026
  16. removed
    status: ready
    on Nov 2, 2026
  17. self-assigned this
    on Nov 2, 2026
  18. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  19. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Scope amendment (agent decision, lane 4). The shared regex helper covers only mechanically exact shapes: command position and token argument (the network-command-with-token graders from #12129 and #12131), and a table verdict cell only where it matches a literal value. The "reply reports or refuses X" verdict graders from #12170 and #12173, no-pretyped-name-ack included, become calibrated llm graders instead of a shared negation-before-a-verb regex.

    Why: this issue's own evidence is that #12173's regex flipped direction across five review rounds ("each round patches one direction and the next round finds the other"). The same pattern held on #12153, #12194 and #12195, which ended with semantic expectations moved to llm graders in #12376. A meaning check (a refusal, a report, a pick) is judged by a model; an exact shape keeps a tested regex. The goal of this issue, an end to grader review churn, is unchanged. The PR lists the narrowed acceptance lines.

    Posted by the lane 4 session. This was generated by AI.

  20. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor

    Done (2026-11-03): the shared grader matchers are on main through #12555 (62ee899), narrowed as recorded in the scope amendment.

    Delivered

    Replay of stored replies: done in part, and this limit stands.

    • The 34 helper-built graders join to exactly their old case.yaml text, so no reply, stored or new, can change verdict. 0 flips.
    • The stored smoke replies themselves no longer exist: test(gaming): fix dlss5 eval-suite defects found in the #6608 round #12173's body records that those sandbox traces were deleted after the run, and a search of this host's eval folders found none. So no stored reply was replayed against the 13 llm graders. Their evidence is the calibration above, whose samples include the reviewer-quoted replies from those PRs.
    • Calibration gaps: 133 gaming samples had no reproduced run and count toward no agreement; Opus's safeguards stopped 39 runs in the anti-cheat cases, which are left out.

    Not delivered, by the amendment: a negation-before-a-verb sub-pattern, and helper use for #12129's tdd graders, which have no mechanical shape.

    Posted by the lane 4 session. This was generated by AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

host-runstatus: confirmed

Fields

Work status

confirmed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions