Skip to content

test: run evals on opus 5.5 with the full skill loaded - #43

Merged
katodea merged 5 commits into
trunkfrom
add/evals-opus-5-5
Sep 23, 2026
Merged

katodea merged 5 commits into
trunkfrom
add/evals-opus-5-5

Conversation

@katodea

@katodea katodea commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

what

  • evals/promptfooconfig.yaml
    • a second provider, Opus 5.5 (claude-opus-5-5), beside Opus 5; both pin model and effort: xhigh
    • the prompt asks the model to load functional-design with the Skill tool
    • defaultTest adds a skill-used: functional-design assertion to every case
    • case 0 now gives the page URL (https://example.com/about/) and the saved screenshot path, and grades only the fenced JSON blocks (options.transform)
  • evals/package.json, evals/package-lock.json — @anthropic-ai/claude-agent-sdk ^0.3.211 → ^0.3.280
  • evals/README.md
    • the two providers, why model and effort are pinned, and how to run one model (--filter-providers '^Opus 5\.5$')
    • why the SDK has to know the model, and how to bump it
    • a new "when to run" section: on change, not on a schedule
    • "add a case": give the scenario every fact a real run would have
    • design: each case loads the whole skill, and why
    • npm ci instead of npm install

why

the evals only ran on opus 5, and the upcoming skill rewrites have to hold on opus 5.5 too. effort wasn't pinned either: the provider loads project settings only, so runs used the SDK's default high, not the xhigh the live runs usually use.

the bigger problem: the cases never actually loaded the skill. in every run we checked, on both models, the model grepped SKILL.md and read only the section that matched, with zero skill calls. that's blind to the skill's structure, which is exactly what the rewrites change. a rule that gets buried or contradicted in a rewrite would still pass. with the file tools blocked and skill-used on every case, the whole skill loads the way it does in a real run, and a case fails loudly if it doesn't.

case 0 had two problems of its own. it left out the page URL and screenshot, so both models invented them, differently, and opus 5 did it without saying so. and it false-failed three times, twice before this branch, because not-contains "1.1.1" matched the model's explanation of why it didn't cite 1.1.1. grading only the JSON fixes that.

with all of it in: 10/10 on both models, every case loading the skill, about $3 for a cold run of both.

notes

  • a cold run costs about 2.3× the old grep-based one because every case now loads the whole skill

co-authored by claude opus 5.5 🧪

@katodea katodea self-assigned this Sep 23, 2026
@t51eng-poseidon

t51eng-poseidon Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🔱 Poseidon started reviewing this PR — central run.

label: Opus 5
config:
model: claude-opus-5
effort: xhigh

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Both providers pin effort: xhigh, but nothing in the run confirms the anthropic:claude-agent-sdk provider actually honors a config key named effort — a mis-named option is silently ignored rather than erroring. The README prose (line 18) even calls this setting effortLevel while the config uses effort, so if the provider expects a different key every case silently runs at the SDK's default high instead of xhigh, defeating a stated goal of this PR; and since the raw JSON's modelUsage records only the model, not the effort, a green 10/10 run would not surface it. Confirm against the provider's option schema that effort is the key it reads (switch it if not), and reconcile the README so the config key and the prose name match.

🤖 Fix prompt for AI agents
Verify each finding against the current code and only fix it if
needed.

In `evals/promptfooconfig.yaml`:
- Line 21: Both providers set `effort: xhigh`, but confirm the
  `anthropic:claude-agent-sdk` promptfoo provider actually reads a
  config option named `effort`; a mis-named key is silently
  ignored, so every case would run at the SDK default `high`
  rather than `xhigh`, defeating this PR's effort-pinning goal, and
  `modelUsage` in the raw JSON records only the model (not the
  effort) so a passing run never reveals it. Check the provider's
  option schema; if the key is wrong, replace `effort` with the
  correct name on both the `Opus 5` and `Opus 5.5` provider
  configs. Then reconcile `evals/README.md` line 18, which names
  the setting `effortLevel` in prose while the config uses
  `effort`, so the documented name and the config key agree. Keep
  the `xhigh` value and the surrounding `model`, `working_dir`,
  `setting_sources`, `skills`, and `disallowed_tools` entries
  unchanged.

@t51eng-poseidon t51eng-poseidon 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.

🔱 Poseidon Review

Summary — Adds an Opus 5.5 eval provider, pins effort, forces the full skill to load (blocking file tools + a skill-used assertion), and grades case 0 on its JSON only; low risk, docs/test-config only, with one thing worth verifying.

Walkthrough

  • 🧪 Tests — Second provider Opus 5.5 beside Opus 5; both pin model + effort: xhigh, block Read/Grep/Glob/Bash, and a defaultTest skill-used assertion forces the skill to load; case 0 gains the page URL + screenshot path and a transform that grades only fenced JSON blocks.
  • 🔧 Chore — Bumps @anthropic-ai/claude-agent-sdk ^0.3.211 → ^0.3.280 in package.json and the lockfile.
  • 📝 Docs — README.md documents the two providers, the effort/model pins, the SDK↔Claude Code version coupling, provider filtering, a "When to run" section, and npm ci.

🟡 Suggestions

  • evals/promptfooconfig.yaml:L21 — The effort: xhigh pins can't be confirmed to take effect: if anthropic:claude-agent-sdk doesn't read a key literally named effort, it's silently ignored and every case runs at the SDK default high, defeating a stated goal of this PR. modelUsage records only the model, not the effort, so a green 10/10 run won't reveal it. The README (L18) even names the setting effortLevel in prose while the config uses effort. Confirm the key against the provider's option schema and reconcile the README wording.

🤖 Prompt for AI agents — fix all findings
Verify each finding against the current code and only fix it if
needed.

Suggestions:
In `evals/promptfooconfig.yaml`:
- Line 21: Both providers set `effort: xhigh`, but confirm the
  `anthropic:claude-agent-sdk` promptfoo provider actually reads a
  config option named `effort`; a mis-named key is silently
  ignored, so every case would run at the SDK default `high`
  rather than `xhigh`, defeating this PR's effort-pinning goal, and
  `modelUsage` in the raw JSON records only the model (not the
  effort) so a passing run never reveals it. Check the provider's
  option schema; if the key is wrong, replace `effort` with the
  correct name on both the `Opus 5` and `Opus 5.5` provider
  configs. Then reconcile `evals/README.md` line 18, which names
  the setting `effortLevel` in prose while the config uses
  `effort`, so the documented name and the config key agree. Keep
  the `xhigh` value and the surrounding `model`, `working_dir`,
  `setting_sources`, `skills`, and `disallowed_tools` entries
  unchanged.

ℹ️ Review info
  • Commit: ef0195b
  • Files reviewed: evals/README.md, evals/package.json, evals/promptfooconfig.yaml
  • Files skipped: evals/package-lock.json (generated lockfile; version bump matches package.json)
  • Model: claude-opus-4-8

@t51eng-poseidon t51eng-poseidon 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.

🔱 Poseidon Review

Summary — Since the prior review this PR only reworded README line 18 to tell the effort config key apart from your own effortLevel setting; low risk, docs/test-config only, and the one prior open finding still stands.

Walkthrough

  • 📝 Docs — README.md line 18 now reads "not the effortLevel in your own Claude Code settings, because the provider loads project settings only," disambiguating the pinned effort key from the local effortLevel setting.

♻️ Previously flagged

Still outstanding

  • ⚠️ evals/promptfooconfig.yaml:L21 — effort: xhigh pin still unverified against the provider's option schema; README wording was reconciled but a mis-named key would silently fall back to the SDK default high. Covered by an open review thread.

ℹ️ Review info
  • Commit: 08a756a
  • Files reviewed: evals/README.md, evals/package.json, evals/promptfooconfig.yaml
  • Files skipped: evals/package-lock.json (generated lockfile; version bump matches package.json)
  • Model: claude-opus-4-8

@katodea
katodea merged commit 0737f73 into trunk Sep 23, 2026
3 checks passed
@katodea
katodea deleted the add/evals-opus-5-5 branch September 23, 2026 20:00
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.

1 participant