Skip to content

Webhook ingestion — Plex #1237

Open
Open

Description

@zZebrahz

Validate Plex for Webhook ingestion. Parent: [v1] Webhook ingestion #1236.

Use the parent's Webhook ingestion acceptance v1 criteria, fixtures and scope decisions. Product criteria: published feature card.

Cases

  • C1: Send supported watched-status events for the named source and verify mapped Silo profile state agrees (AC1).
  • C2: Replay an event and exercise distinct users/items; confirm no duplicate side effects or cross-profile changes (AC1).
  • C3: Reject unauthorized or malformed intake without changing watched state (AC1, security regression check).

Results

Case Plex
C1 Not run
C2 Not run
C3 Not run

References and related work

The parent links the published milestone, recorded source commit, readiness plan and validation ledger. Its existing reports are candidates, not confirmed blockers. Link observed failures to these case IDs and the owning issue; preserve existing relationships and unaffected results.


AI-assisted tracking setup using OpenAI Codex and GitHub CLI, at the maintainer's direction. No runtime validation or human acceptance is claimed.

Activity

  1. added this to the v1.0 milestone on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. added
    v1.0
    on Sep 19, 2026
  4. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
  5. Rhainland commented on Oct 9, 2026

    @Rhainland
    Contributor

    C1, C2 and C3 pass on #2179 (commit 03a1537ee, stacked on #2178). The same steps on main (7696287dd) fail every C1 step. This was an AI-run sandbox check without a real Plex server, so it doesn't replace a validator's run on Plex Pass, and the Results table above is unchanged.

    Setup: Silo was built from the commit above. Plex webhooks need Plex Pass, which wasn't available, so a stand-in Plex server answered /accounts and /library/metadata. Deliveries were Plex-format multipart payload webhooks. The stand-in's owner view state differed from every other account on every item: one movie watched twice in 2024, one never watched, and an episode paused at 6:40. Three Plex accounts were mapped to three Silo profiles: the owner (account 1, mapped automatically when the connection was created), a managed user and a shared user. Expected state for all 12 profile/item pairs was checked after every step.

    Case On #2179 On main
    C1 Pass. Managed user: pause at 5:00 gave resume 5:00, unwatched. Scrobble gave watched with one play. A stop at 9:50 left no resume point. Owner: scrobble of the movie the server shows unwatched gave watched. Shared user: episode pause at 2:00 then stop at 3:20 gave resume 3:20. Fail. Each event used the owner's state from the server, so the managed user's events resolved to the owner's 2024 watch, the owner's scrobble stayed unwatched, and the episode resume came from the owner.
    C2 Pass. A scrobble resent four times in one playback was skipped. A new media.play followed by a scrobble recorded a second play. Other profiles and items never changed. Fail, inherited from C1.
    C3 Pass. Wrong secret: 404. JSON instead of multipart, no payload field, non-JSON payload, payload without Account or Metadata: 400. media.rate and an unmapped account's scrobble: 204 with nothing applied. Body over 10 MiB: 413. Watch state unchanged. Same status codes and no state change.

    For a run on real Plex:

    • Not yet confirmed on real Plex: that media.pause and media.stop carry the playing account's Metadata.viewOffset. If Plex omits it, those events are ignored and only scrobbles sync.
    • Plex sends no webhook when an item is marked watched or unwatched by hand, so only playback can be checked.
    • A connection created before fix(webhook-sync): take Plex watched state from the event, not the server owner #2179 keeps the owner mapped under their plex.tv ID, which never matched. Map the owner by hand after their first event, or recreate the connection.

    AI disclosure: run and written with Claude Code (claude-opus-5-5).

  6. Quick104 commented on Nov 26, 2026

    @Quick104
    Contributor

    Proposed results from agent runtime testing: server 2970 · a16a24720 (local sandbox), Plex webhook payloads sent directly to Silo

    The maintainer asked for this run. One agent tested the cases and a second agent checked the evidence against the case text and the code, rerunning one step. Nothing in the task body, checkboxes or board status was changed.

    Case Plex
    C1 Passed in part: play, pause, stop and scrobble events kept the mapped profile's watch state in agreement (17 of 17 checks), but every payload was hand-built to Plex's documented format and a stand-in answered the metadata lookups; no real Plex server or account was used
    C2 Passed in part: replays and per-user/per-item isolation held (20 of 20); "older than newer Silo activity" can't be built with Plex events, which carry no timestamp, and wasn't tested
    C3 Passed: malformed, unsigned and wrong-secret deliveries were rejected and no watch state changed. A rejected body containing a NUL byte isn't written to the delivery log (#5365)

    Posted with Claude Code (claude-sonnet-5-5 testing, claude-opus-5-5 verification) and GitHub CLI at the maintainer's direction. These are proposed results only; no human acceptance is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Validationv1.0

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions