Nexer Protocol
Rust implementation of the Nexer Tunnel Protocol wire contract.
See PROTOCOL.md for the protocol flows, message use cases, and security model.
This crate owns:
- length-prefixed frame encode/decode
- JSON message envelope encode/decode
- strict protocol-token validation
- message body validation
- default target policy helpers
- canonical data-connection signature input
- shared data-connection HMAC helpers
- service preparation control messages
It deliberately does not own client CLI behavior, socket orchestration, gateway session state, product auth, billing, or tool adapters.
Wire Shape
Every framed JSON message uses the same envelope:
Known message bodies reject unknown fields. Future optional data should go under
an explicit extensions map, not arbitrary top-level fields.
Test