webapp, sdk/js: a browser joins the mesh from the web app at /node/ #934
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #934"
general
weight: 0.35
aojea
Summary
A browser can now join a mesh. Before this, a member needed
agentmesh-node, an SDK program or the Android app.agentmesh-oneandagentmesh-consoleserve Agent Mesh Connect at/node/. It is a web app that runs the JavaScript SDK in the page. The browser becomes a normal member, with its own key, credential and Node ID.What a user can do
Join
<url>/node/#token=<token>link. The fragment never reaches a server.Run the node
Connect a local agent (computers only)
Sign in
The page shows Sign in only when:
/infonames an issuer, andstatematches the sign-in this tab started. A crafted?error=or?code=link shows only the page's own text.--oidc-session-ttlonagentmesh-control-plane).Local agent
@w3c/webmcp-polyfill0.1.1 where the browser lacks it.@mcp-b/webmcp-local-relay6.2.0). That relay accepts calls from any local program, so the mesh serves a launcher around it: one file,/node/sdk/agentmesh-relay.mjs, which needs only Node.js 22.agentmesh-node's API token is.SDK changes (
sdk/js)NotEnrolledError,AgentMesh.forgetandStateStore.remove.close()waits for an in-flight credential refresh or control plane pull.MeshToolvalues, which the stdio MCP server registers.sdk/js/webapp/. npm does not ship them.wsfrom 8.21.3 to 8.23.0, which its^8.22.1range needs.Build and deploy
make allbuilds the SDK bundle the page imports, then the binaries. Releases and container images build both.make buildonly still runs. It says the app is missing and serves a page that says so.- the HTTPRoute sends
/node/on the control plane's host to the console;- the testnet Dex lists
https://{bananas,hub}.sam-mesh.dev/node/as redirect URIs and allows both origins.Evidence
Every new test was checked to fail without its fix.
| Layer | Command | What it pins |
| --- | --- | --- |
| Page model |
node --test internal/webapp/model.test.mjs| state machine, sign-in return parsing, the agent prompt || SDK |
cd sdk/js && npm test(Node 22) | refused calls (unsigned, unpaired, stale, replayed, sent twice at once, altered, signed before a reload), one agent per pairing token, close waiting for a refresh || Go |
go test ./internal/webapp/ ./cmd/agentmesh-one/ ./cmd/agentmesh-console/| handler files and headers, the/node/mount in both binaries || UI |
make ui-test| the journeys below |UI journeys in
tests/ui/app.spec.js:- hidden with no provider, without CORS, or with a discovery document for another issuer;
- forged returns show only the page's own text;
- a silent provider: gives up after 15 s, and a token join still works;
- follows a provider being removed and restored without a reload;
- joins, renews without sending the ID token, and rejoins with the same Node ID.
Merge Danger
Door: two-way. The app is new, under a new path,
/node/. Removing the mount or the route rule turns it off.Blast Radius: small.
/node/.