Files
adaptive-music/evidence/SENDSPIN-RECEIVER.md
T

2.9 KiB

Dedicated gateway receiver — public-interface investigation

Checked 2026-12-03. Evidence class: official public protocol/SDK documentation and pinned source inspection, not a running receiver or a live MA handshake.

Official references:

A separate player-role client is the supported public interface. Persist its X25519 identity and pairing records privately; advertise only player capability, use Noise transport, pin the intended server identity, and never advertise controller/source roles or forward MA traffic. The public protocol supports client-initiated discovery and connection as well as server-initiated connections. Prefer an operator-configured private MA peer with no broad household discovery. Read the exact pinned SDK behavior rather than assuming today's mutable specification matches every field.

Inspected aiosendspin 9.1.1 source distribution (already recorded archive SHA256): client/client.py:SendspinClient takes identity, pairing store, roles and player support; connect(url, expected_server_id=...) supplies a public connection path; add_audio_chunk_listener exposes decoded PCM, negotiated format and server presentation timestamps. Its time mapping methods convert presentation time. These methods avoid MA provider internals and virtual-player provisioning.

This makes a gateway-owned receiver feasible as a source-derived design. A worker can terminate Noise/codec state locally, validate PCM format/timestamps, and feed a campaign-specific bounded ring. Neither upstream control frames, pairing messages, MA credentials nor client-selected identities may reach listeners. The new strict WAV-to-PCM fixture pipeline exercises only local PCM validation/distribution, not that handshake or time mapping.

No SDK dependency has been installed, copied, adopted or bundled. The distribution is Apache-2.0 and its declared client dependencies include aiohttp, cpace, cryptography, mashumaro, noiseprotocol, orjson and zeroconf; a locked transitive and codec review is still required before adoption. The SDK's own README calls its client a test/reference client. No compatibility claim follows from API inspection.

Infrastructure needed for a live receiver experiment: isolated non-root worker, private writable identity/trust storage (0700/0600), operator-approved persistent receiver identity, explicit pairing to the pinned MA server, and an operator update to the account's nonempty player filter/target binding after verifying the new identity. The current authorization covers only Adaptive Music DEV, so no additional receiver identity was registered or selected. No mDNS advertisement, MA source edit, internal virtual-player API, grouping or production configuration was used.