Skip to content

Unify the report publish/package stack and reviewer-subprocess orchestration #102

Closed

Description

@lanyue-llk

Problem

There are six publication modules, each with its own HTTP client:

  • browser_use/report_publish.py
  • trajectory_replay/webarena_report_publish.py
  • web_fetch/report_publish.py
  • wcxb_publication.py
  • web_search/publication.py
  • public_webarena/publication.py

browser_use/report_publish.py:100 and webarena_report_publish.py:100 are near-identical request() implementations that differ only in User-Agent and timeout. multipart_archive, response_json, tree_sha256 and receipt handling are copied too.

Other parallel stacks:

  • Reviewer subprocess orchestration: web_fetch/review_execution.py:590-660 and web_search/review.py:770.
  • Report check bases: report_check, wcxb_report_check, webmainbench_report_check, browser_use/report_check, webarena_report_check.
  • Two esc() helpers.
  • Two CDP HAR recorders: environments/webarena/har.py (835 lines) and public_webarena/har.py (391).

Proposal

  • Extend web_fetch/report_publish.publish(config, transport=...) into harness/reporting/publish.py and make every track an adapter of it.
  • Extract one reviewer runner and one release-check base.
  • Use one HAR recorder parameterized by redaction policy. This one needs paired replay tests, because evaluator inputs change.

Risk: medium to high. Depends on: shared helpers, the credentials issue.


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 #144. Remaining work is tracked in #156.

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