Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
docs,mobile,deploy: clean up remaining SAM references and restore rename note
Antonio Ojeaabd436c4cff7
diff --git a/README.md b/README.mdindex 42c48fb6..28112137 100644--- a/README.md+++ b/README.md@@ -9,6 +9,7 @@ and an identity every other node can verify. Nodes connect directly when theycan and through relays when they cannot, so the network works across laptops,containers, clusters and phones behind NAT.+> **Note:** We have updated the name to **Agent Mesh** to better align with the goals of the project in the ecosystem.Two properties hold everywhere:diff --git a/charts/agentmesh/Chart.yaml b/charts/agentmesh/Chart.yamlindex 5751e1f3..1e39da8d 100644--- a/charts/agentmesh/Chart.yaml+++ b/charts/agentmesh/Chart.yaml@@ -1,6 +1,6 @@apiVersion: v2name: agentmesh-description: A Helm chart for deploying the SAM control plane, router and console+description: A Helm chart for deploying the Agent Mesh control plane, router and consoletype: applicationversion: 0.1.0appVersion: "1.0.0"diff --git a/charts/agentmesh/README.md b/charts/agentmesh/README.mdindex 3a1858eb..ce7da6e7 100644--- a/charts/agentmesh/README.md+++ b/charts/agentmesh/README.md@@ -11,7 +11,7 @@ own mesh.## Install```bash-helm upgrade --install agentmesh ./charts/agentmesh --namespace sam --create-namespace \+helm upgrade --install agentmesh ./charts/agentmesh --namespace agentmesh --create-namespace \--set controlPlane.oidcIssuer=<your OIDC issuer URL>```@@ -118,10 +118,10 @@ gateway:allowedRoutes:namespaces:from: Same- hostnames: [sam.example.com]+ hostnames: [mesh.example.com]addresses:- type: NamedAddress- value: sam-cp-ip+ value: agentmesh-cp-ip```## OIDC login for the consolediff --git a/deploy/skypilot/agentmesh-one.yaml b/deploy/skypilot/agentmesh-one.yamlindex d310175c..8b0eeffe 100644--- a/deploy/skypilot/agentmesh-one.yaml+++ b/deploy/skypilot/agentmesh-one.yaml@@ -1,19 +1,19 @@-# SkyPilot recipe for deploying a standalone SAM control plane + router (agentmesh-one)+# SkyPilot recipe for deploying a standalone Agent Mesh control plane + router (agentmesh-one)# on any cloud provider (GCP, AWS, Azure, OCI, or Kubernetes).## Production deployment with a permanent custom domain:-# sky launch -y -c sam-hub deploy/skypilot/agentmesh-one.yaml --detach-run \+# sky launch -y -c agentmesh-hub deploy/skypilot/agentmesh-one.yaml --detach-run \# --env AGENTMESH_EXTERNAL_URL=https://mesh.example.com \# --secret AGENTMESH_TUNNEL_TOKEN## Quick deployment with an automatic HTTPS tunnel:-# sky launch -y -c sam-hub deploy/skypilot/agentmesh-one.yaml --detach-run-# sky logs sam-hub 1 --no-follow+# sky launch -y -c agentmesh-hub deploy/skypilot/agentmesh-one.yaml --detach-run+# sky logs agentmesh-hub 1 --no-follow## Note: For lightweight testing, you can lower `cpus: 0.25+` and `memory: 1+`# to run on cloud free-tier instances (such as GCP `e2-micro` or AWS `t4g.micro`).-name: sam-hub+name: agentmesh-hubresources:disk_size: 20@@ -44,8 +44,8 @@ setup: |VERSION=$(curl -fsSL "https://api.github.com/repos/google/agentmesh/releases?per_page=1" | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')fiTMP_DIR=$(mktemp -d)- curl -fsSL -o "${TMP_DIR}/sam.tar.gz" "https://github.com/google/agentmesh/releases/download/${VERSION}/sam_Linux_${ARCH_NAME}.tar.gz"- tar -xzf "${TMP_DIR}/sam.tar.gz" -C "${TMP_DIR}"+ curl -fsSL -o "${TMP_DIR}/agentmesh.tar.gz" "https://github.com/google/agentmesh/releases/download/${VERSION}/agentmesh_Linux_${ARCH_NAME}.tar.gz"+ tar -xzf "${TMP_DIR}/agentmesh.tar.gz" -C "${TMP_DIR}"sudo mv "${TMP_DIR}/agentmesh-one" "${TMP_DIR}/agentmesh-node" /usr/local/bin/rm -rf "${TMP_DIR}"fidiff --git a/development/examples/chat-a2a/README.md b/development/examples/chat-a2a/README.mdindex f72da525..0088e9fe 100644--- a/development/examples/chat-a2a/README.md+++ b/development/examples/chat-a2a/README.md@@ -44,7 +44,7 @@ gossip-fed; retry for a few seconds after startup if the list comes back empty.```shcurl -s -H 'X-Mesh-Authentication: Bearer devtoken' \- "http://127.0.0.1:9099/sam/$PEER/a2a/chat/.well-known/agent-card.json" | jq+ "http://127.0.0.1:9099/mesh/$PEER/a2a/chat/.well-known/agent-card.json" | jq```The interface URLs point back at this mesh path (not the agent's own address)@@ -57,7 +57,7 @@ Requires [`uv`](https://docs.astral.sh/uv/).```shcd development/examples/chat-a2a-uv run --with-requirements requirements.txt chat.py "http://127.0.0.1:9099/sam/$PEER/a2a/chat"+uv run --with-requirements requirements.txt chat.py "http://127.0.0.1:9099/mesh/$PEER/a2a/chat"```Tell the agent your name, then ask for it back a couple of turns later: thediff --git a/development/examples/multi-tier-guardrails/SCRIPT.md b/development/examples/multi-tier-guardrails/SCRIPT.mdindex 7bf33477..8a113592 100644--- a/development/examples/multi-tier-guardrails/SCRIPT.md+++ b/development/examples/multi-tier-guardrails/SCRIPT.md@@ -1,6 +1,6 @@# Multi-Tier Guardrails & Quality Gates — Recording Script-A ~3.5-minute terminal recording demonstrating how SAM serves all **5 enterprise personas** across **4 acts** with real backends (`gemma3:1b` on Ollama, official `a2a-sdk`, official `mcp` SDK + SQLite, and `api.github.com`). Every config file (`node-v1.yaml`, `node-caller.yaml`, `node-v2.yaml`, `node-contractor.yaml`, `policy.json`) and every command (`agentmesh-node join`, `make node-v1-staging`, `curl`, `python3 a2a_client.py`, `mcp-client`, `agentmesh-one admin ban`) is shown directly on screen.+A ~3.5-minute terminal recording demonstrating how Agent Mesh serves all **5 enterprise personas** across **4 acts** with real backends (`gemma3:1b` on Ollama, official `a2a-sdk`, official `mcp` SDK + SQLite, and `api.github.com`). Every config file (`node-v1.yaml`, `node-caller.yaml`, `node-v2.yaml`, `node-contractor.yaml`, `policy.json`) and every command (`agentmesh-node join`, `make node-v1-staging`, `curl`, `python3 a2a_client.py`, `mcp-client`, `agentmesh-one admin ban`) is shown directly on screen.## Scenesdiff --git a/development/examples/multi-tier-guardrails/run.sh b/development/examples/multi-tier-guardrails/run.shindex 8520dd6a..13c7c4de 100755--- a/development/examples/multi-tier-guardrails/run.sh+++ b/development/examples/multi-tier-guardrails/run.sh@@ -15,7 +15,7 @@# Multi-Tier Guardrails & Quality Gates — End-to-End 5-Persona Runner#-# Demonstrates how SAM serves all 5 enterprise personas across 4 acts with real+# Demonstrates how Agent Mesh serves all 5 enterprise personas across 4 acts with real# backends (Ollama gemma3:1b, official a2a-sdk, official mcp SDK + SQLite, and# https://api.github.com), while clarifying the 3 points where labels are used:# 1. Mesh Enforcement (policy.json allowed_labels): Control Plane attestsdiff --git a/mobile/agentmesh-node-app/README.md b/mobile/agentmesh-node-app/README.mdindex c63e98ad..1a09387c 100644--- a/mobile/agentmesh-node-app/README.md+++ b/mobile/agentmesh-node-app/README.md@@ -133,9 +133,9 @@ Exposes capabilities directly to the OS registry, allowing native assistants (li### 📸 Screenshots-| Node Status / Dashboard | Services & Telemetry |-|:---:|:---:|-|  |  |+| Welcome | Join / Enroll | Node Running |+|:---:|:---:|:---:|+|  |  |  |1. **Dashboard Tab**: Displays current status, Node ID, connected peers, and DHT size.2. **Services Tab**: Allows enabling/disabling embedded sensors (Battery/Location) and bridging external local MCP servers.@@ -151,7 +151,7 @@ You can query the phone's telemetry from a remote machine (or another node) usin1. **Discover tools on the remote phone service**:```bash- # Query the local SAM node proxy for tools hosted by the phone-sensors peer+ # Query the local Agent Mesh node proxy for tools hosted by the phone-sensors peer# (-token is your own node's API token, not the phone's)go run cmd/mcp-client/main.go \-url "http://localhost:8080/mesh/<PHONE_PEER_ID>/mcp/phone-sensors" \diff --git a/mobile/agentmesh-node-app/android/app/src/main/kotlin/dev/sammesh/connect/SamNodeForegroundService.kt b/mobile/agentmesh-node-app/android/app/src/main/kotlin/dev/sammesh/connect/SamNodeForegroundService.ktindex f1293061..2cca8858 100644--- a/mobile/agentmesh-node-app/android/app/src/main/kotlin/dev/sammesh/connect/SamNodeForegroundService.kt+++ b/mobile/agentmesh-node-app/android/app/src/main/kotlin/dev/sammesh/connect/SamNodeForegroundService.kt@@ -79,7 +79,7 @@ class SamNodeForegroundService : Service() {private fun createNotification(): Notification {val builder = NotificationCompat.Builder(this, CHANNEL_ID)- .setContentTitle("SAM Connect is running")+ .setContentTitle("Agent Mesh Connect is running").setContentText("Maintaining the mesh connection in the background").setSmallIcon(android.R.drawable.ic_menu_share) // Placeholder icon.setOngoing(true)@@ -90,8 +90,8 @@ class SamNodeForegroundService : Service() {private fun createNotificationChannel() {if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {- val name = "SAM Connect mesh connection"- val descriptionText = "Keeps SAM Connect connected to the mesh in the background"+ val name = "Agent Mesh Connect mesh connection"+ val descriptionText = "Keeps Agent Mesh Connect connected to the mesh in the background"val importance = NotificationManager.IMPORTANCE_LOWval channel = NotificationChannel(CHANNEL_ID, name, importance).apply {description = descriptionTextdiff --git a/mobile/agentmesh-node-app/android/app/src/main/res/values/strings.xml b/mobile/agentmesh-node-app/android/app/src/main/res/values/strings.xmlindex 3f4313bf..cedc38fd 100644--- a/mobile/agentmesh-node-app/android/app/src/main/res/values/strings.xml+++ b/mobile/agentmesh-node-app/android/app/src/main/res/values/strings.xml@@ -1,4 +1,4 @@<?xml version="1.0" encoding="utf-8"?><resources>- <string name="sam_app_description">SAM Mesh Controller</string>+ <string name="sam_app_description">Agent Mesh Controller</string></resources>diff --git a/mobile/agentmesh-node-app/android/app/src/main/res/xml/app_metadata.xml b/mobile/agentmesh-node-app/android/app/src/main/res/xml/app_metadata.xmlindex 05fc1bc6..3945f466 100644--- a/mobile/agentmesh-node-app/android/app/src/main/res/xml/app_metadata.xml+++ b/mobile/agentmesh-node-app/android/app/src/main/res/xml/app_metadata.xml@@ -1,5 +1,5 @@<?xml version="1.0" encoding="utf-8"?><AppFunctionAppMetadataxmlns:appfn="http://schemas.android.com/apk/androidx.appfunctions"- appfn:description="Agent Mesh (SAM) node controller. Allows monitoring and managing the local mesh node."+ appfn:description="Agent Mesh node controller. Allows monitoring and managing the local mesh node."appfn:displayDescription="@string/sam_app_description" />diff --git a/mobile/agentmesh-node-app/lib/mcp_server.dart b/mobile/agentmesh-node-app/lib/mcp_server.dartindex 383102fd..f3bb63f5 100644--- a/mobile/agentmesh-node-app/lib/mcp_server.dart+++ b/mobile/agentmesh-node-app/lib/mcp_server.dart@@ -45,7 +45,7 @@ class SamDartMcpServer {if (_server != null) throw StateError('already started');_token = newToken();_server = await HttpServer.bind(InternetAddress.loopbackIPv4, port);- debugPrint('SAM Dart MCP Server listening on port ${_server!.port}');+ debugPrint('Agent Mesh Dart MCP Server listening on port ${_server!.port}');_server!.listen((HttpRequest request) async {if (!_authorized(request)) {@@ -87,7 +87,7 @@ class SamDartMcpServer {_server = null;_token = null;_sseClients.clear();- debugPrint('SAM Dart MCP Server stopped');+ debugPrint('Agent Mesh Dart MCP Server stopped');}static const int _maxRequestBodyBytes = 1024 * 1024;@@ -169,7 +169,7 @@ class SamDartMcpServer {'result': {'protocolVersion': '2024-11-05','capabilities': {'tools': {}},- 'serverInfo': {'name': 'sam-dart-sensors', 'version': '1.0.0'}+ 'serverInfo': {'name': 'agentmesh-dart-sensors', 'version': '1.0.0'}}};}diff --git a/mobile/agentmesh-node-app/pubspec.yaml b/mobile/agentmesh-node-app/pubspec.yamlindex f87ad8c4..d4f81895 100644--- a/mobile/agentmesh-node-app/pubspec.yaml+++ b/mobile/agentmesh-node-app/pubspec.yaml@@ -1,5 +1,5 @@name: sam_agent-description: "Agent Mesh (SAM) Mobile Agent - Decentralized mesh node and MCP tool registry for Android and iOS."+description: "Agent Mesh Mobile Agent - Decentralized mesh node and MCP tool registry for Android and iOS."publish_to: 'none'version: 1.0.0+1diff --git a/mobile/agentmesh-node-app/test/mcp_server_test.dart b/mobile/agentmesh-node-app/test/mcp_server_test.dartindex 0b9e953e..429df2a5 100644--- a/mobile/agentmesh-node-app/test/mcp_server_test.dart+++ b/mobile/agentmesh-node-app/test/mcp_server_test.dart@@ -36,7 +36,7 @@ void main() {expect(response['id'], 1);expect(response['result'], isNotNull);expect(response['result']['protocolVersion'], '2024-11-05');- expect(response['result']['serverInfo']['name'], 'sam-dart-sensors');+ expect(response['result']['serverInfo']['name'], 'agentmesh-dart-sensors');});test('Handle notifications/initialized (should return null for no body)', () async {diff --git a/sdk/README.md b/sdk/README.mdindex 81af884b..d092f98d 100644--- a/sdk/README.md+++ b/sdk/README.md@@ -1,9 +1,9 @@# Native SDKs-This directory holds the SDKs that let an agent join a SAM mesh from inside+This directory holds the SDKs that let an agent join an Agent Mesh from insideits own process, without a `agentmesh-node` sidecar. Two languages are in scope:-- [`js/`](js/) — `@agentmesh-p2p/sdk`, TypeScript for Node.js, built on+- [`js/`](js/) — `agentmesh-p2p`, TypeScript for Node.js, built on[js-libp2p](https://github.com/libp2p/js-libp2p).- [`python/`](python/) — `agentmesh-p2p` (import `agent_mesh`), built on[py-libp2p](https://github.com/libp2p/py-libp2p).@@ -282,7 +282,7 @@ messages in `api/agentmesh.proto`. Bodies are capped at 1 MiB on both sides.- Muxer: yamux (libp2p default).- Relay: circuit relay v2, with the routers as static relays; hole punchingis on. A node behind NAT is reached through a router.-- DHT: Kademlia with protocol prefix `/sam`, mode auto.+- DHT: Kademlia with protocol prefix `/mesh`, mode auto.### Streams@@ -595,23 +595,22 @@ holds against the control plane's records.- Ban enforcement: the auth handshake and the A2A ingress refuse a bannedpeer before looking at its token; `connect()` refuses to dial one; itsconnections are dropped when the ban lands.-- Publishing: `.github/workflows/release.yml` stamps the release tag's+- Publishing: `.github/workflows/sdk.yml` stamps the release tag'sversion on both packages (`hack/sdk-version.sh`) and publishes- `@agentmesh-p2p/sdk` to npm and `agentmesh-p2p` to PyPI through trusted+ `agentmesh-p2p` to npm and `agentmesh-p2p` to PyPI through trustedpublishing. A prerelease tag (`v0.1.0-rc.4`) publishes under the npmdist-tag `next`, a stable tag under `latest`; PyPI needs no tag, `pip`skips prereleases on its own. When a publish job (`publish-sdk-js`or `publish-sdk-python`) fails after the GitHub release exists, re-runthe failed job, or run the workflow by hand from the Actions tab withthe tag and target SDK as input; it checks out that tag and publishes- the selected SDK. One-time setup by a package owner: on npmjs.com, create the- `agentmesh-p2p` organization, publish `@agentmesh-p2p/sdk` 0.1.0 once by hand+ the selected SDK. One-time setup by a package owner: on npmjs.com, publish `agentmesh-p2p` 0.1.0 once by hand(`cd sdk/js && npm publish --access public`; the trusted-publishersettings live on the package page, which exists only after that), then- register `google/sam` with workflow `release.yml` under the package's+ register `google/agentmesh` with workflow `sdk.yml` under the package'sSettings, Trusted publishing; on pypi.org, add a pending publisher forproject `agentmesh-p2p` with the same repository and workflow (environment- left empty), which reserves the name and lets the first tag create the+ `release`), which reserves the name and lets the first tag create theproject. No publishing token is stored in the repository.- Docs: `site/content/docs/guides/native-sdks.md`.- Tests. Unit: a fake control plane rotates its key and bans a peer; each@@ -640,7 +639,7 @@ SDK's client every five minutes and is Ready while the last answer namedthe caller, so the Deployment's availability says whether an agent is stillreachable after hours on the mesh. Two CronJobs cross every implementationboundary every 15 minutes and once per rollout: the `agentmesh-node` cold-path-probe (`sam-probe-cronjob-template.yaml`) runs an agent per SDK as sidecars+probe (`agentmesh-probe-cronjob-template.yaml`) runs an agent per SDK as sidecarsand fetches each one's agent card by peer ID through the egress proxy(node → SDK), and the SDK cold-path probe(`agentmesh-sdk-probe-cronjob-template.yaml`) runs each SDK's callers against thediff --git a/sdk/python/README.md b/sdk/python/README.mdindex 5dd01bf7..be967db8 100644--- a/sdk/python/README.md+++ b/sdk/python/README.md@@ -1,4 +1,4 @@-# sam-mesh (Python)+# agentmesh-p2p (Python)Native Python SDK for joining an Agent Mesh from inside the agentprocess. It replaces the `agentmesh-node` sidecar for agents written in Python:diff --git a/site/content/_index.md b/site/content/_index.mdindex 00793ae2..09591d65 100644--- a/site/content/_index.md+++ b/site/content/_index.md@@ -7,6 +7,8 @@ the tools and models it offers, finds what other nodes offer, and calls themover authenticated peer-to-peer connections, through relays when the machinescannot reach each other directly.+> **Note:** We have updated the name to **Agent Mesh** to better align with the goals of the project in the ecosystem.+Nothing is reachable by default: a node exposes no services until told to, andno node may call a service the mesh policy has not granted. Identity comes fromyour identity provider, and the control plane that turns it into meshdiff --git a/tests/integration/sdk_examples_test.go b/tests/integration/sdk_examples_test.goindex 4f08b91a..b5f686cb 100644--- a/tests/integration/sdk_examples_test.go+++ b/tests/integration/sdk_examples_test.go@@ -84,7 +84,7 @@ var acceptingLine = regexp.MustCompile(`^accepting (\S+) as (\S+)$`)// TestNativeSDKExamples runs the programs the SDK READMEs and the Native// SDKs guide embed, unchanged, against a real mesh, configured as the-// testnet canaries are (.github/k8s/sam-sdk-canary-template.yaml). Each+// testnet canaries are (.github/k8s/agentmesh-sdk-canary-template.yaml). Each// SDK's agent example enrolls with an OIDC token through AGENTMESH_JWT_PATH, the// way a Kubernetes workload does, and accepts A2A requests for a2a://agent,// publishing nothing. Each SDK's call example enrolls with a bootstrapdiff --git a/tests/ui/package.json b/tests/ui/package.jsonindex 271acf51..10f22a42 100644--- a/tests/ui/package.json+++ b/tests/ui/package.json@@ -1,7 +1,7 @@{"name": "agentmesh-console-ui-tests","private": true,- "description": "Playwright smoke test for the SAM console UI",+ "description": "Playwright smoke test for the Agent Mesh console UI","scripts": {"test": "playwright test"},