Sovereign Mesh Index

v1.0 · MIT · Rust · zero dependencies

You run several sovereign services: a comm mesh with dozens of agents, a capability registry with a hundred primitives, orchestrators, memory services. Each answers on its own port, in its own shape, with its own idea of what "status" means. Nothing tells you what actually exists right now, in one place, in one schema.

This is that one place. It invents no data — it asks each source what it knows, normalizes the answers into a single entry shape, and serves the union.

What it does in one shot

curl -s localhost:17750/index | jq '.count'
140

curl -s localhost:17750/index | jq -r '.entries[] | "\(.kind)\t\(.id)\t\(.status)"' | head -4
agent      knowledge-node   online
agent      kemelectric      alive
agent      jev              online
capability browser.agent_desktop  unknown

Routes

GET /healthliveness plus per-source status: http code, entry count, ok flag
GET /indexall entries: kind, id, name, status, role, source, addr, raw
GET /index/<id>one entry by id
GET /resolve?q=<text>fuzzy lookup across agents and capabilities

Honest degradation

A source that is down appears in /health with ok:false and the real error string — never silently dropped:

{"source":"mesh.agents","ok":false,"error":"connect: Connection refused (os error 111)"}

An index that hides a dead source is worse than no index. Verified by pointing it at a closed port.

Design

Install

unzip sovereign-mesh-index.zip && cd sovereign-mesh-index
./install.sh

Builds the binary, writes a Restart=always systemd user unit, enables it, sets linger so it survives reboot, then health-checks. Idempotent.

Verified live before shipping: 140 entries indexed across four running sources (31 agents, 109 capabilities), restart-survives, and reports a dead source honestly.