Skip to content

Move the remaining requirement-shaped notes into body text - #166

Merged
kahrendt merged 2 commits into
mainfrom
refactor/note-keyword-pass
Aug 24, 2026
Merged

kahrendt merged 2 commits into
mainfrom
refactor/note-keyword-pass

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

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

  • The audio-codec and image-format support requirements in roles/player/v1.md and roles/artwork/v1.md. refactor: move normative requirements out of Note blocks into body text #161 promoted the roles/source/v1.md twin, so this class of requirement was body text in one role file and a lowercase note in two others. All three now match.
  • The role-removal ordering rule in 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.
  • Image scaling in 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.
  • The lead-time and buffer reporting guidance in roles/player/v1.md (SHOULD, and MUST NOT for the static_delay_ms exclusion). It sits directly above the Server behavior list that governs the same fields.

Reworded so they read as comments

  • The two stream/request-format notes, in messaging.md and roles/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.md has 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 --check passes.

@kahrendt kahrendt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs a rebase still

Comment thread README.md Outdated
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.

@kahrendt kahrendt Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
maximmaxim345 force-pushed the refactor/note-keyword-pass branch from 42cb91b to a5a2b6b Compare August 24, 2026 15:46
@kahrendt
kahrendt merged commit ceacb99 into main Aug 24, 2026
1 check passed
@kahrendt
kahrendt deleted the refactor/note-keyword-pass branch August 24, 2026 17:09
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.

2 participants