row_to_queue hardcoded source "qobuz" for every row, so a local/Plex
row in a local playlist's detail — adopted into the shared page with
its library rowid (or 2^40 synthetic Plex id) — was re-typed as a
catalog track and passed every Qobuz Connect admission guard
(id > 0 && source != local/plex). A row ⋯-menu enqueue with a peer
active pushed the rowid to the WebSocket as a Qobuz catalog id and the
peer renderer played an UNRELATED track; with no peer the bogus id was
synced and resolved to the wrong track locally. That is the
track-source-admission P0 class from the QConnect hardening review.
Make row_to_queue provenance-aware (the row already carries
row.source). Typed correctly, the existing guards do their job: peer
active -> refusal toast, added nowhere (Slint parity); no peer ->
lands local, correctly typed, sync-on-add skips it. Unavailable rows
(raw path / kind:ref ids) parse to 0 and fail the id > 0 guard, so
they can never reach the WS either. One choke point, which also closes
the latent mistype for the day the online-playlist sidecar merge is
ported (PARITY-DEBT #103).
Verified: build + 204/204 tests. Owner smoke: local row enqueue with
QConnect on a peer toasts "Track not castable to Qobuz Connect" and
adds nothing.
km