[test/docs] README translations have drifted and now contradict the English destination policy

Author: wgm66Created Sep 19, 2026Updated Sep 29, 2026
Labelsdocumentationhelp wanted

Problem

#147 introduced a translation provenance convention so drift would be visible:

xml
<!-- translation-meta: source=README.md@903d102fe8f67ea0fe3db7bea85eec7d8b505967 date=2026-08-14 maintainer=@MonteNegroX -->   (README.ru.md:217)
<!-- translation-meta: source=README.md@907be508ee17428fea0179f9996bde80e5282a0f date=2026-09-01 -->                            (README.zh-CN.md:268)

The pin is resolvable and is an ancestor of master, so the drift is mechanically measurable — but nothing enforces it: git grep translation-meta matches only those two lines, and there is no reference to it anywhere in tests/, tools/, or .github/.

Two problems follow.

1. The translations have drifted

Commits touching README.md since each pinned source:

Translation Pinned source README.md commits behind
README.ru.md 903d102 (2026-08-14) 6
README.zh-CN.md 907be50 (2026-09-01) 3

(the RU gap includes #125, #179, #202, #204, #209)

2. The drift is not additive — it now contradicts the English README

#125 changed the generated-skill destination policy: the default is one copy in the cross-agent root, and Claude Code gets a verified symlink (read-back, and the report says so when the link is absent).

  • README.md:76 (current): "...creates a full skill in the user-level cross-agent skills directory ~/.agents/skills/<slug>/ ... When run under Claude Code, the converter also attempts a verified symlink at ~/.claude/skills/<slug>/ — Claude Code sees the skill when the link read-back confirms it; otherwise the run report says so."
  • README.zh-CN.md:80 and README.ru.md:80 (current): still enumerate ~/.claude/skills/<slug>/ as a plain per-host destination, i.e. the pre-#125 model.

So a Chinese- or Russian-speaking reader is told Claude Code gets its own real directory, which is exactly the behaviour #125 replaced (the skipped-realdir / copy / absent outcomes exist because that is not guaranteed). That is a correctness problem in user-facing docs, not just staleness.

Separately, README.ru.md has 9 of its 12 section headings still in English (The Discovery Loop Tax, How it works, Usage, Install, Copyright & fair use, Sponsors, License, Star History, FAQ). To be accurate: the RU body prose is translated (100% in most sections) — it is the headings that were never localized. README.zh-CN.md has only the emoji-stripped FAQ heading in English.

Proposed change

  1. Re-sync both translation paragraphs with the current English destination policy (one copy at ~/.agents/skills/, Claude Code = attempted verified symlink with read-back; OpenClaw/Hermes qualifiers included), and bump the translation-meta pins.
  2. Localize the 9 English headings in README.ru.md.
  3. Add the missing guard so this cannot rot silently again.

How would we know it's better?

The guard can be fully mechanical, needs no network and no new dependency, and fits the existing docs-contract test style (tests/test_scope_selection_contract.py, tests/test_repo_hygiene.py):

  • parse <!-- translation-meta: source=README.md@<sha> ... --> from each translated README;
  • assert <sha> is a real commit and an ancestor of HEAD;
  • count git log --oneline <sha>..HEAD -- README.md and fail when it exceeds a declared threshold (a hard-coded budget, or simply "0" once the re-sync lands), with the failing output naming the drift count;
  • assert the destination sentence actually matches EN (e.g. that the translated file also states Claude Code is a symlink/read-back rather than a plain directory).

Binary before/after:

  • Before: the test fails, naming README.ru.md as 6 README.md commits behind and flagging the missing symlink wording.
  • After the re-sync: it passes; the next time someone changes the destination policy without touching the translations, CI fails and points at the pin instead of the drift being discovered months later.

Alternatives considered

  • Drop the translation-meta convention: it is useful; it just needs the enforcement #147 implied.
  • Generate the translations: out of scope, and the repo keeps English canonical by design.
  • Skip the drift guard and only re-sync: fixes today's gap and leaves the same silent-rot mechanism for the next policy change.

Source: virgiliojr94/book-to-skill