Skip to content

fix(skills): make the reviewing-before-merge verdict format and A/B controls hold on the Claude pair - #725

Merged
sumithr merged 11 commits into
mainfrom
fix/issue-685-rbm-eval-ab-controls
Sep 25, 2026
Merged

sumithr merged 11 commits into
mainfrom
fix/issue-685-rbm-eval-ab-controls

Conversation

@sumithr

@sumithr sumithr commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

The reviewing-before-merge A/B controls stopped separating on the Claude pair (candidate claude-haiku-4-5, judge claude-opus-5): the pre-edit or no-skill leg passed as well as the skill leg. Most seeds narrated the defect or the conclusion in their ground-truth context, so Haiku 4.5 passed without the skill. Removing that narration exposed two skill gaps, both fixed here:

  • In a single-pass review the candidate skipped the pinned feature-flow line, or dropped the whole Verdict-format block. Step 10 never pointed at that block, and item 8 left its lines to the candidate's judgement.
  • The eval-validity module's A/B control: line accepted bare YES/NO words, so the candidate landed one of its two required findings but not both.

A rubric anti-pattern that was weaker than its own expected shape is tightened too.

Related issue

Closes #685. Child of #680 (classification and run evidence posted there).

Changes

  • skills/sumo-qa-reviewing-before-merge/SKILL.md (root, within its 3000 est. token cap)
    • Step 10 emits the Verdict-format lines first, even in a single-pass review, then the verdict.
    • Verdict-format item 8 names its triggers: a skill or eval change, a new guard or .ab.yaml, and any UI/API/CLI/worker/artifact flow the change serves, whether or not a risk names it.
    • Item 8 stays mandatory wherever it applies, including a test-only diff; modules/test-only-diff.md says the same for a skill/eval or .ab.yaml change.
    • The intro's duplicate step list and one redundant parenthetical are cut to pay for it.
  • skills/sumo-qa-reviewing-before-merge/modules/eval-validity.md (1292 of 1500): the A/B control: line requires, on NO, the pre-existing rule A0 carries, and for each credited input what the broken and the correct impl do with it.
  • tests/evals/promptfoo/skill-reviewing-before-merge-*.ab.yaml
    • runtime-scope, fence-parser, feature-flow: seeds state facts only (no narrated defect or conclusion). feature-flow's risk gate no longer names the flow as R1.
    • eval-validity (.ab and plain): the anti-pattern requires flagging BOTH non-discriminating inputs, matching the expected shape (a tightening). The .ab keeps its original seed, because a facts-only variant failed the skill leg too.
    • Every control's header gives its Claude-pair status and measured leg counts. feedback-memory, unproven-escalation, eval-validity, reviewing-before-merge.ab and adversarial.ab are documented as non-discriminating regression guards.
    • Descriptions state the pre-edit expectation as design intent where the header records otherwise.
  • tests/evals/promptfoo/README.md: the facts-only rule for pre/post-edit seeds, with its one documented exception; each control's position on the Claude pair.

How it was verified

  • Evals while developing. 29 targeted promptfoo invocations on the Claude backend, --no-cache, about 1.53M tokens (sum of tokenUsage.total). No full-matrix run.

    Control A0 Skill leg
    runtime-scope.ab 0/3 2/3
    fence-parser.ab 0/2 graded, 1 unparseable judge reply 3/3
    feature-flow.ab after the root fix, --repeat 3 0/3 2/3
    eval-validity.ab after the module fix 0/3 3/3
  • Evals on the final skill tree (1e61ea7), 15 candidate calls, about 289k tokens:

    Control Result
    verifier-evidence.ab A0 FAIL 0.00, A1 PASS 0.88: still separates
    adversarial.ab, skill leg only (A0 and A1 read no skill) B 7/7 PASS
    feature-flow.ab A0 FAIL 0.25, A1 PASS 0.85
    eval-validity.ab, A0 three samples A0 PASS 0.85 and 0.90, 1 unparseable judge reply; A1 PASS 0.92

    eval-validity.ab's A0 input is unchanged since its 0/3, so it passes 2 of 5 graded samples and does not separate. It is now documented as non-discriminating in its header and the README. Judge reasons are posted on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680.

  • Siblings after the skill fixes (single pass, all PASS): feature-flow.yaml both seeds, ac-coverage "All ACs met", security-relevance grounded-omission, base reviewing-before-merge auth-helper, adversarial both negative controls, eval-validity.yaml both seeds, guard-coverage two-sided.

  • Real surface. A headless claude -p agent on the branch build over MCP, with uvx --from pointing at the worktree, reviewed a test-only .ab.yaml diff in a single pass. It emitted its Surface verifier: and A/B control: lines, then the verdict. The router and sumo_qa_load_classifications returned output identical to main.

  • Tests. pytest: 4128 passed, 5 skipped, 1 xfailed, 0 failed, coverage 100.00%. The host-neutrality grep over skills/ is clean.

  • Review. A sumo-qa self-review ran with the eval-validity and surface-verifier modules; it found the single-A0-sample claims needed repeats, which were added. Six codex adversarial passes followed, with each fix re-reviewed, and the last pass was clean. At merge review, a per-file review and a codex review thread found that item 8 was not mandatory on a test-only .ab.yaml diff; that was fixed, and codex re-reviewed each follow-up commit clean. Declined findings: (1) "the eval-validity rubric requires calling the single A0-FAIL variance after the second-sample observation was removed": the variance conclusion is an axiom of the eval-validity module the skill leg is given, not an inference from that observation, and the seed was later restored anyway; (2) em-dashes and OpenAI-history narration that predate this branch (byte-identical to main) were left, as was the shared UNPROVEN — SAFE-blocker status token that module verdict lines pin.

Checklist

  • PR title follows Conventional Commits
  • Tests pass locally (pytest); commit hooks green. No Python changed, so mypy is not affected.
  • Added or updated tests covering the change (eval configs and leg-count evidence above)
  • Updated the relevant docs in this same PR (tests/evals/promptfoo/README.md)
  • No breaking changes

Gaps surfaced while working this: #724 (the surface-verifier module still requires an OpenAI key); evidence added to #348.

…e on the Claude pair

Four pre/post-edit controls narrated the defect or the conclusion in their
ground-truth context, so the pre-edit leg passed on claude-haiku-4-5 without
the edit's behaviour. Their seeds now state facts only (diff, code, tests,
fixtures) and they separate: runtime-scope, eval-validity, fence-parser and
feature-flow (feature-flow's risk gate also no longer names the flow as R1).

Four controls stay non-discriminating on the Claude pair and are documented
as regression guards on the skill leg, with measured leg counts in their
headers: feedback-memory and unproven-escalation (the saved-feedback block and
the developer-named risk hand A0 the answer; stripping narration did not
restore separation, so their seeds are unchanged), and the A/B/C controls
reviewing-before-merge.ab and adversarial.ab (a no-skill candidate already
reaches the skill's result).

The eval README states the facts-only rule for pre/post-edit seeds and records
each control's position.

Refs #685
…a single pass

On the Claude pair, with no risk naming the feature flow, the
reviewing-before-merge candidate either skipped the feature-flow verification
line or dropped the whole Verdict-format block when asked for a single-pass
review. Step 10 never pointed at that block, and item 8 left its lines to the
candidate's judgement of "that apply".

Step 10 now emits the Verdict-format lines before the verdict, even in a
single-pass review. Item 8 names its triggers: a skill or eval change, a new
guard or .ab.yaml, and any UI/API/CLI/worker/artifact flow the change serves,
whether or not a risk names it. The intro's duplicate step list and one
redundant parenthetical are cut to stay under the 3000-token root ceiling
(2991).

feature-flow.ab now reads A0 0/3, A1 2/3 at --repeat 3.

Refs #685
…per field

On the Claude pair the review candidate filled the eval-validity module's
A/B control line with bare YES/NO/UNPROVEN words, landing one of its two
required findings but not both. The line now asks for the pre-existing rule A0
carries (on NO) and, for each input the rubric credits, what the broken and the
correct impl do with it.

The eval-validity anti-pattern now requires BOTH non-discriminating inputs to
be flagged, matching the expected shape it enforces (the judge had passed an
answer flagging one). eval-validity.ab keeps its original seed and separates on
it (A0 0/3, A1 3/3); a facts-only variant failed the skill leg as well. Control
descriptions no longer claim a lift their headers contradict, and the
adversarial.ab description counts its seven seeds.

Refs #685

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 132e1af879

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…-only eval diff

Item 8 names .ab.yaml changes as a trigger, but the closing sentence and
the test-only-diff module listed only items 1, 3, 4, 5 and 6 as required
outside a runtime review, so a diff touching only an .ab.yaml could skip
it. Both now carry item 8 where it applies. Step 10 no longer attaches
the verdict tokens to the format-lines clause.
… on the Claude pair

On the final skill tree the eval-validity.ab A0 leg passed 2 of 2 graded
samples on the same input that earlier failed 0/3, so the control does
not separate its legs; its header and the eval README now say so. The
adversarial.ab and feature-flow.ab headers record their reruns after the
skill changes.
@sumithr
sumithr merged commit 51b637e into main Sep 25, 2026
33 checks passed
@sumithr
sumithr deleted the fix/issue-685-rbm-eval-ab-controls branch September 25, 2026 14:02
sumithr added a commit that referenced this pull request Sep 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.65.1](v0.65.0...v0.65.1)
(2026-09-25)


### Bug Fixes

* **skills:** make the reviewing-before-merge verdict format and A/B
controls hold on the Claude pair
([#725](#725))
([51b637e](51b637e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant