{
  "service": "k4-cage",
  "phase": 4,
  "workerVersion": "2.2.0",
  "routes": [
    {
      "method": "GET",
      "path": "/",
      "desc": "HTML API reference"
    },
    {
      "method": "GET",
      "path": "/viz",
      "desc": "Live SVG tetrahedron + mesh poll"
    },
    {
      "method": "GET",
      "path": "/api",
      "desc": "This route index (JSON)"
    },
    {
      "method": "GET",
      "path": "/api/mesh",
      "desc": "Full mesh + connect hub URLs + lazy sweep if due"
    },
    {
      "method": "GET",
      "path": "/api/meta",
      "desc": "Worker meta + lastSweep"
    },
    {
      "method": "GET",
      "path": "/api/health",
      "desc": "Liveness + features"
    },
    {
      "method": "GET",
      "path": "/api/vertex/:id",
      "desc": "Vertex + incident edges"
    },
    {
      "method": "POST",
      "path": "/api/presence/:id",
      "desc": "Heartbeat / status"
    },
    {
      "method": "GET",
      "path": "/api/edge/:v1/:v2",
      "desc": "Edge state"
    },
    {
      "method": "POST",
      "path": "/api/ping/:from/:to",
      "desc": "LOVE ping along edge"
    },
    {
      "method": "GET",
      "path": "/api/telemetry",
      "desc": "Telemetry chain (read)"
    },
    {
      "method": "POST",
      "path": "/api/telemetry",
      "desc": "Append telemetry (admin)"
    },
    {
      "method": "GET",
      "path": "/api/admin/dashboard",
      "desc": "Full dashboard (admin)"
    },
    {
      "method": "POST",
      "path": "/api/admin/sweep",
      "desc": "Force stale sweep (admin)"
    },
    {
      "method": "GET",
      "path": "/api/v4/mesh",
      "desc": "Scoped K₄ mesh (query ?scope= — personal | will | will/a/... depth≤4)"
    },
    {
      "method": "GET",
      "path": "/api/v4/scopes",
      "desc": "Registered scope paths (KV registry)"
    },
    {
      "method": "GET",
      "path": "/api/v4/vertex/:id",
      "desc": "Vertex in scope (?scope=)"
    },
    {
      "method": "POST",
      "path": "/api/v4/presence/:id",
      "desc": "Presence (?scope=)"
    },
    {
      "method": "POST",
      "path": "/api/v4/ping/:from/:to",
      "desc": "Ping edge (?scope=)"
    },
    {
      "method": "GET",
      "path": "/api/v4/health",
      "desc": "V4 capability probe"
    }
  ]
}