Skip to content

Merge upstream 2026-11-18 - #41

Merged
tiper merged 20 commits into
mainfrom
upstream-merge-2026-11-18
Nov 18, 2026
Merged

tiper merged 20 commits into
mainfrom
upstream-merge-2026-11-18

Conversation

@tiper

@tiper tiper commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Merges PlxNative main up to 9f5ff482 (plxnative#1441), 18 commits, as a merge commit. No upstream release is pending, so this is not release-aligned; PLXNATIVE_BASE stays 0.11.0-dev.

Resolutions:

  • media/route/decision.rs (Use one source for the video facts of the file Play starts plxnative/plx-native#1457): the Forced direct-play preview reads the chosen version's streams, and still accepts a track the TV converts to AC3 (audio_direct_plays_or_converted).
  • screens/detail/hero.rs (UI: accessibility ids for focusable elements (projection layer) plxnative/plx-native#1431): the favourite toggle keeps its two faces and gets accessibility words (favorite / unfavorite); hero_episode now reads upstream's Detail::resume_episode.
  • screens/login.rs: upstream's new login id tests keep FinNative's split (the report card and the plaintext question are PlxNative-only).
  • preferences_text_fit_tests.rs: upstream's RouteLayout::screen() with FinNative's Convert audio picker.
  • ci/readonly_generated.py: upstream's file plus FinNative's i18n source hash; certificate regenerated.

Follow-up commit for plxnative#1431 (every focusable element answers a stable id): FinNative's Manual sign-in (manual), its form (form.server, form.username, form.password, form.sign_in, form.quick_connect), Add user, the favourite menu rows and the Convert audio picker now answer ids. The login conformance covers FinNative's read-out and the open form. plxnative#1434's narrative title no longer takes a size, so the Jellyfin form drops it.

Ledgers unchanged: workers 5, globals 22, forks 60, fxlanes 0. check-machine-shape ok; plx_screens (finnative) login and a11y coverage tests pass.


Generated by Claude Code

PilaScat and others added 20 commits November 17, 2026 17:17
…s the Original (plxnative#1430)

On Auto with a remote server, a detail page's trailer preview was refused when Auto's remote Original preflight got no response (plxnative#1425: the open failed with Transport(28) on a trailer reached through two cross-origin redirects). With no sample, Auto chose HLS, and a preview is direct play or nothing, so the preview gate refused it, on no evidence about the link.

measure_remote_original now returns a typed RemoteProbe: Sample (any Ok sample, complete or not), NoResponse (the open failed in the network: OpenErr::Transport or OpenErr::Deadline) or Unmeasured (no source bitrate, a server status or range refusal, local failures, a transfer that failed after it opened). A preview whose direct-play preflight comes back NoResponse plans as Original, and the route logs "route: Auto preview — the remote Original preflight got no response …". Any sample still decides as before, so a link measured too slow for the file still refuses the preview: nothing rescues a stalled preview (auto_original_watched is false for a preview, and a failed Load arms the preview breaker), and a trailer can be a local /library/parts/ file at any bitrate. Full plays, the remux probe, fixed rungs and quality Original are unchanged. The URI qualifier reads the planner's playback_quality instead of its own copy of the mapping.

Tests on the loopback-PMS rig, with a new PartAnswer::Hangup that closes the Part GET unanswered. A preview whose preflight gets no response direct-plays the Original (red on main: refused as Adaptive). A slow sample, a 503 on the Part, the same failing open on a full play (still FixedHls) and a preview under Original are pinned unchanged.

Not exercised on a television or against a real CDN; which phase of the reported open hit rc=28 is not known.

Closes plxnative#1425

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…PLX-NATIVE-K) (plxnative#1429)

Evidence for Sentry PLX-NATIVE-K, not a fix. That crash is a SIGSEGV in wl_proxy_marshal called from libmali during eglSwapBuffers (our SDL_GL_SwapWindow): Mali's wl_surface.attach runs on a freed SDL wl_surface. Our code never creates or destroys that surface, and no breadcrumb shows when it is replaced.

update_wayland_info now records a `surface_changed` window-ring breadcrumb when SDL's WM info returns a non-null wl_surface different from the last one seen. The compare-only G_WL_SURFACE_SEEN survives sys_release_wayland, so a replacement across a background/foreground cycle is caught. The comparison is by address only, so a missing crumb is not a negative. Only the fixed label leaves the device; PRIVACY.md says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e no longer blocks its page's command (plxnative#1433)

Picking a row in Play Version, or a copy in Also available, on a Detail page closed the panel and did nothing. Since plxnative#1392 a page's app commands run at the head of the pre-commit queue, and a surface's Dismiss is only parked until NAV COMMIT, so the closing panel still owned input when the page's ContentReq::Play or Present arrived, and content_command's gate (input_owner() is the sender's entry) refused it.

The dispatcher gains a read-only question, input_owner_after_dismissals: who holds input once the Dismisses already parked this drain commit. ModalStack and Navigation take input_owner_unless(dismissed), and input_owner() delegates to it with nothing dismissed. The five page-command gates in content.rs (content, Home, Search, Watchlist outside SetOptions, Library) go through one holds_input helper. The item menu keeps its own closing_menu gate, a dead sender is still RetiredSender, and a page under a picker that stays open is still refused. A content page presented as a surface that dismisses itself through Back now has a further command in the same drain refused, as it was before plxnative#1392.

Tests (red first): a picked version plays that version while its panel is still closing, through the product frame and the real runner; a picked alternative source opens that copy the same way; a page under a picker that stays open is still refused; and a ui containers test for the owner once a surface's Dismiss is parked. No test stacks two real surfaces (the Also available copy with its own Play Version over it); that case was checked by reading.

Closes plxnative#1424

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o displayed-frame counter (plxnative#1437)

On a set that sends no displayed-frame counter (an LG OLED C8 on webOS 4.4.3 sends no callback numbered 46-49), every in-place seek played about 4 s and then reloaded at its target. plxnative#1313's Segment landing check in stuck_seek_due waits for the clock to advance, the position to sit on the accepted video and a fresh positive displayed count since Play. Without the counter the last never comes, SEGMENT_PRESENTATION_MS runs out on a seek that is already playing, and retry_stuck_seek reloads.

The landing rule is now LandingFacts: a fresh count is required only when the session has received a displayed-frame callback. That fact is a new decision flag, Shared::sink_counter_seen, set by note_displayed_frames on every counter callback (a zero count too) and cleared per session by reset_session_mirrors; the ACB bind leaves it. It is read at poll time, so a counter that first speaks after Play makes that seek need a fresh count again. Sets that send the counter keep plxnative#1313's rule. When the presentation deadline fires, one event-log line names the missing check (clock_advanced, position and runway, displayed, counter_present). docs/webos5-port.md §5a rows 5 and 7 say what the code does, and the dg_ mirrors' one-way note names plxnative#1313's existing dg_pos_ticks exception.

Tests: a Segment seek with no counter in the session lands on the clock and runway (red on main); a session that sends the counter still needs a fresh count; a counter that first speaks after Play keeps the seek pending until a positive count; the deadline line is written once; the rule over its facts; the flag is per session, counts a zero and survives the bind.

Diagnosis, patch and TV verification by the reporter, robozdog; this change has no device run of its own.

Closes plxnative#1436

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lxnative#1439)

A viewer's Play pressed while a held prime was still filling (after a seek, or at the
initial start) was dropped by FeedDriver::dispatch yet answered Queued, so Pause then Play
during the prime left playback paused for good. The driver now hands that Play on when the
clock is user-held or a seek preroll is open; the prime keeps the physical Starfish Play and
mirrors the ACB resume only after Starfish accepted it. user_resume no longer calls
play_initial_now once the startup Play was commanded, which also removes a duplicate Play on
a Resume of an immediate start.

Regression tests: held_prime_play_tests (hostsim, through the viewer's door); 5 of them fail
on the tests-only commit.

TV (mock server, Guest): on main, Pause+Play inside a post-seek prime never resumed (2 of 2);
with the fix the Play resumes in every row run. The in-place seek watchdog reload seen in some
runs also happens with no keys pressed on main (1 of 3) and with the fix (2 of 3), so it is a
pre-existing seek behaviour, not this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sed id (plxnative#1431)

Every focusable element now has a stable id, taken from its place in the layout rather than from its content: `home.shelf.2.card.5`, `detail.hero.play`, `nav.watchlist`, `settings.row.3`. This is the first layer of driving UI tests and agents by id instead of by direction keys. The runtime tokens that use the ids follow separately.

- An id is a pure projection of the FocusKey the focus engine already holds. It is a dot path: a namespace, then word or index segments. It is built only from static names and indices, never from a label or a ratingKey.
- `ui/src/a11y.rs` holds the grammar and the types: `A11yPath`, `Role`, `A11y` and `default_walk`, plus the test-only `conformance`, `conform` and `Namespaces`.
- `Focusable` gains `a11y`, `a11y_elems` and `a11y_find`, each with a default. `Screen` gains `a11y_ns`. The composed helpers and the `focusable_via_*` macros delegate all of them.
- Shared widgets answer once, and screens inherit their ids:
  - Card stacks, shelves and grids project `<section>.card.<i>`. The index is the card's place in the whole listing; an id outside the loaded window does not resolve.
  - Form rows share one convention in `geom::table_*`: a named row (`FormId::a11y`) answers to its name, and any other row is `row.<n>`, counting only rows that can take focus.
  - Decision alerts name their answers through `AlertAnswers`, and popovers project through `page_stack::popover_a11y`.
  - The page header and the nav strip (`nav.*`) answer their own ids.
- Screens answer only for their own hand-written groups.
- A test-only coverage table in `screens/src/registry.rs` matches every `AppArg`, `ContentArg` and `SettingsPage` arm, so a new screen does not compile until it is listed. Each arm mounts the real screen and runs the conformance check:
  - elements place and project;
  - ids are unique;
  - `a11y_find` inverts `a11y`;
  - a group with elements lists at least one.
- Every arm is covered: 49 of 49.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…creen back (plxnative#1432)

UI tests and agents can now focus or press an element by its accessibility id, and read back what is on screen, instead of walking to it with direction keys. This builds on the id projection from plxnative#1431.

- **`focus:<id>`, `press:<id>` and `press:<id>@<subject>`** are remote FIFO tokens that enter as one typed input, `InputKind::ById`.
  - The dispatcher resolves the id at the input's ordered delivery position, after the owner guard.
  - `focus:` moves focus with a new `By::Script`. It counts as deliberate wherever a key move does, except at sites that react to pointer hover.
  - `press:` focuses the element, then delivers an ordinary OK press.
  - `@<subject>` refuses the press unless the element's ratingKey matches.
  - A refusal logs one line with the id and a reason word: Unknown, NoOwner, Unloaded or SubjectMismatch.
- **`state:<nonce>`** is devtriggers-only. A runner effect at the frame tail atomically writes `plxnative-a11y.json` to the runtime dir. It holds the focused id, the groups, and every element's id, role, rect, visibility, loaded flag, label and subject, tagged with the nonce. The token is not recorded.
- **Recording and replay.**
  - A by-id input is recorded once, through the input tap.
  - The replay resolution shape gains an `Id` row family, answered by `ReplayAuthority::resolve_id`.
  - The state fingerprint moves to 0x7f1d_280c_909c_8603, and 0xea74_3865_5115_46c5 joins the refused list.
  - Labels and subjects never reach a log line. A subject-guarded press records its subject text, as recordings already carry ratingKeys in request paths.
- **The fixture alphabet's id pattern is closed.** The first segment must be one of the app's namespaces, and at most six segments may follow. A test keeps the alphabet's namespaces and bound equal to the code's.
- **Fixtures.** The v13 anchor is re-recorded on the new shape. A new anchor, `13-by-id-filmography`, refuses and then resolves `focus:nav.watchlist` and presses a list row by id. Both replay SAME in Targets and Resolve.
- `tools/a11y.py` is the harness helper. `ci/ui_boundaries.py` also forbids the tap from declaring `resolve_id`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-call debug-file probes (plxnative#1438)

LG's 2020 Realtek sets (k6lp and k6hp, webOS 5.x) ship a Mali Bifrost r11p0 driver that probes LG's debug-switch files from the hot path:
- `access("/tmp/API_PRINT")` at the top of every one of its 468 `gl*` entry points;
- `/tmp/SKIP_PRINT` in `glDrawArrays`, `glDrawElements` and `eglSwapBuffers`;
- `/tmp/GM_FPS_PRINT` on every swap;
- `/tmp/SHADER_PRINT` from `glUseProgram`.

Each failing lookup costs about 8.5 us on that kernel, and Home makes 850 to 950 of them per frame. That is 7 to 8 ms of every frame, and it is why Home scrolls at about 38 fps on those sets.

The executable now defines `access()` (`src/access.c`, Linux only) and exports it with `-Wl,--export-dynamic-symbol=access`, the route `src/exit.c` takes for `exit`. The four paths get `-1`/`ENOENT` with no syscall. Every other path goes to the kernel unchanged. The interposer is async-signal-safe, and `plx_crash_install` now sets `errno = 0` so the `__errno_location` PLT slot is bound ahead of any signal.

Measured on a webOS 5.6.2 k6lp set (Home, mock server, interleaved 55 s legs): frames over 18 ms fell from 1638/1608 to 54/57, and the per-beat p95 from 31 ms to 18 ms. strace shows no call to any of the four paths. Since the measured build the only code change is the `errno = 0` line.

A firmware sweep of 23 LG images found the per-call probe only in that r11p0 driver. k6hp's driver is byte-identical to k6lp's. k7lp (2021, r17p0), k8lp, k24n and the LX, MStar and MediaTek platforms are clean. k5lp (2019) probes once per frame, and this change covers that too.

Behaviour changes:
- LG's four debug switches no longer take effect inside this process.
- A non-NULL invalid path pointer now faults in user space instead of returning EFAULT. A NULL pointer still reaches the kernel.

The driver's uncached `/proc/self/cmdline` read on every swap and every `glUseProgram` is not covered (upper bound about 1.6 ms per frame, unmeasured).

Tests: new Linux `check-c-unit` legs (with and without the interposer) and a `check-elf` section that asserts `access` is exported.
…ns and a droplet close (plxnative#1444)

The glass menus (Library and Watchlist Sort & Filter, the +N list, the profile menu) open and
close like iOS 26's glass menus, fitted frame by frame to a 60 fps reference recording.

The opener is consumed: the glass detaches from it as a bead while the opener fades, and the panel
stands over it. This reverses design review S11/S12, under which the opener stayed lifted on top.

Open: underdamped rect springs (height leads, width follows 26 ms later); the glass is a round lens
of radius min(w,h)/2 until near full size, then eases to the panel radius; the rows ride their own
lens spring (about 0.65 when first shown, a peak near 1.11, 1.0 by ~360 ms) and are cut by the
lens's round edge; the dim follows the morph (Popover::dim, Scrim::following).

Close: a droplet. The slab bulges, then drains on separate width and height springs, folds through
a smooth-min neck into a re-forming blob that whitens toward the opener's fill (u_mrg_tint in
fs_glass.frag), and hands the opener back at ~233 ms with the dim at 0 on that frame. The fold
consumes the table's tail, so the drawn slab drains without a collapse.

Shared mechanisms:
- A rounded clip in the painter: ClipScope::open_rounded_in in ui, rclip_set (single writer with a
  generation counter) in gfx, and a rounded-rect SDF in authored px (shaders/rclip.glsl) compiled
  into PLX_RCLIP variants of fs_src and fs_tex, bound only while a rounded clip is live, plus a
  third clip slot in fs_text_ink. The plain programs stay byte-identical. The rect program's LOC_*
  statics became a by-value RectUniforms. A split card's interior keeps the unmasked program.
- Spring::land_if_still and motion::FRAME_DT_CLAMP: every morph spring lands exactly on the step
  it stops moving, so a late idle step no longer redraws a settled menu.

Frame cost on a menu's close:
- Popover::release drops only the ground-stage snapshot, not the page snapshot.
- Home raises damage on Uncover/Restored only when its catalog changed.
- The account chip lift's owner is decided once at the mount (Dispatcher::settle_lift) and the chip
  is painted every frame through widgets::lift_ground.
- bind_owner (plxnative#1420) keeps the page snapshot when a layer whose host stayed Live merely starts
  closing (ModalCacheKey::began_closing, ModalPresentation::kept_host_live); a layer that froze its
  host (Sheet, Alert, Opaque{snapshot:true}) still retakes the page.

Measured on the TV (ARM release profile, mock accounts): the Library Sort & Filter close's first
frame went from 146% to 65% of the GPU budget per refresh, and missed refreshes over the close from
32 to 3. The account menu's close-start retake (a Sheet, already on main) and the Library's
rows-visible headroom (96% median) are left for a follow-up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…raded against past PRs, and a checklist of bugs it missed (plxnative#1445)

* Review: a review is recorded on the commit it read, and the reviewer is graded against past PRs

pr-land.py gains `reviewed`, which writes a `pr-reviewer` commit status on the head a review read
(refused when the PR's head has moved), and gate/wait/merge read it: a recorded BLOCKER is red, and a
head with no record is judged by PLX_REVIEW_GATE (observe by default: green, and the verdict line says
what enforce would refuse).

pr-reviewer reads its rules from the base, never from the diff under review, and opens its report
with JUDGE CHANGED when the diff touches a rule file, an agent, a ledger or the landing gate.

tools/review-eval.py replays past squash commits as the reviewer would have met them (a clone with no
ref but base and head, so nothing leads to the fix) and scores reports against one-sentence answer
keys: recall on six pull requests whose bugs a later commit fixed, and the flag rate on four controls,
in separate tune and test splits.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFfPdMkJD7dPTNL8Aiy

* review-eval: 21 cases, and a case's commit must be that pull request's own squash

Seven more bugs and four more controls. `check` now refuses a case whose commit subject does not end
(#N): a lookup by message had picked the FIX of plxnative#1252, whose body names it. The replay task tells the
reviewer to read its prompt from disk, so an edited prompt is the one under test.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFfPdMkJD7dPTNL8Aiy

* Review checklist: seven diff-triggered checks, each from a bug that reached main

docs/review-checklist.md lists a trigger readable from a diff, the check to run when it matches and
the pull request the bug came from. pr-reviewer reads it from the base and runs only the items whose
trigger matches. The items come from the eval's tune split; the test split decides whether it stays.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFfPdMkJD7dPTNL8Aiy

* review-eval: the replay holds no reflog, which named the source checkout's HEAD

`git clone` logs the commit it cloned from, and that commit has every fix behind it; deleting the refs
left the log. The replay now removes it, and the test walks `git log --reflog` as well as `--all`.
Found by pr-reviewer on this branch.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFfPdMkJD7dPTNL8Aiy

---------

Co-authored-by: Claude <[email protected]>
The release note and the authored half of the audit for v0.10.1, a patch released from release/v0.10: v0.10.0 plus the backports of plxnative#1438 (Realtek webOS 5 access() interposer), plxnative#1437 (seek snap-back on sets with no displayed-frame counter), plxnative#1405 (Continue Watching start position), plxnative#1439 (Play during a held prime) and plxnative#1370 (crash records filed under the uploading release).

Compatibility is unchanged from 0.10.0. The audit records the device evidence each fix rests on and leaves the generated block for the release run.
* Keep black player scrims out of alpha conversion coverage

* Describe conversion coverage over black scrims

* Include player menus in the 0.10.1 patch notes
* Route opt-in Cargo worktrees to a machine-local build volume

* Initialize native agent sessions that skip Git checkout hooks

* Judge redirected builds against free space on their target volume

* Verify managed Cargo paths in opted-in and ordinary checkouts

* Route Rust Analyzer output from the separate fuzz workspace

* Keep moved worktrees attached to their Cargo caches and honor custom targets

* Check managed targets against the resolved cache directory
Share the persisted client identity between ordinary PMS request headers, the notification feed and playback query parameters so servers that select media versions per client return the matching list on detail reads. Cover the metadata request with a client-dependent multi-version fixture.

Closes plxnative#1404.
Resolve the file the detail page would play through the existing version chooser, then use the same facts for the resolution badge, route preview and HDR conversion warning. Expose the chosen file's range with the device and profile Dolby Vision decision applied.

Keep a show's episode stream facts tied to the episode that supplied them. Preserve the on-deck version list independently and distinguish an unavailable backfill from an older recording with implicit ownership.
…ad of slow motion (plxnative#1441)

A direct-play (progressive Original) Feed stream on a link slower than the file used to play
in slow motion and then catch up by dropping frames. It now pauses, shows Buffering, and
resumes when the queue is full or the stream ends.

The begin rule is a clock-debt CUSUM (ClockDebt, playback-contract): S grows by the wall time
the presented position falls behind, minus a 5% drift allowance, and a hold begins at
S >= 100 ms. S resets while the video queue holds more than 1 MiB and is disarmed while
priming, seeking, before the first picture, at a non-1x rate, or when the hold's own release
is already true. A dead link holds through the silence arm, measured from the later of the
last position callback and the last watch restart. Release is the video or audio queue at its
byte cap, or end of stream; queue sizes are unchanged.

Only Quality = Original is held: Auto keeps its switch from Original to HLS, and previews and
fixed-quality re-encodes are not held. A viewer Pause/Play inside the hold reuses the held-prime
paths.

Constants come from TV measurements: resume drops scale with the debt at fire (about 23.6
frames per second of debt), so 100 ms leaves about 4 frames per resume against about 12 at
400 ms, with no holds on healthy links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-11-18

# Conflicts:
#	ci/readonly_generated.py
#	rust-modules/media/src/route/decision.rs
#	rust-modules/screens/src/detail/hero.rs
#	rust-modules/screens/src/login.rs
#	rust-modules/screens/src/preferences_text_fit_tests.rs
Upstream's plxnative#1431 asks every focusable element for a stable id. FinNative's
Manual sign-in, its form, Add user, the favourite rows and the Convert audio
picker now answer theirs; the login conformance checks FinNative's own
read-out (no report card) and the form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JLzd9SJCCZ5zFGv23XMA8h
@tiper
tiper merged commit c47f15c into main Nov 18, 2026
22 of 25 checks passed
@tiper
tiper deleted the upstream-merge-2026-11-18 branch November 18, 2026 06:54
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.

3 participants