Skip to content

Consolidate parallel Trajectory Replay modules (curated vs public WebArena) #103

Closed

Description

@lanyue-llk

Problem

harness/trajectory_replay/ and public_webarena/ contain large copies of each other:

Module Identical lines Shared definitions
report 895 36/44
runner 473 13/13
metrics 280 all
executor 192 5/5
suite 170 9/9
diagnostics 297 —

The parent package already imports public_webarena.executor, response_builder and suite. catalog_runner.py:33-37 imports the private _browser_command, _run_task and _wait_cdp.

trajectory_replay/report.py, a Chinese-only curated renderer, sits beside the registered webarena_report.py.

AGENTS.md isolation applies to report targets and denominators, not code.

Proposal

  • Extract shared trajectory_replay/core/{suite,executor,metrics,docker_runner,diagnostics_rules}, with public-only extensions on top.
  • Owner decision needed: is the curated report.py / tasks.v4 track still supported? If not, retire it.

Risk: high. Depends on: helpers, registries, 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