Skip to content

Browser Use report on the shared report template with a shared same-task explorer - #373

Merged
lanyue-llk merged 2 commits into
mainfrom
refactor/bu-report
Nov 24, 2026
Merged

lanyue-llk merged 2 commits into
mainfrom
refactor/bu-report

Conversation

@lanyue-llk

Copy link
Copy Markdown
Contributor

Purpose

Port the Browser Use report onto the shared report template (spec "Report templates"), the second track after Web Search. Part of #337, #331 and #330.

New structure

flowchart TB
    BT["reporting/templates.py<br/>page roles, slot order, Variant"] --> TT["browser_use/template.py<br/>TEMPLATE: standard variant<br/>(interpretation declared absent)"]
    TT --> R["browser_use/report.py<br/>page writers return slot fills → compose(role, fills)"]
    SH["reporting/shell.py<br/>page, navigation, table, evidence_link"] --> R
    EX["reporting/explorer.py<br/>same-task explorer + SCRIPT"] --> R
    LC["reporting/locales.py<br/>catalog_text, catalog_section"] --> R
    RD["research/browser-use-benchmark-adoption.json<br/>candidate_benchmarks"] --> R
    R --> M["report-data.json<br/>template: base, track, variant, versions"]
    M --> RC["browser_use/report_check.py"]
    RC --> G["reporting/release_check.check_template_pages<br/>roles + section order, every edition"]
Loading

What moved or was removed

  • Track template (browser_use/template.py): one standard variant. Home → home; Dataset → datasets; Methodology, Browsers tested, Accounts → methodology; Results analysis → results; Review, Fix log → review; Environment and reproduction → reproduce; Changes → changes. The report has no separate interpretation page, so interpretation is declared absent. Detail routes (task, result, browser, evidence viewer, fix record) take the role of the page that links them.
  • Page writers return slot fills and render through compose. The home article is split into lead / core-comparison / summary / findings / coverage. The report manifest (report-data.json, data/summary.json) now records base, track_template, variant and their versions.
  • Shell: every page uses shell.page (the extensions are instance-neutral: optional linked head assets, a pre-rendered heading_html, and inline style/script left out when empty), shell.navigation, shell.table (new table_id, caption, classes, header_html) and shell.evidence_link (new viewer mode for a shared viewer page). Removed: the Browser Use _page/_nav/_hero, the hand-built task, result and matrix tables, and the Web Fetch stylesheet import (reporting.style). report.css now carries only the shared rules its pages use (found by matching selectors against the built pages and the renderer source).
  • One navigation source: the navigation comes from the template pages. report_i18n.NAV and the English header rewrite are removed; the English pass renders its own navigation, and localize_html only keeps the one hreflang link pointing back to the Chinese route.
  • Catalog: report_i18n.report_text is removed in favour of locales.catalog_text; frozen rationale translations are read through the new locales.catalog_section.
  • Same-task explorer (reporting/explorer.py): one data-driven component. Columns come from the caller's participant registry. It has a baseline selector, multi-select compared participants and explicit relations (outcomes differ, baseline passes while a comparison fails, baseline fails while a comparison passes, all pass, all fail), plus row filters. Every outcome links to its full result. Browser Use passes model × browser configurations. The API (Participant, Outcome, Task, Filter, Labels) carries no Browser Use knowledge, so Trajectory Replay can reuse it; trajectory_replay/ is not touched. filterMatrix is removed from report.js.
  • Instance content out of code (Move report-instance prose and numbers out of renderers, checks and translation maps #330): the candidate-benchmark table (report.py ~3040-3062, with "136 live websites", "100 mixed tasks", "200 … tasks") moves to candidate_benchmarks in research/browser-use-benchmark-adoption.json with en/zh text. Its 27 catalog entries are removed. The evaluator version comes from the recorded environment (webarena_verified_version) instead of the literal "1.2.3". The two campaign-specific "179-task" forbidden phrases are removed from report_check.py, along with their catalog entries. The required-pages list in the check is derived from the template.
  • Release gate: release_check.check_template_pages(root, record, template) verifies, in every generated edition, that each registered page exists, fills its role and keeps the base slot order. The Browser Use check runs it for profile-bound reports. Legacy unbound reports keep their shape, the same rule check_template_identity uses.

Baselines

tests/baselines/browser-use.json and browser-use-pass.json changed. Scored results and table values are unchanged, with one exception noted below:

  • Section order follows the base template. On Results analysis the result inventory (results role: inventory) now comes before the same-task matrix and BrowserTool latency (comparison). On Reproduce the public entry points (commands) now come before identity, deployment and isolation (notes).
  • Evaluator version cell: "WebArena‑Verified 1.2.3 官方 evaluator" became "WebArena‑Verified — 官方 evaluator" (also in English). The fixture records no webarena_verified_version, and the old text was a hard-coded literal. The Reproduce identity table already showed "—" for the same field.
  • Route digests of every HTML page, assets/style.css, assets/report.js and data/summary.json changed. The causes are the shared shell skeleton (<nav>/<main data-page-role> with slot wrappers, the heading outside the lead section), the shared table wrapper, the explorer markup and script, the stylesheet without the Web Fetch import, and the template record in the manifest.

Web Search baselines are unchanged, so the shell extensions are backward compatible.

Allowlists

Instance-literal: 1 → 1. Layering: 0 → 0. Browser Use modules are outside the scanned shared scope.

Verification

  • uv run --frozen --all-extras python -m pytest tests -n 8 --dist worksteal: 21600 passed, 78 skipped
  • make lint-check: passed. node tests/browser_use/test_report_ui.mjs: passed
  • New tests:
    • tests/test_report_explorer.py covers rendering and refusals.
    • A real-browser explorer test covers baseline, compared participants, relations and filters.
    • test_check_verifies_template_pages_and_section_order is the negative control. It covers swapped slots, a wrong page role, a wrong role in the English edition, a missing page and a manifest without a variant.
    • Navigation tests check that labels are the template titles and that the English links point back to the Chinese route.
  • Screenshots of home, analysis, task, failed result, reproduce and English methodology pages at 1280/light and 390/dark show no horizontal overflow. The Browser Use real-browser interaction test passes.
  • uv run --frozen lexbench-webfetch version: scoring-source hash unchanged (no scorer sources touched).

Breaking changes

None. No command was renamed or removed. Python API removals: harness.browser_use.report_i18n.report_text and NAV.

Remaining

Part of #337
Part of #331
Part of #330

…ell options

Add one data-driven same-task explorer (participants from the caller's
registry, a baseline selector, multi-select comparisons and explicit outcome
relations) so tracks stop keeping their own matrices. The release gate gains
check_template_pages, which compares every edition's registered pages with the
recorded template variant. The shell page accepts linked assets and a
pre-rendered heading, the table takes an id, caption and classes, and evidence
links can open a shared viewer page. The catalog API reads named sections.
Browser Use becomes a track template whose pages fill the base roles; each
page writer returns slot fills, every page uses the shared shell, navigation,
tables and evidence links, and the same-task matrix is the shared explorer.
The manifest records the template variant and the report check verifies page
roles and section order in every edition.

The navigation comes from the template, so the English edition no longer keeps
its own copy. Candidate-benchmark facts move to the adoption research record,
the evaluator version comes from the recorded environment, and the check drops
campaign-specific phrases. The report no longer imports the Web Fetch
stylesheet; it carries the rules its pages use.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete · 0618ef6

No findings in this review.

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