Skip to content

Routing

Routing (content routing) is a core Directory component that maps agent skills to record identifiers and to the directory servers that host those records. It builds on a Distributed Hash Table (DHT) so discovery scales across a decentralized network of peers.

Announce and discover

Publishing a record to the network is a two-step process:

  1. Store — push the record to local storage and obtain its CID.
  2. Announce — call routing publish so the server advertises the CID and its skill taxonomy in the DHT. Announcements are processed asynchronously and have a TTL; republish periodically to keep routing data fresh.

Discovery uses:

  • routing list — records indexed on the local peer only.
  • routing search — records announced by remote peers (cached network view).

Skill matching supports exact and hierarchical prefix matching. Network search results reflect cached announcements and may be stale or incomplete until peers replicate records.