Repository navigation
Description
Priority / sequencing
P1 / priority: next
Suggested labels
No response
Roadmap fields
Status: Ready; Priority: P1; Size: M; Depends on: none (#679 merged). Parent epic: #680.
Problem
27 eval configs grade catalogue citations (loaded_techniques, loaded_classifications, loaded_rules, loaded_approaches, principles, ...). Those file:// catalogue vars reach only the candidate prompt. The judge's rubricPrompt receives {{ground_truth_context}} (fixed in #679) but not the catalogues, so a GROUNDING clause like "cites a technique from the loaded catalogue" is judged without the catalogue in view. The judge can then pass an invented citation or fail a real one. #679 deliberately left this as a decision for #680.
Expected outcome
A decision, backed by a measured comparison, on whether the judge also receives the catalogue vars, implemented if yes. The per-config failure triage (sibling slices) runs after this, so its classifications are not skewed by a judge-context change landing mid-way.
Scope
- Start with the fabricated-citation probe below (judge only, fixed candidate output). Then compare the current rubricPrompt with a variant that adds the catalogue vars in a labelled block on at most 2 citation-grading configs (one reviewing-before-merge, one preparing-for-work or answering-testing-question), single pass, re-grading the same saved candidate outputs under both judge variants rather than regenerating them.
- Also seed one test whose candidate output cites a technique that is not in the catalogue (a fabricated citation) and show which variant catches it. This is the case that decides the question, so run it first.
- If yes: add the catalogue block to every rubricPrompt that grades citations, the same way
ground_truth_contextis passed, and document it in the README's rubric-authoring section. Record judge prompt size before/after. - If no: record why on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680 and in the README.
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
- Before/after pass counts and judge reasons for each sampled config posted on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680.
- The fabricated-citation probe result posted, showing whether the current judge catches it.
- Decision recorded on [Task]: align the eval rubrics and A/B controls with the Claude candidate/judge results #680 with the evidence; implemented across every citation-grading config if yes, with no rubric clause loosened.
- Full pytest suite green (config lint / eval-shape tests included).
Test plan
The fabricated-citation probe first, then single-pass re-grading of saved candidate outputs for the 2 sampled configs under both judge variants. If implemented across the citation-grading configs, the config lint / eval-shape tests are the evidence; do not rerun every config.
Context
Child of #680. Sibling triage slices depend on this one.
Activity
sumithr commentedon Sep 14, 2026
Verification before merge: PR #691 at head
d9ec81dAll four acceptance criteria are met and ticked. The evidence below was checked against the branch, not the PR description.
Acceptance criteria
tests/test_eval_judge_catalogue_context.py, run against the origin/main configs, fails on exactly the 18 changed configs (18 failed, 60 passed) and passes on the branch. The YAML diff removes 0 lines and adds 93, all of them catalogue block headers, vars or blank lines.uv run --no-sync pyteston a fresh clone atd9ec81d: 3510 passed, 6 skipped, 1 xfailed, coverage 100%. All 33 PR CI checks passed.Behaviour ledger
Real surface: the eval harness
tests/evals/promptfoo/run-eval.shwithSUMO_EVAL_BACKEND=claude, run on a fresh clone of this repo. A stand-inclaudeplaced first on PATH recorded every prompt promptfoo sent throughproviders/claude_cli.pyand returned a minimal valid envelope. Candidate calls got a fixed answer and judge calls got{"pass": true, ...}. No model was called.run-eval.sh skill-reviewing-before-merge-unproven-escalation.yaml, 2 cases--- LOADED TECHNIQUES (catalogue the candidate was given) ---, then### equivalence partitioningand 21###technique headings, then--- END LOADED TECHNIQUES ---, before--- CANDIDATE RESPONSE ---. The same run on origin/main has 0 header lines and 0###lines.run-eval.sh skill-reviewing-before-merge.ab.yaml, 3 cases x 3 legs## api_contract_change,## strategy-orchestrationand the principles heading. The 9 candidate prompts split into 3 with none of those lines (the A0 prompt, starting "You are a senior QA reviewer in an IDE chat session"), 3 with the catalogues and no skill (A1), and 3 with the catalogues and the skill (B).principlesonly in A1 for tdd.abrun-eval.sh skill-implementing-with-tdd.ab.yaml, 3 cases x 3 legsREFERENCE PRINCIPLES (the catalogue only the A1 catalogues-only leg loads; the A0 no-skill and B full-skill legs were not given itplus the principles text.test_every_rubric_prompt_renders_the_catalogues_the_candidate_saw[...]cases fail, one per changed config. On the branch they pass as part of the full suite.git diff origin/main...HEAD -- tests/evals/promptfoo/*.yaml{{var}}lines and blank lines.tests/evals/promptfoo/README.mdon the branch### Judge catalogue contextsection covers the probe result, the token cost, the#### A/B configs: leg-scoped labelrule and the guard.Supporting slots
/Users/SumithRamsookbhai/Desktop/repos/apo/sumo-qa-finish-691on branchd9ec81d, plus anorigin/mainworktree at6467d0ffor the comparisons.run-eval.shwith the Claude backend, which drivesproviders/claude_cli.pyand theclaudeCLI. The stand-in CLI captured exactly what that path sends to the judge.skill-implementing-with-tdd.yamlwas run through the same stand-in capture on origin/main and on the branch. All 5 judge prompts and all 5 candidate prompts are byte-identical, and the recursive diff was empty.skill-reviewing-before-merge-unproven-escalation.yaml(2/2) andskill-preparing-for-work-feedback-memory.yaml(1/2), and a judge-only re-grade under the catalogue rubric (2/2 and 1/2, no verdict flipped). Neither config has changed since841c295, and the re-grade rubric is byte-identical to the committed one.Other gates
mutation.ymlon the head branch passed, run 34886176840.