Skip to main content

Module capability_registry

Module capability_registry 

Source
Expand description

Peer Capability Registry

Tracks what capabilities each peer advertises so that queries can be routed to nodes that are able to serve them (vector search, TensorLogic, gradient sync, block storage, content routing, etc.).

§Two Capability Systems

This module contains two related but distinct capability tracking systems:

  1. NodeCapability / NodeCapabilityRegistry — legacy node-level capabilities for vector search, tensor logic, gradient sync, block storage, and content routing. These are keyed by a string name and carry structured payloads.

  2. Capability / PeerCapabilityRegistry — protocol-level capabilities for Bitswap, TensorSwap, Kademlia DHT, GossipSub, content addressing, and extensible custom capabilities. Advertisements are tick-based and support TTL-based expiry.

Structs§

CapabilityAdvertisement
A time-bounded advertisement of the Capability set that a peer supports.
CapabilityRegistryStats
Statistics snapshot for a PeerCapabilityRegistry.
NodeCapabilities
The full node-level capability advertisement sent by a single peer.
NodeCapabilityRegistry
Thread-safe registry that maps peer IDs to their node-level capability advertisements.
PeerCapabilityRegistry
Tick-based registry tracking which protocol-level Capability set each peer advertises.

Enums§

Capability
Protocol-level capability that a peer may advertise.
NodeCapability
A single node-level capability that a peer may advertise.