Skip to content

web evals: a hard set that shows B better (board #132) - #381

Merged
SSFSKIM merged 8 commits into
mainfrom
web-evals-hard
Oct 25, 2026
Merged

SSFSKIM merged 8 commits into
mainfrom
web-evals-hard

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Board #132: a harder eval set for the web plugin's fetch tool, one that can show mcp__web__fetch (B) is better than Claude Code's WebFetch (A), not only "not worse". The first suite saturated: 384 of 384 runs were correct either way.

Result

On web 0.3.0, the final round ran 24 tasks × A and B × 4 runs, with sol at xhigh as both runner and grader and third-party readers denied in both configurations. B answered better, with confidence: d = +0.115, 90% interval [+0.031, +0.208]. B was ahead on 5 tasks, level on 19, and behind on none, at a third of A's cost and time.

Suite (final runs) A correct B correct d, 90% interval Median cost A / B Median time A / B
First suite (tasks.json) 96/96 96/96 +0.000 [+0.000, +0.000] $0.049 / $0.041 29 s / 20 s
Hard set (tasks-hard.json) 81/96 92/96 +0.115 [+0.031, +0.208] $0.189 / $0.061 93 s / 32 s

What the gain consists of:

  • Mostly reach. Three PDFs exceed WebFetch's 10 MB cap; on those, mean d is +0.75.
  • Some fidelity. On two dense tables, A misread a value from the page image where B read the text: +0.25 each.

What the set cannot show:

  • Everyday quality. The set was screened to tasks where A can fail.
  • A broad fidelity win. Most of the gain is reach.
  • The gap with readers allowed. With them, A got through some of these tasks, so the gap would be narrower.

On WebFetch's other limits (the quote rule, 100k-character windows, the 1 MB HTML cut, hidden images, PDF navigation), sol at xhigh works around them. They cost it time and tokens, not answers. The full reading is in the report: docs/doperpowers/specs/2026-10-25-web-fetch-hard-eval-report.md.

As a gate, the round reads NOT PASSED on criterion 3 alone. The clipper's fixed 30 s download limit ran out once on a 17.6 MB PDF on a heavily loaded machine; B refetched with refresh: true and answered.

What's in it

The set: web/evals/tasks-hard.json.

  • 33 tasks in five categories: verbatim, long-page, long-pdf, image, search.
  • Each task is tagged with the mechanism meant to make WebFetch fail, and every answer key is evidenced against the page's own source.
  • It was screened by running A alone, so B's success played no part in what the set holds.
  • The screening record and every change on the way are in docs/doperpowers/specs/2026-10-25-web-fetch-hard-screening.md.

Harness (web/evals/).

  • search_mcp.py: a search tool both configurations get on tasks that name no URL. WebSearch fails on sol through the gateway; this tool makes WebSearch's request on haiku.
  • deny-readers/ with deny_readers.py: an eval-only plugin whose mod denies third-party readers and proxies (r.jina.ai, wsrv.nl, Google's document viewer and others) in both configurations. A settings hook could not do this, because the engine runs no settings hook for a mod's tool.
  • run.py --arms A: screens a set on one configuration. Round sizes come from the tasks file, and the projection includes the search tool's usage.
  • report.py:
    • a "B better with confidence" reading of criterion 1, criterion 4 marked N/A without gist tasks;
    • by-task and by-mechanism tables;
    • a screening view;
    • folders combined into a gate are judged over the full paired matrix.
  • grade.py: the grader is sol at xhigh, and --grader opus re-grades. Verbatim prose is now held to exact text, like code.

Decisions. Recorded in the design's Decision Log: the search tool, the reader rule, the grader, dropping verbatim-h4 (a copyrighted spec), and the trimmed facts.

Findings for the backlog

  • Defuddle drops Tom's Hardware's benchmark chart gallery: 318 words and 0 images out of about 70 charts. image-h2 fails in both configurations because of it.
  • The clipper's 30 s download limit is tight for large PDFs. It ran out on 17.6 MB under load.
  • Friction logged in Friction tracker (moved to ~/.claude/friction-tracker/doperpowers/) #304:
    • WebSearch fails on sol through the gateway;
    • sol through the gateway rejects PDF document blocks (a Read of a whole PDF);
    • settings hooks skip mod tools;
    • Claude Code's grep (ugrep) refuses bounded repetition patterns.

Verification

  • Tests and CI. 91 eval-script tests pass, and CI is green on 4f9501b1.
  • Review round 1 (doperpowers:reviewer-medium, on the harness) found three defects, all fixed in 6d94c099:
    • two one-configuration folders could pass as a gate;
    • a lost search call could go unanswered;
    • the gateway token could follow a redirect.
  • Review round 2 (reviewer-medium, 6d94c099..dba509f2) found three more, all fixed in 4f9501b1:
    • the reader check failed open;
    • an empty screening folder could print PASS;
    • a resumed folder could mix two graders.
  • The round is unaffected by those fixes. All 33 reader calls were refused and none got through. All 192 runs were graded by sol at xhigh. The report renders byte for byte the same.
  • Spend. Phase 1 and the re-screen came to about $17 reported. The final round was $41.65 reported, plus about $13 at list prices for B's summaries and the search tool, which the reported figure leaves out.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)

…the hard set

- search_mcp.py: an MCP server with one tool, web_search, given to both
  configurations of a task marked "search": true. Claude Code's WebSearch
  runs the API's server-side search on the session's own model, and sol
  through the gateway cannot ("400 ... this Codex gateway cannot
  translate"); the server makes WebSearch's request (system text, forced
  tool, reply shape) on haiku and logs each search's usage.
- run.py: --arms (A alone screens a set), round sizes from the tasks file,
  the pilot's tasks from the file, search usage in the projection, and a
  configuration the pilot left out projected at the piloted one's cost.
- report.py: the hard set's categories; criterion 4 is N/A for a set
  without gist tasks; criterion 1 also reads whether B is better with
  confidence (lower bound above 0); a by-task table; a one-configuration
  folder reports as a screening round.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
tasks-hard.json: five categories (verbatim, long-page, long-pdf, image,
search), each candidate with its answer key evidenced against the page's
own source (HTML source lines, pdftotext pages, the image itself), a
"mechanism" tag naming what should make WebFetch fail, and, for search
tasks, "search": true (the question names no URL). The dev/final split is
a seeded shuffle per category, fixed before any run. Candidates are
screened next by running configuration A alone.

grade.py: the exact-match rule covers any text a fact calls verbatim, not
only code; every verbatim fact in tasks.json is code, so its grading is
unchanged.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
…its decisions

The screening of board #132's 34 candidates on configuration A alone
(44 runs): A answered 41 correctly. Its three failures, one run each,
are two PDFs over 10 MB with no rescue found and one copyrighted spec
the runner declined to quote. A reached the rest by routes around
WebFetch's limits: r.jina.ai, a PDF page rasterizer, other editions of
a document, parallel offsets. 10 of the 44 runs used a third-party
reader or proxy.

- design: "The hard set" under The evals, I4's new fields, the
  discoveries (WebSearch on sol through the gateway, A's routes, the
  1 MB cut applying to HTML only), and two Decision Log entries (the
  harness and reading; how the set was screened).
- report.py: a screening folder counts its extra second runs as part of
  its matrix, and a task's mechanism gets a column in the by-task table.
- 2026-10-25-web-fetch-hard-screening.md: report.py over both screening
  folders.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
…t errors, no redirects

From the medium review of the hard-set harness:
- report.py: folders taken together that hold both configurations are
  judged over the design's whole paired matrix of each set, so two
  one-configuration folders of one run each can no longer pass as a gate.
- search_mcp.py: a reset connection or a body cut short is an error
  result, and any request that raises still gets a JSON-RPC answer, so
  the runner never waits out its limit on a lost call.
- search_mcp.py: redirects are not followed, so the gateway's token
  cannot travel to another origin.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
…m-h4 dropped

- deny-readers/ (an eval-only plugin, loaded ahead of web in both
  configurations) and deny_readers.py: a WebFetch or mcp__web__fetch call
  through a third-party reader or proxy (r.jina.ai, wsrv.nl and
  images.weserv.nl, Google's document viewer, translate.goog, archive.org,
  archive.today) is denied, for the reason Bash is left out of both. A
  settings PreToolUse hook could not do it: the engine runs none for a
  mod's tool (probed: none fired for mcp__web__fetch, Pre or Post). The
  refusal is the eval's, so it never counts as a tool error.
- grade.py: the grader is sol at xhigh (the owner's "all sol-xhigh");
  --grader opus re-grades a folder, its final texts being kept. The
  projection keys the grader's usage as its own row, and report.py names
  the grader from the runs' grade records.
- run.py: the manifest records the grader and the web plugin's version.
- tasks-hard.json: verbatim-h4 dropped. A's one failure there was the
  runner declining to quote PKWARE's "All Rights Reserved" spec; counting
  B's verbatim copy as a quality win would reward bypassing a copyright
  safeguard. report.py skips the runs of a task its file no longer has.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
… sol grading, keys trimmed

- The re-screen: A once on the five tasks it had passed through a
  third-party reader, readers now denied. It failed 2 (image-h2, its
  article past WebFetch's 1 MB cut; search-h1, NASA's 30 MB PDF) and
  passed 3 by other editions of the same documents.
- Sol re-graded copies of the 43 Phase 1 runs still in the set: 42
  verdicts agree with opus. The one disagreement was a fact asking for
  more than its question; it and six like it are trimmed to what their
  questions ask, evidence unchanged.
- The unversioned pages were re-checked (the Fed chartbook, curl's and
  OpenSSH's changelogs, Tom's Hardware's page and chart, NVIDIA's
  whitepaper): all still match their evidence; no key changed.
- The screening record now holds both rounds and what changed between
  them; report.py judges a screening folder over the runs it was given,
  and grade.py skips the runs of a dropped task.
- design: Decision Log entries for the reader rule, the sol grader and
  verbatim-h4's removal; the observation that the engine runs no settings
  hook for a mod's tool. web/CLAUDE.md names the grader and the plugin.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
…[+0.031, +0.208]

The hard set's final round on web 0.3.0: 24 final tasks x A and B x 4,
sol at xhigh as runner and grader, third-party readers denied in both.
B was ahead on 5 tasks, level on 19, behind on none, at a third of A's
cost and time. The gain is mostly reach (three PDFs over WebFetch's 10 MB
cap, mean d +0.75) plus two dense tables A misread from page images
(+0.25 each). The round reads NOT PASSED as a gate on criterion 3 alone:
the clipper's 30 s download limit ran out once on a 17.6 MB PDF, and B
refetched and answered. It also found Defuddle dropping Tom's Hardware's
chart gallery, which fails image-h2 in both configurations.

- 2026-10-25-web-fetch-hard-eval-report.md: the result beside the first
  suite, what the set can and cannot show, each nonzero d with its
  mechanism, B's own failures, then report.py's rendering of the round.
- report.py: a "By mechanism" table for a set whose tasks name one; a
  tool error's text kept on one line in the criterion 3 list.
- design: the result under "The hard set"; observations for the round
  and for the gateway refusing PDF document blocks on sol.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-25T22:55:14.613579Z dba509f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

… a folder; no verdict without runs

From the second medium review (range 6d94c09..dba509f):
- deny-readers' mod lets a fetch through only when the check exits 0. A
  check that fails (another exit, a spawn error, a timeout) denies the
  call with text opening "eval harness error:", and report.py holds such
  a run invalid in either configuration, so the gate is withheld rather
  than readers silently allowed back.
- One folder is graded by one grader: grade.py without --regrade and
  run.py's resume grade again any run another model or effort graded,
  and report.py withholds a gate from a folder graded by two.
- report.py gives no verdict for an empty matrix (a screening folder
  before its runs, or one whose only task was dropped).

The final round is unaffected: its 33 reader calls were all refused, none
got through, and all 192 runs were graded by sol at xhigh; its report
renders byte for byte the same.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 77f3feb into main Oct 25, 2026
5 checks passed
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