Skip to content

docs(contributing): state which text English-first covers - #220

Merged
lanyue-llk merged 1 commit into
mainfrom
docs/english-first-scope
Nov 4, 2026
Merged

lanyue-llk merged 1 commit into
mainfrom
docs/english-first-scope

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 #217

Summary

CONTRIBUTING.md listed some text that stays in its original language, but gave no general test. It now has a short "Text language" section with one test for any string: did the project write it, or did it come from the web or a dataset?

  • CONTRIBUTING.md: the new section replaces the language sentences in two earlier paragraphs, so the rule appears once.
  • AGENTS.md: the two language sentences become one sentence that states the rule and points to the section.

Two details from the old text stay, because the two-way test alone would get them wrong:

  • Test fixtures that stand in for outside text keep its language.
  • Frozen acceptance and audit artifacts stay as they are even when the project wrote them, because they are hash-bound experiment inputs (docs/reference-inputs.md).

The rule says "language checks must exempt" outside text. harness/reporting/source_policy.py already works this way: it checks comments, identifiers and docstrings everywhere, but scans whole files only for the listed catalog renderers. The rule describes the target for all report interface text, and this PR does not check that every renderer has migrated to catalogs.

Docs only: no code, evidence, profile or rendered output changes.

Test plan

Run locally on Python 3.11 with the shared locked environment:

  • pytest tests/test_readme_navigation.py tests/test_source_language_policy.py tests/test_documented_paths.py tests/test_golden_reports.py tests/test_ci_gate.py tests/test_release_metadata.py::test_project_citations_do_not_claim_a_specific_release: 106 passed, 4 failed. All 4 failures are in tests/test_ci_gate.py and are on the list of known macOS failures. Golden snapshots are unchanged.
  • Imports came from this checkout through pytest's -o "pythonpath=src .", because the local sandbox refused a PYTHONPATH prefix.
  • ruff check (both lint gate commands): passed.
  • scripts/check_track_naming.py: not validly run locally. Without PYTHONPATH it imported harness from another checkout and failed on that checkout's data lock. CI runs it as part of the documentation check.

Give one test for any string: did the project write it, or did it come from the web or a dataset? CONTRIBUTING.md owns the rule, and AGENTS.md states it in one sentence and points there.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete · 400d1ed

No findings in this review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review, round 1

Head reviewed: 400d1ede6115a27247d7fa7d2367a17053ed80c8, on base 332084e5.

No defects found.

What I verified

Scope (Closes #217)

  • The diff touches only AGENTS.md and CONTRIBUTING.md. There is no code, evidence, profile or golden change.
  • The new CONTRIBUTING.md section has the issue's test question and both lists in full: project-written text and outside text. It also has "byte for byte", "never translate, normalize or re-punctuate" and the language-check exemption.
  • AGENTS.md now has one sentence that points to the section, and the old CONTRIBUTING.md sentences are removed, so the full rule appears once.

Nothing lost from the old text

  • Each removed clause is still covered: English identifiers, comments and documentation; report interface text in catalogs; task text and quotations; multilingual fixtures; frozen acceptance inputs.
  • "Docstrings" is no longer named, but "comments" and "docs" cover it, and check_source_languages still enforces it.
  • The frozen-artifact sentence agrees with docs/reference-inputs.md:77.
  • The other language rules in AGENTS.md (lines 68 and 96) and docs/report-hosting.md do not conflict with the new text.

PR description

  • src/harness/reporting/source_policy.py behaves as described: it tokenizes comments, identifiers and docstrings under harness and scripts, and scans whole files only for CATALOG_RENDERERS. The body omits the src/ prefix from that path, which is harmless.

Nothing pins the old text

  • git grep found no test, script or hash binding that depends on the removed wording.
  • The only non-Markdown references to these two files are the docs-only scope list (scripts/ci_scope.sh, also listed in tests/test_ci_gate.py) and a documented-paths test, which passes.
  • The CONTRIBUTING.md#text-language target exists as the ### Text language heading.

Local runs (Python 3.11, this checkout's code)

Check Result
Both ruff lint gate commands Passed
tests/test_readme_navigation.py, test_source_language_policy.py, test_documented_paths.py, test_golden_reports.py, test_ci_gate.py 105 passed, 4 failed
tests/test_release_metadata.py 6 passed, 1 skipped
scripts/check_track_naming.py Passed (the PR could not run this validly locally)
  • All 4 failures are in tests/test_ci_gate.py and are on the known local macOS failure list. They fail in node tests/evaluate_ci_expressions.mjs, which this diff does not touch.
  • Golden snapshots are unchanged.

CI on this head

  • Passed: "Select check scope", "Tests and static checks" (ran make docs-check, including the track contract checks), "Python 3.11", "OCR dispatch" and ocr-review.
  • Skipped: "Installation and packaging" and "Rendered reference and report checks". scripts/ci_scope.sh correctly classifies this PR as docs-only.

Considered, not a finding

"The Chinese report edition comes from language catalogs" describes interface text. Chinese report-specific prose comes from explicitly bound content (.agents/skills/benchmark-report/SKILL.md). The sentence uses the wording issue #217 specifies, sits in the bullet about interface text, and the "Make a change" section already sends report-specific interpretation to the profile and bound evidence. I do not think it needs changing.

lanyue-llk added a commit that referenced this pull request Nov 4, 2026
@lanyue-llk
lanyue-llk merged commit 14e6772 into main Nov 4, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the docs/english-first-scope branch November 4, 2026 04:33
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.

State which text English-first covers in the contribution guide

1 participant