Repository navigation
The URI backend returns as plx_play_uri: installed in the shipping binary, never selected, dev triggers back (P5) - #1275
Merged
Merged
Conversation
…hipping set Integ's URI backend (play-uri crate, the product driver and dev routes in the application, the uriprobe drive, uri_preflight/decision_memory prose, the platform uri-transport feature, the URI product test cases and measurement notes), with the build/package matrix (PLAYBACK_BACKENDS, the single-backend CI jobs, the ELF/package re-grading, the removal-drill document) left for a later change. The shipping set is one fixed list, play-uri,play-feed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lab-diagnostics list and the layer doc src/video_plane.c takes integ's reworded comments only: its acb_unload still had the stack local that main's fw-compat round replaced with a static slot. docs/module-layers.md gains the play_uri layer row and paragraph; docs/lab-diagnostics.md quotes the unit-suite list with the new crate. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The doc audit of origin/main...carve/p5 found twelve sentences the tree makes false or leaves dangling; all are fixed here: - docs/module-layers.md: tv::uri::installed() is resolved by the composition in every play-uri build, not only by the devtriggers probe. - player/CLAUDE.md: product_binding lives in plx_play_uri::backend. - docs/building.md: check-nodef passes play-uri,play-feed. - app/playback.rs: the track-menu doc block is back on commit_track, not on the first of the three URI fallback functions inserted above it. - which-tier skill, tests/README.md: drop the hard counts (14 test binaries, 20/21 cases, "two" product cases) for the census commands. - docs/agent-reference.md: the release hook's layer list does not watch playback-contract, media-codecs, play-feed or play-uri. - player/mod.rs + machine.rs: the video-plane bit is also set while the product URI driver owns the ACB plane. - platform tv/uri.rs, play-uri uriprobe.rs, Makefile comment: transport doc names both users; dangling ForegroundLifecycle link; the RUST_FEATFLAGS note names "at least one backend". - fw-compat-reviewer agent: scope names play-uri/src, starfish.h and the LS2 URI worker with its LSCall import. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…sts/run.py keeps main's moved locators (review round) Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Nov 7, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Nov 7, 2026
The fixes the P5 carve made after it took integ's tree (git diff fdd1461 55bad42): src/video_plane.c acb_unload uses main's zeroed static task-id slot, ci/check-deps.sh's sink gate holds $SRC_PLAY_URI to the injected sink like $SRC_PLAY_FEED, tests/run.py's three moved locators, docs/module-layers.md's play_uri row, fw-compat-reviewer's play-uri scope, and the audit round's prose. Four files conflicted with integ's matrix rewrite (Makefile comment, ci/check-package.py, ci/rust_toolchain.py, fw-compat-reviewer.md); the patch's hunks for the two python files are comment fixes inside blocks the matrix replaced, so integ's side stays; the other two carry the fix and the matrix lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
added a commit
that referenced
this pull request
Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The URI playback backend lands as its own crate and joins the shipping feature set, but production never selects it: Feed stays the
only backend a normal play uses. The owner's decision (F45) is that a Settings opt-in turns URI on later, in its own PR.
plx_play_uri(rust-modules/play-uri/, layerplay_uri, namesbase,platform,playback_contract): thecom.webos.mediaprotocol and request lifecycle (
uri_protocol,uri_lifecycle), the LS2 session I/O (session_io), the ACB bind machine and itsenvelope map (
acb_bind,acb_drive,acb_envelope), the picture gate, the trace/event text, and the product driverbackend::UriBackend, which implements the contract'sUriDriver. The developer probe's machine and driver (uriprobe,uriprobe_drive) live here too: P3+P4 tookuriprobe.rs,uri_lifecycle.rsanduri_protocol.rsout ofplx_media, and they returnin this crate.
plx_mediadoes not name it: the route planner and the player adapter see the contract's traits and theUriProbeport.app/adapters/backends.rs::install_uri_product, behind the application crate'splay-urifeature(
default = play-uri,play-feed,devtools,devtriggers,threadcheck).RUST_BACKEND_FEATURES = play-uri,play-feedin the Makefile, soRELEASE=1is--no-default-features --features play-uri,play-feedandmake check-nodefpasses the same words.plxnative-uriprobe(src/dev/uriprobe.rs, the URI mode on webOS 5+: looking for testers with a newer TV #1064 probe) andplxnative-uridev(
src/dev/uri_product.rs, the debug-only route that makes the production driver play a URL) work again indevtriggersbuilds;docs/uri-mode.mdandplayer/CLAUDE.mddescribe them again, and the "arrives in a later PR" sentences P3+P4 left are true as written.uri-transport(turned on byplay-uri):webos.rs'sURI_MEDIA = ls2::uri::Transport, theLSCallexternand the
com.webos.mediaworker (webos/ls2/uri.rs) are now gated on it instead of ondevtriggers.ci/test_*/check-*pins, the Makefile lists,ci.yml's budget--src,tools/build-bench.py, every quotedcargo test --lib -p ...line),ci/{machines,list-caps,module-layers}.ini,ci/check-deps.sh(SRC_PLAY_URIin every scan list),docs/module-layers.md'splay_urirow (18 layers), the three URImeasurement notes, and the
tests/URI cases and HLS fixtures.PLAYBACK_BACKENDS, the uri/feed/none variants,ci/expected-dt-needed-uri.txt,ci/test_sim_backend.py,docs/uri-first-migration.md, the backend-removal drill).git grepfor any of those names prints nothing.Behaviour
non-controlled boot and is never offered a source. The chain, file:line on this branch (
rust-modules/):src/app/boot.rs:2325->src/app/adapters/backends.rs:110compose_backends->:320install_uri_product->:342install_uri_product_with_ports.UriBackend::newis pure construction (play-uri/src/backend.rs:119); the LS2 workerthread (
ls2uri, spawned inTransport::open,platform/src/webos/ls2/uri.rs:84) opens only on aStartwith a staged source(
play-uri/src/session_io.rs).media/src/route/uri_preflight.rs:40-52(ProductEvidence::unqualified_on:certifiedallfalse),
:332could_qualify_pmsfalse,:368qualify_pmsreturnsUnavailableCapabilitybefore it asks the qualifier,:498-501ProductQualifieranswersVerdict::Unknown,:312-314the defaultqualify_pmsisPmsVerdict::Unknown.media/src/route/plan.rs:1984(theuri_preflight_portgate),:2037-2040(uri_originalonly on a Knownverdict),
:2044-2046(pms_uri_possibleneedscould_qualify_pms),:3052-3088;route/decision.rs:10739-10777builds auri_offeronly fromuri_known/uri_pms_known.route/backend_policy.rs:131-163every offer startsQualification::Unknown,:207choose()opens only aQualified offer; the only production write of
Qualifiedfor Uri ismedia/src/player/adapter.rs:1065-1110offer_qualified_uri, which needs aQualifiedUriOfferfrompump_play(src/app/run.rs:2864-2880), i.e. from the planner above.src/dev/uri_product.rsreplaces the qualifier (backends.rs:333,#[cfg(feature = "devtriggers")]) andsrc/dev/uriprobe.rsinstalls the probe (backends.rs:131,devtriggers+play-uri);plx_base::devtrig::readreturnsNonewithout
devtriggers(base/src/devtrig.rs:135-136);media/src/player/route_start.rs:425readsplxnative-uriprobethrough that samereader.
RELEASE=1passes--no-default-features --features play-uri,play-feed(Makefile:563), so none of the devcode is compiled into a shipped binary.
src/app/run_uri_boot_tests.rs:239boot_without_source_certificate_keeps_feed_offer(a qualifier that WOULD qualify,unqualified evidence: the Feed offer opens, no URI Load), green in
make test-hostsim.play-uri,play-feed. Binary size, stripped, fat-LTO (ARM_PROFILE=release), measured on this tree:make ipk FLAVOR=debug(the CI cross-build job's artifact, default features) 17,570,496 bytes;make RELEASE=116,091,088 bytes.ci/build-budgets.jsonkeeps main'sbinary_byteslimit of 18,750,000 (it grades the first number): the measured binary does notexceed it, so the limit is not raised; integ's 20,000,000 is not brought. The recorded baseline is 17,041,608 (2026-11-06), so
the CI-shape binary grew by 528,888 bytes (3.1%) with the dormant backend linked in.
measured/measured_onin the JSON aremain's and not re-recorded.
app/run.rs:2024-2031callsplx_media::player::retire_if_server_stoppedon every foreground tickwhenever
play-uriis on, whichever backend plays. It is idempotent, for the Feed and for no live backend:accept_server_stop(media/src/player/mod.rs:1515) returns false with no side effect when the session has no URL or noserver-stop note applies (one atomic load,
with_server_stop:1497); when the stop is already retired it returns true afterdiscard_stale_flight_landing(route/flight.rs:456, one atomic load when the mailbox is empty), andrelease_server_stopped_engine(route_start.rs:880) tears down only while something still plays (pa.is_live(),adapter.rs:1943,active_uri_attempt(), or a queued Feed start), none of which holds after the first teardown. The Feed's ownpumpopens with the same door every frame (player/pump.rs:1071) andstop_for_replacementcalls it too (route_start.rs:859),so the new call is the same door earlier in the same frame;
foreground_flight_tests::server_stop_retires_a_parked_resume_and_cancels_an_outstanding_rebuildcovers a stop followed by polled frames.
LSCalland theuri-transportcode are in the shipping binary. Before this PR they weredevtriggers-only.LSCallis ahard import (
.dynsymFUNC GLOBAL DEFAULT UND) oflibluna-service2.so.3, which is alreadyDT_NEEDED; the worker threadstarts only on
open, which a release build never reaches (see the chain above).ci/check-elf.shdoes not nameLSCall; on theRELEASE=1 link it passes every assertion and reports
DT_NEEDED15 entries, unchanged, equal toci/expected-dt-needed.txt.tools/fwcompat.py --min-release 4.4.2on the release ELF: 15DT_NEEDED, 362 global undefined symbols, all resolved on every gatedrelease (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);
LSCallis in all 14 inventories.backendtag of the playback error report already allowsunknown/feed/uri(
PRIVACY.md).backend=uriis now producible, and only from a dev trigger:media/src/player/report.rs:612-622takes it from theterminal failure's attempt, which is a URI attempt only after
begin_attempt_view(.., Backend::Uri)(adapter.rs:2231), reachedonly through the chain above. A production play reports
feedorunknown. Same Errors consent, same report, no identifier, URL orsource text.
src/video_plane.ckeeps main'sacb_unload(its own zeroedstatic long unload_task):integ's copy predates the fw-compat fix, so the one C hunk here is comments only;
starfish.his a comment line.Content size (non-whitespace characters of the changed paths,
origin/main-> branch)Git reports 85 files changed (22 added, 63 modified; +17,622/-305 lines). Almost all of it is the new crate and the tests that exercise it.
Left for P7
The build/package matrix:
PLAYBACK_BACKENDS(both/uri/feed/none) and the per-backend feature / native-source / link-input selection,ci/expected-dt-needed-uri.txtand thecheck-elf.shmodes,ci/test_sim_backend.py, the matrix packages inbuild-package.yml,docs/uri-first-migration.md, the backend-removal drill, and the prose that describes the matrix. A Settings opt-in that makes URIselectable is a later PR of its own.
Verification
Run on the committed tree (
git status --shortempty before and after):make checkon cd1f63a: 126 steps, all ok (595 s wall); 43 libtesttest result:lines, every oneok., 25,462 passed, 0 failed,198 ignored (several crates run under more than one feature configuration, so the sum counts some tests twice; the lines are per
crate, never one total). Among them:
plx_play_uri203,plx_playback_contract40,plx_platform402,plx_play_feed300,plx_media1927 (84 ignored),plxnative-modules1236, hostsimplx_media2194 (84 ignored) and the application's hostsim suite 1419;tests/test_harness.py722 tests OK. The same counts on 99692b2 before the audit round.ci/test_no_host_staticlib.py(11),ci/test_build_not_always_dirty.py(10) andtests/test_mock_pms_library.py(121) are notmake checksteps; run on their own, OK.make check-nodef(the shipping set,--no-default-features --features play-uri,play-feed): ok.bash ci/check-deps.sh: all gates green,no
ci/allow/line added or changed.ci/check-module-layers.py: 18 layers.ARM_PROFILE=release, on cd1f63a (the same two sizes were measured on 99692b2, before the comment-only audit round):make+make ipk FLAVOR=debug(CI's cross-build shape) andmake RELEASE=1both link;bash ci/check-elf.shpasses every assertion on each (hook export,
exitinterposer, 0 CP15 barriers, soft-float/libm,DT_NEEDED15 entries unchanged,storage helper 6 entries unchanged, no build-host paths);
python3 ci/check-build-budgets.py --binary <staged>ok, numbers above;python3 tools/fwcompat.py --min-release 4.4.2 <RELEASE=1 ELF>exit 0, OK on all nine gated releases.fw-compat-revieweronorigin/main...carve/p5(graded the two ELFs above withtools/fwcompat.py): PASS WITH NOTES, loader start and symbolresolution only.
LSCall's declaration (webos.rs:660-668) matches the NDKlunaservice.hprototype; no newextern "C"/dynlib!/#[link]/dlopenwas added (play-uri/srchas none; its ACB calls go throughDisplaySinkto the unchangedsys::acb_*externs); no newDT_NEEDED; no LS2 registration is reachable at boot in a release build (two independent guards: thequalifier answers
Unknownand the certified capabilities are all false). Notes, none fixed here: (1) the production driverregisters on the bus only as
com.webos.media.client.plxprobe(backend.rs:270), with no anonymous fallback outside thedevtriggers probe, so on a set without that role an attempt would fail at register: bounded, non-fatal, unreachable in release,
to be settled before any opt-in PR certifies a source; (2)
acb_send_atmoslacks astarfish.hprototype, as on main. Notverifiable without the device:
com.webos.mediaregistration shapes and the LS2 event schema off the 4.x set, webOS 5+ ACGrules, ACB behavior beyond 4.10. The reviewer's agent file now names
play-uri/src,starfish.hand the LS2 URI worker.doc-claim-auditoronorigin/main...carve/p5: 12 findings, all fixed in cd1f63a (docs/module-layers.mdtv::urisentence,player/CLAUDE.mdproduct_bindinglocator,docs/building.mdcheck-nodefcommand, the track-menu doc block that sat onreconfigure_uri_audio, the video-plane-bit prose inplayer/{mod,machine}.rs,platform/tv/uri.rs's header, a dangling link inplay-uri/src/uriprobe.rs, thewhich-tier"14 binaries" count,tests/README.md's case counts, the release hook's layer list indocs/agent-reference.md, theRUST_FEATFLAGScomment in the Makefile). No "arrives in a later PR" sentence and no matrix proseremains. Not touched: the Claude-only hook
.claude/hooks/release-config-check.pystill watches thirteen layer crates and the bare--no-default-features(it covers neitherplay-feednorplay-uri);docs/agent-reference.mdsays so, and the hook itself is theowner's.
pr-revieweronorigin/main...cd1f63ace, then 55bad42): the dormancy chain above was re-checked line by line and holds(no path missed: boot, the foreground tick,
commit_track,update(), telemetry, settings). Fixed:ci/check-deps.sh'ssinkgate now holdsplay-urito the injected sink exactly asplay-feed(it may name the traits, never resolvetv::sink::installed/display_installed)instead of a blanket pass;
tests/run.pykeeps main's three moved locators (plx_play_feed::fps_rational,plx_play_feed::sink_envelope,route_start::start_bufferfeed). On 55bad42:bash ci/check-deps.shall gates green,python3 tests/test_harness.py722 tests OK.tests/manifest.jsonpipeline cases this PR adds: probe route (uriprobe=load/acb-control)pipe_abr_uri_ladder_collapse,pipe_abr_uri_ladder_capped,pipe_abr_uri_continuous_20000,pipe_uri_hls_720p24_20m_bound,pipe_uri_hls_720p24_20m_bound_collapse;product route (
plxnative-uridev,--guest --mock)pipe_uri_product_hls_720p24_20m_bound,..._bound_collapse,pipe_uri_product_hls_720p24_2a_audio2,..._audio1. All need adevtriggersbuild; none is in aRELEASE=1package.build-bench
make build-bench --runs 3without the incremental rows, interleaved, same host. The base run was taken under heavier load (swap 94 %,26 load warnings) than the head run (5 warnings), so the negative deltas are noise, not a speed-up; compare medians only.
Unit suite: main 12,201 passed / 0 failed / 99 ignored, P5 12,444 / 0 / 99. ARM staticlib archive 121.1 MiB -> 122.0 MiB.
TV regression
The pipeline tier (
tests/run.py --pipeline --panel off) on the dev set, with theARM_PROFILE=releasebinary of 55bad42 deployedand its md5 checked on the set: 57 passed, 0 failed. The run was stopped at the owner's request when the set was needed, during the 58th
of 61 cases (
pipe_h264_1080p5994); three did not start (pipe_hevc_4k_60fps,pipe_seek_inplace,pipe_side_reader_srt). Those four areFeed cases this PR does not touch;
pipe_h264_1080p5994,pipe_hevc_4k_60fpsandpipe_seek_inplacepassed on the P3+P4 binary (#1274) theday before. All nine new URI cases passed: the five probe-route cases (
pipe_abr_uri_ladder_collapse,pipe_abr_uri_ladder_capped,pipe_abr_uri_continuous_20000,pipe_uri_hls_720p24_20m_bound,pipe_uri_hls_720p24_20m_bound_collapse) and the four product-routecases (
pipe_uri_product_hls_720p24_20m_bound,..._bound_collapse,pipe_uri_product_hls_720p24_2a_audio2,..._audio1).Related: #1064
🤖 Generated with Claude Code