Repository navigation
chore(settings): vendor settings contract revision 8 - #364
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Quick104 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Code review summaryReviewed head: 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:
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 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 ( |
fb4be1c to
1aa604a
Compare
2c8222f to
40388ce
Compare
1aa604a to
2c66b7b
Compare
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]>
40388ce to
a5e76cb
Compare
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]>
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
iosApp/Tests/Fixtures/SettingsContract/manifest.jsonandconformance.jsonfrom server84ed9e596contracts/settings/v1withgit show. Both files are byte-identical to the server copies (checked withcmp).iosApp/iosApp/Networking/SettingKeys.generated.swiftwith the server's own generator at the same commit (go run ./cmd/settingsgen -lang swift, run from agit archiveof84ed9e596). The file was not hand-edited. The diff contains only contract changes:revisiongoes from 5 to 8.playback.intro_skip_mode,ui.card_overlays_enabled,ui.card_quick_actionsandui.card_quick_actions_enabled. The threeui.*keys are web-only.SettingKey.deprecatedset containsplayback.auto_skip_intro.SOURCEwith 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:
playback.subtitle_appearancedefault moves from a shadow to a 75% box. Apple's local fallback already uses a 75% box, so behavior does not change.en-GB,pt-BRandes-419. The generated presentation metadata filters them byintroduced_in, and the conformance test checks this.contractIsAheadOfServernow reports servers below revision 8 as needing an update for settings, as decision D10 intends.Validation
SettingsConformanceTests,SettingValuesAPITests,PlayerSettingsFlushTestsandOverlayPrefsStoreTestspassed: 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 underSiloTVTestspassed: 157 tests, 0 failures.scripts/ci/check-no-api-v1.shpassed.Risks and follow-ups
serverUpgradeRequiredfrom every effective-settings read (D10). That covers the settings screens, poster-badge overlay prefs (OverlayPrefsStoreshows 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./api/v1.playback.auto_skip_intro, which the server mirrors toplayback.intro_skip_modefor one release. Moving Apple to the three-wayintro_skip_mode(never / ask / always) is follow-up work.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