Skip to content

Preview: a refused trailer's report names which condition refused it - #1373

Merged
GLinnik21 merged 3 commits into
mainfrom
lane/preview-refusal-reason
Nov 13, 2026
Merged

GLinnik21 merged 3 commits into
mainfrom
lane/preview-refusal-reason

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

A detail-page trailer preview only plays a plain direct play. A refusal reaches Sentry as PlaybackError: preview_not_direct (PLX-NATIVE-23; on 0.9.0 the same refusal was unspecified, PLX-NATIVE-1G, 192 events from 49 users in three weeks), but the report did not say which condition refused it. The suspicion is that Auto quality's bandwidth probe choosing HLS refuses previews the server would direct-play; this tag answers it.

  • PlayVerdict::PreviewNeedsDirectPlay { reason }, chosen by the pure player::preview::refusal as the first failing condition: no_part (no media part), not_direct (the server offered no direct play, including relay and quality-policy refusals), adaptive (a direct play was on offer and Auto chose HLS). plan.rs snapshots the direct-play offer just before Auto's override, so an Auto refusal of an item the server would transcode anyway still reads not_direct.
  • The Sentry tag playback.preview_refusal, written only for kind preview_not_direct. The fingerprint is unchanged, so PLX-NATIVE-23 stays one issue.
  • Consent screen: the legend gains a row for the three reasons (label in all 12 locales), and the failure-kind row is now built from FailureClass::ALL. It listed 9 of 15 kinds and omitted preview_not_direct, jail_missing_rtkmem, load_timeout, release_timeout, resolve_failed and server_stopped, all of which reach reports.
  • PRIVACY.md names the tag and its three values.

Gates

  • Plan tests against the loopback PMS for each reason, including Auto + transcoded item = not_direct (a mutation that ignores the pre-Auto snapshot fails it); a 16-input pure-function test; report and body tests; two legend tests, red before the fix.
  • make test-crate C=plx_telemetry DEPS=1: 362 passed, and its dependants (plx_media 2134, plx_screens 2151, plxnative_modules 1375, plx_data 1626, plx_appkit 953, plx_session 339). make check-nodef: clean. All 12 locale catalogues build.
  • Reviewed once (pr-reviewer): one MAJOR (the tag was not on the consent screen), fixed in the third commit. Belarusian label checked on verbum.by and skarnik.by.
  • Full gates: this PR's CI.

🤖 Generated with Claude Code

GLinnik21 and others added 3 commits November 13, 2026 14:43
A detail-page trailer preview takes only a plain direct play, and a refusal
reached Sentry as `preview_not_direct` (PLX-NATIVE-23; `unspecified` on 0.9.0,
PLX-NATIVE-1G) without saying which condition failed. The refusal now carries
a typed reason, `PlayVerdict::PreviewNeedsDirectPlay { reason }`, and the
report adds it as the closed tag `playback.preview_refusal`, only on the
`preview_not_direct` kind. The fingerprint is unchanged.

`PreviewRefusal` is `no_part`, `not_direct` or `adaptive`, the first failing
condition in that order (`player::preview::refusal`). `not_direct` is judged on
the direct-play answer taken before Auto quality's override: Auto sets
`directplay` false whenever it picks HLS, so reading the reason off the gate's
own inputs would call every Auto refusal `adaptive`, including a preview the
server would have transcoded anyway. That is what keeps `adaptive`, the
suspected Auto-bandwidth-probe cause, a falsifiable answer.

PRIVACY.md lists the tag and its three values; the consent screen's legend is
left as it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`adaptive` is a direct play on offer that Auto did not keep (a slow probe, an
inconclusive probe, an unclassified link), not only a bandwidth finding, and an
enhancement's late remux falls through to `not_direct`. Doc comment only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ery failure kind

The consent screen shows every field a handled report can carry, and the new
`playback.preview_refusal` tag appeared in neither the sample (a
`preview_not_direct` report cannot be the sample) nor the legend. The legend
gets a row of its own for it, from `PreviewRefusal::ALL`, labelled in all 12
languages as belonging to refused-trailer reports only.

The failure-kind row also left out six kinds a report can carry
(`jail_missing_rtkmem`, `load_timeout`, `release_timeout`, `resolve_failed`,
`preview_not_direct`, `server_stopped`), though every `FailureClass` reaches
`report_error`. It is now built from `FailureClass::ALL`, which is no longer
test-only, so a new kind cannot be missing again. Tests read each row's own
line: `not_direct` is a substring of `preview_not_direct`, so a search of the
whole legend would pass for an omission.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit ed3c720 into main Nov 13, 2026
26 of 28 checks passed
@GLinnik21
GLinnik21 deleted the lane/preview-refusal-reason branch November 13, 2026 12:33
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