Repository navigation
Conversation
A request now asks for one quality. A regular request gets an HD copy (plus a 4K one while "Also request a 4K version of every title" is on); a 4K request gets a 4K copy alone, sent only to a server that takes 4K. A title can have one open request of each, so someone can ask for 4K of a title the library already has in HD. Who may make 4K requests is a new setting beside request approval and limit, resolved the same way: the account, then its access group, then a server-wide default that starts off. The requester's playback quality no longer adds a 4K copy to their requests. - media_requests.is_4k, with the active-request index keyed on it; request_user_limits/request_group_limits.uhd_mode and request_settings.uhd_requests_allowed. - v2 API: is_4k on createRequest and requests, request_4k on the title detail, requests_4k on account and group limits, requests_4k_default on request settings, requests_4k on request usage, and requests_4k_supported/requests_4k_allowed on request status. Writes that leave the new fields out keep the stored values; v1 is unchanged. - The library never refuses or completes a 4K request, since presence cannot tell a 4K copy from an HD one; only its 4K target completes it. - A 4K tier no route sends now fails visibly instead of being dropped. - Web: "Request in 4K" on the title page, a 4K row in an account's Requests card and the access group editor, the server-wide default in Settings > Requests, and 4K labels in request lists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A 4K request's state comes from its 4K target. The library's season counts are its HD copy's, so they no longer make an open 4K series request read as available. - Creating a 4K request decides the title's 4K tier the way submission will, so a rule's conditions count and a disabled server does not. It runs after the checks every request gets, so a blocked account is told it is blocked, and it reuses the resolved policy. - request_4k on the title detail reports the reasons any request can have before the 4K ones. - /requests/status logs a 4K lookup failure and reports no 4K instead of failing, and reads the routing setup once. - The title page's Cancel never picks the viewer's 4K request for the regular one. - The requests service no longer asks for the playback-quality ceiling; EntitlementResolver is now the content-rating lookup alone. - The route editor's 4K caption no longer mentions the playback limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
The changed 4K routing caption in Suggested fix: add those captures to the linked evidence page. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
| if decision, ok := decideRoutes(routes, req, []Quality{Quality2160p})[Quality2160p]; !ok || decision.Skip { | ||
| return ErrUHDUnavailable | ||
| } |
There was a problem hiding this comment.
Missing integration validation in ensureUHDRequestable allows a title-specific routing decision to select a disabled server when another rule references an enabled 4K server, so the global check passes and creation consumes quota for a request that routedConnection refuses. Validate the selected decision's integration before accepting it.
Prompt for LLM
File internal/requests/service.go:
Line 1461 to 1463:
Missing integration validation in ensureUHDRequestable allows a title-specific routing decision to select a disabled server when another rule references an enabled 4K server, so the global check passes and creation consumes quota for a request that routedConnection refuses. Validate the selected decision's integration before accepting it.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
a title's 4K tier now counts only if the server its own route picks
is enabled. Before, an enabled 4K server on some other rule was enough. A test covers it.
There was a problem hiding this comment.
Thanks—that addresses the reported issue. Checking the server selected by the title’s own 4K route prevents an unrelated enabled server from making the request appear deliverable. The regression test covers the failure case I flagged.
| deliverable, err := s.uhdDeliverable(ctx, mediaType) | ||
| if err != nil { | ||
| return RequestState{}, err | ||
| } | ||
| if !deliverable { | ||
| return RequestState{Reason: ReasonUHDUnavailable}, nil |
There was a problem hiding this comment.
Incorrect 4K availability in the title detail exposes a "Request in 4K" action whenever any route supports the media type, even when the title's matching rule skips 4K, causing CreateRequest to reject the action with ErrUHDUnavailable. Evaluate the title's captured routing facts with the same admission logic used by creation.
Prompt for LLM
File internal/requests/service.go:
Line 1530 to 1535:
Incorrect 4K availability in the title detail exposes a "Request in 4K" action whenever any route supports the media type, even when the title's matching rule skips 4K, causing CreateRequest to reject the action with ErrUHDUnavailable. Evaluate the title's captured routing facts with the same admission logic used by creation.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
the title page now runs the same per-title routing check as
creating the request. It no longer offers "Request in 4K" for a title whose rule skips 4K
There was a problem hiding this comment.
That addresses the reported issue: using the same per-title routing check for the title page and request creation prevents offering “Request in 4K” when the title’s matching rule skips 4K. No further change is needed for this suggestion if both paths now share that check.
| ALTER TABLE public.request_settings DROP COLUMN IF EXISTS uhd_requests_allowed; | ||
|
|
||
| DROP INDEX IF EXISTS public.idx_media_requests_active_tmdb; | ||
| CREATE UNIQUE INDEX IF NOT EXISTS idx_media_requests_active_tmdb |
There was a problem hiding this comment.
Prolonged ACCESS EXCLUSIVE locks during rollback keep request_group_limits, request_user_limits, and request_settings unavailable throughout the media_requests index scan because the transaction retains locks from dropping their columns while rebuilding idx_media_requests_active_tmdb. Separate the metadata-only rollback changes from a resumable concurrent index rebuild outside the Goose transaction and multi-statement StatementBegin block, and coordinate rollback to prevent new 4K requests from invalidating the restored uniqueness constraint.
Also found in:
migrations/sql/20261025160750_request_4k.sql:12-12
Kody rule violation: Make denormalization migrations resumable with bounded lock and retry costs
Prompt for LLM
File migrations/sql/20261025160750_request_4k.sql:
Line 42:
Prolonged ACCESS EXCLUSIVE locks during rollback keep request_group_limits, request_user_limits, and request_settings unavailable throughout the media_requests index scan because the transaction retains locks from dropping their columns while rebuilding idx_media_requests_active_tmdb. Separate the metadata-only rollback changes from a resumable concurrent index rebuild outside the Goose transaction and multi-statement StatementBegin block, and coordinate rollback to prevent new 4K requests from invalidating the restored uniqueness constraint.
**Also found in:**
- `migrations/sql/20261025160750_request_4k.sql:12-12`
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
This matches the repo's other request migrations: one goose
transaction, run in maintenance. The down migration only runs on an explicit rollback, and
splitting out a concurrent index build adds a non-transactional step for a path that is rarely
used. Happy to change it if maintainers want concurrent index builds here
There was a problem hiding this comment.
That’s reasonable. With migrations run in maintenance and request writers stopped, the transactional rollback is a defensible choice: it keeps the deletion, schema changes, and restored uniqueness constraint atomic without adding a non-transactional recovery path.
The locks do last through the index rebuild, but that alone doesn’t justify a high-severity finding under this operating model. A concurrent build would matter if requests needed to remain available during migration; it isn’t inherently preferable for an explicit maintenance rollback.
I wouldn’t require a change here. The useful caveat is that the maintenance window must accommodate the deletion and index rebuild. Rarity alone doesn’t reduce their cost, but the stated maintenance procedure addresses the availability concern.
There was a problem hiding this comment.
Actionable comments posted: 3

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:
9417332f-173d-4763-9f69-b795c83a2eda
Files selected for processing: 59-
cmd/silo/main.gocontracts/api/v2/fixtures/admin_request_limit_ok.jsoncontracts/api/v2/fixtures/admin_request_settings_ok.jsoncontracts/api/v2/fixtures/admin_request_user_usage.jsoncontracts/api/v2/fixtures/admin_requests_ok.jsoncontracts/api/v2/fixtures/cancel_request_ok.jsoncontracts/api/v2/fixtures/create_request_ok.jsoncontracts/api/v2/fixtures/list_my_requests_ok.jsoncontracts/api/v2/fixtures/request_status_ok.jsoncontracts/api/v2/openapi.jsondocs/admin-users-api.mddocs/architecture/media-requests.mdinternal/api/router.gointernal/apiv2/admin_request_groups.gointernal/apiv2/admin_request_usage.gointernal/apiv2/admin_requests.gointernal/apiv2/request_lifecycle.gointernal/apiv2/requests.gointernal/requests/api_key_optional_test.gointernal/requests/editor_concurrency.gointernal/requests/entitlements.gointernal/requests/errors.gointernal/requests/follows.gointernal/requests/group_limits.gointernal/requests/group_limits_test.gointernal/requests/lifecycle_guard_test.gointernal/requests/repository.gointernal/requests/router_seasons.gointernal/requests/router_seasons_test.gointernal/requests/routes_admin.gointernal/requests/routing.gointernal/requests/routing_mode_test.gointernal/requests/routing_test.gointernal/requests/seerr_4k_test.gointernal/requests/service.gointernal/requests/service_test.gointernal/requests/store.gointernal/requests/types.gointernal/requests/watchlist.gomigrations/sql/20261025160750_request_4k.sqlweb/src/api/types.tsweb/src/api/v2/adminRequests.tsweb/src/api/v2/schema.tsweb/src/components/admin/RequestLimitFields.tsxweb/src/lib/mediaRequests.tsweb/src/lib/requestAccess.test.tsweb/src/lib/requestAccess.tsweb/src/pages/AdminAccessGroups.test.tsxweb/src/pages/AdminAccessGroups.tsxweb/src/pages/ItemDetail/components/RequestActionBar.test.tsxweb/src/pages/ItemDetail/components/RequestActionBar.tsxweb/src/pages/Requests.tsxweb/src/pages/admin-requests/queueParts.tsxweb/src/pages/admin-settings/RequestRouting.test.tsxweb/src/pages/admin-settings/RequestsSettings.tsxweb/src/pages/admin-settings/requestRoutingModel.tsweb/src/pages/admin-users/detail/access/RequestsCard.tsxweb/src/pages/admin-users/detail/access/policySources.test.tsweb/src/pages/admin-users/detail/access/policySources.ts
Files with no reviewable changes: 1-
- internal/requests/api_key_optional_test.go
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
-
- A title's 4K tier counts as deliverable only when the server its route chooses is enabled, not when some other rule's 4K server is. - The title detail's request_4k uses the same per-title routing check as creating the request, so it no longer offers 4K for a title whose rule skips it. - A failure while checking 4K routing on the title detail logs a warning and reports 4k_unavailable instead of failing the whole page. - The title page lets the viewer cancel their own pending 4K request, beside the regular one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The added 4K permission layer extends the request-policy behavior covered by these previously passed cases: #1196 C1–C2 (Server, Correction: #1202 C1–C4, #1203 C1, #1204 C1–C3, and silo-apple#328/#329 and silo-android#338/#339 are all marked Not run. They have no prior results to invalidate; keep them only as planned validation scope. The earlier comment incorrectly described these as previously validated. Suggested fix: update the PR description to: Posted via Macroscope — v1 validation impact Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
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:
|
|
I think this should be ready for review. Thanks! |
|
I'll add the requested evidence later today. |
"Request in 4K" on a series sent a request for every aired season, while the regular Request button opens the season picker. It now opens the same picker in 4K mode, which reads request_4k and sends is_4k. The seasons' library and request status describe the HD copy and the regular request, so in 4K every season can be picked and none shows a status. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
| const allowed = | ||
| enabled && | ||
| Boolean(featureStatus.data?.requests_enabled && featureStatus.data.requests_4k_allowed); | ||
| const detail = useRequestMediaDetail(mediaType, tmdbID, { enabled: allowed }).data; |
There was a problem hiding this comment.
Stale library-item 4K progress occurs because useRequestMediaDetail checks only request.download in its polling predicate and ignores request_4k.download, preventing automatic refreshes for titles already available in HD with only a 4K download running. Update the shared hook to poll when either quality has a download.
Prompt for LLM
File web/src/pages/ItemDetail/components/useDetail4KRequest.tsx:
Line 45:
Stale library-item 4K progress occurs because useRequestMediaDetail checks only request.download in its polling predicate and ignores request_4k.download, preventing automatic refreshes for titles already available in HD with only a 4K download running. Update the shared hook to poll when either quality has a download.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Fixed in f17ec2e: the title detail now polls while either its regular or its 4K request downloads.
There was a problem hiding this comment.
Thanks for fixing this in f17ec2edf. Polling while either request.download or request_4k.download is active addresses the reported stale 4K progress issue on titles already available in HD.
The title's request detail polled only while its regular request was downloading, so a 4K download alone never refreshed its progress. That is the usual case for a title in the library in HD. Poll while either request downloads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
There was a problem hiding this comment.
Actionable comments posted: 2

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:
74c11e5e-a324-4cda-bc97-3c3edbb63c95
Files selected for processing: 7-
web/src/pages/ItemDetail/MovieContent.tsxweb/src/pages/ItemDetail/SeriesContent.tsxweb/src/pages/ItemDetail/components/ActionBar.tsxweb/src/pages/ItemDetail/components/RequestActionBar.tsxweb/src/pages/ItemDetail/components/useDetail4KRequest.test.tsxweb/src/pages/ItemDetail/components/useDetail4KRequest.tsxweb/src/pages/ItemDetail/components/useOwnCancellableRequest.ts
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
-
The overflow menu closes on click, so "Request in 4K" for a movie could be pressed again while the first request was still sending; the server refused the second one as already requested and the viewer saw an error. Offer the action only while no request is sending, as the request page's 4K button does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
Geez those bots tore this apart lol, think it's good now |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Ready to go here. |
…quests The 4K deliverability check on create and on the title detail now decides the title's 4K route for the requester, so a rule limited to certain requesters counts for them. An approved 4K request with no download server for its media type records why, retries, and then fails; the library never completes a 4K request, so it no longer stays approved for good. Also documents the 4K request fields in the API contract and drops two stale references to the removed playback-quality rule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the library A completed 4K request read as available as soon as its 4K target finished, before Silo had scanned anything in, so My requests could offer a title that could not be opened yet. It now stays processing until the title is in the library, as a regular request does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104
left a comment
There was a problem hiding this comment.
🤖 Claude Code (claude-opus-5-5)
Review of 65ea571. The approach answers #583: each request asks for one quality, and an admin decides who may ask for 4K. The findings are on the lines. Three more don't fit a line:
- Low: the API contract document doesn't cover the new fields.
docs/architecture/api-contract.mdrecords each earlier request addition (follow_supported,watchlist_requestsand others) but has nothing foris_4k,request_4k,requests_4k_*orrequests_4k_default. I'm adding a paragraph on this branch, so there's no need to change it yourself. - Maintainer decision: the Apple and Android apps can cancel the wrong request. Both apps already use
/api/v2/requests, not v1 as the description says. Both pick the newest active request the account owns for a title and cancel that one (AppleRequestDetailCache.currentRecord, AndroidRequestDetailCache.kt). Neither looks at quality. Once someone makes a 4K request from the web, Cancel on that title in an app withdraws the 4K request while the screen shows the regular one. 4K requests start off, so nothing happens until an admin turns them on. The apps need to readis_4kbefore that. - Disclosed: the "available" notification for a 4K request uses the HD copy.
notifyFulfilledPendingstill checks title presence, so the notification can fire before the 4K file is scanned in. This is listed under Risks and has the same root cause as the line comment onservice.go:1379.
The fixes for the first three line findings and the contract paragraph follow in commits on this branch. A summary comment with the review's verdict will follow.
| // open 4K request, or whether the viewer may make one now. | ||
| func (s *Service) uhdRequestState(ctx context.Context, viewer Viewer, policy EffectivePolicy, mediaType MediaType, detail *tmdb.MediaDetail) (RequestState, error) { | ||
| tmdbID := detail.ID | ||
| open, err := s.store.ListActiveByTMDB(ctx, mediaType, []int{tmdbID}, true) |
There was a problem hiding this comment.
Maintainer decision: a finished 4K request can be made again. The 4K state reads only open 4K requests, and the library check is off for 4K, so nothing remembers that a 4K request completed. Afterwards, the title page offers "Request in 4K" again, with no "4K: Available" state, and a new request uses quota and goes to the 4K server again.
Options: leave it as is, treat the latest completed 4K request as the title's 4K state, or have the library lookup read file resolution so 4K presence can be checked. This is the same gap behind the "available" notification noted under Risks. No change on this branch until that's settled.
| const allowed = | ||
| enabled && | ||
| Boolean(featureStatus.data?.requests_enabled && featureStatus.data.requests_4k_allowed); | ||
| const detail = useRequestMediaDetail(mediaType, tmdbID, { enabled: allowed }).data; |
There was a problem hiding this comment.
Maintainer decision (cost, not measured): every library item page reads the full request detail. While the viewer may make 4K requests, each movie and series page calls getRequestMediaDetail just for request_4k. On the server that runs the TMDB detail (cached), recommendation enrichment for about 20 titles, season lookups and, in uhdRequestState, the fulfillment context and routing facts. It refetches every 30 seconds while a download runs. /requests/status also builds the fulfillment context on each read for such viewers. I traced this but did not measure it. A lighter read, for example request_4k on the library item response, would be a contract addition, so I'm leaving it for the maintainers.
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:
|
|
🤖 Claude Code (claude-opus-5-5) Review summaryReviewed head: The approach answers #583. Each request now asks for one quality, a title can have one open regular and one open 4K request, and who may ask for 4K is a permission layered like the quota and approval. That is simpler than tying 4K to the playback limit, and it's the shape other request tools use. Fixed on this branch
Each fix has a test that failed on Left for the maintainers
Checks
Validated featuresI couldn't read the validation board's project data. From the validators' results on the tasks, no passed case regresses. These cases change in minor ways: #1202 C1 (a regular request no longer gets 4K from the playback limit), C2 (a 4K request is not refused when the title is in the library), C3 (library completion skips 4K requests), C4 (routers receive 1080p alone unless the request is 4K or every request asks for 4K); #1203 C1 (the limit editors gain a 4K row); #1204 C1 and C2 (title and item pages gain the 4K action and state). The description's User manualThe requests page in the manual (Running a server › Requests) doesn't describe 4K behavior, and this PR adds a setting there, a row in each account's and access group's Requests section, and a new request action. It needs a siloserver.org issue covering the requests and access group pages. None exists yet. Apple and AndroidThe apps need follow-up for 4K requests and for the cancel problem above. Neither repository has an issue or PR linked yet. jellycompat has no request surface. VerdictFit: 7/10 · Readiness: 7/10 — conditional (assuming CI is green)
|
# Conflicts: # contracts/api/v2/fixtures/list_home_sections_item_limit_out_of_range.json # contracts/api/v2/fixtures/list_library_sections_item_limit_out_of_range.json # contracts/api/v2/fixtures/request_status_ok.json # contracts/api/v2/openapi.json # internal/apiv2/request_lifecycle.go # internal/requests/service.go # web/src/api/v2/schema.ts # web/src/pages/ItemDetail/SeriesContent.tsx
|
Just updated the branch to keep it ready for merge |
The restore's authority comparison and stricter-flag carry predate the 4K request settings. Read uhd_requests_allowed and the account and group uhd_mode into the compared request policy, count a restored 4K allowance as wider, keep request_settings.uhd_requests_allowed off when the live server has it off, and classify media_requests.is_4k. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
Fixed CI tests |
feat(requests): make 4K requests separate from regular requests
Problem
Closes #583
Related issue: N/A
Validation tasks: changes #1202 C1, C2, C3, C4; changes #1203 C1; changes #1204 C1, C2
A user can't choose between an HD and a 4K copy of a title. Today a user whose playback limit allows 4K gets an HD and a 4K copy for every request, and everyone else gets HD only (#583). Admins can't decide who may ask for 4K except through the playback limit. Someone who already has a title in HD can't ask for it in 4K at all, because the title counts as available.
This change makes a 4K request its own request. A regular request gets the HD copy; a 4K request gets the 4K copy alone and goes only to a server that takes 4K. Who may make 4K requests is a new setting next to request approval and limit, set per account, per access group, or server-wide.
Approach
media_requests.is_4kmarks a 4K request, and the active-request index now keys on it, so a title can have one open regular and one open 4K request. Each is approved, cancelled and counted against the requester's quota on its own. "Also request a 4K version of every title" (force_dual_quality) still adds a 4K copy to regular requests. The requester's playback quality no longer does.uhd_modeonrequest_user_limitsandrequest_group_limits(inherit,allowed,denied) anduhd_requests_allowedonrequest_settingsresolve like approval and quota: the account, then its access group, then the server default, which starts off.is_4koncreateRequestand on requests;request_4kon the title detail, with reasons4k_not_allowedand4k_unavailable;requests_4kon account and group limits and on request usage;requests_4k_defaulton request settings;requests_4k_supportedandrequests_4k_allowedon/requests/status. Writes that leave the new fields out keep the stored values, and v1 is unchanged.docs/architecture/media-requests.mdhas a new 4K requests section.The iOS and Android clients need follow-up work to offer 4K requests; until then they keep making regular requests. jellycompat has no request surface. The user manual needs an issue on siloserver.org for the new settings.
Validation
gofmt, andgo vet ./...clean;lint-changed(golangci-lint v2.12.2) reports 0 issues.internal/requests,internal/apiv2,internal/api/...,cmd/silo,internal/contractspecandinternal/contractledgerpass. New tests cover the 4K permission layering, 4K create refusals and one open request per quality, the 4K check reading the title's own route, the state of a 4K request whose seasons are in the library in HD, and 4K routing under Standard with and without a 4K server. Tests that relied on the playback limit adding a 4K tier were rewritten or removed.make test-goand the Postgres DB-contract tests; there was no local database. The migration ran once, on a test server with existing requests.verify-apiv2-contract(oasdiff against the base) was not run.tsc, lint (no errors),format:check,buildandbudget:checkpass; all tests pass, run one directory at a time because the full run ran out of memory in WSL. A new test covers Cancel on the title page never picking the viewer's 4K request. After the 4K season picker change (bac14b3c5), its two test files,tsrs -band eslint on the changed files were rerun and pass; the full web suite was not rerun. The item page change (ec893c80c) adds a test of when the 4K request is offered;src/pages/ItemDetailpasses.goose validateandmigrationcheckpass.verify-local-pathspasses.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3071/
Surface and build: web app and web admin at desktop and phone width. Before is
6de6d5e5e(main); after is this branch. Pairs cover the title page, the 4K season picker, the item page's menu, My requests, the admin request queue, an account's Requests card, the access group editor and Settings › Requests.Risks
is_4kyet, so their users can't make 4K requests until those clients add it. Until then, Cancel on a title in either app can pick a 4K request made from the web, because both apps cancel the newest request on the title.idx_media_requests_active_tmdbwithis_4kand adds columns with defaults. Existing requests become regular requests and keep any 4K target they already have. The down migration deletes 4K requests, since the old title-only index can't hold both.Checklist
AI Disclosure
/code-review(high effort) over the full diff, checking correctness, regressions and cost on hot paths. It raised 10 findings. Fixed: HD season counts making an open 4K request read as available; the title page's Cancel picking the viewer's 4K request; the 4K check ignoring rule conditions and disabled servers;/requests/statusfailing on a 4K lookup error; repeated policy and routing reads; reason ordering for blocked accounts; and the deadMaxPlaybackQualityresolver method and stale comments. Not changed: 4K defaulting off with no v1 path, and the 4K notification gate, both covered under Risks.Note
Add 4K requests as a separate request type alongside regular requests
is_4kflag, active-request index, and quality selection (requestQualitiespicks 2160p for 4K requests, 1080p for regular, both under force-dual) in service.goEffectivePolicy.AllowUHDand exposed via admin APIs and the UI in group_limits.go and admin_requests.goensureUHDRequestable,uhdTitleDeliverable) with newErrUHDNotAllowed/ErrUHDUnavailableerrors; unrouted 4K targets now record a failure instead of being silently droppedMaxPlaybackQuality); force-dual is driven by settings viaForceDualQualityinstead of entitlement lookupsuseDetail4KRequestin useDetail4KRequest.tsxMacroscope summarized 3865d68.