Skip to content

[Quality]: reviewing-before-merge passed a confounded A/B control, an unchecked spec-authority rule and a false doc claim that codex caught on #688 #697

Closed as not planned

Description

@sumithr

What was generic / wrong / missing?

On the #688 branch (fix/issue-688-strengthening-tests-ab, commit d42bf06), the orchestrator ran a per-file sumo_qa_reviewing_before_merge review. It flagged only the unrerun sibling configs and the leaked HARD-GATE label. The codex adversarial pass on the same diff then found three real defects the per-file review missed:

  1. Confounded A/B control (tests/evals/promptfoo/skill-strengthening-tests.ab.yaml, shared prompt in all three legs). The prompt says "Decide whether the survivor is a real assertion gap or an equivalent mutant", gives only those two output formats, and forbids additional sections. The new production-defect seed's correct answer is neither. A0 and A1 cannot give it without disobeying their prompt, while B gets a skill that overrides the prompt. The measured lift (A0 FAIL, A1 FAIL, B PASS) is confounded by unequal answer-space constraints. The recorded A1 answer did exactly this: it saw the off-by-one, then supplied the required test anyway.
  2. Spec authority unchecked (skills/sumo-qa-strengthening-tests/SKILL.md step 3 outcome (c), step 5). Any acceptance criterion, ticket, docstring or test comment that matches the mutant counts as a production defect. There is no check that the spec is current. With an obsolete comment, the skill stops, leaves a real survivor alive, and steers the user toward restoring obsolete behaviour.
  3. False doc claim (README [Task]: rework or document the non-discriminating strengthening-tests A/B control on the Claude pair #688 subsection and YAML header). The docs say every original seed's recap hands over "the technique name and the missing boundary input". The equivalent-mutant seed supplies neither.

Expected QA behavior

  • A/B check (iv): the review asks whether the A0 leg could pass on pre-existing rules. It should also ask the inverse: whether the shared prompt structurally forbids the passing answer for A0/A1. A prompt that enumerates the only allowed outcomes, or pins an output format that excludes the rubric's PASS shape, makes the lift a prompt artefact, not skill evidence.
  • A new classification rule that trusts an input as authoritative (a spec, a comment, a docstring): the review should probe the stale/obsolete-input direction, the same both-directions discipline as check (iii).
  • Documented claims about eval seeds ("each seed does X"): the review should verify them per seed, like the documented-inventory drift rule.

Which skill produced the output?

sumo-qa-reviewing-before-merge

Files / change type (if shareable)

A promptfoo .ab.yaml A/B control (new seed plus rubric text), a SKILL.md triage rule, the eval README. Change type: eval-driven skill change. Issue #688, epic #680.

Were catalogues / standards loaded in the conversation?

Yes: the skill was loaded via sumo_qa_load_skill_context (manifest, iron-law and checklist sections).

Host and model

Claude Code, orchestrator Opus 5. Codex adversarial pass via the codex CLI companion.

Other context

The skill's check (i) still says an eval-surface change must run "with Node 24 + the configured OpenAI key". The gate moved to the Claude pair in #682 (PR #692), so this line in the shipped SKILL.md is stale. It should name the Claude pair and a proportionate run of the touched configs. #653 and #685 have landed; the wording fix is now follow-up work on the shipped modular review skill.

Roadmap fields

Status: Backlog; Priority: P2; Size: M; Depends on: none

Acceptance criteria

  • sumo-qa-reviewing-before-merge checks whether an A/B baseline leg is structurally allowed to produce the rubric's passing answer.
  • Review guidance probes stale or obsolete spec-authority inputs before treating a matching ticket, docstring, comment, or test note as authoritative.
  • Documented eval-seed claims are verified per seed before being repeated in README or YAML prose.
  • Eval-surface review wording names the Claude-pair gate and proportionate touched-config runs.

Test plan

Focused review-skill conformance/content tests plus a reviewing-before-merge eval or fixture for A/B prompt-confounding and stale spec-authority checks.

Non-goals

Activity

  1. added
    ux
    on Sep 14, 2026
  2. sumithr commented on Sep 14, 2026

    @sumithr
    OwnerAuthor

    Same run, second branch: #686 (fix/issue-686-triaging-isolation-step, commit 7ca5b09, skills/sumo-qa-triaging-test-failures/SKILL.md step 4 rewrite). The per-file sumo_qa_reviewing_before_merge pass flagged only that four seeds were not rerun. Codex then found three defects it missed:

    1. Supplied results discarded. The new rule "context is still a hypothesis until this runs" would make a compliant answer ask for a redundant rerun on the product-regression seed, which already supplies "3/3 reruns identical" and requires a handoff.
    2. Contradiction inside step 4. The pinned Experiment: / If / If shape bans reading source as the step, yet the test-bug branch's experiment is a spec comparison, and the external-service branch ("stub the boundary") states no two outcomes.
    3. Stale example. The order-dependence Good example still uses the old prose shape, which contradicts the newly pinned format.

    Expected QA behavior, in addition to the #688 items above: when a diff makes an instruction MANDATORY for every branch of a rule (here a pinned output shape across six causes), the review should walk each branch against it, and check each existing example and each eval seed's supplied context against the new mandate, not only the branches the diff edited.

  3. sumithr commented on Sep 14, 2026

    @sumithr
    OwnerAuthor

    Same run, #684 (fix/issue-684-preparing-for-work-eval, commit e90fced, the risk and test count rules in skills/sumo-qa-preparing-for-work/SKILL.md). The per-file review caught the stale "Name 3-7 risks" in the security-relevance prompt. Codex found three more defects it missed:

    1. Oracle rule vs one test per risk. The new rule ("don't pick an unstated rule, list it as an open assumption") plus "one test per named risk" leaves no valid output when a risk's expected value depends on that unstated rule: invent a value, or break the concreteness rule.
    2. Worked example breaks the new rule. tests/scenarios/worked-examples/01-plan-qa-for-story.md asserts outcomes that its own open-assumptions list says are unconfirmed.
    3. Floor vs cut rule. "Never fewer than 3" contradicts the new cut rule and the no-invented-risks rule on a genuinely narrow change.

    Expected QA behavior: when a diff adds a pinned rule next to existing pinned rules (concreteness, anchor-fit, minimum counts), the review should test the rules against each other on a minimal input where they could collide. It should also check each worked example and scenario doc against the new rule, not only the lines the diff touched.

  4. added
    priority: later
    on Sep 15, 2026
  5. sumithr commented on Sep 15, 2026

    @sumithr
    OwnerAuthor

    #686 again, at the merge boundary (PR #705, head 9c6b6a4). The codex GitHub app left two P2 threads on skills/sumo-qa-triaging-test-failures/SKILL.md step 4 that the PR-open per-file sumo_qa_reviewing_before_merge pass did not raise:

    1. An experiment outcome that does not discriminate. The order/timing branch read "fails regardless of order ⇒ re-open toward a product cause". A test that fails in every ordering but still passes alone points at suite-wide shared state, not the product. The eval's own expected shape re-opens only when the test fails alone. Real defect, fixed locally in 9070870.
    2. Rule versus branch tension. The recorded-result rule accepts only a run's observed outcome, while the test-bug branch's experiment is a comparison whose inputs the seed already supplies. Not kept as a fix: letting a supplied comparison count as recorded made the rerun-to-green and product-regression seeds fail on the Claude pair (rubric 0.35 each).

    Same probe gap as the earlier entries: the review checks that each per-cause branch states two outcomes, not that each outcome is a correct inference from that one check.

  6. sumithr commented on Sep 29, 2026

    @sumithr
    OwnerAuthor

    Triaged under the review-miss policy (epic #753): this is an instance miss (an already-loaded review module covered it), category eval-validity. Recorded on the review-miss ledger: #752 (comment)

    It is absorbed by the category issue #759, which strengthens the review lens for eval-validity as a whole.

    Closing as not planned in favour of that record. Reopen if this turns out to be a class gap (sumo-qa steered the run wrong or had no move for the step).

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

    priority: laterux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions