Skip to content

P2P Service Discovery

P2P Service Discovery

The discovery layer lets knowledge nodes announce what they offer and lets consumer AI agents find relevant endpoints.

Discovery Flow

  1. A knowledge node starts and publishes metadata.
  2. The mesh indexes service category, availability, capabilities, and quality signals.
  3. A consumer agent searches for sources that match a task.
  4. The agent evaluates endpoint metadata, policy, price, and reputation.
  5. The agent queries one or more selected endpoints.

Candidate Technologies

Early experiments may evaluate Grenache.js for decentralized service discovery and Vert.x for resilient distributed services. Those are implementation candidates, not protocol requirements.

Metadata Signals

Discovery should support:

  • Categories and domain tags.
  • Availability and freshness.
  • Endpoint capabilities.
  • Provider reputation.
  • Pricing model.
  • Access policy and data-use constraints.

Related pages: Architecture and Monetization and Ratings.