Repository navigation
docs(watchsync): define watched state for a finished series - #63
Conversation
Simkl lists no episodes for a show on its completed list, so a plugin could not report that the account finished it. Watched state on a SERIES item now means the account finished the series as of last_watched_at: the host marks the local regular-season episodes that had aired by then and leaves specials alone. No field or wire change. Related: Silo-Server/silo-plugin-watchprovider-simkl#11 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Related issue: Silo-Server/silo-plugin-watchprovider-simkl#11
Simkl lists no episodes for a show on its completed list. A watch-sync plugin had no defined way to say an account finished a series, so finished shows never reached Silo. This documents what watched state on a SERIES item means.
Change
A doc comment on
WatchSyncRemoteWatchedState. On a SERIES item, watched state means the account finished the series as oflast_watched_at, which is then required. The host marks every local regular-season episode that had aired by that time, or that has no air date, and leaves specials (season 0) alone. A plugin should send it only when the provider lists no episodes for a finished series. Hosts without support skip such an item with a warning.Compatibility and release impact: no field, enum, or wire change. Only the comment in the generated
watch_sync_provider.pb.gochanges. Plugins can send it with any existing SDK release. No release is needed for this change on its own.Downstream:
Validation
make proto(buf generatewith the pinned protoc-gen-go v1.36.11 and protoc-gen-go-grpc v1.6.1) changes only the matching comment in generated code.go test ./...,go vet ./..., and the four example builds pass.gofmt -l .lists onlypkg/pluginsdk/runtime/scan_source_test.go. This change doesn't touch it, andmainlists it too.Evidence: https://evidence.siloserver.org/r/silo-plugin-sdk/series-watched-state/
AI Disclosure
🤖 Generated with Claude Code
Note
Document watched-state semantics for finished series in
WatchSyncRemoteWatchedStateAdds documentation comments to the
WatchSyncRemoteWatchedStatemessage in watch_sync_provider.proto and regenerates the Go bindings in watch_sync_provider.pb.go.last_watched_attimestamp.last_watched_ator lacking an air date, exclude season 0 specials, and apply this state only when the provider lists no episodes.Macroscope summarized cab7760.