Skip to content

ADR-0047: List sync across instances

Context

SnatchArr (meaning: automated media search-and-snatch coordinator across *arr instances; origin: English snatch + the *arr suffix of the Servarr ecosystem; pronunciation: /ˈsnætʃ.ɑːr/) already coordinates searches under per-instance hourly caps (AGENTS.md, Contracts). Operator direction on 2026-11-10 identifies cross-instance list syncing as a missing capability (paraphrased; ledger snatcharr-list-sync-gap-20261110). At baseline commit 021c2d147199, no ADR, roadmap entry or issue covered it; the issue search on 2026-11-10 at 19:43 CET covered import lists, exclusions, watchlists and source-specific list-sync terms.

Project terminology

Names already defined in ADR-0036 retain that record's wording. Pronunciations are reading aids; undocumented upstream origins are stated explicitly.

  • Sonarr (meaning: automated television series manager; origin: sonar + *arr; pronunciation: /ˈsoʊ.nɑːr/).
  • Radarr (meaning: automated movie collection manager; origin: radar + *arr; pronunciation: /ˈreɪ.dɑːr/).
  • Lidarr (meaning: automated music collection manager; origin: LIDAR + *arr; pronunciation: /ˈlaɪ.dɑːr/).
  • Readarr (meaning: automated book and audiobook manager; origin: reader + *arr; pronunciation: /ˈriː.dɑːr/).
  • Whisparr (meaning: automated adult video manager in the Servarr stack; origin: whisper + *arr; pronunciation: /ˈwɪs.pɑːr/).
  • Seerr (meaning: media request and discovery manager; origin: shortening of Overseerr and Jellyseerr, from English overseer with the *rr ecosystem suffix; pronunciation: /ˈsɪər/).
  • Overseerr (meaning: Plex media request management UI; origin: overseer + *rr; pronunciation: /ˌoʊ.vərˈsɪər/).
  • Jellyseerr (meaning: Jellyfin and Emby fork of Overseerr; origin: Jellyfin + Overseerr; pronunciation: /ˈdʒɛl.i.sɪər/).
  • Jellyfin (meaning: open-source media system; origin: jellyfish + fin, referring to streaming fins; pronunciation: /ˈdʒɛl.i.fɪn/).
  • Pulsarr (meaning: Plex watchlist-to-*arr bridge; origin: pulsar + *arr; pronunciation: /ˈpʌl.sɑːr/).
  • goenvoy (meaning: typed Go client SDK for *arr and media servers; origin: Go + envoy; pronunciation: /ˈɡoʊ.ɛn.vɔɪ/).
  • Configarr (meaning: configuration reconciler whose import-list definitions are considered here; origin not documented upstream; pronunciation: “config-arr”; source: tagged importListBase.ts below).
  • MDBList (meaning: hosted list service supplying Custom List URLs; origin not documented upstream; pronunciation: “M-D-B-list”; role: D8 and OQ-0047-1).
  • Listrr (meaning: hosted list service supplying Custom List URLs; origin not documented upstream; pronunciation: “list-er”; role: D8 and OQ-0047-1).
  • Trakt (meaning: tracking service with collection and watchlist targets; origin not documented upstream; pronunciation: “tracked”; sources: native notification contracts and SDK survey below).
  • Plex (meaning: media-server and watchlist source; origin not documented upstream; pronunciation: “plex”; source: SDK survey in References).
  • Emby (meaning: media-server source; origin not documented upstream; pronunciation: “em-bee”; source: SDK survey in References).
  • Letterboxd (meaning: tracking source considered for list ingestion; origin not documented upstream; pronunciation: “letter-boxed”; source: SDK survey in References).
  • Simkl (meaning: tracking source available in the SDK survey; origin not documented upstream; pronunciation: “sim-kul”; source: SDK survey in References).
  • Hardcover (meaning: book source considered for list ingestion; origin not documented upstream; pronunciation: “hard-cover”; scope: OQ-0047-1).
  • ListenBrainz (meaning: tracking source considered for list ingestion; origin not documented upstream; pronunciation: “listen-brains”; source: SDK survey in References).
  • TMDb (meaning: video metadata source in the SDK survey; origin not documented upstream; pronunciation: “T-M-D-B”; source: SDK survey in References).
  • TVDb (meaning: video metadata source in the SDK survey; origin not documented upstream; pronunciation: “T-V-D-B”; source: SDK survey in References).

Existing boundaries

The existing request sync stays in api/internal/seerr/sync.go under ADR-0036. Queue rules and their per-rule Blocklist setting live in api/internal/queue/rules.go; ADR-0012 owns removal through the *arr queue API. ADR-0024 creates exclusions during removal with addImportListExclusion or addImportExclusion, so exclusions can originate outside a list controller. ADR-0022 continues to decide instance priority.

ADR-0003 imports source=configarr instances, re-imports linked files on change, and makes those instances read-only in the UI except for snatch policy. The periodic reconciler must follow api/internal/snatch/module.go: registration in the fx group leader_loops through gate.Provide[*T](), rather than starting its own loop.

Pinned application surfaces

The following contracts were checked on 2026-11-10. Readarr's v0.4.18.2805 is its last prerelease and stays a frozen target under ADR-0008. Route support is taken from these tagged contracts, not inferred from SDK method names.

App OpenAPI contract Exclusion base route Exclusion identity Search-on-add field
Sonarr v4.0.20.3014 /api/v3/importlistexclusion tvdbId searchForMissingEpisodes
Radarr v6.4.4.10685 /api/v3/exclusions tmdbId searchOnAdd
Lidarr v3.1.6.5079 /api/v1/importlistexclusion foreignId shouldSearch
Readarr v0.4.18.2805 /api/v1/importlistexclusion foreignId shouldSearch

All four exclusion APIs support base GET/POST and item GET/PUT/DELETE. Sonarr additionally has paged GET and bulk DELETE; Radarr has those plus bulk POST. Lidarr and Readarr have neither paged nor bulk exclusion routes. All four blocklist APIs expose list GET, item DELETE and bulk DELETE, with no POST/PUT/PATCH. BlocklistResource includes sourceTitle, indexer, protocol, quality, date and customFormats, plus languages on Sonarr/Radarr; none exposes a release GUID or info hash (tagged contracts above).

The SDK pins in go.mod are arr/sonarr v1.5.5, arr/radarr v1.5.5, arr/lidarr v1.6.2 and arr/readarr v1.5.2. They carry CreateImportList, UpdateImportListsBulk, CreateImportListExclusion, GetBlocklist and DeleteBlocklistBulk; Radarr also carries CreateImportListExclusionsBulk. However, Lidarr v1.6.2 importlist.go:91,97 calls unsupported /api/v1/importlistexclusion/paged and /bulk routes. Both the pinned application contract and the checked develop OpenAPI at 28ab333eafa1 lack those routes; L0 must fix or drop those SDK methods before adoption.

Configarr v1.39.1 reconciles import-list definitions for Sonarr and Radarr via src/importLists/importListBase.ts, importListSonarr.ts and importListRadarr.ts. Its delete_unmanaged is opt-in, and it does not sync exclusions (tagged source); this establishes the D4 ownership boundary.

Writable import-list field audit

The four pinned clients use the shared ProviderResource shape, arr/v2.6.2, arr/types.go:253–324; their import-list methods and application contracts are cited per app below. This audit lists writable controls missing from that shape or exposed under the wrong JSON name. The cited ToModel assignments copy resource values into the model, so omitted booleans, enums and profile IDs can overwrite existing settings with their default values on PUT.

App SDK pin and shape Dropped or misnamed writable fields Pinned application contract and mapper
Sonarr arr/sonarr v1.5.5 uses ProviderResource. enableAutomaticAdd (the SDK has enableAuto instead), searchForMissingEpisodes, monitorNewItems, seriesType and seasonFolder. v4.0.20.3014 contract; ToModel assignments.
Radarr arr/radarr v1.5.5 uses ProviderResource. enabled, monitor (the SDK has shouldMonitor instead), searchOnAdd and minimumAvailability. v6.4.4.10685 contract; ToModel assignments.
Lidarr arr/lidarr v1.6.2 uses ProviderResource. enableAutomaticAdd (the SDK has enableAuto instead), shouldMonitorExisting, shouldSearch, monitorNewItems and metadataProfileId. v3.1.6.5079 contract; ToModel assignments.
Readarr arr/readarr v1.5.2 uses ProviderResource. enableAutomaticAdd (the SDK has enableAuto instead), shouldMonitorExisting, shouldSearch, monitorNewItems and metadataProfileId. v0.4.18.2805 contract; ToModel assignments.

Maintained projects compared

Before any new code, 30 projects and services were compared on the four scopes: S1 external lists into *arr instances, S2 import-list and exclusion sync across instances of one app, S3 blocklist sync between instances, S4 state written back to source lists. Licence, latest release, default branch head and last push were read from each forge on 2026-11-10 (GitHub API, re-checked 19:47 CET); part means a partial cover. Names ending in -arr follow the Servarr naming pattern (an English word plus arr, read as “-ar”); the What it is column gives each name's meaning.

Project What it is Licence Latest release Default branch head Last push S1 / S2 / S3 / S4 Fit
Pulsarr Plex watchlist bridge into Sonarr and Radarr, routing per instance AGPL-3.0 v1.1.1 2026-11-08 3317440ac1e0 2026-11-08 2026-11-09 yes / - / - / - link out (D8)
Seerr request manager (successor of Overseerr and Jellyseerr) MIT v3.5.1 2026-10-21 3f7d5c3bd2af 2026-11-09 2026-11-10 yes / - / - / part call its API
Configarr declarative *arr configuration sync, import lists for Sonarr and Radarr AGPL-3.0 v1.39.1 2026-11-06 deaeba18dcd6 2026-11-06 2026-11-06 part / part / - / - borrow design
Recyclarr quality profile and custom format sync MIT v8.8.1 2026-10-28 3eaa713021c3 2026-11-04 2026-11-08 - / - / - / - none
Traktarr adds Trakt lists to Sonarr and Radarr GPL-3.0 1.2.5 2019-11-09 52d71964a2cd 2023-03-14 2023-03-14 yes / - / - / - borrow design
Watchlistarr Plex watchlist bridge into Sonarr and Radarr GPL-3.0 v0.2.6 2024-10-17 bce86ec684f9 2025-11-08 2025-11-08 yes / - / - / - borrow design
Syncarr content sync between two *arr instances MIT 1.13.1 2021-06-07 cfe9a7198bfa 2023-11-15 2024-03-15 - / - / - / - borrow design
Cleanuparr download queue cleanup GPL-3.0 v2.11.0 2026-11-07 aa2a7923945a 2026-11-08 2026-11-08 - / - / - / - none
Ombi request portal GPL-2.0 v4.53.10 2026-05-30 3855cacf0bc0 2026-11-06 2026-11-06 part / - / - / - link out
Petio request portal MIT v0.5.5 2024-03-30 abda13502a89 2025-01-17 2025-01-17 part / - / - / - none
Buildarr core declarative *arr configuration, one plugin per app GPL-3.0 v0.7.1 2023-11-13 093bd02e8269 2024-05-04 2024-05-04 part / part / - / - borrow design
Buildarr Sonarr plugin Buildarr plugin for Sonarr GPL-3.0 v0.6.4 2024-03-02 0a847c823d0b 2024-05-04 2024-05-04 part / part / - / - borrow design
Buildarr Radarr plugin Buildarr plugin for Radarr, lists and exclusions GPL-3.0 v0.2.6 2024-04-26 9e1909cdc178 2024-04-26 2024-04-26 part / yes / - / - borrow design
Excludarr rule-driven import exclusions MIT v2.0.1 2026-11-05 527c295d039b 2026-11-05 2026-11-05 - / - / - / - borrow design
Listrr legacy public source old public source of the Listrr list builder GPL-3.0 none published 31fc23bf53ad 2022-10-14 2022-12-08 part / - / - / - borrow design
Listrr Sonarr bridge old Listrr to Sonarr bridge AGPL-3.0 none published f2ce60bf2d53 2022-11-21 2022-11-21 yes / - / - / - none
ListSync external lists into Seerr requests MIT v0.6.6 2025-12-11 b635a833e1bb 2025-12-30 2025-12-30 yes / - / - / - link out
Kometa Plex collection and metadata manager (formerly Plex Meta Manager) MIT v2.5.4 2026-10-31 cc35af068696 2026-10-31 2026-11-10 yes / - / - / part link out
Blockbusterr Trakt-driven discovery adder for Sonarr and Radarr MIT v2.0.1 2026-09-13 1e5f468844b7 2026-09-13 2026-09-13 yes / - / - / - link out
BookOtter Hardcover want-to-read matcher MIT none published b12a2c79aa9b 2026-09-29 2026-09-29 - / - / - / - borrow design
MDBList Jellyfin plugin Jellyfin watched and collected sync to MDBList GPL-3.0 v1.0.0.21 2026-11-06 6618101a796c 2026-11-06 2026-11-06 - / - / - / part link out
MDBList Emby plugin Emby watched and collected sync to MDBList GPL-3.0 v1.1.16 2026-10-30 0a1f2cdc35c6 2026-10-30 2026-10-30 - / - / - / part link out
Fetcharr Plex watchlist bridge into Sonarr and Radarr MIT 0.1.18 2026-06-30 2be2032081ef 2026-06-30 2026-06-30 yes / - / - / - link out
Sonobarr music discovery for Lidarr MIT 0.13.0 2026-09-09 830ed8d170b2 2026-09-09 2026-09-09 yes / - / - / - call its API
FlexGet automation tool with list add and remove plugins MIT v3.22.12 2026-11-09 b752e146ec3e 2026-11-09 2026-11-09 yes / - / - / part borrow design
MDBListarr MDBList lists into *arr instances none declared none published cd98d34e43e0 2026-11-02 2026-11-02 yes / - / - / part link out
Notifiarr client notification client with MDBList library sync MIT v0.10.0 2026-11-07 7b3bf89382d5 2026-11-09 2026-11-09 part / - / - / part link out
Listrr service hosted list builder serving Custom List URLs - - - - hosted service, no public source link out
MDBList service hosted list service serving Custom List URLs - - - - hosted service, no public source link out (D8)
Huntarr missing-media hunter - - - - origin returns 404, unassessed none

No project covers S2 across all four apps or S3 at all. Buildarr's Radarr plugin is the closest S2 precedent (one app, dormant since 2024), and FlexGet and Kometa cover parts of S4 inside their own workflows. The surveyed fit (call its API, borrow design, link out, none) feeds D8; no code is reused from them.

Decision

D1. Cross-instance list controller

SnatchArr controls list definitions and exclusions across every instance of one application, called an app group. There is one group for each of Sonarr, Radarr, Lidarr and Readarr; Whisparr is outside this record. The applications' native import lists fetch list content. SnatchArr fans out configuration and admits list-added items into its wanted planner; it does not become a list fetcher. Sources without a native kind follow the OQ-0047-1 answer: documented MDBList and Listrr Custom List link-outs now, and a SnatchArr-served Custom List feed for one source only after a measured adopter gap.

D2. Search-on-add off; searches use hourly caps

Every definition SnatchArr writes disables search-on-add: ImportListResource.searchForMissingEpisodes for Sonarr, searchOnAdd for Radarr, and shouldSearch for Lidarr and Readarr (the tagged OpenAPI contracts in References). Added items enter SnatchArr's wanted planner and are searched under the existing hourly caps and ADR-0022 priority. The cap counts searches sent per indexer, rather than HTTP requests or added titles (AGENTS.md, Contracts).

An unmanaged list with search-on-add enabled produces the observe finding “list searches outside SnatchArr's caps”. SnatchArr never edits it outside act mode. L4 must verify both the written fields and the unmanaged-list finding.

L0 must first preserve the complete writable import-list shape for each app, including every control in the pinned field audit, existing provider fields and explicit false versus absent values; the shared ProviderResource, arr/types.go:253–324 is insufficient. L0 must also decode, retain and expose to the read model each provider field's privacy and hidden metadata: Sonarr Field.cs:21–22, Radarr Field.cs:21–22 and Lidarr Field.cs:21–22 declare both, while Readarr Field.cs:6–29 exposes only hidden, set by SchemaBuilder.cs:144–146. The pinned ProviderField, arr/types.go:232–243 retains value but drops both markers, so the known-name fallback alone cannot classify an unknown hidden secret. Use app-specific, presence-aware typed fields rather than raw unknown-field passthrough because exact JSON names and required-field checks make omissions explicit before the pinned mappers overwrite existing settings (the audit's contract and ToModel citations). A missing app-required field must produce an incomplete-read finding and prevent a definition write, never a safe default. L1 adoption waits for L0's four-app full-shape round-trip evidence and released SDK pins; L3 definition writes and L4's search-on-add tests depend on that same preservation contract.

D3. Fan out by name; map root paths per target

One definition, keyed by name, applies to every group member, excluding the member-local credentials below. Resolve quality profiles, metadata profiles where supported, and tags by name on each target; never copy instance-local IDs between instances. For all four apps, use a SnatchArr-owned root alias mapped explicitly to one absolute path per target, then validate that path against the target's GET /api/v3/rootfolder (Sonarr/Radarr) or GET /api/v1/rootfolder (Lidarr/Readarr), using the tagged contracts in Context. Sonarr and Radarr expose a root path, not a name (Sonarr resource:9–16, Radarr resource:9–16); a uniform alias-to-path mapping avoids assuming identical mounts even where an app also exposes a root name. A missing or ambiguous profile, alias mapping or registered path produces a plan error and no write to that target. L0 preserves the complete per-app writable shape through target-local remapping, including Lidarr and Readarr metadataProfileId (Lidarr mapper:57–66, Readarr mapper:57–66); L3 changes only the intended non-credential definition, mapped references and D2 search flags, retaining every target's own credential fields and other writable settings. L3 tests different target mount paths, local profile IDs, preservation of non-default controls and the no-write failure paths.

Credential and secret provider fields are member-local and never fan out: OAuth tokens and their expiry/user fields, and every field whose Privacy is ApiKey, Password or UserName. SnatchArr classifies them using the privacy and hidden metadata preserved by L0 (D2), plus a pinned per-implementation field list derived from upstream annotations; Readarr exposes hidden but no privacy and therefore also relies on that list (Field.cs:6–29). Any field read without the classification metadata, whether through an old SDK or a missing key, is member-local (fail closed); those privacy levels are declared in Readarr's FieldDefinitionAttribute.cs:25–26,96–102. The list must include accessToken, refreshToken, expires and authUser for every Trakt implementation inheriting Sonarr's TraktSettingsBase.cs:50–60 or Radarr's TraktSettingsBase.cs:50–60: these hidden fields have no privacy level and therefore are not protected by privacy-based masking. Fail closed for every unknown hidden field by treating it as member-local, never as shareable configuration.

Trakt access tokens last seven days, and every successful refresh issues a new access token and refresh token and immediately invalidates the submitted refresh token (official Trakt authentication guide). Each member refreshes and stores its replacement tokens independently through _importListRepository.UpdateSettings (Sonarr TraktImportBase.cs:118–141, Radarr TraktImportBase.cs:76–95); sharing a refresh token would let one member invalidate another's authorization.

Require separate authorization on each target. A target without its own authorization produces the observe finding list_sync_member_authorization_required and receives zero definition writes. Existing-member updates must preserve that member's own credential fields; if the adapter cannot verify preservation without copying their values, refuse the write with the same finding. SnatchArr never copies, stores or returns these provider-credential values, including through shared definitions, plans, persistence, API responses or logs; AGENTS.md's separate encrypted-at-rest, write-only handling of *arr connection API keys remains required. Source ******** placeholders never fan out: Sonarr SchemaBuilder.cs:18,40–43,67–74, Radarr SchemaBuilder.cs:18,40–43,67–74 and Lidarr SchemaBuilder.cs:18,40–43,66–73 mask ApiKey/Password fields and preserve a masked value only from the existing model on that instance, so a placeholder supplies no authorization to a new target. L3 must prove isolation across members; L0's same-instance GET-to-PUT-to-GET round trip cannot detect token sharing or invalidation caused by a different member's refresh (Trakt refresh contract).

D4. One writer alongside Configarr

On a source=configarr instance, Configarr owns list definitions whenever its effective import_lists.data is nonempty or import_lists.delete_unmanaged.enabled is true, including empty or omitted data and entries covered by ignore. SnatchArr then writes no list definitions on that instance; it must not recreate a list Configarr intentionally pruned. Configarr's importListBase.ts:53–60,189–195 fetches existing lists even with empty data when pruning is enabled and deletes names outside the declared/ignored set. This conservative instance-wide boundary preserves OQ-0047-2's one-writer policy and avoids a reconciliation loop; L3 tests both declared lists and empty-data pruning. Configarr does not manage exclusions (Context), so SnatchArr may still sync exclusions there in act mode, preserving ADR-0003's ownership boundary.

Evaluate notifications independently: nonempty notifications.data or notifications.delete_unmanaged.enabled makes Configarr the sole notification writer on that instance, even with empty data or ignored names. Its notifications.ts:168–180,353–386 reconciles and prunes notifications separately from import lists. D7 notification fan-out is refused there with an ownership finding; list ownership alone does not decide notification ownership. Unreadable effective Configarr configuration also refuses the affected writes. An ownership handoff requires the previous owner to disable its native writers and confirm that state before the new owner enables them (D7); L6 tests notification ownership, pruning with empty data and the handoff. Refusal is safer than two controllers overwriting each other's event settings (ADR-0003).

D5. Exclusion union with observed-removal tombstones

An exclusion's identity is its app-specific foreign ID: Sonarr tvdbId, Radarr tmdbId, Lidarr foreignId, Readarr foreignId (tagged OpenAPI contracts). An exclusion observed on one member is added to the others. A removal propagates only after SnatchArr has observed that exclusion on that member and subsequently observed it gone; an initially absent exclusion is not a removal. Persist that observation history and tombstones so a simple union does not resurrect a removal. OQ-0047-3 chose this policy.

Use Radarr's bulk exclusion POST; the other apps receive single POSTs with a scalar per-tick bound. L2 must test union and tombstones for ties, empty groups, one member, and seen versus unseen removals, and prove the fake log contains only exclusion POST/DELETE calls.

D6. Blocklist propagation through queue removal

None of the four pinned applications accepts blocklist insertion. Never replay blocklist records or write an application's database. Read each member's blocklist into deny records keyed exactly by (app, canonicalIndexer, protocol, sourceTitle); use no fuzzy matching. Configure an explicit mapping from (member ID, local indexer name) to a group-wide canonical indexer key, for both blocklist and grab-history records; never infer equivalence from equal display names. The pinned Sonarr BlocklistResource:7850–7901 exposes the local indexer string but no release GUID or info hash. An absent or ambiguous mapping produces a finding and no queue removal, because skipping an unverified identity is safer than blocking another indexer's release. L5 tests the same indexer under different local names, unrelated indexers and missing mappings.

Add blocklisted_elsewhere to the ADR-0012 queue rules in api/internal/queue/rules.go. Obtain the original release sourceTitle, indexer and protocol from a grabbed-history record joined to the queue item's downloadId within that member, using its pinned History API; a download ID is a local join key, not a cross-instance release identity. Sonarr strips file extensions from QueueService.cs:60–81, while HistoryService.cs:138–169 and BlocklistService.cs:74–88 preserve the original release title. Do not substitute the queue's display title or strip an extension from either side. Missing, conflicting or incomplete grab history produces a finding and no removal; page reads have a scalar bound and an incomplete read cannot authorize a match (AGENTS.md, HISS-02). L5 tests an original .mkv title against its stripped queue title, missing/conflicting history and a near-miss original title.

When another member's queue item matches that exact key, removal goes through that member's *arr queue API with blocklist=true; the application creates its own blocklist entry through that allowed path. ADR-0012's observe-first, strikes and bounded-removal rules still apply, including removeFromClient=true and skipRedownload=true. There is no download-client call under ADR-0006 or ADR-0046. The cost is one started grab per member before propagation can block that release there. This refines OQ-0047-4's exact-key policy by resolving local names and original titles; L5 checks matching and the queue call in api/internal/queue/rules_test.go.

D7. Two-way behaviour, with explicit limits

Collection additions use native Trakt Connect on each Sonarr/Radarr member for which D4 permits notification ownership. SnatchArr owns only notifications it created and recorded by member, notification ID and expected configuration in API Postgres; a matching name alone never grants ownership (AGENTS.md, Contracts; api/internal/store/). In act mode, set onDownload=true and onUpgrade=true on those owned notifications. On Sonarr, explicitly set onImportComplete=false, onSeriesAdd=false, onSeriesDelete=false, onEpisodeFileDelete=false and onEpisodeFileDeleteForUpgrade=false; on Radarr, set onMovieAdded=false, onMovieDelete=false, onMovieFileDelete=false and onMovieFileDeleteForUpgrade=false. All other mutable event flags default false. The pinned notification contracts expose those flags; native Sonarr Trakt.cs:36–65 and Radarr Trakt.cs:32–47 add on import and remove on local deletion independently of other members. Disabling every native deletion event is the safe shared-account policy because one remaining copy must keep its collection entry. L6 verifies exact flags per member and the remaining-copy case.

The API leader alone removes an owned collection entry through goenvoy RemoveFromCollection, trakt.go:750–752, after fresh, complete inventory reads prove that no group member retains the movie or episode represented by that entry. Persist the collection account, foreign media identity and SnatchArr contribution before allowing removal; unowned entries and a Sonarr series with any retained collected episode are never removed wholesale (AGENTS.md, Contracts; api/internal/store/). Offline members, unknown inventory or an unmanaged delete-enabled notification sharing that account block removal and raise a finding; do not disable user-owned notifications. L6 tests one of two copies deleted, last-copy removal, an offline member and an unowned entry. Retaining an uncertain collection entry is safer than deleting shared state still backed by a member.

For source watchlists, retain Trakt RemoveFromWatchlist and TMDb AddToWatchlist(watchlist=false) as per-list opt-ins, off by default and observe first (pinned trakt.go:728–731, pinned tmdb.go:1057–1065). Before the first removal attempt, the API persists a delivery record keyed by source account/list, foreign title identity and group membership revision, with the full intended-member set, per-member admission acknowledgements and the import trigger (AGENTS.md, Contracts; api/internal/store/). An acknowledgement requires that member's API to confirm the title is in its library by foreign ID; the first import alone is insufficient. Remove only after at least one verified import and admission by every intended member, with fresh reachability and D7 cleanup checks for all of them. Native list fetches run independently (Sonarr sync:105–115, Radarr sync:68–82); preserving the source entry until all admissions prevents a fast member from starving a slower one. Offline or unacknowledged members keep removal pending indefinitely with a finding, never an expiry-based waiver. Restart and retries retain acknowledgements; membership changes invalidate the removal plan and require the new intended set to be acknowledged, with no automatic shrinking of that set. L6 tests staggered polling, offline recovery, membership changes, restart and duplicate import events in api/internal/listsync/writeback_test.go (planned).

Before any watchlist removal, read each intended target's instance-wide GET /api/v3/config/importlist and allow only listSyncLevel=disabled or logOnly, refusing missing, unknown or any other value without changing it. Radarr's ImportListSyncService.cs:183–221 also accepts keepAndUnmonitor, removeAndKeep and removeAndDelete; the latter two remove library entries and the last deletes files. Sonarr's ImportListSyncService.cs:293–336 instead has keepAndUnmonitor and keepAndTag. The common allow-list preserves admitted library state when a source entry disappears. Recheck immediately before a write, and suspend pending removals with a finding when configuration becomes incompatible; L6 exercises both safe values and every rejected value, including Radarr file deletion after a title leaves its only list.

TMDb removal uses a user-authorized v3 session, not the application's read-access Bearer token alone. The pinned SDK tmdb.go:37–43,1057–1065 installs only application Bearer authentication and omits session_id from watchlist writes. L6 must extend goenvoy with session acquisition and a session-aware write, release it and bump go.mod before enabling TMDb removal. Follow TMDb's session flow: request a token with GET /3/authentication/token/new, direct the user to TMDb approval, then exchange the approved token with POST /3/authentication/session/new; bind the resulting session to its verified account ID and send session_id on POST /3/account/{account_id}/watchlist. Store the session encrypted at rest and expose it only as a write-only API input, following AGENTS.md's secret-storage boundary; redact it from request logs. Missing, revoked or wrong-account sessions refuse removal with a finding. L6 tests the approval exchange, authenticated watchlist=false request, missing-session refusal and account mismatch against a fake service, never a live account.

Withdrawing act mode or a list/group's write authorization stops new source writes immediately and enters a durable notification-revocation transition. While ownership remains with SnatchArr, disable all mutable event flags on each recorded owned notification through the target API and read them back before reporting observe effective; this teardown is the only allowed configuration write during withdrawal (D10; api/internal/store/). Never change an unowned notification. An offline target leaves revocation pending with an explicit finding and is retried before any re-enable, including after restart. A flag update cannot cancel a notification already dispatched by the native Sonarr service:191–207,407–423 or Radarr service:149–165,315–355; report that in-flight limitation during withdrawal rather than promise instantaneous cessation. L6 tests imports and deletions after confirmed disable, pending revocation while offline, restart recovery and preservation of unowned notifications in api/internal/listsync/notifications_test.go (planned). A Plex watchlist still waits for a goenvoy plex.tv watchlist client; the local-server-only boundary remains as recorded in the SDK survey in References.

Watched/read state write-back remains outside this record. ADR-0024 reads watch state and writes none back; scrobbling stays with media-server plugins, such as the MDBList Jellyfin and Emby plugins in the survey table. Lidarr and Readarr have no write-back target in this record; that is an explicit coverage gap, not an implied fallback.

D8. Reuse existing fetchers and ownership

Seerr requests keep their existing sync and ADR-0036 ownership. Pulsarr remains a link-out for multi-instance Plex watchlist routing. MDBList and Listrr content enters through each application's native Custom List kind where available: fan out the list URL, without calling an MDBList API. Readarr has no Custom List kind (tagged OpenAPI contract); the OQ-0047-1 answer keeps that limit.

Borrow Configarr's schema-driven reconciliation and opt-in delete_unmanaged design. No code is copied from GPL/AGPL projects; SnatchArr's code is EUPL-1.2 (LICENSES/EUPL-1.2.txt). The project survey in References informs design and link-outs, not code reuse.

D9. Leader-only reconciliation

Register the reconciler in the fx group leader_loops through gate.Provide[*T](), following api/internal/snatch/module.go. The elected API leader owns reconciliation, consistent with the existing wanted planner and ADR-0012 queue sweep.

D10. Observe first for every write class

Definitions, exclusions, the blocklist queue rule and source write-back all default to observe per app group. Native notification fan-out follows the same boundary. Show planned writes through the API and UI; act requires explicit opt-in per group, and upgrades keep observe. Per-list source write-back additionally requires D7's opt-in, admission barrier, cleanup allow-list and authenticated account. Initial/steady observe schedules zero writes; withdrawal permits only D7's ownership-aware notification disable/read-back and stays visibly pending on unreachable members. L1–L6 must distinguish initial/steady observe from revocation, verify zero reconciler source writes during withdrawal, and verify newly triggered native import/delete events produce no writes after confirmed disable, while retaining D7's limitation for already dispatched requests (AGENTS.md, Contracts; L6's planned api/internal/listsync/notifications_test.go).

Answered questions

The operator answered all five questions on 2026-11-10. Answers are paraphrased; each one matches the recommendation in the question list that follows.

ID Ledger ID Answer letter Answer
OQ-0047-1 snatcharr-oq-0047-1-unlisted-sources c Document the MDBList and Listrr Custom List link-out now, with no code; SnatchArr serves its own Custom List feed for a source only after a measured adopter gap.
OQ-0047-2 snatcharr-oq-0047-2-configarr-lists a Configarr owns import-list definitions on instances whose Configarr file declares them; SnatchArr syncs only exclusions there, one writer per field.
OQ-0047-3 snatcharr-oq-0047-3-exclusion-merge a Union with tombstones: an exclusion added on any member spreads to all; a removal spreads only after SnatchArr saw the exclusion exist and then vanish.
OQ-0047-4 snatcharr-oq-0047-4-blocklist-sync a Queue rule blocklisted_elsewhere with an exact (app, indexer, protocol, sourceTitle) match, removal through the queue API, observe first; no *arr database writes, no download-client calls and no upstream request.
OQ-0047-5 snatcharr-oq-0047-5-source-writeback a Native Trakt Connect plus per-list opt-in removal from Trakt and TMDb watchlists after import, off by default and observe first; a Plex watchlist waits for a goenvoy client.

Questions as asked

The table keeps each question with its options, risks and recommendation as asked.

ID Question Options with risk Recommended
OQ-0047-1 How should sources without a native list kind enter: Letterboxd, Jellyfin/Emby favourites or playlists, Hardcover and ListenBrainz? a) Link out to MDBList / Listrr Custom Lists only (risk: hosted service and account; Jellyfin/Emby favourites uncovered). b) Serve Custom List JSON feeds built from goenvoy clients (risk: new fetchers to maintain; Readarr has no Custom List kind). c) Use a now, then consider b per source after a measured gap (risk: uncovered sources wait for that evidence). c
OQ-0047-2 Who owns Configarr-declared lists? a) Configarr owns declared lists; SnatchArr syncs exclusions only there (risk: two tools to configure). b) SnatchArr owns lists everywhere and warns users to drop Configarr importLists (risk: two writers until they do). a
OQ-0047-3 Which exclusion semantics should apply? a) Union with tombstones (risk: an unwanted exclusion spreads group-wide). b) Mirror one primary member to the others (risk: exclusions added on other members are dropped). a
OQ-0047-4 How should blocklist propagation work? a) Exact-key blocklisted_elsewhere queue rule, observe first (risk: one started grab per member). b) No blocklist sync (risk: the same bad release is grabbed on every member). c) a plus an upstream request for a blocklist insertion route (risk: external post requiring ask-first approval). a
OQ-0047-5 Should import remove titles from their source watchlists? a) Remove from Trakt and TMDb watchlists after import, per-list opt-in and observe first; Plex after a goenvoy plex.tv client (risk: removes a title the user still wants listed). b) Collection only through native Trakt Connect (risk: watchlists keep downloaded titles). a

Implementation slices

This record adds no implementation. Execute these slices in order; every open question is answered. Test paths and case names below are implementation deliverables, not claims that those tests exist or ran with this record. Each slice that ships code ships with an end-to-end test through the served API and UI; add its scenarios to the planned web/e2e/features/1080-list-sync.test.ts alongside the named unit/integration cases. SDK-only L0 instead proves the client contract before any served feature adopts it (go.mod; D2–D3).

Slice Deliverable Verification before next
L0 In goenvoy, fix or drop Lidarr's unsupported paged/bulk exclusion methods; preserve the complete writable import-list shape per app with the presence-aware typed fields chosen in D2, including every dropped or misnamed control in the pinned field audit against ProviderResource:253–324, provider-field privacy and hidden metadata through decoding and read-model exposure (D2), plus onImportComplete for D7 disable/read-back. Release, then bump all affected pins in go.mod; L1 adoption waits for the full-shape evidence. In upstream arr/lidarr/importlist_test.go, TestPinnedExclusionRoutes refuses planted /paged and /bulk calls. In upstream arr/resource_test.go, add TestImportListFullShapeRoundTrip with enabled lists and non-default fixtures for Sonarr, Radarr, Lidarr and Readarr, covering every writable field, exact JSON names, true/false/absent search flags, distinct metadata profile IDs where supported, and GET-to-PUT-to-GET preservation. Add TestProviderFieldKeepsPrivacyAndHidden there: per-app fixtures must retain privacy and hidden through decode → struct → encode, with Readarr supplying hidden only as pinned in D2. Run that planted fixture against the old ProviderField first and record its failure, then require the fixed SDK to pass it unchanged. Run planted dropped-field fixtures against the old SDK first and record their failure, then require the fixed SDK to pass unchanged fixtures; absent required controls must remain incomplete and block writes. TestNotificationDisableRoundTrip retains explicit false event flags, including onImportComplete.
L1 Adopt only the SDK release and pins backed by L0's four-app TestImportListFullShapeRoundTrip evidence (D2; pinned field audit). Observe read model: definitions, exclusions and blocklists from every member; expose drift and incomplete-read findings per group through API and UI (D1–D2, D10). Planned api/internal/listsync/read_model_test.go: TestObserveReadModel shows planted drift for all four apps, preserves enabled and non-default list controls from L0 fixtures, refuses to infer safety from missing required fields and records zero writes; TestUpgradeKeepsObserve covers the upgrade path.
L2 D5 exclusion sync with act opt-in, following the accepted OQ-0047-3 answer. Planned api/internal/listsync/exclusions_test.go: TestExclusionUnionTombstones and its property cases cover ties, empty input, one member and seen/unseen removals; fake logs contain only exclusion POST/DELETE calls and no writes in observe.
L3 D3 definition fan-out with root alias-to-path mappings, target-local profiles and member-local credentials; D4 Configarr list ownership, including pruning with empty data. Planned api/internal/listsync/definitions_test.go: TestRootAliasDifferentPaths resolves different mount paths and local profile IDs on all four apps; TestMissingTargetResolutionNoWrite covers absent/ambiguous mappings, profiles and roots. Add TestFanOutKeepsMemberCredentials: for Sonarr and Radarr, two or more members start with different Trakt tokens; fan-out followed by a simulated refresh on one member preserves every other member's tokens, expiry and user. A new target without authorization yields list_sync_member_authorization_required and zero writes; an existing target whose credential preservation cannot be verified also receives zero writes. Across all four apps, privacy fields (ApiKey, Password, UserName), unknown hidden fields and source ******** placeholders never leave the source through fan-out, persisted plans or API output. Add TestUnknownHiddenFieldStaysLocal in api/internal/listsync/definitions_test.go: an unknown field with hidden set and another with privacy=apiKey, using L0-preserved metadata (D2–D3), never enter the shared definition, persisted plan or API output, and one member's value never reaches another member; missing-metadata cases must also stay member-local. Replay a planted classifier that drops the markers and shares unknown fields before the fix, record its failure, and require the unchanged cases to pass with D3's boundary. Replay a planted token-copying implementation before the fix and record its failure, then require the unchanged cases to pass with D3's boundary; L0's same-instance round trip cannot exercise another member's refresh (Trakt refresh contract). Planned api/internal/listsync/ownership_test.go: TestConfigarrDeclaredListsOwned and TestConfigarrEmptyDataPrunes prove zero definition writes with nonempty data or pruning enabled with empty/omitted data, including ignored names and repeated reconciliations.
L4 D2 search-on-add guard, using L0's lossless typed fields. Planned api/internal/listsync/search_guard_test.go: TestSearchOnAddAlwaysDisabled property cases cover all four written app fields; TestUnmanagedSearchOnAddFinding decodes true from the SDK and emits the observe finding without a write; missing required fields remain incomplete rather than false.
L5 D6 blocklisted_elsewhere queue rule with canonical indexer mappings and original grab-history titles. In api/internal/queue/rules_test.go, add TestBlocklistedElsewhereIndexerAliases for different local names mapped to the same indexer, unrelated indexers and missing/ambiguous mappings; add TestBlocklistedElsewhereOriginalGrabTitle for a .mkv original title with a stripped queue title, missing/conflicting history, local-only download-ID joins and a near-miss original title. Verify queue API removal with blocklist=true, removeFromClient=true, skipRedownload=true, bounded strikes/removals and zero observe writes.
L6 D7 owned import-only Trakt notifications, group-aware collection removal, durable all-member watchlist admission, cleanup checks, TMDb session authentication and notification revocation; D4 notification ownership. Release and pin the goenvoy session extension before TMDb enablement (go.mod). Planned api/internal/listsync/notifications_test.go: TestCollectionRemainingCopy, TestCollectionLastCopy (including offline members and unowned entries), TestConfigarrNotificationOwnership (declared notifications, empty-data pruning, independent list ownership, unknown config and safe handoff), and TestActToObserveDisablesOwnedNotifications (exact flags, newly triggered imports/deletions after disable, offline pending, restart, in-flight limitation and unowned notifications). Planned api/internal/listsync/writeback_test.go: TestWatchlistAdmissionBarrier (staggered polls, offline recovery, membership revision, restart and duplicate events), TestWatchlistCleanupModes (safe modes allowed, every other/missing/unknown mode refused, Radarr only-list file-deletion scenario), and TestTMDbSessionBinding (approval exchange, missing/revoked session and wrong account). In upstream metadata/video/tmdb/tmdb_test.go, add TestAuthenticatedWatchlistWrite asserting session_id, application authentication and watchlist=false against a fake endpoint. All source removals require opt-in; the reconciler issues zero source writes in observe and during withdrawal.
L7 Sources without a native kind, per OQ-0047-1: document the MDBList and Listrr Custom List link-out per app; no code. A SnatchArr-served feed for one source needs a measured adopter gap and its own record. make docs-verify passes with the page; the page names the Custom List kind per app from the pinned contracts and states Readarr's missing Custom List kind rather than substituting an unsupported kind.

Class defence

Enforce one writer with a Semgrep rule in .semgrep.yml, with its fixture under tools/ci/semgrep/testdata. Refuse goenvoy import-list, exclusion, notification and source collection/watchlist write calls outside the list-sync package. Match client identity, including import aliases, rather than matching only method names. Queue removals remain in ADR-0012's queue path; D6 does not introduce a blocklist insertion call.

Follow .semgrep.yml's existing fixture convention: ruleid: marks calls that must be reported and ok: marks allowed calls. Include planted forbidden calls, alias imports and allowed list-sync calls. Replay the planted fixture with the rule absent (passes), then present (refused). L4's property test of D2 supplies an independent behavioural defence for cap bypass through search-on-add. Each new check ships a planted negative case and runs once without its fix.

This ADR adds no executable check. The rule, fixtures, property tests and their replay evidence remain implementation deliverables, not enforcement claims made by this documentation change.

Consequences

Positive

  • One definition and exclusion set spans each app group, with target-local profile resolution, explicit root path mappings and one writer (D1, D3–D5).
  • List-added items enter the existing capped search planner rather than triggering uncapped search-on-add (D2; L4).
  • Blocklist knowledge spreads through the existing queue API boundary without database writes (D6; L5).
  • Native lists, goenvoy clients and Configarr's reconciliation design are reused; Seerr requests retain their existing owner (D4, D8).

Negative

  • Configarr-owned lists and notifications remain outside SnatchArr's control, including empty-data pruning policies, so those users configure two tools (D4; OQ-0047-2).
  • Blocklist propagation costs one started grab per member and cannot replay an entry pre-emptively (D6).
  • Readarr has no Custom List kind, and Lidarr/Readarr have no write-back target in this record (D7–D8).
  • MDBList and Listrr are hosted services; link-outs require their availability and an account (OQ-0047-1).
  • Reconciliation needs durable per-member observations, tombstones, admission acknowledgements and notification ownership/revocation state; uncertain or offline members delay removals (D5–D7; api/internal/store/).
  • L0 must repair the SDK's unsupported Lidarr routes and missing typed fields; L6 must add user-session authentication before TMDb write-back can be enabled (D2–D3, D7; go.mod).

References