plato-relay
Mycorrhizal I2I Message Relay
Messages route through emergent trust-weighted hop chains. No central routing table.
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
[]
= "0.1"
use *;
let mut network = new;
// Agents join the network
network.add_agent;
network.add_agent;
network.add_agent;
// Send a message — relay finds the best path
let result = network.route;
// 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