Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(agent-index): document the cross-chain agent event index and publish it as a page

nirholasa9e2a8e1f2bf
diff --git a/data/pages.json b/data/pages.json
index ef70f2494..e4b72b3be 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -3020,6 +3020,12 @@
"description": "Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.",
"added": "2026-06-22"
},
+ {
+ "path": "/docs/agent-index",
+ "title": "Docs · The Agent Index",
+ "description": "The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.",
+ "added": "2026-08-14"
+ },
{
"path": "/docs/trust-primitives",
"title": "Docs · Trust Primitives",
diff --git a/docs/agent-index.md b/docs/agent-index.md
new file mode 100644
index 000000000..668f9ef55
--- /dev/null
+++ b/docs/agent-index.md
@@ -0,0 +1,155 @@
+# The agent index
+
+three.ws keeps its own index of what happens to agents on-chain, Solana first,
+EVM alongside it. This page explains what it records, how to read it, and how to
+tell whether what you are reading is current.
+
+Without an index, "show me this agent's history" means scanning a chain from a
+browser: slow on Solana, impossible on twenty-two EVM chains at once, and
+unreliable on every free RPC. So the platform crawls once, on a schedule, into
+one table, and serves the result to everyone.
+
+## What it records
+
+One row per on-chain event, one table for every chain. Each row carries the
+**absolute on-chain timestamp** the event happened at (EVM block timestamp,
+Solana `blockTime`), never the time the crawler saw it. An event whose on-chain
+time cannot be read is rejected rather than stamped with the current time,
+because a fabricated timestamp corrupts every timeline and every freshness
+number computed from the table.
+
+Seven event classes:
+
+| Class | What it means | Where it comes from |
+| --- | --- | --- |
+| `registration` | An agent was minted or registered in a registry | ERC-8004 `Registered`; Metaplex `RegisterIdentityV1`, `UnregisterIdentityV1` |
+| `metadata` | The agent URI or a metadata key changed | ERC-8004 `URIUpdated`, `MetadataSet`; `SetAgentUriV1`, Core `UpdateV1` |
+| `transfer` | Ownership moved between accounts | ERC-8004 `Transfer`; Metaplex Core `TransferV1`, `BurnV1` |
+| `token_launch` | An SPL or ERC-20 token was bound to the agent | Metaplex `SetAgentTokenV1` |
+| `reputation` | Feedback, stake, or a review attestation | ERC-8004 `NewFeedback`, `FeedbackRevoked`, `ResponseAppended`; `threews.feedback.v1`, `threews.stake.v1`, `threews.review.v1` memos |
+| `validation` | A validation request or response | `threews.validation.v1` memos |
+| `delegation` | Execution rights delegated to another account | Metaplex `DelegateExecutionV1`, `RevokeExecutionV1` |
+
+Adding a class means adding it to `EVENT_CLASSES` in
+[`api/_lib/onchain-events.js`](../api/_lib/onchain-events.js) first, so the API
+filter, the history UI, and the freshness monitor all learn about it at once. A
+crawler that emits an unlisted class has its event rejected, not silently stored
+under a new name.
+
+## Reading it
+
+`GET /api/agents/onchain-history` is public, read-only, and cached for a minute.
+Identify the agent one of three ways:
+
+```bash
+# Solana, by agent account
+curl 'https://three.ws/api/agents/onchain-history?asset=ANeykUs3hCNb9B9hVx4sQg7D8hD6MzAyRPJ2M1ays18'
+
+# EVM, by chain and agent id
+curl 'https://three.ws/api/agents/onchain-history?chain=8453&id=63521'
+
+# Either, by the index's own key
+curl 'https://three.ws/api/agents/onchain-history?ref=8453:63521'
+```
+
+Optional `&class=token_launch` filters to one class, and `&limit=` takes 1 to
+500 (default 100).
+
+```json
+{
+ "ref": "ANeykUs3hCNb9B9hVx4sQg7D8hD6MzAyRPJ2M1ays18",
+ "chain": "solana",
+ "count": 2,
+ "counts": { "token_launch": 1, "registration": 1 },
+ "indexLag": {
+ "lastIndexedAt": "2026-08-13T23:41:02.000Z",
+ "lagMinutes": 6,
+ "crawled": true,
+ "error": null
+ },
+ "events": [
+ {
+ "chain": "solana",
+ "network": "mainnet",
+ "eventClass": "token_launch",
+ "eventName": "SetAgentTokenV1",
+ "tx": "5WtcSn4jJubQnEu71nnjKZJZawtgGNeVayiDgG4QsDsCZreJN2W3MQiJpPWszCFcanFRDMVfojNwrPC7SBumRqw8",
+ "blockNumber": 438961707,
+ "occurredAt": "2026-08-13T05:55:41.000Z",
+ "indexedAt": "2026-08-13T23:41:02.000Z",
+ "actor": "3NHMeZPXXZVgArbgE6hJU3fq72fR9UsgbmH9zFvQiGC1",
+ "payload": { "mint": "X8k6vcAvvmkavecwAGk7U4JVoKdntDSNfBZsq6KPLEX" },
+ "explorerUrl": "https://solscan.io/tx/5WtcSn4jJubQ"
+ }
+ ]
+}
+```
+
+Two fields deserve attention.
+
+**`occurredAt` vs `indexedAt`.** The first is when the chain says it happened.
+The second is when we saw it. Both are always present, so you never have to
+guess which one you are sorting by.
+
+**`indexLag`.** An empty `events` array means one of two very different things,
+and this field is how you tell them apart. `crawled: false` means this agent has
+never been looked at, so "no history" is not a claim about the agent.
+`crawled: true` with a small `lagMinutes` means we looked recently and there
+genuinely is nothing. `error` carries the crawler's last failure for that agent,
+when it had one.
+
+Every event also carries `explorerUrl`, so nothing here has to be taken on
+trust: follow the link and check the transaction against the chain.
+
+Human-readable version: the **On-chain history** panel on any agent's page under
+`/discover/a/` renders the same data as a timeline.
+
+## How current it is
+
+Two crawls fill the index, and they fail in a way that has no other symptom: the
+site keeps answering 200, `/agents` keeps rendering, and the directory just
+quietly stops learning about the world. So freshness is published as a number
+rather than a green dot, on [/status](https://three.ws/status) and
+`/api/healthz` under the `agent_index` subsystem.
+
+| Cron | Period | Covers |
+| --- | --- | --- |
+| `/api/cron/solana-attestations-crawl` | 10 min | Solana: per-agent signature walk over platform agents and the external registry directory |
+| `/api/cron/erc8004-crawl` | 15 min | EVM: identity and reputation registry log ranges on every configured chain |
+
+The monitor reports both legs. Read them differently:
+
+- **Solana** is per-agent, so the honest measure is the **median cursor age**
+ plus the **full sweep cycle**: agents divided by the per-tick batch, times the
+ cron period. A queue drained oldest-first sits at half its cycle time, so a
+ growing directory raises the floor until someone changes the batch. The cycle
+ is published for exactly that reason.
+- **EVM** is per-chain block ranges, so cursor age is the wrong measure on its
+ own: it proves the cron ran, not that the index caught up. A chain producing
+ blocks faster than the crawl consumes them keeps a fresh cursor forever while
+ falling further behind every tick. The monitor therefore reports **blocks
+ behind head**, and the crawl grows its block window while a chain is behind
+ (halving it when a provider rejects the range) so a fast chain can actually
+ close the gap.
+
+A leg that is reaching every agent and recording nothing counts as `down`, not
+as fresh. That shape (every cursor current, zero events) is what a crashing
+crawler looks like from the outside, and it is invisible to any check that only
+asks whether the job ran.
+
+## Where the code lives
+
+| Piece | File |
+| --- | --- |
+| Event shape, validation, read and write | [`api/_lib/onchain-events.js`](../api/_lib/onchain-events.js) |
+| Solana classification and per-agent crawl | [`api/_lib/solana-agent-events.js`](../api/_lib/solana-agent-events.js) |
+| ERC-8004 identity log decoder | [`api/_lib/erc8004-registry-events.js`](../api/_lib/erc8004-registry-events.js) |
+| ERC-8004 reputation log decoder | [`api/_lib/erc8004-reputation-events.js`](../api/_lib/erc8004-reputation-events.js) |
+| Freshness monitor | [`api/_lib/ops/index-lag.js`](../api/_lib/ops/index-lag.js) |
+| Public read endpoint | [`api/agents/onchain-history.js`](../api/agents/onchain-history.js) |
+| Both crawl crons | [`api/cron/`](../api/cron/) |
+| Regression cover | [`tests/agent-index.test.js`](../tests/agent-index.test.js) |
+
+Related: [Trust primitives](./trust-primitives.md) scores an agent from on-chain
+evidence, and [Custody you can verify](./custody.md) covers the attestations the
+`reputation` and `validation` classes carry.
diff --git a/docs/start-here.md b/docs/start-here.md
index 0ee1aea23..fc7e8a03e 100644
--- a/docs/start-here.md
+++ b/docs/start-here.md
@@ -94,6 +94,7 @@ Curious what happens between the prompt and the model? [How the Forge works](./h
- **Curious how the trading fleet improves itself?** → [Earned autonomy](./sniper-autonomy.md), where each arm's own realized record decides how much rope it gets: wider tuning bounds, unlocked settings, a bigger share of the fleet budget, and a deeper evidence pack in front of its LLM judge, all re-earned continuously and none of it able to touch a safety rail
- **Trusting an agent with money?** → [Custody you can verify](./custody.md) — spend limits, freeze, Merkle proof-of-custody, and social recovery; [claim your wallet](./trader-card.md) turns any pump.fun track record into a public, provable Trader Card. Every real-funds feature sits behind the [risk acknowledgment](./risk-acknowledgment.md) — read the [Risk Disclosure](https://three.ws/legal/risk) before committing anything
- **Need a track record another app can verify?** → [Trader Passport](./trader-passport.md): the daily on-chain attestation of a trader's score, served as a public credential any terminal can fetch, pin, and re-check against Solana without trusting us. Includes a database-free verify endpoint and the committed-versus-live drift, so a stale snapshot can never pass as a current claim
+- **Want an agent's on-chain history without scanning a chain yourself?** → [The agent index](./agent-index.md): the platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first and EVM alongside it. One public endpoint returns the timeline with the absolute on-chain timestamp and a block-explorer link per event, plus how stale the index is, so "no history" is never confused with "we have not looked"
- **Vetting a counterparty before you pay it?** → [Trust primitives](./trust-primitives.md) — the cross-chain Agent Reputation endpoint scores ANY wallet, mint, or agent id (Solana or EVM) 0–100 from real on-chain evidence, in one paid call, before your agent transacts
- **Wondering where the platform's money goes?** → [The autonomous economy](./autonomous-economy.md): how the on-chain treasury funds itself, the funding-root → engines → sweepback loop, the locks that keep every dollar inside platform-owned wallets, and the two leak scanners that audit every wallet on-chain every few minutes (as of 2026-07-12: 44,122 transactions scanned, zero leaks; the live totals stay re-derivable from each scanner's own cursor)
- **Publishing news, or wondering what we show of yours?** → [Publisher rights in the news reader](./news-rights.md) — three.ws quotes a capped lead excerpt and links out, never the article body; covers the enforced limits, how a withdrawn story is removed (410 + deindex + purge), and how to ask us to take something down
diff --git a/public/llms-full.txt b/public/llms-full.txt
index bc5112ecb..7b3181de8 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -2260,6 +2260,12 @@ URL: https://three.ws/docs/agent-reputation
Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.
+### Docs · The Agent Index
+
+URL: https://three.ws/docs/agent-index
+
+The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.
+
### Docs · Trust Primitives
URL: https://three.ws/docs/trust-primitives
diff --git a/public/llms.txt b/public/llms.txt
index 8a5b3ae6e..820e981ac 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -412,6 +412,7 @@ Docs, tutorials, and reference.
- [Docs · Agent System](https://three.ws/docs/agent-system): How agents, avatars, skills, and memories fit together.
- [Docs · ERC-8004](https://three.ws/docs/erc8004): Reference for the on-chain agent identity standard.
- [Docs · Agent Reputation](https://three.ws/docs/agent-reputation): Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.
+- [Docs · The Agent Index](https://three.ws/docs/agent-index): The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.
- [Docs · Trust Primitives](https://three.ws/docs/trust-primitives): Cross-chain Agent Reputation: score any wallet, mint, or agent id (Solana or EVM) 0-100 from real on-chain evidence before your agent pays, trades, or delegates.
- [Docs · x402 Protocol](https://three.ws/docs/x402): How three.ws implements x402 HTTP 402 paid agent skills: the challenge, verify, and settle mechanics.
- [Premium Pass: Monthly Data API Access](https://three.ws/docs/premium): One Solana payment ($THREE at 20% off, SOL, or USDC) buys 30 days of unmetered Data API access with an API key: no per-call x402 payments.
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index a9771b363..1cf2e7008 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -83,7 +83,7 @@
<main class="sm-wrap">
<div class="sm-hero">
<h1>Sitemap</h1>
- <p>All 815 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
+ <p>All 816 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>
<div class="sm-formats">
<a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a>
<a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>
@@ -95,7 +95,7 @@
</div>
<div class="sm-filter">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
- <input id="sm-filter-input" type="search" placeholder="Filter 815 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
+ <input id="sm-filter-input" type="search" placeholder="Filter 816 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />
<kbd aria-hidden="true">/</kbd>
</div>
<p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>
@@ -103,6 +103,14 @@
<h2 id="sm-new-title">Newest<a class="sm-new-more" href="/changelog">full changelog &rarr;</a></h2>
<p class="sm-section-desc">The 9 most recently launched pages, straight to the live surface.</p>
<ul class="sm-list">
+ <li>
+ <a href="/docs/agent-index">
+ <span class="sm-new-date">Aug 14, 2026</span>
+ <span class="sm-title">Docs · The Agent Index</span>
+ <span class="sm-path">/docs/agent-index</span>
+ <span class="sm-desc">The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.</span>
+ </a>
+ </li>
<li>
<a href="/recurring">
<span class="sm-new-date">Aug 13, 2026</span>
@@ -167,14 +175,6 @@
<span class="sm-desc">Give an agent your Farcaster voice with explicit consent: ownership is proved by signing a challenge with a wallet the fid itself verified on the protocol (Solana first), only your public profile and casts are read, and revoking the grant deletes every memory it produced.</span>
</a>
</li>
- <li>
- <a href="/docs/agent-tokens">
- <span class="sm-new-date">Aug 11, 2026</span>
- <span class="sm-title">Docs · Agent tokens</span>
- <span class="sm-path">/docs/agent-tokens</span>
- <span class="sm-desc">Turn an agent into an economic object: a Solana coin whose identity belongs to the agent rather than to whoever filled in the launch form. Covers configuring a coin before it exists, rehearsing the launch for free, and the single command that launches it for real.</span>
- </a>
- </li>
</ul>
</section>
<nav class="sm-toc" aria-label="Sections">
@@ -2262,7 +2262,7 @@
<section class="sm-section" id="learn">
<header>
- <h2>Learn<span class="sm-count" data-count>357</span></h2>
+ <h2>Learn<span class="sm-count" data-count>358</span></h2>
<p class="sm-section-desc">Docs, tutorials, and reference.</p>
</header>
<ul class="sm-list">
@@ -2812,6 +2812,13 @@
<span class="sm-desc">Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.</span>
</a>
</li>
+ <li>
+ <a href="/docs/agent-index">
+ <span class="sm-title">Docs · The Agent Index</span>
+ <span class="sm-path">/docs/agent-index</span>
+ <span class="sm-desc">The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.</span>
+ </a>
+ </li>
<li>
<a href="/docs/trust-primitives">
<span class="sm-title">Docs · Trust Primitives</span>