Skip to content

Web Fetch: benchmark adapter interface; fold WebMainBench and WCXB into the shared run and score stages #322

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 1, 3, 7, 10. Size: L.

Problem

WebMainBench and WCXB form a parallel pipeline of about 8,700 lines beside the generic one.

  • web_fetch/webmainbench_runner.py:451 has its own per-record loop, file layout, run-id scheme and fixture server, bypassing runner.run_evaluation and score_attempt; :458,516,524,535 branch on args.benchmark.
  • webmainbench_runner.py:49-51 holds PROVIDERS, WCXB_PROVIDERS and EXPECTED_VERSIONS (including moli-pr643, moli-1.1.7) in code.
  • Sizes are literals: webmainbench_certification.py:42 (case_count != 545), report_build.py:1055 (!= 200), wcxb_dataset.py:13,70.
  • certification.py:190-213 dispatches on argv for five benchmark modes; :503-683 holds run_wcxb; :594-595,635-636 bind moli and moli-pr643 binaries.
  • Correction and latency modules name one provider and campaign: webmainbench_correction.py:212-335 ("moli-fixed" in nine places), webmainbench_latency_correction.py:44,65,460,520, review_execution.py:1360,1564.

Direction

Define the benchmark adapter from the specification (cases, input serving, scorer, populations and expected matrix). Make WebMainBench and WCXB adapters executed by the shared run and score stages. Move method matrices, versions and counts into the external profiles. Parametrise correction and latency receipts by profile, and retire campaign-specific code once no current authority needs it. Frozen certifier sources and historical receipts stay as data.

Done when

  • One runner and one certifier serve the default suite, WebMainBench and WCXB.
  • No benchmark name, size, method list or version in shared Web Fetch modules.
  • Existing WebMainBench and WCXB certificates still verify.

Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Remaining after #351:

    • runner.run_frozen_cohort is still separate from run_evaluation; merging needs one record schema (Versioned schemas for the artifacts stages exchange #327) and migration of WebMainBench/WCXB readers with historical shards still readable.
    • Scoring is split across webmainbench-score, wcxb-score, webmainbench-full-score; fold into webstone webfetch score --benchmark.
    • The WebMainBench and WCXB certifiers keep separate code because their certificate formats are hash-bound; share the procedure and keep the formats as data.
    • Correction and latency modules (webmainbench_correction.py, webmainbench_latency_correction.py, webmainbench_case_correction.py, review_execution.py defaults such as moli-fixed) are flagged in Run WebMainBench and WCXB through Web Fetch benchmark adapters #351 for an owner decision: parametrise by profile or retire if no current authority needs them.
    • report_build.py:1055 (!= 200) belongs to Web Fetch: one report model and a mode registry for report builds #328.
  3. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Status update — after #371:

    Remaining: run_frozen_cohort stays separate from run_evaluation because merging changes the shard layout certificates bind; webmainbench_latency_correction.py needs a retire/keep decision (retire if no current authority binds it).

  4. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Done as far as current evidence allows: benchmark adapters for the default suite, WebMainBench and WCXB (#351), one score entry and one certification loop (#371), frozen-input defects fixed (#371), latency-correction campaign values moved to declared data and kept because evaluation/webmainbench-content-binding.json binds their output (#377). Accepted constraint: run_frozen_cohort stays separate from run_evaluation because certificates bind its shard layout.

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

    refactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions