Skip to content

Move shared helpers and the root command out of web_fetch #314

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 2, 3. Size: M.

Problem

Shared packages depend on one track, and other tracks use web_fetch as the common package.

  • reporting/publication.py:25-26 imports web_fetch.artifact_auth.load_token and web_fetch.safety; reporting/publish.py:56, release_check.py:12, visual.py:20, assets.py:14 and versions.py:16 also import web_fetch.
  • benchmarks/publication.py:499 imports web_search.revisions.
  • About 30 imports of web_fetch.safety and 10 of web_fetch.config come from other tracks (trajectory_replay 19 files, web_extract 7, browser_use 5, web_search 4).
  • The root command is webstone = "harness.web_fetch.cli:main" (pyproject.toml:21); web_fetch/cli.py:36-49 dispatches every other track, and reporting/certified_cli.py:14-24 is an if/else over track names.

Direction

Move safety.py, artifact_auth.py and the environment-loading part of config.py to neutral modules under src/harness/. Move the root dispatcher to harness/cli.py and build it, and the certified dispatcher, from a track registry. Migrate every caller in the same change; leave no alias.

Done when

  • No module in reporting/, benchmarks/, results/ or the top-level shared modules imports a track.
  • No track imports web_fetch for helpers.
  • The root command and the certified runner obtain tracks from one registry.

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

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