Skip to content

Catch up on non-encryption spec PRs #193-#288 - #35

Open
OnFreund wants to merge 1 commit into
mainfrom
claude/upbeat-diffie-1f8bef
Open

OnFreund wants to merge 1 commit into
mainfrom
claude/upbeat-diffie-1f8bef

Conversation

@OnFreund

Copy link
Copy Markdown
Collaborator

Summary

Catches up sendspin-protocol on the batch of Sendspin/spec PRs merged 2026-09-02 through 2026-09-16 (after the last sync point, PR #192), excluding the encryption/pairing/management-namespace PRs a parallel session is implementing concurrently in a sibling worktree.

  • PR #188 — Rewrites the artwork binary protocol to the new announce/part/cancel chunking scheme (breaking wire change), including per-channel current/pending image state, time-filter-scheduled apply, and connection-closing on every malformed message/sequence the spec defines.
  • PR #195 + #177 — Moves supported_commands, artwork channel config, and visualizer types/rate_max/spectrum from client/hello into client/state; removes stream/request-format in favor of SendSpinClient.setPlayerFormatPreference().
  • PR #238 — ClientPreferences now requires at least one flac/pcm format when advertising a player (Opus alone is no longer sufficient, since servers are only required to support flac/pcm).
  • PR #209 — Adds client/leave.
  • PR #210 — Fixes track-progress extrapolation to compute elapsed time in the server's clock domain instead of the local clock (adds ClockSync.toServerMicros, the inverse of toLocalMicros).
  • PR #283 / #266 — Verified existing behavior is already correct (no flush on in-place format change; full artwork current+pending teardown on stream/end) and documented the contract explicitly on AudioPlayer.transition().

The remaining ~50 PRs in the window were individually checked against the current code: most are editorial or server-side-only with no client-visible effect, a handful (source@v1, custom/application-specific roles) are for features this library doesn't implement, and a few — notably PR #275 "Clear role state on deactivation" — depend on the client/init/server/init/server/activate handshake that this codebase doesn't have yet (that layer is the parallel session's in-flight work). Building any of those here would mean standing up throwaway activation machinery that conflicts with that session's changes, so they're deferred with a note for whoever integrates the two branches.

Full PR-by-PR accounting, including everything verified as "no code change needed" and why, is in plans/spec-catchup-193-288.md.

Also found, spun off as a separate follow-up (not fixed in this PR, out of this window): MessageParser.kt's audio binary parsing never picked up the 4-byte send_ahead field spec PR #167 added (merged in the previous sync window) — it's silently corrupting the first 4 bytes of every decoded audio chunk. Flagged as its own task rather than folded in here.

Test plan

  • ./gradlew :sendspin-protocol:test --rerun-tasks — 190 tests, 0 failures, 0 skipped (164 pre-existing + 26 new)
  • New tests: ArtworkChunkingTest (announce+parts→current, clear, cancel, future-timestamp scheduling, malformed-sequence closes, stream/end teardown), ClientLeaveTest, PlayerFormatPreferenceTest, plus new/updated cases in SendSpinClientHelloTest, MessageParserTest, ClockSyncTest

🤖 Generated with Claude Code

Implements the artwork announce/part/cancel binary chunking protocol
(spec PR #188), folds stream/request-format and per-role hello support
objects into client/state (PR #195, #177), guards against advertising
Opus without flac/pcm (PR #238), adds client/leave (PR #209), and fixes
metadata progress extrapolation to use server-clock elapsed time
instead of local-clock (PR #210).

The remaining ~50 PRs in the window were verified against the current
codebase: most are editorial or server-side-only, a handful (source@v1,
custom roles) are for features this library doesn't implement, and a
few (PR #275, most of #274, #265) depend on the client/init/server/init/
server/activate handshake that a parallel session is implementing
concurrently in a sibling worktree — deferred rather than built on top
of infrastructure that doesn't exist here yet. See
plans/spec-catchup-193-288.md for the full PR-by-PR accounting.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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