plato-relay 0.2.0

Mycorrhizal I2I relay — emergent routing through trust-weighted hop chains
Documentation
  • Coverage
  • 20.45%
    9 out of 44 items documented0 out of 26 items with examples
  • Size
  • Source code size: 23.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.49 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 37s Average build duration of successful builds.
  • all releases: 48s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SuperInstance

plato-relay

Mycorrhizal I2I Message Relay

Messages route through emergent trust-weighted hop chains. No central routing table.

crates.io docs.rs CI License: MIT

What?

plato-relay implements mycelial message routing — inspired by how fungal networks distribute nutrients in forests. There's no central routing table. Instead, messages find paths through the network based on trust weight between agents. Frequently successful communication between two agents strengthens their connection, making future messages route through them preferentially.

This creates an emergent routing topology that adapts to which agents actually work well together, not who was configured to talk to whom.

Quick Start

[dependencies]
plato-relay = "0.1"
use plato_relay::*;

let mut network = RelayNetwork::new();

// Agents join the network
network.add_agent(Agent::new(1, "forgemaster"));
network.add_agent(Agent::new(2, "oracle1"));
network.add_agent(Agent::new(3, "jc1"));

// Send a message — relay finds the best path
let result = network.route(Message::new(1, 3, "constraint snap results"));
// Routes through the highest-trust path, strengthening it

Core Concepts

  • Agent — A network participant with an ID and trust scores toward other agents
  • Message — A routed message with source, destination, and payload
  • DeliveryResult — Confirmation of message delivery with path taken and latency
  • RelayNetwork — The full routing engine managing agents and trust weights

Trust Dynamics

Agent A sends to Agent C via Agent B
    → if delivery succeeds: A-B trust += 1, B-C trust += 1
    → if delivery fails: A-B trust -= 1 (path weakens)
    → high-trust paths are preferred for future routing
    → network topology emerges from communication patterns

Why Mycelial?

In a forest, mycorrhizal fungi form networks that route nutrients from source trees to sink trees along concentration gradients. The network has no central controller — routing emerges from local supply and demand. Similarly, plato-relay routes fleet messages based on local trust scores, creating a self-organizing communication network.

Part of PLATO

Part of the PLATO ecosystem — mycelial communication for the Cocapn AI agent fleet.

License

MIT — Cocapn Fleet