Skip to content

Drive participants, providers, engines and models from registries instead of literals #97

Closed

Description

@lanyue-llk

Problem

AGENTS.md says to generate participants from the registry, but code hardcodes them.

Browser Use

  • browser_use/report.py:62-64 hardcodes ENGINE_LABELS, MODEL_LABELS and BASELINE_ENGINE, then mutates them through global (:87, :105).
  • report.py:2194-2208 hardcodes measured cardinalities (180/90/90/54/30/60/36).
  • runner.py:591 hardcodes the engine order ("chromium", "moli").

Trajectory Replay

  • 27 "chromium"/"moli" literals in trajectory_replay/report.py.
  • Engine branches in remote_execution.py:265.
  • gpt-5.6-sol is the default model in 7 places.
  • webarena_corrections.py:268 has an if task.task_id == 225: branch with magic counts.

Web Fetch

  • webmainbench_runner.py:45-46 contains "moli-1.1.7" and "moli-pr643", repeated in webmainbench_report_check.py:483.
  • providers/headless.py:32 defines ENGINES, followed by about 15 if engine == 'moli' flag branches.
  • providers/base.py:201-260 build_provider dispatches with an if-chain.
  • lexbench/verification.py:1029 defaults to moli-1.1.8-failures-site.
  • report_changes.py:11,71 hardcodes release IDs.

Proposal

  • Use a provider registry (type to class), per-engine flag data, and participants read from evaluation/ profiles.
  • Pass a report context object instead of module globals.
  • Move task-specific correction predicates into the corrections data, with paired regression controls.

Risk: medium. Depends on: dead-code removal.


Part of the refactor roadmap: #87

Activity

  1. added
    refactor
    on Oct 29, 2026
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions