selfdriven · a2n · v0.1 draft

How agents join a nexus — and answer for what they add.

a2n (Agent to Nexus) is a draft protocol for an AI agent to join a Verified Context Graph on a selfdriven Nexus, contribute to it under a scoped, revocable admission, and leave with its record intact. KERI/ACDC is the trust layer throughout.

6

Steps from discovery to departure

7

Verbs an admitted agent can use

7

Refusal codes — nothing is silent

15

Conformance requirements: 8 for a nexus, 7 for an agent

Where a2n sits

Agents need somewhere governed to contribute.

MCP and UTCP connect an agent to tools. A2A connects agents to one another. Neither says how an agent joins shared, governed context, or how it answers for what it adds there.

a2n fills that gap. It is a proposal published for comment, with no reference implementation yet, and breaking changes are expected before 1.0.

Agent → tool · Agent → agent · Agent → nexus

About selfdriven Nexus

The lifecycle

Six steps, each one on the record.

Identifiers are KERI AIDs, credentials are ACDCs, and every accepted write is anchored in the nexus's key event log. The same Human Conductor model applies: a person or community sets the purpose, and the agent acts within the admission it was given.

  1. 01 · Discover

    Find and check the nexus

    The agent fetches the nexus manifest and verifies its digest against the nexus's key event log before going further.

  2. 02 · Introduce

    Arrive known

    The agent presents its AID, its credentials and a stated purpose — asking only for what it needs.

  3. 03 · Admit

    Receive a scoped admission

    A revocable credential bound to one agent and one graph, naming the allowed verbs, effect classes, purpose and expiry.

  4. 04 · Engage

    Work with seven verbs

    Signed KERI exn messages to read, assert, attest, retract, act and report — checked against the admission every time.

  5. 05 · Receipt

    Get an answer, always

    Every message comes back with a signed receipt: accepted, held or refused, with a code when refused.

  6. 06 · Leave

    Leave a record

    Either side can end the engagement. The agent's claims and receipts stay in the graph, still attributable.

Engage

One shape for every message.

After admission, every message is a KERI exn signed with the sender's current keys, and the same five checks apply to each one.

Envelope

Five rules, every message.

No message is trusted because of where it came from — only because it verifies.

  • 01

    Name the context

    Each message names the graph and the admission it is sent under.

  • 02

    Current key state

    Signatures are verified against the sender's current keys, not old ones.

  • 03

    No stale or replayed messages

    Messages outside the time window, or already seen, are rejected.

  • 04

    Admission checked each time

    The admission is re-checked on every message, not just at the door.

  • 05

    HTTPS POST by default

    The default transport binding; others are an open question for later versions.

Seven verbs

What an admitted agent can do.

The graph is append-only. Nothing is deleted or rewritten — claims are only ever superseded.

  • Read

    query · watch

    Ask the graph, or subscribe to changes. Claims come back with their issuer and evidence, not as bare values.

  • Write

    assert

    Add a claim. Every assertion must carry evidence.

  • Write

    attest

    Countersign a claim that already exists in the graph.

  • Write

    retract

    Supersede one of the agent's own claims. The original stays on the record.

  • Act

    act · report

    Declare an action before taking it, then report the outcome citing the act it closes. A held action is not taken until approved.

Receipts

Nothing is silent.

The nexus signs a receipt for every message. Accepted writes cite their anchor in the nexus's key event log, and the agent verifies the signature on every receipt.

Outcomes

Accepted, held or refused.

Held is how governance enters the flow: a steward approves before the agent proceeds.

  • accepted

    Written and anchored

    The receipt cites the key event log anchor for the write.

  • held

    Waiting on a person

    The message is recorded but needs approval — the agent does not act on it yet.

  • refused

    Declined, with a reason

    Every refusal carries one of seven codes, so the agent knows what to do next.

Refusal codes

What went wrong, and what to do.

An agent stops writing on no-admission or out-of-scope.

  • key-state

    Unknown or stale keys

    Publish current key state, then try again.

  • no-admission

    Missing, expired or revoked

    Introduce again, or stop.

  • out-of-scope

    Not covered by the admission

    Don't retry — go back to the agent's principal.

  • no-evidence

    No verifiable evidence link

    Attach evidence, or don't assert.

  • policy

    Declined by graph governance

    Read the policy the receipt cites.

  • replay

    Outside the window, or already seen

    Check the clock; don't resend unchanged.

  • rate

    Over the admission's rate limit

    Wait.

Conformance

What each side must do.

Agents can leave and stewards can revoke. A revoked delegation voids any admission built on it — but claims stay attributable after departure.

Nexus

Eight requirements.

The network's side: verifiable on arrival, honest in every answer, append-only forever.

  • N1

    Serves a self-addressing manifest and anchors its digest in its key event log.

  • N2

    Verifies key state and credentials before admitting an agent.

  • N3

    Binds each admission to one AID and one graph, never wider than requested.

  • N4

    Applies the envelope rules to every message.

  • N5

    Receipts every message as accepted, held or refused, with a code for refusals.

  • N6

    Returns claims with their issuer and evidence.

  • N7

    Never deletes or rewrites a claim — only supersedes.

  • N8

    Anchors every accepted write and cites the anchor in the receipt.

Agent

Seven requirements.

The agent's side: sign everything, ask for little, bring evidence, and stop when told.

  • A1

    Controls its own AID and signs every message itself.

  • A2

    Verifies the manifest anchor before introducing itself.

  • A3

    States a purpose and asks for no more than it needs.

  • A4

    Attaches evidence to every assertion.

  • A5

    Declares tracked actions before taking them, and doesn't act on a held one.

  • A6

    Stops writing on no-admission or out-of-scope.

  • A7

    Verifies the nexus's signature on every receipt.

Worked example

A community fund fixes a hall.

A community fund pays an electrician to repair a hall's switchboard. The fund's agent records the quote, the job and the outcome in the hall-fund graph.

hall-fund

Seven moves, all on the record.

The agent handles the paperwork. A steward still decides whether the work goes ahead.

  • 01 · introduce

    The agent names the graph, the verbs it wants (query, assert, act, report), its purpose and its delegation from the fund.

  • 02 · admit

    The nexus checks key state and credentials, then issues an admission bound to the agent, with an expiry and a rate limit.

  • 03 · assert

    The agent records the electrician's quote, with the quote document as evidence.

  • 04 · act

    The agent declares the repair. The graph holds it.

  • 05 · approve

    A steward approves the held action.

  • 06 · repair

    The work goes ahead.

  • 07 · report

    The agent reports the outcome, citing the act it closes. Each accepted write is anchored.

Not settled in 0.1

Open questions.

Published for comment — these are the places the draft expects to change.

  • Schemas

    Shared claim schemas across graphs.

  • Query profiles

    How queries are expressed and bounded.

  • Selective disclosure

    Revealing only part of a claim or credential.

  • Federation

    How nexuses relate to one another.

  • Other bindings

    Transports beyond HTTPS POST.

  • Nexus-initiated requests

    When the network asks the agent first.

  • Cost

    Who pays for writes, anchoring and queries.

  • One digest

    SHA-256 or Blake3 as the single digest algorithm.