Skip to content

Stop offering management to clients that don't support it - #544

Merged
maximmaxim345 merged 1 commit into
mainfrom
fix/management-older-clients
Oct 12, 2026
Merged

maximmaxim345 merged 1 commit into
mainfrom
fix/management-older-clients

Conversation

@maximmaxim345

Copy link
Copy Markdown
Member

What does this implement/fix?

The server offered the deprecated management activity to every paired client, including clients on the current protocol, which don't know it since the spec removed it.

Management is now only offered to paired clients on the pre-spec-#177 wire (uses_pre_spec_177_wire), which covers every client that implemented it. For other clients, enable_management now raises a RuntimeError.

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

A paired client on the current wire got `server/activate` with `management`, an activity it does not know.
Copilot AI balanced review requested due to automatic review settings October 9, 2026 12:34
@github-actions github-actions Bot added the bugfix Fixes a bug label Oct 9, 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.

🟢 Approval recommended

The compatibility gate matches legacy-wire detection and is covered by focused tests.

0 open findings

What changed in this PR

Restricts deprecated management activity to paired clients using the compatible pre-spec-#177 wire.

Changes:

  • Gates management capability by long-term pairing and legacy wire detection.
  • Rejects management enablement for current-wire clients.
  • Adds regression coverage for rejection behavior.
File Description
aiosendspin/​server/​connection.py Restricts management capability and updates errors/documentation.
tests/​server/​test_management_issuer.py Tests current-wire rejection and configures legacy fixtures.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@maximmaxim345
maximmaxim345 merged commit e684686 into main Oct 12, 2026
4 checks passed
@maximmaxim345
maximmaxim345 deleted the fix/management-older-clients branch October 12, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants