Skip to content

Remove dead code, retired compatibility shims and duplicated example files #92

Closed

Description

@lanyue-llk

Problem

AGENTS.md requires removing superseded code and forbids compatibility aliases. The audit found the following with no supported caller (checked with an AST import graph and git grep):

Browser Use

  • In harness/browser_use/report.py: _finding_text, _probability, _wilson_interval, _task_family_summary, _task_family_table, _clean_subset_table, _group_rows, _english_page, RESEARCH_ROOT.
  • browser_use/model.py:265 keeps the AstraResponsesModel compatibility alias, and :150 _normalized_reasoning_effort is unused.
  • browser_use/runner.py:66-70 has an orphan comment with no code. config.py:53 hardcodes "1.2.3" even though WEBARENA_VERIFIED_VERSION exists.

Trajectory Replay

  • harness/trajectory_replay/template_transfer.py is imported by nothing.

Web Fetch

  • harness/web_fetch/admission.py is used only by its own test.
  • report_i18n.py _translate_visible_attributes has no caller.
  • methods.py:333-335 repeats the same messages = report_method_catalog(...) line three times.

Examples

  • examples/trajectory_replay/{build_public_suite.py, agent_smoke.json, tasks.v2.json, tasks.v3.json} are byte-identical to their public_webarena/ copies.
  • v2 and v3 are only referenced by the stale default public_webarena/cli.py:46 --suite /work/tasks.v2.json.

Retired names

  • BROWSER_USE_EVAL_* variables and lex-browser-use-eval-* images in run.sh.
  • Public-WebArena docstrings that say "browser use evaluation".

Proposal

  • Delete the items above with their exclusive tests.
  • Finish with the repository inventory that AGENTS.md describes.

Risk: low. Depends on: nothing.


Part of the refactor roadmap: #87

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