Repository navigation
Move the remaining requirement-shaped notes into body text - #166
Merged
Merged
Conversation
kahrendt
reviewed
Aug 24, 2026
kahrendt
left a comment
Contributor
There was a problem hiding this comment.
I think this needs a rebase still
| For the initial [`stream/start`](#server--client-streamstart) the server SHOULD select the highest-priority `supported_formats` entry it can produce for the current track. It MAY select a lower-priority entry when warranted, for example to match a track's native sample rate and avoid resampling, and MAY switch formats on a later track by sending a new `stream/start`. | ||
|
|
||
| **Note:** [`required_lead_time_ms`](#client--server-clientstate-player-object) and [`min_buffer_ms`](#client--server-clientstate-player-object) are reported via [`client/state`](#client--server-clientstate-player-object). Players should report the lowest values that reliably prevent buffer underruns and start-of-stream truncation under expected conditions, to ensure the lowest possible latency for real-time applications. Both should factor in expected network delay/jitter (small on LAN/Wi-Fi, larger for remote or high-latency clients). Do not include `static_delay_ms` in these values; the server applies `static_delay_ms` separately when calculating send-ahead. | ||
| [`required_lead_time_ms`](#client--server-clientstate-player-object) and [`min_buffer_ms`](#client--server-clientstate-player-object) are reported via [`client/state`](#client--server-clientstate-player-object). Players SHOULD report the lowest values that reliably prevent buffer underruns and start-of-stream truncation under expected conditions, to ensure the lowest possible latency for real-time applications. Both SHOULD factor in expected network delay/jitter (small on LAN/Wi-Fi, larger for remote or high-latency clients). These values MUST NOT include `static_delay_ms`; the server applies `static_delay_ms` separately when calculating send-ahead. |
Contributor
There was a problem hiding this comment.
Nit: "These values MUST NOT"
MUST NOT is the actionv, so the player should be the one following this, the values have no agency on their own
Member
Author
There was a problem hiding this comment.
Rebased and reworded that sentence in a5a2b6b.
The keyword pass in #147 covered notes carrying uppercase BCP 14 keywords. Seven notes were left stating requirements with a lowercase keyword or no keyword at all, so a reader could still not safely skip a note. Promoted to body text with an uppercase keyword: - The audio-codec and image-format support requirements in roles/player/v1.md and roles/artwork/v1.md, now matching the roles/source/v1.md twin that #161 already promoted. - The role-removal ordering rule in messaging.md, which had no keyword (MUST). - Image scaling in roles/artwork/v1.md, the only statement of that server behavior anywhere in the spec (MUST). - The lead-time and buffer reporting guidance in roles/player/v1.md (SHOULD, and MUST NOT for the output_delay_ms exclusion). Reworded to read as comments, requirement dropped: - The two stream/request-format notes ("clients should use" becomes "clients can use"). Also drops the double blank line left in client/goodbye when the shutdown note was folded into its reason bullet. Refs #100
maximmaxim345
force-pushed
the
refactor/note-keyword-pass
branch
from
August 24, 2026 15:46
42cb91b to
a5a2b6b
Compare
kahrendt
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #161, which relocated the 14
**Note:**blocks carrying uppercase BCP 14 keywords (#147). Some notes that do not use the RFC style wording benefit from the same pass: they state a requirement with a lowercase keyword or with no keyword at all, so a reader still cannot safely skip a note. Refs #100.Two moves, decided per note.
Promoted to body text with an uppercase keyword
roles/player/v1.mdandroles/artwork/v1.md. refactor: move normative requirements out of Note blocks into body text #161 promoted theroles/source/v1.mdtwin, so this class of requirement was body text in one role file and a lowercase note in two others. All three now match.messaging.md, which had no keyword at all (now MUST). Make**Note:**non-normative: relocate the 14 Notes carrying BCP 14 keywords into body text #147 notes that moving this one is not sufficient.roles/artwork/v1.md(now MUST). This is the only statement of that server behavior anywhere in the spec, so the requirement lived solely inside a note. The channel-numbering half of the note stays a note.roles/player/v1.md(SHOULD, and MUST NOT for thestatic_delay_msexclusion). It sits directly above the Server behavior list that governs the same fields.Reworded so they read as comments
stream/request-formatnotes, inmessaging.mdandroles/player/v1.md: "clients should use" becomes "clients can use". Purely advisory.The two copies are kept because they sit at different scopes, the generic message and the player-specific object, matching how the role files already restate codec details independently.
Left alone
connection.mdhas two bare-imperative notes ("Do not manually connect to servers if you are advertising_sendspin._tcp"). Both are one direction of the exclusivity MUST at the top of that section, so the rule is already stated normatively and the notes read as practical reminders.Notes carrying a lowercase "may" in
messaging.md(the?notation, and per-version support objects) define notation and naming rather than granting permission, with the requirements stated separately nearby.Verification
Every remaining
**Note:**block in the source files is a comment with no requirement-shaped wording.python3 tools/build-readme.py --checkpasses.