Skip to content

[Task]: triage the reviewing-before-merge eval failures and A/B controls on the Claude pair #685

Closed

Description

@sumithr

Priority / sequencing

P1 / priority: next

Suggested labels

No response

Roadmap fields

Status: In progress; Priority: P1; Size: L; Depends on: #683 (closed), PR #653 (merged 2026-09-25 as 2ec3f46). Parent epic: #680. Also owns the .ab-control criterion handed over from #665.

Problem

Two Claude-pair runs (candidate claude-haiku-4-5, judge claude-opus-5, single pass) produced results that differ from what the reviewing-before-merge configs expect.

Run 1: #679, 2026-09-14, main before the lazy-module split.

Config Result Judge reason (abridged)
skill-reviewing-before-merge-adversarial 0.10 Rollback data loss named but called pre-existing, not a blocker
skill-reviewing-before-merge-feedback-memory 0.30 SHAPE fail despite an evidence-led NOT SAFE verdict
skill-reviewing-before-merge-scorecard (2 cases) 0.55, 0.45 SHAPE pass, GROUNDING fail: the scorecard never marks coverage/mutation as "not measured" nor says it is an evidence summary

Run 2: #665, 2026-09-25, PR #653's split skill (graded tree 6296f94, byte-identical in skills/, configs and providers to the merged 92fb593). Full result on #451: #451 (comment)

  • All 19 plain configs passed, 45 of 45 cases, including the three run-1 failures above. One pass on a different skill tree, so this is not yet a classification.
  • .ab controls, per leg:
Config Run 1 (#679) Run 2 (#665) Separates in run 2
skill-reviewing-before-merge-adversarial.ab A0 3/7, B 7/7 A0 7/7, A1 7/7, B 7/7 no (regressed from run 1)
skill-reviewing-before-merge.ab A0 2/3, A1 1/3, B 3/3 A0 3/3, A1 3/3, B 3/3 no
skill-reviewing-before-merge-eval-validity.ab 1/1, 1/1 both legs pass no
skill-reviewing-before-merge-feature-flow.ab not flagged both legs pass no
skill-reviewing-before-merge-feedback-memory.ab not flagged both legs pass no
skill-reviewing-before-merge-fence-parser.ab not flagged both legs pass no
skill-reviewing-before-merge-runtime-scope.ab 1/1, 1/1 both legs pass no
skill-reviewing-before-merge-unproven-escalation.ab pre 0/2, post 1/2 pre 1/2 fail, post 2/2 pass on one seed
skill-reviewing-before-merge-verifier-evidence.ab not flagged pre FAIL 0.00, post PASS 0.90 yes

The seven non-separating controls fail because their control legs pass as well. Those legs read no skill, or a frozen fixtures/reviewing-before-merge-PRE-*.SKILL.md snapshot, so the split cannot be the cause: the control input no longer defeats the Claude candidate without the skill.

Expected outcome

  • Rubric-judged failures (run 1): rerun each once on current main. If it passes, classify it as variance or fixed by the split, citing both runs. If it fails, classify it as skill gap (fix the root SKILL.md or the owning lazy module), model-pair artefact in the rubric (the rubric encodes a GPT-specific expectation) or variance. Use eval-failure-diagnoser for the diagnosis. Skill gaps are fixed in the skill, never by loosening a rubric. A rubric change is allowed only where the rubric itself is model-specific, and the PR and the YAML comment name the expectation removed.
  • .ab controls: for each of the seven non-separating controls, and the one-seed unproven-escalation.ab, work out why the control leg passes on the Claude pair. Then either rework the control input so the no-skill or PRE leg fails for the reason the control exists (without changing what the skill leg is graded on), or document it in the config header and the eval README as non-discriminating on this pair. Record the pass count for every leg.

Scope

  • The nine tests/evals/promptfoo/skill-reviewing-before-merge*.ab.yaml controls and the three plain configs from run 1 (adversarial, feedback-memory, scorecard)
  • skills/sumo-qa-reviewing-before-merge/ (root SKILL.md and the lazy modules) where a failure is a skill gap
  • tests/evals/promptfoo/fixtures/reviewing-before-merge-PRE-* and control-leg inputs where a control is reworked
  • tests/evals/promptfoo/README.md for any control documented as non-discriminating

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. Run 2 is the "before" evidence, so do not rerun a config just to re-observe it. Rerun only the configs a change touches, single pass; add a repeat only for a specific case whose result is borderline or differs between runs 1 and 2, to tell variance from a real failure. After any skill change, rerun adversarial.ab and verifier-evidence.ab once. Report exactly which eval runs were made.

Acceptance criteria

  • Each run-1 rubric failure (adversarial, feedback-memory, scorecard x2) is classified skill gap / rubric artefact / variance, with the run-1 and run-2 results and any rerun cited.
  • Every skill-gap failure passes on a targeted rerun after a fix in the SKILL.md or lazy module.
  • Each of the seven non-separating .ab controls and unproven-escalation.ab either separates its legs on the Claude pair (B > A0, or post-edit > pre-edit) after a rework, or is documented as non-discriminating on this pair in its config header and the eval README. This is the criterion handed over from [Task]: run the reviewing-before-merge matrix under the new gate and post the result on #451 to unblock PR #653 #665.
  • verifier-evidence.ab still separates after any skill change.
  • Classification and rerun evidence (leg pass counts, judge reasons) posted on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680 for every item above.
  • 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 through run-eval.sh on the Claude backend, before (run 2 is the baseline) and after each change.

Context

Child of #680. Runs after the judge catalogue-context decision (#683) so the triage is not skewed by a judge-prompt change. Related sumo-qa gaps logged from #451: #649, #650, #659. Check them before diagnosing from scratch.

Activity

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

    @sumithr
    OwnerAuthor

    Unblocked: PR #653 merged as 2ec3f46. The 'before' evidence from #665 is here: #451 (comment). That run is one pass on the Claude pair, with per-leg counts for all 9 reviewing-before-merge .ab controls. On that run, verifier-evidence.ab separates. unproven-escalation.ab separates on one seed. The other 7 do not separate, because their control legs pass.

  3. sumithr commented on Sep 25, 2026

    @sumithr
    OwnerAuthor

    Verification for PR #725 (head 2f66691)

    # Acceptance criterion Evidence
    1 Run-1 rubric failures classified adversarial, feedback-memory, scorecard x2: variance or fixed by the split. Run-1 and run-2 results plus run-1 judge reasons are on #680 (classification, final-tree reruns)
    2 Skill-gap failures pass after the fix None of the run-1 failures was a skill gap. The two gaps this PR found pass on the final tree: feature-flow.ab A1 PASS 0.85, eval-validity.ab A1 PASS 0.92
    3 Controls separate or are documented Separate: runtime-scope (A0 0/3, A1 2/3), fence-parser (0/2 graded, 3/3), feature-flow (0/3, 2/3; final tree 0/1, 1/1). Documented non-discriminating in the header and the README: feedback-memory, unproven-escalation, reviewing-before-merge.ab, adversarial.ab, eval-validity.ab (A0 2 of 5 graded samples)
    4 verifier-evidence.ab still separates Final tree: A0 FAIL 0.00, A1 PASS 0.88
    5 Evidence on #680 Leg counts and judge reasons in the two comments above
    6 No rubric loosened The only rubric change is the eval-validity anti-pattern, which now requires BOTH inputs, a tightening. The other configs change seeds only
    7 Full pytest green Local: 4128 passed, 5 skipped, 1 xfailed, 0 failed, coverage 100.00%. CI: 33/33 green

    Behaviour checked on the real surface: a headless claude -p agent on the branch MCP build reviewed a test-only .ab.yaml diff in a single pass. It emitted its Surface verifier: and A/B control: lines, then NOT SAFE TO MERGE. The router output matched main exactly.

    Eval runs at merge review: verifier-evidence.ab, feature-flow.ab, eval-validity.ab plus its A0 leg twice more, and the adversarial.ab skill leg. That was 15 candidate calls, about 289k tokens. Codex re-reviewed each follow-up commit and found nothing.

  4. added a commit that references this issue on Sep 25, 2026
    51b637e
  5. added 2 commits that reference this issue on Sep 28, 2026
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