Skip to content

feat(admin): record device, client, stream decisions and end reason in playback history - #3184

Merged
Quick104 merged 5 commits into
mainfrom
feat/admin-history-device-fields
Oct 28, 2026
Merged

Quick104 merged 5 commits into
mainfrom
feat/admin-history-device-fields

Conversation

@Quick104

@Quick104 Quick104 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

A monitoring tool (the first one is Tracearr) can't tell plays apart from Silo's admin data. A finished play in admin playback history doesn't say which device played it, which app, how the streams were delivered, or why the play ended. The live admin session row doesn't say which device is playing either. The history list also hides values it already stores (the watch measurement and the client address). It can only bound a window from below, so a tool paging history by time can't ask for "everything before T" without overlap.

This change records those facts and returns them on the admin history and session routes under /api/v2. It is part of the monitoring API plan; lifecycle events for sessions come in a follow-up that stacks on this branch.

Approach

Device identity. The device is the one the client declares for the profile device registry: X-Silo-Device-Id and X-Silo-Device-Platform on POST /api/v2/playback/start (or the v1 bridge's start). It is not the playback device the v2 X-Device-ID header names. The platform is only what the client declares; the server never derives it from the user agent. A Jellyfin play records the DeviceId that its PlaybackInfo request already parsed, with no platform. An Audiobookshelf play records neither. The device rides on playback.ClientInfo into the playback session, its server-side recovery card (so a restart rebuild keeps it), the live sync row, and the history row. A session rebuilt from a stream token loses it, as it already loses its client name; claims deliberately carry no client metadata.

Admin sessions. GET /api/v2/admin/sessions rows gain device_id and device_platform, advertised by device_identity on the sessions capabilities. The frozen v1 row is unchanged.

History. A migration adds device_id, device_platform, client_name, client_version, video_decision, audio_decision and end_reason to admin_playback_history, and the two device columns to playback_sessions_sync.

  • The device, client and decisions describe the play, so they are filled once. A second statement in the same batch fills any the row lacks, even when the finalization didn't get further and the existing upsert skips the row, and it never replaces a value.
  • end_reason follows the latest finalization: an expired play that is rebuilt and then stopped ends up stopped. The row also stores the end instant of the finalization that set the reason (end_reason_at, not returned). A delayed earlier finalization can't replace a later reason, even when the later one got no further and so left ended_at alone.
  • Old rows keep NULL for all of these.

End reason. The stop and finalize functions now take a typed PlaybackEndReason in place of the userInitiated/sessionEnded booleans, and derive both from it. Behavior is the same.

  • stopped: v1 and v2 client stops, and Jellyfin/Audiobookshelf stops through FinishSession.
  • terminated: admin terminate, the admin stop fallback, and a player-confirmed admin stop or terminate.
  • expired: the liveness reaper.
  • System teardowns (encoder exit, rejected plan invalidation, copy-safety, failed start or replan) pass no reason. The client can still rebuild the session.
  • aborted is in the published enum, but abort paths write no history row today, so it doesn't appear yet. The lifecycle-events PR decides whether aborts and the v2 stop on a replica without the live session copy should write history, and completes those paths.

History list. GET /api/v2/admin/playback-history entries gain measured, start_position_seconds, paused_seconds, measured_since, measured_until, client_ip, and the new columns, each null when unknown. A new ended_before filter is exclusive, while ended_after stays inclusive, so windows sharing a bound list each attempt once; the cursor binds it. A new GET /api/v2/admin/playback-history/capabilities names the additions. docs/admin-api.md documents all of it.

API keys: the one new route, GET /api/v2/admin/playback-history/capabilities, follows the existing scope rule. Unscoped admin keys reach it like every other admin route, and a scoped key is refused unless a scope lists it. The list route already existed and keeps its scope behavior. The validated API-key permission matrix (#1190 C2) is unchanged on main, so the validation line stays none. The monitor scope that would grant these routes is #3182, which already declares changes #1190 C2. Whichever of the two merges second adds /admin/playback-history/capabilities to the admin:monitor:read rows.

Admin-only surfaces. Apple, Android and the web UI need no change. For jellycompat parity, the Jellyfin protocol has no admin history surface to extend, so no change is needed there. Jellyfin plays do now record their device in Silo's admin data.

Validation

  • Ran on an isolated sandbox built from this branch, with real HTTP calls:
    • Live rows showed each play's declared device and platform, not its X-Device-ID.
    • History recorded stopped for a client stop, terminated for an admin terminate, and expired for a play left to the reaper. Each row carried device, client, decisions, measurement and client address.
    • ended_after=T and ended_before=T split the log at play 2's exact ended_at with no overlap; with both set to T the list is empty.
    • A cursor replayed under another window got 400 invalid_cursor, and an unparsable ended_before got 422.
    • A regular account got 403 on both routes, an API key with only admin:sessions:summary:read 403 permission_denied, no credentials 401, and a revoked key 401.
  • Not exercised live: a Jellyfin play and a restart mid-stream. The recovery card round trip and the rebuilt session's device are covered by the recipe card tests.
  • New DB contract TestAdminPlaybackHistoryFactsDB, listed in scripts/ci/db-contracts.txt, covers:
    • facts filled by a finalization that didn't advance, and never replaced;
    • the end reason following the latest finalization, including a later stop that got no further followed by a delayed earlier expiry;
    • inclusive and exclusive window bounds;
    • a legacy row reading as nulls.
  • Extended the history contract test (new fields, ended_before validation and cursor binding), the start client-identity test (v1 headers vs the v2 declared device), and the recipe card tests.
  • Gate: build, gofmt, vet, make lint-changed (0 issues), make lint-router-recovery, every make verify-* target and TestCommittedArtifactMatchesRouter, web lint, format, build and budget, and make test-web (6768 tests) pass. make verify-actionlint didn't run: actionlint 1.7.12 isn't installed on the machine I used, and this branch changes no workflows. make test-go on a freshly migrated database passed every package but two:
    • internal/invitations: TestEmailedInvitationLinkReplacementDB saw local password sign-in turned off. Another package's test toggles that server-wide setting while packages run in parallel against one database, and the test passes alone.
    • internal/api/handlers timed out in TestRelayToTranscodeNodeAcknowledgesOnlyFullDownstreamResponse. That test doesn't reach this change: it calls relayToTranscodeNode on a bare handler. Under load the relay returned an error, the stub node blocked sending a retried request into a one-slot channel, and node.Close() then waited forever. It passes alone (three runs), and the rest of the package passed in the focused run.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3184/

No visible change: no web or client screen renders the new fields. The evidence page has the trimmed request and response pairs from the sandbox run and the test results.

Risks

  • RecordHistory now sends two statements in one batch per finalization. The second is a no-op UPDATE once the row has every fact.
  • The stop/finalize signature change touches every stop path. The reason-to-boolean mapping keeps recovery-card deletion, the stream-token deny marker, and scrobble stop/pause decisions as they were. The existing finalize and recipe tests pass unchanged apart from the argument type.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; Codex (gpt-6.1-sol) for a read-only review
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated. claude-opus-5-5 wrote the code, tests, migration, docs change, and this description from a maintainer-approved plan.
  • Adversarial review: A read-only review with Codex (gpt-6.1-sol, high effort) of a37f892, plus the Codex GitHub reviewer, found three bugs, all fixed. The end reason could regress to an older finalization (fixed in 4112e09 by ordering it on end_reason_at). The nullable enums refused null in the OpenAPI spec, and a Jellyfin direct or remux session rebuilt from a new recovery card dropped its device (both fixed in f9a560e). The review found the stop-path refactor behavior-equivalent at every call site.

🤖 Generated with Claude Code

Quick104 and others added 2 commits October 27, 2026 19:20
…ack history

Carry the declared registry device (X-Silo-Device-Id/-Platform; the
MediaBrowser DeviceId on Jellyfin plays) on the playback session, its
recovery card, the live sync row and the v2 admin session row. History
records device, client, stream decisions (filled once) and end_reason
(latest finalization wins), and the v2 history list returns the stored
watch measurement, client_ip and these facts, accepts ended_before, and
gains a capabilities document.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: b14ebd7a-2512-40d3-aa6c-bf8be26242ca
Commits

Reviewing files that changed from the base of the PR and between 42f05e8 and f9a560e.

Files selected for processing: 6
  • contracts/api/v2/fixtures/list_admin_playback_history_ok.json
  • contracts/api/v2/openapi.json
  • internal/apiv2/admin_playback_history.go
  • internal/apiv2/admin_playback_history_test.go
  • internal/jellycompat/playback_client_name_test.go
  • internal/jellycompat/streams.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Walkthrough

Playback sessions now retain device identity, and playback history records measurement, client and device metadata, stream decisions, and end reasons. The admin API exposes the history fields, time-window filters, and a capabilities endpoint. API fixtures and request instance identifiers are also updated.

Changes: Playback history and device identity

Layer / File(s) Summary
Carry device identity through sessions
internal/playback/*, internal/api/handlers/playback_*, internal/apiv2/admin_sessions.go, internal/worker/reconciler.go, cmd/silo/session_sync.go, internal/jellycompat/*, docs/admin-api.md
Playback sessions now carry normalized device ID and platform values. These values flow through recovery cards, synchronized snapshots, and admin session responses.
Record playback facts and end reasons
internal/api/handlers/playback*.go, internal/api/handlers/admin_playback_*.go, migrations/sql/20261027185055_playback_device_identity_and_end_reason.sql, internal/api/handlers/*test.go, scripts/ci/db-contracts.txt
Stop handling now passes typed playback end reasons. History storage records device, client, stream-decision, and end-reason fields, fills missing metadata without replacing known values, and orders end-reason updates by finalization time.
Query and expose admin playback history
internal/apiv2/admin_playback_history.go, internal/apiv2/admin_playback_history_test.go, contracts/api/v2/openapi.json, contracts/api/v2/fixtures/*playback_history*, contracts/api/v2/fixtures/index.json, web/src/api/v2/*, internal/api/testdata/media_routes.txt, docs/admin-api.md
The history API adds measurement and playback metadata, an exclusive ended_before bound, and a capabilities endpoint. API schemas, fixtures, route data, and documentation describe the new fields and behavior.

API fixture request identifiers

Layer / File(s) Summary
Refresh problem fixture identifiers
contracts/api/v2/fixtures/*.json
The instance request identifier changes in existing problem-response fixtures.

Priority: Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant PlaybackFinalization
  participant AdminPlaybackHistoryStore
  participant PostgreSQL
  participant AdminPlaybackHistoryAPI
  participant AdminClient
  PlaybackFinalization->>AdminPlaybackHistoryStore: Record playback facts and end reason
  AdminPlaybackHistoryStore->>PostgreSQL: Upsert history and update missing metadata
  AdminPlaybackHistoryAPI->>PostgreSQL: Query history using time bounds
  PostgreSQL-->>AdminPlaybackHistoryAPI: Return history rows
  AdminPlaybackHistoryAPI-->>AdminClient: Return history entries and capabilities
Loading

Possibly related issues

Possibly related PRs

Suggested reviewers: tobechukwu-njoku, brady3035

Merge Risk: Minimal · up to f9a56

The reviewed changes are mergeable with normal checks; the investigated capability concerns were refuted.

Security architecture risk: Low · up to f9a56

The change retains more playback-identifying information behind existing administrator access controls. No new privilege escalation or unauthorized disclosure was established. Recovery, concurrent finalization, and deployment behavior retain limited uncertainty.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The expanded exposure is administrator-visible correlation of playback activity across the configured server's accounts and profiles. An authenticated playback client can supply misleading device/client labels for its own play, but the inspected projection does not turn those labels into account, session, or device authority.

Trust Boundaries and Controls

  • observed — Both history operations require acting-administrator authorization through the central authentication, viewer/profile, and admin gates. Scoped API keys remain restricted by the route allowlist, which does not include these history routes. Unscoped keys retain their pre-existing behavior but still require administrator authority. Returned identity strings are serialized data in the inspected path.

Resilience and Maintainability Implications

  • observed — Stop enforcement is separate from best-effort history recording: lifecycle-locked paths remove live authority and deny stream access before recording history. Realtime termination uses the same authority gate before queued finalization. History-construction or storage failures are logged rather than restoring playback authority, so this history is diagnostic state rather than a transactional security audit.

Hardening Proposals

  • proposed — Monitoring integrations should treat device/client fields as unverified attribution labels and tolerate unknown values, rather than using them as device attestation or authorization evidence.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 56.25% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surv… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title names the main change: the admin playback history now records device, client, stream decisions, and end reason. It matches the changeset, which adds these fields to the migration, handlers, …
Description check Passed The description covers the changeset in detail. It explains device identity fields on start requests, the admin session rows, the migration columns, the typed PlaybackEndReason change, the ended_befor…
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 main change: the admin playback history now records device, client, stream decisions, and end reason. It matches the changeset, which adds these fields to the migration, handlers, OpenAPI spec, and docs. The title uses a conventional commit prefix and fits in one sentence. It omits the new filter, capabilities route, and session device fields, but it does not need to cover every detail.

Full details: Description check

Explanation

The description covers the changeset in detail. It explains device identity fields on start requests, the admin session rows, the migration columns, the typed PlaybackEndReason change, the ended_before filter, the new capabilities route, the docs update, and the validation steps. It also names the related PR and the scope and merge-order notes. The description is directly related to the changes.

Full details: Docstring Coverage

Explanation

Docstring coverage is 56.25% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 32 functions across 31 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@silo-kody

silo-kody Bot commented Oct 27, 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T20:11:27.934788Z f9a560e New commits
🔒 Security Review ✅ Completed 2026-10-27T20:12:47.312481Z f9a560e New commits
ℹ️ 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.

@silo-triage silo-triage Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Oct 27, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a37f892571

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

A finalization that gets no further leaves ended_at alone, so comparing a
reason's end instant to ended_at let a delayed earlier expiry replace a
later stop. Record the end instant of the finalization that set the
reason in end_reason_at and order against it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread internal/api/handlers/playback_v3.go Resolved
@silo-kody

silo-kody Bot commented Oct 27, 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 ❌

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42f05e8c5a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/jellycompat/streams.go Resolved
@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown

Major change: the build-807 result for #1190 C2 does not cover the new GET /api/v2/admin/playback-history/capabilities permission path. The current #3182 monitor allowlist includes /admin/playback-history but omits /admin/playback-history/capabilities, so admin:monitor:read keys will be denied this endpoint. Please add the route to that allowlist, explain this change to the validated permission matrix, and note that C2 needs re-validation after merge.

Suggested fix: Validation tasks: changes #1190 C2

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown

Major validation impact

The API-keys Server task #1190 C2 was recorded passed on build 807 · d4e35ba9 and covers allowed and forbidden API-key operations. This PR adds the playback-history list and capabilities routes, which are not in the current scoped-key allowlist; the planned monitor-read mapping is still pending. The prior result does not demonstrate the new routes' scope behavior. Please explain this change to the validated permission surface in the PR; C2 needs re-validation after the scope mapping is merged.

Suggested line: Validation tasks: changes #1190 C2

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

…vice on rebuild

The nullable video_decision, audio_decision and end_reason schemas listed
only strings in their enum, so the spec refused the null an unknown value
takes; the committed fixture now carries one. A Jellyfin direct or remux
session rebuilt from a fresh recovery card now takes the play's negotiated
DeviceId, as it already took the client name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 27, 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 ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

Keeping Validation tasks: none here. On main this PR does not change the permission matrix #1190 C2 validated. The new GET /api/v2/admin/playback-history/capabilities follows the existing rule for scoped keys: a route not on a key's allowlist is refused. The sandbox run confirmed it: a key holding only admin:sessions:summary:read gets 403 permission_denied on both history routes, and an unscoped admin key gets 200, as on every other admin route. The scope change that C2 needs to re-validate is #3182, whose body already says changes #1190 C2.

The allowlist gap is real, and it's a merge-order item: whichever of #3182 and this PR merges second adds /admin/playback-history/capabilities to the admin:monitor:read rows, so monitor keys can read it.

@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown

The new playback-history list and capabilities routes add scope-gated API operations. The passed #1190 C2 result (build 807 · d4e35ba9) predates these routes and does not establish their allowed/denied scope behavior. This is a major validation change: please explain why the validated operation set changes, and re-validate C2 after merge once the monitor-read scope mapping is included.

Please change the PR's Validation tasks: line to:

Validation tasks: changes #1190 C2

Suggested fix (no diff): update the PR-body line to the exact text above.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


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: 5b474b2e-ecf3-4904-8757-073d93d15ee2
Commits

Reviewing files that changed from the base of the PR and between 73a6ae6 and 42f05e8.

Files selected for processing: 82
  • cmd/silo/session_sync.go
  • contracts/api/v2/fixtures/admin_account_delete_break_glass_required.json
  • contracts/api/v2/fixtures/admin_download_revoke_mixed.json
  • contracts/api/v2/fixtures/admin_download_storage_delete_invalid_id.json
  • contracts/api/v2/fixtures/admin_login_session_forbidden.json
  • contracts/api/v2/fixtures/admin_network_access_status_not_found.json
  • contracts/api/v2/fixtures/admin_network_access_unknown_host.json
  • contracts/api/v2/fixtures/admin_subtitle_metadata_precondition_required.json
  • contracts/api/v2/fixtures/approve_device_login_api_key_forbidden.json
  • contracts/api/v2/fixtures/cancel_admin_download_preparations_invalid_id.json
  • contracts/api/v2/fixtures/cancel_device_login_not_found.json
  • contracts/api/v2/fixtures/clear_resume_position_not_found.json
  • contracts/api/v2/fixtures/clear_resume_position_not_leaf.json
  • contracts/api/v2/fixtures/collection_order_foreign_id.json
  • contracts/api/v2/fixtures/complete_account_identity_link_invalid_grant.json
  • contracts/api/v2/fixtures/complete_oauth_login_invalid_grant.json
  • contracts/api/v2/fixtures/create_account_identity_link_ticket_wrong_password.json
  • contracts/api/v2/fixtures/create_admin_user_identity_linked_elsewhere.json
  • contracts/api/v2/fixtures/delete_account_identity_last_sign_in_method.json
  • contracts/api/v2/fixtures/get_admin_playback_history_capabilities_ok.json
  • contracts/api/v2/fixtures/get_favorite_membership_not_found.json
  • contracts/api/v2/fixtures/get_home_layout_include_items_out_of_range.json
  • contracts/api/v2/fixtures/get_not_interested_not_found.json
  • contracts/api/v2/fixtures/get_ratings_capability_authentication_required.json
  • contracts/api/v2/fixtures/get_watch_trickplay_not_found.json
  • contracts/api/v2/fixtures/ignore_unmatched_item_not_found.json
  • contracts/api/v2/fixtures/index.json
  • contracts/api/v2/fixtures/link_account_identity_with_credentials_directory_refused.json
  • contracts/api/v2/fixtures/list_admin_playback_history_ok.json
  • contracts/api/v2/fixtures/list_series_seasons_invalid_artwork.json
  • contracts/api/v2/fixtures/login_account_required.json
  • contracts/api/v2/fixtures/login_provider_null.json
  • contracts/api/v2/fixtures/mark_not_interested_episode_rejected.json
  • contracts/api/v2/fixtures/mark_not_interested_not_found.json
  • contracts/api/v2/fixtures/notification_mute_notification_series_not_found.json
  • contracts/api/v2/fixtures/playback_installation_changed.json
  • contracts/api/v2/fixtures/playback_invalid_protocol.json
  • contracts/api/v2/fixtures/playback_progress_conflict.json
  • contracts/api/v2/fixtures/refresh_session_provider_unavailable.json
  • contracts/api/v2/fixtures/regenerate_admin_item_trickplay_disabled.json
  • contracts/api/v2/fixtures/sign_in_with_network_identity_off_overlay.json
  • contracts/api/v2/fixtures/start_account_identity_link_unknown_ticket.json
  • contracts/api/v2/fixtures/start_device_login_temporary_null.json
  • contracts/api/v2/fixtures/theme_songs_playback_not_acceptable.json
  • contracts/api/v2/fixtures/theme_songs_playback_unauthorized.json
  • contracts/api/v2/fixtures/token_refresh_required.json
  • contracts/api/v2/fixtures/unmark_not_interested_locked_profile.json
  • contracts/api/v2/openapi.json
  • docs/admin-api.md
  • internal/api/handlers/admin_playback_control.go
  • internal/api/handlers/admin_playback_history.go
  • internal/api/handlers/admin_playback_terminate.go
  • internal/api/handlers/playback.go
  • internal/api/handlers/playback_admin_store.go
  • internal/api/handlers/playback_finish_history_test.go
  • internal/api/handlers/playback_realtime.go
  • internal/api/handlers/playback_service.go
  • internal/api/handlers/playback_session_recipe.go
  • internal/api/handlers/playback_session_recipe_test.go
  • internal/api/handlers/playback_sessions.go
  • internal/api/handlers/playback_sessions_test.go
  • internal/api/handlers/playback_test.go
  • internal/api/handlers/playback_transcode_rehome_test.go
  • internal/api/handlers/playback_v3.go
  • internal/api/handlers/playback_v3_node_recipe_test.go
  • internal/api/handlers/playback_v3_test.go
  • internal/api/handlers/session_ws.go
  • internal/api/testdata/media_routes.txt
  • internal/apiv2/admin_playback_history.go
  • internal/apiv2/admin_playback_history_test.go
  • internal/apiv2/admin_sessions.go
  • internal/jellycompat/handlers_playback.go
  • internal/jellycompat/streams.go
  • internal/playback/recipecard.go
  • internal/playback/recipecard_test.go
  • internal/playback/session.go
  • internal/playback/transcode_manager.go
  • internal/worker/reconciler.go
  • migrations/sql/20261027185055_playback_device_identity_and_end_reason.sql
  • scripts/ci/db-contracts.txt
  • web/src/api/v2/operations.ts
  • web/src/api/v2/schema.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment thread internal/jellycompat/streams.go Resolved
@Quick104
Quick104 merged commit 9ca5fda into main Oct 28, 2026
55 of 57 checks passed
@Quick104
Quick104 deleted the feat/admin-history-device-fields branch October 28, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant