Skip to content

Use a single registry for WebArena hosts, ports and site credentials #96

Closed

Description

@lanyue-llk

Problem

Environment topology is hardcoded and inconsistent:

  • Local host set: {127.0.0.1, 192.168.5.2, host.docker.internal} appears in trajectory_replay/remote_runtime.py:36, inline again at :982, in catalog_contracts.py:69-78, remote_execution.py:363 and browser_use/publication.py:17. 192.168.5.2 is a Colima gateway on one developer's Mac.
  • Port maps disagree:
    • harness/environments/webarena/runtime.py:36 SITE_PORTS
    • deploy/webarena/runtime.example.json (RuntimeConfig)
    • rainbond.py:27, a different SITE_PORTS, with 8877 repeated at :313/:474/:484
    • public_webarena/suite.py:341, which maps 4399 to reddit
    • public_webarena/diagnostics.py:952, which has no 4399 for reddit and adds 8080 for wikipedia
  • Other literals: map_detail.py:20 (127.0.0.1:8085), Elasticsearch :9200, browser_use/browser.py:12-17 (images and CDP ports), and :latest official image tags in config.py:92.

Proposal

  • Make RuntimeConfig (or one harness/environments/webarena/topology.py) the single source of truth.
  • Derive every port, origin and redaction map from it, and move developer-specific hosts into the environment profile.

Acceptance

  • No literal IP or port outside the registry and its tests.
  • bound_calls_sha256 and public redaction output stay unchanged on frozen catalogs, or the change is disclosed with negative-control tests.

Risk: medium. Depends on: shared helpers.


Part of the refactor roadmap: #87

Activity

  1. added
    refactor
    on Oct 29, 2026
  2. lanyue-llk commented on Nov 3, 2026

    @lanyue-llk
    ContributorAuthor

    Resolved by #130. Remaining work is tracked in #154.

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