Skip to main content

Module mesh_assess

Module mesh_assess 

Source
Expand description

Real-time cross-project assessment mesh transport (K6.6 / SOP 3).

Bridges the MeshCoordinator with the mesh networking stack so that assessment summaries, gossip, and full reports are exchanged over the wire in real-time rather than through artifact files on disk.

§Architecture

┌─────────────────┐        FrameType::AssessmentSync        ┌─────────────────┐
│  Node A          │  ────────────────────────────────────>  │  Node B          │
│  AssessmentSvc   │                                         │  AssessmentSvc   │
│  MeshCoordinator │  <────────────────────────────────────  │  MeshCoordinator │
└─────────────────┘        gossip / broadcast / report       └─────────────────┘

Messages are serialized as JSON inside MeshFrame payloads with FrameType::AssessmentSync. The AssessmentTransport holds a reference to both the MeshCoordinator and the [MeshRuntime]’s peer connection map, providing:

  • broadcast_to_peers – push a gossip or ReportAvailable message to all connected peers.
  • handle_incoming – decode an incoming assessment frame and feed it into the coordinator’s handle_message.
  • request_report – ask a specific peer for its latest full assessment report.
  • gossip_tick – periodic gossip loop driver (called by the mesh heartbeat tick or a dedicated timer).

Structs§

AssessmentEnvelope
Thin envelope wrapping AssessmentMessage with routing metadata.
AssessmentTransport
Real-time assessment mesh transport.