Skip to content

docs(web-fetch): translate the remaining guide text to English - #245

Merged
lanyue-llk merged 2 commits into
mainfrom
docs/web-fetch-guides-english
Nov 4, 2026
Merged

lanyue-llk merged 2 commits into
mainfrom
docs/web-fetch-guides-english

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What, why and how of this PR

Issues

Closes #99. The renderers now use English as their source (#240, #243, #244) and this PR finishes the guides. Direct per-language rendering and deleting the Web Fetch Localizer are not planned: saved and frozen pages depend on the table, and it would be a large rewrite for a small gain.

What stays Chinese, and why

  • Translations and catalogs: docs/README.zh-CN.md, and the messages.json catalogs that hold the Chinese report editions.
  • Vendored or frozen: the humanizer-chinese skill and the audits under evaluation/risk-control/.
  • Web Fetch report code that saved pages depend on: report-translations.json (3,285 entries), report_i18n.py, report_explainer.py (139 lines of sentence fragments), and report.py (162 lines: cohort prose, WCXB tables, whole-node rules and machine keys).
  • Checks that match Chinese output on purpose: report_check.py.
  • Chinese-only replay renderers: trajectory_replay/core/report.py and webarena-report.js, plus smaller remainders in other report modules and scripts.
  • Data and evidence: research/, evaluation/, examples/, tests and benchmarks/scoring-regressions.json keep their raw language.

Summary

Translates the project-written Chinese in three guides. Nothing else changes.

File Chinese lines before After Result
src/harness/web_fetch/README.md 41 1 40 lines translated or merged
src/harness/web_fetch/HEADLESS.md 10 0 10 lines translated or merged
evaluation/risk-control/README.md 10 0 10 lines translated or merged

Left raw: `判分完整性` in the README. It is a column label that report.py emits and report_check.py matches.

Merged instead of duplicated:

  • Native route rules: the headingless paragraphs after "Native scored result context" move into HEADLESS.md#native-browser-routes, which .agents/skills/benchmark-report/references/evaluation-design.md names as the owner of those rules. The README keeps a one-line pointer. Overlapping sentences in that section and in "Runtime and route" are now stated once.
  • Compiled reruns: the Chinese section is removed, because "Certified cohorts and report builds" already states most of it. Its three extra points now sit in that paragraph: a missing old archive does not make a run diagnostic, source checks use the matching build and revision flow, and an explicit reference-answer revision still uses the reference-revision entry.
  • Error corrections: this paragraph moves to "Correct a score or reference".
  • Frozen references: the trailing HEADLESS.md line merges into "Capture, freeze and check references".
  • Resource scope: this had no English equivalent, so it is translated in place under ### Resource comparison scope.
  • Risk control: the Chinese paragraph merges with the English paragraph after it, which already covered Moli identity and report-build bindings. The English said "reference-verification receipts". It now says "frozen-input verification receipt", matching the Chinese and the v2 binding in risk_control.py.

Risk-control README translated because it is project-written guidance and nothing names it. Its own "Frozen artifacts and language" section lists what is frozen, and it is not on that list. run-profile.json and the revision provenance do not bind it, and the pinned definition directory has no copy.

Hash bindings and tests: no hash binding names these three files. No test reads the translated headings or text. The Chinese-heading search matched only the guides themselves, and the three tests that read these guides check paths or commands.

Test plan

  • tests/test_documented_paths.py, test_readme_navigation.py, test_source_language_policy.py, test_web_fetch_owner_commands.py: 122 passed.
  • ruff check (default gate): pass.
  • Every backticked token and number in the removed Chinese lines appears in the new text, checked with a script. The wording itself was checked by reading, with no second reviewer.

lanyue-llk added a commit that referenced this pull request Nov 4, 2026
@lanyue-llk
lanyue-llk merged commit d053e23 into main Nov 4, 2026
5 of 6 checks passed
@lanyue-llk
lanyue-llk deleted the docs/web-fetch-guides-english branch November 4, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make English the source language of all report renderers, with Chinese as a catalog

1 participant