Repository navigation
Restructure pair-method descriptors - #179
Merged
Merged
Conversation
arturpragacz
force-pushed
the
ap/restructure-pair-method-descriptors
branch
from
August 28, 2026 15:29
888a707 to
49aeb6d
Compare
arturpragacz
marked this pull request as ready for review
August 28, 2026 15:29
maximmaxim345
approved these changes
Aug 28, 2026
maximmaxim345
left a comment
Member
There was a problem hiding this comment.
Looks good, thanks @arturpragacz !
maximmaxim345
added a commit
that referenced
this pull request
Sep 10, 2026
Removes the digit audio pack that #173 introduced. During initial pairing the pack came from an unauthenticated peer, which thereby chose what the client's speaker played and drove the client's audio decoders before any trust was established. Speaking clients return to their own bundled voice, choosing the language against the server's `languages` hint in `server/hello` under RFC 4647 Lookup matching, as before #173. Hand revert rather than `git revert`: #179, #194 and #237 have since rewritten the surrounding text, and the `languages` move from `server/activate` to `server/hello` in #173 stays, since `client/pair-pending`'s `message` field relies on it. Changes, all in `messaging.md` and `pairing.md` with `README.md` regenerated: - Binary message ID `2` returns to the reserved `2-3` range. - `server/activate` `pairing.format?` no longer conditions `digits` on fitting a pack. - Sequence diagram, Digits emission, Protocol Errors, the `dynamic_pairing_code` descriptor (`digit_audio` removed; `out_channels` unchanged), the Messages intro, `client/pair-init` and `server/pair-init` lose their pack references. - The `Server → Client: Digit Audio Clip (Binary)` section is removed. Closes #203 --------- Co-authored-by: Maxim Raznatovski <nda.mr43@gmail.com>
This was referenced Sep 10, 2026
chrisuthe
added a commit
to Sendspin/aiosendspin
that referenced
this pull request
Sep 16, 2026
#354) # What does this implement/fix? Implements spec [#179](Sendspin/spec#179) and [#189](Sendspin/spec#189), plus the ignore-unrecognized-identifiers rule from [#178](Sendspin/spec#178) that shares the same parse path. `supported_pair_methods` in `client/hello` becomes an object keyed by pairing method identifier rather than a list of self-describing descriptors, the reader ignores identifiers and values it does not recognize, and a server offered both pairing-code methods prefers `dynamic_pairing_code` (spec #285 moved the one-method cap to the implementation guide). Clients on the superseded list wire keep working: the server rewrites the shape and flags it, as it already does for unversioned support keys and pre-rename artwork dimensions. Their tests are kept as legacy-wire acceptance tests. One judgement call worth a look. An unrecognized method identifier is logged, not sent through `_flag_noncompliance`: such a client is conformant per `pairing.md:318`, so flagging it would make a server running `allow_noncompliant_clients=False` reject spec-compliant clients. Offering both code methods is conformant since spec #285, so it is logged too; the SDK client still offers only the dynamic one. **Related issue (if applicable):** - n/a ## Types of changes - [x] Enhancement to an existing feature — `enhancement` ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable.
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.
Restructure pair-method descriptors.
method. A dictionary fits much better here than a list.client/hellomessage lists.