From e0624ab7f4bad66777d73f94bf7f9184887a1c74 Mon Sep 17 00:00:00 2001 From: Sanapach Date: Thu, 19 Nov 2026 22:15:09 +0200 Subject: [PATCH] Document what an older device's takeover does to a podcast queue Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 +++- ARCHITECTURE.md | 8 +++++++- CHANGELOG.md | 4 +++- README.md | 9 ++++++--- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 48fe0cb..8cb1fe3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -175,7 +175,9 @@ When changing it: device and its playback commands are ignored while the queue has episodes; never strip episodes from a queue to make it fit an old peer; an older peer still gets the playback coordination, with the queue redacted - (`redact_for_jam`), so its engine does not fail over; + (`redact_for_jam`), so its engine does not fail over, and the + "Private item" music entries it echoes back in its own states are left + out (`drop_echoed_private_items`), never adopted; - apply podcast operations and snapshot sections only through `PodcastStore` (`apply_remote_op`, `apply_snapshot`); never call the podcast store while holding the sync-log connection; diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 7cdd389..6191f0c 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -249,7 +249,13 @@ owner's liveness only from the owner's own announcements, so an old device that heard nothing would take over by automatic failover after `owner_timeout_ms` and replace the queue. This departs from FRID's `PLAYBACK_PROTOCOL.md` rule 1 ("otherwise send `None`") and is reported to -FRID as a contract gap. +FRID as a contract gap. An old device that mirrors such a queue drops the +`source` its types do not know, so each placeholder becomes a music item +titled "Private item"; when it later takes over (Play on it, a paused-startup +claim, failover while this device is gone) or sends a command, it announces +those. States from devices below v4 are therefore cleaned on receipt +(`drop_echoed_private_items`: bare music items with that title and no content +id, federated source, artist, release or duration), with a status message. Active-device leases and idle timing prevent stale snapshots from immediately taking control after a device reconnects. This provides practical coordination diff --git a/CHANGELOG.md b/CHANGELOG.md index eaebb19..2b7a022 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,7 +62,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 such a queue to them is refused ("needs a Furumi update"), and their playback commands are ignored while the queue has episodes. They still get the playback coordination, with each episode shown as "Private item", so - they do not take playback over after two minutes of silence. + they do not take playback over after two minutes of silence. When such a + device does take over, the "Private item" entries it echoes back as music + are left out of the queue here, with a status message. - Jam guests see the host's podcast episodes as "Private item" (no title, feed or address). Guest changes that add, drop or duplicate them, or seek in them, are refused; a guest leaving a Jam drops the placeholders. diff --git a/README.md b/README.md index 2a68245..5d52dde 100644 --- a/README.md +++ b/README.md @@ -268,9 +268,12 @@ Podcasts and your connected devices: ignored while the queue has episodes, and they get no podcast data: they see such a queue with "Private item" in place of each episode, so they keep seeing this device as the playing one. An older device still takes - over when you choose it as the output (Play on it) or when it starts while - this device is paused (`take_paused_on_startup`); this device then shows - that device's queue, without the episodes (their saved positions stay). + over when you choose it as the output (Play on it), when it starts while + this device is paused (`take_paused_on_startup`), or by itself once this + device has been closed, asleep or offline for about two minutes. Its queue + then has an unplayable "Private item" music entry for each episode; this + device shows that queue without them (with a status message), and the + episodes' saved positions stay. - **Audio from the publisher.** Every device streams the episode from the publisher's server itself. Furumi peers never pass podcast audio to each other, and nothing is kept after playback.