Repository navigation
docs(contributing): state which text English-first covers - #220
Merged
Merged
Conversation
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.
lanyue-llk
commented
Nov 4, 2026
lanyue-llk
left a comment
Contributor
Author
There was a problem hiding this comment.
Independent review, round 1
Head reviewed: 400d1ede6115a27247d7fa7d2367a17053ed80c8, on base 332084e5.
No defects found.
What I verified
Scope (Closes #217)
- The diff touches only
AGENTS.mdandCONTRIBUTING.md. There is no code, evidence, profile or golden change. - The new
CONTRIBUTING.mdsection 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.mdnow has one sentence that points to the section, and the oldCONTRIBUTING.mdsentences 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_languagesstill enforces it. - The frozen-artifact sentence agrees with
docs/reference-inputs.md:77. - The other language rules in
AGENTS.md(lines 68 and 96) anddocs/report-hosting.mddo not conflict with the new text.
PR description
src/harness/reporting/source_policy.pybehaves as described: it tokenizes comments, identifiers and docstrings underharnessandscripts, and scans whole files only forCATALOG_RENDERERS. The body omits thesrc/prefix from that path, which is harmless.
Nothing pins the old text
git grepfound 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 intests/test_ci_gate.py) and a documented-paths test, which passes. - The
CONTRIBUTING.md#text-languagetarget exists as the### Text languageheading.
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.pyand are on the known local macOS failure list. They fail innode 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" andocr-review. - Skipped: "Installation and packaging" and "Rendered reference and report checks".
scripts/ci_scope.shcorrectly 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
Closes #217
Summary
CONTRIBUTING.mdlisted 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:
docs/reference-inputs.md).The rule says "language checks must exempt" outside text.
harness/reporting/source_policy.pyalready 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 intests/test_ci_gate.pyand are on the list of known macOS failures. Golden snapshots are unchanged.-o "pythonpath=src .", because the local sandbox refused aPYTHONPATHprefix.ruff check(both lint gate commands): passed.scripts/check_track_naming.py: not validly run locally. WithoutPYTHONPATHit importedharnessfrom another checkout and failed on that checkout's data lock. CI runs it as part of the documentation check.