Skip to content

[Task]: triage the preparing-for-work eval and its inverted A/B control on the Claude pair #684

Closed

Description

@sumithr

Priority / sequencing

P1 / priority: next

Suggested labels

No response

Roadmap fields

Status: Backlog; Priority: P1; Size: S; Depends on: #683. Parent epic: #680.

Problem

The first full run on the Claude pair (#679, 2026-09-14; candidate claude-haiku-4-5, judge claude-opus-5, one sample each) produced these results that differ from what the configs expect:

Config Result Judge reason (abridged)
skill-preparing-for-work 0.45 "The rubric asks for 3-4 risks and 3-5 test ideas as a smallest useful set. The response gives 6 risks and 6 tests."
skill-preparing-for-work.ab A0 4/4, A1 3/4, B 3/4 Inverted: the no-skill leg beats the skill

Expected outcome

For every failure below: rerun only its failing cases with SUMO_EVAL_BACKEND=claude bash tests/evals/promptfoo/run-eval.sh <config> on current main (single pass; see Run budget), then classify it as skill gap (fix the SKILL.md), model-pair artefact in the rubric (the rubric encodes a GPT-specific expectation) or variance (does not reproduce under repeats). Skill gaps are fixed in the skill, never by loosening a rubric (eval-failure-diagnoser for the diagnosis). A rubric change is allowed only where the rubric itself is model-specific, and the PR and the YAML comment name the expectation removed. For an .ab control: record the pass count for every leg; the control must show B > A0 on the Claude pair, or be reworked so it discriminates, or be documented in the config header and README as non-discriminating on this pair.

Scope

  • tests/evals/promptfoo/skill-preparing-for-work.yaml, skill-preparing-for-work.ab.yaml
  • skills/sumo-qa-preparing-for-work/SKILL.md if the over-long output is a skill gap (the skill says "smallest useful set")

Run budget

Eval runs are proportionate to the change (set 2026-09-14). Never run or start the full matrix here. Prove wiring statically before any real call. Rerun only the failing cases of the configs this issue names, single pass; add a repeat only for a specific case whose result is borderline or differs from the #679 run, to tell variance from a real failure. Report exactly which eval runs were made.

Acceptance criteria

  • skill-preparing-for-work passes on a targeted rerun after the fix.
  • skill-preparing-for-work.ab shows B > A0, or is reworked / documented as non-discriminating.
  • Classification and rerun evidence (pass counts, judge reasons) posted on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680 for every failure listed.
  • No rubric clause loosened to get a skill-gap failure to pass; every rubric change names the model-specific expectation it removes.
  • Full pytest suite green.

Test plan

Targeted single-pass reruns of the failing cases before and after each change, through run-eval.sh on the Claude backend.

Context

Child of #680. Runs after the judge catalogue-context decision so the triage is not skewed by a judge-prompt change.

Activity

  1. added
    enhancement
    priority: next
    on Sep 14, 2026
  2. sumithr commented on Sep 14, 2026

    @sumithr
    OwnerAuthor

    Drift found while reconciling against current main (739493e):

    • The Scope line reads the over-long output as a possible gap against the skill's "smallest useful set". The live skills/sumo-qa-preparing-for-work/SKILL.md pins a wider count than the rubric: step 4 says "Identify 3-7 named risks", step 7 says "3-7 tests", and the Red Flags row says "3-7 is the senior-QA bar". Both configs' expected_shape ask for 3-4 risks and 3-5 test ideas. The skill therefore licenses the 6-risk / 6-test answer the judge fails. The triage treats the conflict itself as the thing to resolve, not only the candidate's output.
    • skill-preparing-for-work.ab.yaml tells the judge "The candidate has loaded the canonical classifications catalogue below" in a bare --- LOADED CLASSIFICATIONS --- block, but the A0 leg never renders loaded_classifications. That is the leg mislabel the README's "A/B configs: leg-scoped label" section describes. The [Task]: decide and implement whether the eval judge sees the catalogue vars it grades citations against #683 guard (tests/test_eval_judge_catalogue_context.py) only parses the (catalogue the candidate was given) and REFERENCE wordings, so this bare form goes unchecked.
    • The Expected outcome's SUMO_EVAL_BACKEND=claude prefix is now redundant: feat(evals): make the Claude pair the eval default #692 made the Claude pair the default backend.
  3. sumithr commented on Sep 22, 2026

    @sumithr
    OwnerAuthor

    Acceptance-criteria verification, PR #704 at head 24714de. Every AC checked against the branch, then observed running through the real MCP surface. Candidate claude-haiku-4-5, judge claude-opus-5, --no-cache, single pass, on the final tree.

    # Acceptance criterion Evidence Met
    1 skill-preparing-for-work passes on a targeted rerun after the fix 1/1 PASS, score 0.82. Was 0.45 on #679 with 6 risks and 6 tests yes
    2 .ab shows B > A0, or is reworked / documented as non-discriminating Documented branch. Rerun gives A0 4/4, A1 4/4, B 4/4, so no leg separation. The config header and tests/evals/promptfoo/README.md now state that with both recorded passes yes
    3 Classification and rerun evidence posted on #680 Comments of 2026-09-14 and 2026-09-15, plus the final-tree numbers in this comment yes
    4 No rubric clause loosened; every rubric change names what it removes The .ab judge axes are SHAPE, GROUNDING and ANTI-PATTERNS; none grades catalogue citation, so the REFERENCE relabel removes no expectation. The -security-relevance prompt moved 3-7 to 3-4 plus a security exception, a tightening yes
    5 Full pytest suite green uv run pytest exits 0, coverage 100%. CI matrix green on 24714de. Mutation gate strict-pass, 6 modules at baseline kill counts, 0 survivors yes

    Behavioural verification. The branch wheel was installed into a clean venv and driven by real headless agents through its MCP tools, in the sumo-qa clone with its real .sumo-qa artifacts.

    Expected behaviour Observed Met
    Narrow single-file change gives 3-4 risks, no padding 4 risks, 4 tests. No rendering, labelling or layout risk yes
    One test per risk, at most 5 4 of 4, 5 of 5, 5 of 5 across the scenarios yes
    Grounded security surface permits a 5th Two-file token-scope change gave 5 risks with the security pass firing yes
    Multi-file non-security permits a 5th only if distinct Three-file warehouse change gave 5; the fifth, wrong-row attribution, is distinct from the fourth, aggregate mismatch yes
    Never fewer than 3 One-line copy change gave 4, its third from the threshold interaction rather than padding yes
    Oracle rule fires on an unstated rule Unstated discount-versus-VAT ordering produced per-rule expected values and listed that rule under open assumptions yes

    Base comparison: the same narrow-change input on the main wheel returns 6 risks, reproducing the 0.45 failure. Diffing the two installed wheels, skills/sumo-qa-preparing-for-work/SKILL.md is the only shipped file that differs; the using-sumo-qa router is byte-identical.

    Merge-boundary review. The per-file sumo-qa review ran over each changed file and codex ran five adversarial rounds. Four defects were found and fixed in this PR, including a vacuous assertion in worked-example T2 that survived the original review. Codex's final pass reports no remaining defect.

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

    enhancementpriority: next

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions