Nanda demo
A working prototype of the resolution flow from "NANDA: Networked Agent Name Discovery Architecture." A client that knows only an agent's name follows signed pointers to verified, actionable details, and a tampered field gets rejected by real cryptography, not a convention.
The problem
A name is not a trustworthy way to find an agent
As more software runs as autonomous agents, something has to answer a basic question safely: given only an agent's name, how does a client find where it lives, what it can do, what it costs, and whether any of that can be trusted, without taking the answer on faith? A phone-book lookup is not enough if the phone book itself can be altered.
The NANDA paper proposes a two-hop, signed-pointer architecture for exactly this. This project builds it far enough to be checked: real Ed25519 signatures, a genuine tamper test that fails closed, and an interactive walkthrough built so the mechanism is legible to someone seeing it for the first time.
Architecture
Two hops, then verify before you act
Signed canonical JSON was chosen over W3C Verifiable Credentials for this level: VCs add JSON-LD context resolution and a proof suite that buy interoperability the prototype does not need yet, while canonical-JSON signing already gives full tamper detection. The upgrade path is to wrap the body in a VC envelope later.
Detail
At a glance
| Resolution | Two-hop: NANDA index → AgentAddr (signed pointer) → AgentFacts service → AgentFacts (signed metadata). |
|---|---|
| Verification | Ed25519 signatures over canonical JSON via the platform Web Crypto API; any changed signed field fails verification. |
| Demo modes | Guided one-click walkthrough, a driveable protocol trace with tamper / TTL-expiry / circuit-break / revoke scenarios, and a multi-agent DAG economy with per-agent billing. |
| Under the hood | TTL-aware LRU cache, binary max-heap adaptive router, Kahn's-algorithm DAG scheduler, circuit-breaker state machine, SHA-256 Merkle-chained audit log. |
| Also included | Headless CLI demo and a 20-assertion test harness exercising the real registry and verification code, not a copy. |
| Stack | Next.js, deployed to Railway. |
| Stage | Live. |