Skip to content

URI exported window: selected per firmware major from an evidence table, empty today - #1307

Merged
GLinnik21 merged 2 commits into
mainfrom
uri5/pr4-exported-strata
Nov 9, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
uri5/pr4-exported-strata

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

URI exported window: selected per firmware major from an evidence table, empty today

On webOS 5+ the URI backend can drive the TV's exported window, but production has never been
allowed to choose it: product_binding composed it for no one, and only a debug override could
bind it. This change gives production a rule for choosing it, and ships the rule with nothing
admitted, so no release changes behaviour: every webOS 5+ release still plays Standard, with no
handoff and no extra latency (a webOS 4.x set keeps its ACB path, which this table does not touch).

What changes

  • product_binding(display_mode, plane, initialized, firmware_major, strata) (play-uri): on a display
    in the exported-window mode and a firmware_major that strata lists, it returns
    Binding::Exported on the 1920x1080 canvas. Anything else gets what it got before: the ACB plane
    when its gate holds, otherwise Unbound. A major of 0 (unknown) is never admitted, whatever the
    table lists. It stays a pure function; the table is an argument, never a cfg(test) constant (play-uri
    is in ci/check-deps.sh's fork scope), so tests pass their own.

  • EXPORTED_STRATA: &[u32] = &[]. Its doc comment is the admission rule. A major is admitted with all
    three parts in docs/uri-mode.md's Results table, each with the tester log's decisive lines, and never
    on the developer probe's evidence alone: (a) the major's own firmware image reads option.windowId at
    load (decompile); (b) a tester's product-path run on a debug build (boot line evidence=override) shows
    a moving picture with sound, placed and proportioned right, supported by the probe's summary tokens
    load=ok, playing=yes, currentTime_advanced=yes and window=exported; (c) the probe's drive
    tokens (pause=froze, resume=sent with resume_from= at or after the paused position minus
    1000 ms, seek=hit, audio=ok or an audio_at_load=) and the product run's pause, seek and audio doing
    what the viewer asked. One exception: a decompile-only major is admitted when both neighbouring majors
    are admitted on tester evidence, and its row says "bracketed, no tester run". Each future entry carries
    a comment naming its Results row.

  • install_uri_product reads device::info().major at the IO side and passes it, with
    EXPORTED_STRATA, into uri_product_binding (which takes both as parameters, so it is testable
    without the OnceLock). The debug override keeps composing after it and logging its own
    evidence=override line.

  • The boot line gains the major and where the binding's evidence came from:

    uri: product binding=Unbound mode=2 handle=false ptype=10 initialized=false major=11 evidence=none
    uri: product binding=Exported { canvas: (1920, 1080) } mode=2 handle=false ptype=10 initialized=false major=11 evidence=table
    

    (evidence=table only for a binding the table composed. none says the table admitted nothing, not
    that the play is Standard: a 4.x ACB set reads none and still plays URI through ACB for a viewer who
    opted in.)

  • docs/uri-mode.md: one paragraph stating the table, the admission rule and that a webOS 5+ release
    without an entry plays Standard. Two doc comments that said the product never selects the exported window now
    name the table.

Verification

Host tests; nothing here is device behaviour while the table is empty.

  • play-uri: a table over real inputs with its own strata: a listed major gives Exported; an unlisted
    major, major 0 (also when listed), an empty table, and VP_NONE give Unbound; VP_ACB is unchanged
    and never becomes Exported. Written first against a signature stub: the listed-major case failed
    (Unbound where Exported was expected), then passed with the change.
  • application crate: the composition over a booted sink: production's empty table is Unbound for every
    major 0..=30; a slice listing the major gives Exported; an unlisted major and major 0 do not; a
    non-exported display never does. The boot line's major= / evidence= is pinned, and was seen to fail
    with the evidence label mislabelled before it passed.
  • media: ProductEvidence::unqualified_on(VP_EXPORTED, Exported).opted_in() permits exact progressive
    through the exported window and through nothing else (it was not covered by a unit test).

Part of the webOS 5+ URI work tracked in #1064; does not close it.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits November 9, 2026 20:01
… evidence table, empty today

`product_binding` takes the firmware major and a table of admitted majors: on a display in
the exported-window mode and a major the table lists it composes `Exported` on the 1920x1080
canvas, otherwise what it composed before (ACB unchanged, everything else Unbound). A major of
0 (unknown) is never admitted. Production passes `EXPORTED_STRATA`, which ships empty, so no
release changes behaviour: every set without an entry plays Standard. The doc comment on the
table is the admission rule (decompile, tester picture/placement/aspect, tester drive gate, or
a major bracketed by two tester-proven neighbours).

`install_uri_product` reads `device::info().major` at the IO side and hands it, with the table,
to `uri_product_binding`, whose boot line now ends `major=<n> evidence=table|none`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… evidence, and narrow "plays Standard" to webOS 5+

The doc on `EXPORTED_STRATA` (and the matching paragraph in docs/uri-mode.md) quoted a probe
summary line as the picture evidence. Only the probe prints a summary, and the quoted tokens are
not contiguous. The rule now reads: (a) the firmware image reads `option.windowId` at load; (b) a
tester's product-path run on a debug build (boot line `evidence=override`) shows the picture,
supported by the probe's summary tokens; (c) the probe's drive tokens and the product run's own
pause, seek and audio. A release is never admitted on probe evidence alone.

"Plays Standard" was also wrong for a webOS 4.x ACB set, where an opted-in viewer still plays URI
through ACB: it is now said only of a webOS 5+ release without an entry, and the boot-line doc
says `evidence=none` is not the same as Standard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 1c4d4f5 into main Nov 9, 2026
22 of 23 checks passed
@GLinnik21
GLinnik21 deleted the uri5/pr4-exported-strata branch November 9, 2026 17:46
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