Skip to content

Move report-instance prose and numbers out of renderers, checks and translation maps #330

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 1, 8, 10. Size: M.

Problem

Content written for one report lives in shared code.

  • web_fetch/report-translations.json has thousands of exact-sentence entries, 144 with measured-looking values (for example :879, :1032) and 287 lines naming one engine; web_fetch/report_i18n.py adds report-specific regex rules (:139-144, 188, 319, 452-465); web_fetch/messages.json:1905 carries defect prose with values.
  • Renderers: web_fetch/report.py:266-273, 3794, 3846; trajectory_replay/report.py:366-368; trajectory_replay/webarena_report.py:270-287 ("Chromium 90/90 and Moli 54/90"); trajectory_replay/public_webarena/report.py:523-536; browser_use/report.py:3040-3062.
  • Checks: trajectory_replay/webarena_report_check.py:318 requires the literal "36 failures", :587, 798-804; browser_use/report_check.py:728-729; web_fetch/webmainbench_report_check.py:484, 540, 733.
  • web_fetch/report_saved_composition.py:204-206 hardcodes provider labels and a slug pattern and edits rendered HTML.

Direction

Move this content into each report's bound content, in every language it ships, as report_changes already does for release history. Checks compare structured records with rendered routes. Keep shared catalogs for interface text only.

Done when

  • Shared renderers, checkers and message catalogs contain no measured value, campaign name or one-report sentence.
  • The instance-literal check covers these files with an empty allowlist.
  • Published reports rebuild from their bound content with unchanged text.

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

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Found during #350: trajectory_replay/report.py still holds Moli timing prose (MOLI_TIMING_FINDING/MOLI_TIMING_STUDY); move it to bound content here.

  3. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Status: Browser Use (#373) and Trajectory Replay (#376) instance prose and values moved to bound content or data files. Web Fetch: the measured-value sentences in report-translations.json, the one-report rules in report_i18n.py, the defect prose in messages.json and the labels in report_saved_composition belong to already-published reports; moving them requires updating each report's bound content outside Git in the same change, so they stay until that content is available. New reports must not add instance prose to shared catalogs; reviews enforce it.

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