Repository navigation
ui: the cast row opens a person page, in the Apple TV shape - #10
Conversation
Follow-up: independent correctness review, findings fixed (4647085)A separate reviewer swept the diff for navigation bugs, async invariants, panic risk, HIGH — the return trail lost a level, or pointed at the wrong actor.
The HIGH — the person request was a latch. HIGH — aliasing UB in MED — the pointer hit-test re-measured the whole flow per tile. Every LOW — two per-frame heap allocations on the draw path, removed: shelf headings are LOW — a doc that overclaimed. Came back cleanNo reachable panic in the new code (every item access is Still not run on the TV — |
Cast headshots on the detail page focused and animated and did nothing on OK,
because the page they should open was unbuildable: `plex::Tag` parsed three of
the six attributes `Role[]` carries and dropped the two — `id` and `tagKey` —
that ARE the `personId`. Adding them makes `GET /library/people/{id}/media`
reachable, which returns everything a person appears in across every library
section in one request.
The screen follows Apple TV, not Plex: a centred circular portrait, the name,
and plain `Movies` and `Shows` shelves of the same poster cards every other
screen draws. Plex's own person page is a field list (Born + age, social
handles, a count badge, "Known For"); that is the feature checklist, and most
of it is not on the wire anyway — verified live, `/library/people/{id}` returns
only the tag record, with no summary and no birth date, so the header is
composed to read as finished at name + portrait rather than as a field that
failed to load. The bio block and its inline MORE exist and are drawn when
non-empty; nothing fills them until someone adds the plex.tv call.
Two rows are grouped by each row's own `type`, never by the container's
`viewGroup` — that field read "movie" on a response whose only row was a show.
The store is the browse.rs/metadata.rs shape: one worker, a mailbox with a
generation counter, a single-flight flag and a retry backoff that a `reset`
clears together, so a landing for the actor you already left cannot repopulate
the one you are looking at, and a failed fetch backs off instead of blanking a
populated page.
Rather than fork detail.rs's two-pass shelf loop, it moves to `card_row::strip`
— which is where the culling discipline belongs, since that loop is the reason
only visible tiles ever call `resolve_tex`.
Tests: +9 host (67)
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two were real bugs, two were latent traps, two were cost.
**The return trail lost a level, or pointed at the wrong actor.** `opened_from_person`
was set but never cleared where its sibling `opened_from_library` is — not in
`home_activate` ("every Home-originated activation clears the return-trail HERE"),
not in `open_library_card`, and not when routing INTO a person page. So a person
page reached from item A, followed by an unrelated navigation, left the flag set:
BACK from some later detail page either skipped two levels to Home (the store had
since closed) or opened an actor page reached from a completely different item.
Cleared in all three places now, which is where the flag's own doc comment always
said it should be.
**The request flag was a latch.** `detail::on_ok`'s cast arm raises it, and it was
polled next to only two of the four `on_ok` call sites — so a path that didn't poll
(`plxnative-detailplay` with focus on the cast row) left it set, and it then fired
on an unrelated OK several screens later. There is now exactly ONE consumer, drained
every frame whatever the route, so it cannot latch; `leave` drops any un-consumed
request with the return rk. Host-tested.
**Aliasing UB in `update`.** It held a `&'static mut Scene` across `clamp_focus()`,
which mints a second one from the same static. `detail.rs::update` carries a comment
about exactly this ("compute them before borrowing v"); the pump/clamp pair moves
above the borrow.
**The pointer hit-test re-measured the whole flow per tile.** Every `tile_rect` went
through `child_top` → `header_h` → the text cap band, which is a linear scan of the
glyph cache — ~48 of those per `SDL_MOUSEMOTION`, on a remote that emits motion
freely. It is O(visible) now, like `library.rs::cell_at`: the per-shelf row y is
computed once outside the loop and the column comes from arithmetic, not a search.
**Two per-frame allocations on the draw path**: the shelf headings are `c"Movies"` /
`c"Shows"` literals rather than a `CString::new` per shelf per frame, and the name is
NUL-terminated once at `open` instead of being cloned and re-terminated every frame.
**And one doc that overclaimed.** `FETCHING` bounds spawns per pump; it is not a hard
one-worker interlock (a supersede, or a stale landing releasing a newer fetch's claim,
can briefly overlap two). Neither can wedge — `land` is monotone and `pump` discards
stale generations — but the comment now says what is actually true instead of
implying an invariant a reader might rely on.
Tests: +1 host (68)
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…space
Two adaptations to what landed underneath this branch.
Unit 5 folded crew into the same shelf, so `credit(i)` now runs every actor and
THEN every crew member. The person-page OK arm was written against a shelf of
actors only, and indexing `cast[i]` at a crew tile silently opens the wrong actor
— or nobody — while the tile under the focus ring shows a director. It resolves
through `credit(i)`, and `crew_credits` carries the id/guid through, so a
director's tile opens the director: crew rows are people with a `tagKey` like any
other, and `/library/people/{id}/media` answers for them the same way. The
combined index space is now host-tested from the OK arm itself.
Unit 5 also added `Art::Person`, which is what the portrait should have been: the
hand-rolled `thumb.is_empty()` branch here was a fork of it, and a worse one —
it glyphed on an unresolved texture as well as an absent one, so it would have
flashed 'no photo' on every portrait for the length of its fetch.
Tests: +1 host (133)
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
4647085 to
528cd47
Compare
Rebased onto
|
…itten to be graded `doc-claim-auditor` over the new UX scenario and the four corrections. Six findings in files this unit owns; all six were confirmed against the code before being fixed. **The chevron is not a control.** The hero action-row table listed `›` under "what OK does". `home.rs:44-50` says the opposite in as many words — `HERO_NBTN` is 2, "the pager chevron beside them is an INDICATOR, not a third button: it is drawn, it is never focused and it has no hit rect". The hero pages by RIGHT past the info disc or LEFT off the pill (`home_hero_key`), plus an 8 s auto-flip. This is the row a QA reader would have tried first and failed, in the one document written for QA to read. **"No control anywhere can take focus and do nothing" had two counterexamples.** OK on Home's own tab pill standing on Home is a documented no-op (`app.rs:2126`), and the person page's header band holds focus but only acts when there is a biography long enough to expand (`person.rs:626`). Narrowed to what is true and still answers #10, with both stops named. **The synthesized tail can never raise a Skip pill.** The document said it "stands in" where the server has no credits detection, and two lines later that Skip Credits "remains for the last episode of a show". `synthesized_tail_marker` returns None unless `has_next` (`metadata.rs:674`) and every Credits marker with a successor resolves to Up Next (`player_hud.rs:401`), so the tail raises Up Next 100% of the time. Stated with its gate, plus the bench consequence: on a Pass-less server Skip Credits is unreachable. **The show/season sentence contradicted the one above it** — my own previous commit's doing. The open-resolve-then-Play arm is INSIDE `want_play` (`app.rs:2152`), so it is the deck rule, not the general one; elsewhere a show card is a bare `nav_open`. Folded into the deck paragraph. **`docs/pms-api.md` said "the five in bold" over six bolded rows**, and let the table be read as what this app sends. Dropped the count and split the two facts: `playback_identity` emits nine fields (`client.rs:152-162`) and none of the four capability/locale ones exist anywhere in the tree. The table is the target; the paragraph is the state. **And two smaller ones**: `assets/` was said to hold 24 SVG icons against a measured 28 — the number is decoration inside a five-way negative proof and is the only thing in that bullet that can rot, so it is gone; and the detail page's watched disc wears the face of the write it would perform (`detail.rs:1087`), so it is a ✓ on an unwatched item and a − on a watched one, not a fixed ✓. Two further findings are in files this unit does not own and are listed in the PR: CLAUDE.md:985 and docs/lg-self-checklist.md:17, both dangling references this branch created. make check: 976 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G
…had gone false (#55) * docs: the UX scenario LG's checklist defers to, and four claims that had gone false LG's App Self Checklist does not describe four of its own items — #2, #10, #42 and #45 defer to the UX scenario document, and #45 says so in as many words ("refer to UX scenario for movement details"). That makes the scenario the artefact QA grades the transport against, so `docs/ux-scenario.md` is written as a compliance document rather than a tour: every screen, how it is reached, every control on it, what each remote key does on each screen, the BACK trail, and the exit alert. Two of its sections carry the weight. **§6 — playback control.** There is no on-screen `<< || >>` transport row and there will not be one; transport is remote-driven and the HUD shows STATE, a mark beside the elapsed clock and nothing at all while playing steadily. That is stated as settled rather than apologised for, with the grounds: on-screen controls are Recommended rather than mandatory, the idiom already ships approved on these sets, and the half that must really work — the FF/REW/play/pause/stop keys — is bound and was settled 2026-08-22 against LG's own evdev table and 336 captured key lines. The section documents the transport as it IS: three focus bands, the 4.5 s linger, the 10 s preview-then-commit seek with its 450 ms tap accumulation, the six state marks and their precedence, and the control row's three mutually exclusive occupants (discs / Skip pill / Up Next). **§7 — sound.** There is no UI audio at all, and the item is therefore N/A on its own precondition. Checked five ways rather than asserted: SDL is initialised `SDL_INIT_VIDEO` alone, no SDL audio call exists, SDL_mixer is neither present nor linked, there are no audio assets, and no webOS sound service is called. Eleven figures, taken from the simulator at the authored 1920x1080 with the dev counter compiled out. The player HUD is the existing device capture, because the Starfish/ACB seam does not exist off-device — §9 lists the figures that still need a television and why the who's-watching picker is deliberately not among them (its roster is real people's names). One figure is edited and says so: the Search scope line named a real server, and is replaced by the app's own string for a server that reports no name. And four corrections, each verified against the tree first: - `docs/distribution.md` §2 no longer says native Store eligibility is unsettled. It rested on LG's `appinfo.json` reference ("Only `web` is allowed currently") — a `develop/*` WEB-RUNTIME page, which is not authority over a native SDL app. Seller Lounge parses this project's ipk as File Type: Native and asks for the native SDK version, chipset and resolution. What is open is the QA outcome, not the permission. The summary table's "No." row went with it. - `docs/pms-api.md` — the `X-Plex-*` list was the minimum PMS needs to attribute a session, read for years as the identity set. Recorded the full set the official webOS client sends, including `X-Plex-Platform-Version` (Plex gates on FIRMWARE, which `X-Plex-Platform` cannot express) and `X-Plex-Features`, whose exact effect this repo has not measured and which is graded as such. - `docs/shared-servers.md` — it called the `plex.direct` middle label "the certificate UUID, not the machineIdentifier" while `plex-openapi.json` calls the same label "The unique identifier of this particular PMS". Both are 32 hex characters, so no sample settles it. Recorded as a disagreement rather than resolved, with the rule that survives either answer: use the advertised `uri` verbatim, never construct the hostname. - `docs/search.md` — deleted the status blockquote. Its own staleness test had fired: it claimed `ui/search/`'s `draw` bodies are `{}` (mod.rs is ~2200 lines with `draw()` at :832), that `search::pump` lands nothing, and that `Client::search` has zero callers (`search.rs:797` calls it). `rust-modules/src/img.rs` is the only code touched, and only its comments: three said `requiredMemory: 60` against `pkg/appinfo.json`'s 160. make check: 976 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: two rendering/consistency fixes in the UX scenario `<Name>` in the PIN-pad description was raw in prose, so a markdown renderer swallows it as an HTML tag and the sentence reads "Enter 's PIN". Moved inside backticks. And the provenance note said "two figures are edited" in the same breath as naming one. There is one: the Search scope line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: state Home's play-on-OK rule exactly, not approximately The scenario said "OK on a Continue Watching card resumes, OK anywhere else opens the detail page". Right about the deck, incomplete about the rest: `home_activate` plays on `hub_is_continue(row) || mm.kind == 3`, so an EPISODE card plays from any shelf. And a show/season card does not simply open its page — it opens it, waits for the load to land on the expected item, and only then fires Play, precisely so a failed fetch cannot play whatever page was open before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: six claims the auditor refuted, five of them in the document written to be graded `doc-claim-auditor` over the new UX scenario and the four corrections. Six findings in files this unit owns; all six were confirmed against the code before being fixed. **The chevron is not a control.** The hero action-row table listed `›` under "what OK does". `home.rs:44-50` says the opposite in as many words — `HERO_NBTN` is 2, "the pager chevron beside them is an INDICATOR, not a third button: it is drawn, it is never focused and it has no hit rect". The hero pages by RIGHT past the info disc or LEFT off the pill (`home_hero_key`), plus an 8 s auto-flip. This is the row a QA reader would have tried first and failed, in the one document written for QA to read. **"No control anywhere can take focus and do nothing" had two counterexamples.** OK on Home's own tab pill standing on Home is a documented no-op (`app.rs:2126`), and the person page's header band holds focus but only acts when there is a biography long enough to expand (`person.rs:626`). Narrowed to what is true and still answers #10, with both stops named. **The synthesized tail can never raise a Skip pill.** The document said it "stands in" where the server has no credits detection, and two lines later that Skip Credits "remains for the last episode of a show". `synthesized_tail_marker` returns None unless `has_next` (`metadata.rs:674`) and every Credits marker with a successor resolves to Up Next (`player_hud.rs:401`), so the tail raises Up Next 100% of the time. Stated with its gate, plus the bench consequence: on a Pass-less server Skip Credits is unreachable. **The show/season sentence contradicted the one above it** — my own previous commit's doing. The open-resolve-then-Play arm is INSIDE `want_play` (`app.rs:2152`), so it is the deck rule, not the general one; elsewhere a show card is a bare `nav_open`. Folded into the deck paragraph. **`docs/pms-api.md` said "the five in bold" over six bolded rows**, and let the table be read as what this app sends. Dropped the count and split the two facts: `playback_identity` emits nine fields (`client.rs:152-162`) and none of the four capability/locale ones exist anywhere in the tree. The table is the target; the paragraph is the state. **And two smaller ones**: `assets/` was said to hold 24 SVG icons against a measured 28 — the number is decoration inside a five-way negative proof and is the only thing in that bullet that can rot, so it is gone; and the detail page's watched disc wears the face of the write it would perform (`detail.rs:1087`), so it is a ✓ on an unwatched item and a − on a watched one, not a fixed ✓. Two further findings are in files this unit does not own and are listed in the PR: CLAUDE.md:985 and docs/lg-self-checklist.md:17, both dangling references this branch created. make check: 976 passed. 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]>
…had gone false (#55) * docs: the UX scenario LG's checklist defers to, and four claims that had gone false LG's App Self Checklist does not describe four of its own items — #2, #10, #42 and #45 defer to the UX scenario document, and #45 says so in as many words ("refer to UX scenario for movement details"). That makes the scenario the artefact QA grades the transport against, so `docs/ux-scenario.md` is written as a compliance document rather than a tour: every screen, how it is reached, every control on it, what each remote key does on each screen, the BACK trail, and the exit alert. Two of its sections carry the weight. **§6 — playback control.** There is no on-screen `<< || >>` transport row and there will not be one; transport is remote-driven and the HUD shows STATE, a mark beside the elapsed clock and nothing at all while playing steadily. That is stated as settled rather than apologised for, with the grounds: on-screen controls are Recommended rather than mandatory, the idiom already ships approved on these sets, and the half that must really work — the FF/REW/play/pause/stop keys — is bound and was settled 2026-08-22 against LG's own evdev table and 336 captured key lines. The section documents the transport as it IS: three focus bands, the 4.5 s linger, the 10 s preview-then-commit seek with its 450 ms tap accumulation, the six state marks and their precedence, and the control row's three mutually exclusive occupants (discs / Skip pill / Up Next). **§7 — sound.** There is no UI audio at all, and the item is therefore N/A on its own precondition. Checked five ways rather than asserted: SDL is initialised `SDL_INIT_VIDEO` alone, no SDL audio call exists, SDL_mixer is neither present nor linked, there are no audio assets, and no webOS sound service is called. Eleven figures, taken from the simulator at the authored 1920x1080 with the dev counter compiled out. The player HUD is the existing device capture, because the Starfish/ACB seam does not exist off-device — §9 lists the figures that still need a television and why the who's-watching picker is deliberately not among them (its roster is real people's names). One figure is edited and says so: the Search scope line named a real server, and is replaced by the app's own string for a server that reports no name. And four corrections, each verified against the tree first: - `docs/distribution.md` §2 no longer says native Store eligibility is unsettled. It rested on LG's `appinfo.json` reference ("Only `web` is allowed currently") — a `develop/*` WEB-RUNTIME page, which is not authority over a native SDL app. Seller Lounge parses this project's ipk as File Type: Native and asks for the native SDK version, chipset and resolution. What is open is the QA outcome, not the permission. The summary table's "No." row went with it. - `docs/pms-api.md` — the `X-Plex-*` list was the minimum PMS needs to attribute a session, read for years as the identity set. Recorded the full set the official webOS client sends, including `X-Plex-Platform-Version` (Plex gates on FIRMWARE, which `X-Plex-Platform` cannot express) and `X-Plex-Features`, whose exact effect this repo has not measured and which is graded as such. - `docs/shared-servers.md` — it called the `plex.direct` middle label "the certificate UUID, not the machineIdentifier" while `plex-openapi.json` calls the same label "The unique identifier of this particular PMS". Both are 32 hex characters, so no sample settles it. Recorded as a disagreement rather than resolved, with the rule that survives either answer: use the advertised `uri` verbatim, never construct the hostname. - `docs/search.md` — deleted the status blockquote. Its own staleness test had fired: it claimed `ui/search/`'s `draw` bodies are `{}` (mod.rs is ~2200 lines with `draw()` at :832), that `search::pump` lands nothing, and that `Client::search` has zero callers (`search.rs:797` calls it). `rust-modules/src/img.rs` is the only code touched, and only its comments: three said `requiredMemory: 60` against `pkg/appinfo.json`'s 160. make check: 976 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: two rendering/consistency fixes in the UX scenario `<Name>` in the PIN-pad description was raw in prose, so a markdown renderer swallows it as an HTML tag and the sentence reads "Enter 's PIN". Moved inside backticks. And the provenance note said "two figures are edited" in the same breath as naming one. There is one: the Search scope line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: state Home's play-on-OK rule exactly, not approximately The scenario said "OK on a Continue Watching card resumes, OK anywhere else opens the detail page". Right about the deck, incomplete about the rest: `home_activate` plays on `hub_is_continue(row) || mm.kind == 3`, so an EPISODE card plays from any shelf. And a show/season card does not simply open its page — it opens it, waits for the load to land on the expected item, and only then fires Play, precisely so a failed fetch cannot play whatever page was open before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: six claims the auditor refuted, five of them in the document written to be graded `doc-claim-auditor` over the new UX scenario and the four corrections. Six findings in files this unit owns; all six were confirmed against the code before being fixed. **The chevron is not a control.** The hero action-row table listed `›` under "what OK does". `home.rs:44-50` says the opposite in as many words — `HERO_NBTN` is 2, "the pager chevron beside them is an INDICATOR, not a third button: it is drawn, it is never focused and it has no hit rect". The hero pages by RIGHT past the info disc or LEFT off the pill (`home_hero_key`), plus an 8 s auto-flip. This is the row a QA reader would have tried first and failed, in the one document written for QA to read. **"No control anywhere can take focus and do nothing" had two counterexamples.** OK on Home's own tab pill standing on Home is a documented no-op (`app.rs:2126`), and the person page's header band holds focus but only acts when there is a biography long enough to expand (`person.rs:626`). Narrowed to what is true and still answers #10, with both stops named. **The synthesized tail can never raise a Skip pill.** The document said it "stands in" where the server has no credits detection, and two lines later that Skip Credits "remains for the last episode of a show". `synthesized_tail_marker` returns None unless `has_next` (`metadata.rs:674`) and every Credits marker with a successor resolves to Up Next (`player_hud.rs:401`), so the tail raises Up Next 100% of the time. Stated with its gate, plus the bench consequence: on a Pass-less server Skip Credits is unreachable. **The show/season sentence contradicted the one above it** — my own previous commit's doing. The open-resolve-then-Play arm is INSIDE `want_play` (`app.rs:2152`), so it is the deck rule, not the general one; elsewhere a show card is a bare `nav_open`. Folded into the deck paragraph. **`docs/pms-api.md` said "the five in bold" over six bolded rows**, and let the table be read as what this app sends. Dropped the count and split the two facts: `playback_identity` emits nine fields (`client.rs:152-162`) and none of the four capability/locale ones exist anywhere in the tree. The table is the target; the paragraph is the state. **And two smaller ones**: `assets/` was said to hold 24 SVG icons against a measured 28 — the number is decoration inside a five-way negative proof and is the only thing in that bullet that can rot, so it is gone; and the detail page's watched disc wears the face of the write it would perform (`detail.rs:1087`), so it is a ✓ on an unwatched item and a − on a watched one, not a fixed ✓. Two further findings are in files this unit does not own and are listed in the PR: CLAUDE.md:985 and docs/lg-self-checklist.md:17, both dangling references this branch created. make check: 976 passed. 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]>
…had gone false (#55) * docs: the UX scenario LG's checklist defers to, and four claims that had gone false LG's App Self Checklist does not describe four of its own items — #2, #10, #42 and #45 defer to the UX scenario document, and #45 says so in as many words ("refer to UX scenario for movement details"). That makes the scenario the artefact QA grades the transport against, so `docs/ux-scenario.md` is written as a compliance document rather than a tour: every screen, how it is reached, every control on it, what each remote key does on each screen, the BACK trail, and the exit alert. Two of its sections carry the weight. **§6 — playback control.** There is no on-screen `<< || >>` transport row and there will not be one; transport is remote-driven and the HUD shows STATE, a mark beside the elapsed clock and nothing at all while playing steadily. That is stated as settled rather than apologised for, with the grounds: on-screen controls are Recommended rather than mandatory, the idiom already ships approved on these sets, and the half that must really work — the FF/REW/play/pause/stop keys — is bound and was settled 2026-08-22 against LG's own evdev table and 336 captured key lines. The section documents the transport as it IS: three focus bands, the 4.5 s linger, the 10 s preview-then-commit seek with its 450 ms tap accumulation, the six state marks and their precedence, and the control row's three mutually exclusive occupants (discs / Skip pill / Up Next). **§7 — sound.** There is no UI audio at all, and the item is therefore N/A on its own precondition. Checked five ways rather than asserted: SDL is initialised `SDL_INIT_VIDEO` alone, no SDL audio call exists, SDL_mixer is neither present nor linked, there are no audio assets, and no webOS sound service is called. Eleven figures, taken from the simulator at the authored 1920x1080 with the dev counter compiled out. The player HUD is the existing device capture, because the Starfish/ACB seam does not exist off-device — §9 lists the figures that still need a television and why the who's-watching picker is deliberately not among them (its roster is real people's names). One figure is edited and says so: the Search scope line named a real server, and is replaced by the app's own string for a server that reports no name. And four corrections, each verified against the tree first: - `docs/distribution.md` §2 no longer says native Store eligibility is unsettled. It rested on LG's `appinfo.json` reference ("Only `web` is allowed currently") — a `develop/*` WEB-RUNTIME page, which is not authority over a native SDL app. Seller Lounge parses this project's ipk as File Type: Native and asks for the native SDK version, chipset and resolution. What is open is the QA outcome, not the permission. The summary table's "No." row went with it. - `docs/pms-api.md` — the `X-Plex-*` list was the minimum PMS needs to attribute a session, read for years as the identity set. Recorded the full set the official webOS client sends, including `X-Plex-Platform-Version` (Plex gates on FIRMWARE, which `X-Plex-Platform` cannot express) and `X-Plex-Features`, whose exact effect this repo has not measured and which is graded as such. - `docs/shared-servers.md` — it called the `plex.direct` middle label "the certificate UUID, not the machineIdentifier" while `plex-openapi.json` calls the same label "The unique identifier of this particular PMS". Both are 32 hex characters, so no sample settles it. Recorded as a disagreement rather than resolved, with the rule that survives either answer: use the advertised `uri` verbatim, never construct the hostname. - `docs/search.md` — deleted the status blockquote. Its own staleness test had fired: it claimed `ui/search/`'s `draw` bodies are `{}` (mod.rs is ~2200 lines with `draw()` at :832), that `search::pump` lands nothing, and that `Client::search` has zero callers (`search.rs:797` calls it). `rust-modules/src/img.rs` is the only code touched, and only its comments: three said `requiredMemory: 60` against `pkg/appinfo.json`'s 160. make check: 976 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: two rendering/consistency fixes in the UX scenario `<Name>` in the PIN-pad description was raw in prose, so a markdown renderer swallows it as an HTML tag and the sentence reads "Enter 's PIN". Moved inside backticks. And the provenance note said "two figures are edited" in the same breath as naming one. There is one: the Search scope line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: state Home's play-on-OK rule exactly, not approximately The scenario said "OK on a Continue Watching card resumes, OK anywhere else opens the detail page". Right about the deck, incomplete about the rest: `home_activate` plays on `hub_is_continue(row) || mm.kind == 3`, so an EPISODE card plays from any shelf. And a show/season card does not simply open its page — it opens it, waits for the load to land on the expected item, and only then fires Play, precisely so a failed fetch cannot play whatever page was open before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: six claims the auditor refuted, five of them in the document written to be graded `doc-claim-auditor` over the new UX scenario and the four corrections. Six findings in files this unit owns; all six were confirmed against the code before being fixed. **The chevron is not a control.** The hero action-row table listed `›` under "what OK does". `home.rs:44-50` says the opposite in as many words — `HERO_NBTN` is 2, "the pager chevron beside them is an INDICATOR, not a third button: it is drawn, it is never focused and it has no hit rect". The hero pages by RIGHT past the info disc or LEFT off the pill (`home_hero_key`), plus an 8 s auto-flip. This is the row a QA reader would have tried first and failed, in the one document written for QA to read. **"No control anywhere can take focus and do nothing" had two counterexamples.** OK on Home's own tab pill standing on Home is a documented no-op (`app.rs:2126`), and the person page's header band holds focus but only acts when there is a biography long enough to expand (`person.rs:626`). Narrowed to what is true and still answers #10, with both stops named. **The synthesized tail can never raise a Skip pill.** The document said it "stands in" where the server has no credits detection, and two lines later that Skip Credits "remains for the last episode of a show". `synthesized_tail_marker` returns None unless `has_next` (`metadata.rs:674`) and every Credits marker with a successor resolves to Up Next (`player_hud.rs:401`), so the tail raises Up Next 100% of the time. Stated with its gate, plus the bench consequence: on a Pass-less server Skip Credits is unreachable. **The show/season sentence contradicted the one above it** — my own previous commit's doing. The open-resolve-then-Play arm is INSIDE `want_play` (`app.rs:2152`), so it is the deck rule, not the general one; elsewhere a show card is a bare `nav_open`. Folded into the deck paragraph. **`docs/pms-api.md` said "the five in bold" over six bolded rows**, and let the table be read as what this app sends. Dropped the count and split the two facts: `playback_identity` emits nine fields (`client.rs:152-162`) and none of the four capability/locale ones exist anywhere in the tree. The table is the target; the paragraph is the state. **And two smaller ones**: `assets/` was said to hold 24 SVG icons against a measured 28 — the number is decoration inside a five-way negative proof and is the only thing in that bullet that can rot, so it is gone; and the detail page's watched disc wears the face of the write it would perform (`detail.rs:1087`), so it is a ✓ on an unwatched item and a − on a watched one, not a fixed ✓. Two further findings are in files this unit does not own and are listed in the PR: CLAUDE.md:985 and docs/lg-self-checklist.md:17, both dangling references this branch created. make check: 976 passed. 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]>
…had gone false (#55) * docs: the UX scenario LG's checklist defers to, and four claims that had gone false LG's App Self Checklist does not describe four of its own items — #2, #10, #42 and #45 defer to the UX scenario document, and #45 says so in as many words ("refer to UX scenario for movement details"). That makes the scenario the artefact QA grades the transport against, so `docs/ux-scenario.md` is written as a compliance document rather than a tour: every screen, how it is reached, every control on it, what each remote key does on each screen, the BACK trail, and the exit alert. Two of its sections carry the weight. **§6 — playback control.** There is no on-screen `<< || >>` transport row and there will not be one; transport is remote-driven and the HUD shows STATE, a mark beside the elapsed clock and nothing at all while playing steadily. That is stated as settled rather than apologised for, with the grounds: on-screen controls are Recommended rather than mandatory, the idiom already ships approved on these sets, and the half that must really work — the FF/REW/play/pause/stop keys — is bound and was settled 2026-08-22 against LG's own evdev table and 336 captured key lines. The section documents the transport as it IS: three focus bands, the 4.5 s linger, the 10 s preview-then-commit seek with its 450 ms tap accumulation, the six state marks and their precedence, and the control row's three mutually exclusive occupants (discs / Skip pill / Up Next). **§7 — sound.** There is no UI audio at all, and the item is therefore N/A on its own precondition. Checked five ways rather than asserted: SDL is initialised `SDL_INIT_VIDEO` alone, no SDL audio call exists, SDL_mixer is neither present nor linked, there are no audio assets, and no webOS sound service is called. Eleven figures, taken from the simulator at the authored 1920x1080 with the dev counter compiled out. The player HUD is the existing device capture, because the Starfish/ACB seam does not exist off-device — §9 lists the figures that still need a television and why the who's-watching picker is deliberately not among them (its roster is real people's names). One figure is edited and says so: the Search scope line named a real server, and is replaced by the app's own string for a server that reports no name. And four corrections, each verified against the tree first: - `docs/distribution.md` §2 no longer says native Store eligibility is unsettled. It rested on LG's `appinfo.json` reference ("Only `web` is allowed currently") — a `develop/*` WEB-RUNTIME page, which is not authority over a native SDL app. Seller Lounge parses this project's ipk as File Type: Native and asks for the native SDK version, chipset and resolution. What is open is the QA outcome, not the permission. The summary table's "No." row went with it. - `docs/pms-api.md` — the `X-Plex-*` list was the minimum PMS needs to attribute a session, read for years as the identity set. Recorded the full set the official webOS client sends, including `X-Plex-Platform-Version` (Plex gates on FIRMWARE, which `X-Plex-Platform` cannot express) and `X-Plex-Features`, whose exact effect this repo has not measured and which is graded as such. - `docs/shared-servers.md` — it called the `plex.direct` middle label "the certificate UUID, not the machineIdentifier" while `plex-openapi.json` calls the same label "The unique identifier of this particular PMS". Both are 32 hex characters, so no sample settles it. Recorded as a disagreement rather than resolved, with the rule that survives either answer: use the advertised `uri` verbatim, never construct the hostname. - `docs/search.md` — deleted the status blockquote. Its own staleness test had fired: it claimed `ui/search/`'s `draw` bodies are `{}` (mod.rs is ~2200 lines with `draw()` at :832), that `search::pump` lands nothing, and that `Client::search` has zero callers (`search.rs:797` calls it). `rust-modules/src/img.rs` is the only code touched, and only its comments: three said `requiredMemory: 60` against `pkg/appinfo.json`'s 160. make check: 976 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: two rendering/consistency fixes in the UX scenario `<Name>` in the PIN-pad description was raw in prose, so a markdown renderer swallows it as an HTML tag and the sentence reads "Enter 's PIN". Moved inside backticks. And the provenance note said "two figures are edited" in the same breath as naming one. There is one: the Search scope line. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: state Home's play-on-OK rule exactly, not approximately The scenario said "OK on a Continue Watching card resumes, OK anywhere else opens the detail page". Right about the deck, incomplete about the rest: `home_activate` plays on `hub_is_continue(row) || mm.kind == 3`, so an EPISODE card plays from any shelf. And a show/season card does not simply open its page — it opens it, waits for the load to land on the expected item, and only then fires Play, precisely so a failed fetch cannot play whatever page was open before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G * docs: six claims the auditor refuted, five of them in the document written to be graded `doc-claim-auditor` over the new UX scenario and the four corrections. Six findings in files this unit owns; all six were confirmed against the code before being fixed. **The chevron is not a control.** The hero action-row table listed `›` under "what OK does". `home.rs:44-50` says the opposite in as many words — `HERO_NBTN` is 2, "the pager chevron beside them is an INDICATOR, not a third button: it is drawn, it is never focused and it has no hit rect". The hero pages by RIGHT past the info disc or LEFT off the pill (`home_hero_key`), plus an 8 s auto-flip. This is the row a QA reader would have tried first and failed, in the one document written for QA to read. **"No control anywhere can take focus and do nothing" had two counterexamples.** OK on Home's own tab pill standing on Home is a documented no-op (`app.rs:2126`), and the person page's header band holds focus but only acts when there is a biography long enough to expand (`person.rs:626`). Narrowed to what is true and still answers #10, with both stops named. **The synthesized tail can never raise a Skip pill.** The document said it "stands in" where the server has no credits detection, and two lines later that Skip Credits "remains for the last episode of a show". `synthesized_tail_marker` returns None unless `has_next` (`metadata.rs:674`) and every Credits marker with a successor resolves to Up Next (`player_hud.rs:401`), so the tail raises Up Next 100% of the time. Stated with its gate, plus the bench consequence: on a Pass-less server Skip Credits is unreachable. **The show/season sentence contradicted the one above it** — my own previous commit's doing. The open-resolve-then-Play arm is INSIDE `want_play` (`app.rs:2152`), so it is the deck rule, not the general one; elsewhere a show card is a bare `nav_open`. Folded into the deck paragraph. **`docs/pms-api.md` said "the five in bold" over six bolded rows**, and let the table be read as what this app sends. Dropped the count and split the two facts: `playback_identity` emits nine fields (`client.rs:152-162`) and none of the four capability/locale ones exist anywhere in the tree. The table is the target; the paragraph is the state. **And two smaller ones**: `assets/` was said to hold 24 SVG icons against a measured 28 — the number is decoration inside a five-way negative proof and is the only thing in that bullet that can rot, so it is gone; and the detail page's watched disc wears the face of the write it would perform (`detail.rs:1087`), so it is a ✓ on an unwatched item and a − on a watched one, not a fixed ✓. Two further findings are in files this unit does not own and are listed in the PR: CLAUDE.md:985 and docs/lg-self-checklist.md:17, both dangling references this branch created. make check: 976 passed. 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]>
…loor, no secret echo) (#557) CodeQL py/* alerts #4-8, #10, #11, #16-20. serve_fixtures resolves and checks containment before isfile; every dev SSLContext sets minimum_version TLS 1.2; gen-release-audit parses the DSN host instead of a substring test; the census arm regex no longer backtracks; plxnative-lab start stops echoing the session secret (pkg/lab.json, 0600, carries it); remote-dpad echoes only a password it generated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Unit 17 of the parity-gap work (
docs/parity-gaps.md§5b). Cast headshots on the detail page focused and animated, and OK did nothing. They now open a person page.Why it was unbuildable before
plex::Tagparsed three of the six attributesRole[]/Director[]/Writer[]carry and dropped the two that ARE thepersonId—idandtagKey. Adding all four missing fields makesGET /library/people/{personId}/mediareachable, which returns everything a person appears in across every library section in one request.The design: Apple TV, not Plex
Plex's own person page is a field list (left portrait, "Actor, Producer, Director", Born + age, Facebook/Instagram handles, a Filmography button, a count-badged "Movies & Shows in Media Libraries", "Known For", "Featured Videos"). That is the feature checklist. The screen built here is the tvOS shape:
/photo/:/transcoderound trip)size::HEROMORE(TextView::trailing)MoviesandShowsshelves of ordinary poster cards —RowStyle::HOME, the same tiles, springs, unwatched corner angle and amber resume bar every other shelf drawsNo full-screen sheets. Only shelves that have content get a heading.
API notes (all verified live against the PMS on 2026-07-29; now in
docs/pms-api.md§2c)personIdaccepts either the numericidor thetagKeyguid — both verified against the same record./mediarows by each row's owntype, never by the container'sviewGroup. Verified: person 6059's response readsviewGroup:"movie"over fivemovierows and oneshow. There is a host test pinning this.GET /library/people/{id}is not called at all. It returns only the tag record — nosummary, no birth date — and everything in it (tag,thumb) is already on theRole[]row the cast circle was drawn from. So the page opens on the header it was handed and only its shelves are fetched: one request per page.countis in the spec but this server does not emit it onRole[]— the DTO treats 0 as "unknown", never "none".metadata-static.plex.tvURL ridesimage_transcode_pathasurl=and the server does the TLS. No new image route.How the no-bio header degrades
PMS has no biography to give, so the bio-less header is the normal case, not a fallback, and the layout is composed so it reads as finished rather than broken:
space::XL, then the name. With no bio the block simply ends after the name and the first shelf follows at the standard block gap. There is no empty box, no "Biography" label with nothing under it, and no placeholder line.header_h()measures what is present, and the shelves below reflow off it. The day someone adds the plex.tv call, the bio slots in under the name and everything below moves down — no layout change needed.draw_header), andTextViewonly paints theMORErun when the 3-line cap actually hid words.With a bio-less header the flow lands at: portrait 96–356, name cap band 420–~472,
Moviesheading at 536, poster row 582–957, focused under-title band to 1011 — the first shelf is fully on screen at scroll 0, which is why the scroll target is the shared minimalrevealand not a lift-to-margin pin (a pin would slide the portrait off the top the instant the page mounted). There is a host test for exactly that.Navigation
Route::Personinapp.rswith key / pointer / wheel / press-commit / draw / update arms.opened_from_person), so BACK returns to the same shelf position.person::leave()re-opens that item by rk only if the page navigated away from it in the meantime; the common case is a free instant return, becausemetadata::current()is still that item.person::reset(), wired intoinstall_pmsnext tobrowse::reset()) can't route to an empty screen.Async
The store (
rust-modules/src/person.rs) is thebrowse.rs/metadata.rsshape:task::spawn_small, aMutexmailbox, a generation atomic, a single-flight flag and a retry backoff — withclose/resetclearing the flags and the backoff together with the mailbox (the latchbrowse.rsdocuments). Two things worth flagging in review:land()is monotone on the generation, so a slow fetch for the actor you already left cannot clobber a newer result the pump hasn't consumed.Shared component, not a fork
Rather than paste detail.rs's two-pass shelf loop into a third screen, it moves to
card_row::strip. That is where the culling discipline belongs: it is the loop whoseon_axistest is the reason only VISIBLE tiles ever callresolve_tex, and the 64-slot poster LRU must never see an off-screen request.detail.rs's Related and Cast rows now call it; the only behavioural change is thatstripgained aresumeclosure (both detail rows pass|_| None, as before). Each shelf is also capped atMAX_ROW_ITEMS, because past that aCardRow'sscale(i)clamps to the last cell and a focused tile would never pop at all.Tests
make check: 67 passed (+9). New:person.rs—/mediarows shelved by their owntypenot the container'sviewGroup; shelves capped at the spring count and unknown types dropped; a landing from the previous person discarded while still releasing the single-flight; a failed fetch keeping populated shelves and backing off instead of publishing empty;close/resetclearing the flag and the backoff with the mailbox.ui/person.rs— focus walking only the shelves that exist; a landing that drops a shelf re-seating the focus and clamping the remembered column; opening the page never scrolling the portrait off the top; the second shelf scrolling fully into view and no further.The two scroll tests assert on a pure
reveal_blockwith the header height bounded from above (the real height measures text, which the host suite cannot link) — so they hold a fortiori for the real layout.make(ARM cross-build): green, no new warnings.Device verification: deferred to coordinator
I did not touch the TV. Everything below is outstanding.
./tests/run.py --fps— OUTSTANDING. This matters for this unit specifically: it is a new poster-shelf screen, and the visible-cells-onlyresolve_texdiscipline is exactly what the UI-tier floors catch. Two things to know:person-pageUI-tier scene totests/manifest.json(floor 50,run_secs20,warmup_s6) so the screen is actually covered rather than merely not-regressed. It is driven by a new dev trigger/tmp/plxnative-detailok, which presses OK on whateverdetailsec/detailcolfocused, without the play path. Scene triggers:plxnative-detail=2005+plxnative-detailsec=1+plxnative-detailok.detail-transitionis the scene that regression-tests thecard_row::stripmove, since detail's Related and Cast rows now run the shared loop.tools/tv-session.sh --screen person=<MOVIE rk>arms all three triggers in one go (documented in thetv-sessionskill; note the rk is the movie's, not the person's — the page has no boot trigger of its own).The FIFO drive, one boot. Target: ratingKey 2005 — Wallace & Gromit: The Curse of the Were-Rabbit. Its cast member index 0 is Peter Sallis (tag id 6059), who is the one person on this server with credits in both libraries (5 movies + 1 show), so both shelves populate and the
viewGrouptrap is exercised for real. Idina Menzel (id 161) works too but has only 3 movies, so the Shows shelf would be absent.Boot with
/tmp/plxnative-detail=2005and the injected token, then:Capture
tools/capture-screen.sh /tmp/unit-17.png DISPLAYat step 3. Judge against §5b: centred circular portrait, name under it,Moviesshelf of ordinary poster cards — and check the header does not read as a field that failed to load (see "How the no-bio header degrades" above).Worth also clicking a shelf poster (
ck:X,Y) and pressing BACK, to confirm it lands back on the person page rather than Home.Shared-file notes for rebasing
All edits are additive.
plex/models.rstouches onlyTag;ui/detail.rstouches only the cast OK arm plus the twodraw_strip→card_row::stripcall sites and the removal of the now-shared function;app.rsadds a route variant and its arms.🤖 Generated with Claude Code
https://claude.ai/code/session_018GuSHrq9oydnX7nhKE1Hvc