feat(sync): accept encrypted seen RSS item marks

Merged
D3
13d ago
+13-4

OpenTubeX now marks RSS feed items as new and lets you mark them as seen or unseen, but those marks only stay on the device where you set them. To sync them, clients need a place to store them on the server.

The server now accepts an encrypted seenRssItems collection with a 16 MiB limit, the same as seen-video and seen-post marks, and advertises seen_rss_items: 1 in /health. Like other collections, it is opaque ciphertext and counts toward the account's 128 MiB total. Clients only sync the collection when the capability is present, so they keep working against older servers.

Older clients are unaffected. They ignore the new capability and only download the collections they know, as with externalMediaPositions in #39.

Proof: the collection limit and /health tests now cover the new collection and capability, and all 13 encrypted sync and health tests pass with the environment CI uses. cargo fmt --check and cargo clippy --all-targets are clean. The 6 tests that fetch real YouTube data fail locally without network access, with or without this change. A Docker build of this server advertised seen_rss_items: 1 and passed e2e/tests/network/sync-server.spec.mjs with the client from the companion pull request, OpenTubeX/OpenTubeX#2659, (11 passed, 1 skipped), which now expects the seenRssItems upload.

Reviewed with sol-loop: 2 rounds with GPT-6.1 Sol on high.
Sol verdict: approved

Made by Claude Opus 5.5 in Claude Code (T3 Code).