gehuageyan's picture
Publish distinct current task populations; retain historical definitions
5f878dd verified
|
Raw History Blame Contribute Delete
13.1 kB
metadata
pretty_name: LexBench-Headless-Browser
license:
  - apache-2.0
  - bsd-3-clause
tags:
  - benchmark
  - evaluation
  - browser-eval
  - headless-browser
  - browser-compatibility
  - cdp
  - web-platform
  - browser-automation
  - self-hosted-fixtures
task_categories:
  - other
source_datasets: []
language:
  - en
configs:
  - config_name: l1.agent_browser_scenarios
    data_files:
      - split: test
        path: data/l1.agent_browser_scenarios.jsonl
  - config_name: l1.agent_browser_tool
    data_files:
      - split: test
        path: data/l1.agent_browser_tool.jsonl
  - config_name: l1.cdp_use
    data_files:
      - split: test
        path: data/l1.cdp_use.jsonl
  - config_name: l1.chrome_devtools_mcp
    data_files:
      - split: test
        path: data/l1.chrome_devtools_mcp.jsonl
  - config_name: l1.chrome_remote_interface
    data_files:
      - split: test
        path: data/l1.chrome_remote_interface.jsonl
  - config_name: l1.chromedp
    data_files:
      - split: test
        path: data/l1.chromedp.jsonl
  - config_name: l1.chromiumoxide
    data_files:
      - split: test
        path: data/l1.chromiumoxide.jsonl
  - config_name: l1.ferrum
    data_files:
      - split: test
        path: data/l1.ferrum.jsonl
  - config_name: l1.playwright
    data_files:
      - split: test
        path: data/l1.playwright.jsonl
  - config_name: l1.puppeteer
    data_files:
      - split: test
        path: data/l1.puppeteer.jsonl
  - config_name: l1.pydoll
    data_files:
      - split: test
        path: data/l1.pydoll.jsonl
  - config_name: l1.raw_cdp
    data_files:
      - split: test
        path: data/l1.raw_cdp.jsonl
  - config_name: l1.rod
    data_files:
      - split: test
        path: data/l1.rod.jsonl
  - config_name: l1.selenium
    data_files:
      - split: test
        path: data/l1.selenium.jsonl
  - config_name: l1.stagehand
    data_files:
      - split: test
        path: data/l1.stagehand.jsonl
  - config_name: l2.playwright
    data_files:
      - split: test
        path: data/l2.playwright.jsonl
  - config_name: l2.puppeteer
    data_files:
      - split: test
        path: data/l2.puppeteer.jsonl
  - config_name: l2.web_platform
    data_files:
      - split: test
        path: data/l2.web_platform.jsonl

LexBench-Headless-Browser

A versioned data export of Lexbench-Headless-Browser. It preserves the original CDP compatibility tasks, web platform tests, scenario specifications, browser and driver configuration, and local fixtures.

The dataset viewer contains 1,928 executable task definitions across 18 subsets. The original source files also retain 116 driver-neutral scenario specifications, 269 fixture files and 5 configuration files. The upstream manifest declares benchmark version 0.4.2; its browser binding configuration names 13 driver interfaces. Source commit: 3f1580a20922fc3f339b5fc279d9bbdb06d5d194.

Populations and task contracts

Viewer group Source suite Tasks Scope
l1.agent_browser_scenarios l1.agent_browser_scenarios 89 L1 cdp compatibility through tool_agent_browser; upstream task and grading contract unchanged
l1.agent_browser_tool l1.agent_browser_tool 78 L1 cdp compatibility through node_cdp_probe; upstream task and grading contract unchanged
l1.cdp_use l1.cdp_use 92 L1 cdp compatibility through thin_cdp_use; upstream task and grading contract unchanged
l1.chrome_devtools_mcp l1.chrome_devtools_mcp 90 L1 cdp compatibility through mcp_chrome_devtools; upstream task and grading contract unchanged
l1.chrome_remote_interface l1.chrome_remote_interface 92 L1 cdp compatibility through thin_chrome_remote_interface; upstream task and grading contract unchanged
l1.chromedp l1.chromedp 92 L1 cdp compatibility through thin_chromedp; upstream task and grading contract unchanged
l1.chromiumoxide l1.chromiumoxide 92 L1 cdp compatibility through thin_chromiumoxide; upstream task and grading contract unchanged
l1.ferrum l1.ferrum 92 L1 cdp compatibility through thin_ferrum; upstream task and grading contract unchanged
l1.playwright l1.playwright 142 L1 cdp compatibility through framework_playwright; upstream task and grading contract unchanged
l1.puppeteer l1.puppeteer 143 L1 cdp compatibility through framework_puppeteer; upstream task and grading contract unchanged
l1.pydoll l1.pydoll 92 L1 cdp compatibility through thin_pydoll; upstream task and grading contract unchanged
l1.raw_cdp l1.raw_cdp 375 L1 cdp compatibility through raw_cdp; upstream task and grading contract unchanged
l1.rod l1.rod 92 L1 cdp compatibility through thin_rod; upstream task and grading contract unchanged
l1.selenium l1.selenium 87 L1 cdp compatibility through webdriver_selenium; upstream task and grading contract unchanged
l1.stagehand l1.stagehand 92 L1 cdp compatibility through framework_stagehand; upstream task and grading contract unchanged
l2.playwright l2.playwright 3 L2 web platform semantics through framework_playwright; upstream task and grading contract unchanged
l2.puppeteer l2.puppeteer 3 L2 web platform semantics through framework_puppeteer; upstream task and grading contract unchanged
l2.web_platform l2.web_platform 182 L2 web platform semantics through node_cdp_probe; upstream task and grading contract unchanged

The l1.* and l2.* configurations contain the executable tasks selected by the original manifest's task_glob entries. Scenario specifications remain in definitions/tasks/scenarios/ as design sources and provenance. They are excluded from the viewer population and add no extra tasks to the executable count.

  • L1 — CDP compatibility. Protocol commands, framework and tool interfaces, navigation, DOM observation, interaction and other browser operations. Some probes are diagnostic and accept completion without grading returned values; the original tags, optional steps and checks state that scope.
  • L2 — Web platform behavior. Browser semantics checked against local fixture pages. The manifest, capability map and driver bindings define which combinations are eligible.
  • Scenario specifications. Driver-neutral steps, checks and expected answers. A scenario may have several executable driver translations, so repeated concepts across configurations are intentional.

The declared drivers include Playwright, Puppeteer, Chrome Remote Interface, CDP Use, Pydoll, Stagehand, Chrome DevTools MCP, chromedp, Rod, Chromiumoxide, Ferrum, agent-browser and Selenium. The source manifest also includes raw CDP probes. Driver configuration is a compatibility contract; it does not establish that every driver works with every browser or that a particular run passed.

Files and fidelity

definitions/ keeps the original paths and bytes from the source commit:

Path Contents
manifest.json Benchmark version, layers, subsets, task globs, browser policy and fixture site contract
harness_pins.json Upstream runtime dependency pins
tasks/ Original executable JSON tasks and scenario specifications, including assertions and source wording
config/ Browser/driver bindings, capability maps, schemas and CDP waivers
fixtures/ Local pages, scripts and assets used by the tasks
LICENSE, THIRD_PARTY_NOTICES.md Original license and attribution notices

The additive definitions/registry.json binds viewer configurations to their hashes, populations and original source paths. definitions/viewer/ contains JSON projections for the dataset viewer. Each viewer row's task field is the original parsed executable task object; source_path locates its unchanged JSON file beneath definitions/. The export does not translate instructions, change assertions or replace expected answers. manifest.json at the repository root records release hashes and source identity; definitions/manifest.json remains the original upstream manifest.

Viewer language labels describe the executable task instructions, which are English in this source edition. Fixture content and expected literals may use other languages; their original text is preserved.

The archive definitions.tar.gz provides the same definition files. Measured attempts, browser responses, scores, generated reports, private captures, executable runner code and browser binaries have separate owners and are excluded from this dataset.

Load a pinned dataset

Browser Eval records the selected Hugging Face commit in its data lock. Use that immutable revision for the viewer rows:

import json
from datasets import load_dataset
from harness.benchmarks.data import binding

selected = binding("headless-browser")
rows = load_dataset(
    selected["repository"],
    "l1.raw_cdp",
    revision=selected["revision"],
    split="test",
)
row = rows[0]
task = json.loads(row["task"])
print(row["source_path"], task["task_id"], task["grader"])

Inspect the original scenario specifications under definitions/tasks/scenarios/. Dataset access is public and requires no account or token. A Hugging Face data commit and an upstream Git code commit identify different things; retain both when recording a run.

Execute with the original runner

The JSON files use the upstream driver's protocol. Its runner owns fixture routing, scenario expansion, driver adapters and inline grading. Obtain the matching code and follow the pinned running instructions for dependencies and browser binaries:

Create a fresh checkout at the data's recorded code revision, then place the pinned Hugging Face definitions at the original paths. This example copies only the original-source inventory; the viewer projections and registry stay outside the runner's inputs.

from pathlib import Path
import hashlib
import json
import subprocess

from harness.benchmarks.data import definition_path

definitions = definition_path("headless-browser", ".")
registry = json.loads((definitions / "registry.json").read_bytes())
checkout = Path("/tmp/Lexbench-Headless-Browser")  # Must not already exist.
subprocess.run(["git", "clone", registry["source"]["repository"], str(checkout)], check=True)
subprocess.run(["git", "-C", str(checkout), "checkout", "--detach", registry["source"]["revision"]], check=True)
actual = subprocess.check_output(["git", "-C", str(checkout), "rev-parse", "HEAD"], text=True).strip()
assert actual == registry["source"]["revision"]
for relative, expected in registry["source_files"].items():
    raw = (definitions / relative).read_bytes()
    assert len(raw) == expected["size"] and hashlib.sha256(raw).hexdigest() == expected["sha256"]
    destination = checkout / relative
    destination.parent.mkdir(parents=True, exist_ok=True)
    destination.write_bytes(raw)

Run the original CLI from that checkout using the pinned guide's setup and scope options. The files it reads now come from the selected Hugging Face snapshot, including the original task JSON, fixtures, configuration, manifest and dependency pins.

Check the source manifest and running guide before choosing a scope. Loading this dataset installs neither that runner nor its runtime dependencies. The local fixture server is implemented in runner/run.py; driver-neutral expansion and platform semantics also depend on the original runner modules and adapters.

Browser Eval's public-web replay suite contains 30 self-authored tasks with its own live website inputs, BrowserTool actions and exact checks. This scenario collection informed their design; none of those complete tasks is included in the Headless executable catalog. Headless execution remains owned by the pinned upstream driver runtime described above. Existing report protocols may select smaller, hash-bound populations such as the historical 372-task protocol; their scores and denominators remain attached to those original runs. The complete source collection published here does not expand an earlier report's measured population.

License and citation

The upstream project uses Apache-2.0. Included WPT and Chromium fixtures retain their BSD-3-Clause notices in THIRD_PARTY_NOTICES.md. Preserve those notices when redistributing the data.

@misc{lexbench_headless_browser,
  author = {Lexmount},
  title = {LexBench-Headless-Browser},
  year = {2026},
  url = {https://github.com/lexmount/Lexbench-Headless-Browser},
  version = {3f1580a20922fc3f339b5fc279d9bbdb06d5d194}
}

When using Browser Eval's separate replay harness, also cite Browser Eval.