Skip to content

docs(i18n): retranslate the changed AUTHZ_GUIDE and REMOTE-MODE sections in all 66 locales - #17098

Merged
diegosouzapw merged 1 commit into
release/v3.8.52from
docs/i18n-authz-remote-mode-mirrors-20261018
Oct 18, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.52from
docs/i18n-authz-remote-mode-mirrors-20261018

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Summary

The docs translation pipeline's backend is down (cloud.omniroute.online answers Vercel
DEPLOYMENT_NOT_FOUND), so the 66 locale mirrors of docs/architecture/AUTHZ_GUIDE.md and
docs/guides/REMOTE-MODE.md kept the previous open-mode text: they still said that disabling
login lets anyone mint an admin CLI token and issue sync tokens (changed in #17053 and #17064).

The sections that changed since the last translation run were translated outside the pipeline and
then written by scripts/i18n/run-translation.mjs itself, pointed at a local stand-in for
/chat/completions that answers each chunk with its translation:

Doc Sections retranslated
AUTHZ_GUIDE.md Two Auth Modes · Route Classes · Auth Required Toggle (3/13)
REMOTE-MODE.md Managing tokens · Configuring a coding CLI from the remote catalog (2/12)

Section reuse, the chunk validator (validateTranslatedChunk: fences, table rows, meta-prose),
glossary normalization, the mirror header and language bar, Prettier and .i18n-state.json are
therefore the pipeline's own output. Every unchanged section is byte-identical to before (checked
for all 132 mirrors).

One manual touch: the pipeline formats mirrors with Prettier's defaults instead of the repo
config (printWidth 80 vs 100), which re-wrapped one reused code line in the pl AUTHZ mirror.
It is formatted back at the repo width and that entry's target_hash re-recorded. Worth a
separate change: resolve the repo config in formatMarkdown().

Validation

  • Extra checks on all 462 translated chunks before they were written: inline code spans and link
    targets preserved, code blocks unchanged outside #/// comments, heading levels, trailing
    ---, no English prose line left verbatim, and the literals the locale test requires.
  • tests/unit/docs/remote-token-privilege-locales.test.ts now passes (it was part of the
    inherited red set).
  • The 24 test files that read .i18n-state.json or docs/i18n: 266/269. The 3 failures
    (resilience mirror provenance…, the two source-delta mirror records…,
    vision bridge key scope…) are inherited and fail with the same hashes on the base CI; they
    concern other docs.
  • check-translation-drift: both guides are gone from the drifted list. check-docs-sync PASS,
    Prettier clean, and every state entry's source_hash/target_hash matches the files.

Refs #15306

⚠️ base-red inherited: #15306

…ons in all 66 locales

The translation backend the docs pipeline calls is down (Vercel DEPLOYMENT_NOT_FOUND), so the
mirrors of both guides still said that disabling login lets anyone mint an admin CLI token and
issue sync tokens. The five sections that changed since the last run (Two Auth Modes, Route
Classes and Auth Required Toggle; Managing tokens and Configuring a coding CLI) were translated
outside the pipeline and then written by scripts/i18n/run-translation.mjs itself against a local
stand-in for /chat/completions that answers with those translations. Section reuse, the chunk
validator, glossary normalization, the mirror header and .i18n-state.json are therefore the
pipeline's own output; the unchanged sections are byte-identical to before.

The pipeline formats mirrors without the repo's Prettier config (printWidth 80 instead of 100),
which re-wrapped one reused code line in the pl AUTHZ mirror; it is formatted back at the repo
width and that entry's target_hash re-recorded to match.

tests/unit/docs/remote-token-privilege-locales.test.ts now passes (part of the inherited red
set).

Refs #15306
@github-actions

Copy link
Copy Markdown
Contributor

CI Coverage Report

  • Coverage job: skipped
  • PR test policy: success

Coverage artifact was not available for this run.

@diegosouzapw
diegosouzapw merged commit 20d9b04 into release/v3.8.52 Oct 18, 2026
36 of 51 checks passed
@diegosouzapw
diegosouzapw deleted the docs/i18n-authz-remote-mode-mirrors-20261018 branch October 18, 2026 22:53
diegosouzapw added a commit that referenced this pull request Oct 19, 2026
Conflicts (265 files) resolved as follows:
- AUTHZ_GUIDE + REMOTE-MODE mirrors (132): taken from the release tip. #17098
  retranslated them against the current English sources (8c41f49e / 6602f4c9),
  which the tip state records; the PR side was translated from the older base
  sources and carried no section the tip did not also retranslate. The tip
  REMOTE-MODE also removes the duplicated privilege paragraph (64 locales).
- README mirrors (58 conflicted + 8 auto-merged): PR translation kept, plus the
  tip's mechanical migration-count bump (204 -> 208) in the Database row.
- QUALITY_GATES mirrors (66): PR translation kept, plus the tip's #15682 update
  of the `check:cycles` row (fail-closed since #15281).
- .i18n-state.json: three-way merge per entry; AUTHZ_GUIDE and REMOTE-MODE
  entries from the tip; README and QUALITY_GATES keep the PR's source and
  section hashes with target_hash re-hashed to the merged mirror bytes. No
  other entry conflicted.
diegosouzapw added a commit that referenced this pull request Oct 19, 2026
Merged via /merge-batch (2026-10-19). Evidence (owner asked to verify and merge, 2026-10-19): scope is only docs/i18n mirrors of 20 sources x 66 locales + .i18n-state.json (no protected surfaces, catalogs or baselines). Merged with the base three times; 265 conflicts resolved (AUTHZ_GUIDE/REMOTE-MODE from #17098 taken from the base, README and QUALITY_GATES keep this translation plus the base one-line deltas, state merged entry by entry with every mirror matching its recorded hash). Content audit of 1,320 mirrors: no leaked think tags, duplicated paragraphs or broken headers; code-span drift vs current sources 118 (base 272); the one regression found (Hausa SEARCH_TOOLS_STUDIO Tabs heading) fixed on top. check:docs-all, i18n ratio/keys, openapi/api-docs gates, typecheck core + open-sse green; 266/269 mirror tests, the 3 reds fail identically on the base. Known follow-ups (not certified as fresh in the state): GUARDRAILS after #17111, RESILIENCE_GUIDE after #12743, ENVIRONMENT hold.
diegosouzapw added a commit that referenced this pull request Oct 19, 2026
…17129)

formatMarkdown() in scripts/i18n/run-translation.mjs formatted each translated mirror with
Prettier's defaults (80 columns) instead of the options the prettier --write CLI resolves for the
same path (prettier.config.mjs + .editorconfig, printWidth 100). lint-staged then re-wrapped code
fences at commit time, and the committed mirror no longer matched the target_hash recorded in
.i18n-state.json. It now resolves the config for the target path with
prettier.resolveConfig(fileName, { editorconfig: true }) and formats with it.

Refs #17098
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.

1 participant