Invariants / CN-SESS-02

CN-SESS-02

CN release enforced

Single handshake authority: ade_network::handshake::n2n_transition is the SOLE pub fn driving the N2N handshake state machine. ade_network::handshake::n2c_transition is the SOLE pub fn driving the N2C handshake state machine. No parallel handshake reducers. Type-level + CI grep enforcement.

Source

docs/planning/phase4-n-l-wire-protocol-invariants.md §1 (I-1)

Enforcement trace

Tests 2

  • crates/ade_network/src/session/handshake_driver.rs::tests::handshake_initiator_accepts_when_responder_supports_proposed_version
  • crates/ade_network/src/session/handshake_driver.rs::tests::handshake_initiator_rejects_on_no_overlap

Cross-references

Strengthened in

Evidence notes

PHASE4-N-L S1+S4 (2026-05-26) added ci/ci_check_handshake_closure.sh + the session::handshake_driver wrapper that composes n2n_transition over an opaque Transport trait. No second n2n_transition / n2c_transition fn exists in the workspace.