Repository navigation
Description
Priority / sequencing
P1 / priority: next
Suggested labels
documentation
Roadmap fields
Status: Ready; Priority: P1; Size: M; Depends on: none (#679 merged). Parent epic: #680.
Problem
#679 put the promptfoo matrix on the Claude subscription behind SUMO_EVAL_BACKEND=claude / npm run eval:claude, but the defaults still point at OpenAI: run-eval.sh defaults BACKEND to cloud, npm run eval and npm run eval:all call promptfoo eval with the configs' pinned openai:chat:* providers, and the docs, agent, skill and hook that describe the eval gate still name npm run eval:all and OPENAI_API_KEY. Epic #660 retired the OpenAI gate, so running the default command today bills OpenAI or fails without a key.
Expected outcome
Decision (recorded on #680, 2026-09-14): the Claude pair becomes the default, the OpenAI cloud tier is removed, and the local OpenWebUI tiers stay as an unmetered iteration option that is documented as not a merge gate.
run-eval.shdefaults to theclaudebackend; thecloudbackend branch and thecloud-*provider YAMLs are removed.SUMO_EVAL_BACKEND=local TIER=...keeps working.npm run evalandnpm run eval:allrun throughrun-eval.shon the Claude backend (single config and full matrix). Decide whethereval:claudestays as an alias; keep one obvious gate command.- Nothing in the default path reads
OPENAI_API_KEY. The local tier keeps itsOPENWEBUI_API_KEYexport. - Every doc, skill, agent and hook in Scope names the Claude gate command.
Scope
tests/evals/promptfoo/run-eval.sh,package.jsonscripts,tests/evals/promptfoo/providers/cloud-*.yaml.- Whether the per-config
providers:pins stay as documentation, move to the Claude pair, or go (the Claude backend overrides them with--providers/--grader). Pick the option that keeps a barepromptfoo eval -c <config>from silently billing OpenAI, and say why. .claude/agents/eval-failure-diagnoser.md,.claude/skills/regen-eval-baseline/SKILL.mdandscripts/run_baseline.py(theOPENAI_API_KEYprecondition),.claude/hooks/route-qa-runners.py(theeval/eval:allscript detection, plustests/test_route_qa_runners.pyandtests/test_claude_hooks.py),.claude/README.md,docs/DEVELOPMENT.md,tests/evals/promptfoo/README.md(setup / keys / run commands sections only; the reference-pair and baseline rewrite belongs to the terminal slice),tests/scenarios/SCENARIOS.md,tests/scenarios/TOOL-SELECTION.md.- The local gitignored
/finish-pr,/work-issue,/finish-pr-batchevals slots are edited in the primary checkout by the orchestrator, not in this PR; list the exact wording change in the PR body.
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
-
git grep -nE "eval:all|OPENAI_API_KEY"on the branch returns only the local OpenWebUI tier and lines that describe removed history, each justified in the PR body. -
npm run evalwith no env vars resolves toclaude-haiku-4-5/claude-opus-5(static evidence of the resolved providers; at most one real single-config run, only if static evidence cannot show it). -
npm run eval:allresolves to the full Claude matrix (dry listing only; never started). -
SUMO_EVAL_BACKEND=local TIER=cheap bash tests/evals/promptfoo/run-eval.shstill resolves its providers (argument and preflight path; the fleet need not be online). -
SUMO_EVAL_BACKEND=cloudfails with a clear message naming the valid backends. - Hook tests updated and green; full pytest suite green.
Test plan
Update tests/test_route_qa_runners.py / tests/test_claude_hooks.py for the renamed commands first (red), then change the hook. Show the resolved Claude providers for npm run eval statically; no full-matrix run. Full uv run pytest.
Context
Child of #680 (epic), under #660. Memory constraint: the eval gate runs on the Claude subscription through claude -p, never a billed API key, and code comments must not frame usage as a trade-off.
Activity
sumithr commentedon Sep 14, 2026
Drift found while reconciling this issue against
origin/main(6467d0f), implementing against the live code:git grep -nE "eval:all|OPENAI_API_KEY"returns only the local tier and history". The Expected outcome keepsnpm run eval:allas the Claude full-matrix command, so the branch still haseval:alllines that name the Claude gate command itself (package.json, hook detection, docs). Those are the intended gate command, not leftovers; each is justified in the PR body.OPENAI_API_KEYremains only in the local OpenWebUI tier (run-eval.shlocal branch,_owui-env.sh,bakeoff/run-bakeoff.sh) and in a test asserting its absence.evalandeval:allkeep their names and now wraprun-eval.sh.eval:claudeis removed (one obvious gate command), and the hook never detected it. The real hook gap was that directbash tests/evals/promptfoo/run-eval.shruns andeval:local:*were not routed, and that a Claude-backend[eval] ABORT:(provider or judge error, exit 3) would have been routed to the SKILL.md diagnoser; both are fixed with tests.openai:chat:*candidate +gpt-5.5judge pins, 10.abconfigs defaulting to thecloud-*provider files. The local tier's cheap/reasoning split was keyed on thegpt-5-minipin, so repinning to the Claude pair moves that split to an explicit# local-tier: reasoningmarker on the same 33 configs.run-eval.shclaude branch defaulted toall. Fornpm run evalto run one config, the no-argument default is nowskill-implementing-with-tdd.yaml;allstays explicit.sumithr commentedon Sep 14, 2026
Verification of #682 on PR #692 (head
fe74450)All six acceptance criteria are met on the branch and ticked above. Evidence below was observed on the real scripts, npm commands and hook in real checkouts of this repository (the finish clone, and disposable worktrees of
fe74450andorigin/main6467d0fregistered to it, one of them under a directory whose path contains a space). No full matrix was run or started.Acceptance criteria
git grep -nE "eval:all|OPENAI_API_KEY"returns only the local tier and justified lineseval:alllines are the Claude full-matrix gate command itself (package.json, hook detection, docs), which the Expected outcome keeps; recorded as AC drift on this issue.OPENAI_API_KEYremains only in the local OpenWebUI tier (_owui-env.sh,bakeoff/run-bakeoff.sh, therun-eval.shlocal branch) and in tests asserting its absence.npm run evalwith no env vars resolves toclaude-haiku-4-5/claude-opus-5claudebelow; plus one real single-config run.npm run eval:allresolves to the full Claude matrix, dry listing onlySUMO_EVAL_BACKEND=local TIER=cheapstill resolves its providersgemma4-e4b-bounded, judgegemma4-12b-bounded; identical toorigin/mainapart from one banner line.SUMO_EVAL_BACKEND=cloudfails with a clear message[eval] ERROR: SUMO_EVAL_BACKEND must be claude|local (got 'cloud'). The OpenAI cloud backend was removed; the Claude pair (default) is the merge gate.exit 1uv run pytestatfe74450: 3696 passed, 6 skipped, 1 xfailed, coverage 100%. CI 33/33 checks pass onfe74450.Behaviour ledger (observed output)
run-eval.shdefaults to the Claude backend, one configSUMO_EVAL_DRY_RUN=1 npm run eval[eval] backend=CLAUDE (merge gate; subscription via claude -p) repeat=1 -j 1then one command:promptfoo eval -c <root>/tests/evals/promptfoo/skill-implementing-with-tdd.yaml --no-cache --providers file://<root>/tests/evals/promptfoo/providers/claude-candidate.yaml --grader file://<root>/tests/evals/promptfoo/providers/claude-judge.yaml --repeat 1 -j 1 --output <root>/tests/evals/results/claude-reports/skill-implementing-with-tdd.json, exit 0npm run evalcalls only the Claude pair, no OpenAI keynpm run eval, OpenAI vars unset, stand-inclaudelogging--modelclaude-haiku-4-5, 5claude-opus-5; 0openai/gpt-in outputnpm run evalend to end on the real Claude backendnpm run eval, no env vars, realclaudeCLI, atd7b819b(run-eval.sh, package.json and configs are byte-identical atfe74450)Loaded provider from config file ... "providerId": "python:providers/claude_cli.py",Running 5 test cases (up to 1 at a time),5 passed (100%) 0 failed (0%) 0 errors (0%),Total Tokens: 111,834,Duration: 8m 47s, exit 0npm run eval:allis the full Claude matrixSUMO_EVAL_DRY_RUN=1 npm run eval:allSUMO_EVAL_BACKEND=cloud bash tests/evals/promptfoo/run-eval.sheval:claudegonenpm run eval:claudenpm error Missing script: "eval:claude"SUMO_EVAL_DRY_RUN=0 bash tests/evals/promptfoo/run-eval.sh[eval] ERROR: SUMO_EVAL_DRY_RUN accepts only '1' ... (got '0').exit 1SUMO_EVAL_BACKEND=local TIER=cheap SUMO_EVAL_DRY_RUN=1 bash tests/evals/promptfoo/run-eval.shcandidate=gemma4-e4b-bounded judge=gemma4-12b-bounded via OWUI ...promptfoo eval -c <config>never reaches OpenAIpromptfoo eval -c skill-reviewing-before-merge-feedback-memory.ab.yaml --no-cache, stand-inclaudeclaude-haiku-4-5, 2claude-opus-5; 0 OpenAI/gpteval:generateuses the Claude candidatenpm run eval:generate, stand-inclaudeclaude-haiku-4-5,"providerId": "python:providers/claude_cli.py", 0openai; exit 1 because the stand-in answer is not a persona listrun-eval.shFAIL to the diagnoserbash tests/evals/promptfoo/run-eval.sh(stand-in judge fails), checkout path with a spacepromptfoo reported a FAIL. Route the failure through the eval-failure-diagnoser agent. ...CLAUDE_STUB_MODE=error npm run eval[eval] ABORT: skill-implementing-with-tdd had provider or judge errors (errors=5); hook:run-eval.sh aborted on provider or judge errors: this is not a skill verdict, so do not diagnose it as a skill failure or edit a SKILL.md. ...bash tests/evals/promptfoo/run-eval.sh tests/evals/promptfoo/skill-implementing-with-tdd.yml[eval] ERROR: <checkout>/tests/evals/promptfoo/skill-implementing-with-tdd.yml produced no readable report; hook:run-eval.sh stopped with an [eval] ERROR: line: the eval did not run to a verdict ...run-eval.sh skill-strategising.yaml; CLAUDE_STUB_MODE=error npm run evaland the same with the.ymlerrorBefore the run stopped, these configs finished with a skill FAIL: skill-strategising. Those are skill verdicts: route them through the eval-failure-diagnoser agent ...followed by the abort / error reminderrun-eval.sh ...yml; CLAUDE_STUB_MODE=error npm run evalThe eval output carries both an [eval] ERROR: line and an [eval] ABORT: line: neither is a skill verdict ...SUMO_EVAL_DRY_RUN=1 npm run eval; printf '%s\n' 'example: [eval] ABORT: usage limit'claudeCLI, notOPENAI_API_KEYrun_baseline.py --skill implementing-with-tdd --label ledger --forcewith PATH/usr/bin:/binclaude CLI not on PATH. The skill configs pin the Claude eval pair, which runs through claude -p ...exit 2claudeansweringRunning: npx promptfoo eval ... --output <wt>/docs/qa/runs/eval-baselines/.partial/2026-09-14-skill-implementing-with-tdd__ledger.json,Snapshot captured: docs/qa/runs/eval-baselines/2026-09-14-skill-implementing-with-tdd__ledger.json,0 passed, 5 failed, exit 100; no.partial/left--force, stand-inclaudeerroring every callThe run had provider or judge errors (errors=5): not a skill verdict, so it was not kept as a baseline ..., exit 3,.json.rejectedwritten, kept snapshot byte-identical (cmp)run_baseline.py --config skill-zz-ledger-malformed.yaml, real promptfoopromptfoo exited with code 1 and wrote no report at .../.partial/...json: a harness or config error, not a skill verdict.exit 4, nothing captured2026-09-13-...__ledger.json(2 passed, 3 failed) beside a.json.rejected, then a clean capturePrior baseline: 2026-09-13-skill-implementing-with-tdd__ledger.json,Delta: passed -2, failed +2, exit 100Supporting slots
sumo-qa-finish-692of this repository and disposable git worktrees offe74450andorigin/main6467d0fregistered to it (one at a path containingMy Projects), with real history and the repo's real configs, provider files,node_modulespromptfoo 0.121.20 and hook.run-eval.sh, npm scripts,run_baseline.py, real promptfoo, and the real hook fed real PostToolUse payloads built from real run output. A stand-inclaudewas used wherever a row did not need a real model, per the run budget.SUMO_EVAL_BACKEND=local TIER=cheaprun for real onorigin/mainand onfe74450with a stand-inpromptfooandcurl(the fleet offline): both exit 0, 28 promptfoo calls each, the same configs and the same generated OpenWebUI provider YAMLs; the only diff is the intended banner line (NOT merge-authoritative ... cloud stays the gatebecameNOT a merge gate: relative lift only; the Claude pair (npm run eval) is the gate.). Hook on both refs with the same payloads:mutmut runsurvivors,npx promptfoo evalFAIL,pytest, and cleanmutmut runproduce identical output.npm run eval, 5 passed, exit 0). All other rows used dry runs or a stand-inclaude. No full matrix was run or started.Verification
fe74450: 33/33 checks pass. Scoped mutation gate (mutation.ymlon the branch) passed onfe74450(run 34891144971); the first dispatch one994baahad failed becausepackage.jsonwas missing from the mutmut copy, fixed inc3f85a5.fe74450: 3696 passed, 6 skipped, 1 xfailed, coverage 100%.e994baa; the files touched by later fixes re-reviewed atd7b819bandfe74450. Final verdict SAFE, low findings only.a706c77, and053315candfe74450. Ford7b819bcodex hit its usage limit and gave no verdict, so the built-in /code-review (high effort) reviewed that commit instead, with no findings: codex is UNVERIFIED ford7b819bonly.c3f85a5(baseline exit 4 on a missing report; mutmut copy),a706c77(earlier FAIL survives a later abort),d7b819b(paths with spaces),053315c(baseline scratch path promptfoo accepts),fe74450(non-skipping guard for that path). Review misses are logged on [Quality]: reviewing-before-merge passed four mode/outcome classification defects codex caught on #682 #690.