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(sweep): correct drifted facts across the product docs and teach audit-docs new checks

nirholas267957893b5b
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 2b858b1f0..229dc8137 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -4472,7 +4472,7 @@ wire format); pay in USDC and the identical upstream call runs.
GET /api/web-search?q=<query>&sources=<n>
```
-Open-web search with cited sources. This is distinct from [`/api/search`](#search-api),
+Open-web search with cited sources. This is distinct from [`/api/search`](#cross-entity-search),
which federates three.ws's own entities (avatars, agents, models, worlds, coins)
and never leaves the platform. This endpoint answers questions about the live
web and returns the sources the answer is grounded in.
diff --git a/docs/autonomous-economy.md b/docs/autonomous-economy.md
index 7660f118e..8d7318527 100644
--- a/docs/autonomous-economy.md
+++ b/docs/autonomous-economy.md
@@ -4,7 +4,7 @@ three.ws runs a small on-chain treasury that funds itself. A single **funding-ro
wallet tops up a handful of **engine** wallets; those engines do real work — launch
coins, run buybacks, pay holders, settle agent-to-agent invoices — and any surplus
sweeps back up to the root. Every wallet is on Solana mainnet, every move is public,
-and the platform **scans its own wallets for leaks every minute**.
+and the platform **scans its own wallets for leaks every few minutes**.
This page explains the whole loop in plain language: which wallet does what, how money
can and cannot move, and how you can verify there's no leak yourself.
@@ -95,13 +95,16 @@ Together these mean money can only move **inside the set of wallets the platform
---
-## 4. The platform audits itself for leaks — every minute
+## 4. The platform audits itself for leaks, around the clock
-You don't have to take rule #3 on faith. Two on-chain scanners run continuously:
+You don't have to take rule #3 on faith. Two on-chain scanners run on their own
+schedules (the cadences below are the ones in `vercel.json`, which is what Cloud
+Scheduler is synced from):
-- **`wallets-leak-scan`** watches *every* resolvable signer wallet (funding root, coin
- launcher, treasuries, x402 sponsor/payer, SNS parent, fee-payer, …).
-- **`x402-ring-leak-scan`** watches the x402 ring role wallets specifically.
+- **`wallets-leak-scan`**, every 15 minutes, watches *every* resolvable signer wallet
+ (funding root, coin launcher, treasuries, x402 sponsor/payer, SNS parent, fee-payer, …).
+- **`x402-ring-leak-scan`**, every 10 minutes, watches the x402 ring role wallets
+ specifically.
Each reads new transactions for every wallet and classifies every debit as one of:
*internal* (to another controlled wallet), *network fee*, *delegation*, or **leak** — a
@@ -110,8 +113,12 @@ alert** with the signature, counterparty, amount, and a rotate-the-key recommend
and records a verdict in `payment_reconciliation`. The scanners are **read-only** — they
never move funds.
-**As of this writing, the scanners have examined 44,122 transactions across all wallets
-and found zero leaks and zero leak verdicts, ever.**
+**As of 2026-07-12, the scanners had examined 44,122 transactions across all wallets
+and found zero leaks and zero leak verdicts, ever.** That count is not a frozen
+marketing number: each scanner keeps its own running totals per wallet
+(`wallet_scan_cursor.scanned_total` and `.leaks_total`), so the current figure is
+always re-derivable from the database, and a non-zero `leaks_total` would already
+have paged the operator before anyone read it here.
### Verify it yourself
diff --git a/docs/compose.md b/docs/compose.md
index 081ce4481..4ccc993b6 100644
--- a/docs/compose.md
+++ b/docs/compose.md
@@ -20,7 +20,7 @@ The page is a Three.js scene with PMREM image-based lighting, soft shadows, expo
### Export vs. save outfit
-There are two ways out. **Export GLB** bakes every visible, non-bone-attached object into one downloadable `scene-compose.glb`. **Save outfit** takes a different path: for a three.ws avatar loaded from `/avatars/<id>`, it PATCHes the bone-attached items (bone name, GLB URL, name) onto that avatar's record as `accessories`, so the outfit becomes part of the avatar everywhere it appears. Save outfit needs at least one item attached to a bone and a resolvable avatar id; otherwise it points you to Export GLB.
+There are two ways out. **Export GLB** bakes every visible, non-bone-attached object into one downloadable `scene-compose.glb`. **Save outfit** takes a different path: for an avatar loaded from your three.ws library (a `?avatar=<id>` deep link or the Browse picker), it PATCHes the bone-attached items onto that avatar's record as `appearance.attachments`, each entry a `{ bone, url, name }`, so the outfit rides the avatar everywhere its appearance is applied. Save outfit needs at least one item attached to a bone (up to 8) and an avatar that came from a record; otherwise it points you to Export GLB. The save extends the avatar's existing appearance rather than replacing it, so colors, morphs and layers set in [Avatar Studio](./avatar-studio.md) survive it.
## Walkthrough
@@ -50,19 +50,21 @@ curl 'https://three.ws/api/forge?job=<job_id>' -H 'x-forge-client: <your-client-
# → { "status": "done", "glb_url": "https://.../crown.glb" }
```
-Saving attached items as an avatar outfit:
+Saving attached items as an avatar outfit. This writes to your own avatar record, so unlike the Forge calls above it needs a signed-in session (or an API key with the `avatars:write` scope), not just a client key:
```bash
curl -X PATCH 'https://three.ws/api/avatars/<avatarId>' \
-H 'content-type: application/json' \
- -H 'x-forge-client: <your-client-key>' \
- -d '{"accessories":[{"bone":"mixamorig:Head","glbUrl":"https://.../crown.glb","name":"Horned crown"}]}'
+ -H 'authorization: Bearer <api-key>' \
+ -d '{"appearance":{"attachments":[{"bone":"mixamorig:Head","url":"https://.../crown.glb","name":"Horned crown"}]}}'
```
+`appearance` replaces the whole parameter document, so send the fields you want to keep alongside `attachments` (the studio reads the record first and merges). Attachment URLs must be https on a three.ws asset host; the full contract is in [specs/AVATAR_PARAMETERS.md](../specs/AVATAR_PARAMETERS.md).
+
## States & limits
- **Bone attachment needs a rigged avatar.** The "Attach to Bone" control only appears when an avatar with bones is loaded. A non-humanoid or unrigged model can still be arranged and exported, just not bone-parented.
-- **Save outfit is for three.ws avatars.** It only works when the loaded avatar came from `/avatars/<id>` (so it has a record to PATCH). For any other model, use Export GLB.
+- **Save outfit is for three.ws avatars.** It only works when the loaded avatar came from a record in your library, which is what `?avatar=<id>` and the Browse picker load (so there is something to PATCH), and it needs you signed in. A model loaded by raw URL has no record: use Export GLB. Up to 8 attached items are saved; beyond that, Export GLB.
- **Bone-attached items are excluded from Export GLB.** Export bakes visible, world-space objects; items parented to a bone belong to the avatar and are saved through Save outfit instead.
- **Generation can take minutes.** Full-quality bakes legitimately run past ten minutes; the studio's ceiling sits above the slowest real generation, and a queued job restarts the wait window. A genuinely failed or timed-out job surfaces an actionable error.
- **Undo is 50 deep.** Transforms, adds, and removes are undoable (Ctrl+Z / Ctrl+Y); a full scene wipe is not a single undo step.
diff --git a/docs/crypto-api.md b/docs/crypto-api.md
index 68d551ec4..cb8630aef 100644
--- a/docs/crypto-api.md
+++ b/docs/crypto-api.md
@@ -2,8 +2,9 @@
The three.ws **Crypto Data API** is a free, keyless bundle of read-only crypto
endpoints built for AI agents. No account, no API key, no payment — just HTTP
-GET with a generous per-IP rate limit. Each endpoint answers one question an
-autonomous agent has mid-task, from real on-chain and pump.fun data (no mocks).
+GET, rate-limited to 60 requests per minute per IP. Each endpoint answers one
+question an autonomous agent has mid-task, from real on-chain and pump.fun data
+(no mocks).
Base URL: `https://three.ws`
@@ -657,7 +658,7 @@ those fields are simply `null`.
curl -s "https://three.ws/api/crypto/token?address=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump"
# Pin a multi-chain EVM contract to one chain
-curl -s "https://three.ws/api/crypto/token?address=0x1111111111111111111111111111111111111111&chain=base"
+curl -s "https://three.ws/api/crypto/token?address=0x<evm-contract>&chain=base"
```
---
@@ -882,7 +883,7 @@ that layer, computed once server-side so every client renders the same numbers.
"amount": 10.58,
"price": 75.66,
"usd": 800.5,
- "pct": 62.32,
+ "sharePct": 62.32,
"change24h": -1.78,
"logo": null
}
@@ -899,6 +900,9 @@ that layer, computed once server-side so every client renders the same numbers.
are excluded from the aggregate rather than extrapolated over.
- **`class`** - `stable`, `major` or `other`, so a chart can group without
re-deriving the taxonomy per client.
+- **`sharePct` vs `pct`** - a `rows[]` entry carries its share of the book as
+ `sharePct`; the condensed `topAssets[]` entries use `pct`. Read the field the
+ array you are in actually publishes.
- **`slot`** - a palette slot per top asset, so the same wallet colors the same
way across reloads and across surfaces.
- **`stale: true`** - present only when the balance source served a cached read.
@@ -980,9 +984,9 @@ registry, so the agent can act on the gap instead of guessing at farming advice.
}
],
"otherFamily": [],
- "summary": { "qualified": 3, "inProgress": 2, "notEligible": 4 },
- "thresholds": { "qualified": 70, "inProgress": 40 },
- "registryUpdated": "2026-08-01",
+ "summary": { "tracked": 9, "qualified": 3, "in_progress": 2, "not_eligible": 4, "estimatedValue": "$100 - $2,000" },
+ "thresholds": { "qualified": 80, "inProgress": 30 },
+ "registryUpdated": "2026-08-06",
"ts": "2026-08-10T16:31:34.527Z"
}
```
@@ -1006,7 +1010,8 @@ registry, so the agent can act on the gap instead of guessing at farming advice.
### States
-- **No `address`** -> `200` with `registry` + `thresholds`: the directory view.
+- **No `address`** -> `200` with `registry`, `updated` and `thresholds`: the
+ directory view. (The scored response echoes the same date as `registryUpdated`.)
- **Scored wallet** -> `200` with activity, opportunities and summary.
- **Invalid address (neither Solana nor EVM)** -> `400`.
- **EVM requested where no explorer key is set** -> `503 not_configured`,
diff --git a/docs/economy-solver.md b/docs/economy-solver.md
index bd46e2717..7b161a023 100644
--- a/docs/economy-solver.md
+++ b/docs/economy-solver.md
@@ -156,20 +156,27 @@ curl -s 'https://three.ws/api/play/solver?level=30&curves=0' | jq '.bestRate, .l
{
"label": "Fish pond-west and cook",
"key": "loop:fish-cook",
- "cashPerHour": 12723.19,
+ "cashPerHour": 13199.52,
"attemptsPerHour": 2400
}
{
"key": "loop:fish-cook",
"family": "loop",
"label": "Fish pond-west and cook",
- "fishSharePct": 68.83,
- "cookSharePct": 31.17,
- "cookedPerHour": 1413.69,
- "cashPerHour": 12723.19,
- "rawOnlyCashPerHour": 6825.6,
- "upliftPct": 86.4,
- "sustainable": true
+ "spot": { "id": "pond-west", "quality": 1.4 },
+ "fishingLevel": 30,
+ "cookingLevel": 30,
+ "fishSharePct": 60.1,
+ "cookSharePct": 39.9,
+ "fishPerHour": 1595.88,
+ "cookedPerHour": 1466.61,
+ "cashPerHour": 13199.52,
+ "rawOnlyCashPerHour": 7965.72,
+ "upliftPct": 65.7,
+ "xpPerHour": 85879.22,
+ "sustainable": true,
+ "requires": null,
+ "packHours": 16.35
}
```
diff --git a/docs/event-souvenirs.md b/docs/event-souvenirs.md
index 830db63dd..f1a3511d3 100644
--- a/docs/event-souvenirs.md
+++ b/docs/event-souvenirs.md
@@ -14,8 +14,10 @@ about you. This one says exactly one thing, permanently, to every player who
walks past you.
The first one is the **Meetup Laurel**: a gold laurel circlet, open at the
-front, with three pearl berries in the gap. It is granted at the
-[`$THREE` First Holders Meetup](play-live-events.md).
+front, with three pearl berries in the gap. It was granted at the
+[`$THREE` First Holders Meetup](play-live-events.md). That window has closed, so
+the laurel is now exactly what this page promises: owned only by the players who
+were in the world that day, and never granted again.
---
@@ -39,7 +41,11 @@ does not give you a second one and does not show the card again.
Everything lives in one file: `public/event.json`, the
same config that drives the countdown pill, the agenda drawer, and the fireworks
-finale. Add a `souvenir` block:
+finale.
+
+**That file is absent between events, which is the platform's resting state.**
+No event is scheduled right now, so nothing is being granted. Running one starts
+by writing the file, souvenir block included:
```json
{
@@ -73,8 +79,10 @@ Omit the `souvenir` block entirely to run an event with no drop.
```bash
npx vitest run tests/event-souvenir.test.js
```
- The suite reads the real `public/event.json` and fails if the shipped config
- would grant nothing.
+ The suite's last block reads the real `public/event.json` and fails if the
+ shipped config would grant nothing. It skips itself when there is no file, so
+ a green run between events proves the drop logic, not your window: write the
+ config first, then run it and read the count.
4. **Deploy.** The game server fetches the config over HTTP and re-reads it
every two minutes, so moving a window does not need a game-server redeploy.
`EVENT_CONFIG_TTL_MS` tightens that interval while you are setting up.
diff --git a/docs/exit-lab.md b/docs/exit-lab.md
index bd5a8467c..80f4050e7 100644
--- a/docs/exit-lab.md
+++ b/docs/exit-lab.md
@@ -136,33 +136,41 @@ proof, so anyone can check the fleet's homework.
(default) or `all` days. `limit` caps at 500.
```bash
-curl -s 'https://three.ws/api/sniper/exit-lab?window=all&limit=5' | jq '{replayable, scanned, excluded, first: .trades[0]}'
+curl -s 'https://three.ws/api/sniper/exit-lab?window=all&limit=500' | jq '{replayable, scanned, excluded, first: .trades[0]}'
```
```json
{
- "replayable": 234,
- "scanned": 239,
+ "replayable": 295,
+ "scanned": 301,
"excluded": [
{
"key": "laddered",
- "count": 5,
+ "count": 6,
"reason": "Initials were already taken, so the recorded cost basis and high-water mark describe the moon bag, not the original position."
}
],
"first": {
"mint": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",
"symbol": "THREE",
+ "agentId": "0846c27e-6258-4859-bc1c-3148d59951c5",
+ "agentName": "Moe Money AI",
"entryLamports": 20000000,
"peakLamports": 20000000,
"terminalLamports": 18154034,
+ "holdSeconds": 494,
"actualPnlLamports": -498908,
"actualReason": "timeout",
- "buyUrl": "https://solscan.io/tx/..."
+ "closedAt": "2026-08-13T00:39:01.448Z",
+ "buyUrl": "https://solscan.io/tx/...",
+ "sellUrl": "https://solscan.io/tx/..."
}
}
```
+`scanned` counts the rows the query returned, so it never exceeds `limit`:
+`replayable` is that number minus whatever `excluded` accounts for.
+
The replay itself runs in the browser, against the same kernel the server
imports. That is why a slider move is instant: the server has no better claim to
the answer than the client does, so it ships the facts and the client does the
diff --git a/docs/forge.md b/docs/forge.md
index ed75c2468..008e01f25 100644
--- a/docs/forge.md
+++ b/docs/forge.md
@@ -1,6 +1,6 @@
# Forge: text and image to 3D, on a free-first engine grid
-Forge is three.ws's text-and-image-to-3D generator. Type a prompt, drop in one to six photos of an object, or sketch a shape and name it, and Forge returns a downloadable, textured GLB you can orbit, view in AR, and take anywhere. It runs on a grid of real generation engines with live health status, and it is free-first by design: text prompts default to a zero-cost NVIDIA lane, photos default to a zero-cost reconstruction lane, and the paid engines stay explicitly selectable for when you want a specific vendor.
+Forge is three.ws's text-and-image-to-3D generator. Type a prompt, drop in one to six photos of an object, or sketch a shape and name it, and Forge returns a downloadable, textured GLB you can orbit, view in AR, and take anywhere. It runs on a grid of real generation engines with live health status, and it is free-first by design: text prompts and photos both default to our own zero-cost GPU reconstruction workers, free hosted lanes stand behind them, and the paid engines stay explicitly selectable for when you want a specific vendor.
Page: [/forge](https://three.ws/forge) and the feature landing [/features/forge](https://three.ws/features/forge) · API: `/api/forge`
@@ -32,9 +32,9 @@ A generation request is described by two orthogonal axes, resolved in `api/_lib/
Each backend declares which paths it serves, whether it needs a bring-your-own-key (BYOK) credential, and its per-(path, tier) cost and latency estimates so the UI can show the trade-off before you commit. The live registry (`BACKENDS` in `api/_lib/forge-tiers.js`):
-- **TRELLIS (free)** on NVIDIA NIM (Microsoft TRELLIS). The default lane for text prompts at Draft and Standard. Zero vendor cost. Text-only: it rejects user photos, so photo submissions route elsewhere.
+- **TRELLIS (free)** on NVIDIA NIM (Microsoft TRELLIS). Zero vendor cost, and the last free lane in the chain: it serves a text prompt when every self-host worker and Space is cold or down. Text-only, so it rejects user photos and photo submissions route elsewhere.
- **Hunyuan3D / TRELLIS (free)** on Hugging Face Spaces. The free photo-to-3D lane and a High-tier engine, with automatic failover across Hunyuan3D 2.1, Hunyuan3D 2, TRELLIS, and TripoSR. Queue waits vary.
-- **TRELLIS (self-host)** and **Hunyuan3D (self-host)**, our own scale-to-zero Cloud Run GPU workers. Zero vendor cost, so free-first routing prefers them first. Self-host TRELLIS is a native single-hop image-to-3D lane; Hunyuan3D leads on people and organic subjects.
+- **TRELLIS (self-host)** and **Hunyuan3D (self-host)**, our own scale-to-zero Cloud Run GPU workers, and the named defaults: TRELLIS at Draft and Standard, Hunyuan3D at High. Zero vendor cost, so free-first routing prefers them first. Self-host TRELLIS is a native single-hop image-to-3D lane; Hunyuan3D leads on people and organic subjects.
- **TripoSG (self-host)**, the sketch-only scribble worker. Untextured geometry from a drawing.
- **TRELLIS** on Replicate, a paid platform lane. Selectable explicitly and used as the last-resort fallback only on deployments with no free engine configured.
- **Meshy 6**, **Tripo v3.1**, **Rodin (Hyper3D)**, BYOK geometry-first engines with quad topology and a real poly target. You supply your own key.
@@ -42,7 +42,7 @@ Each backend declares which paths it serves, whether it needs a bring-your-own-k
### Free-first routing with live health
-Routing (`resolveBackendIdWithHealth`) walks an ordered list of every free lane that could serve the request on this deployment, most preferred first: the tier's named free engine, then the per-path fallback chain (our own GPU workers, then the free external Spaces, then the free NVIDIA lane as the final health-gated safety net). Draft and Standard text prompts name NVIDIA TRELLIS; High names our self-host Hunyuan3D worker. A subject classifier reorders the two self-host PBR lanes for hard-surface versus organic prompts. Every entry is env-gated, so the list degrades cleanly on partial deployments.
+Routing (`resolveBackendIdWithHealth`) walks an ordered list of every free lane that could serve the request on this deployment, most preferred first: the tier's named free engine, then the per-path fallback chain (our own GPU workers, then the free external Spaces, then the free NVIDIA lane as the final health-gated safety net). Draft and Standard name our self-host TRELLIS worker; High names our self-host Hunyuan3D worker. The free NVIDIA NIM lane is never a named default: reconstructing straight from a truncated prompt with no photoreal reference is the realism hole this ordering closes, so it trails as the final health-gated fallthrough (and stays explicitly selectable). A subject classifier reorders the two self-host PBR lanes for hard-surface versus organic prompts. Every entry is env-gated, so the list degrades cleanly on partial deployments.
Health is real. The UI fetches `/api/forge?health=1` after load and disables any lane whose upstream is down, with the actual reason, instead of failing after you have typed a prompt and clicked Generate. A short circuit-breaker cooldown sidelines a degraded lane (for example the free NIM lane after a gateway timeout) so subsequent requests skip it and go straight to a working engine; the cooldown expires on its own so a recovered lane is retried promptly. There are no mock paths: if a selected backend isn't configured the endpoint returns a clean `backend_unconfigured` error, never a fake result.
@@ -124,11 +124,11 @@ stills; it never reports a recording that did not happen.
1. Open [/forge](https://three.ws/forge). No login, no wallet, no key required.
2. Pick an input mode: **Describe it** (text), **From photos**, or **From a sketch** (the sketch tab appears only when the TripoSG worker is configured).
-3. For text, type a prompt like `a weathered brass diving helmet`. For photos, add one to four images of the same object from different angles; each uploads straight to object storage via a presigned URL and the public URLs are fused with multi-view conditioning.
+3. For text, type a prompt like `a weathered brass diving helmet`. For photos, add one to six images of the same object from different angles (front, back, left, right, top, three-quarter); each uploads straight to object storage via a presigned URL and the public URLs are fused with multi-view conditioning.
4. Optionally open the quality controls and pick a tier (Draft, Standard, High) and an engine. The default engine carries a **FREE** pill. Down lanes are disabled with the reason shown.
5. Click Generate. A real elapsed-driven progress line runs against the catalog's ETA estimate for the chosen path, tier, and engine.
6. When the model lands, orbit it in the viewer, view it in AR, download the GLB, or run the post-generation tools (stylize, optimize, Game-Ready retopology, split). Press `R` (or click **Reel**) to render a shareable video and stills of it without leaving the page.
-7. Keep going on the same result: **Rig for animation** adds a humanoid skeleton (POST `/api/forge?action=rig`) and hands off to Pose Studio or IRL placement; **Restyle materials** re-skins the surface with a free-text instruction or a preset chip (chrome, wood, gold, neon, marble, rust) via `/api/material-studio`, keeping the mesh untouched; **Iterate** makes a shape-changing edit from a plain-language instruction ("make the helmet red", "add a backpack") via `/api/forge-iterate` — the same conversational core the `refine_model` MCP tool uses — and keeps every version in a branchable lineage strip; **Place IRL** opens `/irl?avatar=<glb_url>` to anchor the model in AR at a real-world location.
+7. Keep going on the same result: **Rig for animation** adds a humanoid skeleton (POST `/api/forge?action=rig`) and hands off to Pose Studio or IRL placement; **Restyle materials** re-skins the surface with a free-text instruction or a preset chip (chrome, wood, gold, neon, marble, rust) via `/api/material-studio`, keeping the mesh untouched; **Iterate** makes a shape-changing edit from a plain-language instruction ("make the helmet red", "add a backpack") via `/api/forge-iterate` (the same conversational core the `refine_model` MCP tool uses) and keeps every version in a branchable lineage strip; **Place IRL** opens `/irl?avatar=<glb_url>` to anchor the model in AR at a real-world location.
## Examples
@@ -141,9 +141,9 @@ curl 'https://three.ws/api/forge?catalog=1'
# Probe live backend health (which lanes are up right now).
curl 'https://three.ws/api/forge?health=1'
-# Start a free text-to-3D generation. The free NVIDIA lane often completes
-# inline, answering with status "done", a glb_url, and a null job_id; slower
-# lanes answer with a job_id to poll instead.
+# Start a free text-to-3D generation. A lane that finishes inside the request
+# (and any cache hit) answers with status "done", a glb_url, and a null job_id;
+# slower lanes answer with a job_id to poll instead.
RESP=$(curl -s -X POST 'https://three.ws/api/forge' \
-H 'content-type: application/json' \
-d '{"prompt":"a weathered brass diving helmet","tier":"draft"}')
diff --git a/docs/genesis.md b/docs/genesis.md
index 30e3ae839..bfbc5caa2 100644
--- a/docs/genesis.md
+++ b/docs/genesis.md
@@ -45,10 +45,14 @@ never invents a shortcut path; it orchestrates the real ones.
Solana first because Solana is the home chain.
- **Persona and voice.** `POST /api/persona/extract` synthesizes a structured
in-character system prompt from your description, running through the shared LLM
- helper with Anthropic-first ordered failover (server Anthropic, then Groq, then
- OpenRouter) so a single upstream 429 or 5xx never returns a hard error. Voices
- load from `/api/tts/voices`. Your chosen name, persona, and voice are persisted
- with `PATCH /api/agents/:id`.
+ helper (`llmComplete` in [`api/_lib/llm.js`](../api/_lib/llm.js)). That helper is
+ free-providers-first by policy: the platform-funded and keyless free tiers lead
+ the chain, Vertex Gemini on GCP credits sits behind them as the reliability
+ anchor, and paid keys (Anthropic, OpenAI) are appended to the tail as a
+ last resort. Nothing here depends on a paid key being present or in quota, and a
+ single upstream 429 or 5xx never returns a hard error. Voices load from
+ `/api/tts/voices`. Your chosen name, persona, and voice are persisted with
+ `PATCH /api/agents/:id`.
- **On-chain identity (optional).** The final step mints a real
[ERC-8004](./erc8004.md) identity record for the agent and returns a real tx
hash, defaulting to Base (chain id 8453) to match the rest of the platform's EVM
diff --git a/docs/ibm-community.md b/docs/ibm-community.md
index a24db7848..fa12ca8e5 100644
--- a/docs/ibm-community.md
+++ b/docs/ibm-community.md
@@ -4,16 +4,20 @@ This is the running catalog of everything published in the [Three.ws User Group]
Dates marked "approx." are derived from the site's relative timestamps ("17 days ago") on the snapshot date; blog dates come from their URLs and are exact.
-## Group snapshot (2026-08-05)
+## Group snapshot (2026-08-13)
| Metric | Value |
| ------ | ----- |
-| Members | 15 |
-| Discussion threads | 8 listed in the [digest viewer](https://community.ibm.com/community/user/groups/community-home/digestviewer?communitykey=e71510cc-d953-408f-9a1c-019f5c0a7016) |
-| Blog posts | 3 |
+| Members | 16 |
+| Discussion threads | 8 listed in the [digest viewer](https://community.ibm.com/community/user/groups/community-home/digestviewer?communitykey=e71510cc-d953-408f-9a1c-019f5c0a7016), which reports "Showing 1 to 8 of 8" |
+| Blog posts | 4 |
| Library entries | 2 (the attachments on the BOWYER and SperaxOS threads) |
| Upcoming events | 0 |
+The group header counts threads as 10 while the digest viewer lists 8. The
+header's tally is the one to distrust: the digest viewer is the per-thread
+listing this catalog is built from, and it is explicit about its own total.
+
## Blog posts
### 1. Welcome to the Three.ws User Group: Building AI Agents With 3D Capabilities
@@ -44,6 +48,44 @@ A feature tour structured as "ten features, in the order I would demo them": (1)
Jessica's companion piece to the meetup thread, written in her own voice as a member telling the group not to mistake the event for another webinar link. Carries the event table (Friday, August 7, 8 to 9 AM Pacific, 11 AM Eastern, free, browser only), the three-step join flow (open three.ws/play, bring a custom avatar made at three.ws/create beforehand, talk via spatial voice), and the agenda: live in-world platform tour, community demos, open Q&A ("the skeptical questions are the most useful ones"), and a first look at what is next. Her framing argument: the venue is the demo, so the hour doubles as hands-on evaluation of the technology the group exists to discuss, and since every world is a shareable URL, attending teaches you how to run your own events there. Points readers at the pinned meetup thread for the deep technical background and closes with the full platform link list. The draft lives in [ibm-community-blog-meetup-jessica.md](./ibm-community-blog-meetup-jessica.md).
+### 4. The First Three.ws User Group Meetup: How It Actually Went
+
+- **Author:** Jessica Swanson
+- **Published:** 2026-08-08
+- **Activity:** 0 comments, 4 views at snapshot
+- **URL:** [community.ibm.com/.../the-first-threews-user-group-meetup-ibm](https://community.ibm.com/community/user/blogs/jessica-swanson/2026/08/08/the-first-threews-user-group-meetup-ibm)
+
+Jessica's close of the meetup arc, written the day after the live post she
+published mid-event. She frames the group as an unusual case (three.ws is the
+only project she knows of with its own dedicated IBM Community user group, which
+exists because IBM's own account had traded posts with three.ws on X before the
+group launched), then makes the argument the day proved: a nine-hour user-group
+meetup held entirely inside a 3D world instead of on a call is exactly the kind
+of thing neither side is supposed to try, and it held up. She reports peak
+concurrency of 3,145 avatars in the world across the day, noting the world was
+open to anyone with the link, so most of that crowd was not group members. The
+agenda ran as planned (in-world platform tour, community demos, open Q&A
+including the two open-source watsonx.ai and Granite connectors), but the part
+she leads with is what happened around it: fishing, cooking the catch, and
+driving cars around the map with two other players. The Q&A recap covers the
+Forge, Avatar Studio's auto-rigging, the no-allowlist skeleton mapping across
+Mixamo/VRM/Daz/Blender rigs, the cross-world wardrobe, and the `agent-3d` web
+component. Her under-the-hood section describes the authoritative server, spatial
+voice gated by distance, the clock-derived countdown and fireworks, and the
+Meetup Laurel as the platform's answer to "prove you were there". She says
+plainly that she was not into crypto before this partnership and that three.ws
+changed it. Closes on the follow-through: turning the meetup into a rhythm,
+more joint posts, more three.ws work surfaced through IBM channels, and an
+explicitly unconfirmed note that three.ws is looking at IBM's newly expanded
+Partner Plus marketplace motions (Microsoft Multiparty Private Offers and Google
+Cloud Marketplace Channel Private Offers, on top of the live AWS reseller
+integration). Links the team's own recap at
+[/blog/ibm-user-group-first-in-world-meetup-recap](/blog/ibm-user-group-first-in-world-meetup-recap).
+
+Two placeholders are still live in the published post: a bracketed note about the
+next meetup date and a bracketed "[link once available]" for the recording. If
+either gets filled in, update this entry.
+
## Discussion threads
Newest first, matching the digest viewer's order.
diff --git a/docs/in-game-economy.md b/docs/in-game-economy.md
index b996ccd55..ecc029e87 100644
--- a/docs/in-game-economy.md
+++ b/docs/in-game-economy.md
@@ -195,7 +195,12 @@ curl -s https://three.ws/api/play/economy | jq '.generalStore.sell'
```json
[
{ "item": "wood", "label": "Wood", "price": 2 },
- { "item": "cookedFish", "label": "Cooked Fish", "price": 9 }
+ { "item": "stone", "label": "Stone", "price": 2 },
+ { "item": "coal", "label": "Coal", "price": 6 },
+ { "item": "fish", "label": "Raw fish", "price": 3 },
+ { "item": "cookedFish", "label": "Cooked fish", "price": 9 },
+ { "item": "bones", "label": "Bones", "price": 4 },
+ { "item": "hide", "label": "Beast hide", "price": 8 }
]
```
diff --git a/docs/labor-market.md b/docs/labor-market.md
index 9b7b7f98f..f1378bbb7 100644
--- a/docs/labor-market.md
+++ b/docs/labor-market.md
@@ -70,6 +70,36 @@ X-CSRF-Token: <token>
`worker_payout_three`, `royalty_three`, and a Solscan `explorer` link — plus the
`moderator` who authorized it.
+## Input validation (every endpoint)
+
+The market's ids (`bountyId`, `bidId`, `jobId`, `agentId`, `posterAgentId`,
+`workerAgentId`) are uuids of rows in `agent_bounties` / `agent_bids` /
+`agent_jobs` / `agent_identities`. Every endpoint checks the shape before it
+queries, so a malformed id is a `400 validation_error` naming the field
+(`"bountyId must be a uuid"`), never a server fault and never a database message
+echoed back to you:
+
+```bash
+curl -s -X POST https://three.ws/api/labor/settle \
+ -H 'content-type: application/json' -H 'authorization: Bearer <token>' \
+ -d '{"jobId":"not-a-uuid"}'
+# {"error":"validation_error","error_description":"jobId must be a uuid"}
+```
+
+Amount and time fields are parsed just as strictly:
+
+| Endpoint | Field | Rule |
+| --- | --- | --- |
+| `POST /api/labor/post` | `rewardThree` / `rewardAtomics` | One is required. Must parse to a non-negative amount, and must be greater than zero. A value that is not a number is `400`, not a silent zero. |
+| `POST /api/labor/post` | `deadline` | Optional. Must be an ISO 8601 timestamp; it is normalized to UTC before the bounty is written. |
+| `POST /api/labor/bid` | `priceThree` / `priceAtomics` | One is required, greater than zero, and no larger than the bounty reward (`400 over_reward`). |
+| `POST /api/labor/deliver` | `deliverable` | A string, or an object carrying `output`. Its `output` is clamped to 8000 characters (an array is refused). |
+| `POST /api/labor/settle` | `jobId` / `bountyId` | One is required; omitting both is `400`, not a `404`. |
+| `GET /api/labor/feed` | `minReward` | Optional. A value that is not a number is `400` rather than a silently dropped filter. |
+
+Ownership is always enforced server-side: a write against an agent you do not own
+is `403 forbidden`, and an agent that does not exist is `404 not_found`.
+
## The surface (UX)
The page at [/labor-market](https://three.ws/labor-market) is built for watching the
diff --git a/docs/lipsync.md b/docs/lipsync.md
index 613255fb1..d65300616 100644
--- a/docs/lipsync.md
+++ b/docs/lipsync.md
@@ -44,11 +44,15 @@ Served from [`public/demos/lipsync-mic.html`](../public/demos/lipsync-mic.html).
Only the TTS demo hits an API. `/api/tts/speak` returns audio bytes you can decode and analyze exactly as the demo does.
```bash
-# Synthesize speech to an MP3 file (the same call the /lipsync demo makes).
+# Synthesize speech (the same call the /lipsync demo makes). Save the response
+# headers too: content-type names the container you actually got back.
curl -X POST 'https://three.ws/api/tts/speak' \
-H 'content-type: application/json' \
-d '{ "text": "Welcome to three dot ws.", "voice": "nova", "speed": 1.0, "format": "mp3" }' \
- --output speech.mp3
+ -D headers.txt --output speech.audio
+grep -i '^content-type\|^x-tts-' headers.txt
+# -> content-type: audio/wav (free NVIDIA lane; see the format note below)
+# -> x-tts-format: wav
```
```js
@@ -73,6 +77,8 @@ tick();
`POST /api/tts/speak` ([`api/tts/speak.js`](../api/tts/speak.js)) prefers the free NVIDIA NIM Magpie TTS lane when configured and falls back to OpenAI as a paid backstop. Body: `{ text, voice?, model?, format?, language?, speed? }`. `text` is required (max 4096 chars), `voice` defaults to `nova`, `format` defaults to `mp3`, `speed` clamps 0.5 to 2.0. It is rate-limited per user or per IP.
+**`format` is a request, not a guarantee.** Magpie emits raw PCM, so the free lane serves every non-`pcm` request as WAV; only the OpenAI backstop honors `mp3`/`opus`/`aac`/`flac` exactly. The `content-type` and `x-tts-format` headers always describe the bytes actually sent, so read them instead of assuming a container. This costs the demos nothing: `decodeAudioData` and the `Audio` element sniff the container, so wav, ogg, and mp3 all animate the mouth the same way.
+
## States and limits
- **TTS demo errors.** A persistent, actionable banner with a Retry button covers network failure, `429` rate limit, `>=500` service errors, `400` bad text, audio playback failure, and blocked autoplay ("needs a click").
diff --git a/docs/make-your-agent.md b/docs/make-your-agent.md
index ddb445ca3..62137a7db 100644
--- a/docs/make-your-agent.md
+++ b/docs/make-your-agent.md
@@ -51,7 +51,7 @@ Skills are extra capabilities you can give your agent. The wizard offers:
There is also an optional crypto group (pump.fun monitoring/trading, a Solana wallet, and x402 pay-per-call) you can reveal and enable if you want an on-chain agent; skip it entirely otherwise.
-You can add or remove skills at any time from the agent's edit page. Voice (microphone input and spoken replies) isn't a wizard skill: you configure it later on the Voice tab of the agent editor.
+You can add or remove skills at any time from the agent's edit page. Voice (microphone input and spoken replies) isn't a wizard skill: you configure it later in the Voice panel of the agent editor.
---
diff --git a/docs/mcp-3d-studio.md b/docs/mcp-3d-studio.md
index 2de76d288..034a22c76 100644
--- a/docs/mcp-3d-studio.md
+++ b/docs/mcp-3d-studio.md
@@ -45,7 +45,7 @@ analyze: inspect_model · optimize_model preview: preview_3d
| `animation_signature(clip, slot?)` | A clip's measured motion: energy, tempo, leading region, loop seam, travel. Pass `slot` for an ok/warn fit verdict against a runtime slot. |
| `find_similar_animations(clip, limit?)` | The library ranked by measured-motion distance from a reference clip: "more like this" for animations. |
| `apply_animation(model_url, animation, format?, speed?)` | Retarget a preset clip onto a rigged GLB — returns the retargeted `AnimationClip` JSON (or a baked animated GLB). |
-| `pose_model(prompt)` | Map a pose description to a deterministic seed + full Euler joint-rotation map from the in-repo preset library. Free, deterministic. |
+| `pose_model(prompt)` | Map a pose description to a deterministic seed + full Euler joint-rotation map from the in-repo preset library. Deterministic: the same prompt always returns the same seed. Priced at $0.01 (see the table below). |
### Edit & process the mesh
diff --git a/docs/mcp-tools.md b/docs/mcp-tools.md
index 634ae4931..25c21ff96 100644
--- a/docs/mcp-tools.md
+++ b/docs/mcp-tools.md
@@ -47,9 +47,9 @@ exposes **only** 3D generation/inspection — no account, no payment, no token.
A free, rate-limited (not x402) REST endpoint backing the [Restyle Studio](/restyle)
web page: live PBR material editing, AI restyle, seeded colorway variants, and
-texture swaps for any GLB. Not an MCP tool itself — the paid `restyle_material`
-tool above (and the web page) both call it as a thin client, so the free and paid
-surfaces share one implementation. See
+texture swaps for any GLB. Not an MCP tool itself: the paid `restyle_material`
+tool (listed under the agent tools below) and the web page both call it as a thin
+client, so the free and paid surfaces share one implementation. See
[`api/_lib/material-studio-store.js`](../api/_lib/material-studio-store.js) and the
[Material Studio API reference](api-reference.md#material-studio-api).
@@ -96,7 +96,7 @@ generation lane**; the rest are paid and quote their price in the
| Tool | Price | What it does |
|---|---|---|
| `forge_free` | **Free** | Text → textured GLB on the free NVIDIA NIM (Microsoft TRELLIS) lane; returns a GLB URL + viewer link. |
-| `crypto_news` | **Free** | Live crypto headlines from 191 publisher feeds, filterable by category, source, language, or search. |
+| `crypto_news` | **Free** | Live crypto headlines from every publisher feed in the registry (`api/_lib/news-sources.js`, 27 categories, 17 languages), filterable by category, source, language, or search. |
| `crypto_news_digest` | **Free** | Clusters the last 1-72h of coverage into distinct narratives with stance, tickers, and covering outlets. |
| `crypto_news_archive` | free quota, then $0.001/search | Search 660,000+ archived articles back to September 2017. Stats and trending modes are always free; search is free up to a daily per-IP quota, then $0.001 USDC per search via x402. |
| `text_to_avatar` | paid | Text → 3D avatar. |
diff --git a/docs/money-feed.md b/docs/money-feed.md
index afa7ba834..8a046e1eb 100644
--- a/docs/money-feed.md
+++ b/docs/money-feed.md
@@ -44,7 +44,14 @@ fixed allow-list of types:
| `level-up`, `world-join`, `jackpot`, `mission-complete` | Play / world events. |
| `member-join` | A person signed in (throttled to once per user per 6h). |
| `agent-guard` | An autonomous buy was refused by a safety rule (`agentId`, `mint`, `reason`, `label`). |
+| `war-result` | A Coin Wars battle ended (`winner`, `reason`, the two sides, `matchKey`, `network`). |
| `agora-registered`, `agora-task-posted`, `agora-hired`, `agora-task-claimed`, `agora-task-completed`, `agora-earned`, `agora-vouched`, `agora-flagged` | [Agora](agora.md) on-chain economy lifecycle events. |
+| `agora-arena-entered`, `agora-arena-won`, `agora-arena-lost` | Competitive Agora tasks: one racer takes the purse. |
+| `agora-guild-joined`, `agora-guild-contributed` | Collaborative Agora tasks: the pool splits across contributors. |
+
+`ALLOWED_TYPES` in [`api/_lib/feed.js`](../api/_lib/feed.js) is the single source
+of truth for this vocabulary. Adding a type there is what makes it publishable;
+this table mirrors it.
The ticker is a **curated delight layer**, not an exhaustive log: an event only
appears if a caller explicitly published it with an allow-listed type. Internal
diff --git a/docs/money-flow-map.md b/docs/money-flow-map.md
index 201fd273e..cf230ffca 100644
--- a/docs/money-flow-map.md
+++ b/docs/money-flow-map.md
@@ -145,7 +145,12 @@ curl -s 'https://three.ws/api/pulse?view=graph&window=30d' | jq '.data.totals'
}
],
"services": [{ "name": "lore-pack", "count": 39, "usd": 15.6 }],
- "totals": { "nodes": 108, "edges": 400, "transfers": 1177, "usd": 370.64, "named_agents": 94 },
+ "totals": {
+ "nodes": 108, "edges": 400, "transfers": 1177,
+ "usd": 370.64, "sol": 4.91,
+ "payments": 291, "tips": 886,
+ "named_agents": 94
+ },
"truncated": true,
"max_edges": 400
}
diff --git a/docs/multi-agent.md b/docs/multi-agent.md
index 63950914a..f05661ef0 100644
--- a/docs/multi-agent.md
+++ b/docs/multi-agent.md
@@ -49,7 +49,10 @@ The `formation` attribute controls avatar placement:
Each `<agent-3d>` child keeps its own brain, memory, and chat chrome. Setting `brain="none"` gives an agent a live avatar with animations and emotions but no LLM — useful for characters that only react, or that you drive programmatically.
-See the full working example at `/examples/two-agents.html`.
+See the full working example:
+[`examples/two-agents.html`](https://github.com/nirholas/three.ws/blob/main/examples/two-agents.html).
+The `examples/` directory ships with the repo rather than the site, so run it
+with `npm run dev` and open `http://localhost:3000/examples/two-agents.html`.
---
@@ -311,7 +314,9 @@ Running multiple LLM connections simultaneously is expensive, especially when mo
## Walking through the example
-Open `/examples/two-agents.html` to see a complete, runnable scene with real avatar files. Key things to notice:
+Run `npm run dev` and open `http://localhost:3000/examples/two-agents.html`
+([source](https://github.com/nirholas/three.ws/blob/main/examples/two-agents.html))
+to see a complete, runnable scene with real avatar files. Key things to notice:
1. **Single `<agent-stage>` with `formation="row"`** — both agents share one canvas and one WebGL context. No separate renderers.
2. **Leo has a brain; Mira has `brain="none"`** — Leo drives the conversation; Mira is an avatar waiting to be spoken to. Her animations and emotions still run; her LLM does not.
diff --git a/docs/play-hardening.md b/docs/play-hardening.md
index c09141432..eeaef42c1 100644
--- a/docs/play-hardening.md
+++ b/docs/play-hardening.md
@@ -193,7 +193,7 @@ The vehicle teleport clamp allowed a fixed displacement *per `vsync` message*, s
Every world interaction gates on the server's authoritative position: fishing spots, the wheel, quest zones, loot reach, vehicle entry, and now `ball:kick`, which had no proximity check and let anyone in the district drive the shared ball.
-Read-only request handlers are rate limited too. `storeReq`, `boutiqueReq`, `profileReq`, `questReq`, and `spinInfo` each had a declared bucket in `ACTION_RATES` that nothing consulted. `questReq` is the expensive one: it rebuilds the whole mission registry per call, so an unbounded loop from one client was a self-service denial of service against every player in that room.
+Read-only request handlers are rate limited too. `store`, `boutique`, `profile`, `questBoard`, and `spinInfo` each had a declared bucket in `ACTION_RATES` ([multiplayer/src/rooms/WalkRoom.js](../multiplayer/src/rooms/WalkRoom.js)) that nothing consulted. `questBoard` is the expensive one: it runs `boardOffers` over the whole mission registry per call, so an unbounded loop from one client was a self-service denial of service against every player in that room.
## 11. A value that is not an image never reaches an image sink
diff --git a/docs/play-live-events.md b/docs/play-live-events.md
index a450d97b2..dad80bb7b 100644
--- a/docs/play-live-events.md
+++ b/docs/play-live-events.md
@@ -7,9 +7,15 @@ when each segment starts, and a synchronized fireworks show everyone watches
together.
Everything below is driven by one file, `public/event.json`.
-Edit it, redeploy, and the event exists. Delete it and the world goes back to
+Create it, redeploy, and the event exists. Delete it and the world goes back to
normal with no code change and no dead pixels.
+**The repo ships without that file, and that is the resting state.** No event is
+scheduled right now, so `/event.json` answers 404, every surface below mounts
+nothing, and the world runs as a plain world. Scheduling an event means writing
+the file; ending one means deleting it again. Nothing in this document is live
+until that file exists.
+
- **Surface:** `/play`, in the `$THREE` home town only (`isHomeTown()`).
- **Modules:** [`src/game/meetup-event.js`](../src/game/meetup-event.js) (the view),
[`src/game/meetup-schedule.js`](../src/game/meetup-schedule.js) (pure schedule
@@ -28,6 +34,9 @@ banner and wayfinding pill ([`src/game/event-countdown.js`](../src/game/event-co
this in-world layer, and the server-side souvenir grant, so those three can never
disagree about when the event is.
+Write it to schedule an event. There is no file in the repo to edit, so start
+from the shape below:
+
```json
{
"id": "three-first-meetup",
@@ -109,12 +118,19 @@ shifts it to a specific instant instead. This runs through
`applyPreviewOverride()`, which every surface that reads the event shares, so a
preview never drifts from the real thing.
+It shifts a configured event; it does not invent one. With no `public/event.json`
+present, `?meetup=now` has nothing to move and the world loads as usual, so write
+the file first.
+
```
http://localhost:3000/play?coin=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump&name=three.ws&symbol=three&meetup=now
```
## Verifying before an event
+The audit drives the real layer through a real browser, so it needs a
+`public/event.json` in place before you run it (see the note under Previewing).
+
```bash
npm run dev # terminal 1: vite on :3000
npm run dev:walk-all # terminal 2: the Colyseus world server on :2567
diff --git a/docs/premium.md b/docs/premium.md
index 1f36d57b3..addc4a9b6 100644
--- a/docs/premium.md
+++ b/docs/premium.md
@@ -62,7 +62,12 @@ A `202 { pending: true }` means the transaction hasn't confirmed yet — poll
`subscribe` again with the same body; redeeming is idempotent, and
re-submitting an already-redeemed signature returns the existing pass.
-Live per-asset pricing: `GET https://three.ws/api/premium/plans`.
+Live per-asset pricing for all three tiers, free and keyless:
+
+```bash
+curl -s https://three.ws/api/premium/plans
+```
+
Pass state for any wallet: `GET https://three.ws/api/premium/status?wallet=…`.
## Using the pass
diff --git a/docs/pump-launcher.md b/docs/pump-launcher.md
index 7e4e8706b..82afab38b 100644
--- a/docs/pump-launcher.md
+++ b/docs/pump-launcher.md
@@ -34,9 +34,10 @@ The paid launch sits between two **free, keyless** [Crypto Data API](do-i-need-c
endpoints. Use them to make the launch land well:
1. **Before you launch — check the ticker.**
- `GET /api/crypto/symbol?ticker=<SYMBOL>` reports whether a live pump.fun coin
- already trades that symbol and lists near-collisions. Free, no key. Pick a
- symbol that isn't already crowded before you spend $5.
+ `GET /api/crypto/symbol?symbols=<SYMBOL>` reports whether a live pump.fun
+ coin already trades that symbol (`exactCollisions`) and lists near-misses
+ (`fuzzyCollisions`). Up to 20 comma-separated symbols per call, free, no key.
+ Pick a symbol that isn't already crowded before you spend $5.
2. **Launch** — `POST /api/x402/pump-launch` (this endpoint).
3. **After you launch — confirm it landed.**
`GET /api/crypto/launches` is the live pump.fun launch feed; your new mint
@@ -65,11 +66,16 @@ or `imageUrl`.
### Example request
+**1. (free) Is HELIO taken?**
+
```bash
-# 1. (free) is HELIO taken?
-curl "https://three.ws/api/crypto/symbol?ticker=HELIO"
+curl "https://three.ws/api/crypto/symbol?symbols=HELIO"
+```
-# 2. (paid, $5 USDC via x402) launch it — your x402 client handles the 402 dance
+**2. (paid, $5 USDC via x402) Launch it.** Your x402 client handles the 402 dance;
+the shape below is the request body, not the payment headers.
+
+```bash
curl -X POST https://three.ws/api/x402/pump-launch \
-H 'Content-Type: application/json' \
-d '{
@@ -81,13 +87,16 @@ curl -X POST https://three.ws/api/x402/pump-launch \
"twitter": "https://x.com/heliocoin",
"vanityPrefix": "HEL"
}'
+```
+
+**3. (free) Confirm it landed on the live launch feed.**
-# 3. (free) confirm it landed on the live launch feed
+```bash
curl "https://three.ws/api/crypto/launches"
```
See [x402 buyer client](x402-buyer.md) for how to satisfy the 402 challenge in
-code (the `curl` above shows the shape, not the payment headers).
+code.
## Output
diff --git a/docs/reputation.md b/docs/reputation.md
index 745b4faac..54d326e8a 100644
--- a/docs/reputation.md
+++ b/docs/reputation.md
@@ -139,6 +139,20 @@ function submitFeedback(uint256 agentId, int8 score, string calldata uri) extern
Emits: `FeedbackSubmitted(agentId, from, score, uri)`
+```solidity
+function stakeReputation(uint256 agentId, uint8 score, string calldata comment) external payable
+function withdrawStake(uint256 agentId) external
+```
+
+The same review, backed by ETH the contract escrows. `score` is on the 1 to 5
+scale here (not the int8 range), and `msg.value` must be at least 0.001 ETH. It
+enforces the same one-review-per-wallet, no-self-review rules, and emits
+`FeedbackSubmitted` plus `ReputationStaked(agentId, from, score, amount)`.
+`withdrawStake` refunds only your own deposit and leaves the review on-chain, so
+a staker can reclaim their ETH at any time without erasing what they said. The
+SDK wraps both as `stakeReputation({ agentId, score, comment, stakeWei, signer,
+chainId })` and reads the pool with `getTotalStake({ agentId, runner, chainId })`.
+
### Read
```solidity
diff --git a/docs/restyle.md b/docs/restyle.md
index b3bc6558c..2b89acc92 100644
--- a/docs/restyle.md
+++ b/docs/restyle.md
@@ -12,7 +12,7 @@ Generating a 3D model is the expensive step. Once you have a good mesh, wanting
The page is a Three.js scene with `RoomEnvironment` image-based lighting, so metals and glass reflect something real rather than reading as flat grey. Four capabilities sit on top of the loaded model:
-- **Preset library (14 looks).** One click applies a physically based material across every standard material in the model. The presets are `chrome`, `gold`, `copper`, `brushedSteel`, `gunmetal`, `matte` (plastic), `glossy` (plastic), `rubber`, `ceramic`, `glass`, `wood`, `stone`, `neon`, and `holographic`. Each carries tuned color, metalness, roughness, environment-map intensity, and (for neon and holographic) emissive values.
+- **Preset library (18 looks).** One click applies a physically based material across every standard material in the model. The presets are `chrome`, `gold`, `copper`, `brushedSteel`, `gunmetal`, `matte` (plastic), `glossy` (plastic), `rubber`, `ceramic`, `glass`, `realGlass` (transmissive), `wood`, `stone`, `fabric`, `skin`, `carPaint`, `neon`, and `holographic`. Each carries tuned color, metalness, roughness, environment-map intensity, and where the look calls for it (neon, holographic) emissive values or (brushed steel, car paint) anisotropy and clearcoat. The page renders whatever `@three-ws/viewer-presets` exports, and `GET /api/material-studio` lists the same set, so the two can never drift.
- **AI restyle from an instruction.** Type something like "make it chrome", "worn copper", or "cyberpunk neon" and the server asks IBM Granite (watsonx.ai) to propose a glTF 2.0 PBR material (base color, metallic, roughness, emissive factors). The factors come back, get applied to the in-browser preview instantly, and are also applied server-side to the source GLB and re-exported as a durable, validated model. If you leave the "also generate a texture" option on, the studio additionally asks the platform text-to-image lane (`/api/v1/ai/image`, the same NVIDIA NIM FLUX / Vertex stack Forge uses) for a seamless tileable material swatch and applies it as the base-color map. The flat PBR restyle always lands even if texture generation is skipped or hits its free daily quota.
- **Seeded colorway variants.** Pick a base preset, a seed, and a count (1 to 12), and the studio fans it into a strip of variants using a `mulberry32` seeded PRNG. The same base plus the same seed always produces the byte-identical set, so a colorway you liked is reproducible forever. Clicking a swatch applies it live. "Save all as versions" turns those variants into real, separately addressable GLBs, each branching off the same parent version.
- **Live manual controls.** Sliders for metalness, roughness, and emissive intensity, plus base-color and emissive-color pickers, set the same property across every standard material at once. A Reset button restores every material to its captured original values.
diff --git a/docs/sas-attestations.md b/docs/sas-attestations.md
index ab038f55e..50345a11f 100644
--- a/docs/sas-attestations.md
+++ b/docs/sas-attestations.md
@@ -1,6 +1,6 @@
# SAS Credentialed Attestations
-An attestation is a signed on-chain statement about a wallet or an agent (for example "this wallet is verified" or "this task result was audited"). This page is for operators and developers who run or integrate with the three.ws attestation authority; end users see the results surfaced on agent passports and reputation scores. Reads are public via `GET /api/agents/sas/credentials`; issuing is admin-only.
+An attestation is a signed on-chain statement about a wallet or an agent (for example "this wallet is verified" or "this task result was audited"). This page is for operators and developers who run or integrate with the three.ws attestation authority; end users see the results surfaced on agent passports and reputation scores. Reads are public via `GET /api/agents/sas-credentials`; issuing is admin-only.
three.ws issues two kinds of on-chain attestations on Solana:
@@ -144,10 +144,14 @@ A validation of an agent task result, issued by an authorized validator. Subject
The endpoint is [api/agents/sas/[action].js](../api/agents/sas/[action].js).
-### Read credentials — `GET /api/agents/sas/credentials`
+### Read credentials: `GET /api/agents/sas-credentials`
Public, rate-limited. Returns active (non-closed, non-expired) attestations for a subject.
+> The route is a single flat path segment (`sas-credentials`), not a nested one.
+> `/api/agents/sas/credentials` is claimed by the agent-by-id route and answers
+> `{"error":"not_found"}`.
+
| Query param | Required | Description |
|-------------|----------|-------------|
| `subject` | yes | Base58 pubkey the attestation is about. |
@@ -156,19 +160,19 @@ Public, rate-limited. Returns active (non-closed, non-expired) attestations for
| `include_closed` | no | `1` to include closed attestations. |
```bash
-curl "https://three.ws/api/agents/sas/credentials?subject=<pubkey>&network=mainnet"
+curl "https://three.ws/api/agents/sas-credentials?subject=<pubkey>&network=mainnet"
```
```json
{ "subject": "<pubkey>", "network": "mainnet", "kind": null, "count": 1, "data": [ /* attestations */ ] }
```
-### Issue a credential — `POST /api/agents/sas/issue-credential`
+### Issue a credential: `POST /api/agents/sas-issue-credential`
**Admin-only.** Requires admin auth (see [api/_lib/admin.js](../api/_lib/admin.js)) and validates the body against the target schema before signing. On success it issues the attestation on-chain with the authority wallet and records it in the `solana_credentials` table.
```bash
-curl -X POST https://three.ws/api/agents/sas/issue-credential \
+curl -X POST https://three.ws/api/agents/sas-issue-credential \
-H "Authorization: Bearer <admin-token>" \
-H "Content-Type: application/json" \
-d '{
diff --git a/docs/sdk.md b/docs/sdk.md
index 327fd8c0c..05caa932d 100644
--- a/docs/sdk.md
+++ b/docs/sdk.md
@@ -385,11 +385,11 @@ node scripts/publish-lib.mjs
This copies `dist-lib/agent-3d.js` and `dist-lib/agent-3d.umd.cjs` into `dist/agent-3d/<version>/` and creates channel aliases (`<major>`, `<major>.<minor>`, `latest`). It also emits SRI hashes and a `versions.json` manifest so embedders can pin with `integrity` attributes.
-Requires `npm run build:lib` to have completed first. It's also wired as the `npm run publish:lib` script, and runs automatically inside the full production build (`scripts/build-vercel.mjs`).
+Requires the library bundle to have been built first. It's also wired as the `npm run publish:lib` script, and runs automatically inside the production build: `npm run build:gcp` chains `build:lib:full` (which emits both the ES and UMD formats) straight into `publish:lib`, then verifies the result with `check:dist`.
### Versioning
-The platform follows semantic versioning. The web component version tracks `package.json` (currently `1.5.2`). The AgentKit SDK is independently versioned in `sdk/package.json` (currently `0.2.1`). Breaking changes only ship in major releases. See `sdk/CHANGELOG.md` for the AgentKit release history.
+The platform follows semantic versioning. The web component version tracks the root `package.json`; the AgentKit SDK is independently versioned in `sdk/package.json`. Read the `version` field in either file for the current number, or `https://three.ws/agent-3d/versions.json` for every published web component channel. Breaking changes only ship in major releases. See `sdk/CHANGELOG.md` for the AgentKit release history.
---
@@ -400,10 +400,12 @@ A pre-built integration that embeds a live 3D avatar in the LobeChat sidebar. Th
### One-click install
1. In LobeChat, open **Plugins → Plugin Store → Custom plugins**.
-2. Paste the manifest URL: `https://three.ws/.well-known/chat-plugin.json`
+2. Paste the manifest URL: `https://three.ws/.well-known/lobehub-plugin.json`
3. Click **Install** and enter your Agent ID from the dashboard.
-The plugin exposes four LLM-callable tools:
+That is the manifest to install. `/.well-known/chat-plugin.json` is an older, settings-only descriptor that predates the tool protocol: it declares no `api` array and no `ui.url`, so installing from it yields a plugin the model cannot call. SperaxOS, a LobeChat-lineage host that speaks the same protocol, uses `https://three.ws/.well-known/sperax-plugin.json`.
+
+The plugin exposes four LLM-callable tools, each declared in the manifest's `api` array and backed by a real endpoint under `/api/chat-plugin/`:
| Tool | Payload | Effect |
|---|---|---|
diff --git a/docs/selfie-to-avatar.md b/docs/selfie-to-avatar.md
index e108a4335..2a1ef1298 100644
--- a/docs/selfie-to-avatar.md
+++ b/docs/selfie-to-avatar.md
@@ -18,8 +18,8 @@ The client half lives in three modules the page imports on demand: [`src/selfie-
1. **Capture, in the browser.** `getUserMedia({ video: { facingMode: 'user', width: { ideal: 1280 }, height: { ideal: 1706 } } })` opens the front camera. A real-time wireframe overlay tracks head pose, yaw, centering, blur, and luminance, and only unlocks the shutter when a face is found; the hint line names the single most actionable fix ("Face the camera straight on.", "Hold steady. The image is blurry.", "Too dark. Find better light.") until every gate passes. A 3-2-1 countdown fires, then `shoot()` draws the current video frame to a canvas and calls `canvas.toBlob(blob, 'image/jpeg', 0.92)`. This is a **single still**, not a video scan. Camera support is feature-detected; if none exists, the shutter is disabled and an "Upload instead" path takes any image file.
2. **Review the still.** The countdown leaves ~3 seconds for motion blur, a head turn, or a lighting change to land in the actual capture, so the frozen still is re-scored (`checkImageQuality`) against the same gates before you accept it. The review screen shows per-gate chips plus a verdict line; only a missing face disables "Use this" (mirroring the worker's one hard input rejection), everything else is a warning you can accept.
3. **Optional side angles.** Under an "Add side angles" disclosure you can capture two extra stills (`left`, `right`, turned ~45 degrees). They raise fidelity and the ETA, but only the frontal is required. Confirmed shots (and the style choice) are mirrored to `sessionStorage`, so a refresh or accidental back-swipe mid-capture restores every slot instead of starting over; the build phase has its own resume rail (`selfie:pendingJobId`).
-4. **Refine, in the browser.** `assessPhoto` gates the frontal (no face is the only hard block; blur, illustration, or a distant subject are non-fatal warnings). `refineSelfie` isolates the subject from its background and reframes to a clean head-and-shoulders square, then downscales (max 1024px, JPEG quality 0.88). The refined frontal is previewed so you see exactly what the engine sees.
-5. **Submit.** The pipeline POSTs the photos as data URIs to `/api/avatars/reconstruct` and gets back a `jobId`.
+4. **Refine, in the browser.** `assessPhoto` gates the frontal (no face is the only hard block; blur, illustration, or a distant subject are non-fatal warnings). `refineSelfie` isolates the subject from its background and reframes to a clean head-and-shoulders square, rendered at 1024x1024 with JPEG quality 0.92 ([`src/selfie-refine.js`](../src/selfie-refine.js)). The refined frontal is previewed so you see exactly what the engine sees.
+5. **Submit.** The pipeline ([`src/selfie-pipeline.js`](../src/selfie-pipeline.js)) downscales each photo to a 1024px longest edge at JPEG quality 0.88, POSTs them as data URIs to `/api/avatars/reconstruct`, and gets back a `jobId`.
6. **Reconstruct, server-side.** The reconstruct handler (`api/avatars/_actions.js`) selects a provider through [`api/_lib/regen-provider.js`](../api/_lib/regen-provider.js). The production lane is **GCP**: it POSTs `{ images, body_type }` to the Cloud Run service behind `GCP_RECONSTRUCTION_URL`, today the [`workers/avatar-reconstruction/`](../workers/avatar-reconstruction/) FastAPI app deployed as `avatar-reconstruction`. (The multi-backend [`workers/avatar-pipeline-controller/`](../workers/avatar-pipeline-controller/) speaks the identical contract and can take over that env var, but is not deployed today.) That pipeline (`face_texture_transfer_v2`) uses **MediaPipe FaceLandmarker** (468 landmarks, Apache-2.0) to transfer your face texture and geometry onto a fixed-topology, pre-rigged Wolf3D/Ready-Player-Me-style humanoid template carrying a Mixamo-compatible skeleton, 52 ARKit blendshapes, and 15 visemes. Full engine detail is in [avatar-reconstruction.md](./avatar-reconstruction.md).
7. **Auto-rig fallback.** The template is born rigged. If a generic mesh comes back unrigged and a rig model is configured, `reconstruct-finalize.js` chains a `rerig` job (the `model-rig` worker, `workers/rig`) and moves the job through a `rigging` status before surfacing the avatar. If rigging is impossible it delivers the static mesh tagged `unrigged` rather than nothing.
8. **Poll and finish.** The client polls `GET /api/avatars/regenerate-status?jobId=...` every ~3 seconds (backing off on errors). On `status: 'done'` it fetches the finished avatar from `GET /api/avatars/:id` and shows it in a `<model-viewer>`.
diff --git a/docs/share-and-embed.md b/docs/share-and-embed.md
index f4bd29de9..7dbaec6dc 100644
--- a/docs/share-and-embed.md
+++ b/docs/share-and-embed.md
@@ -38,11 +38,16 @@ Copy and paste this into any page that accepts HTML — including Notion, Webflo
| Widget | Best for |
|---|---|
-| **Talking Agent** | Full chat + voice + 3D avatar — the default |
-| **Turntable** | Auto-rotating 3D model, no chat |
-| **Animation Gallery** | Plays through the avatar's animations |
-| **ERC-8004 Passport** | On-chain identity card |
-| **Hotspot Tour** | Annotated 3D model with camera waypoints |
+| **Turntable Showcase** | An auto-rotating 3D model with no UI. The type Widget Studio starts you on |
+| **Animation Gallery** | Clicking through every clip on a rigged avatar |
+| **Talking Agent** | Full chat, voice, and 3D avatar: your agent embodied on your site |
+| **ERC-8004 Passport** | An on-chain identity card for any agent |
+| **Hotspot Tour** | An annotated 3D scene with clickable points of interest |
+| **Pump.fun Live Feed** | A Solana agent narrating live launch claims and graduations |
+| **Smart Money Feed** | Live buy and sell activity from KOL and whale wallets for a token |
+| **Live Trades Canvas** | A particle visualization of live buy/sell trades for a token |
+| **Bonding Curve** | Live graduation progress and the bonding-curve climb for a token |
+| **Walking Avatar** | A roaming 3D avatar visitors steer around your page with a joystick or the keyboard |
---
diff --git a/docs/solana-reputation.md b/docs/solana-reputation.md
index 34b134059..e42637f8a 100644
--- a/docs/solana-reputation.md
+++ b/docs/solana-reputation.md
@@ -46,14 +46,17 @@ There's no custom contract — a vouch is an **SPL Memo** transaction. The revie
Cost is a single Solana fee (~$0.0000+); the optional stake is real SOL that goes to the agent owner. The Passport's rate panel enforces a **double-review guard** — rating the same agent twice from one wallet updates that wallet's score rather than adding a second vote.
-### The eight attestation kinds
+### The nine attestation kinds
-Every memo is one of these (`api/_lib/solana-attestations.js`):
+Every memo is one of these, and `KIND_MAP` in
+[`api/_lib/solana-attestations.js`](../api/_lib/solana-attestations.js) is the
+single source of truth for the list:
| Kind | Meaning |
|---|---|
| `threews.feedback.v1` | A 1–5 score (a vouch) |
| `threews.stake.v1` | A score backed by a SOL transfer to the owner |
+| `threews.unstake.v1` | Retires the conviction a specific stake expressed. Carries the staking signature and a decimal lamport `principal` string, so a payout past `Number.MAX_SAFE_INTEGER` survives the JSON round trip |
| `threews.validation.v1` | A pass/fail check — including `glb-schema` (the Solana analog of the EVM ValidationRegistry's glTF attestation) |
| `threews.task.v1` | An agent advertised a task |
| `threews.accept.v1` | The agent owner accepted/acknowledged a task — used to *verify* feedback |
diff --git a/docs/start-here.md b/docs/start-here.md
index c2f728714..5ffc3b454 100644
--- a/docs/start-here.md
+++ b/docs/start-here.md
@@ -95,7 +95,7 @@ Curious what happens between the prompt and the model? [How the Forge works](./h
- **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
- **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 minute (so far: 44,122 transactions scanned, zero leaks)
+- **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
- **Your agent needs market data?** → [Market Data API](./market-data-api.md) — the live feeds behind every /markets page (prices, TVL, yields, stablecoins, gas, derivatives, exploits) as 17 pay-per-call x402 endpoints from $0.001 USDC, plus the one-call `market-pulse` bundle; start at the free index [/api/x402/market](https://three.ws/api/x402/market)
- **Trading Robinhood Chain?** → [Robinhood Chain on three.ws](./robinhood-chain-markets.md) — the 24/7 tokenized-equity board (live Chainlink NAV vs. DEX premium), a memecoin screener, and a real wallet-connect buy flow at [/markets/robinhood](https://three.ws/markets/robinhood), backed by 6 free + 1 paid `/api/v1/robinhood/*` endpoints
diff --git a/docs/swarms.md b/docs/swarms.md
index a591b8c23..81f678306 100644
--- a/docs/swarms.md
+++ b/docs/swarms.md
@@ -167,12 +167,22 @@ Every failure returns `{ error, error_description }` with a specific code rather
| 400 | `bad_agent`, `bad_swarm` | The id is missing or not a UUID |
| 400 | `bad_amount` | `contribute` without a positive `sol` or `lamports` |
| 400 | `bad_action` | Unrecognized `action` |
+| 400 | `bad_name` | `create` with an empty name or one over 80 characters |
| 400 | `too_small` | Contribution under the 0.005 SOL floor |
| 401 | `unauthorized` | Mutation or `?mine=1` without a session |
+| 402 | `insufficient_funds` | The agent wallet cannot fund the contribution |
| 403 | `csrf_missing`, `csrf_invalid` | Session mutation with no (or a spent) `X-CSRF-Token` |
+| 403 | `forbidden` | Acting for an agent you do not own, or a creator-only action (`pause`, `resume`) from a member |
+| 403 | `invite_only` | `join` by anyone but the creator on a swarm with `join_open: false` |
+| 403 | `below_threshold` | `kill` from a member holding under `kill_threshold_bps` |
| 429 | `rate_limited` | Over 30 mutations per minute for this user |
| 404 | `not_found` | No such swarm |
+| 404 | `agent_not_found` | No such agent |
+| 404 | `not_member` | `exit` from an agent that is not an active member |
| 409 | `killed` | The swarm's kill switch is already pulled |
+| 409 | `closed` | `join` or `contribute` on a killed or closed swarm |
+| 409 | `share_cap` | The contribution would push one member past `max_member_share_bps` |
+| 409 | `positions_open` | `exit` under `wait_to_close` while positions are still open |
## Related
diff --git a/docs/trading-hub.md b/docs/trading-hub.md
index ec7f0c495..a57d8c3b7 100644
--- a/docs/trading-hub.md
+++ b/docs/trading-hub.md
@@ -60,11 +60,12 @@ means the coin cannot be exited, so the trade never happens.
### Every trading surface, and Learn the system
-Two directories covering the product surfaces (arena, experiments, leaderboard,
-trade feed, smart money, radar, copy trading, strategy lab, autopilot, vaults,
-coin intelligence, trader card) and the documentation (agent sniper, the arming
-tutorial, the risk policy, the risk acknowledgment, custody, earned autonomy,
-the market-making copilot, and strategy objects).
+Two directories covering the product surfaces (arena, Exit Lab, experiments,
+leaderboard, trade feed, smart money, radar, copy trading, strategy lab,
+autopilot, vaults, coin intelligence, trader card) and the documentation (agent
+sniper, the arming tutorial, the exit-policy tutorial, the risk policy, the risk
+acknowledgment, custody, earned autonomy, the market-making copilot, and
+strategy objects).
These live as data in [`src/trading-hub-data.js`](../src/trading-hub-data.js)
rather than as inline markup, so the set is enumerable and a test can assert
diff --git a/docs/tutorials/agent-reputation.md b/docs/tutorials/agent-reputation.md
index b37066b20..8d7f677a4 100644
--- a/docs/tutorials/agent-reputation.md
+++ b/docs/tutorials/agent-reputation.md
@@ -115,14 +115,20 @@ It accepts the same flexible identifier and returns the richest payload of any p
"uri": "ipfs://…" // the agent's ERC-8004 card
},
"reputation": {
- "totalScore": "42",
+ "averageX100": "450", // the contract's average, multiplied by 100
+ "average": 4.5, // averageX100 / 100; null when count is 0
"count": "6",
- "average": 7, // null when count is 0
"totalStakeWei": "0"
},
- "events": [ // latest 25 vouches + stakes
- { "kind": "submitted", "score": 5, "submitter": "0x…", "comment": "fast and accurate", "txHash": "0x…", "blockNumber": 21345678 }
- ],
+ "events": { // the scanned log window, plus the latest 25 vouches + stakes
+ "windowBlocks": 200000,
+ "fromBlock": 21145678,
+ "toBlock": 21345678,
+ "events": [
+ { "kind": "submitted", "score": 5, "submitter": "0x…", "comment": "fast and accurate", "txHash": "0x…", "blockNumber": 21345678 }
+ ]
+ },
+ "rpc": ["https://mainnet.base.org"],
"fetchedAt": "2026-06-22T18:00:00.000Z"
}
```
diff --git a/docs/tutorials/nvidia-nim-self-host.md b/docs/tutorials/nvidia-nim-self-host.md
index bba5e4cf0..5db4e90cd 100644
--- a/docs/tutorials/nvidia-nim-self-host.md
+++ b/docs/tutorials/nvidia-nim-self-host.md
@@ -46,7 +46,7 @@ The result is a base URL like `https://trellis.yourdomain.com`.
## Step 3 — Point three.ws at your NIM
-Set two environment variables on your three.ws deployment. Production runs on Google Cloud Run (service `three-ws-api`, region `us-central1`), so the env lives on the Cloud Run service — see the [GCP production runbook](../ops/gcp-production.md) for the full ops flow.
+Set two environment variables on your three.ws deployment. Production runs on Google Cloud Run (service `three-ws-api`, region `us-central1`), so the env lives on the Cloud Run service rather than in a checked-in file.
| Variable | What it is |
|----------|-----------|
@@ -65,7 +65,7 @@ Confirm three.ws can see it:
```bash
curl "https://three.ws/api/forge-nim?action=health"
-# → { "configured": true, "reachable": true, "baseUrl": "https://trellis.yourdomain.com", "endpoint": ".../v1/infer", "detail": "" }
+# → { "configured": true, "reachable": true, "baseUrl": "https://trellis.yourdomain.com", "endpoint": ".../v1/infer", "detail": null }
```
`configured` means the URL is set; `reachable` means the readiness probe answered.
@@ -103,7 +103,7 @@ Decode `glb_base64` to a file:
node -e 'const b=require("fs").readFileSync(0,"utf8");const o=JSON.parse(b);require("fs").writeFileSync("teapot.glb",Buffer.from(o.glb_base64,"base64"))' < response.json
```
-`tier` maps to TRELLIS sampling steps — `draft` runs 15/15 (sparse-structure / structured-latent steps), `high` runs 40/40 for more refinement. Prompts are truncated to TRELLIS's 77-character window, so keep them tight.
+`tier` maps to TRELLIS sampling steps: `draft` runs 15/15 (sparse-structure / structured-latent steps), `high` runs 50/50 for more refinement. Prompts are truncated to TRELLIS's 77-character window, and a prompt that names no lighting or style picks up a `, studio lighting` suffix so text results match the production forge lane. Keep prompts tight.
---
@@ -139,6 +139,8 @@ POST {baseUrl}/v1/infer
"prompt": "a glazed ceramic teapot", // text mode
"ss_sampling_steps": 15,
"slat_sampling_steps": 15,
+ "ss_cfg_scale": 7.5, // TRELLIS default
+ "slat_cfg_scale": 5.0, // above the 3.0 default: stays faithful to the source
"output_format": "glb",
"seed": 0 // optional, for reproducibility
}
diff --git a/docs/tutorials/shopify-store-guide-advanced.md b/docs/tutorials/shopify-store-guide-advanced.md
index 4dab5ffee..2253e549b 100644
--- a/docs/tutorials/shopify-store-guide-advanced.md
+++ b/docs/tutorials/shopify-store-guide-advanced.md
@@ -134,7 +134,7 @@ When the guide reaches the end of the homepage stops, it walks to a link, the pa
The one-tag install reads `data-*` attributes:
```html
-<script src="https://unpkg.com/@three-ws/[email protected]/dist/tour.global.js"
+<script src="https://unpkg.com/@three-ws/[email protected]/dist/tour.global.js"
data-tour
data-curriculum="https://cdn.shopify.com/s/files/…/curriculum.json"
data-avatar="realistic-male"
@@ -173,7 +173,7 @@ By default, narration shows as timed captions — zero setup, no API key. For an
Set `data-mode="explore"` (or pick **🕹 Explore** in the [Tour Builder](/tour-builder)) and the tour becomes an interactive, GTA-style experience: instead of the avatar walking itself, **the visitor drives it** with the arrow keys (or WASD) on desktop and an on-screen joystick on mobile. It's the real three.ws "Stroll" character — it **turns to face its heading and walks or runs in full 3D**, and the page scrolls under it so the whole store is walkable. Each stop becomes a glowing **checkpoint** anchored to its section. Walk the character into the active checkpoint and it stops, spotlights the section, and narrates it — then the next checkpoint lights up. Reach them all to finish.
```html
-<script src="https://unpkg.com/@three-ws/[email protected]/dist/tour.global.js"
+<script src="https://unpkg.com/@three-ws/[email protected]/dist/tour.global.js"
data-tour
data-mode="explore"
data-curriculum="https://cdn.shopify.com/s/files/…/curriculum.json"
@@ -266,7 +266,7 @@ Or as the `<page-agent>` element:
<page-agent avatar="nova" preset="shop-assistant"></page-agent>
```
-See [`page-agent-sdk`'s Persona presets](../../page-agent-sdk/README.md#persona-presets)
+See [`@three-ws/page-agent`'s Persona presets](https://www.npmjs.com/package/@three-ws/page-agent#persona-presets)
for the other four personas and the full `preset`/`context` reference.
---
diff --git a/docs/voice-lab.md b/docs/voice-lab.md
index 35efa4898..6a793e44e 100644
--- a/docs/voice-lab.md
+++ b/docs/voice-lab.md
@@ -2,7 +2,7 @@
Voice Lab is where an agent gets its voice. Two paths lead there, and both end in the same playground:
-- **Pick one.** Browse roughly 850 ready-made voices across five providers in one grid: Microsoft Edge (free, around 500 neural voices in 100+ locales), Google Gemini (30 prompt-directable voices on the platform's Google credits), NVIDIA Magpie (free, multilingual), OpenAI (11 voices), and ElevenLabs (your account's voices, plus the several-thousand-voice public Voice Library).
+- **Pick one.** Browse every ready-made voice across five providers in one grid: Microsoft Edge (free, the live Microsoft neural-voice list, hundreds of voices across 100+ locales), Google Gemini (30 prompt-directable voices on the platform's Google credits), NVIDIA Magpie (free, multilingual), OpenAI (11 voices), and ElevenLabs (your account's voices, plus the several-thousand-voice public Voice Library). `GET /api/tts/catalog` reports the exact `total` and a per-provider `counts` breakdown for the deployment you are talking to; nothing here is a hardcoded snapshot.
- **Make your own.** Record 20 to 30 seconds of clear speech and Voice Lab clones it into a reusable voice identity you can type into, save, and assign to any agent.
The recording, the live waveform, the browser, and the saved-voice library all run in the browser; synthesis and cloning run server-side so no provider key ever reaches the page.
@@ -18,7 +18,7 @@ An agent that speaks in a generic stock voice is a demo. An agent that speaks in
| Provider | Voices | Cost to you | Notes |
| --- | --- | --- | --- |
-| Microsoft Edge | ~500, live catalog | Free | No key, no account, works signed out. The default lane. |
+| Microsoft Edge | the live Microsoft list | Free | No key, no account, works signed out. The default lane. |
| Google Gemini | 30 prebuilt | Free | Runs on the platform's Google Cloud credits. Takes a natural-language **direction** ("say it like a bedtime story"). |
| NVIDIA Magpie | 11 personas | Free | The real-time avatar lane, 9 languages. |
| OpenAI | 11 | Credits | `gpt-4o-mini-tts` also takes a direction. |
@@ -40,7 +40,7 @@ The page ([`pages/voice.html`](../pages/voice.html)) loads [`src/voice-lab.js`](
2. **Review.** You play the take back, name the voice (1 to 64 chars), and either re-record or clone.
3. **Clone.** The recording is POSTed as `multipart/form-data` to `/api/tts/eleven-clone`. The shared library [`api/_lib/elevenlabs.js`](../api/_lib/elevenlabs.js) dynamically imports `@elevenlabs/elevenlabs-js`, constructs an `ElevenLabsClient`, and calls `client.voices.ivc.create({ name, description, files })` (ElevenLabs Instant Voice Cloning). The endpoint returns a `voice_id`.
4. **Save.** The `voice_id` is written to a browser voice library (`localStorage` key `voicelab_voices_v1`, up to 20 voices). Each card offers "Play sample" and "Remove".
-5. **Play.** The playground takes any voice (cloned or picked from the browser), up to 1,000 characters of text, an optional model, an optional direction, and a speed, and POSTs them to `/api/tts/synthesize`. Options are keyed `<provider>:<voiceId>` so a cloned ElevenLabs voice, a free Edge voice, and a Gemini prebuilt can never collide. The model select and the direction field appear only for lanes that have them. Every clip is cached in R2 for 30 days keyed on a hash of the full request (the response header `x-tts-cache: hit|miss` tells you which).
+5. **Play.** The playground takes any voice (cloned or picked from the browser), up to 1,000 characters of text, an optional model, an optional direction, and a speed, and POSTs them to `/api/tts/synthesize`. Options are keyed `<provider>:<voiceId>` so a cloned ElevenLabs voice, a free Edge voice, and a Gemini prebuilt can never collide. The model select and the direction field appear only for lanes that have them. Every clip is cached in R2 keyed on a hash of the full request (provider, voice, text, model, direction, speed, and settings), so an identical request is served from storage with no upstream call and no charge. The response header `x-tts-cache: hit|miss` tells you which path served you.
### Comparing voice models
@@ -60,7 +60,7 @@ Free means free, and vendor-billed means metered: no request the platform would
0. **Free (`free` / `gcp`).** Edge and NVIDIA cost the platform nothing (Edge is keyless; NVIDIA runs on its free NIM tier), and Gemini runs on the platform's Google Cloud credits under the standing owner-approved spend. All three are served without charge and Edge, Gemini, and NVIDIA all work **signed out**.
1. **Prepaid credits (default for OpenAI and ElevenLabs).** Requests on the platform's vendor accounts are metered against your [credit balance](https://three.ws/credits) (top up with $THREE or SOL): $0.30 per 1,000 spoken characters on ElevenLabs (`tts.eleven`), $0.03 per 1,000 on OpenAI (`tts.openai`), and $0.50 per voice clone (`voice.clone`, with the $THREE holder-tier discount applied). A short balance returns `402 insufficient_credits` with `top_up_url`, and a failed synthesis or clone refunds the charge. The response header `x-tts-charged-usd` reports what a metered call cost.
2. **Bring your own key (BYOK).** Send your own ElevenLabs API key in the `x-eleven-key` header on any ElevenLabs-touching endpoint (`/api/tts/synthesize`, `/api/tts/eleven`, `/api/tts/eleven/voices`, `/api/tts/eleven/library`, `/api/tts/eleven-clone`) and the call runs on *your* ElevenLabs account: your voices, your quota, your bill, with no platform charges. The server uses the key for that one request and never stores it. On [/voice](https://three.ws/voice), the "Use Your Own ElevenLabs Key" card saves the key to your browser's `localStorage` and attaches the header automatically.
-3. **Cache hits.** Clips already synthesized (same voice, text, model, and settings) are served from R2 with no upstream call and no charge (`x-tts-billing: cached`).
+3. **Cache hits.** Clips already synthesized (same voice, text, model, and settings) are served from R2 with no upstream call and no charge (`x-tts-billing: cached`). The cache is checked before metering, so a repeat line never spends credits twice.
```bash
# Every voice on the platform, in one shape. Works signed out (free lanes only).
@@ -145,7 +145,7 @@ The agent-voice handler ([`api/agents/_id/voice.js`](../api/agents/_id/voice.js)
- **Server config.** ElevenLabs must be configured (`ELEVENLABS_API_KEY`) or the endpoints return `503 not_configured`; a request carrying its own `x-eleven-key` header still works (see the billing section above).
- **Paid cloning tier.** Instant Voice Cloning is an ElevenLabs paid-tier (Starter and up) feature. On a free upstream tier the API surfaces the upstream `can_not_use_instant_voice_cloning` body verbatim as a `502`.
- **Length rules.** Voice Lab recommends 20 to 30 seconds, auto-stops at 60, and rejects under 3. The separate agent-clone endpoint (`POST /api/agents/:id/voice/clone`) enforces a 30-second floor. Platform-key clones on both endpoints are capped at 3 per user per day (an abuse guard on the shared account's limited clone slots) and each is charged per the billing section; BYOK clones on `/api/tts/eleven-clone` skip the cap.
-- **Synthesis limits.** 1,000 characters per `/api/tts/synthesize` request (500 on the older `/api/tts/eleven`); every platform-key request is metered to credits per the billing section (charged before synthesis, refunded on failure). BYOK requests are unmetered by the platform. Clips are cached in R2 for 30 days and cache hits are not charged.
+- **Synthesis limits.** 1,000 characters per `/api/tts/synthesize` request (500 on the older `/api/tts/eleven`); every platform-key request is metered to credits per the billing section (charged before synthesis, refunded on failure). BYOK requests are unmetered by the platform. Clips are cached in R2 and cache hits are not charged.
- **Audio size.** Clone uploads are capped at ~10 MB.
- **"Add to an agent" on `/voice`** links to the dashboard; the actual assignment happens in the agent editor. The cloned `voice_id` lives in browser `localStorage` until you assign it.
- **Error copy.** Mic denial, recorder failure, too-short recording, missing name, network failure, and clone failure each map to a specific message; the playground shows "Synthesizing...", then a size, a cached/generated tag, and the billing rung that served it, or an error. A lane's upstream failure is tagged with a code (`invalid_key`, `rate_limited`, `content_blocked`, `provider_unreachable`) that `/api/tts/synthesize` maps to a truthful HTTP status rather than a blanket 502.
diff --git a/docs/web-component.md b/docs/web-component.md
index a8710062d..8d61d321d 100644
--- a/docs/web-component.md
+++ b/docs/web-component.md
@@ -19,7 +19,7 @@ The element is designed to be zero-overhead until it is needed.
1. **Element added to DOM** — `connectedCallback` fires. Shadow DOM shell (canvas container, chat chrome, poster, loading indicator) is rendered immediately.
2. **IntersectionObserver** starts watching the element. Nothing else happens until at least one pixel is visible in the viewport. Add the `eager` attribute to skip this and boot immediately on connection.
-3. **Manifest resolved** — the element reads its source attributes (`src`, `agent-id`, `manifest`, or `body`) in priority order and fetches or constructs an agent manifest. See [Source attributes](#source-attributes) for the priority chain.
+3. **Manifest resolved**: the element reads its source attributes (`src`, `agent-id`, `manifest`, or `body`) in priority order and fetches or constructs an agent manifest. See [Source attributes](#source-attributes-pick-one) for the priority chain.
4. **Embed policy checked** — if the manifest maps to a backend agent ID, the element fetches the agent's embed policy and refuses to continue if the current origin is not permitted.
5. **Viewer constructed** — a three.js renderer is created inside the shadow DOM canvas. The GLB referenced by `manifest.body.uri` is loaded.
6. **Memory, skills, and runtime initialized** — the memory store is opened, skills listed in the manifest are installed, and the LLM runtime is wired up (or a null provider is used if `brain` is `none` or omitted).
diff --git a/public/docs/mcp-intel.md b/public/docs/mcp-intel.md
index 2c7341983..2e544e317 100644
--- a/public/docs/mcp-intel.md
+++ b/public/docs/mcp-intel.md
@@ -5,7 +5,7 @@ Score a coin by **who** is net-buying it, pull any wallet's realized reputation,
Registered in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) as **`io.github.nirholas/intel-mcp`**.
- **Install:** `npx -y @three-ws/intel-mcp`
-- **npm:** [`@three-ws/intel-mcp`](https://www.npmjs.com/package/@three-ws/intel-mcp) · v0.1.0
+- **npm:** [`@three-ws/intel-mcp`](https://www.npmjs.com/package/@three-ws/intel-mcp), published from `packages/intel-mcp`
- **Transport:** stdio — no account, no key, no payment
## Add it
diff --git a/public/docs/mcp-marketplace.md b/public/docs/mcp-marketplace.md
index 53db49cb5..0ddfc9cbd 100644
--- a/public/docs/mcp-marketplace.md
+++ b/public/docs/mcp-marketplace.md
@@ -5,7 +5,7 @@ Search and page the public three.ws agent marketplace and the skills catalog fro
Registered in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) as **`io.github.nirholas/marketplace-mcp`**.
- **Install:** `npx -y @three-ws/marketplace-mcp`
-- **npm:** [`@three-ws/marketplace-mcp`](https://www.npmjs.com/package/@three-ws/marketplace-mcp) · v0.1.0
+- **npm:** [`@three-ws/marketplace-mcp`](https://www.npmjs.com/package/@three-ws/marketplace-mcp), published from `packages/marketplace-mcp`
- **Transport:** stdio — no account, no key, no payment
## Add it
@@ -40,10 +40,10 @@ Popular programming agents:
{ "category": "programming", "sort": "popular", "limit": 10 }
```
-Open one agent:
+Open one agent (ids come from a `browse_agents` response):
```json
-{ "id": "550e8400-e29b-41d4-a716-446655440000" }
+{ "id": "0f81b359-3ba3-40d6-9cbf-ebd551e4f862" }
```
Newest skills matching a query:
diff --git a/public/docs/mcp-naming.md b/public/docs/mcp-naming.md
index 22075f66b..e86007ac7 100644
--- a/public/docs/mcp-naming.md
+++ b/public/docs/mcp-naming.md
@@ -5,7 +5,7 @@ Resolve Solana Name Service (`.sol`) names to wallets, reverse-look-up a wallet
Registered in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) as **`io.github.nirholas/naming-mcp`**.
- **Install:** `npx -y @three-ws/naming-mcp`
-- **npm:** [`@three-ws/naming-mcp`](https://www.npmjs.com/package/@three-ws/naming-mcp) · v0.1.0
+- **npm:** [`@three-ws/naming-mcp`](https://www.npmjs.com/package/@three-ws/naming-mcp), published from `packages/naming-mcp`
- **Transport:** stdio — no account, no key, no payment
## Add it
diff --git a/public/docs/mcp-scenes.md b/public/docs/mcp-scenes.md
index 3fa860a83..47a55e668 100644
--- a/public/docs/mcp-scenes.md
+++ b/public/docs/mcp-scenes.md
@@ -5,8 +5,8 @@ Turn one sentence into a placed 3D diorama plan, then forge and browse saved wor
Registered in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) as **`io.github.nirholas/scene-mcp`**.
- **Install:** `npx -y @three-ws/scene-mcp`
-- **npm:** [`@three-ws/scene-mcp`](https://www.npmjs.com/package/@three-ws/scene-mcp) · v0.1.0
-- **Transport:** stdio — no account, no key, no payment
+- **npm:** [`@three-ws/scene-mcp`](https://www.npmjs.com/package/@three-ws/scene-mcp) (the package page carries the current version; `npx -y` always fetches it)
+- **Transport:** stdio, no account, no key, no payment
- **Backend:** `/api/diorama` on three.ws
## Add it
diff --git a/public/docs/mcp-vanity.md b/public/docs/mcp-vanity.md
index 988ed49fc..759b1ea80 100644
--- a/public/docs/mcp-vanity.md
+++ b/public/docs/mcp-vanity.md
@@ -5,7 +5,7 @@ Read the three.ws vanity-address **grind-bounty market** and proof-of-grind rari
Registered in the [official MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) as **`io.github.nirholas/vanity-mcp`**.
- **Install:** `npx -y @three-ws/vanity-mcp`
-- **npm:** [`@three-ws/vanity-mcp`](https://www.npmjs.com/package/@three-ws/vanity-mcp) · v0.1.0
+- **npm:** [`@three-ws/vanity-mcp`](https://www.npmjs.com/package/@three-ws/vanity-mcp), published from `packages/vanity-mcp`
- **Transport:** stdio
## Add it
diff --git a/scripts/audit-docs.mjs b/scripts/audit-docs.mjs
index 3fa7f98df..2b153e4c0 100644
--- a/scripts/audit-docs.mjs
+++ b/scripts/audit-docs.mjs
@@ -20,6 +20,9 @@
* reaches the sitemap, llms.txt and features.json instead of being live at
* 200 and invisible to every crawler. Docs that are deliberately not
* published carry an entry in UNPUBLISHED_DOCS below with the reason.
+ * 6. The mirror of 5: every /docs/<slug> declared in data/pages.json has an
+ * article to serve. A declared slug with no Markdown behind it answers 404
+ * while the sitemap, llms.txt and the changelog all advertise it.
*
* Usage:
* node scripts/audit-docs.mjs # audit the whole repo, exit 1 on findings
@@ -323,6 +326,55 @@ if (!explicitFiles.length) {
}
}
+// ------------------------------------------- declared docs must have an article
+// The mirror of the check above, and the one that actually shipped a 404. Every
+// /docs/<slug> route rewrites to one shell that fetches /docs/<slug>.md at
+// runtime, so declaring a page in data/pages.json without writing its Markdown
+// puts the slug in the sitemap, llms.txt, features.json and the changelog while
+// the live route answers 404 (server/shell-pages.mjs refuses to serve a shell
+// whose article is missing). That is exactly what happened to
+// /docs/economy-health-dashboard: it documented the admin panel deleted in the
+// security cleanup, the doc went with the panel, and the pages.json entry stayed
+// behind advertising a dead page for a week.
+if (!explicitFiles.length) {
+ // Mirror the server's own resolution order (server/index.mjs walks
+ // vercel.json top to bottom): only a slug whose FIRST matching route lands on
+ // the shared docs shell needs an article. A path claimed earlier by a
+ // dedicated route (/docs/world, /docs/walk/*, /docs/widgets) is a real page
+ // with its own HTML and is none of this check's business.
+ const orderedRoutes = (vercel.routes || [])
+ // Only rewriting rules decide where a path lands. Header-only rules (the
+ // leading `/(.*)` security-header pass) and `continue: true` rules match
+ // everything and resolve nothing, so counting them would make the first
+ // match always be the catch-all.
+ .filter((r) => r.src && r.dest && !r.continue && !(typeof r.status === 'number' && r.status >= 400))
+ .map((r) => {
+ try {
+ return { re: new RegExp(`^${r.src}$`), dest: r.dest || '' };
+ } catch {
+ return null;
+ }
+ })
+ .filter(Boolean);
+ // server/shell-pages.mjs: the shell probes dist/docs/<slug>.md, built from
+ // docs/. A dot is excluded there, so it can never name an article here.
+ const ARTICLE_SLUG = /^[A-Za-z0-9][A-Za-z0-9_-]*(\/[A-Za-z0-9][A-Za-z0-9_-]*)*$/;
+ for (const declared of declaredPages) {
+ if (!declared.startsWith('/docs/')) continue;
+ const slug = declared.slice('/docs/'.length).replace(/\/+$/, '');
+ if (!slug || !ARTICLE_SLUG.test(slug)) continue;
+ const first = orderedRoutes.find((r) => r.re.test(declared));
+ if (!first || !first.dest.startsWith('/docs/index.html')) continue;
+ if (existsSync(resolve(root, `docs/${slug}.md`))) continue;
+ findings.push({
+ file: 'data/pages.json',
+ line: 0,
+ kind: 'declared-doc-without-article',
+ detail: `declares ${declared} but no docs/${slug}.md exists, so the route 404s while the sitemap and llms.txt advertise it. Write the doc, or remove the entry.`,
+ });
+ }
+}
+
// ---------------------------------------------------------------- the verdict
const byKind = findings.reduce((acc, f) => {
(acc[f.kind] = acc[f.kind] || []).push(f);
@@ -335,6 +387,7 @@ const LABEL = {
'dead-script': 'Commands naming scripts that do not exist',
'missing-readme': 'Directories required to carry a README.md',
'unregistered-doc': 'Public docs missing from data/pages.json (live but undiscoverable)',
+ 'declared-doc-without-article': 'Docs pages declared in data/pages.json with no article to serve (404)',
};
if (!findings.length) {