Skip to content

feat(diagnostics): accept the roku platform - #3298

Merged
Quick104 merged 2 commits into
mainfrom
feat/roku-diagnostics-platform
Oct 31, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/roku-diagnostics-platform

Conversation

@Quick104

@Quick104 Quick104 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none (no validation task covers client diagnostics platforms; the board helper could not read the project, so this comes from a label search)

The Roku client is adding diagnostics reports (Silo-Server/silo-roku#16), but the client-diagnostics v1 contract only allows android, android-tv, ios, and tvos. A Roku manifest fails ValidateManifest, the client_diagnostic_reports platform CHECK would refuse the row, and the web admin has no filter or label for it. This change adds roku as a platform everywhere the contract lists them. macos stays reserved and rejected.

Approach

  • roku joins the v1 manifest schema enum and contract.go's platform list as an additive v1 value, with a roku-manual.json valid fixture.
  • A migration replaces client_diagnostic_reports_platform_check with one that includes roku, added NOT VALID and then validated outside a transaction, as the tone-map migrations do. Down keeps the wider constraint, because narrowing it would fail while a Roku report is stored.
  • The admin diagnostics read responses list roku in their platform enum (OpenAPI and web types regenerated), and the web admin's platform filter and label show Roku. Without this, the admin page labels a Roku report "Android".
  • The hosted collector vendors this contract; Silo-Server/silo-diagnostics#21 copies it from this branch.

Validation

  • Go build, gofmt, go vet, make lint-changed, make lint-router-recovery: pass.
  • make test-go: all packages pass except two internal/jellycompat tests (TestPlaybackInfoWithoutStripOrToneMapStillHasNoRoute, TestPlaybackInfoSkipsStripWhenRPUCannotBeStripped), which fail the same way on main.
  • Web lint, format, build, budget, and make test-web: pass.
  • Contract and hygiene targets pass, including verify-apiv2-openapi, verify-apiv2-fixtures, verify-migrations, and the committed router artifact. verify-apiv2-contract passes with the two approvals this PR adds for the new enum value. verify-actionlint was not run: the local actionlint version is not 1.7.12, and no workflow changed.
  • The new migration test (listed in scripts/ci/db-contracts.txt) passed on a migrated Postgres: a Roku row is refused before the migration and accepted after it, existing rows stay, macos is still refused, and down keeps Roku rows valid.
  • A sandbox built from this branch shows the constraint with roku and lists Roku reports in the admin page.

Evidence

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

Risks

  • The migration rewrites one CHECK constraint on client_diagnostic_reports; validation scans the table outside a transaction. Down does not narrow it again.
  • Adding an enum value to two admin response bodies is a breaking-change by the contract checker; only the web admin reads these responses, and it learns roku here.

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 (one delegated Claude Code subagent wrote the first version of this commit)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; awaiting human review
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Add Roku to client diagnostics platform support

  • Adds roku to the diagnostics platform allowlist, manifest schema enum, and v2 API response enums for admin diagnostic report reads
  • New migration 20261031021616_allow_roku_client_diagnostic_reports.sql widens the platform check constraint to accept roku (macOS still rejected), with a PostgreSQL migration test covering rejection, acceptance, and rollback
  • Admin diagnostics web page gets a Roku filter option and a formatPlatform label
  • Updates the design doc and adds a valid Roku manual-report fixture
  • Risk: rolling back the migration leaves the widened constraint in place — check the down path in the migration and TestClientDiagnosticReportsRokuPlatformPostgres

Macroscope summarized 8099908.

The Roku client uploads client diagnostics, so roku joins the v1
manifest platform enum as a coordinated additive value. The contract
validator, the manifest schema, the admin diagnostics v2 response enum,
the web admin filter and labels, and the reports table's platform
CHECK accept it. macos stays reserved and rejected.

The new migration replaces client_diagnostic_reports_platform_check
NOT VALID and validates it outside a transaction. Its Down keeps the
wider constraint, since narrowing it would fail while a roku report
remains.

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

silo-kody Bot commented Oct 31, 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 31, 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-31T03:55:14.400129Z 6865b71 PR opened
🔒 Security Review ✅ Completed 2026-10-31T03:55:33.935561Z 6865b71 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.

@macroscopeapp

macroscopeapp Bot commented Oct 31, 2026

Copy link
Copy Markdown

The web admin diagnostics page now offers a Roku platform filter and labels Roku reports as “Roku”; evidence is missing. Add before-and-after desktop and mobile screenshots of the same diagnostics screen and data, and identify the surface and build or commit.

Suggested fix: No diff — attach the captures under Evidence or replace EVIDENCE_LINK with the published evidence URL.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added the enhancement New feature or request label Oct 31, 2026
The admin diagnostics read responses gain roku in their platform enum.
Only the web admin reads the field, and this pull request teaches it roku.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added go Pull requests that update go code priority: P2 Limited scope, workaround exists, or polish labels Oct 31, 2026
@coderabbitai

coderabbitai Bot commented Oct 31, 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: 1d16dd10-dbb6-43aa-a098-38d3481f40d0
Commits

Reviewing files that changed from the base of the PR and between 19e98f9 and 8099908.

Files selected for processing: 13
  • contracts/api/v2/breaking-approvals.json
  • contracts/api/v2/openapi.json
  • docs/design/2026-07-19-client-diagnostics.md
  • docs/design/schemas/client-diagnostics/v1/fixtures/valid/roku-manual.json
  • docs/design/schemas/client-diagnostics/v1/manifest.schema.json
  • internal/apiv2/admin_diagnostics_reads.go
  • internal/diagnostics/contract/contract.go
  • migrations/client_diagnostic_reports_roku_test.go
  • migrations/sql/20261031021616_allow_roku_client_diagnostic_reports.sql
  • scripts/ci/db-contracts.txt
  • web/src/api/types.ts
  • web/src/api/v2/schema.ts
  • web/src/pages/AdminDiagnostics.tsx

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

Walkthrough

Roku is added to client-diagnostics platform contracts, validation, and database acceptance. The admin diagnostics filter and display now recognize Roku reports.

Changes: Roku diagnostics support

Layer / File(s) Summary
Extend diagnostics platform contracts
docs/design/schemas/client-diagnostics/v1/manifest.schema.json, internal/diagnostics/contract/contract.go, contracts/api/v2/openapi.json, internal/apiv2/admin_diagnostics_reads.go, web/src/api/types.ts, web/src/api/v2/schema.ts, contracts/api/v2/breaking-approvals.json, docs/design/2026-07-19-client-diagnostics.md, docs/design/schemas/client-diagnostics/v1/fixtures/valid/roku-manual.json
The manifest schema, validation allowlist, and API platform enums accept Roku. The design documentation and valid fixture include Roku, and the API enum changes have approval records.
Allow Roku reports in the database
migrations/sql/20261031021616_allow_roku_client_diagnostic_reports.sql, migrations/client_diagnostic_reports_roku_test.go, scripts/ci/db-contracts.txt
The migration adds Roku to the database platform constraint and keeps macOS excluded. The PostgreSQL test checks acceptance and rejection before and after migration, plus Roku insertion after rollback. CI includes the test.
Show Roku in admin diagnostics
web/src/pages/AdminDiagnostics.tsx, internal/apiv2/admin_diagnostics_reads.go
The platform filter includes Roku, the formatter displays “Roku,” and the admin summary enum includes the platform.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

  • Silo-Server/silo-server#1986: Establishes the client-diagnostics manifest and capability behavior and the shared schema contract extended here.
  • Silo-Server/silo-server#3040: Marks the client-diagnostics design as shipped and links its API contracts, which this PR updates with Roku.

Suggested labels: javascript, api-v2, impact: compat

Suggested reviewers: rhainland, blurbery

Merge Risk: Minimal · up to 80999

The change adds Roku diagnostics support across validation, storage, and the admin UI. No merge-blocking issue was identified.

Security architecture risk: Low · up to 80999

The change adds a platform value without changing access privileges or report ownership. The database replacement preserves platform enforcement, and rollback deliberately retains Roku support to preserve stored reports. Remaining uncertainty concerns independently deployed consumers and operational rollout verification, rather than an identified authorization bypass.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The newly accepted value reaches the existing diagnostics storage and admin report responses. It does not select a new owner, grant privileges or introduce a different sensitive sink. Admin reads remain globally scoped for already-authorized administrators; that exposure predates this change.

Trust Boundaries and Controls

  • observed — Roku submissions follow the existing manifest, destination, consent, profile-attribution, quota, archive-integrity and storage checks before persistence. Admin diagnostic operations retain ClassActingAdmin and the central viewer-access and acting-admin gates.
Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description check Passed The description clearly explains the addition of Roku support across schemas, validation, migrations, API responses, and the web admin.
Title check Passed The title is concise, specific, and accurately summarizes the main change: accepting Roku as a diagnostics platform.
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: Docstring Coverage

Explanation

Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. 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 3 functions across 5 files. (8 skipped: 7 unsupported, 1 too large.)

Resolution

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

Finishing Touches
Generate docstrings
  • 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

@coderabbitai coderabbitai Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase impact: compat Breaks a supported client or server path javascript Pull requests that update javascript code labels Oct 31, 2026
@Quick104
Quick104 merged commit cd1a8cd into main Oct 31, 2026
25 checks passed
@Quick104
Quick104 deleted the feat/roku-diagnostics-platform branch October 31, 2026 19:05
Quick104 added a commit that referenced this pull request Nov 1, 2026
The contract check fails any branch that touches openapi.json while approvals
that match no change remain. Both were for #3298's roku diagnostics enum,
which is already on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit to Rhainland/silo-server that referenced this pull request Nov 1, 2026
Rhainland added a commit to Rhainland/silo-server that referenced this pull request Nov 1, 2026
The two approvals added for the roku diagnostics platform (Silo-Server#3298) match
no change against main any more, and the v2 contract check refuses stale
approvals whenever openapi.json changes.
Quick104 added a commit that referenced this pull request Nov 1, 2026
* feat(catalog): group movies into box sets from TMDB collections

Libraries can group the movies of a TMDB collection into one box set card.
A sync task stores each movie's collection and the collection's name,
release order and artwork; browse groups before pagination, a box set page
lists its movies, and search shows matching box sets first.

Refs #677

* fix(catalog): address box set review feedback

- A sync run skips items that already failed in it, so one failing movie,
  collection or image costs one failure and does not hold back the rest.
- With box set grouping, name_prefix matches a box set's representative,
  so a box set is listed under the one letter the letter index gives it.
- Box set search takes library_id, and the catalog search page passes it.
- Search builds box set views only for each collection's chosen library.
- Web: a failed box set read no longer replaces cached results, and a scope
  without movies hides box sets the query still holds.

* fix(catalog): search box sets only in the searched libraries

Box set search took its candidates from every stored collection and
filtered by library afterwards, so 200 better matches elsewhere could hide
one in the searched library. Candidates now come only from collections
with a movie in the libraries being searched.

* fix(web): wait for box sets before quick search says no matches

* fix(catalog): match box set titles only in the searched libraries

* fix(boxsets): run the box set sync on one server at a time

Every API process runs the task manager and fires the startup and hourly
triggers, and the due lookups claim no rows, so each server repeated the
same TMDB requests. Take an advisory lock as the other cluster-wide tasks
do; a server that finds it held skips the run.

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

* fix(boxsets): look up late movies and delete unused collections

A start requested while a sync runs is dropped, and Run never returned to
the movie lookup, so a library that turned box sets on during the
collection or artwork phase waited for the next hourly run. Run now repeats
until a lookup finds nothing new.

Nothing deleted a stored collection once its last movie left, so the row
and its cached artwork stayed. Each run now deletes collections no movie
belongs to; the delete trigger queues their artwork for collection.

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

* test(catalog): run the box set database tests in CI

CI skips database tests no list selects, so the grouping, search, sync and
artwork tests never ran there.

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

* feat(apiv2): advertise box sets to viewers

Only the admin-only getLibraryCapabilities reported box sets, so a viewer
client could not tell whether the box set reads exist. Report box_sets on
getCatalogSearchCapabilities too, beside the other catalog features.

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

* fix(catalog): count only visible movies in box set title search

Box set search counted every movie in the searched libraries whose title
matched, ignoring the viewer's library access and maturity limit. A
profile with a PG limit could get a box set because two R-rated movies
matched the query, which revealed words of titles it may not see.

The candidate query now runs over the viewer's access-filtered movies,
the same plan box set browse uses, so only visible movies count toward a
title match. Both box set queries share that filtered base.

* fix(boxsets): stop refreshing collections of libraries with box sets off

Turning box sets off for a library left its movies' collection lookups in
place, and the sync counted every lookup when deciding which collections
to keep and refetch. So the collections of a library with box sets off
stayed stored and were fetched from TMDB again every week, with their
artwork, for a feature that was off. A rematched movie's old lookup did
the same for its old collection.

Only a current lookup of a movie in an enabled library with box sets on
now keeps a collection stored and refreshed. Turning box sets back on
fetches the collections anew. Also drop CollectionIDsOfContent, which
nothing calls.

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

* fix(catalog): apply a query limit after a box set name prefix

With box set grouping the name prefix filters each group's representative,
but the query limit still capped the source rows before that filter. So
query_limit=50 with name_prefix=s took the library's first 50 titles and
kept the S ones among them, usually none. The limit now caps the grouped
rows under the prefix, as it does without box sets.

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

* fix(catalog): fail a box set page instead of dropping its movies

The grouped query has already folded each collection into one movie when
the box set cards are built. If building them failed, the page went out
with that movie as a plain card and its siblings missing from the page and
the totals. Return the error so the client can retry. The grouped browse
moves into its own method.

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

* fix(web): search box sets only when a library has them

Every quick search and catalog search sent a box set request, even on a
server where no library has box sets, and "No matches" waited for it,
including its retries. The request now waits for a library the viewer can
open with box sets on and is not retried.

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

* fix(web): keep the box set hero within a phone screen

The Play button names the next film and never wraps, so a long title
("Play Harry Potter and the Philosopher's Stone") widened the hero past a
390 px screen, clipping the title, overview and button. The label now
truncates instead.

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

* fix(web): let the detail hero shrink to a phone screen

The truncating Play label alone did not stop the box set hero overflowing:
the label is a flex item and the hero's primary column a grid item, and
both kept the default minimum width of their content. Give both min-w-0 so
the label truncates and the title and overview wrap within the screen.
Movie pages lay out as before.

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

* test(web): mock box set search in the catalog page tests

Box set search now reads the viewer's libraries, which needs the auth
provider these tests don't render. Mock it like the other search hooks.

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

* fix(apiv2): declare box set artwork URLs as URI references

Main's contract lint now requires every URL member to declare its format.
Mark the box set poster_url and backdrop_url as uri-reference, as the other
artwork URLs are, and regenerate the OpenAPI document and web types.

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

* feat(box-sets): show a movie's box set on its page and name box sets "Box Set"

A movie page now shows the movie's box set as a row of its films in
release order, with the movie being viewed marked "This film" and the
row opening at it, plus a link to the box set page.
getCatalogItemBoxSet (GET /api/v2/catalog/items/{id}/box-set) returns
it under the same rules as browse: a library with box sets on, the
viewer's access, and the library's minimum.

Box sets were titled with TMDB's collection name ("Harry Potter
Collection"), which reads like one of Silo's own collections. Reads now
show it as "Harry Potter Box Set", and search matches that title.

* fix(web): fit the box set row's titles under the movie hero

On a desktop window the full-height movie hero pushed the box set row's
film titles below the fold. When a movie has a box set row, the hero on
large screens now gives up just enough of its height for the row, down
to the row's title and year line, to end inside the viewport; it never
shrinks below its own content.

* fix(web): drop the watched count under the movie page's box set row

The heading already names the box set, and the cards show which films are
watched.

* fix(web): order the movie page as cast, extras, box set, more like this

The box set row moves below the cast and extras, matching the apps. Without
the row directly under the hero, the hero no longer shrinks to fit it, so
this also undoes that change. Media locations, shown only to curators, ends
the page.

* fix(web): label the box set row's link Explore all, as on Home rows

* fix(box-sets): hide a cached box set row once box sets are off

Review follow-ups: the movie page's box set query now returns no data
while no library has box sets on, so a row cached before the setting
changed does not reappear. The box_sets capability now lists
getCatalogItemBoxSet, and the row's comment says it opens at the page
of cards that holds the movie.

* fix(boxsets): sync box sets through the shared TMDB client

The box set sync built its own TMDB client with a private 20 requests
per second budget, so a sync spent TMDB requests outside the shared,
cluster-wide tmdb.requests_per_second limit every other feature uses.

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

* fix(catalog): find a box set by its TMDB name, and not by "box" alone

Box set search matched the shown title ("Harry Potter Box Set"), so the
name TMDB and other servers use, "Harry Potter Collection", no longer
found it, and a search for "box" or "set" (the movie The Box) listed
every TMDB collection's box set ahead of the movies. Search now matches
the name without its "Collection" suffix, and the words box, set and
collection count as matched by that suffix only beside a word the rest
of the name matches.

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

* fix(catalog): show a movie page's box set as its library shows it

Without library_id, getCatalogItemBoxSet built the box set's movies with
no presentation library, so the row read in the profile's language while
Explore all, which names the box set's library, read in that library's
metadata language.

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

* fix(web): hide a cached box set row once its own library turns box sets off

The row hid cached data only when no library had box sets on, so turning
them off in one library left its cached rows up while another library
kept them.

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

* chore(apiv2): drop the approvals #3298 used

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

* fix(web): always show a box set card's title and details

Main retired the card caption choice (#3142): every card shows its title
and details. The box set card still read the retired setting, so it hid
its watched count and years wherever the stored value was not
title_metadata.

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

* docs(catalog): say getCatalogItemBoxSet answers 404 for an episode or season ID

The docs promised a 200 without box_set for any item that is not a
movie, but the access check reads catalog titles only, so an episode or
season ID answers 404. Only movie pages call it, so the contract now
says what the code does.

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

---------

Co-authored-by: Quick104 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 2, 2026
* fix(notifications): let an iPhone recover push after a reinstall

A reinstalled iOS app keeps its device ID but sends a new installation key,
and every Apple push registration was refused with a generic 403 that nothing
on the server could clear.

A registration whose key does not match now gets 403
push_installation_key_mismatch when the caller's account owns the
installation; another account still gets permission_denied. The owning
account can call POST /api/v2/devices/push/apple/reset
(resetApplePushInstallation) with its login session and current key. Under
the installation lock the reset deletes the device's Apple push rows and
clears the stored key, owner and generation, so the next registration binds
the new key from any generation. A reset is refused for another account's
installation and is a no-op when the installation is already bound to the
sent key, so a retried reset cannot undo the registration after it. The
Apple capability reports installation_reset_available.

* chore(api): drop stale v2 breaking-change approvals

The two approvals added for the roku diagnostics platform (#3298) match
no change against main any more, and the v2 contract check refuses stale
approvals whenever openapi.json changes.

* docs(notifications): note that the reset and its registration are sent in order

* fix(notifications): keep a reset Apple installation reserved for its account

A reset cleared the installation's owner along with its key and
generation, and deleted the device's Apple push rows. Until the owner
registered again, any account that knew the device_id could bind the
installation through ordered bootstrap or the legacy writer, and the
owner could then neither register nor reset.

The reset now keeps the installation's account. Ordered bootstrap and
the legacy Apple writer refuse another account while that reservation
holds. The owner still registers with any key at any positive
generation.

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

* fix(notifications): check ownership on repeated installation resets

* docs(notifications): state push reset upgrade requirements

---------

Co-authored-by: Quick <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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 impact: compat Breaks a supported client or server path javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant