Skip to content

Task: converge all tracks on the repository specification #336

Done
33 of 33 issues completed
Done

Description

@lanyue-llk

Task: bring every track in line with the repository specification (#313). The specification says a method, benchmark or report instance is an adapter plus data, and that shared stages take no branch for one instance. This issue records where the repository stands against that standard and groups the work.

Audit of main at 997a228

The audit covered all tracks (about 170k lines under src/), the shared packages, the scripts and the written rules.

Stage Web Fetch WCXB / WebMainBench Web Search Web Extract Trajectory Replay Browser Use
Method adapter Interface exists; shared projection and routing branch per provider Method lists and versions in code Adapter dataclass and registry; three quirks leak Function dict; elif method == chains Browser identity spread over five shared files Run set from a module constant
Benchmark adapter Case data drives the scorer Parallel pipeline, about 8,700 lines One dataset named in shared code Registry exists; product fields and a default benchmark leak Site logic duplicated outside the environment package Site labels duplicated
Run Five entries over one runner Own runner, differing in four steps only One One Four runner loops for three benchmarks One
Score One entry Own scorer step Separate scorer package In pipeline Evaluator interface in the public replay only Upstream evaluator
Build report Six generators, no input schema Own generators Staged build with typed inputs Two parallel renderers Two parallel renderers Own renderer
Report template Six variants, each a generator or mode No template entry Three variants Five variants; authored content required to build Own page set Own page set
Combine runs Hand-written spec only n/a n/a n/a n/a n/a
Check and package Own Own Own Own Own Own
Publish to Yours Shared transport, own wrapper Second lifecycle Shared Shared Shared Shared
Export to webstone-site Manual template none none none none none

What already matches the standard and serves as the model: the Web Fetch Provider interface and single score_attempt entry, the Web Search Adapter registry, benchmark_execution.run_jobs, reporting/publish.py with tracks as adapters, the data lock, the method catalog report-methods.json, profile and hash bindings, uniformly thin scripts, and the public replay's evaluator registry.

Main gaps:

  1. Shared code names instances. Provider, engine, site and benchmark names, dataset sizes (200, 545) and versions appear in shared runners, projections, certifiers, renderers and checks.
  2. Reports have no base template. The template registry points at renderers and a reference report to imitate; page sets differ per track, variants are separate generators, and some builds cannot run without authored content.
  3. Report instances are partly code. Web Fetch has six report generators and about ten build modes; one-report prose and measured values sit in renderers, checks and translation maps.
  4. Some stage inputs are written by hand. Combining separate runs needs a hand-written spec with computed hashes; offline revision has no command; the webstone-site submission is a hand-filled template.
  5. Tracks reimplement shared concerns. Seven renderers with their own shell, four message catalog APIs, four release gates, three publication lifecycles, three provider shapes, three participant registries.
  6. Layering is inverted and unchecked. Shared packages import web_fetch; other tracks use it as the common package; no test guards imports.

Plan

The work runs in five phases. Tracks are independent of one another after phase 1, so phase 2 runs in parallel by track; tasks inside one track that edit the same files run in the order given.

flowchart LR
    subgraph P0["Phase 0 · Ground rules"]
        direction TB
        s["#313 specification"]
        b["#340 baselines"]
        c["#315 checks and allowlists"]
        q["#329 compose runs"]
    end
    subgraph P1["Phase 1 · Interfaces"]
        direction TB
        i1["#314 neutral core and root command"]
        i2["#316 stage verbs and registry"]
        i3["#318 method adapter"]
        i4["#338 benchmark adapter and skeleton"]
        i5["#327 artifact schemas"]
        i6["#337 base report template"]
    end
    subgraph P2["Phase 2 · Track migration (parallel)"]
        direction TB
        f["Web Fetch: #326 → #322 → #319 → #328"]
        e["Web Extract: #320 → #324"]
        w["Web Search: #323"]
        r["Browser tracks: #321 → #325 → #339 → #335"]
    end
    subgraph P3["Phase 3 · Shared report and release"]
        direction TB
        t1["#330 instance content into slots"]
        t2["#331 report shell and components"]
        t3["#332 release gate"]
        t4["#333 publisher"]
        t5["#334 result export"]
    end
    subgraph P4["Phase 4 · Close"]
        z["#317 conformance example in every track<br/>allowlists empty"]
    end
    P0 --> P1 --> P2 --> P3 --> P4
Loading
Phase Purpose Leaves the repository in this state
0 Ground rules Agree the standard, stop new violations, make refactors verifiable Specification merged; every track has a baseline test; checks run in CI with the current violations listed; separate runs combine by command
1 Interfaces Define each interface once, with one track as proof Shared packages import no track; every track answers the same stage verbs; method adapter, benchmark adapter, artifact schemas and base template exist with contract tests
2 Track migration Move each track's instance knowledge behind the interfaces One pipeline per track; no method, benchmark, site, size or version named in shared track code
3 Shared report and release Remove what tracks still duplicate after they share a model One report shell, release gate and publisher; instance prose in content slots; every track exports to webstone-site
4 Close Prove the standard holds Each track adds a synthetic method and benchmark through adapters alone; allowlists are empty and removed

How the work is done:

  • Design before code for phase 1. Each interface task starts with a short note on its issue (the interface, the first adapter ported, what stays out) and proceeds once that is agreed. Later tasks follow the agreed interface without a new design round.
  • One task, one pull request or a short series, closing its issue. The description names the interface it extends and states that the baselines are unchanged, or lists what changed and why.
  • Allowlists only shrink. A pull request removes the entries it fixes and adds none.
  • Shared-code changes stay instance-neutral. Shared modules may change in any task; they gain hooks, capabilities, fields or slots that any adapter can use, and no conditional on one instance.
  • History keeps verifying. Published reports, certificates and frozen sources are read as data; no task rewrites them.
  • Feature work during the refactor follows the specification for the code it touches and does not wait for the migration. A new method or benchmark that needs a missing hook adds the hook.
  • Same-file work is serialised. Within Web Fetch the order is run entry, benchmark adapters, per-provider projection, report model, because they share the runner, certifier and report modules. Other tracks proceed in parallel.

Tasks

Phase 0 · Ground rules

Phase 1 · Interfaces

Phase 2 · Track migration

Web Fetch

Web Extract

Web Search

Browser tracks

Phase 3 · Shared report and release

Phase 4 · Close

Done when

Every track passes its conformance example (#317), and the allowlists introduced by #315 are empty.

Sub-issues

Sub-issues

33 of 33 Issues completed
Loading 33 sub-issues

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. 7 remaining items

  3. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Convergence status (2026-11-24)

    The refactor to docs/spec.md has landed on main. Every track now runs one pipeline through registered method and benchmark adapters, renders reports from the shared template, publishes through the shared release gate and publisher, and exposes webstone <track> <stage>. Each track has a conformance test that adds a synthetic method and benchmark through adapters alone (#378).

    Measure Before After
    Layering violations (shared → track, track → track) 53 0
    Instance-literal allowlist entries 3 1 (hash-bound, #379)
    Report generators in web_fetch/report.py 6 1 (render_report)
    Local make test-python ~25 min serial 2 min 16 s (parallel by default, 0 failures)
    CI wall time 9 min 10 s ~4 min 25 s
    Scorer identity 0fe89317… unchanged

    Merged: #313, #341–#346, #348–#351, #358, #361–#366, #368–#378, #380 (release preparation).

    Still open, each with its reason:

  4. lanyue-llk commented on Nov 25, 2026

    @lanyue-llk
    ContributorAuthor

    Final status (2026-11-25)

    The convergence refactor to docs/spec.md is complete and released as Webstone 0.10.0 (PyPI, provenance attested; scorer 0fe89317… unchanged from 0.9.0).

    Closed since the previous update: #339 (#383: WebArena-Verified catalog loops as backends of the shared runner; cohort receipts bind the shared loop and evaluators), #379 (#385/#386: frozen evidence binds stored code copies), #324 (#388: one Extract evidence model and render path), #330 (#387: published-report text out of shared catalogs, new catalog check with no exceptions), #389 (#390/#392: last instance knowledge and all track ContextVars removed), #347 (release).

    Measure Before After
    Layering violations 53 0
    Instance-literal allowlist 3 0
    Track modules using ContextVars several 0 (enforced)
    Local make test-python ~25 min serial ~2 min 16 s parallel, 0 failures
    CI wall time 9 min 10 s ~4 min 25 s

    Follow-ups outside this task: #402 (WebMainBench HF card, with the next dataset revision); report quality continues under #395 (#396 and #397 remainders, #405 detail-page and visualization redesign).

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions