Skip to content

docs(watchsync): define watched state for a finished series - #63

Merged
Quick104 merged 1 commit into
mainfrom
docs/series-watched-state
Nov 9, 2026
Merged

Quick104 merged 1 commit into
mainfrom
docs/series-watched-state

Conversation

@Quick104

@Quick104 Quick104 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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 of last_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.go changes. Plugins can send it with any existing SDK release. No release is needed for this change on its own.

Downstream:

Validation

  • make proto (buf generate with 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 only pkg/pluginsdk/runtime/scan_source_test.go. This change doesn't touch it, and main lists it too.

Evidence: https://evidence.siloserver.org/r/silo-plugin-sdk/series-watched-state/

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: The contract wording was part of the plan reviewed by gpt-6.1-sol (xhigh) and claude-opus-5-5 (high), and of the multi-agent code review at high effort. This docs-only PR gets no background review.

🤖 Generated with Claude Code

Note

Document watched-state semantics for finished series in WatchSyncRemoteWatchedState

Adds documentation comments to the WatchSyncRemoteWatchedState message in watch_sync_provider.proto and regenerates the Go bindings in watch_sync_provider.pb.go.

  • Clarifies that watched state represents plays for MOVIE and EPISODE items, and series completion for SERIES items as of the required last_watched_at timestamp.
  • Documents host behavior: mark regular-season episodes aired by last_watched_at or lacking an air date, exclude season 0 specials, and apply this state only when the provider lists no episodes.
  • Notes that hosts predating SERIES support skip the item with a warning.

Macroscope summarized cab7760.

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-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 8, 2026
@silo-kody

silo-kody Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The WatchSyncRemoteWatchedState documentation now defines how hosts represent watched state for finished series, including the timestamp, episode selection, provider conditions, and handling by older hosts.

Changes: Series watched state

Layer / File(s) Summary
Document series watched-state handling
proto/silo/plugin/v1/watch_sync_provider.proto
The documentation specifies that the state represents a finished series as of last_watched_at. It describes which episodes hosts mark, when providers use this representation, and how older hosts handle it.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested labels: documentation, size/S

Merge Risk: Minimal · up to cab77

No actionable merge-blocking risk was identified.

Architecture risk: Low · up to cab77

The change affects 1 system.

Changed systems: proto

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — proto (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in proto/silo/plugin/v1/watch_sync_provider.proto: Added documentation specifying the meaning and handling of watched state for SERIES items, including the timestamp requirement, which episodes the host marks, when providers should use the representation, and how older hosts handle it.
Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title names the docs(watchsync) change and the subject it defines: watched state for a finished series. That matches the raw summary, which says the doc comment on WatchSyncRemoteWatchedState now …
Description check Passed The description states the problem (Simkl lists no episodes for completed shows, so finished series never reached Silo), the change (a doc comment on WatchSyncRemoteWatchedState defining SERIES watche…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the docs(watchsync) change and the subject it defines: watched state for a finished series. That matches the raw summary, which says the doc comment on WatchSyncRemoteWatchedState now defines how watched state applies to a finished series. The title is short, a single line, and specific enough for a reviewer scanning history.

Full details: Description check

Explanation

The description states the problem (Simkl lists no episodes for completed shows, so finished series never reached Silo), the change (a doc comment on WatchSyncRemoteWatchedState defining SERIES watched state), compatibility impact (no field, enum, or wire change), downstream PRs, and validation steps. It matches the raw summary and the PR objectives.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Buf (1.74.0)

proto/silo/plugin/v1/watch_sync_provider.proto

fatal: unable to access 'https://github.com/Silo-Server/silo-plugin-sdk.git/': Failed to connect to github.com:443 over proxy 127.0.0.1 after 0 ms: Could not connect to server
fatal: could not fetch f74d3dc207718469b435e8b765ba26a7c3aee8ca from promisor remote

CODERABBIT_BUF_COMPATIBILITY_PHASE=materialize-base

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1d1cea36-75e6-4e69-b0d1-8a31200d0b9e
Commits

Reviewing files that changed from the base of the PR and between 484878a and cab7760.

Files ignored due to path filters: 1

  • pkg/pluginproto/silo/plugin/v1/watch_sync_provider.pb.go is excluded by !**/*.pb.go
Files selected for processing: 1

  • proto/silo/plugin/v1/watch_sync_provider.proto

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T17:30:27.148015Z cab7760 PR opened
🔒 Security Review ✅ Completed 2026-11-08T17:31:29.541584Z cab7760 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai coderabbitai Bot added the documentation Improvements or additions to documentation label Nov 8, 2026
@silo-triage silo-triage Bot added the triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. label Nov 8, 2026
@Quick104
Quick104 merged commit 2710a5a into main Nov 9, 2026
4 checks passed
@Quick104
Quick104 deleted the docs/series-watched-state branch November 9, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/S 0–49 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant