Federation

Join the global mesh.

Handshake

POST /v1/federate/handshake
{
  "fromRegistry": "...",
  "endpoint":     "...",
  "publicKey":    "...",
  "scope":        ["agent","tool","skill"]
}
{ "syncToken": "tok_..." }

Sync

POST /v1/federate/sync
{ "syncToken": "tok_...", "limit": 1000, "cursor": null }
{ "entries": [ /* ... */ ], "nextCursor": "..." }

Continue until nextCursor is null.

List peers

GET /v1/registries
{ "registries": [ { "did": "...", "endpoint": "...", "entryCount": 0, "lastSync": "..." } ] }