Skip to content

Wrongly merged "versions" cannot be split, and tagged folders with different provider IDs merge into one item #318

Closed

Description

@Quick104

Summary

Two related defects in version grouping, validated against a user report (internal Discord thread, reporting user asked "Is there a way to split apart a movie/show that was combined and matched incorrectly?"):

  1. Tagged folders with different provider IDs can merge into one item. Reproduced with Passenger (2026) [imdb-tt33763941][tmdb-1368314] and The Passenger (2026) [imdb-tt32298956][tmdb-1285959]: makeContentGroupKey is title+year only, title normalization strips the leading article, so both folders derive v1|movie|passenger|2026 and stack as four "versions" of one item — with state resolved, not even flagged ambiguous. The explicit tags are parsed but never enter the group key.
  2. There is no in-app repair for a wrong merge. Item-level rematch re-identifies all files; root overrides refuse ambiguous roots with a 409 that points at a "split" operation that does not exist. The only workaround is renaming folders on disk — and watch state accrued under the merged item is never reattributed. Relatedly, item merges (rebindItemToExistingItem) orphan all per-user watch state today.

Expected behavior

  • Files carrying explicit provider tags never merge across different IDs, and always group across folders with the same ID.
  • An admin can split a subset of an item's files to the correct (possibly new) item, durably across rescans, with watch progress/history following the files where evidence allows.
  • Merging duplicate items preserves user watch state.

Scope

Owning project: Silo Server (scanner group inference, catalog, admin API, web admin).

Design spec: docs/superpowers/specs/2026-07-06-split-versions-reassign-design.md.

Acceptance criteria

  • Structured provider tags anchor content-group keys (same tag groups, different tags never merge; untagged libraries keep existing keys).
  • POST /admin/items/{id}/split with dry-run preview, path-scoped identity overrides, and evidence-based watch-state reattribution; POST /admin/items/{id}/merge.
  • Admin UI: Split Versions dialog on item pages; Resolve path from the ambiguous-roots diagnostics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions