Repository navigation
packaging: the launcher tile learns twelve languages, and the gate learns to see it (LG #41) - #62
Conversation
…arns to see it (#41) LG App Self Checklist #41 (Change Language) had no markable state: the checklist recorded the metadata half as "the cheap half and it is not done". It is done. `pkg/resources/<lang>/appinfo.json` ships a translated `appDescription` for de es fr it ja ko nl pl pt ru sv tr, staged into the .ipk by `ci/mkipk.py::stage_resources` and gated on both of `ci/check-package.py`'s paths. Four things here are not obvious. THE CITATION IS THE POINT, and it is thin on purpose. LG documents `resources/<locale>/appinfo.json` under `develop/*` — web-runtime documentation, which this repo treats as context and never as proof of native behaviour — and webOS OSE documents the same tree on the page that also documents `type: native`. Neither says "native apps too". So `docs/distribution.md` §12 records the mechanism, its tier, the inference, and the device recipe that would settle it, and says plainly that #41 is implemented and gated rather than verified. Marking it Pass on this alone is the marking error LG's own preamble calls a rejection ground. THE FLAVOUR SUFFIX IS REAPPLIED WHEN STAGING. A localized descriptor overrides the top-level one, so a debug package carrying the bare tracked title would rename its tile from `PlxNative debug` back to `PlxNative` the moment the set was switched to Korean — restoring the two-identical-tiles ambiguity `ci/flavor.py` exists to prevent, in the one locale nobody developing this app is looking at. The suffix is read off `flavor.appinfo_for`'s output, not re-derived, and raises if that rule ever stops being a suffix. THE PAYLOAD GATE HAD TO BE A NEW ASSERTION, NOT A WIDENED ONE. `check(expected <= names, …)` is a subset check over BASENAMES, so `resources/ko/appinfo.json` contributes `appinfo.json` — which the top-level descriptor already supplies. A resources tree that never reached the archive would have passed every other assertion in the file. It is asserted by path now, and the tracked/staged locale sets are compared for EQUALITY so a locale added and never shipped fails as loudly as a stale one left behind. All seven defects these exist for were planted and confirmed to fail: a third property, a BOM, a non-locale directory name, a translated title, a translation that dropped the mark, an unstaged locale, and the tree deleted. AND `mkipk.py`'s id guard MOVED, because staging defeated it. The "staged applications/<dir> name is a fourth witness of the id" check ran at the end of main(), and `stage_resources` mkdirs `applications/<id>/resources/…` — creating the very directory the guard reads. Against a wiped stage the new code wrote a 1.8 KB .ipk of packageinfo plus twelve locale files, no binary, no top-level appinfo, exit 0. It runs before anything is written now. Not closed, and said so in the doc and the PR: the UI is English-only (~203 literals across 45 files, and Label/Button take a non-owning *const c_char), and the app is locale-blind — it never reads the television's language and never sends X-Plex-Language, so PMS answers in the server's language whatever the set says. `docs/lg-self-checklist.md` §5 still says "it is not done" and is another lane's file; the PR carries the replacement paragraph. No television was touched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G
…nswer `LOCALE_RE` accepts `ko-KR`, `zh-Hans-CN` and `es-419` but rejects `mn-Cy-MN` — which is the example string LG's App Localization page prints. It is not a near miss to paper over: ISO 15924 script subtags are four letters (`Cyrl`), so `Cy` resolves for no BCP-47 reader. Whoever widens the locale set will meet this, will have copied the example verbatim, and should reach for `mn-Cyrl-MN` rather than a looser regex. §12.2 now says so beside the shapes that do pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G
`doc-claim-auditor` on the previous commit. `ci/mkipk.py`'s module doc opened "This module also SYNTHESISES the two descriptors an ipk must carry ... both derived from `pkg/appinfo.json` so the version stays single-sourced", and the resources bullet was added underneath it without touching the sentence that counts them. Three ways wrong at once: it is three now; the third is NOT derived from `pkg/appinfo.json` but transformed from the tracked `pkg/resources/` tree; and "must carry" is false of it — a missing `packageinfo.json` registers nothing, while missing localized descriptors register an app perfectly well and cost it its language. The "so the version stays single-sourced" clause is the one that must not be read as covering the third: those files carry no version at all, by a gate. Also retired the echoed "ci/flavor.py, the one descriptor transform" in both files this change touches. `stage_resources` applies the flavour title rule a second time, to the localized descriptors — reading the suffix off `flavor.appinfo_for`'s output rather than re-deriving it, so the DECISION is still in one place while the application is now in two. The import comments say that instead. `ci/flavor.py`'s own headline still claims uniqueness; it is another lane's file and the PR carries the replacement line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G
|
…arns to see it (LG #41) (#62) * packaging: the launcher tile learns twelve languages, and the gate learns to see it (#41) LG App Self Checklist #41 (Change Language) had no markable state: the checklist recorded the metadata half as "the cheap half and it is not done". It is done. `pkg/resources/<lang>/appinfo.json` ships a translated `appDescription` for de es fr it ja ko nl pl pt ru sv tr, staged into the .ipk by `ci/mkipk.py::stage_resources` and gated on both of `ci/check-package.py`'s paths. Four things here are not obvious. THE CITATION IS THE POINT, and it is thin on purpose. LG documents `resources/<locale>/appinfo.json` under `develop/*` — web-runtime documentation, which this repo treats as context and never as proof of native behaviour — and webOS OSE documents the same tree on the page that also documents `type: native`. Neither says "native apps too". So `docs/distribution.md` §12 records the mechanism, its tier, the inference, and the device recipe that would settle it, and says plainly that #41 is implemented and gated rather than verified. Marking it Pass on this alone is the marking error LG's own preamble calls a rejection ground. THE FLAVOUR SUFFIX IS REAPPLIED WHEN STAGING. A localized descriptor overrides the top-level one, so a debug package carrying the bare tracked title would rename its tile from `PlxNative debug` back to `PlxNative` the moment the set was switched to Korean — restoring the two-identical-tiles ambiguity `ci/flavor.py` exists to prevent, in the one locale nobody developing this app is looking at. The suffix is read off `flavor.appinfo_for`'s output, not re-derived, and raises if that rule ever stops being a suffix. THE PAYLOAD GATE HAD TO BE A NEW ASSERTION, NOT A WIDENED ONE. `check(expected <= names, …)` is a subset check over BASENAMES, so `resources/ko/appinfo.json` contributes `appinfo.json` — which the top-level descriptor already supplies. A resources tree that never reached the archive would have passed every other assertion in the file. It is asserted by path now, and the tracked/staged locale sets are compared for EQUALITY so a locale added and never shipped fails as loudly as a stale one left behind. All seven defects these exist for were planted and confirmed to fail: a third property, a BOM, a non-locale directory name, a translated title, a translation that dropped the mark, an unstaged locale, and the tree deleted. AND `mkipk.py`'s id guard MOVED, because staging defeated it. The "staged applications/<dir> name is a fourth witness of the id" check ran at the end of main(), and `stage_resources` mkdirs `applications/<id>/resources/…` — creating the very directory the guard reads. Against a wiped stage the new code wrote a 1.8 KB .ipk of packageinfo plus twelve locale files, no binary, no top-level appinfo, exit 0. It runs before anything is written now. Not closed, and said so in the doc and the PR: the UI is English-only (~203 literals across 45 files, and Label/Button take a non-owning *const c_char), and the app is locale-blind — it never reads the television's language and never sends X-Plex-Language, so PMS answers in the server's language whatever the set says. `docs/lg-self-checklist.md` §5 still says "it is not done" and is another lane's file; the PR carries the replacement paragraph. No television was touched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: LG's own locale example fails our gate, and that is the right answer `LOCALE_RE` accepts `ko-KR`, `zh-Hans-CN` and `es-419` but rejects `mn-Cy-MN` — which is the example string LG's App Localization page prints. It is not a near miss to paper over: ISO 15924 script subtags are four letters (`Cyrl`), so `Cy` resolves for no BCP-47 reader. Whoever widens the locale set will meet this, will have copied the example verbatim, and should reach for `mn-Cyrl-MN` rather than a looser regex. §12.2 now says so beside the shapes that do pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: the module doc counted two descriptors and there are three `doc-claim-auditor` on the previous commit. `ci/mkipk.py`'s module doc opened "This module also SYNTHESISES the two descriptors an ipk must carry ... both derived from `pkg/appinfo.json` so the version stays single-sourced", and the resources bullet was added underneath it without touching the sentence that counts them. Three ways wrong at once: it is three now; the third is NOT derived from `pkg/appinfo.json` but transformed from the tracked `pkg/resources/` tree; and "must carry" is false of it — a missing `packageinfo.json` registers nothing, while missing localized descriptors register an app perfectly well and cost it its language. The "so the version stays single-sourced" clause is the one that must not be read as covering the third: those files carry no version at all, by a gate. Also retired the echoed "ci/flavor.py, the one descriptor transform" in both files this change touches. `stage_resources` applies the flavour title rule a second time, to the localized descriptors — reading the suffix off `flavor.appinfo_for`'s output rather than re-deriving it, so the DECISION is still in one place while the application is now in two. The import comments say that instead. `ci/flavor.py`'s own headline still claims uniqueness; it is another lane's file and the PR carries the replacement line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…arns to see it (LG #41) (#62) * packaging: the launcher tile learns twelve languages, and the gate learns to see it (#41) LG App Self Checklist #41 (Change Language) had no markable state: the checklist recorded the metadata half as "the cheap half and it is not done". It is done. `pkg/resources/<lang>/appinfo.json` ships a translated `appDescription` for de es fr it ja ko nl pl pt ru sv tr, staged into the .ipk by `ci/mkipk.py::stage_resources` and gated on both of `ci/check-package.py`'s paths. Four things here are not obvious. THE CITATION IS THE POINT, and it is thin on purpose. LG documents `resources/<locale>/appinfo.json` under `develop/*` — web-runtime documentation, which this repo treats as context and never as proof of native behaviour — and webOS OSE documents the same tree on the page that also documents `type: native`. Neither says "native apps too". So `docs/distribution.md` §12 records the mechanism, its tier, the inference, and the device recipe that would settle it, and says plainly that #41 is implemented and gated rather than verified. Marking it Pass on this alone is the marking error LG's own preamble calls a rejection ground. THE FLAVOUR SUFFIX IS REAPPLIED WHEN STAGING. A localized descriptor overrides the top-level one, so a debug package carrying the bare tracked title would rename its tile from `PlxNative debug` back to `PlxNative` the moment the set was switched to Korean — restoring the two-identical-tiles ambiguity `ci/flavor.py` exists to prevent, in the one locale nobody developing this app is looking at. The suffix is read off `flavor.appinfo_for`'s output, not re-derived, and raises if that rule ever stops being a suffix. THE PAYLOAD GATE HAD TO BE A NEW ASSERTION, NOT A WIDENED ONE. `check(expected <= names, …)` is a subset check over BASENAMES, so `resources/ko/appinfo.json` contributes `appinfo.json` — which the top-level descriptor already supplies. A resources tree that never reached the archive would have passed every other assertion in the file. It is asserted by path now, and the tracked/staged locale sets are compared for EQUALITY so a locale added and never shipped fails as loudly as a stale one left behind. All seven defects these exist for were planted and confirmed to fail: a third property, a BOM, a non-locale directory name, a translated title, a translation that dropped the mark, an unstaged locale, and the tree deleted. AND `mkipk.py`'s id guard MOVED, because staging defeated it. The "staged applications/<dir> name is a fourth witness of the id" check ran at the end of main(), and `stage_resources` mkdirs `applications/<id>/resources/…` — creating the very directory the guard reads. Against a wiped stage the new code wrote a 1.8 KB .ipk of packageinfo plus twelve locale files, no binary, no top-level appinfo, exit 0. It runs before anything is written now. Not closed, and said so in the doc and the PR: the UI is English-only (~203 literals across 45 files, and Label/Button take a non-owning *const c_char), and the app is locale-blind — it never reads the television's language and never sends X-Plex-Language, so PMS answers in the server's language whatever the set says. `docs/lg-self-checklist.md` §5 still says "it is not done" and is another lane's file; the PR carries the replacement paragraph. No television was touched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: LG's own locale example fails our gate, and that is the right answer `LOCALE_RE` accepts `ko-KR`, `zh-Hans-CN` and `es-419` but rejects `mn-Cy-MN` — which is the example string LG's App Localization page prints. It is not a near miss to paper over: ISO 15924 script subtags are four letters (`Cyrl`), so `Cy` resolves for no BCP-47 reader. Whoever widens the locale set will meet this, will have copied the example verbatim, and should reach for `mn-Cyrl-MN` rather than a looser regex. §12.2 now says so beside the shapes that do pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: the module doc counted two descriptors and there are three `doc-claim-auditor` on the previous commit. `ci/mkipk.py`'s module doc opened "This module also SYNTHESISES the two descriptors an ipk must carry ... both derived from `pkg/appinfo.json` so the version stays single-sourced", and the resources bullet was added underneath it without touching the sentence that counts them. Three ways wrong at once: it is three now; the third is NOT derived from `pkg/appinfo.json` but transformed from the tracked `pkg/resources/` tree; and "must carry" is false of it — a missing `packageinfo.json` registers nothing, while missing localized descriptors register an app perfectly well and cost it its language. The "so the version stays single-sourced" clause is the one that must not be read as covering the third: those files carry no version at all, by a gate. Also retired the echoed "ci/flavor.py, the one descriptor transform" in both files this change touches. `stage_resources` applies the flavour title rule a second time, to the localized descriptors — reading the suffix off `flavor.appinfo_for`'s output rather than re-deriving it, so the DECISION is still in one place while the application is now in two. The import comments say that instead. `ci/flavor.py`'s own headline still claims uniqueness; it is another lane's file and the PR carries the replacement line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…arns to see it (LG #41) (#62) * packaging: the launcher tile learns twelve languages, and the gate learns to see it (#41) LG App Self Checklist #41 (Change Language) had no markable state: the checklist recorded the metadata half as "the cheap half and it is not done". It is done. `pkg/resources/<lang>/appinfo.json` ships a translated `appDescription` for de es fr it ja ko nl pl pt ru sv tr, staged into the .ipk by `ci/mkipk.py::stage_resources` and gated on both of `ci/check-package.py`'s paths. Four things here are not obvious. THE CITATION IS THE POINT, and it is thin on purpose. LG documents `resources/<locale>/appinfo.json` under `develop/*` — web-runtime documentation, which this repo treats as context and never as proof of native behaviour — and webOS OSE documents the same tree on the page that also documents `type: native`. Neither says "native apps too". So `docs/distribution.md` §12 records the mechanism, its tier, the inference, and the device recipe that would settle it, and says plainly that #41 is implemented and gated rather than verified. Marking it Pass on this alone is the marking error LG's own preamble calls a rejection ground. THE FLAVOUR SUFFIX IS REAPPLIED WHEN STAGING. A localized descriptor overrides the top-level one, so a debug package carrying the bare tracked title would rename its tile from `PlxNative debug` back to `PlxNative` the moment the set was switched to Korean — restoring the two-identical-tiles ambiguity `ci/flavor.py` exists to prevent, in the one locale nobody developing this app is looking at. The suffix is read off `flavor.appinfo_for`'s output, not re-derived, and raises if that rule ever stops being a suffix. THE PAYLOAD GATE HAD TO BE A NEW ASSERTION, NOT A WIDENED ONE. `check(expected <= names, …)` is a subset check over BASENAMES, so `resources/ko/appinfo.json` contributes `appinfo.json` — which the top-level descriptor already supplies. A resources tree that never reached the archive would have passed every other assertion in the file. It is asserted by path now, and the tracked/staged locale sets are compared for EQUALITY so a locale added and never shipped fails as loudly as a stale one left behind. All seven defects these exist for were planted and confirmed to fail: a third property, a BOM, a non-locale directory name, a translated title, a translation that dropped the mark, an unstaged locale, and the tree deleted. AND `mkipk.py`'s id guard MOVED, because staging defeated it. The "staged applications/<dir> name is a fourth witness of the id" check ran at the end of main(), and `stage_resources` mkdirs `applications/<id>/resources/…` — creating the very directory the guard reads. Against a wiped stage the new code wrote a 1.8 KB .ipk of packageinfo plus twelve locale files, no binary, no top-level appinfo, exit 0. It runs before anything is written now. Not closed, and said so in the doc and the PR: the UI is English-only (~203 literals across 45 files, and Label/Button take a non-owning *const c_char), and the app is locale-blind — it never reads the television's language and never sends X-Plex-Language, so PMS answers in the server's language whatever the set says. `docs/lg-self-checklist.md` §5 still says "it is not done" and is another lane's file; the PR carries the replacement paragraph. No television was touched. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: LG's own locale example fails our gate, and that is the right answer `LOCALE_RE` accepts `ko-KR`, `zh-Hans-CN` and `es-419` but rejects `mn-Cy-MN` — which is the example string LG's App Localization page prints. It is not a near miss to paper over: ISO 15924 script subtags are four letters (`Cyrl`), so `Cy` resolves for no BCP-47 reader. Whoever widens the locale set will meet this, will have copied the example verbatim, and should reach for `mn-Cyrl-MN` rather than a looser regex. §12.2 now says so beside the shapes that do pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: the module doc counted two descriptors and there are three `doc-claim-auditor` on the previous commit. `ci/mkipk.py`'s module doc opened "This module also SYNTHESISES the two descriptors an ipk must carry ... both derived from `pkg/appinfo.json` so the version stays single-sourced", and the resources bullet was added underneath it without touching the sentence that counts them. Three ways wrong at once: it is three now; the third is NOT derived from `pkg/appinfo.json` but transformed from the tracked `pkg/resources/` tree; and "must carry" is false of it — a missing `packageinfo.json` registers nothing, while missing localized descriptors register an app perfectly well and cost it its language. The "so the version stays single-sourced" clause is the one that must not be read as covering the third: those files carry no version at all, by a gate. Also retired the echoed "ci/flavor.py, the one descriptor transform" in both files this change touches. `stage_resources` applies the flavour title rule a second time, to the localized descriptors — reading the suffix off `flavor.appinfo_for`'s output rather than re-deriving it, so the DECISION is still in one place while the application is now in two. The import comments say that instead. `ci/flavor.py`'s own headline still claims uniqueness; it is another lane's file and the PR carries the replacement line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Closes the metadata half of LG App Self Checklist #41 (Change Language): the app now ships
resources/<locale>/appinfo.jsonfor twelve languages, staged into the.ipk, gated on bothpackaging paths, and documented with its sources and its unverified edges.
docs/distribution.md§12 is the full account. This body is the short version plus the threethings a reviewer should not have to dig for: what LG actually documents, what this change does
not close, and the two claims in the plan that turned out not to match the tree.
What LG documents, and its tier
Two sources, neither of which is a television.
LG, App Localization —
webostv.developer.lge.com/develop/guides/app-localization. This isdevelop/*, so by this repo's own rule it is web-runtime documentation: context, never proof fora native app. It states:
webOS OSE, appinfo.json —
webosose.org/docs/guides/development/configuration-files/appinfo-json/.The open-source platform's reference for the same descriptor read by the same SAM — not LG's web
runtime guide, and still not this firmware:
The honest reading, stated as such in the doc. The mechanism is documented; the native
applicability is inferred, not sourced. The strongest thing that can be said for it is that the
OSE page documenting the localization tree is the same page documenting
type: nativeas a validapplication type, and that what reads the descriptor is SAM — which registers and displays an app
rather than running its code, and which neither page ties to the web runtime. That is a good
argument, not a measurement. #41's metadata half is therefore implemented and gated, not
verified, and
docs/lg-self-checklist.mdshould say exactly that (see the note at the bottom).What ships
pkg/resources/{de,es,fr,it,ja,ko,nl,pl,pt,ru,sv,tr}/appinfo.json, each exactly two properties,UTF-8 without BOM:
{ "title": "PlxNative", "appDescription": "비공식 네이티브 Plex 클라이언트 - Plex와 제휴 관계가 없습니다" }Three deliberate decisions, each with a gate behind it:
PlxNativeis the brandTRADEMARKS.mdreserves.pkg/appinfo.jsonand put the version in afile
ci/bump-version.pyand the release tag guard have never heard of —ci/flavor.py's"PATCH, DO NOT DUPLICATE" reached from the other side, and also what LG asks for.
against the English rather than rewritten per market, and the mark stays Latin
Plexin everylocale (asserted — a transliteration would both weaken the disclaimer and misuse the mark).
Chinese is deliberately absent:
zhalone says neither Hans nor Hant, and guessing a script fora legal sentence is worse than shipping English.
Packaging
ci/mkipk.py::stage_resourcesstages the tree, not the Makefile —APP_FILESis a flatcp … $(STAGE)/that cannot express a two-level tree, andmake deployhas no use for these(a developer install's tile is not what QA looks at). This joins
packageinfo.jsonand the realInstalled-Sizeas something the ipk carries and a scp dev loop never needed. Consequence: thelocalized descriptors are in the
.ipkonly, so the device recipe below is an install.The flavour suffix is reapplied when staging — the non-obvious half. A localized descriptor
carrying the bare tracked title would override
PlxNative debugback toPlxNativethe moment theset was switched to Korean, restoring exactly the two-identical-tiles ambiguity
ci/flavor.pyexists to prevent, in the locale nobody developing this app is looking at. The suffix is read off
flavor.appinfo_for's output rather than re-derived, so one place still decides what aflavoured title looks like; it raises rather than guesses if that rule stops being a suffix.
Reproducibility re-measured, not assumed. Two
mkipk.pyruns over one stage give one sha256,checked for both flavours (
stage_resourceswrites throughjson.dumps;add_treenormalisesidentity, mode, mtime and order as before).
Gates, proven to fail
Seven defects were planted and
ci/check-package.pycaught every one: a third property, a BOM, anon-locale directory name, a translated title, a translation that dropped the mark, a tracked
locale that never reached the archive, and the tree deleted outright.
Three shapes worth calling out:
release.yml'spreparetakes before a tag exists;shipped fails as loudly as a stale one left behind (the ipk-vs-deploy divergence that shipped a
fontless package for months, caught on the way in);
Two claims in the plan that do not match the tree
Reported per the fleet rule rather than worked around silently.
ci/check-package.pypins the payload file set, so a newresources/tree fails the checkuntil it is widened" — FALSE. The assertion is
check(expected <= names, …)wherenames = {Path(m.name).name for m in members}— a subset check over basenames. Aresources/ko/appinfo.jsoncontributes the basenameappinfo.json, which the top-leveldescriptor already supplies, so the tree neither fails the check nor is seen by it. Nothing had
to be widened; something had to be added, and it is a full-path assertion, because the
existing one is structurally blind here — a resources tree that never reached the archive would
have passed every other assertion in the file.
appinfo == json.loads((ROOT / "pkg/appinfo.json").read_text()), a parsed-dict equality, andonly under
IS_STABLE. Nothing about it constrains aresources/subtree, in either direction.Neither changes the design; both changed which gate had to be written, which is why they are here.
Two things the review pass caught, both fixed here
mkipk.py's id guard was being defeated by the new staging. The "stagedapplications/<dir>name is a fourth witness of the id" check ran at the end of
main(), andstage_resourcesmkdirs
applications/<id>/resources/…— so it created the very directory the guard reads.Reproduced against a wiped stage: the new code wrote a 1808-byte
.ipkcontainingpackageinfo.jsonand twelve locale files, no binary, no top-levelappinfo.json, andexited 0, where the pre-change script exited 1. The guard now runs before anything is
written, which is strictly better than where it was (a bad stage no longer produces an ipk at
all) and is commented as load-bearing ordering rather than tidiness.
called
appinfo.jsonin the payload, so a real hit would have named a file nobody couldidentify. It labels by path within the payload now.
Explicitly NOT closed
Full UI i18n is out of scope. ~203 display literals across 45 files, and
Label/Buttontakea non-owning
*const c_char— an ownedStringneeds a lifetime story a metadata change has nobusiness inventing. The CJK fallback face that landed separately is a precondition for a
translated UI, not the thing itself: glyph coverage means Korean renders, not that anything is
written in Korean.
The app is locale-blind, and that is checkable rather than asserted:
grep -rn "setlocale\|LC_ALL\|localeInfo\|X-Plex-Language" rust-modules/src srcfinds nothing. Itnever reads the television's language and never sends
X-Plex-Language, so PMS returns metadata inthe server's default language whatever the set is set to. That header is the cheapest remaining
i18n win by a wide margin and is a
plex/change, not a packaging one — out of this unit's files.Device recipe that would settle #41
No television was touched by this lane, so none of this is verified. §12.4 has the full list; the
first item is the one that decides whether anything was closed:
make FLAVOR=debug install— an install, not a deploy: the descriptors are packaged, notscp'd. Then switch the set to 한국어 in Settings → General → Language → Menu Language and look
at the launcher tile and the app-list entry. The tile should still read
PlxNative debug(branduntranslated, flavour suffix survived); the description, wherever this firmware surfaces one,
should be Korean.
SAM may cache
appinfo.jsonat boot.resources/ko/is still not picked up, tryresources/ko/KR/andresources/ko-KR/beforeconcluding the mechanism does not apply to native apps. The two sources disagree about the
folder shape and LG's example tree is an image.
appDescriptionat all for a sideloaded app, orwhether it is Content-Store-listing metadata only. If the latter, this closes cargo test --lib aborts ~1 run in 5 with a UTF-8 / char unsafe-precondition violation #41's listing half
and nothing visible on the set — still the right answer for a submission, but a different claim.
One file this unit does not own
docs/lg-self-checklist.md§5 still reads "That is the cheap half and it is not done." — whichthis change makes stale. It is not in this unit's file set (several lanes are closing checklist
rows into it), so it is left alone. Suggested replacement for whoever owns it:
Verification
python3 ci/check-package.py— green on the tracked path and, against a synthetic stage, on thepackaged path (both flavours). (No
make ipk: it cross-compiles FFmpeg, and this lane's rulesforbid it. The staged path was exercised by hand-staging a payload and running
ci/mkipk.pydirectly — which is also what made the id-guard defect above reproducible.)
mkipk.pyruns over one stage → identical sha256, per flavour.make check— 1062 host tests, lint,ci/flavor.py --selftest,tests/test_harness.py: allgreen.
tests/run.py.