Skip to content

Translation checks preserve tracked path labels - #846

Merged
zlareb1 merged 1 commit into
mainfrom
fix/i18n-protected-path-labels
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/i18n-protected-path-labels

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix

Changelog entry

Translation checks preserve source-attested repository paths in link labels, including directory components.

Why

A technical label such as tracker/overview.md is required to keep its spelling. Protecting only its basename leaves tracker/ classified as untranslated prose and rejects a valid reply. The same basename-only comparison can miss a removed or changed directory component.

Scope and risk

The source-spelling helper protects the longest exact path suffix visible in the English label when its link resolves to that tracked repository file. Ordinary qualifiers remain translatable, external or untracked targets supply no protection, and changed filename or directory components still fail. The conventional README label remains supported. No translated or English documentation files change.

Compatibility, rollout and rollback

  • Wire and settings: none. Existing source-context and validation interfaces remain unchanged.
  • Operator steps: none. This change makes no provider call or paid-runner configuration change.
  • Rollback: reverting restores basename-only validation.

Tests

  • Twenty-nine small focused checks pass, including path suffixes, changed directories and filenames, ordinary qualifiers, source-scoped names, tracked-target requirements, standalone headings and existing filename cases.
  • Six cases fail before the fix; the remaining twenty-three pass.
  • One authentic cached complete request passes all mechanical invariants in its captured full-page context after the fix; its existing retry that dropped the filename still fails. This is not whole-page semantic approval or paid admission.
  • Ruff, format, prose and git diff --check pass.
  • Full unit, integration and coverage checks run in PR CI and must pass before merge. No heavy local suite ran.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Codex diagnosed the source-protection mismatch, changed the helper and wrote focused regressions.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required full checks pass in CI before merge.
  • Protected spelling remains tied to the actual tracked source target.
  • Ordinary translated prose, existing validation and source ownership remain enforced.
  • No migration, SDK, plugin, frontend or runtime interface changes.
  • No generated translation, provider, prompt, model or budget changes.
  • Public text contains no private evidence or deployment details.
  • Commits are signed off.

@zlareb1
zlareb1 merged commit beb3588 into main Nov 18, 2026
42 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 18, 2026
6 tasks done
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