Plex corpus: fail closed on exact item and media source identity - #310
Merged
Conversation
jlipworth
force-pushed
the
codex/plex-corpus-audit
branch
from
September 14, 2026 01:47
ae5bf2f to
59c4624
Compare
This was referenced Sep 14, 2026
Closed
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.
Scope
Fixes #309. Plex debug playback probes bind fresh metadata to an exact title, ratingKey, Media ID and single Part ID, resolving the current media index rather than selecting version zero. Missing, mismatched, duplicate and multipart sources fail closed before playback.
Read-only discovery hydrates at most five unique exact-title hits into a private app-container file; runners must check freshness and match paths/sizes against their private inventory. The opt-in mobile Plex Link test uses ordinary browser authorization, never token injection.
Rebased directly onto current main (
ba427332), excluding already-squashed PR306 history and preserving merged Emby identity tests and condensed corpus/auth guidance. Five-file harness/docs scope; no production decoder, HDR, Plex profile, or infrastructure changes.Validation on this rebased PR alone
Limits and follow-up
The later 27-report corpus stack audit is historical dependent-stack evidence, not validation of PR310 alone. PR313 evidence-provenance and PR314 track-transition changes are separate, unchanged and not included here. Whole-file Direct Play, broad codec/seek coverage and physical-device display/audio/HDR acceptance are not established by this bounded revalidation. All source bindings, paths, frames and raw logs remain private and gitignored.
Awaiting parent review and exact-head merge approval; do not merge automatically.