mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 20:58:37 +07:00
[GH-ISSUE #838] Deleting a translated Memory Nag string passes every check, so lost translations ship silently #440
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#440
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/838
Originally assigned to: @SpicyMarinara on GitHub.
Nothing in the repository notices when a translated Memory Nag interface string is deleted. A pull request can remove one German string, or every German string, and all of the localization checks still pass, so translated text can disappear from the shipped package with a green run.
How to reproduce (try it yourself)
60c8ef0eand confirmgit status --shortprints nothing.packages/memory-nag/src/engine/packages/client/src/features/memory-nag/locales/de.jsonand delete the entry for"memoryNag.error.interface". Any key that also exists inen.jsonworks.node scripts/validate-package-locales.mjsnode scripts/validate-package-locale-keys.mjsnode scripts/validate-catalog.mjsde.jsonwith just its_metablock, deleting all 71 German strings, and run the same three commands again.git checkout -- packages/memory-nag/src/engine/packages/client/src/features/memory-nag/localesand confirmgit status --shortis empty again.What you'll see: every command exits 0 in both cases.
validate-package-locales.mjsprintsMemory Nag UI locales valid: 12 catalogs.whether German has 71 strings, 70 strings, or none at all. These are the same commands CI runs at.github/workflows/pull-request-checks.ymllines 61 to 69, so a pull request that drops shipped translations goes green. At runtime the missing strings fall back to English, so the loss is invisible in the interface too: it reads as mixed language copy, never as raw key names.What should happen: removing a string that a translated catalog already shipped should fail the localization check and name the locale and the key, the same way a new untranslatable key would.
Where it is
At Agents
60c8ef0e, inscripts/validate-package-locales.mjs, the Memory Nag loop:if (keys.some((key) => !memoryNagEnglishKeys.includes(key))) {checks only that the translation carries no key English lacks.keys, so a key that is absent is never visited.console.log(\Memory Nag UI locales valid: ${memoryNagUiLocaleFiles.length} catalogs.`)` reports a file count and nothing else.The Noodle lane at lines 196 to 211 has the same one way shape, so it has the same blind spot, but its summary at line 248 does print per locale counts (
en=1286, de=13, ko=912, pl=13).Runtime fallback:
packages/memory-nag/src/engine/packages/client/src/features/memory-nag/localization.tsx:65,interpolate(catalog[key] ?? catalogs.en[key] ?? key, values).What's happening
The Memory Nag check is a subset test: it asks whether the translation's keys are all present in English. Deleting a key from a translation makes that set smaller, and a smaller set is still a subset, so the test cannot fail. An empty catalog is the smallest subset of all, which is why wiping a whole language is also silent. Only a deletion from the canonical
en.jsonis still caught, because that leaves the eleven translated catalogs holding keys English no longer has.The built
packages/memory-nag/client.jsembeds these strings and the manifest hashes cover the bundle rather than the locale sources, so a source drop is invisible before a rebuild and ships as English fallback after one.Suggested fix
Commit a baseline of per locale key counts for the package owned interface catalogs, and fail the check when a count falls below its baseline. Raising or lowering a baseline then has to be a deliberate edit in the same pull request that changes the strings. Have the Memory Nag summary line print the counts the way the Noodle line already does (
Memory Nag UI locales valid: en=78, de=71, ...) so a reviewer can see the shape at a glance, and apply the same guard to the Noodle lane, which has the identical hole. Full parity between English and every translation is deliberately not the ask here: issue #513 allows community catalogs to stay partial while translations are reviewed, and the Noodle lane already ships very partial catalogs on purpose. The goal is only that what has already shipped cannot vanish quietly.Context
The Memory Nag check was parity based until PR #776 (merged, commit
cac88152), which added the scan range feature and relaxed those two lines to a one way subset test so the untranslated new keys would not break CI. The original feature request behind these catalogs is #513. Engine PR #6137 is Engine only and does not touch this area:git log 49a9c10c..HEAD -- scripts/validate-package-locales.mjs packages/memory-nag CONTRIBUTING.mdin this repository is empty, and the relaxed predicate is byte identical at60c8ef0e.CONTRIBUTING.mdlines 172 to 174 do not settle the question either way; the completeness sentence there is about package metadata catalogs, and its "Long-Term Memory" example is a different package. No open issue or pull request covers this.Found by an AI-assisted sweep and re-verified against Agents
60c8ef0eon 2026-09-13. Please verify before fixing.@SpicyMarinara commented on GitHub (Sep 13, 2026):
SpicyMarinara/Codex is verifying and addressing this in the active release sweep #836. The check will preserve partial community translations while detecting removal of translations that have already shipped.