Skip to content

Remove management and record mode from the client SDK - #470

Merged
maximmaxim345 merged 2 commits into
mainfrom
refactor/remove-client-management
Oct 2, 2026
Merged

maximmaxim345 merged 2 commits into
mainfrom
refactor/remove-client-management

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

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, including ManagementEffect
  • ClientPairingConfig.record_mode_psk_id
  • ClientPairingStore.set_record_mode_psk_id, can_store_record, storage_accounting and can_remove_record
  • StorageExhaustedError and StorageReport

ClientPairingRecord.server_id is now required, and the client always checks it after a long-term PSK match.
A client now closes with unauthorized when a server declares the management activity, so servers should only enable management on legacy devices.

Pairing store files from older versions still load: record_mode_psk_id is ignored and shared records without a server_id are dropped.

Related issue or spec PR (if applicable):

Types of changes

  • Bugfix (non-breaking change which fixes an issue): bugfix
  • New feature (non-breaking change which adds functionality): new-feature
  • Enhancement to an existing feature: enhancement
  • Breaking change (changes the public API or the protocol in a way that is not backwards compatible): breaking-change
  • Refactor (no behavior change): refactor
  • Documentation only: documentation
  • Maintenance / chore: maintenance
  • CI / workflow change: ci
  • Dependencies bump: dependencies

@maximmaxim345
maximmaxim345 requested a balanced review from Copilot October 2, 2026 08:04
@github-actions github-actions Bot added the breaking-change Changes the public API or the protocol in a way that is not backwards compatible label Oct 2, 2026

Copilot AI 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.

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.

@maximmaxim345
maximmaxim345 merged commit ae4af57 into main Oct 2, 2026
4 checks passed
@maximmaxim345
maximmaxim345 deleted the refactor/remove-client-management branch October 2, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Changes the public API or the protocol in a way that is not backwards compatible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants