Arcana::Protocol
Handshake protocol for agent/service communication.
Messages follow a simple envelope convention where the payload
contains protocol metadata prefixed with _. This keeps the
protocol transparent — any envelope can be a protocol message,
and non-protocol envelopes work fine too.
Flow:
- Sender sends a
requestpayload - Recipient replies with
result,need, orerror - If
need, sender provides more info and goto 2
Discovery: send a {"tool": "help"} payload (or a Protocol.request
wrapping one) to any address to get its capabilities. Services
auto-respond via Arcana::Service's help handler; Toolsets return a
tools manifest via their auto-registered help tool.
Constants
VERSION = "arcana/1"