Repository navigation
Closed
Labels
refactorCodebase quality roadmap
Description
Codebase-wide audit (origin/main 32d8f3f7, 2026-10-29) and the staged plan for making Browser Eval a high-quality open-source repository:
- no hardcoded environments, participants or measurements
- fixed bugs
- consistent style and enforced lint/format
- one implementation per stage
- English as the source language, with Chinese kept only where it is product output (the Chinese report edition,
docs/README.zh-CN.md) or evidence (frozen references, quotations, hash-bound artifacts)
Each item is delivered as small PRs that are individually reviewable. Refactor PRs start after #81 merges and are based on main, so they do not have to be rebased across its 379-file change. harness/benchmarks/ from #81 enters scope at that point.
Ground rules for every PR:
- behaviour-preserving unless the PR states otherwise
- guarded by golden route hashes (Add golden route-hash snapshots for every report track #88)
- hash-bound receipts unchanged
- AGENTS.md respected: no compatibility aliases, callers migrated atomically
Phase 0: safety net
- Add golden route-hash snapshots for every report track #88 Golden route-hash snapshots for every report track
Phase 1: mechanical, low risk
- Remove dead code, retired compatibility shims and duplicated example files #92 Remove dead code, retired shims and duplicated examples
- Prune unreferenced and one-off migration scripts #93 Prune unreferenced and one-off scripts
- Extend lint coverage to the whole repository and enforce a formatter #89 Extend lint coverage and enforce a formatter (staged)
- Read and write all text files as explicit UTF-8 #90 Explicit UTF-8 on all text I/O (related: Risk-control compiler relies on locale encoding for UTF-8 definitions and output #84)
- Consolidate copy-pasted hashing, JSON I/O, data-home, dotenv and redaction helpers #91 Consolidate hashing, JSON I/O, data-home, dotenv and redaction helpers
Phase 2: correctness and security
- Fix confirmed runtime bugs found in the codebase audit #94 Confirmed runtime bugs (Rainbond readiness, unbounded waits, resume parity, P95 definitions, ...)
- Harden publication credentials and finish the Artifact Hub to Artifact Site rename #95 Publication credential hardening; finish the Hub to Site rename
Phase 3: remove hardcoding
- Use a single registry for WebArena hosts, ports and site credentials #96 Single WebArena host, port and credential registry
- Drive participants, providers, engines and models from registries instead of literals #97 Participants, providers, engines and models from registries
- Move hardcoded measurements, report prose and inline assets out of renderer code #98 Measurements and prose out of renderers; inline assets to files; pin Mermaid
Phase 4: English-first source
- Make English the source language of all report renderers, with Chinese as a catalog #99 English-source renderers with Chinese catalogs (multi-PR checklist inside)
Phase 5: structure
- Replace about 170 wrapper scripts with per-track subcommand CLIs #100 Per-track subcommand CLIs replace wrapper scripts
- Unify the report publish/package stack and reviewer-subprocess orchestration #102 One publish/package stack, one reviewer runner, one HAR recorder
- Consolidate parallel Trajectory Replay modules (curated vs public WebArena) #103 Consolidate curated vs public Trajectory Replay modules (owner decision)
- Split giant renderers and functions; add type hints along the way #104 Split giant renderers and functions; type hints
- Clean up test-suite structure #105 Test-suite structure
- Packaging, Makefile and CI hygiene #106 Packaging, Makefile and CI hygiene (owner decision on rename)
- Move report-instance data and stale fallbacks out of Git; fix stale docs #107 Report-instance data out of Git; stale docs
Open owner decisions
- Is the curated Trajectory Replay track (
trajectory_replay/report.py,tasks.v4) still supported? (Consolidate parallel Trajectory Replay modules (curated vs public WebArena) #103) - Should the distribution and import package be renamed (e.g.
browser-eval/browser_eval) instead ofbrowser-harness-eval/harness? (Packaging, Makefile and CI hygiene #106) - Is adding Jinja2 as a templating dependency acceptable for the renderer split, or should the f-string/component builders stay? (Make English the source language of all report renderers, with Chinese as a catalog #99, Split giant renderers and functions; add type hints along the way #104)
Metadata
Metadata
Assignees
Labels
refactorCodebase quality roadmap
Activity
lanyue-llk commentedon Oct 30, 2026
Follow-ups from the #81 review, to land after #81 merges:
pin-datasetmust reject Hugging Face revisions not on mainlanyue-llk commentedon Nov 4, 2026
Finish line
The refactor is done when:
One PR closes one or several issues, whichever fits the work. Review findings block a PR only when that PR caused them or they are real bugs.
lanyue-llk commentedon Nov 4, 2026
Closing the roadmap. Every issue it tracked is resolved or closed with a stated reason.
trajectory_replay/core; scripts moved to subcommands.AGENTS.mdcut from 32 KB to 12 KB, conflicts resolved, and track rules moved to the guides that own them.