Skip to content

One browser adapter and participant registry for the browser tracks #321

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 1, 6, 7. Size: L.

Problem

Browser identity is spread over shared files, and three registries disagree.

  • trajectory_replay/participants.py:16 hardcodes BROWSER_ADAPTERS; browser_use/report.py:139 reads engines/models from the profile; environments/browser.py:14-18 holds image and port dicts for chromium and moli only.
  • trajectory_replay/remote_execution.py:1094 and remote_runtime.py:373,570 restrict --engine to ("moli","chromium"), disagreeing with BROWSER_ADAPTERS.
  • trajectory_replay/playwright_tool.py:375-386 sets six capability flags by engine in {...}; :409, 1059, 1100, 1104, 1110, 1192, 1319 add per-engine behaviour.
  • remote_execution.py:351, 371, 384, 393 is a launch-command if-chain; catalog_runner.py:157-270, 570 and runtime_identity.py:23,26 special-case kitesurf and chromium.
  • public_webarena/runner.py:70 pins MOLI_VERSION = "1.0.6"; browser_use/runner.py:71,603 iterates a module constant, so the run set is not profile-driven.
  • lexbench/report.py:370,786 and lexbench/resource_matrix.py:64,75,132 index ["moli"] directly.

Direction

One adapter object per browser declares its launch command, ports, image, capabilities and hooks, registered once and used by the catalog replay, curated replay, public replay and Browser Use runners. One participant schema, read from the profile, selects the run set and versions. Engine choices derive from the registry.

Done when

  • Adding a browser adds one adapter module and a profile entry.
  • No shared runner, tool or report module names a browser.
  • All four runners take participants from the profile.

Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Remaining after #350: replay runners still take participants from the CLI or registry defaults rather than the profile; lexbench/resource_matrix.py and resource_profiles.py still name moli because frozen protocols bind their bytes (orchestrator_sha256).

  3. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Done in #350 and #372: one BROWSERS registry of browser adapters, one participant schema, replay and Browser Use runners take participants from the profile. Accepted constraint: lexbench/resource_matrix.py and resource_profiles.py still name moli because frozen protocols bind their bytes (orchestrator_sha256); changing them would invalidate those protocols.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions