Repository navigation
Description
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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
| 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
- docs: add the repository specification for stage interfaces #313 Repository specification (pull request)
- Characterization baselines for each track's stage outputs before refactoring #340 Characterization baselines for each track's stage outputs before refactoring (M)
- Add layering and instance-literal checks with shrinking allowlists #315 Add layering and instance-literal checks with shrinking allowlists (S)
- Compose separately produced runs into one comparison report by command #329 Compose separately produced runs into one comparison report by command (M)
Phase 1 · Interfaces
- Move shared helpers and the root command out of web_fetch #314 Move shared helpers and the root command out of web_fetch (M)
- Give every track the same stage verbs and a fixed stage registry #316 Give every track the same stage verbs and a fixed stage registry (M)
- Define one method adapter protocol and a self-registering registry #318 Define one method adapter protocol and a self-registering registry (M)
- Define the benchmark adapter interface and the pipeline skeleton each track follows #338 Define the benchmark adapter interface and the pipeline skeleton each track follows (M)
- Versioned schemas for the artifacts stages exchange #327 Versioned schemas for the artifacts stages exchange (M)
- Base report template, track templates and default reports built from data alone #337 Base report template, track templates and default reports built from data alone (L)
Phase 2 · Track migration
Web Fetch
- Web Fetch: one run entry with a shared argument builder #326 One run entry with a shared argument builder (M)
- Web Fetch: benchmark adapter interface; fold WebMainBench and WCXB into the shared run and score stages #322 Fold WebMainBench and WCXB into the shared run and score stages as benchmark adapters (L)
- Web Fetch: move per-provider projection and routing into adapters #319 Move per-provider projection and routing into adapters (L)
- Web Fetch: one report model and a mode registry for report builds #328 One report model and a mode registry for report builds (L)
Web Extract
- Web Extract: replace per-method chains with adapter objects #320 Replace per-method chains with adapter objects (M)
- Web Extract: benchmark-declared fields and one renderer #324 Benchmark-declared fields and one renderer (L)
Web Search
- Web Search: move provider quirks into adapters and dataset rules into declarations #323 Move provider quirks into adapters and dataset rules into declarations (M)
Browser tracks
- One browser adapter and participant registry for the browser tracks #321 One browser adapter and participant registry (L)
- WebArena site adapters in the shared environment package #325 WebArena site adapters in the shared environment package (M)
- Trajectory Replay: one pipeline for the curated, catalog and public WebArena benchmarks #339 Trajectory Replay: one pipeline for the curated, catalog and public WebArena benchmarks (L)
- Consolidate the WebArena qualification and repair entry points #335 Consolidate the WebArena qualification and repair entry points (M)
Phase 3 · Shared report and release
- Move report-instance prose and numbers out of renderers, checks and translation maps #330 Move report-instance prose and numbers out of renderers, checks and translation maps (M)
- Shared report shell, components and message catalog #331 Shared report shell, components and message catalog (L)
- Shared release-check and package skeleton #332 Shared release-check and package skeleton (M)
- One publisher interface over the publication lifecycles #333 One publisher interface over the publication lifecycles (M)
- Export scored results to a webstone-site submission for every track #334 Export scored results to a webstone-site submission for every track (M)
Phase 4 · Close
- Run a synthetic method and benchmark through every stage of each track #317 Run a synthetic method and benchmark through every stage of each track (M)
Done when
Every track passes its conformance example (#317), and the allowlists introduced by #315 are empty.
Activity
7 remaining items
lanyue-llk commentedon Nov 24, 2026
Convergence status (2026-11-24)
The refactor to
docs/spec.mdhas 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 exposeswebstone <track> <stage>. Each track has a conformance test that adds a synthetic method and benchmark through adapters alone (#378).web_fetch/report.pyrender_report)make test-python0fe89317…Merged: #313, #341–#346, #348–#351, #358, #361–#366, #368–#378, #380 (release preparation).
Still open, each with its reason:
webmainbench.mdcard update goes through the dataset PR flow.lanyue-llk commentedon Nov 25, 2026
Final status (2026-11-25)
The convergence refactor to
docs/spec.mdis complete and released as Webstone 0.10.0 (PyPI, provenance attested; scorer0fe89317…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).
make test-pythonFollow-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).