Skip to content

chore(settings): vendor settings contract revision 8 - #364

Merged
Quick104 merged 1 commit into
mainfrom
apiv2-stack/16-settings-contract-rev-8
Sep 23, 2026
Merged

Quick104 merged 1 commit into
mainfrom
apiv2-stack/16-settings-contract-rev-8

Conversation

@Quick104

Copy link
Copy Markdown
Contributor

Apple now vendors settings contract revision 8 from server 84ed9e596, so the v2 settings PRs that follow read and write against the server's current contract.

Problem

Apple vendored settings contract revision 5 (server dfa78454). The server is at revision 8 and Android at revision 7. The vendored manifest, conformance fixture and generated key bindings must match the server before the settings reads and writes move to v2.

Solution

  • Re-vendor iosApp/Tests/Fixtures/SettingsContract/manifest.json and conformance.json from server 84ed9e596 contracts/settings/v1 with git show. Both files are byte-identical to the server copies (checked with cmp).
  • Regenerate iosApp/iosApp/Networking/SettingKeys.generated.swift with the server's own generator at the same commit (go run ./cmd/settingsgen -lang swift, run from a git archive of 84ed9e596). The file was not hand-edited. The diff contains only contract changes:
    • revision goes from 5 to 8.
    • New keys: playback.intro_skip_mode, ui.card_overlays_enabled, ui.card_quick_actions and ui.card_quick_actions_enabled. The three ui.* keys are web-only.
    • A new SettingKey.deprecated set contains playback.auto_skip_intro.
  • Update SOURCE with the revision, the last-changed commit of each file, the copy commit, the generator commit and the re-vendor steps.

What revision 8 changes for Apple:

  • The shared playback.subtitle_appearance default moves from a shadow to a 75% box. Apple's local fallback already uses a 75% box, so behavior does not change.
  • Language option sets gain regional tags such as en-GB, pt-BR and es-419. The generated presentation metadata filters them by introduced_in, and the conformance test checks this.
  • contractIsAheadOfServer now reports servers below revision 8 as needing an update for settings, as decision D10 intends.

Validation

  • iOS, tvOS and macOS builds passed.
  • iOS tests for SettingsConformanceTests, SettingValuesAPITests, PlayerSettingsFlushTests and OverlayPrefsStoreTests passed: 157 tests, 0 failures. The test bundle contains the revision 8 manifest and fixture, so the revision agreement checks and all conformance cases, including the 10 new ones, ran against revision 8. The same classes under SiloTVTests passed: 157 tests, 0 failures.
  • scripts/ci/check-no-api-v1.sh passed.
  • The completed stack passed the full iOS suite (1981 tests) and tvOS suite (1792 tests) with 0 failures, built for macOS and passed the v1 path guard. Every branch in the stack builds on its own.

Risks and follow-ups

  • Servers whose settings contract is below revision 8 (server main before fix(ios): show one spinner during pull-to-refresh on Home and Browse #786, merged 2026-08-27) now get serverUpgradeRequired from every effective-settings read (D10). That covers the settings screens, poster-badge overlay prefs (OverlayPrefsStore shows the update message), profile settings reads and player device-settings reads. The player keeps its cached values and skips the legacy import. The write endpoints are not revision-gated, so player-setting writes still reach those servers. The settings editors stop saving once their read reports the update state. Current server main serves revision 8.
  • Do not ship this PR to TestFlight ahead of the rest of the stack. D10 pairs the bump with a minimum server version of the v2 bridge release. Shipped alone, it would show the update state on servers from before 2026-08-27 while the rest of the app still uses /api/v1.
  • Apple still reads and writes playback.auto_skip_intro, which the server mirrors to playback.intro_skip_mode for one release. Moving Apple to the three-way intro_skip_mode (never / ask / always) is follow-up work.
  • Android pins revision 7 (AN3). Apple is one revision ahead until Android re-vendors.

AI disclosure

Code and description written by Claude Opus 5.5 (claude-opus-5-5) agents in Claude Code (T3 Code), orchestrated by a Claude Code workflow.


Part 16 of 50 in the Apple API v2 stack. Base: apiv2-stack/15-drop-string-setting-fallback. Merge in order from the bottom of the stack. The plan and full index are in PR 01.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: d1d6ba00-555a-43e4-b812-eb1b46489aad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 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-09-23T13:39:52.438732Z a5e76cb 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.

@greptile-apps greptile-apps 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.

Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@Quick104

Copy link
Copy Markdown
Contributor Author

Code review summary

Reviewed head: 2c8222fb (apiv2-stack/16-settings-contract-rev-8).

Process: an adversarial review of this PR's diff with each candidate finding independently verified before any fix, a simplify pass for medium and larger PRs, and a whole-stack review across contract conformance, authority and failure handling, data integrity, user-visible behavior and cross-PR integration.

Verified findings, all fixed on this branch:

  • minor: PR body understates who gets the upgrade-required state, and where

Validation: this branch builds on its own for iOS, tvOS and macOS, and its focused tests passed. The completed stack passed the full iOS suite (1981 tests) and tvOS suite (1792 tests) with 0 failures, the macOS build and the v1 path guard. The final stack was also exercised on iOS and tvOS simulators against a v1/v2 bridge server: sign-in (password and QR), restore, browse, search, detail, favorites and watchlist, playback (direct play, transcode, subtitles, stop), audiobooks, downloads with offline playback, settings, requests, profiles, push registration and diagnostics. Server logs showed no /api/v1 request from the new builds except the retained health probe.

Remaining: no open verified findings. Merge in stack order.

Mergeability: 8/10 — conditional. The approach holds up and every verified finding is fixed. Conditions: this PR's CI must pass (it was pending at review time), and the owner still plans a physical-device check of the completed stack.

Review by Claude Opus 5.5 (claude-opus-5-5) agents in Claude Code (T3 Code).

@Quick104
Quick104 force-pushed the apiv2-stack/15-drop-string-setting-fallback branch from fb4be1c to 1aa604a Compare September 23, 2026 13:19
@Quick104
Quick104 force-pushed the apiv2-stack/16-settings-contract-rev-8 branch from 2c8222f to 40388ce Compare September 23, 2026 13:19
@Quick104
Quick104 force-pushed the apiv2-stack/15-drop-string-setting-fallback branch from 1aa604a to 2c66b7b Compare September 23, 2026 13:36
Apple carried settings contract revision 5 (server dfa78454) while the
server is at revision 8 and Android at 7. The v2 settings work that
follows reads and writes against the server's current contract, so the
vendored manifest, conformance fixture and generated key bindings need
to match it first.

Re-vendor manifest.json and conformance.json byte-identically from
server 84ed9e596 contracts/settings/v1 and regenerate
SettingKeys.generated.swift with the server's cmd/settingsgen at the
same commit. Revision 8 adds playback.intro_skip_mode (superseding the
now-deprecated playback.auto_skip_intro), the web-only card overlay and
quick-action keys, regional language suggestions, and moves the shared
subtitle default to a 75% box, which Apple already uses. Servers below
revision 8 now report that they need an update for settings, as
decided in D10.

Stack-PR: W4-K
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Base automatically changed from apiv2-stack/15-drop-string-setting-fallback to main September 23, 2026 13:36
@Quick104
Quick104 force-pushed the apiv2-stack/16-settings-contract-rev-8 branch from 40388ce to a5e76cb Compare September 23, 2026 13:36
@Quick104
Quick104 merged commit 678f396 into main Sep 23, 2026
3 checks passed
@Quick104
Quick104 deleted the apiv2-stack/16-settings-contract-rev-8 branch September 23, 2026 13:36
Quick104 added a commit that referenced this pull request Sep 23, 2026
Brings in the API v2 migration (#349–#400). The only conflict was
Tests/Fixtures/SettingsContract/SOURCE: main vendored the same revision 8
contract (#364) at the same server commits, so its SOURCE note is taken
as is and this branch no longer changes the contract files.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant