2026-11-26 15:47 UTC

Open-source Go implementation brings ANS agent naming and verification within reach

state: watchingheat: lowuncertainty: mediumrelevance: highagent-identity agent-interoperabilityAgent Name Service maintainers

What is this?

Agent Name Service (ANS) is a proposed DNS-based, protocol-agnostic system for naming, discovering and verifying AI agents using public-key infrastructure. A May 2025 Internet-Draft introduced the concept; the Linux Foundation announced an intent to launch ANS in June 2026, according to a supplied web result. The agentnameservice GitHub project describes its Go repository as an open-source reference implementation based on the IETF draft. The README documents a registration authority and transparency log, versioned names, identity certificates, Merkle-log receipts, and an offline verifier. It presents these as implemented features, while some production adapters remain future community work. The sources establish a release and technical design, not adoption, operational deployment at scale, or governance arrangements. The dates and scope of the later Linux Foundation initiative relative to this repository are not clarified.

Why it matters

If AI agents act across organizational boundaries, people and services will need ways to identify an agent, check who controls it, and inspect a verifiable history of its state. ANS makes a concrete, open implementation of that infrastructure available, combining DNS-style naming with certificates and cryptographic transparency proofs. That could make agent discovery and verification easier to integrate across systems, but a reference implementation does not establish a shared trust authority, broad compatibility, or adoption.

Current assessment

The MIT-licensed Go ANS reference implementation is based on a May 2025 IETF Internet-Draft. Its README describes registration and lifecycle services, identity certificates, an append-only Merkle transparency log with SCITT receipts, and offline verification; these are project-described capabilities, not independently validated production results. Local quickstart and deployment paths are documented, while some production adapters are future work. A Hacker News listing mentions a Linux Foundation ANS initiative, but no primary announcement or details are available here, leaving its scope and relationship to this repository unconfirmed. Repeated listings and low, cooling discussion do not establish adoption. A shared naming and verification layer could help agent discovery and identity checks, but trusted registry operation, governance, interoperability, and deployment remain unresolved.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 520h
points/hour across evidence Β· reading as of 2026-11-27 02:23:58.509736+11:00 Β· deterministic, not a model opinion

How the heat travelled

11-04 23:29 (minted)⭐ origin echo-reconstructedThe repository README describes ans as β€œan open-source implementation of the Agent Name Service (ANS), a registry + transparency log for dis
agentnameservice on github (echo) Β· attributed from hn.story.50372606 Β· published time unknown
β€”
11-04 22:54first on hacker news Β· published Β· lag ?Open-source reference implementation of the Agent Name Service (ANS)
mooreds
β€”
11-04 22:54amplified on hacker newshn.story.50372606
mooreds
peak 1 Β· 0 comments Β· 17% of case engagement
11-11 21:18amplified on hacker newshn.story.50458832
bitlad
peak 1 Β· 0 comments Β· 17% of case engagement
11-16 12:38amplified on hacker news πŸ‘‘hn.story.50516964
frankacter
peak 3 Β· 0 comments Β· 49% of case engagement
11-19 03:41amplified on hacker newshn.story.50555799
qainsights
peak 1 Β· 0 comments Β· 17% of case engagement
11-04 23:25our radar first saw it Β· lag ?discovery anchor: hn.story.50372606β€”
pace: p40 vs 1845 stories at the 336h mark (now 520h old) β€” ahead of abmaze-protein-fitness-agent-benchmark (1.3x), behind agentplay-coding-agent-cost-dashboard (0.8x)

Evidence (5) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnOpen-source reference implementation of the Agent Name Service (ANS)
Retrieved article excerpt

Open article Β· Retrieved 2026-11-04T23:27:30.058610+00:00

# ans β€” Agent Name Service

`ans` is an open-source implementation of the Agent Name Service
(ANS), a registry + transparency log for discovering and verifying
AI agents by name. Every registered agent gets:

- A versioned DNS-style name: `ans://v1.0.0.my-agent.example.com`
- A publicly-auditable event history (append-only Merkle log)
- SCITT COSE\_Sign1 receipts proving the agent's state at a point in time
- Identity certificates signed by a private CA for mTLS between agents
- Optional BYOC server certificates + pinned TLSA records

The wire shape β€” event envelope, SCITT COSE receipts, sumdb-note
checkpoints, `/root-keys` format β€” is the public contract. Offline
verifiers and TL clients depend on it byte-for-byte.

## Binaries

| Binary | Port | Role |
| --- | --- | --- |
| `ans-ra` | 18080 | Registration Authority β€” accepts registrations, issues identity certs, tracks lifecycle |
| `ans-tl` | 18081 | Transparency Log β€” durable Merkle-tree append log, serves badges + receipts |
| `ans-verify` | β€” | Offline CLI verifier for SCITT COSE receipts and status tokens |
| `ans-dns` | 15353 | Dev-only authoritative DNS server with `install` / `clear` subcommands for local end-to-end verify-dns testing |

Both daemons (`ans-ra`, `ans-tl`) serve Swagger UI at `/docs` β€”
browse <http://localhost:18080/docs> (RA) and
<http://localhost:18081/docs> (TL) after `make build && scripts/demo/start.sh`. The raw OpenAPI bytes live at
`/docs/openapi.yaml` on each host.

To call protected endpoints from Swagger UI's "Try it out" button:
click **Authorize** in the top-right and paste the static API key.
The quickstart defaults are:

- RA: `ans-dev-key-change-me` (from `config/ra-local.yaml`)
- TL: `tl-internal-key` (from `config/tl-local.yaml`)

The RA writes signed events; the TL verifies, ingests, and publishes
them. An operator can run just the TL (for read-only verification) or
both together (full registry).

For a native Ubuntu host with systemd, Caddy, OIDC, and Let’s Encrypt, see
the [RA/TL deployment guide](https://github.com/agentnameservice/ans/blob/main/deploy/ubuntu/README.md).

## Quickstart (60 seconds)

```
# Prereqs: Go 1.26+, openssl, curl, jq
git clone https://github.com/agentnameservice/ans
cd ans
make build                        # builds bin/ans-ra, bin/ans-tl, bin/ans-verify, bin/ans-dns
scripts/demo/start.sh             # starts both daemons against ./data/demo
scripts/demo/run-lifecycle.sh     # registers an agent, verifies the receipt end-to-end
```

Expected output (last few lines):

```
━━━ 13. Offline verify (bin/ans-verify) ━━━
  βœ“ Fetched 2 verification key(s) from /root-keys
  βœ“ 1602 bytes (Content-Type: application/scitt-receipt+cose)
  βœ“ VERIFIED (kid <8-char-hex> matched key directly)
```

Tear down with `scripts/demo/stop.sh` or `scripts/demo/stop.sh --clean`
to wipe the data directory.

### Local DNS testing with `ans-dns`

The default DNS verifier in `config/ra-local.yaml` is `noop`, which
accepts any DNS state. To exercise the real `lookup` verifier
end-to-end without touching public DNS, run the bundled
authoritative server:

```
# In one terminal: start the dev DNS server (serves ./data/demo/dns)
bin/ans-dns serve --addr 127.0.0.1:15353

# In another: install the records the RA expects after verify-acme
bin/ans-dns install --api-key <api-key> http://localhost:18080 <agentId>

# Switch ra-local.yaml to dns.type=lookup pointed at 127.0.0.1:15353
# and re-run verify-dns; ans-tl observes the AGENT_REGISTERED event.

# Tear down:
bin/ans-dns clear <agentId>
```

`ans-dns` is dev-only. Production deployments use the `lookup`
verifier against the operator's existing authoritative DNS.

## Docker

```
# Build images for the long-running daemons
make docker-build

# Or bring the stack up with compose (RA + TL, with healthchecks)
docker compose up --build
```

Compose persists `ra-data`, `ra-keys`, and `tl-data` volumes so
restarts are cheap; `docker compose down -v` wipes them. `ans-verify`
and `ans-dns` are local-development binaries and ship from `make build` only β€” they are not in the compose stack.

## Architecture

Hexagonal / ports-and-adapters. The domain model (`internal/domain`)
has zero framework or storage dependencies. Services depend on port
interfaces (`internal/port`) which adapters in `internal/adapter/`
implement against real drivers.

```
cmd/ans-ra/main.go ───────┐
                          β”œβ”€β–Ί internal/ra/service ─► port.AgentStore     ─► internal/adapter/store/sqlite
cmd/ans-tl/main.go ────────                          port.KeyManager     ─► internal/adapter/keymanager
                          β”‚                          port.DNSVerifier    ─► internal/adapter/dns
                          └─► internal/tl/service ─► port.RenewalStore   ─► …

cmd/ans-verify/main.go ─► internal/tl/receipt   (Verify, ExtractKID, ComputeLeafHash)
cmd/ans-dns/main.go    ─► miekg/dns authoritative server + RA-driven record install/clear
```

See `spec/api-spec-v2.yaml` + `spec/api-spec-tl-v2.yaml` for the
authoritative OpenAPI contracts.

## Core contracts

**Event envelope (signed on the RA side):**

```
{
  "payload": {
    "logId": "<uuid>",
    "producer": {
      "event": { "ansId": "...", "ansName": "ans://...", "eventType": "AGENT_REGISTRATION", ... },
      "keyId": "ans-ra-signer",
      "signature": "<detached JWS over JCS(event)>"
    }
  },
  "schemaVersion": "V1",
  "signature": "<TL attestation JWS>",
  "status": "ACTIVE"
}
```

**Receipts (SCITT COSE\_Sign1, RFC 8152 tag 18):**

- Protected header: `{1:-7 (ES256), 4:<kid 4-byte SPKI hash>, 395:1 (RFC 9162), 15:{1:<issuer>, 6:<iat>}}`
- Unprotected header: `{396:{-1:treeSize, -2:leafIndex, -3:path[][], -4:rootHash}}`
- Payload: the JCS-canonical event bytes (the *same bytes* the leaf hash is computed over)
- Signature: ES256 over the RFC 8152 Β§4.4 Sig\_structure

**Leaf hash:** RFC 6962 β€” `SHA-256(0x00 || payload)`.

**Root-keys endpoint** (`GET /root-keys`) emits the
sumdb-note verification-key format (one line per key):

```
<origin>+<keyhash-hex>+<base64(0x02 || SPKI-DER)>
```

where `keyhash-hex` is the first 4 bytes of `SHA-256(SPKI-DER)` as
zero-padded big-endian hex. Verifiers match this against the `kid`
in the receipt's protected header for O(1) key lookup.

The TL signs every outbound artifact (checkpoints, attestations,
receipts, status tokens) with a single ECDSA P-256 key. `/root-keys`
advertises exactly one line.

## Verification workflow

Any third party can verify an agent's state cryptographically without
trusting the TL operator beyond the advertised verifier keys:

```
# Fetch receipt + keys + verify
ans-verify -url https://tl.example.com -agent <agentId>

# Or, air-gapped (receipt already on disk, key pinned in CI):
ans-verify -pubkey ./trusted-tl.pub -agent <agentId> \
  -url file://./receipt.cbor
```

The verifier:

1. Fetches `/root-keys` (or reads a pinned PEM).
2. Fetches the receipt CBOR.
3. Parses COSE\_Sign1, extracts the inclusion proof from label 396.
4. Maps the receipt's 4-byte `kid` β†’ verifier key in O(1).
5. Walks the Merkle path from `SHA-256(0x00 || payload)` to
   `rootHash`; rejects any mismatch.
6. ES256-verifies the signature over Sig\_structure.
7. Cross-checks that the receipt's computed leaf hash matches the
   badge's `merkleProof.leafHash` (same leaf in the same tree).
8. For every metadata hash the leaf attests, fetches the descriptor at
   the URL the attested SVCB row carries (`key65400`) and compares its
   SHA-256 with the attested value. A mismatch fails verification; an
   unreachable descriptor is reported only. `-check-metadata=false`
   skips this step.

## Configuration

Both daemons read YAML via [koanf](https://github.com/knadh/koanf).
The shipped quickstart configs are under `config/`:

- `config/ra-local.yaml` β€” local-filesystem dev config (SQLite, self-CA, noop DNS)
- `config/tl-local.yaml` β€” same for the TL
- `config/ra-docker.yaml` / `config/tl-docker.yaml` β€” compose-friendly paths + log format

Every YAML key is overridable via env vars using the `_` β†’ `.` dotted
form (e.g. `ANS_RA_SERVER__PORT=18090`).

## Auth

Two providers ship today:

- **Static API key** (quickstart): accepts both `Authorization: Bearer <key>` (ans-native form) and `Authorization: sso-key <apiKey>:<apiSecret>` (the form generated SDK clients use). The
  static key is treated as admin, so it can hit
  `/internal/v1/producer-keys`.
- **OIDC**: standard bearer-token validation against an issuer URL.
  Configure admin groups with `auth.oidc.admin-groups[]`.

Every GET under `/v1/agents/`, `/v1/log/`, and the tlog-tiles paths
(`/checkpoint`, `/root-keys`, `/tile/*`) is anonymous when
`auth.public-read: true` (the default for the TL quickstart config) β€”
verifiers never need credentials.

## Pluggable architecture

Every external dependency lives behind a port interface in
`internal/port/`. Defaults target local development; you can swap any
of them at the port boundary without touching the service layer.

| Concern | Default adapter | Common production swap |
| --- | --- | --- |
| Auth | Static API key + OIDC | OIDC against your IdP |
| Identity cert issuance | File-backed self-signed CA | Cloud KMS-backed CA |
| Server cert issuance | Self-signed CA + BYOC PEM | ACME / public CA / BYOC PEM |
| DNS verification | `noop` and `lookup` (real miekg/dns queries with DNSSEC AD-bit propagation) | `lookup` against your authoritative DNS |
| Signing keys | File-based ECDSA P-256 | Cloud KMS adapter |
| Storage | SQLite | Postgres / managed RDBMS |

Cloud-KMS, Postgres, and managed-DNS adapters are
contribution-shaped β€” see `CONTRIBUTING.md`.

## Development

```
make test         # unit tests
make test-cover   # with coverage, enforces internal β‰₯90%, domain 100%, crypto β‰₯95%
make test-race    # race detector
make check        # fmt + vet + lint + test-cover (pre-commit gate)
```

Test coverage targets: 100% on `internal/domain` and `internal/crypto`
(with annotated SAFETY exceptions for unreachable defensive
branches), β‰₯90% overall across `internal/` (enforced by `make test-cover`). Adapter packages under `internal/adapter/` are the
primary remaining gap β€” contributions welcome, see
`CONTRIBUTING.md`.

Contributing guide: [`CONTRIBUTING.md`](https://github.com/agentnameservice/ans/blob/main/CONTRIBUTING.md).
Project conventions for code generation tools: [`CLAUDE.md`](https://github.com/agentnameservice/ans/blob/main/CLAUDE.md).

## Status

Shipped: full V1 + V2 RA surface (register, verify-acme, verify-dns,
revoke, list, detail, identity/server cert GET + POST, CSR status,
renewal lifecycle with BYOC + CSR paths, renewal expiry sweep) β€’ TL
ingest, badge, audit, SCITT COSE receipts (tag 18, ES256), SCITT
status tokens (1h TTL, terminal-state aware), root-keys (sumdb-note
format), JSON + raw checkpoint, paginated checkpoint history, schema
lookup, Merkle tiles β€’ Producer-key admin CRUD
(`/internal/v1/producer-keys`) β€’ `ans-verify` CLI that fetches +
verifies both receipts and status tokens β€’ `ans-dns` dev DNS server
with `install` / `clear` for verify-dns end-to-end testing.

Follow-up opportunities (community): cloud-KMS / Postgres /
managed-DNS adapters, real ACME DNS-01 verifier wiring, additional
schema versions.

## License

MIT License. See [LICENSE](https://github.com/agentnameservice/ans/blob/main/LICENSE).
mooreds10
🟧 echo.github ⭐The repository README describes ans as β€œan open-source implementation of the Agent Name Service (ANS), a registry + transparency log for disagentnameserviceβ€”β€”
🟧 hnAgent Name Servicebitlad10
🟧 hnLinux Foundation – Agent Name Service Bringing Verifiable Identity to AI Agentsfrankacter30
🟧 hnVerifiable Identity for AI Agents · Agent Name Serviceqainsights10

Interpretation history

Decision trace