Withhold persisted podcast cards until the first share sync

After a restart, PodcastDht::maintenance republished every locally active
card as soon as its first bootstrap found peers, before the client could
reconcile with sync_shares, so a share revoked on another trusted device
while this one was offline was re-sent from the stale cache. Own cards are
now neither republished nor served to FindValue until the first
sync_shares of the process (or an explicit publish of that podcast);
tombstones are still sent. The first sync_shares re-sends unchanged cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sanapachandClaude Opus 5.5 committed 2026-11-20 01:03:47 +02:00
1 parent 912527a671
commit 9c82f6d916
6 files changed
+215 -13

No files matched your search

+4 -1
View File
@@ -241,7 +241,10 @@ capability `podcast_dht`), built like the similarity-routing overlay. A
device publishes a card only for podcasts whose merged registers satisfy
`effective_share` (SQLite clients read the merged registers from
`PodcastStore`); `sync_shares` reconciles publications declaratively and
nothing is sent for a podcast the device never published. A card is the
nothing is sent for a podcast the device never published. Own cards persisted
by an earlier run are neither republished nor served until the first
`sync_shares` of the process, so a stale cache cannot revive a share revoked
elsewhere while the device was offline. A card is the
public projection of a podcast (feed URL and channel metadata, no personal
state), signed by the device's iroh identity over a domain-separated
canonical encoding. Only the origin URL the id hashes from is bound to the