Skip to content

Omit player object from client/state when player role is inactive - #29

Merged
OnFreund merged 1 commit into
mainfrom
claude/pensive-joliot-86678f
Jul 31, 2026
Merged

OnFreund merged 1 commit into
mainfrom
claude/pensive-joliot-86678f

Conversation

@OnFreund

Copy link
Copy Markdown
Collaborator

Summary

  • Spec catch-up review against spec PR #122 (pre-1.0 clarifications) for the artwork, controller, metadata, player, and visualizer roles (source role skipped — not implemented in this client).
  • Found and fixed a real bug: sendClientState() always sent a player object in client/state, even when player wasn't in the server's active_roles. messaging.md requires player? only be sent when the client has the player role active, and a conformance-harness log line already confirmed aiosendspin flags this as non-compliant. sendClientState() now omits player unless player@v1/player is present in ServerHello.activeRoles.
  • Everything else in PR #122 was confirmed already compliant (artwork lateness handling, artwork channel indexing, visualizer big-endian parsing, metadata clock-domain conversion), N/A (group volume/mute formula is server-only — this client is a pure group/update receiver), or documentation-only (codec framing, codec_header base64, narrowed codec enum, bit_depth ignored for opus). Full rationale in plans/spec-catchup-122.md.

Test plan

  • ./gradlew :sendspin-protocol:test passes, including new ClientStatePlayerRoleTest covering: player role inactive (no player object), player role active via player@v1, player role active via unversioned player.

🤖 Generated with Claude Code

Spec PR #122 catch-up review: sendClientState() always sent a player
object regardless of active_roles, which messaging.md forbids and a
conformance-harness log line already flagged as non-compliant. The
rest of PR #122's clarifications (artwork lateness, metadata clock
domain, visualizer endianness, group volume/mute formula) were
already satisfied or are server-side/documentation-only; see
plans/spec-catchup-122.md for the full review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@OnFreund
OnFreund merged commit 1d8a034 into main Jul 31, 2026
2 checks passed
@OnFreund
OnFreund deleted the claude/pensive-joliot-86678f branch July 31, 2026 14:42
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