Repository navigation
Remove management and record mode from the client SDK - #470
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No blocking findings remain, and the activation whitelist matches the current specification.
Review effort: Balanced
Findings: None
What changed in this PR
Removes obsolete management and record-mode support from the client SDK while retaining deprecated server support.
Changes:
- Removes client management APIs and shared-record fallback.
- Requires server-bound pairing records and migrates older store files.
- Updates protocol, pairing, and integration tests.
| File | Description |
|---|---|
| tests/test_client_protocol_callbacks.py | Updates activation expectations. |
| tests/test_client_admission.py | Removes management admission tests. |
| tests/pairing_stores.py | Removes obsolete store helpers. |
| tests/noise/test_trust_store.py | Tests legacy-store migration. |
| tests/noise/test_pairing.py | Removes shared-fallback expectations. |
| tests/noise/test_driver.py | Tests required server binding. |
| tests/integration/test_pairing_record_capacity.py | Simplifies record accounting. |
| tests/integration/test_management_flow.py | Retains gating and unpair tests. |
| tests/client/test_management.py | Deletes client management tests. |
| aiosendspin/noise/trust_store.py | Removes record mode and migrates stores. |
| aiosendspin/noise/pairing.py | Always persists a server-bound record. |
| aiosendspin/noise/driver.py | Enforces long-term server binding. |
| aiosendspin/noise/__init__.py | Removes obsolete error export. |
| aiosendspin/client/management.py | Deletes client management handlers. |
| aiosendspin/client/connection.py | Rejects management and simplifies unpairing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
What does this implement/fix?
The client SDK no longer implements the management activity and record mode, which the spec removed in Sendspin/spec#183. Server-side management stays for now and is still deprecated.
Removed from the client side:
aiosendspin.client.management, includingManagementEffectClientPairingConfig.record_mode_psk_idClientPairingStore.set_record_mode_psk_id,can_store_record,storage_accountingandcan_remove_recordStorageExhaustedErrorandStorageReportClientPairingRecord.server_idis now required, and the client always checks it after a long-term PSK match.A client now closes with
unauthorizedwhen a server declares themanagementactivity, so servers should only enable management on legacy devices.Pairing store files from older versions still load:
record_mode_psk_idis ignored and shared records without aserver_idare dropped.Related issue or spec PR (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocumentationmaintenancecidependencies