# 63. Every step is an event

> **Status: unimplemented — design draft.** This chapter is a plan for the
> owner to edit. It ships no code yet, and paths marked planned do not exist.

## Premise

This chapter builds no new mechanism. It goes back over chapters 1 to 61 and
shows that each step is already an event of a named kind. Once that is true,
the agent is not an application we own. It is a protocol anyone can speak.

## Draft

The general-agent essay puts it in five words: the protocol is the agent.

Take one request through the book. The message and the front's typed judgment
are a conversation job and a decision. The members it could go to are
described as capabilities, and their code is a release in the registry. The
grant is its own record. The run has a journal, and its steps are a
trajectory. The measurement of a member is an evaluation report. A second
person's rerun is a check. Outside tests give a validation. The decision to
make it a default is an adoption. The points for that work are awards. The
paid call has a payment and a receipt.

Every one of those is a signed event with a published format. The format has
two layers. A NIP says what the event looks like on a relay. A message in
[`proto/`](../../proto/README.md) says what the record is, whichever way it
travels. The protocol spec's [kind
registry](../../docs/protocol/openagents-protocol-spec.md#121-kind-registry--package) pairs each event
kind with the one message that owns it. Episode 288
points at the list and says that a developer can read these documents today,
point an agent at them and take part. There are 37 OpenAgents NIPs in the
repository now.

The consequence is in Episode 289: other projects may adapt and adopt this,
"like little other universes all going, and we're all speaking the same open
data protocol". A second team can write its own front, run its own relay and
ship its own defaults. Its members and ours are the same releases, its
evidence counts for ours, and its authors are paid the same way.

The essay is careful about gaps, and this chapter keeps the list. Some steps
have no public event yet. One example is the admission of a member to a single
private turn. A step with no carrier is a place where you still have to trust
the application.

A second kind of gap is in the code. Most of these messages are still sketches
in the spec, and the JSON is written by hand, sometimes in more than one
place. Chapter 66 gives the rule that closes those.

## What we build

A plan for what this chapter ships once the draft is approved:

- A table from every step in this book to the message that defines it, the
  NIP and event kind that carry it, and its other carriages. The table below
  is the start, and the spec's [carriage
  table](../../docs/protocol/openagents-protocol-spec.md#82-carriage-table-for-the-major-records) is the
  model.
- A second, small reader that uses only public events to rebuild one agent's
  member list and the evidence for each member.
- A list of steps that have no carrier yet, each with an issue.

It builds on what exists today:

- [`nostr/nips/openagents/README.md`](../../nostr/nips/openagents/README.md)
- [`coax/lib/nostr/cj`](../../coax/lib/nostr/cj)
- [`coax/lib/nostr/dec`](../../coax/lib/nostr/dec)
- [`coax/lib/nostr/cap`](../../coax/lib/nostr/cap)
- [`coax/lib/nostr/ext`](../../coax/lib/nostr/ext)
- [`coax/lib/nostr/run`](../../coax/lib/nostr/run)
- [`coax/lib/nostr/atif`](../../coax/lib/nostr/atif)
- [`coax/lib/nostr/eval`](../../coax/lib/nostr/eval)
- [`coax/lib/nostr/xp_ledger.coax`](../../coax/lib/nostr/xp_ledger.coax)
- [`coax/lib/x402`](../../coax/lib/x402)

On the protocol ([chapter 65](ch065-one-schema-three-carriages.md)):

| Step | Message | Event | Chapter |
| --- | --- | --- | --- |
| Message and reply | `openagents.chat.v1` `ConversationRequest`, `ConversationResult` | Kinds 25900, 26900 | 9 |
| Decision | `openagents.decision.v1` `SystemOneRequest` | Kind 25910 | 5 |
| Member description | `openagents.capability.v1` `Definition` | Kind 30180 | 3 |
| Release | `openagents.extension.v1` `Release` | Kind 3184 | 38 |
| Grant | `openagents.capability.v1` `Grant` | In a kind 3188 envelope | 7 |
| Run journal | `openagents.run.v1` `RunRecord` | Kind 3187 | 8 |
| Trajectory | `openagents.trace.v1` `Manifest`, `Chunk` | Kinds 3198, 3199 | 8 |
| Report, check and validation | `openagents.eval.v1` `Publication` | Kind 3189 | 29, 31, 32 |
| Adoption | `openagents.policy.v1` | NIP-POL, in a kind 3188 envelope | 33 |
| Award | `openagents.xp.v1` `Award` | Kind 3193 | 34 |
| Payment | `openagents.x402.v1` `PaymentRequired`, `PaymentPayload` | In a kind 3188 envelope; also an HTTP 402 body | 40 |
| Receipt | `openagents.receipt.v1` `ExecutionReceipt` | Inside kinds 3204 and 3201 | 41 |

Today the decision message has a schema file, in use on the server, and the
rest are sketches in the spec. Each chapter's own table gives the status.

### The chapter's check

- **Source:** `openagents/book/PROTOCOL.md` and the small second reader, run
  on a recorded set of public events for one agent: its member descriptions,
  releases and evaluation publications.
- **Trace:** the reader rebuilds the agent's member list. It prints one line
  per member with its release hash, then each piece of evidence with its
  event kind and ID.
- **Refusal:** an event with a bad signature or a kind the table does not
  list is skipped, and the reader prints its ID and the reason. A step with
  no carrier prints as a gap with its issue number, never as covered.
- **Independent check:** each row of the table is compared with the spec's
  kind registry, and the reader's input includes events from vector writers
  built from the NIPs alone:
  [`dec_eval_vectors.py`](../../coax/tests/nostr/dec_eval_vectors.py),
  [`ext_release_vectors.py`](../../coax/tests/nostr/ext_release_vectors.py)
  and [`xp_mv_vectors.py`](../../coax/tests/nostr/xp_mv_vectors.py).

Planned paths: `openagents/book/PROTOCOL.md`.

## Sources

- **Episodes:**
  - [Episode 288, *Three DevDays Later*](../../docs/transcripts/288.md): 2:15, read the NIPs and take part today
  - [Episode 289, *OpenAgents*](../../docs/transcripts/289.md): 2:30, other universes on one protocol
  - [Episode 286, *System One in Coding Agents*](../../docs/transcripts/286.md): open protocols for reusable agent components
  - [Episode 230, *Calling All Agents*](../../docs/transcripts/230.md): an address to agents
- **Old code at `coder-v1.0.0`, crates:** `nostr`, `atif-nostr`, `route-contract`, `ext-eval`, `xp-ledger`
- **NIPs:** [NIP-CJ](../../nostr/nips/openagents/NIP-CJ.md), [NIP-DEC](../../nostr/nips/openagents/NIP-DEC.md), [NIP-CAP](../../nostr/nips/openagents/NIP-CAP.md), [NIP-EXT](../../nostr/nips/openagents/NIP-EXT.md), [NIP-REG](../../nostr/nips/openagents/NIP-REG.md), [NIP-RUN](../../nostr/nips/openagents/NIP-RUN.md), [NIP-ATIF](../../nostr/nips/openagents/NIP-ATIF.md), [NIP-EVAL](../../nostr/nips/openagents/NIP-EVAL.md), [NIP-XP](../../nostr/nips/openagents/NIP-XP.md), [NIP-X402](../../nostr/nips/openagents/NIP-X402.md), [NIP-PRG](../../nostr/nips/openagents/NIP-PRG.md), [NIP-KB](../../nostr/nips/openagents/NIP-KB.md), [NIP-POL](../../nostr/nips/openagents/NIP-POL.md)
- **Also:**
  - [The OpenAgents Protocol](../../docs/protocol/openagents-protocol-spec.md), sections 8 and 12
  - *The Return of the General Agent* (`git show coder-v1.0.0:docs/essays/2026-10-01-the-return-of-the-general-agent.md`), Part IV: the protocol is the agent
  - *Test-Time Capabilities* (`git show coder-v1.0.0:docs/essays/2026-09-29-test-time-capabilities.md`), "How the protocol carries test-time capabilities"
- **Schemas:** [`proto/`](../../proto/README.md) defines every wire shape, by the [protocol specification](../../docs/protocol/openagents-protocol-spec.md); [`proto/registry.json`](../../proto/registry.json) lists each shape and its one codec
- **Promises covered** ([audit](../../docs/audits/2026-11-10-episode-289-port-audit.md#1-what-episode-289-promised)): P12

## Open questions for the owner

1. Which gaps do we close before 1.0, and which do we ship with and name?
