Skip to content

docs: record the editorial rules in CONTRIBUTING.md - #165

Merged
maximmaxim345 merged 3 commits into
mainfrom
docs/editorial-rules
Aug 24, 2026
Merged

maximmaxim345 merged 3 commits into
mainfrom
docs/editorial-rules

Conversation

@chrisuthe

@chrisuthe chrisuthe commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #153.

Adds an Editorial rules section to CONTRIBUTING.md, placed between the source-files section and the pre-commit hook. Six rules:

  1. Each role file is self-contained — the issue's rule, with the PCM/codec-framing duplication across roles/player/v1.md and roles/source/v1.md named explicitly so the duplication stops looking like an error (the Document PCM byte layout as its own subsection, de-duplicated across the player and source roles #90 trap).
  2. Edit the source files, never README.md — the issue's first example.
  3. Every heading needs a unique anchor — the issue's second example, stating both build failures (duplicate anchors, dangling links).
  4. Use one canonical name per term — the issue's third example, extended with "prose names agree with the wire identifiers they describe" per the reasoning in Use one canonical name per PSK category (long-term PSK / pairing PSK / sentinel PSK) #141/Drop the "Sendspin" prefix from defined terms where it carries no information #148, plus the exception Drop the "Sendspin" prefix from defined terms where it carries no information #148 kept for prefixes that disambiguate (Sendspin client vs the WebSocket client).
  5. **Note:** blocks are non-normative — the mechanical rule from Make **Note:** non-normative: relocate the 14 Notes carrying BCP 14 keywords into body text #147: uppercase BCP 14 requirements belong in body text.
  6. A client describes itself across client/hello and client/state: @maximmaxim345's rule from the CONTRIBUTING.md: record the editorial rules for the split spec files #153 comment, with the boundary set at the connection's lifetime rather than permanence.

Rules 4 and 5 now describe main as it stands. Rule 6 does not yet: supported_commands sits in both messages until #142 consolidates it.

No source spec file changes; python3 tools/build-readme.py --check still passes (CONTRIBUTING.md is not part of the README build).

chrisuthe and others added 3 commits August 20, 2026 12:05
Adds an "Editorial rules" section so contributors see the rules the
source files obey before proposing a change, and reviewers can point
to a rule instead of re-explaining it:

- each role file is self-contained (deliberate duplication across
  role files is not an error)
- edit the sources, never the generated README.md
- headings need unique anchors (build-enforced)
- one canonical name per defined term, agreeing with the wire
  identifiers
- **Note:** blocks are non-normative; uppercase BCP 14 requirements
  belong in body text

Fixes #153

@maximmaxim345 maximmaxim345 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @chrisuthe !

I also added another rule to decide if something belongs into client/hello or client/state.

@maximmaxim345
maximmaxim345 merged commit e47d93d into main Aug 24, 2026
1 check passed
@maximmaxim345
maximmaxim345 deleted the docs/editorial-rules branch August 24, 2026 12:24
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.

CONTRIBUTING.md: record the editorial rules for the split spec files

2 participants