You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Static delay: specify what a client does with an out-of-range static_delay_ms #93
This issue had two parts. The spec already gives the persistence requirement. Only the range check stays. See the comment below.
Problem
The spec gives the range of static_delay_ms two times. The client/state player object says "static delay in milliseconds (0-5000)". The set_static_delay parameter in server/command says "(0-5000)".
But the spec does not tell the client what to do with a different value. Thus the behavior is not defined. A defective server or a local configuration can send a value out of the range.
The SDKs are different. sendspin-cpp obeys the range 0-5000. sendspin-js limits the value to the range. sendspin-cli changes a negative value to a positive value, thus −100 becomes +100. This makes an audible error. The other SDKs do not examine the value.
Change
Add this text to the paragraph "Static delay" in roles/player/v1.md:
Clients MUST clamp a received static_delay_ms to the range 0–5000 and SHOULD log an out-of-range value as a protocol error.
The client limits the value. The client does not reject the message. Thus one incorrect command cannot stop the audio output. The log entry helps the operator to find the defect in the server.
The spec already says that "Negative values are not supported and should never be required for any compliant implementation". This sentence then has a defined result.
Coordination
Issue #154 renames this field to output_delay_ms. If that issue lands first, use the new name in the text above.
changed the title [-]Static delay: SDK-level persistence hook, mandatory range validation[/-][+]Static delay: specify what a client does with an out-of-range `static_delay_ms`[/+]on Aug 18, 2026
Item 1 (persistence) — dropped. The protocol-level requirement is already in roles/player/v1.md: "Clients must persist static_delay_ms locally across reboots and server reconnections", along with the per-output guidance ("persisting separate delays per output"). What this issue additionally asked for was a recommended SDK persistence hook shape — an SDK API concern rather than wire-protocol text, and one of several such asks across the May audit batch. Better tracked in the SDK repos or Sendspin/conformance.
Item 2 (range validation) — still open, and now the whole of this issue.
Activity
[-]Static delay: SDK-level persistence hook, mandatory range validation[/-][+]Static delay: specify what a client does with an out-of-range `static_delay_ms`[/+]balloob commentedon Aug 18, 2026
Re-audited and re-scoped to item 2.
Item 1 (persistence) — dropped. The protocol-level requirement is already in
roles/player/v1.md: "Clients must persiststatic_delay_mslocally across reboots and server reconnections", along with the per-output guidance ("persisting separate delays per output"). What this issue additionally asked for was a recommended SDK persistence hook shape — an SDK API concern rather than wire-protocol text, and one of several such asks across the May audit batch. Better tracked in the SDK repos orSendspin/conformance.Item 2 (range validation) — still open, and now the whole of this issue.
Generated by Claude Code
maximmaxim345 commentedon Aug 19, 2026
Sounds good, but logging is a bit too much to ask IMO.
refactor: rename static_delay_ms to output_delay_ms (#164)