Skip to content

Settings > Video & playback > Playback engine: a per-profile opt-in to the URI engine, and the URI driver's anonymous bus identity (F45) - #1279

Merged
GLinnik21 merged 19 commits into
mainfrom
uri-first/f45-uri-optin
Nov 9, 2026
Merged

GLinnik21 merged 19 commits into
mainfrom
uri-first/f45-uri-optin

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Title: Settings > Video & playback > Playback engine: a per-profile opt-in to the URI engine, and the URI driver's anonymous bus identity (F45)

Summary

The URI-first series is on main (last squash #1276), but production never selects the URI engine: the production qualifier answers
Unknown, so Feed is the only backend a normal play reaches. The owner's decision (F45, 2026-11-07) is a Settings opt-in. This PR is
that opt-in, and the one fix that has to land before URI is user-selectable.

  • The row. Settings > Video & playback > Video group > Playback engine, visible to everyone, with two choices:
    Standard (the default; this app's own demux and buffer-feed, exactly as today) and Experimental (the URI engine). Title,
    explanation and both labels are translated in all 12 shipped locales (be ca de en es fr hu it nl pl pt ru; Belarusian looked up on
    skarnik.by and verbum.by), and every copy passes the text-fit tests. English: "Experimental lets the TV stream the file itself. The
    controls stay the same. If it fails, the video restarts in Standard. Some videos always use Standard."
  • Per profile. UriEngine { Off, On } (default Off), key uri_engine, declared exactly like its Playback neighbours
    (InstantDpadSeeking is the template): setting! row + Preferences field + Descriptor::of in plex/session/prefs.rs, a
    ProfilePrefs field, a LiveCell/LiveRow and a Choice::UriEngine in media/src/route/prefs.rs, one match arm in
    app/preferences.rs, a PickerKind in screens/preferences.rs (a Nav row to a pushed picker page of Choice rows; the value is the
    row's right-hand readout, never the sub-line). Scope::Profile: a profile that never chose reads the frozen install key, which is the
    default. Nothing about the setting is in any telemetry or diagnostic snapshot, so no consent scope is touched.
  • What Experimental changes. The route snapshots the live cell into ResolveEnv::uri_engine at the press (as it does for quality and
    Direct Play); OriginalRequest::uri_opt_in carries it to the resolve worker; ProductQualifier answers a progressive original-file
    source as Known (KnownSource::url_carrier, the dev qualifier's construction, now one shared function) only when that flag is set
    and Standard would direct-play that original, and ResolvePort::qualify checks it against ProductEvidence::opted_in() (the four
    URL-carrier capabilities, each only where callable). The viewer's own opt-in is the qualification, for that profile only.
    What Standard would direct-play is Standard's own verdict, carried, not re-derived. build_stream already decides it for Standard
    and now puts four verdicts on the request as OriginalRequest::standard (StandardDirectPlay): the video against the attempt's
    caps (video_direct_plays: codec, raster bound, and the frozen Dolby Vision decision's presentation), the frozen Dolby Vision
    decision itself (frozen_dv_decision: the set's answer through the profile's setting), and the selected audio track against the set's
    own decoder (audio_natively_plays_with, which carries the table row, the Load's channel and rate limits and the direct-play mode;
    the app's lossy decode is Standard's alone, so it does not count), and the container (part_is_streamable, the same streamable value
    Standard's own gate reads: anything but .mkv/.mp4/.m4v is a server remux in Standard). ProductQualifier answers Unknown unless all
    four say yes, and url_carrier certifies a Dolby Vision record only where the frozen decision admitted it, so the DV check of
    ResolvePort::qualify can no longer pass for a refused layering. The dev qualifier reads none of the video, audio or container
    verdicts and still forces its URL; it does read the Dolby Vision one, through url_carrier, so a Dolby Vision record the frozen decision
    refused is not forced.
    Which videos stay in Standard with the opt-in on: one whose codec or size the set cannot show; a Dolby Vision file the set and the
    setting refuse (a Profile 5 file on a set without Dolby Vision, with the setting on Auto: Standard has the server convert it, and the
    TV's pipeline would show its IPT-PQ in the wrong colours and report no failure); one whose selected audio the set's own decoder cannot
    play (also one this app would decode itself: the TV's pipeline would play it silent, again with no failure to hand off); a container
    Standard has the server remux (an .avi, .mov or .ts: the pipeline would take the original whole and skip that remux); a video the
    Plex server converts (remux, transcode, HLS); any file whose Part carries a subtitle stream, whether or not a subtitle is on (the plan
    asks for TrackChoice::Off, which the opt-in does not certify), and a burned or client-drawn subtitle; a trailer preview; a
    non-1x speed; a Relay link; and Auto quality off the LAN. What it does not change: our player screen, HUD and controls stay; only
    fetching and decoding move to the TV's pipeline (com.webos.media). Not gated, stated exactly: Experimental takes only what
    Standard would direct-play for the video, Dolby Vision, audio and container; it is NOT gated on the server's own direct-play decision
    (MDE), which is a round trip the URI offer is made before, so a file that clears those four checks but that the server would still
    convert (its own profile limits) is carried by the opt-in. A converted offer would need a content-absolute time mapping and release
    proof an opt-in cannot assert, and a wrong one would write wrong progress to the household's Plex timeline.
  • The fallback. A URI refusal or failure keeps the existing at-most-one URI -> Feed handoff per recovery episode (G6,
    BackendPolicy): the video restarts in Standard, so an opted-in viewer never ends on a dead screen. The opt-in only changes what the
    qualification step puts in the catalog; the handoff code is untouched.
  • The LS2 registration ladder (a fw-compat-reviewer note on the P5 review, fixed here before URI is user-selectable). The production URI driver
    registered on com.webos.media only as com.webos.media.client.plxprobe, with no anonymous fallback; the named -> anonymous ladder
    existed only in the devtriggers probe. On a set that does not grant that name, Experimental would have failed at register. Now
    play-uri/src/register_ladder.rs is ONE pure decision (decide(&[Outcome]) -> Register(shape) | Settled(shape) | Failed(Refused)) that
    the probe's next_shape_or_stop and the driver both call; nothing is copied. The driver treats a refused register, or a denied first
    load before any media id (the probe's two ladder sites), as one refused rung: it releases that registration quietly (no notice the
    player sees, the authorized locator kept), registers once as the anonymous client when the release is confirmed, and a Stop, a fault or
    the release clears the pending retry. A refusal of both rungs is the one existing Failed(Refused) + release, which takes the one
    existing handoff to Standard. No new extern "C", dynlib! or DT_NEEDED.
  • Also: register_ladder.rs joins the pure play-uri modules ci/check-deps.sh scans.

Behaviour

  • The default is Standard, and a profile that never chose plays exactly as before. UriEngine::default() is Off; a profile with no
    uri_engine record, a second profile on the same account and an unseated process all read Off; and with Off the production
    qualifier still answers Unknown, so the policy catalog holds only Feed. Pinned by:
    plex/session/playback_options.rs::the_uri_engine_opt_in_is_off_unless_the_profile_chose_it,
    media/route/prefs_tests.rs::the_uri_engine_opt_in_follows_the_seated_profile_only (the profile that chose reads On; another profile,
    an unseated process and a record that chose nothing read Off),
    media/route/backend_policy.rs::a_viewers_opt_in_qualifies_the_uri_original_and_off_keeps_the_feed_order (Off: the URI offer stays
    Unknown and Feed is the only open offer; On: it is Qualified, wins its tier, and the one handoff still applies),
    media/route/uri_preflight.rs::only_a_viewer_who_opted_in_gets_a_url_source_from_production and
    the_opt_in_still_meets_every_viewer_refusal_and_the_display_path,
    screens/preferences_tests.rs::the_playback_engine_row_defaults_to_standard_and_its_picker_saves_the_opt_in, and the existing app test
    boot_without_source_certificate_keeps_feed_offer (unqualified evidence: the Feed offer opens, no URI Load).
  • A pick is durable first, then live, and the profile's own (media/route/prefs_tests.rs::a_confirmed_opt_in_is_stored_as_the_picking_profiles_own_and_no_ones_else).
  • Experimental takes only what Standard would direct-play (video, Dolby Vision, audio, container). Tests were written first and failed
    against the qualifier that answered Known for any original (make test-crate C=plx_media T=experimental_: test result: FAILED. 2 passed; 5 failed, then, for the container, 8 passed; 1 failed); each of the six is a cold build_stream as Standard
    (UriEngine::Off) and as Experimental through the production qualifier, which must be one plan with one wire (no URI source, the same
    route, the same requests): experimental_keeps_a_video_codec_the_caps_do_not_direct_play_in_standard,
    ..._a_raster_beyond_the_caps_bound_in_standard,
    ..._a_profile_5_file_on_a_set_without_dolby_vision_in_standard (the reviewed case),
    ..._an_audio_codec_the_set_cannot_decode_in_standard, ..._audio_only_the_app_decodes_in_standard and
    ..._a_container_standard_does_not_stream_in_standard (an .avi). The three controls passed before
    and after: experimental_offers_an_original_that_standard_direct_plays,
    experimental_offers_a_profile_8_file_whose_base_layer_the_frozen_decision_admits (its Dolby Vision record is certified) and
    experimental_offers_an_mp4_original_that_standard_streams. Then
    9 passed; 0 failed. At the qualifier: uri_preflight::the_opt_in_carries_only_an_original_standard_would_direct_play,
    a_url_carrier_certifies_only_the_dolby_vision_the_frozen_decision_admitted and
    a_refused_dolby_vision_record_never_reaches_a_known_url_source; for the dev route
    the_dev_qualifier_forces_the_url_whatever_standard_would_do_with_the_file.
  • The ladder. Tests were written first and failed against the named-only driver (make test-crate C=plx_play_uri: test result: FAILED. 203 passed; 4 failed), then passed (213 passed; 0 failed):
    a_named_registration_the_hub_refuses_goes_on_as_the_anonymous_client (named refused -> before: Failed(Refused) and release; after: the
    anonymous client registers, loads and reaches ReadyAwaitPlay),
    a_load_the_named_identity_is_denied_goes_on_as_the_anonymous_client_with_the_same_locator,
    a_refusal_of_both_rungs_is_the_one_failed_refused_and_a_release_and_no_third_registration (exactly Failed(Refused), Closing,
    Released: the notices a single refused registration always gave, and never a third registration),
    a_stop_during_the_quiet_close_of_a_refused_rung_does_not_register_again,
    a_quiet_close_the_hub_never_confirms_quarantines_and_never_registers_again, and five unit tests of decide in register_ladder.rs.
    A register failure on both rungs takes the existing restart-in-Standard path, not a new one: the driver emits the same
    Observation::Failed(Failure::Refused) + release the player's note_uri_failure has always been keyed on, and the application-level
    app/run_uri_boot_tests.rs::a_hub_that_refuses_both_register_rungs_hands_the_same_request_to_feed drives the real driver through the real
    playback tick and asserts ONE failed-start record at the Open stage, ONE handoff record naming the same source attempt, the same logical
    request, the Feed resolve starting only after the exact release, and no third registration. The existing
    refused_product_uri_load_recovers_the_same_request_only_after_native_release (same file) now spans both rungs (the first denied Load is quiet) and
    asserts the same records.
  • Playback of everyone who does not opt in is untouched: the ladder code runs only inside an attempt the URI driver was given, and the
    driver is offered a source only through the opt-in.

What Experimental does on webOS 4.x (from the code, not run on a device by this lane)

Binding is Binding::Acb when the display is ACB-initialized; the URI bind is BindPolicy::Strict (play-uri/src/acb_drive.rs): it waits for
the previous unload's completion callback (RELEASE_FENCE_MS 2 s; 5 of 5 unloads completed in ~100 ms on the dev set,
docs/measurements/acb-release-fence-2026-11-04.md) and is refused once the plane is Quarantined. So with the opt-in on: the first title
plays through URI (the only format proven on the 4.5 set is the one SDR720p24 H.264/AAC fixture); a later title plays through URI again
while each release's fence completes; when it does not, the plane stays quarantined until process exit, the next title's URI bind is
refused and that title takes the one handoff to Standard, which binds over the quarantine (BindPolicy::Rebind). A URI session whose OWN
release ends quarantined gets no handoff: that title ends on the failure read-out. Playing A -> A -> B on the TV is not yet proven, which is
why this is an opt-in and not the default.

Content size (non-whitespace characters of the changed paths, origin/main -> branch)

Bytes of non-whitespace (git show <rev>:<path> | tr -d '[:space:]' | wc -c). Git reports 51 files changed (+1,471/-159 lines) across the
ten commits (the host-lint timeout commit and its revert cancel: the PR no longer touches .github/). Most of the locale delta is the 12
translations of four strings; the rest is the row's plumbing, its tests, the ladder, the direct-play verdict and the prose that said "no
production qualifier routes to URI".

area changed paths before after delta
rust-modules/media 9 976,104 1,008,107 +32,003
rust-modules/play-uri (ladder, probe, driver) 4 192,183 203,760 +11,577
rust-modules/src (application) 5 238,230 243,793 +5,563
locales/ (12 languages x one file) 12 9,253 14,719 +5,466
rust-modules/screens 7 167,557 171,049 +3,492
rust-modules/plex 6 426,195 429,419 +3,224
docs/ 5 197,105 200,093 +2,988
rust-modules/media/src/player/CLAUDE.md 1 87,298 89,525 +2,227
rust-modules/platform (comments) 1 47,018 47,183 +165
ci/ 1 92,771 92,805 +34

(rust-modules/media now includes the route's new tests, 264 lines in decision_resolve_route_tests.rs (the nine experimental_* tests and
the two Part-aware helpers), and the verdict struct.)

Verification

Run on the committed tree (git status --short empty before and after each gate):

  • After the restack onto ACB: a second boot handle (player type 0) for the URI engine #1281 (head 732ec09, a merge of main at 11d4ef0): make check rc 0, 43 libtest test result: lines,
    every one ok., none failed. The lines below are the pre-restack gates on 1230751.

  • Head ac5e84d merges main at c9470f2 (Default to a version the set can decode #1245, Give play back through the startup runner after a transcode seek #1285, Admit a transcode's cold resume at the Feed start door #1286 touch the route) and fixes a race in this PR's .avi Standard-parity
    test (it counted 1 of the 3 requests Standard makes, so the POST/PUT arrival order decided it; now the whole wire, 40/40 runs):
    make test-crate C=plx_media: test result: ok. 1973 passed; 0 failed; 84 ignored; CI gates this head.

  • make check on 1230751: rc 0, "127 steps - all ok" (cargo 547 s, python 490 s, harness 490 s), harness Ran 722 tests ... OK; 43 libtest
    test result: lines, every one ok., none failed (several crates run under more than one feature configuration, so the lines are per crate,
    never one total; the full list is f45-fix2-check-results.txt in the lane dir). Among them: plx_play_uri 213 passed (twice),
    plx_playback_contract 40, plx_plex 775, plx_screens 2071, plx_media 1945 (84 ignored), the application 1237 (default features) and 1421
    (hostsim), hostsim plx_media 2212 (84 ignored).

  • make check-nodef: rc 0 on 1230751 for PLAYBACK_BACKENDS = both (default), uri and feed.

  • ARM links on 1230751, ARM_PROFILE=release: RELEASE=1 (22,766,652 B unstripped) and the dev shape (24,672,288 B unstripped), both rc 0.

  • make check-localization: last run on 0ffc325 (Localization inventory: product text boundaries passed, rc 0); the container commit
    changes no string and no locale file.

  • make test-hostsim C=plx_media: test result: ok. 2212 passed; 0 failed; 84 ignored; 0 measured; 0 filtered out; finished in 58.39s.

  • make test-hostsim C=app T=uri_boot_tests (run on the ladder commit): test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 1399 filtered out; the same tests are in make check's hostsim pass above (1421).

  • Ladder RED -> GREEN: make test-crate C=plx_play_uri: test result: FAILED. 203 passed; 4 failed against the named-only driver, then
    test result: ok. 213 passed; 0 failed (203 + the 4 driver tests + 1 quiet-close test + 5 decide tests).

  • Direct-play verdict RED -> GREEN: make test-crate C=plx_media T=experimental_: test result: FAILED. 2 passed; 5 failed against the
    qualifier that answered Known for any original (the two controls pass; the five refusals each saw the URI offer where Standard
    sent the server requests), then test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 2020 filtered out.
    Container verdict RED -> GREEN (the .avi test and the .mp4 control added): test result: FAILED. 8 passed; 1 failed; 0 ignored; 0 measured; 2020 filtered out against the gate without the container verdict ("an original Standard would not direct-play is not offered
    to URI"), then test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 2020 filtered out on 1230751.
    Plus 3 qualifier tests in uri_preflight (the refusal table now has a container row) and 1 dev-route test
    (make test-crate C=app T=uri_product: 24 passed; 0 failed), all in the make check lines above.

  • The two screens re-captured in the macOS simulator against the mock PMS (no real account): Settings > Video & playback with the new
    "Playback engine" row reading Standard, and its picker with Standard checked and Experimental (uri-optin-playback.png,
    uri-optin-picker.png). Both captures predate the direct-play fix, which changes no string the screens show (only the English
    translator note in locales/en).

  • doc-claim-auditor on origin/main...e168e31bf: 3 findings plus 1 older claim, all fixed in 7357830 (docs/module-layers.md "never
    offered a source"; player/CLAUDE.md and the install_uri_product_with_ports doc on what configures the driver; platform/src/webos.rs
    on which side owns the named-then-anonymous order). Not touched: docs/playback-navigation.md:7 ("has one per-profile option") was
    already wrong before this branch. The direct-play fix changed prose in the same places, checked by git grep of every place that says
    which videos stay in Standard (docs/playback-settings.md, player/CLAUDE.md, docs/module-layers.md,
    docs/uri-first-migration.md, uri_offer.rs, uri_preflight.rs, dev/uri_product.rs, the English string's note, and
    the plan.rs comment that called the source facts "not URI admission gates"); the auditor was not re-run on that last commit. The
    container commit's prose (what the gate is and is not: Standard's video, Dolby Vision, audio and container verdicts, not the server's own
    decision; any file with a subtitle stream stays in Standard; the dev route ignores the video, audio and container verdicts but not the
    Dolby Vision one) was swept the same way, by git grep of each phrase, in docs/playback-settings.md, player/CLAUDE.md,
    docs/module-layers.md, docs/uri-first-migration.md, uri_preflight.rs, uri_offer.rs and dev/uri_product.rs.

  • pr-reviewer on origin/main...lane/uri-optin-main (one round, before the fixes): 1 MAJOR (the qualifier offered URI any original:
    fixed by the direct-play verdict, 0ffc325, and its container half, 1230751), 2 MINOR (the host-lint timeout edit made this a
    workflow PR without a build-bench table: dropped from this PR, 7e012c9; fw-compat not run: run below). A second doc-claim-auditor
    pass on 0ffc325 found the container gap and two prose narrowings; all fixed in 1230751.

  • fw-compat-reviewer on the two ARM ELFs of 1230751: PASS WITH NOTES (start-up and symbol resolution only).
    tools/fwcompat.py --min-release 4.4.2: OK on 4.4.2, 4.10.0, 5.3.1, 6.4.0, 7.4.0, 8.3.0, 9.2.0, 10.2.0, 11.2.0 for both ELFs (exit 0);
    ci/check-elf.sh: all assertions passed, DT_NEEDED 15 entries, unchanged, storage helper unchanged. No extern "C", #[link],
    dynlib! or dlopen changed; the anonymous rung is the existing LSRegister(NULL, ...) call production's ls2::register() already
    ships, declared that way in the 4.x NDK's lunaservice.h; the release ELF imports the same 11 LS* functions as before. Without the
    opt-in a release build makes no com.webos.media registration at boot or at play (ProductQualifier answers Unknown unless
    uri_opt_in && standard.plays()). Notes: (1) whether an anonymous client may call com.webos.media/load is hub policy, not a symbol
    question: never observed on any set (the 4.10.0 dev set grants the named client, and no probe option forces the anonymous rung), so the
    ladder's rescue is unproven; if the anonymous rung is refused too, the outcome is the old one (Failed(Refused) and the one hand-off to
    Standard). (2) Any Load denied before a mediaId climbs the ladder, a media-side refusal included, so such a failure costs one quiet
    close and one anonymous retry before the hand-off; kept deliberately, because the hub's refusal text is unmeasured on other firmware
    and a narrower match could miss a real identity refusal there.

TV results (dev set, webOS 4.x, debug build, panel off, muted; no real Plex account)

  • Found on the TV, fixed below this PR: on 1230751 the saved Experimental pick never reached URI: a production boot initialized
    one ACB handle at player type 10 and the URI product binding requires player type 0, so every normal boot composed the URI driver
    Unbound and the qualifier answered Unknown in silence (every earlier TV pass of the product route had booted with the ptype=0
    trigger). ACB: a second boot handle (player type 0) for the URI engine #1281 (11d4ef0) gives the URI engine its own type-0 boot handle; this branch is restacked on it.
  • 1230751, automated (--guest --mock): 4 URI product cases and 4 Feed cases, 8/8 PASS (f45-123075179/).
  • 732ec09, one process, seated through the mock's plex.tv (up --mock-plextv, identity version=...-synthetic, owned=1 read
    before any key), the carrier (rk 990001, h264/aac MP4, no subtitle stream):
    1. Standard (a fresh profile's default): decision: ... -> DIRECT PLAY, Feed SMP: calling Load, plane: feed handle 1 selected.
    2. Settings > Video & playback > Playback engine > Experimental: the picker pops to the list and the row reads Experimental. Home hero
      Resume of the same title: uri-acb: acb gate ... actual_ptype=0 ... initialized=true, ls2uri: register shape=named ok,
      plane: released task=5 (Feed's handle) then plane: uri handle 2 selected=true, the resume seek landed on seekDone,
      uri: presented (service playing; plane window and PLAYING completed; ...), 60 fps on the player route, every acb callback ... id=2.
    3. Back to Standard in the picker, the same Resume: ls2uri: released, the URI handle's release completed (id=2), then Feed on
      plane: feed handle 1 selected=true (id=1 callbacks), played to the end and returned Home. No plane: ignored line anywhere.
      Then signed out with the mock stopped (the debug install's revoked marker rewritten), as it was before the run.
      Evidence: /Volumes/DAS/plx-evidence/uri-first-2026-11-04/w6-full/f45-732ec0906/.

Not verified on the TV

The run above covers the first title through URI (named client), the picker on the panel in English, and Feed -> URI -> Feed in one
process. Still open, with --guest or the mock's plex.tv and the identity line read first:

  1. The ladder on a set that does not grant com.webos.media.client.plxprobe. ls2uri: register shape=named refused ..., then
    uri: register shape=named refused; retrying as anon, then ls2uri: register shape=anon ok and an accepted load as the anonymous client.
    Whether an anonymous client may call com.webos.media/load at all is a role-file question no host test answers: the probe measured the
    named shape on the 4.5 set; the anonymous shape has no device log yet. If it is denied there too, the title must take the one handoff to
    Standard and play.
  2. The rest of Experimental on the 4.5 set: the first title through URI and Feed -> URI -> Feed passed above; still open: pause,
    resume, the audio pick and the Up Next hand-off on URI, then a second and a third title in one process (G2, A -> A -> B), the release
    fence completing each time, and the quarantine -> handoff -> Standard sequence when it does not. (A file whose Part lists a subtitle
    stream stays in Standard, so these need subtitle-free files.)
  3. The failure restart in Standard on a real title: position, paused state and the selected audio survive the handoff (host tests pin
    the route's known_position/viewer_paused; the device decides whether the picture and sound come back).
  4. Progress reporting: that a URI session writes the right timeline progress and scrobble to the (mock) server, including after a seek.
  5. Per-profile behaviour on a real Home: profile A on Experimental, profile B on Standard, switching the profile mid-session.
  6. The row on the panel in other locales: the row, its readout and the picker rendered and worked in English above; every other
    locale's copy fitting in LG's text rasterization is unchecked.
  7. Standard-only files with the opt-in on: a Profile 5 file on a set without Dolby Vision, a codec the set lacks, a DTS track on a
    set with no DTS decoder and an .avi each play in Standard (the server converts or remuxes them) with Experimental selected; the host
    tests pin the plan, the TV decides the picture and sound.
  8. No frame-time effect on Standard (the frame path is unchanged; the setting is read at the press, not per frame): one --fps run on
    the home and a Standard play, against the mock.

Related: #1064

🤖 Generated with Claude Code

GLinnik21 and others added 12 commits November 8, 2026 05:09
A new Video row in Settings > Video & playback chooses Standard (the Feed engine, the
default) or TV player (the URI engine, experimental), per profile and localized in
every shipped language. The opt-in is the viewer's own qualification of a URI source:
the route snapshots it into ResolveEnv, OriginalRequest::uri_opt_in carries it to the
worker, and ProductQualifier answers the original file as a progressive URL carrier
(the dev route's construction, now shared) only for that viewer, checked against
ProductEvidence::opted_in(). Everyone else still gets Unknown. Converted PMS outputs
and selected subtitles stay unqualified, and a URI failure keeps the one handoff to Feed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The descriptor-count, per-profile legacy-fallback count and garbage-fixture
tables name every row; they now include uri_engine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s to the ACB URI backend

The Playback engine opt-in is the one production route to it, for the viewer who turned it
on: docs/uri-first-migration.md, docs/uri-mode.md, the player guide and three doc comments said
"not routed" or "no production qualifier supplies this". Comment and prose only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s ours

The owner read "TV player" as LG's own player screen. The opt-in keeps this app's player and
its controls; only fetching and decoding move to the TV's pipeline. The Playback engine row now
offers Standard and Experimental, with a copy that says the TV streams the file itself, the
controls stay the same, and a failure restarts the video in Standard, in all 12 languages.
The docs, module guides and the picker test that quoted the old label follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uct driver

The product URI driver registered on com.webos.media only as the named client
com.webos.media.client.plxprobe, with no anonymous fallback: on a set that does not grant
that name, Settings > Playback engine > Experimental would have failed at register. The
named -> anonymous ladder existed only in the devtriggers probe.

play-uri/src/register_ladder.rs is the one pure decision (decide(tried) -> Register(shape) |
Settled(shape) | Failed(Refused)); the probe's next_shape_or_stop and the driver both ask
it, and no copy of the rule remains. The driver treats a refused register, and a denied
first Load before any media id (the probe's two ladder sites), as one refused rung: it
releases the registration quietly (no notice the player sees, the authorized locator
kept), registers once as the anonymous client when the release is confirmed, and a Stop,
a fault or the release clears the pending retry. A refusal of both rungs is the one
existing Failed(Refused) + release, which takes the one URI -> Feed handoff.

Tests written first (red against the named-only driver: 4 failed, 203 passed), then green
(213 passed). The app's refused-Load handoff test now spans both rungs, and a sibling pins
the both-register-rungs-refused handoff.

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

#1276 raised host-lint's timeout-minutes to 20 for its three extra check-nodef runs and
asked for a re-measure; its CI run measured the job at 3 min 00 s.

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

module-layers.md said the driver is never offered a source; player/CLAUDE.md and the
install_uri_product_with_ports doc read as if the driver itself were configured with no
certified capabilities (it is configured with ProductEvidence::opted_in()); webos.rs said
the named shape is the developer probe's and that the ls2::uri worker tries it first (the
order is play-uri's register_ladder, and the worker registers the shape it is given).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…026-11-08, #1276)"

This PR must not touch .github/workflows/; the host-lint timeout tidy goes with a later workflow PR.

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

With the opt-in on, ProductQualifier answered Known for any original: it never read the video
codec, the audio codec, the raster or the caps, and url_carrier certified Dolby Vision whenever the
file had any, so the Dolby Vision check of ResolvePort::qualify always passed. A Profile 5 file on a
set without Dolby Vision (mode Auto), which Standard sends to the server, went to com.webos.media
as the original: wrong colours, or no sound for an audio codec the set cannot decode, and no
failure for the handoff to Standard to act on.

build_stream already decides each of those for Standard. It now carries the verdicts to the
qualifier in OriginalRequest::standard (StandardDirectPlay: video_direct_plays against env.caps,
the frozen Dolby Vision decision's refusal, and audio_natively_plays_with for the selected track,
the set's own decoder only because the app's lossy decode is Standard's alone), and ProductQualifier
answers Unknown unless all three say yes. url_carrier certifies a Dolby Vision record only where the
frozen decision admitted it. The dev qualifier reads none of this, so a test run still forces its
URL.

Tests written first and failing against the old qualifier: five route-level cold resolves (video
codec, raster, Profile 5 without Dolby Vision, an audio codec the set lacks, audio only the app
decodes), each compared against the same resolve as Standard; two controls (a direct-playable
original and a Profile 8 base layer are offered) passed before and after. Prose that said which
videos stay in Standard (playback-settings, the player guide, the migration and layer notes, the
English string note) now says it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Standard sends a container it does not stream (anything but .mkv/.mp4/.m4v, by part_is_streamable)
to a server remux into progressive MKV, but the URI offer is made before that decision and was not
gated on it, so an hevc/ac3 .avi, .mov or .ts that Standard remuxes went to the TV's pipeline as the
original.

StandardDirectPlay now carries a fourth verdict, `container`, fed from the same `streamable` value
build_stream's own gate reads, and plays() requires it. ProductQualifier still derives no rule of its
own. Test written first: the same .avi resolved as Standard and as Experimental through the production
qualifier must be one plan with one wire; it failed against the old gate ("an original Standard would
not direct-play is not offered to URI") and passes now, with an .mp4 control that is still offered.

The gate is Standard's own video, Dolby Vision, audio and container verdicts and nothing more: it is
not the server's direct-play decision, which the URI offer is made before. The prose that describes
the gate (player guide, module layers, playback settings, the migration note, the uri_preflight,
uri_offer and dev route docs) says exactly that, says that any file whose Part carries a subtitle
stream stays in Standard whether or not a subtitle is on (the plan asks for TrackChoice::Off, which the
opt-in does not certify), and that the dev route ignores Standard's video, audio and container
verdicts but not its Dolby Vision one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A production boot initialized ONE ACB handle, player type 10, while the URI
product binding requires player type 0, so every normal boot composed the URI
driver Unbound and the Settings opt-in could never play URI.

On an ACB display the boot now creates one handle per backend the build
composes: Feed's (player type 10, exactly as before, /tmp/plxnative-ptype still
overrides it) and the URI engine's (player type 0), each created and
initialized once and never destroyed. The plane owner holds both
(PlaneHandle, boot_handle, HandleSeat): one binding at a time across both, a
bind of one waits on the other's UNLOADED fence, and a grant makes that handle
the one the seam's verbs address (plane_select / acb_select, the one new
app-side C verb; no new libAcbAPI symbol). The URI gate and the product binding
read the URI handle's boot facts.

Boot log: one "acb handle=.. ptype=.. create=.. initialized=.." line per
handle, and "uri: product binding=.. mode=.. handle=.. ptype=.. initialized=.."
at composition. The product harness cases no longer pin ptype=0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The firmware's completion callback names the core that issued the call
(its first argument is the id AcbAPI_create returned: libAcbAPI 0x15c4c binds
its handle in front of the core's five values; /Volumes/DAS/lgfw/reports/
acb-callback-id/report.md), and each core numbers its tasks from its own
counter, so with two handles the TV's callbacks showed task=1..4 on both.
acb_cb now carries the id through (acb_on_event(id, task, ev, reply),
PlaneCompletion::Done { id, .. }) and logs it (`... id=N` appended, so the
harness's `acb callback task=.. ev=..` pattern still matches). The owner names
the handle by seat id and the machine ignores, logged, a completion of any
handle but the one whose binding is current; an id that is neither seat is
ignored, logged.

Review fixes: diagnostics' acb_ok reads either handle (a uri-only build has
Feed's absent), the plane_initialized / acb_initialized / acb_create comments,
the plane owner's module doc, the product manifest notes, and a separate
refusal for `--extra-trigger ptype` in a product run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 changed the base branch from main to uri-first/acb-uri-handle November 8, 2026 16:34
GLinnik21 and others added 2 commits November 8, 2026 19:47
A PLAYBACK_BACKENDS=none build creates no ACB handle, so backends.rs's c_int
(used by feed_player_type and boot_handle) was an unused import there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from uri-first/acb-uri-handle to main November 8, 2026 17:02
@GLinnik21
GLinnik21 marked this pull request as ready for review November 9, 2026 02:46
GLinnik21 and others added 2 commits November 9, 2026 05:46
…sts, not 1)

experimental_keeps_a_container_standard_does_not_stream_in_standard told the
mock PMS to stop after one request, but an .avi Standard makes three: the
PlayQueue POST (asked beside the plan), the selection PUT and the transcode
/decision. The mock keeps only the first connection it accepts, so the test
compared whichever of POST and PUT raced in first; Standard and Experimental
each won about a third of the time, and the test failed at random in both
directions (left/right swapped between runs). It is not a product divergence:
the full Standard wire is the same three requests whichever engine asked.

The count is now 3, so the sorted, parameter-free wires compared are the
complete ones. The other five parity tests were checked against the real wire
(video 3, raster 3, p5 3, dts 4, app-decode 2) and their counts were right.
The helper's doc now says the count is the whole wire.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 8e486d1 into main Nov 9, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the uri-first/f45-uri-optin branch November 9, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant