Skip to content

feat: client discovery tag emission and capability learning for CEP-35#58

Open
harsh04044 wants to merge 1 commit intoContextVM:mainfrom
harsh04044:feat/cep-35-client-capability-exchange
Open

feat: client discovery tag emission and capability learning for CEP-35#58
harsh04044 wants to merge 1 commit intoContextVM:mainfrom
harsh04044:feat/cep-35-client-capability-exchange

Conversation

@harsh04044
Copy link
Copy Markdown

Part of #43

Implements the client side of CEP-35, the client now advertises its capabilities on the first outbound request and learns server capabilities from inbound discovery tags.

Changes:

Client emits discovery tags (support_encryption, support_encryption_ephemeral) on the first request only. Tags are
built from the client's encryption and gift wrap mode config. One-shot per session, subsequent requests carry no discovery tags.

Client event loop now calls learn_server_discovery() on every inbound event after decryption. The first event carrying discovery tags sets the session baseline (frozen after that). Capabilities are OR-assigned and never downgraded.

Public accessors: get_server_initialize_event() and discovered_server_capabilities().

7 unit tests and 3 integration tests covering tag emission conditions, one-shot behavior, OR-assign semantics, baseline freeze.

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.

1 participant