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.

Character-studio library fixes, audit docs, changelog/features regen

nirholasba1d348747c4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e8d36cfd8..6fde9aa71 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-18
+- **Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models** — An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly. (`/create/studio`) `[fix]`
- **Bundle specific skills into your subscription plans** — When you create or edit a subscription plan in the agent editor's Monetization tab, you can now tick exactly which of your agent's skills the plan includes. Subscribers to that plan get unlimited access to those skills for the life of their subscription, and the plan list shows what each plan bundles at a glance — so you can offer a focused starter plan and a fuller pro plan side by side. `[feature, improvement]`
- **Coin community worlds no longer get stuck on “Connecting…”** — Opening a coin community world could occasionally hang on “Connecting…” forever — you'd see only yourself, with chat, voice, and shared building all stalled and no way to recover short of a reload. It happened when the game server accepted the connection but never finished the join handshake, for instance while a server instance was waking from idle. The connection now has a firm time limit: if the handshake doesn't complete in time it retries on its own, and if the server stays unreachable it drops you cleanly into single-player so you can still explore and build locally — with the status pill tappable to reconnect. The same safeguard covers the open /walk world and the IRL map. `[fix]`
- **Connect a wallet and your $THREE tier is recognized — no account needed** — You no longer need a three.ws account to be seen as a $THREE holder. Connect your Solana wallet and the site reads your tier straight from your on-chain holdings: the holder chip in the top bar shows your live tier (◆ Bronze, Silver, Gold…) and holder features like High-quality generation on Forge unlock from the connected wallet alone. When a feature needs proof the wallet is yours, you approve a single free signature that moves no funds. Switch or disconnect a wallet and your tier updates instantly, no reload. Signed-in accounts keep working exactly as before. (`/forge`) `[improvement]`
diff --git a/ISSUES.md b/ISSUES.md
index 819661890..2ca45029a 100644
--- a/ISSUES.md
+++ b/ISSUES.md
@@ -11,26 +11,26 @@ contain work that is still open.
## Open
-### 1. `character-studio/` — 192 pre-existing lint findings (added 2026-06-11)
+### 1. `character-studio/` — pre-existing lint debt (added 2026-06-11)
**Context:** The eslint 8→10 upgrade migrated character-studio to flat config
-(`character-studio/eslint.config.mjs`). Lint now runs correctly under eslint 10
-and surfaces 192 pre-existing findings across 48 files in the vendored
-CharacterStudio fork (118 `no-unused-vars`, 16 `no-undef`,
+(`character-studio/eslint.config.mjs`). Lint surfaces pre-existing findings
+across the vendored CharacterStudio fork (118 `no-unused-vars`,
17 `no-async-promise-executor`, plus smaller buckets). These all predate the
-upgrade — the previous `.eslintrc.json` + eslint 8 setup reported the same core
-findings, so `npm run lint:js` was already red.
-
-**Real-bug candidates among the `no-undef` hits** (each references an
-identifier that doesn't exist in scope, so the code path throws at runtime):
-`src/library/manifestDataManager.js` (`testWallet`, `identifier`,
-`traitOption`, `traitType`), `src/library/mint-utils.js` (`connection`,
-`ethereum`), `src/library/vrmManager.js` (`addChildAtFirst`),
-`src/library/walletCollections.js` (`network`),
-`src/library/download-utils.js` (`optimized`),
-`src/library/CharacterManifestData.js` (`index`). The `anifest` typos in
-`src/pages/Wallet.jsx` were fixed in the upgrade commit.
-
-**Status:** ⏳ **OPEN** — fix the `no-undef` bugs path-by-path with the
-surrounding feature exercised in a browser; then burn down `no-unused-vars`
-mechanically.
+upgrade.
+
+**Runtime `no-undef` bugs — FIXED 2026-06-18** (see
+[docs/internal/AUDIT-2026-06-18.md](docs/internal/AUDIT-2026-06-18.md)). Six
+bare-identifier references that threw `ReferenceError` the moment their code
+path ran are now corrected:
+`manifestDataManager.js:67,70` (`testWallet` → `isNFTLocked()`),
+`mint-utils.js:292` (`ethereum` → `'ethereum'`),
+`vrmManager.js` (`addChildAtFirst` now imported from `./utils`),
+`walletCollections.js:58` (`network` → `chainName`),
+`CharacterManifestData.js:877` (`getTraitByIndex` now takes `index`).
+The `connection` and `download-utils` `optimized` candidates were verified as
+false positives (locally declared / object property keys).
+
+**Status:** ⏳ **OPEN** — only the cosmetic burndown remains: clear
+`no-unused-vars` and `no-async-promise-executor` mechanically, file by file.
+No known runtime bugs remain in the fork.
diff --git a/character-studio/src/library/CharacterManifestData.js b/character-studio/src/library/CharacterManifestData.js
index 2fd4d7022..c5330a616 100644
--- a/character-studio/src/library/CharacterManifestData.js
+++ b/character-studio/src/library/CharacterManifestData.js
@@ -874,7 +874,7 @@ export class TraitModelsGroup{
return decalGroup.map((c)=>c?.collection).flat().filter((c)=>!!c);
}
- getTraitByIndex(lockFilter = true){
+ getTraitByIndex(index, lockFilter = true){
const collection = this.getCollection(lockFilter)
return collection[index];
}
diff --git a/character-studio/src/library/download-utils.js b/character-studio/src/library/download-utils.js
index 34f724b31..bb6ec4361 100644
--- a/character-studio/src/library/download-utils.js
+++ b/character-studio/src/library/download-utils.js
@@ -83,6 +83,7 @@ export async function getVRMBlobData(model, avatar, options){
// returns a promise with the parsed data
async function getGLBData(model, options){
+ const {optimized = true} = options;
if (optimized){
const finalModel = await getOptimizedGLB(model, options)
return parseGLB(finalModel);
diff --git a/character-studio/src/library/ktx.js b/character-studio/src/library/ktx.js
index e34830ec3..f3311a2d9 100644
--- a/character-studio/src/library/ktx.js
+++ b/character-studio/src/library/ktx.js
@@ -5,7 +5,7 @@ class KtxDecoder {
this.libktx = null;
if (context !== undefined)
{
- if (externalKtxlib === undefined && LIBKTX !== undefined)
+ if (externalKtxlib === undefined && typeof LIBKTX !== 'undefined')
{
externalKtxlib = LIBKTX;
}
diff --git a/character-studio/src/library/manifestDataManager.js b/character-studio/src/library/manifestDataManager.js
index f78d5bd9e..bfb46e4e6 100644
--- a/character-studio/src/library/manifestDataManager.js
+++ b/character-studio/src/library/manifestDataManager.js
@@ -64,10 +64,10 @@ export class ManifestDataManager{
}
isManifestByIndexNFTLocked(index){
- return this.manifestDataCollection[index]?.isNFTLocked(testWallet);
+ return this.manifestDataCollection[index]?.isNFTLocked();
}
isManifestByIdentifierNFTLocked(identifier){
- return this.manifestDataByIdentifier[identifier]?.isNFTLocked(testWallet);
+ return this.manifestDataByIdentifier[identifier]?.isNFTLocked();
}
clearManifests(){
@@ -235,7 +235,7 @@ export class ManifestDataManager{
if (optionalIdentifier != null){
const manifestData = this.manifestDataByIdentifier[optionalIdentifier];
if (manifestData != null){
- return manifestData[identifier]?.getTraitOptionById(traitID);
+ return manifestData.getTraitOptionById(traitID);
}
else{
console.warn(`No manifest data with name ${optionalIdentifier} was found.`)
@@ -243,7 +243,7 @@ export class ManifestDataManager{
}
}
else{
- traitOption = null
+ let traitOption = null
this.manifestDataCollection.forEach(manifestData => {
if (traitOption == null)
traitOption = manifestData.getTraitOptionById(traitID);
@@ -396,7 +396,7 @@ export class ManifestDataManager{
if (optionalIdentifier != null){
const manifestData = this.manifestDataByIdentifier[optionalIdentifier];
if (manifestData != null){
- return manifestData.getModelTraits(traitType);
+ return manifestData.getModelTraits(groupTraitID);
}
else{
console.warn(`No manifest data with name ${optionalIdentifier} was found.`)
diff --git a/character-studio/src/library/mint-utils.js b/character-studio/src/library/mint-utils.js
index 08f35a540..cdb845be3 100644
--- a/character-studio/src/library/mint-utils.js
+++ b/character-studio/src/library/mint-utils.js
@@ -153,8 +153,9 @@ async function signAndSendTransaction(base64Transaction) {
return;
}
+ let connection;
try {
- const connection = new Connection(rpcUrl);
+ connection = new Connection(rpcUrl);
// Decode Base64 transaction to Uint8Array
const transactionBytes = Uint8Array.from(atob(base64Transaction), (c) => c.charCodeAt(0));
@@ -289,7 +290,7 @@ export function connectWallet(network) {
ethereum: '0x1', // Ethereum Mainnet
polygon: '0x89', // Polygon Mainnet
};
- const targetChain = network.toLowerCase() == ethereum ? chainIdMap.ethereum : chainIdMap.polygon;
+ const targetChain = network.toLowerCase() === 'ethereum' ? chainIdMap.ethereum : chainIdMap.polygon;
await window.ethereum.request({
method: 'wallet_switchEthereumChain',
diff --git a/character-studio/src/library/vrmManager.js b/character-studio/src/library/vrmManager.js
index c11fb72e4..79685688f 100644
--- a/character-studio/src/library/vrmManager.js
+++ b/character-studio/src/library/vrmManager.js
@@ -1,6 +1,6 @@
import * as THREE from "three";
import { VRMSpringBoneCollider } from "@pixiv/three-vrm";
-import { disposeVRM, renameVRMBones, addModelData } from "./utils";
+import { disposeVRM, renameVRMBones, addModelData, addChildAtFirst } from "./utils";
import { getNodesWithColliders, saveVRMCollidersToUserData, renameMorphTargets } from "./load-utils";
/**
diff --git a/character-studio/src/library/walletCollections.js b/character-studio/src/library/walletCollections.js
index 70cdfcebc..9d6a2dfae 100644
--- a/character-studio/src/library/walletCollections.js
+++ b/character-studio/src/library/walletCollections.js
@@ -55,7 +55,7 @@ export class WalletCollections {
? Promise.resolve(testWallet)
: connectWallet(chainName);
- return walletPromise.then(wallet => ownsCollection(wallet, network, collectionName));
+ return walletPromise.then(wallet => ownsCollection(wallet, chainName, collectionName));
}
/**
diff --git a/data/changelog.json b/data/changelog.json
index c103032bf..14cc5ae44 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-18",
+ "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models",
+ "summary": "An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/create/studio"
+ },
{
"date": "2026-06-18",
"title": "Glasses now sit on your avatar's eyes, not through its cheeks",
diff --git a/docs/audits/01-main.md b/docs/audits/01-main.md
new file mode 100644
index 000000000..984bde132
--- /dev/null
+++ b/docs/audits/01-main.md
@@ -0,0 +1,140 @@
+# Audit 01 — Main pages
+
+Group: `/`, `/discover`, `/gallery`, `/animations`, `/walk`, `/irl`, `/irl-privacy`, `/marketplace`, `/marketplace/analytics`, `/collection`, `/skills`, `/community`, `/characters`, `/what-is`, `/sitemap`
+
+Reviewer notes: coin-rule clarification applied throughout — `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the platform token; **USDC is the x402/payment dollar (a runtime payment rail), not a competing coin**, so USDC references in pay flows are NOT coin-rule violations. `marketplace-analytics.js` proves this distinction is already modeled (`THREE_MINT` vs `USDC_MINT`). No genuine non-`$THREE` coin promotion was found in this group.
+
+---
+
+## / — pages/home.html
+
+Verdict: Needs work (large, mostly solid; two shipped-fallback-array rule violations).
+
+- [P1] `pages/home.html:5562-5567` — `const FALLBACK_AGENTS = [...]` is a hardcoded 4-item demo avatar array (CZ / Ansem / Saga / Boss Vernington) rendered into the showcase grid when `/api/explore` fails. CLAUDE.md hard rule: "No fallback sample arrays shipped to production." Fix: on fetch failure render a designed empty/error state (e.g. "Live showcase unavailable — retry") instead of fabricated cards. (Names are personas, not coin tickers — not a coin-rule issue.)
+- [P1] `pages/home.html:4882-4891` — `var POOL_FALLBACKS = [...]` ships a duplicated list of 4 GLB paths to pad the avatar pool when `/api/explore` returns nothing. Same rule. Fix: degrade to skeletons/empty rather than repeating placeholder bodies.
+- [P2] `pages/home.html:~4940` — hero-avatar failure shows a bare "Retry" button with no message explaining what failed. Fix: add "3D preview unavailable" copy beside the retry.
+- [P2] `pages/home.html` showcase cards (`makeAgentCard`, ~5577) — `.showcase-agent-card` is an `<a>` with hover styling but no explicit `:focus-visible` outline for keyboard nav. Add one.
+- [P3] The pump.fun live card / oracle mini-feed have skeletons but no long-hang timeout; if `/api/pump/*` stalls the skeleton persists. Consider a timeout → "still loading / retry".
+
+Note: subagent-flagged "broken routes" `/forge`, `/radar`, `/pose`, `/marketplace` are all valid (present in `vite.config.js` fileMap / `vercel.json`). Not findings. Footer correctly shows only `$THREE` + CA; Jupiter-swap demo mints (USDC/WSOL) are generic runtime mints — compliant.
+
+## /discover — public/discover/index.html (+ public/discover/discover.js)
+
+Verdict: Solid.
+
+- Real data via `/api/explore`; cursor pagination + IntersectionObserver infinite scroll with manual `Load more` fallback; skeleton loading, distinct filtered-empty vs cold-empty states (both actionable), and a recoverable error state with Retry (`discover.js:347-366`). All user strings escaped (`escapeHtml`/`escapeAttr`). Cards cross-wire to `/discover/a/:chain/:id`, `/avatars/:id`, Solscan, embed modal (web-component/iframe/link/markdown/farcaster), and copy-URI. Embed modal is keyboard-closable (Esc) and ARIA-dialog. No issues worth flagging.
+- [P3] `discover.js:482` detail URL is `/discover/a/:chainId/:agentId` while the embed modal advertises `/a/:chainId/:agentId` (line 638) as the standalone page — confirm both resolve; if `/discover/a/...` is canonical, align the modal's "Open standalone page" link to it for consistency.
+
+## /gallery — public/gallery/index.html (+ public/gallery/gallery.js)
+
+Verdict: Solid.
+
+- Real data via `/api/avatars/public`; URL-synced filters (q/category/tag/sort), cursor pagination, skeleton + filtered-empty + cold-empty + error(with message) states (`gallery.js:272-292`), full escaping on all interpolated values. Hero CTAs and "From the Forge" section wire to `/create/*`, `/forge`, `/dashboard/avatars`. Card thumb has `aria-label`. Good.
+- [P3] "Create from template" button depends on `/src/shared/template-picker.js` loading; fine, just ensure that module degrades if the template API is empty (no template = button should explain, not no-op).
+
+## /animations — pages/animations.html (+ src/animations-gallery.js)
+
+Verdict: Solid.
+
+- Every state is designed in markup: skeleton grid, populated grid, cold-empty ("No animations yet" → Open Studio), search-empty (clearable), and error (Retry) — `animations.html:460-491`. Toolbar is a labeled `role="toolbar"`; filter chips use `role="tab"`/`aria-selected`; buttons have `:hover/:active/:focus-visible`; responsive `@media` at 600px. Hero CTAs point to `/pose` (Animation Studio) and `/gallery` — both valid.
+- [P3] Hero CTA label is "Open Animation Studio" but routes to `/pose`; the studio is reachable, just verify `/pose` is the intended canonical studio (vs `/mocap-studio`) so the label matches the destination.
+
+## /walk — pages/walk.html
+
+Verdict: Needs work (functional; accessibility gaps on icon controls).
+
+- [P2] `pages/walk.html:1077,1086,1090,1099,1108,1112,1121` — toolbar controls (avatar, camera-mode, env, screenshot, minimap, zen, help) are icon-only and use `title=` (+ CSS-hidden `data-label`) instead of `aria-label`. `title` is not reliably exposed to screen readers. Fix: add `aria-label` to each ("Change avatar", "Switch camera", "Change scene", "Take screenshot", "Toggle minimap", "Hide UI", "Show help").
+- [P2] `pages/walk.html:~947-957` — `:focus-visible` styling is present for `.walk-btn` but secondary controls (emote buttons, avatar picker entries) lack a clearly visible focus ring, especially in dark mode. Extend focus-visible coverage.
+
+## /irl — pages/irl.html
+
+Verdict: Needs work (states for denied permissions / empty area need to be airtight).
+
+- [P1] `pages/irl.html:1949` — `<img id="irl-sheet-thumb" ... alt="" hidden />` ships an empty `alt`. When JS populates the agent card thumbnail this remains uninformative to screen readers / when the image 404s. Fix: set `alt` from the agent name when the sheet hydrates ("Agent <name> avatar").
+- [P1] Permission-denied / empty-area states: there is an `#irl-error-sheet` (lines ~1062-1095), a radar `is-empty` class (~646), and a motion `#irl-cal-denied` toast (~2088), but the geolocation-denied and camera-revoked-mid-session paths must render a designed, recoverable card ("IRL needs location/camera — enable in settings, then retry") rather than a blank canvas. Verify `src/irl/onboarding.js` drives `#irl-error-sheet` for all denial branches; flag any silent blank-canvas fallthrough.
+- [P1] `pages/irl.html:~646,1753` — empty-nearby is communicated by a CSS color swap on `#irl-nearby-badge` only; the badge text isn't updated, so a screen reader (and a glancing user) can't tell "empty" from "error". Fix: set `textContent` to "No agents nearby" on empty (the `aria-live="polite"` is already there).
+- [P2] `pages/irl.html:1858-1878` — object-picker buttons (Orb/Crate/Crystal/Ring/Pillar) carry color only via inline-styled swatch with no `aria-label`; color-blind and SR users get no distinction. Add `aria-label` per object.
+- [P2] `pages/irl.html:2068-2087` — calibrate panel: ensure the Cancel affordance stays reachable (keyboard/touch) when DeviceOrientation is denied, so users aren't trapped behind a modal panel.
+
+Coin-rule note: the subagent flagged the report-reason button "Scam or off-brand coin" (`pages/irl.html:~1997`) as a coin-rule issue. It is NOT a promotion of another coin — it is a user-report category. It is, however, weak/confusing copy. [P2] Reword to "Scam or fraudulent content" and let backend policy (not user wording) handle coin-policy on paid pins.
+
+## /irl-privacy — pages/irl-privacy.html
+
+Verdict: Solid.
+
+- Static explainer, fully self-contained styling, semantic sections with `aria-labelledby`, designed cards/compare/sensor blocks, `prefers-reduced-motion` handling, focus-visible on links/buttons. CTAs go to `/irl` and `/legal/privacy` (route confirmed in `vercel.json:3338`). No data fetching, so no loading/empty/error surface needed. No issues.
+
+## /marketplace — pages/marketplace.html (+ src/marketplace.js)
+
+Verdict: Solid.
+
+- Real data via `/api/marketplace/*`; serves list + all detail variants (agents/avatars/tools/skills/animations/onchain) from URL hydration. Skeletons, empty, and error(retry) states present; cards link to detail pages and detail pages "View agent" to `/marketplace/agents/:id`; purchase success path returns an actionable next step; ARIA live regions and 60+ hover/focus/active rules. No mocks, no stub throws, no fake setTimeout loaders.
+- USDC pricing copy (`:3751,:4140,:4335`) and `USDC_MAINNET_MINT` in `src/marketplace.js` are the **x402 payment currency**, not a competing coin — NOT a coin-rule violation (consistent with home + analytics). No action required for the coin rule.
+- [P3] Confirm post-purchase cross-wire to `/collection` (the collection page is the receipt home) — surfacing a "View in your collection" link on success would close the loop.
+
+## /marketplace/analytics — pages/marketplace-analytics.html (+ src/marketplace-analytics.js)
+
+Verdict: Needs work (one rendering bug, one unguarded fetch).
+
+- [P1] `pages/marketplace-analytics.html:137,143` — the skeleton placeholders use a literal `${Array.from({length:5}, ...)}` template-literal **inside static HTML**, which is not a JS context. It renders the raw text `${Array.from(...)}` to the user instead of skeleton rows. Fix: replace with five literal `<div class="skeleton-rank skeleton">` elements (as the stat-grid above already does), or inject the skeletons from JS.
+- [P1] `src/marketplace-analytics.js:110-118` — `load()` does `await fetch(...)` then checks `res.ok`, but the call is **not wrapped in try/catch**. A network-layer throw (offline, DNS, CORS) rejects unhandled and leaves the skeletons spinning forever with no error shown. Fix: wrap in try/catch and surface the existing `#an-error` element on throw.
+- Coin handling is correct: `THREE_MINT`/`USDC_MINT` distinguished in `fmtVolume` — good model for the rest of the codebase.
+- [P2] Volume chart `<canvas>` has an `aria-label` but no text/data-table fallback for SR users; consider a visually-hidden summary of the 30-day total.
+
+## /collection — pages/collection.html (+ src/collection.js)
+
+Verdict: Solid (one escaping gap).
+
+- Auth-wall (signed-out), skeleton, per-tab empty states, and error state all designed; tabs are ARIA `tablist`/`tab`/`tabpanel`; cards cross-wire to `/marketplace/agents/:id` and NFT receipts to the chain explorer. `noindex` correct for a private page.
+- [P2] `src/collection.js:28-90` — card HTML interpolates `p.skill`, `p.agent_name`, `p.agent_thumbnail`, `s.agent_id` raw into `innerHTML` with no escaping. Skill/agent names originate from other creators, so a crafted name is a stored-XSS vector when it lands in a buyer's collection. Fix: add an `escapeHtml` helper (as `discover.js`/`gallery.js` have) and wrap all interpolated values.
+
+## /skills — pages/skills.html
+
+Verdict: Solid (intentional redirect).
+
+- This is a thin client redirect: it `location.replace`s to `/marketplace?tab=skills`, preserving `q`/`category`. `noindex`, canonical points at the marketplace. Works as intended. No issues.
+- [P3] Redirect is JS-only (no `<noscript>`/meta-refresh fallback); fine for an authenticated app, but a `<link rel="canonical">` + a one-line "Redirecting…" body would be cleaner for no-JS/bots.
+
+## /community — pages/community.html
+
+Verdict: Solid.
+
+- Static, self-styled, responsive (`@media 640px`), cards with hover, external links carry `rel="noopener noreferrer"`. Links to X, GitHub, `/docs`, `/tutorials`, `/create`, `/bounties`-adjacent involvement — all valid routes. Newsletter handled by `/footer-newsletter.js`.
+- [P2] The "Newsletter" section (`:161-164`) is copy-only with no visible signup form in the section body — the actual input lives in the global footer. A reader who scrolls to the section sees a description and nowhere to act. Fix: either embed the signup field in-section or link/scroll to the footer form.
+- [P2] Card links use `.card-link` with `:hover` underline but no `:focus-visible` style; add a focus ring for keyboard users.
+
+## /characters — public/characters.html (+ src/characters.js)
+
+Verdict: Needs work (stored-XSS risk).
+
+- [P1] `src/characters.js:30-82` — `cardHtml()` interpolates `ch.name`, `ch.description`, `ch.author_name`, `ch.token.symbol`, and `ch.image_url` directly into `innerHTML` with **no escaping**. Character names/descriptions are user-authored, so this is a stored-XSS sink (e.g. a `name` of `<img src=x onerror=...>`). Note `discover.js` and `gallery.js` already escape — this file regressed. Fix: add `escapeHtml`/`escapeAttr` and wrap every interpolated value (including the `image_url` `src` and `alt`).
+- [P2] `src/characters.js:94,109,118` — states are functional but minimal: the empty/error states are a single line of text inside the grid ("No characters found." / "Failed to load characters."). The error has no Retry affordance (unlike discover/gallery). Fix: add a Retry button to the error state and an actionable CTA ("Create a character →") to the cold-empty state.
+- Cards correctly link to `/character/:id` (route confirmed `vercel.json:2421`). `$<symbol>` token chips render runtime token data from the characters feed — runtime-supplied, not hardcoded promotion; acceptable.
+
+## /what-is — pages/what-is.html
+
+Verdict: Solid.
+
+- Strong explainer: semantic sections w/ `aria-labelledby`, FAQ accordion wired with `aria-expanded`/`aria-controls` toggling `.open`, model-viewer hero (`/animations/soldier.glb` — file confirmed present), FAQPage JSON-LD. Every CTA routes to a real page (`/create`, `/brain`, `/overlay-control`, `/studio`, `/play`, `/pay`, `/scan`, `/forge`, `/chat`, `/docs`, `/features`). No mocks, no dead links.
+- [P3] FAQ chevron rotation relies on the `.open` class defined in `what-is.css`; verify that rule exists so the chevron actually animates on expand (cosmetic only).
+
+## /sitemap — public/sitemap/index.html
+
+Verdict: Solid (with a maintenance caveat).
+
+- Hand-curated, sectioned index of every product surface with in-page anchor nav and machine-readable links (`sitemap.xml`, `llms.txt`, `features.json`, `openapi.json`, `changelog`). Good front-door.
+- [P2] The link list is static/hand-maintained, so it will drift from `vite.config.js`/`vercel.json` as routes are added or removed (dead or missing entries over time). Fix/opportunity: generate this list (or a validation test) from `data/pages.json` so the sitemap can't silently go stale. [P3] Spot-check that every listed href still resolves.
+
+---
+
+## Group summary
+
+Top P0/P1 items (no true P0s found in this group):
+
+1. [P1] `src/characters.js:30-82` — unescaped user-authored `name`/`description`/`symbol`/`image_url` interpolated into `innerHTML` = stored-XSS sink. Add escaping (discover/gallery already do).
+2. [P1] `pages/marketplace-analytics.html:137,143` — literal `${Array.from(...)}` template string in static HTML renders as raw text instead of skeleton rows. Replace with literal skeleton divs.
+3. [P1] `src/marketplace-analytics.js:110` — `load()`'s fetch is not in try/catch; a network throw leaves skeletons spinning with no error shown. Wrap and surface `#an-error`.
+4. [P1] `pages/home.html:5562-5567` (`FALLBACK_AGENTS`) and `:4882-4891` (`POOL_FALLBACKS`) — hardcoded fallback avatar arrays shipped to prod; violates the no-fallback-sample-arrays rule. Replace with designed empty/error states.
+5. [P1] `pages/irl.html` — empty `alt` on the agent thumbnail (`:1949`), empty-nearby state communicated by color only (`:1753`), and geolocation/camera-denied paths must render a recoverable card rather than a blank canvas. Harden these states.
+
+Coin rule: clean. No competing-coin promotion in this group; all `USDC` usage is the x402 payment dollar (a runtime rail), and `marketplace-analytics.js` already distinguishes `$THREE` from `USDC` correctly.
diff --git a/docs/audits/02-build.md b/docs/audits/02-build.md
new file mode 100644
index 000000000..8945c8193
--- /dev/null
+++ b/docs/audits/02-build.md
@@ -0,0 +1,169 @@
+# Audit 02 — Build / Create surfaces
+
+Senior-engineer code + UX audit. Routes resolved via `vite.config.js` `fileMap` (~L633-889) and `vercel.json` `routes`. Severity: **P0** broken/hard-rule · **P1** reachable-but-incomplete · **P2** mediocre · **P3** opportunity.
+
+Coin-rule note: USDC / SOL / x402 are payment plumbing and are explicitly allowed. The only flaggable case is a *named foreign token/coin/mint*. None were found on any page in this group — the platform passes the coin rule across all 29 pages.
+
+---
+
+## /start — pages/start.html
+Multi-step agent-creation wizard. Loads `/src/start.js`, real localStorage state + template engine. No hard-rule violations.
+
+- [P2] `src/start.js` (loadState/saveState, ~L65,70,147) — `catch {}` blocks swallow localStorage failures silently. A corrupted/quota-full store leaves the wizard in a broken state with no signal. Fix: log + surface a one-line "couldn't restore your draft" notice.
+- [P2] start.html:1276-1317 — the "earn" step (`#earn-wallet`, `#earn-price`) has inputs but no explicit save affordance/confirmation; users can't tell the values persisted. Fix: add an inline "saved" tick or a Save button wired to the wizard state.
+- [P3] start.html:1069-1086 (`.wz-avatar-card`) — hover state defined (~L182) but no `:focus-visible`; keyboard users can't see the selected method. Fix: add a `:focus-visible` outline using the focus-ring tokens.
+- [P3] start.html — wizard never cross-links to `/forge` (generate-from-text) or `/scan` as alternative avatar sources it actually supports elsewhere. Opportunity to surface them in the avatar-method step.
+
+## /create — pages/create.html
+Creation-method chooser. Loads `/src/create.js`; auth hint via `/api/auth/me`. Links to `/studio`, `/dashboard` verified valid.
+
+- [P2] create.html (inline auth fetch ~L1028-1042) — `/api/auth/me` has no `.catch`; a network failure leaves `window.__authed` undefined and can mis-render the auth hint. Fix: `.catch(() => { window.__authed = false; })`.
+- [P3] create.html:1093+ method cards — clicking a card before `src/create.js` finishes loading is a silent no-op (no loading/disabled affordance during module load). Fix: show a brief disabled/loading state until wired.
+
+## /create-agent — pages/create-agent.html
+Stepper-based agent builder. Loads `/src/create-agent.js`; auth-gated. No coin/data violations.
+
+- [P1] create-agent.html:1542 — module is the only thing that removes `#page-loading`; if `/src/create-agent.js` fails to parse, the loading veil stays forever (dead page, no error). Fix: HTML-side fallback timeout that reveals an error/retry if the veil persists past ~3s.
+- [P2] create-agent.html:1036-1070 step pips — `cursor:pointer` + `data-clickable` but no `role="button"`/`tabindex`/key handler; keyboard users can't step backward. Fix: make pips real `<button>`s or add role+tabindex+Enter/Space.
+- [P2] create-agent.html:1274-1291 — "Add later" avatar-skip toggle gives no confirmation/auto-advance; users may not realize it advances the flow. Fix: add a Continue button or auto-advance with a visible note.
+
+## /create/prompt — pages/create-prompt.html
+Text→avatar prompt entry. Generate button disabled until ≥3 chars; real compose endpoint. Back button has correct `/create` fallback.
+
+- [P2] create-prompt.html:589 — disabled `#generate-btn` only drops to opacity 0.4 on a white button; on light surfaces the disabled state is nearly imperceptible. Fix: add `cursor:not-allowed` + a stronger disabled treatment.
+- [P3] create-prompt.html:610 `#compose-error` — empty `role="alert"` box with no `aria-live` and no resting hint; first error may not be announced. Fix: add `aria-live="polite"`.
+
+## /create/selfie — pages/create-selfie.html
+Selfie→avatar capture/build pipeline (also the target of the `/scan` redirect). Camera + provider BYOK + real build pipeline.
+
+- [P1] create-selfie.html (~L2077-2078, 2208, 2233) — `catch (_) {}` swallows avatar-fetch and name/visibility PATCH failures. A failed save leaves the viewer stuck "loading" or silently discards the user's edit. Fix: log + show a recoverable toast ("Couldn't save — try again").
+- [P2] create-selfie.html:1322-1325 — `.unsupported` (no-camera) message only appears after the module evaluates; if the module fails to load the user sees a blank stage. Fix: a `<noscript>`/inline pre-module camera-capability check.
+- [P3] create-selfie.html (BYOK reconstruct path ~L1973-1982) — BYOK selfie form shows without an explicit signed-in check even though selfies count against quota. Fix: gate behind auth like `/create/prompt` does.
+
+## /forge — pages/forge.html
+Text/image→3D generator. Loads `/src/forge.js` + prompt-studio/enhance/refine modules. **Progress bar verified honest** — `honestFill()` uses a real elapsed-time asymptotic curve (the L1326 "never faked" comment is accurate). `$THREE`-holder high-quality tier is correctly gated. No violations.
+
+- [P1] forge.html:851-868 — per-view (multi-image) upload slots have a `vs-retry` button but minimal feedback on a failed view upload; error recovery is thin. Fix: explicit per-slot error text + clear retry affordance.
+- [P3] forge.html — no nav shortcuts to sibling tools `/pose`, `/scan`, `/compose` from the forge surface; forge output is a natural feeder into all three. Add post-generate "next step" links.
+- [P3] forge.html:787 `.sketch-grid` `minmax(140px,240px)` — can crowd on sub-300px viewports. Minor; cap columns at 1 below ~320px.
+
+## /scene — pages/scene.html
+Three.js r184 scene editor (vendored CodeMirror/tern/draco toolchain). Loads `/src/scene-studio/main.js` (verified present). Dark-locked editor, real application. Clean.
+
+- [P3] scene.html — `#studio-app` is an empty mount with no inline fallback; if `main.js` 404s the user gets a blank `role="application"` void with no message. Fix: a noscript/skeleton placeholder inside the mount.
+
+## /compose — pages/compose.html
+Scene/outfit composer. Loads `/src/scene-compose.js`; real save/export/load handlers, loader overlay, help panel with keyboard shortcuts. Links to `/` and `/forge` valid. Responsive media queries present.
+
+- [P3] compose.html — no cross-links to `/pose`, `/scan`, or `/dashboard`; composer output (a dressed avatar) is a natural hand-off to the animation studio. Add a "send to Pose" affordance.
+
+## /pose — pages/pose.html
+Animation/IK studio. Loads `/src/pose-studio.js`; FK/IK mode group uses `aria-pressed`, searchable joint picker, `:focus-visible` outlines present. Responsive grid (900/1100px breakpoints). Clean build.
+
+- [P3] pose.html — header has no discovery links to `/forge`, `/scan`, `/compose`; the studio is a silo. Add sibling-tool links.
+
+## /app — pages/app.html
+Main 3D viewer / agent home. Loads `/src/app.js`. Exemplary accessibility: skip-link, scoped `:focus-visible` rings, `prefers-reduced-motion` handling, full ARIA on nav/menus/dock. All nav routes (`/chat`, `/profile`, `/settings`, `/register`, `/dashboard`, `/deploy`) verified valid. Reference quality for this group.
+
+- [P3] app.html:220-227 (`open-in-composer-btn`) / 228-236 (`view-public-profile-btn`) — these `<a>` have no `href` in markup (set at runtime by app.js, hidden by default). Correct, but if app.js fails they'd be inert anchors. Acceptable; note only.
+
+## /validation — public/validation/index.html
+glTF Khronos validator + performance inspector. Loads `ValidationPage`/`ValidationDashboard`. Loading/error/empty states present; ARIA tablist; sample models from Khronos CDN (real, not mock fixtures). Links `/gallery`, `/marketplace` valid. Clean.
+
+- (no P0/P1/P2 found)
+
+## /studio — public/studio/index.html
+Widget builder. Loads `studio.js`; `#generate-btn`/`#save-draft-btn` wired to real `save()`. `DEMO_WIDGET_IDS` map (studio.js ~L79-89) is **not fake data** — it points the demo avatar at real baked fixtures served by `/api/widgets/_demo-fixtures.js`, so the demo emits a genuinely embeddable URL without a DB row. Loading/error(retry)/empty states present; responsive (1280/1100/640/400px); ARIA throughout. Clean.
+
+- (no P0/P1/P2 found)
+
+## /hydrate — public/hydrate/index.html
+On-chain agent importer (ERC-8004 / Solana → attach 3D body). Inline module hits real `/api/erc8004/hydrate` and `/api/erc8004/import`; auth, loading, empty, and error (`showAlert`) states all designed. Links `/dashboard`, `/marketplace`, `/deploy` valid.
+
+- [P2] hydrate/index.html:315 — `#loadingState` has no `role="status"`/`aria-live`; the "Fetching your agents…" transition is silent to screen readers. Fix: add `role="status" aria-live="polite"`.
+- [P2] hydrate/index.html:304 — `#alert` container lacks `role="alert"`; import errors aren't announced. Fix: add `role="alert"`.
+
+## /threews/claim — pages/threews-claim.html
+`.threews.sol` SNS subdomain claim + pay-by-name enable. Routed `vercel.json:2465` → `/threews-claim.html` (built from `pages/threews-claim.html`). Real availability check + CSRF-protected POST to `/api/threews/subdomain` + on-chain tx link. Error handling present. (.threews.sol is a name service, not a coin — no violation.)
+
+- [P2] threews-claim.html:193 — `#tw-status` (availability/result) has no `aria-live`; results are invisible to screen readers. Fix: `role="status" aria-live="polite"`.
+- [P2] threews-claim.html:190 — label/help text not associated via `aria-describedby`. Fix: add `aria-describedby` on the input pointing at the hint.
+
+## /agent/new — pages/agent-edit.html
+Full agent editor (persona / outfit / voice / skills / monetization / publish). Routed `vite.config.js:876`. Loads `/src/agent-edit.js`; tab persona/publish saves wired; auth-redirect on 401; draft auto-creation; `#loading` (`aria-live`) + `#error` (`role="alert"`) states; skip-link; tablist ARIA; responsive at 800px. USDC = price plumbing only. Clean.
+
+- [P3] agent-edit.html — strong page; consider a confirm-before-leave guard on unsaved persona/skill edits (multi-tab form, easy to lose work). Opportunity only.
+
+## /artifact — public/artifact/index.html
+Claude.ai artifact bundler (inlines GLB + three.js into a self-contained HTML). Inline module → real `/api/artifact`; loading/error/empty/success states; size-budget + CSP-compliance validation; copy-url/html/open handlers all wired; responsive at 880px.
+
+- [P2] artifact/index.html:532 — `#previewOverlay` (status/error host) has no `role="status"`/`aria-live`; generation progress/errors aren't announced. Fix: add `role="status" aria-live="polite"`.
+
+## /widgets — public/widgets-gallery/index.html
+Embeddable-widget showcase. Loads `/widgets-gallery/gallery.js`, which fetches real `/widgets-gallery/showcase.json` with skeleton loaders + an error card on failure. Posters from real `/api/widgets/<id>/og`. CTAs to `/studio`, `/docs/widgets` valid. Clean build.
+
+- [P3] widgets-gallery/index.html (`#widget-count`) — hero hardcodes "8 widget types" while the grid count comes from `showcase.json`; the two can drift. Fix: set `#widget-count` from `showcase.widgets.length` after fetch.
+
+---
+
+# Marketing pages (/features/*)
+
+These are static marketing pages. Audited for dead CTAs, broken links, and over-claiming. **Route-verification note:** several link-related P0s reported during sweep were *false positives* — `/embed.html`, `/community`, `/legal/privacy`, `/legal/tos` all resolve (built from `pages/embed.html`, `pages/community.html`, and `vercel.json:3338/3343`). They are NOT broken. Verified genuine breaks below.
+
+## /features — pages/features.html
+Feature index. Coin rule passes (only `$THREE` named, L966). FAQ/accordions use `aria-expanded`.
+
+- [P1] features.html:1058 **and** 1266 — `href="/ibm/galaxy"` ("Explore the IBM suite" / footer "IBM · watsonx.ai"). **No route in vercel.json or vite.config and no file on disk** (only `/galaxy`, `/ibm/x402-demo` exist). Dead link. Fix: point at `/galaxy` or the real IBM landing, or remove.
+- [P2] features.html:1313-1398 — animation-showcase `.feat-anim-pill` buttons toggle an active class but have no `aria-label` and no Enter/Space key handler; keyboard/SR users can't operate or perceive the selection. Fix: add `aria-label` + keydown handling (or rely on native button activation).
+- [P3] features.html:460/473 — card titled "Widget Studio" but its CTA reads "Open Embed Editor" (links to `/embed.html`, which is valid). Naming mismatch. Fix: unify to "Open Studio".
+
+## /features/ar — pages/features/ar.html
+- [P2] ar.html:334 and 451 — `href="/docs/ar"` ("AR docs"). `/docs/<slug>` routes to the docs SPA (`vercel.json:2638`) but there is no `ar` doc id, so this lands on a soft-404 inside docs. Fix: link to an existing doc (e.g. `/docs/tutorials/view-in-ar`, which exists) or the docs index.
+- [P3] ar.html:335-336 — `/docs/tutorials/view-in-ar` and `/docs/web-component`: the tutorial markdown exists (`docs/tutorials/view-in-ar.md`); confirm the docs SPA renders that slug. Low risk; verify in browser.
+
+## /features/forge — pages/features/forge.html
+Cross-link to `/features/scan` valid; describes the real `/forge` tool accurately. Clean.
+- (no P0/P1 found)
+
+## /features/scan — pages/features/scan.html
+Describes the selfie→3D scan flow (`/scan` → `/create/selfie`). Accurate. Clean.
+- (no P0/P1 found)
+
+## /features/play — pages/features/play.html
+Market-tied 3D worlds. Copy references pump.fun communities (the platform's launch context, runtime data — allowed). Accurate to `/play`. Clean.
+- (no P0/P1 found)
+
+## /features/walk — pages/features/walk.html
+Avatar walk/embed feature. Maps to real `/walk` + embed. Clean.
+- (no P0/P1 found)
+
+## /features/studio — pages/features/studio.html
+- [P2] studio.html:243 — FAQ copy says "use the **/agent-embed** route with ?id=your-agent-id". Bare `/agent-embed` is **not** routed (only `/agent/:id/embed` → `agent-embed.html`); the instruction sends users to a path that won't resolve. Fix: correct the copy to the real embed pattern (`/agent/<id>/embed` or the `<script>`+`<agent-3d>` snippet).
+- [P3] studio.html — paid-skill/x402 USDC copy is accurate; fine.
+
+## /features/marketplace — pages/features/marketplace.html
+Accurate description of paid-skill marketplace; USDC = plumbing. Clean.
+- [P3] marketplace.html:232-249 — the "what the marketplace contains" cards all reuse the same `◰` glyph; visually undifferentiated. Fix: distinct glyph per card.
+
+## /features/agent-exchange — pages/features/agent-exchange.html
+Two agents trading intel for real USDC via x402. Strong, accurate copy; FAQ regions wired. USDC = plumbing. Clean.
+- (no P0/P1 found)
+
+## /features/deploy — pages/features/deploy.html
+On-chain agent-identity deploy. `/discover` link valid.
+- [P2] deploy.html (L115/163/234/252) — repeatedly brands the schema "ERC-8004" while the implementation is Solana/Metaplex Core; ERC-8004 is an Ethereum standard name. Misleading terminology. Fix: say "ERC-8004-style identity schema on Solana (Metaplex Core)".
+
+---
+
+## Group summary
+
+**Tally:** P0 = 0 · P1 = 5 · P2 = 13 · P3 = 14. Coin rule passes on all 29 pages; no mocks/fake-loaders/stubs/TODOs shipped; forge progress bar verified honest.
+
+Top **P1** (reachable but incomplete) — fix first:
+1. **features.html:1058 & 1266** — `/ibm/galaxy` is a dead link (no route, no file). User-facing 404 from the homepage feature grid.
+2. **create-agent.html:1542** — `#page-loading` veil never clears if the module fails to parse → permanently dead page with no error path.
+3. **create-selfie.html:~2077/2208/2233** — silent `catch {}` on avatar fetch + name/visibility saves → stuck viewer / lost edits with no recovery.
+4. **forge.html:851-868** — multi-view upload slots have thin/unclear error recovery on a failed view.
+5. **create.html ~L1028** — uncaught `/api/auth/me` failure can mis-render the auth hint.
+
+Most impactful **P2** themes: missing `aria-live`/`role=status` on async status regions (hydrate, threews-claim, artifact, features anim pills); misleading marketing copy (deploy "ERC-8004" on Solana; studio `/agent-embed` route that doesn't resolve; ar `/docs/ar` soft-404). No hard-rule (P0) issues anywhere in the group.
diff --git a/docs/audits/03-crypto-trading.md b/docs/audits/03-crypto-trading.md
new file mode 100644
index 000000000..13ea1c432
--- /dev/null
+++ b/docs/audits/03-crypto-trading.md
@@ -0,0 +1,150 @@
+# Audit 03 — Trading & Market Intelligence
+
+Scope: `/oracle`, `/activity`, `/leaderboard`, `/trending`, `/trades`, `/claim-wallet`, `/smart-money`, `/radar`, `/coin-intel`, `/watchlist`, `/pump-dashboard`, `/pump-live`, `/pumpfun`, `/pump-visualizer`, `/constellation`, `/strategy-lab`
+
+Auditor: crypto-trading group. Date: 2026-06-18.
+
+Severity calibration note: many of these pages consume live pump.fun SSE/WS feeds. Missing reconnect-backoff caps and unbounded caches are **robustness/quality** issues (P1/P2), not broken-page or hard-rule violations (P0). True P0 is reserved for broken pages, dead primary CTAs, and the coin-rule. **No coin-rule violations were found on any page in this group** — the only hardcoded mint anywhere is `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) at pump-dashboard.html:1748, used only as a default chart selection. All other coins are runtime-fetched from `/api/*` or the live feed.
+
+---
+
+## /oracle — pages/oracle.html (+ src/oracle.js)
+Verdict: Solid live page. Real feed/stream/leaderboard wiring, designed states. Accessibility gaps on tables/coin buttons.
+
+- [P1] src/oracle.js coin `<button>` (~:459/487) has only `data-mint`, no `aria-label` — screen readers announce nothing. Add `aria-label="View {symbol}"`.
+- [P1] oracle.html activity/feed table headers (~:337–338, 376–377) lack `scope="col"`. Add `scope` for WCAG.
+- [P1] src/oracle.js 3D-graph (~:342) and wallet-leaderboard (~:578) fetch failures render an error div with no retry control — only fix is a full page refresh. Add a retry button like the feed view has.
+- [P2] oracle.html mint-search input (~:548) `min-width:230px` can overflow below ~280px viewports. Allow it to shrink.
+- [P2] src/oracle.js feed empty state (~:365) collapses both "warming up" and "filter too strict" into one ambiguous message. Distinguish them.
+- [P3] Coin cards open an inline drawer but never link out to `/coin-intel` / `/coin3d`. Add a "full profile" link for deeper discovery.
+- Endpoints (real): `/api/oracle/feed`, `/api/oracle/stream` (SSE), `/api/oracle/categories`, `/api/oracle/wallet`, `/api/oracle/leaderboard`, `/api/oracle/activity`, `/api/oracle/search`. Coin rule: clean.
+
+## /activity — pages/activity.html
+Verdict: Well-built feed with all three states designed. Minor a11y + stale-data ambiguity.
+
+- [P1] Fetch error (~:353–354, 381–388) has no retry affordance; on a non-reset error the previous data silently remains, so users can't tell stale from loading. Add retry + a stale indicator.
+- [P1] Outcome edge bar (CSS ~:125) conveys win/loss/open by color only — no text/ARIA equivalent. Add `aria-label` on the row.
+- [P2] Load-more button is hidden while loading (~:375), which reads as "end of list." Show a loading affordance instead.
+- Endpoints (real): `/api/oracle/activity`, `/api/oracle/action-stream` (SSE). Cross-wiring good: agent→`/agents/{id}`, coin→`/oracle?mint=`, copy→`/trader/{id}`. Coin rule: clean.
+
+## /leaderboard — pages/leaderboard.html (+ src/leaderboard.js)
+Verdict: Two real leaderboards (sniper + oracle), full states, good tablist ARIA. Stale-refresh and row-label gaps.
+
+- [P1] src/leaderboard.js refresh failure (~:155–158) keeps the last good board but never signals staleness; error state only shows on first load. Add a stale/"reconnecting" badge.
+- [P1] `.lb-row` and `.lb-oracle-row` lack `aria-label` — screen readers can't identify which trader a row is. Add labels.
+- [P1] Oracle leaderboard agent rows (~:307) link only to `/trader/{id}` copy panel, not to the agent's full `/agents/{id}` profile. Add the profile link.
+- Endpoints (real): `/api/sniper/leaderboard`, `/api/oracle/leaderboard`. Routes `/play/arena`, `/create-agent`, `/oracle` all exist. Coin rule: clean.
+
+## /trending — pages/trending.html
+Verdict: Real ranked feed across windows, designed states. Thin error recovery and link a11y.
+
+- [P1] Fetch error (~:384–388) clears both lists with no explicit retry button on the rows; user must reload. The `#agentRetry`/`#coinRetry` controls exist but are minimal — make them prominent.
+- [P1] `.tr-row` anchors (~:140–151) have no `aria-label`; link text doesn't convey rank/name/metric. Add labels.
+- [P2] `agent_url`/`coin_url` (~:309, 339) are used unvalidated from the API; a null/malformed value yields a dead link. Guard for null.
+- Endpoint (real): `/api/trending?window=&limit=`. Coin rule: clean.
+
+## /trades — pages/trades.html (+ src/trades.js)
+Verdict: Clean live trade feed, all states designed, good ARIA (`role="feed"`, `aria-busy`). Production-ready.
+
+- [P2] Time-window segment uses `role="tablist"`/`role="tab"` but keyboard (Enter/Space/arrow) handling lives in src/trades.js and was not confirmed wired. Verify arrow-key tab navigation.
+- Endpoint (real): `/api/trades/feed`. Cross-wiring: coin→`/oracle?mint=`, trader→`/trader/{id}` (both routes exist). Coin rule: clean.
+
+## /claim-wallet — pages/claim-wallet.html (+ src/claim-wallet.js)
+Verdict: Real wallet-preview page with auth gate and good states. The actual "claim" is deferred to `/login`, which is outside this file — flag to verify the round-trip completes.
+
+- [P1] The page only does GETs: `/api/auth/me` (:17) and `/api/traders/preview?wallet=` (:89). The claim itself is a redirect to `/login?next=/claim-wallet?wallet=` (:183) — there is no claim POST in this codepath. Verify `/login` actually publishes the claim and returns to a claimed state (the `cw-cta-claimed` branch at ~:187 implies it does, but the POST is unseen here).
+- States loading/empty("wallet not yet indexed")/error all present and actionable. Routes `/leaderboard`, `/trader/{wallet}` exist. Coin rule: clean.
+
+## /smart-money — pages/smart-money.html (+ src/radar.js shared helpers)
+Verdict: Real smart-money feed + wallet leaderboard with drawer, Oracle enrichment. Semantic-table and silent-refresh gaps.
+
+- [P1] Refresh/poll failure silently keeps prior coins with no error indicator — looks live but is stale. Surface a recoverable error/stale state.
+- [P2] Wallet leaderboard is a `<div>` grid (`.lhead`/`.lrow`, ~:209–212), not a semantic `<table>` and has no `role="grid"`/headers — screen readers can't parse the columns. Convert to `<table>` or add grid roles.
+- [P2] Leaderboard grid at the 620px breakpoint still shows 4 numeric columns; ≤400px squeezes. Add a single-column layout below ~400px.
+- Endpoints (real): `/api/pump/smart-money`, `/api/oracle/coin?mint=` (enrichment). Drawer links to `/trader/{wallet}`, `/oracle?mint=`. Coin rule: clean.
+
+## /radar — pages/radar.html (thin shell → src/radar.js)
+Verdict: Best-in-group state handling. Thin 92-line shell mounts a real, fully-wired module. No P0/P1.
+
+- 4 distinct states (skeleton, empty "radar is clear", error w/ retry, no-match w/ reset). Polls `/api/pump/coin-intel` every 12s; pauses on tab-hidden. Drawer has Escape + focus trap.
+- [P3] `_oracleCache` Map (shared radar.js, ~:1484) grows unbounded across a long session. Add a TTL/cap. (Shared with pump-visualizer — see below.)
+- Endpoint (real): `/api/pump/coin-intel`. Links `/launches`, `/oracle?mint=`, `/pump-live` exist. Coin rule: clean.
+
+## /coin-intel — pages/coin-intel.html
+Verdict: Strong coin-feed page with drawer detail, Oracle conviction, watchlist persistence, full a11y. Note: this is a *feed* page, not a `?mint=` profile — it opens detail in a drawer via API, which is fine.
+
+- [P3] Drawer is `position:fixed; max-width:94vw` (~:204) — fine on standard screens; could widen on ultra-wide.
+- Endpoints (real): `/api/pump/intel` (15s refresh), `/api/oracle/coin?mint=`. Drawer cross-links: `/coin3d?mint=`, `/oracle?mint=`, `/sniper`, pump.fun/Solscan — all routes verified to exist. Watchlist shares `ld_watchlist` localStorage key with /watchlist. Coin rule: clean.
+
+## /watchlist — pages/watchlist.html (thin shell → src/watchlist.js)
+Verdict: Clean thin shell, real coin-status cards, Oracle conviction batch, cross-tab sync. No P0/P1.
+
+- [P2] No back-link from an opened Oracle coin detail to the watchlist — minor friction if opened in a new tab.
+- Empty/loading/error states present. Mounts `coin-status-card.js`; shares `ld_watchlist` with coin-intel; `storage` event sync. Link `/launches` exists. Coin rule: clean.
+
+## /constellation — pages/constellation.html (thin shell → src/constellation/main.js)
+Verdict: Real Three.js token galaxy over live trending + Granite embeddings, with graceful degradation. One dead nav link.
+
+- [P1] Badge link and degradation notices point to **`/ibm/galaxy`** (constellation.html:112; main.js:393, :492) — that route is **not in vercel.json** (only `/ibm/x402-demo` exists; `/galaxy` exists but not `/ibm/galaxy`). Dead link. Repoint to `/galaxy` or add the `/ibm/galaxy` rewrite.
+- [P1] If watsonx/Granite isn't configured, semantic clustering is lost and the view falls back to trending-rank layout (main.js:491–498). Degradation is clear and intentional, but it is a silent feature loss on misconfigured deploys — ensure prod has `WATSONX_API_KEY`.
+- States: loading overlay, empty ("no trending tokens"), WebGL-missing fatal, degraded-config notice — all designed. Endpoints (real): `/api/pump/trending`, `/api/watsonx/embed`, `/api/brain/chat` (provider ibm-granite). Coin rule: clean.
+
+## /strategy-lab — public/strategy-lab.html
+Verdict: Real strategy validate/backtest/run against live MCP on-chain data — NOT a fake simulator. No Math.random/setTimeout fakery. Production-ready.
+
+- [P3] Abort-all uses native `confirm()` (~:447) rather than an in-app modal — dated UX.
+- Endpoints (real): `/api/agents`, `/api/agents/{id}/solana`, `/api/pump/strategy-validate`, `/api/pump/strategy-backtest` (real MCP data), `/api/pump/strategy-run`, `/api/pump/portfolio`, `/api/pump/strategy-close-all`. States: initial/validation-issues/running-log/results all present. Coin rule: clean (all coins from backtest response).
+
+## /pump-dashboard — pages/pump-dashboard.html (4894 lines)
+Verdict: Large, real dashboard on the PumpPortal firehose + many `/api/*` panels. No broken-page P0; robustness gaps around feed-failure surfacing and reconnect caps.
+
+- [P1] PumpPortal WS (`wss://pumpportal.fun/api/data`, ~:1747) reconnect has no visible max-backoff cap; on a sustained outage the page can retry forever with no permanent error state. Add a cap + dead-feed indicator.
+- [P1] No error overlay if `/api/pump/channel-feed` (~:2331) fails — the realtime panel shows "Waiting for realtime feed" indefinitely. Add a fetch-failure state.
+- [P1] `/api/agents/featured` (~:1989) and token-logo `<img>` (~:2104) have no error handler/`onerror` fallback — broken-spinner / broken-image on failure.
+- [P2] `THREE_MINT` (:1748) is the only hardcoded mint and is correct ($THREE default chart selection) — noted, not a violation.
+- [P2] RPC URL migration to `/api/solana-rpc` (~:1754–1759) swallows failures silently.
+- Coin rule: clean ($THREE only; token decimals for USDC/USDT/wSOL are infra, not product data). Sidebar `/dashboard/tokens` link verified to exist.
+
+## /pump-live — pages/pump-live.html (888 lines)
+Verdict: Real WS live feed with correct reconnect cap and a manual-retry error state. Solid; minor stale-price and badge gaps.
+
+- [P1] After `MAX_RECONNECT_ATTEMPTS` (8) the page shows a permanent error+retry (~:565–586) — correct, but the dead state reads like a transient blip. Make the "feed stopped" state more explicit.
+- [P1] SOL price from `/api/pump/helius-stats` is fire-and-forget; until it arrives market caps render in SOL and may look stale (~:397–416). Add a "price loading" hint.
+- [P2] `/api/oracle/batch` non-OK is swallowed (~:829) — conviction badges silently stay empty. Log/retry.
+- Endpoints (real): PumpPortal WS, `/api/pump/helius-stats`, `/api/img`, `/api/oracle/batch`. Coin rule: clean.
+
+## /pumpfun — public/pumpfun.html (1757 lines)
+Verdict: Real agent feed (SSE) + avatar/agent config + 3D viewer. EventSource recovery and picker-loading gaps.
+
+- [P1] `/api/agents/pumpfun-feed` EventSource `onerror` (~:1281) only reconnects on `readyState===CLOSED`; a stuck `CONNECTING` state never recovers and never surfaces an error — feed can hang blank. Add a connection timeout + error state.
+- [P1] Avatar picker fetches `/api/avatars/public` and `/api/avatars` on tab click (~:866–914) with no skeleton/loading — empty grid until data arrives. Add a loading state.
+- [P2] Agent config saved to `localStorage` (~:719) with no shape validation; corrupted config fails silently on load (~:737). Validate on read.
+- [P2] Share-link copy (~:1673) concatenates `pathname+search` without stripping query params (e.g. a `?asset=` value) — possible over-share. Canonicalize the shared URL.
+- [P3] 3D viewer auto-loops `repetitions: Infinity` (~:1093) with no pause control; on viewer load failure user must refresh.
+- Endpoints (real): `/api/agents/pumpfun-feed` (SSE), `/api/avatars`, `/api/avatars/public`. Coin rule: clean.
+
+## /pump-visualizer — pages/pump-visualizer.html (2509 lines)
+Verdict: Heavy WebGL visualizer over multiple live feeds. Real data, but the most robustness debt in the group (reconnect, GPU fallback, unbounded cache, external avatar dep).
+
+- [P1] SSE reconnect uses a fixed 1.2s delay (~:2233–2236) with no exponential backoff or permanent error state — sustained PumpPortal outage spins "Connecting…" forever. Add backoff + dead state.
+- [P1] WebGL renderer requests `powerPreference:'high-performance'` (~:889–893) with no feature-detect or 2D fallback — low-end/mobile devices may get a blank canvas. Add a fallback.
+- [P1] `_oracleCache` Map (~:1484) grows unbounded — memory creep over a long session. Add TTL/cap.
+- [P1] Avatar fallback uses external `dicebear.com` (~:1396) with no further fallback; if blocked, avatars render blank. Use the canvas fallback the trending view already has (~:988–1008).
+- [P2] Feed dedup set drops oldest 1024 when >4096 (~:2100–2103) — by design, but the same token can re-enter the feed and confuse users.
+- [P3] Canvas size forced `100% !important` (~:43–46) blocks CSS responsive rescaling without a JS reboot.
+- Double-click and "Open in 3D" go to `/coin3d?mint=` (~:1322, :1432) — route verified to exist; add a 404 guard for safety (P3).
+- Endpoints (real): trending/live-feed/migrations/stats `/api/*` + SSE. Coin rule: clean.
+
+---
+
+## Group summary
+
+No P0s. The two most material findings are the **dead `/ibm/galaxy` nav link on /constellation** (P1 — route absent from vercel.json) and the **unverified claim POST on /claim-wallet** (P1 — the claim is deferred to `/login` and must be confirmed to complete the round-trip). The coin rule is fully respected across all 16 pages — the only hardcoded mint anywhere is `$THREE`, used as a default chart selection on /pump-dashboard.
+
+Dominant P1 themes (reachable but incomplete):
+1. **Feed-failure UX.** Multiple live feeds (oracle graph, smart-money, pump-dashboard channel-feed, pumpfun SSE, pump-visualizer SSE) silently keep stale data or spin forever instead of surfacing a recoverable error/stale state with retry.
+2. **Reconnect robustness.** pump-dashboard and pump-visualizer lack reconnect-backoff caps / permanent dead-feed states (pump-live does this correctly — use it as the pattern).
+3. **Table/row accessibility.** oracle, activity, leaderboard, trending, smart-money have `<div>` grids or label-less rows/buttons missing `aria-label`/`scope`/semantic table roles.
+4. **External/unbounded deps.** pump-visualizer's dicebear avatar fallback and unbounded `_oracleCache` (shared with /radar) need a local fallback + TTL.
+
+Best-in-group references to copy: **/radar** (four designed states, tab-pause, focus trap), **/trades** (`role="feed"`+`aria-busy`), **/strategy-lab** (real MCP backtest, no fakery), **/pump-live** (correct reconnect cap + manual-retry dead state).
diff --git a/docs/audits/04-crypto-x402.md b/docs/audits/04-crypto-x402.md
new file mode 100644
index 000000000..905f56959
--- /dev/null
+++ b/docs/audits/04-crypto-x402.md
@@ -0,0 +1,157 @@
+# Audit 04 — Crypto / x402 / Payments / Agent-Economy demos
+
+Scope: `/pay /bazaar /arbitrage /providers /ibm/x402-demo /fact-checker /tutor /unstoppable /shopper /forever /club /agent-exchange /agent-economy /agent-trade /three /three-live`
+
+Date: 2026-06-18. Read-only audit — no files changed. Severity: **P0** broken / hard-rule · **P1** reachable-but-incomplete · **P2** mediocre · **P3** opportunity.
+
+**Coin rule: PASS across all 16 pages.** No promoted token other than $THREE is hardcoded anywhere. `/three` (`pages/three.html:24`, `src/three-economy.js:24`) and `/three-live` (`pages/three-live.html:257`) reference only the canonical mint `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. x402 settles in USDC (and `/forever` in BTC via ordinalsbot) — stablecoin/settlement rails, not promoted coins, which is allowed. The standard Solana/Base/BSC USDC mint addresses hardcoded in `/pay` and `/bazaar` are correct canonical USDC addresses, not a coin-rule violation.
+
+---
+
+## /pay — public/pay/index.html
+Verdict: Real x402 payment flows (Solana + Base + BSC) to `/api/mcp` with live `X-PAYMENT` headers; no mocks. Solid but a few unhandled async edges.
+
+- [P1] public/pay/index.html:~1751 — SSE stream from `/api/x402-pay` has no `AbortController`; if the facilitator closes mid-stream the reader is left half-read. Fix: wrap in AbortController, abort on unmount/error.
+- [P1] public/pay/index.html:~2048 — `waitForReceipt` polls BSC RPC every 1.5s for 60s with no `Retry-After` / backoff; hammers RPC on a slow tx. Fix: exponential backoff, honor Retry-After.
+- [P2] public/pay/index.html:~1213 — Phantom balance fetch fails silently (label falls back to showing the address). Fix: surface "couldn't read balance" inline.
+- [P2] public/pay/index.html:~1072 — No wallet-disconnect handling between render and sign; misleading "Phantom not found" vs "disconnected". Fix: distinguish the two states.
+- [P3] public/pay/index.html — Demo agent wallet not labeled as shared/demo; users may think they can fund it. Fix: add a "shared demo wallet" note.
+
+## /bazaar — public/bazaar.html (+ bazaar.js)
+Verdict: Real discovery (`/api/bazaar/list`, `/api/bazaar/search`) + x402.js drop-in pay modal. Wired, cross-linked.
+
+- [P1] public/bazaar.js:~174 — On `fetch()` network failure (vs `r.ok===false`) the loading spinner stays stuck; only the non-ok branch renders an error. Fix: catch network errors → error state.
+- [P2] public/bazaar.html:491 — `<script src="/x402.js">` is the only thing wiring "Try it"; if it 404s the buttons silently no-op (`window.X402` undefined) until clicked. Fix: feature-detect and disable/explain.
+- [P2] public/bazaar.js:~477 — `error.error` rendered into `ctxEl.innerHTML` unescaped on the context-fetch failure path. Fix: escapeHtml before insert.
+- [P2] public/bazaar.js:~385 — "Try it" result has no `aria-live` announcement. Fix: add live region.
+
+## /arbitrage — public/arbitrage.html (+ arbitrage.js)
+Verdict: Real `/api/bazaar/arbitrage` feed, cross-links to bazaar + providers, x402.js pay-cheapest.
+
+- [P1] public/arbitrage.js:~209 — Dynamic `/x402.js` loader: on 404 the promise rejects silently, button re-enables but user never told why nothing happened. Fix: show "payment modal failed to load" on the button.
+- [P1] public/arbitrage.js:~226 — No timeout on the `/api/bazaar/arbitrage` fetch; if backend hangs the skeleton never resolves. Fix: 15–30s AbortSignal.timeout.
+- [P2] public/arbitrage.html:~110 — Grid `minmax(340px,1fr)` forces horizontal scroll below 340px. Fix: lower the min to ~300px / single column.
+
+## /providers — public/providers.html (+ providers.js)
+Verdict: Real `/api/bazaar/providers` directory + profile view; XSS-safe (escapeHtml on host params).
+
+- [P1] public/providers.js:~70 — On directory fetch failure the 6 skeleton cards are never replaced — users see grey boxes forever. Fix: render an error state on catch.
+- [P2] public/providers.js:~86 — Sort falls back to `Infinity` when `medianPriceAtomic` is missing (stable but sloppy). Fix: explicit missing-price fallback.
+- [P2] public/providers.html:~78 — No sticky header on long listings; category/network bars detach from provider name on deep scroll.
+
+## /ibm/x402-demo — pages/ibm/x402-demo.html
+Verdict: Strong. Real `/api/x402/forge` + `/api/x402/symbol-availability`, live 402-challenge preview, polls free `/api/forge`, full error states. Footer (line ~715) explicitly states $THREE is the only coin issued.
+
+- [P1] pages/ibm/x402-demo.html:~1162 — `pollForWallet()` re-checks 8×350ms but never early-exits when a wallet is detected mid-poll; `eip6963:announceProvider` listener (~1168) only reachable after first poll. Fix: resolve immediately on detect / register the listener up front.
+- [P2] pages/ibm/x402-demo.html:~1233 — If `model-viewer` script fails to load, the result panel renders an empty `<model-viewer>` that never upgrades (blank box). Fix: check `customElements.get('model-viewer')`, fall back to a "Download GLB" link.
+- [P2] pages/ibm/x402-demo.html:~1476 — Forge poll caps at 150 tries (~6.5 min) then shows "still working" with no recourse. Fix: add a "continue in Forge" link.
+- [P3] pages/ibm/x402-demo.html — Two large inline `<script>` blocks (~725–1574); would be more maintainable extracted to `/src/`.
+
+## /fact-checker — pages/fact-checker.html (+ src/fact-checker-app.js)
+Verdict: Real x402 `/api/x402/fact-check` POST with live 402 challenge + USDC price extraction; verdict/source/cost/attestation states all present. One hard-rule violation in the loading UX.
+
+- [P1] src/fact-checker-app.js:257–284 — **Fake progress**: `LOADING_STAGES` ("Generating search queries…" → … → "Computing verdict…") are cycled by a `setInterval` every 2000ms unconnected to real backend progress. Violates CLAUDE.md "no setTimeout fake progress". Fix: drive stages from real server signal (SSE) or use a single honest "Checking…" indicator.
+- [P1] pages/fact-checker.html:~1023 — Payment panel default "$0.10 per check" is static; if the 402 challenge parse fails (try/catch swallows it, app.js:~158) the user sees a price that may not match server. Fix: show "price unavailable" rather than a stale hardcoded number.
+- [P1] pages/fact-checker.html — Minimal ARIA: form textarea/radios lack labels, submit lacks `aria-busy`, result panel not `aria-live`. Fix: label controls, mark result `aria-live="polite"`.
+- [P2] src/fact-checker-app.js:~217 — Errors surface raw `HTTP <status>` to users. Fix: map 429/500/502 to friendly copy.
+- [P2] pages/fact-checker.html:963–977 — Example claims hardcoded in HTML (acceptable as static UX seed, but can't be updated without a redeploy).
+- [P2] pages/fact-checker.html:~88 — Below 480px, 32px side padding leaves ~296px content; source cards wrap aggressively. Fix: reduce padding at a 480px breakpoint.
+
+## /tutor — public/tutor.html (+ public/tutor.js)
+Verdict: Tight, real. Each question = real x402 `/api/x402/tutor` ($0.01); session close → real `/api/tutor/session` invoice with attestation. Import `/tutor.js` resolves correctly.
+
+- [P1] public/tutor.js:~140 — `window.X402` checked at ask-time, but `/x402.js` and `/tutor.js` both load async; first ask before x402.js finishes shows a false "payment library failed to load". Fix: poll/await an `X402Ready` flag with short retry.
+- [P1] public/tutor.js:~224 — `resume()` try/catch fails silently; if the session endpoint is down the user gets a blank thread with no "previous session unavailable" note. Fix: surface a recovery message.
+- [P2] public/tutor.html:~214 — Textarea has no `maxlength`; only a `< 5` min check (app.js:~128). Fix: add maxlength + char counter.
+- [P2] public/tutor.html:~212 — Sticky composer scrolls behind the mobile soft keyboard. Fix: switch to fixed + viewport-height adjust on focus.
+
+## /unstoppable — pages/unstoppable.html (+ src/unstoppable-dashboard.js)
+Verdict: Real `/api/agents/unstoppable-status` poll with 402→cached fallback and real `window.X402.pay()` donate. Accessibility and resilience are the weak spots.
+
+- [P1] pages/unstoppable.html — **Zero ARIA / role / `:focus-visible`** across the page: live balance/stats not `aria-live`, donate button (~521) unlabeled, no visible keyboard focus. Screen-reader users can't operate it. Fix: add aria-live to live figures, labels to buttons, focus-visible styling.
+- [P1] src/unstoppable-dashboard.js:~363 — `setInterval(poll, 60000)` never backs off on 5xx; failing backend gets hit every 60s forever. Fix: exponential backoff capped at ~5min, reset on 200/402.
+- [P1] pages/unstoppable.html:~520 — Donate button keeps label/color "Donate" even when the 402 backdrop says "Pay $0.01 to see live data". Fix: toggle to "Unlock live data — $0.01" in the 402 state.
+- [P2] src/unstoppable-dashboard.js:~204 — Cached-data banner has no timestamp ("cached data" — how old?). Fix: show relative age.
+- [P2] src/unstoppable-dashboard.js:~344 — Donate failure (incl. insufficient funds) toasts but offers no top-up/retry path. Fix: keep button enabled, add "top up USDC then retry" link.
+- [P2] pages/unstoppable.html:~493 — 3-col stats grid never wraps; numbers wrap at 320px. Fix: wrap to 2-col below 640px.
+
+## /shopper — pages/shopper.html (+ shopper-app.js)
+Verdict: Real `/api/agents/endpoint-shopper-run` with payment-required detection — but nav links are broken in prod and states are thin.
+
+- [P1] pages/shopper.html:413–415 — **Dead nav links in prod**: `/pages/marketplace.html` and `/pages/fact-checker.html` (also `/pages/app-next.html`, ~419) are not routed — prod only serves `/marketplace`, `/fact-checker`, etc. These 404. Fix: use the canonical clean routes.
+- [P1] pages/shopper.html — No wallet-not-connected / insufficient-budget pre-check before "Run Task"; only a generic error-card. Fix: gate the CTA and surface per-failure-type messages.
+- [P2] src/shopper-app.js:~117 — Paywall prompt depends on the `payment-required` header being present with no fallback. Fix: defensive default message.
+- [P2] pages/shopper.html:~476 — Empty state ("Enter a task and click Run Task") gives no guidance on wallet/budget. Fix: add contextual tips.
+
+## /forever — public/forever.html (+ forever.js)
+Verdict: Real Bitcoin inscription payments via api.ordinalsbot.com (no mock). BTC is a settlement rail here, not a promoted coin — coin-rule OK. Accessibility/states incomplete.
+
+- [P1] public/forever.js:~80 — No wallet-balance / insufficient-funds check before prompting payment; user can start an inscription they can't fund. Fix: gate the "Inscribe forever" CTA on estimated fee vs balance.
+- [P2] public/forever.html:281–292 — `.error-banner` has no `role="alert"`/`aria-live`; payment failures aren't announced. Fix: add `role="alert" aria-live="assertive"`.
+- [P2] public/forever.html:256–279 — Three views (compose/pay/win) toggle via `.show` with no live-region announcing the state change for AT users. Fix: aria-live wrapper.
+- [P2] public/forever.html:663–665 — `#openWallet` / `#mempoolLink` ship with `href="#"` until JS populates them; clickable dead links if a payment never completes. Fix: hide/disable until valid.
+- [P2] public/forever.html:~242 — Fixed 240px bubble max-width risks overflow <320px. Fix: clamp.
+
+## /club — pages/club.html (+ club.js, club-gate.js)
+Verdict: Polished 3D stage with real x402 micro-tips (USDC on Base/Solana) + SSE `/api/club/tips-stream`. Cover charge correctly USDC-only. Best-built page in the group; edge cases remain.
+
+- [P1] pages/club.js:~1331 — Tip buttons are tappable before `window.X402.pay` exists ("widget still loading" message but button not disabled). Fix: disable all tip buttons until X402 ready.
+- [P1] public/.../club-gate.js:~48 — Cover-charge pass cached in `localStorage` (`club:pass:v1`) with no expiry — permanent free re-entry, survives a ban. Fix: add timestamp, expire (e.g. 24h) / clear on logout.
+- [P1] pages/club.js:~1150 — Avatar load failure (`/api/play-style` 404/timeout) silently falls back to a hardcoded default with no user surface. Fix: show a re-select error state.
+- [P2] pages/club.js:~88 — SSE reconnect is linear; long outages drop events. Fix: exponential backoff + jitter + backfill from `/api/club/tips`.
+- [P2] pages/club.js:~269 — Tip-history error is one generic "Leaderboard unavailable"; doesn't distinguish network vs empty vs down. Fix: granular messages.
+- [P2] pages/club.html:~1517 — Mobile bottom-sheet uses `calc(85dvh - 240px)` transform; brittle on notched phones (safe-area only applied to padding). Fix: account for safe-area in the transform.
+- [P2] pages/club.html:~1999 — Pills/tip buttons ~11.5px font without enforced 44px touch target on mobile. Fix: min-height 44px.
+
+## /agent-exchange — pages/agent-exchange.html (+ agent-exchange.js)
+Verdict: Real Solana-mainnet USDC settlement, balance pre-check (`/api/x402-pay?balance=1`), live receipts. Two dead nav links + incomplete failure states.
+
+- [P1] pages/agent-exchange.html:302 — **Dead link** `/ibm/trust-layer` — no route in vercel.json, no file under `pages/ibm/`. Fix: point at an existing surface or remove. (Note: `/pay` at line 298 IS valid — routed in vercel.json.)
+- [P1] pages/agent-exchange.js:24–31 — Payment `STAGES` array (challenge→built→submitted→confirmed→settled) has no `error`/`timeout`/`rejected` stage; a rejected/slow payment has no terminal UI. Fix: add an error stage.
+- [P1] pages/agent-exchange.js:~307 — `/api/x402-pay` fetch has no AbortSignal/timeout; a slow backend hangs the user indefinitely. Fix: 30s timeout + error state.
+- [P2] pages/agent-exchange.js:~363 — Receipt render assumes `payment.tx`; when missing, Solscan links render as `#`. Fix: validate before linking.
+- [P2] pages/agent-exchange.html:320–340 — No focus moved to the receipt on success; keyboard users stranded. Fix: focus the receipt heading.
+- [P2] pages/agent-exchange.html:~270 — `#walletState` panel appears dynamically but isn't `aria-live`; AT users miss low-balance warnings.
+
+## /agent-economy — pages/agent-economy.html (+ src/agent-economy.js)
+Verdict: Real Solana payment flow (`/api/agent-economy/status`, `/api/agent-economy/transact`) with proper `wallet_unconfigured` / `insufficient_balance` / `no_recipient` handling and real receipts. Two dead links.
+
+- [P1] pages/agent-economy.html:542 — **Dead link** `/ibm/galaxy` — no route, no file. Fix: remove or repoint.
+- [P1] pages/agent-economy.html:456 — Noscript fallback links to **`/docs/ibm`** which does not exist (no `docs/ibm`). Fix: point at a live docs page.
+- [P2] pages/agent-economy.js — CTA buttons lack explicit aria-labels; dynamic balance/fund-alert not `aria-live`. Fix: add labels + live region. (`/x402` link at line 544 is valid.)
+
+## /agent-trade — pages/agent-trade.html (+ src/agent-trade.js)
+Verdict: Real 3D x402 demo over SSE `/api/agent-trade/demo` with a genuine config pre-flight (`?check=1`) that blocks the UI when buyer/seller keypairs aren't set. Honest, no mocks.
+
+- [P1] pages/agent-trade.js:~516 — When env (`AGENT_BUYER_SECRET`/`AGENT_SELLER_SECRET`) is unconfigured the page is a blank gated overlay with no alternative; on a fresh deploy this reads as broken. Fix: link to setup docs / a clearly-labeled read-only walkthrough.
+- [P2] pages/agent-trade.html — No cross-links back to `/agent-economy` or `/three-live`; dead-ends after the demo. Fix: add related-surface links.
+- [P2] pages/agent-trade.js — No keyboard focus management on the overlay; OrbitControls only. Fix: focus trap / dismiss affordance.
+
+## /three — pages/three.html (+ src/three-economy.js)
+Verdict: 36-line shell that boots `src/three-economy.js` (~1439 lines). Real `/api/three/{catalog,stats,tier,name-quote}` + `/api/token/price`. Imports `./three-access.js` and `./wallet.js` (present). $THREE-only. Not a dead-end — cross-links to `/three-token`.
+
+- [P1] src/three-economy.js — Hero/stats have no explicit error state; if `/api/three/stats` fails on first load it silently stays on "—" placeholders. Fix: render a "live figures unavailable" notice on fetch failure.
+- [P2] src/three-economy.js — CTA buttons could use aria-labels; otherwise responsive (clamp/auto-fit/560px) and clean.
+
+## /three-live — pages/three-live.html
+Verdict: Strong. Real on-chain trade stream via SSE `/api/agents/pumpfun-feed?kind=trades&mint=<THREE>` + 8s `/api/three-token/stats` poll; every particle/shockwave is a real trade; robust exponential reconnect; connecting/live/quiet/error hero states all designed. $THREE-only, shader comment explicitly avoids buy/sell directional bias.
+
+- [P1] pages/three-live.html:~577 — Stats-poll failure is silent on the first failure; a toast only appears after 2+ failures. Fix: badge the error on first failure for faster feedback.
+- [P3] pages/three-live.html — Ticker `<ol>` could carry `role="list"`; minor.
+
+---
+
+## Group summary
+
+**Coin rule: PASS** — only $THREE is promoted; USDC/BTC are settlement rails. No P0 coin violations anywhere in this group.
+
+**P0 — 0.** No broken-beyond-use pages and no hard-rule (mock-payment / fake-data / coin) violations. All paid flows hit real endpoints/facilitators.
+
+**P1 — top issues (reachable but incomplete):**
+1. `src/fact-checker-app.js:257–284` — fake `setInterval` progress stages (CLAUDE.md "no fake progress" violation) — replace with real/honest progress.
+2. `pages/shopper.html:413–419` — nav links to `/pages/marketplace.html`, `/pages/fact-checker.html`, `/pages/app-next.html` 404 in prod — use clean routes.
+3. Dead links: `pages/agent-exchange.html:302` `/ibm/trust-layer`; `pages/agent-economy.html:542` `/ibm/galaxy` and `:456` `/docs/ibm` — repoint/remove (no routes/files exist).
+4. `pages/unstoppable.html` — zero ARIA/keyboard support + `setInterval` poll with no backoff; `pages/club.js`/`club-gate.js` — tip buttons live before X402 ready, cover-charge pass cached forever in localStorage.
+5. Missing fetch timeouts / AbortControllers on paid or polling calls: `/pay` SSE + BSC poll, `/arbitrage` feed, `/agent-exchange` `/api/x402-pay` — slow backends hang the UI.
+
+**Recurring P2 themes:** payment-modal (`/x402.js`) load failures fail silently; stuck skeletons on network (vs `!r.ok`) errors; thin/absent ARIA + focus management on dynamic payment results; mobile touch targets <44px and a few sub-340px grid overflows.
diff --git a/docs/audits/05-crypto-launch-wallets.md b/docs/audits/05-crypto-launch-wallets.md
new file mode 100644
index 000000000..60f0f7a7c
--- /dev/null
+++ b/docs/audits/05-crypto-launch-wallets.md
@@ -0,0 +1,139 @@
+# Audit 05 — Crypto / Launch & Wallets
+
+Senior-engineer code + UX audit of the launch & wallets page group. Auditor focus: real data only, designed states, cross-wiring, the $THREE coin rule. Findings are tagged `[P0]` (broken / hard-rule), `[P1]` (reachable but incomplete), `[P2]` (mediocre), `[P3]` (opportunity).
+
+Date: 2026-06-18. No code was changed — audit only.
+
+Coin-rule note: only `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) may be referenced. `/launch`, `/launches`, `/coin3d` are sanctioned exceptions (arbitrary runtime mint input + platform launch records). **No hardcoded non-$THREE mint was found in any page in this group.** The only hardcoded mints anywhere are USDC (allowed stablecoin plumbing) and the correct $THREE CA. Coin rule is clean across the group.
+
+---
+
+## /launch — /workspaces/three.ws/pages/launch.html (+ public/launch/launch.js, public/studio/launch-panel.js, public/studio/fees-panel.js)
+Verdict: Production-grade. Real end-to-end launch flow (metadata → vanity grind → wallet sign → confirm-poll → finalize); all states designed; no mocks.
+
+- [P2] `public/launch/launch.js:115,118` & `public/studio/launch-panel.js:1270` — conflicting empty-state guidance: the panel's empty state says "Pick an avatar on the left" with a `/dashboard/avatars` link, but on `/launch` the left column is an agent picker, not an avatar gallery. Align the standalone-mount copy.
+- [P2] `public/studio/launch-panel.js:1327,1706` — success/existing-token "Agent page" links use `/agent/${id}`, which 302-redirects to `/agents/:id` in prod (`vercel.json`). Works but costs a redirect hop; `src/launches.js:412` already uses the canonical `/agents/${id}`. Link canonical directly.
+- [P3] `public/studio/launch-panel.js:82` — `USDC_MAINNET_MINT` hardcoded. Allowed plumbing (stablecoin quote-mint), not a coin-rule violation. No action.
+- States: loading skeletons, signed-out empty, no-avatars empty, error, wallet-not-connected, insufficient-funds (`Need ~X SOL`), confirm-timeout escape with Solscan + Finalize, deposit modal with focus trap — all designed. Excellent.
+
+## /launches — /workspaces/three.ws/pages/launches.html (+ src/launches.js)
+Verdict: Clean, well cross-wired. Real `/api/pump/launches` feed, per-card `/api/pump/coin` enrichment, 60s live refresh. No mocks.
+
+- [P3] Cross-wiring intact: card → `/launches/${mint}` (launch-detail), `/coin3d?mint=`, `/communities/${mint}`, agent chip → `/agents/${id}` all resolve. Hero/explore CTAs (`/create-agent`, `/forge`, `/agents`, `/watchlist`, `/radar`, `/pump-live`, `/pump-visualizer`, `/launchpad`) all resolve. No dead links.
+- [P3] `pages/launches.html` — no body link back to `/launch` (the launcher). Add a "Launch a coin" CTA to close the loop. Opportunity.
+- States: skeletons, filter-aware empty (Clear filters / create / forge), error with Retry, load-more, reduced-motion handling. ARIA: `aria-busy`, `aria-selected`, `aria-pressed`, `aria-live`. Strong.
+
+## /lookup — /workspaces/three.ws/public/lookup.html
+Verdict: Functional, wired to real `/api/registry/resolve`, but off-brand and dead-ends to external explorers.
+
+- [P1] `public/lookup.html:21,24` — ships a hardcoded LIGHT theme (`--fg:#111; --bg:#fafafa`) with no `[data-theme="dark"]` overrides, despite the theme-boot script setting `data-theme`. No `/style.css` / `/nav.css` import and **no site nav or footer** (`#nav-container`/`#footer-container` absent). A stark white page that ignores theme and matches no other route. Import shared styles + nav/footer, or add dark tokens.
+- [P1] `public/lookup.html:395+` — resolved agents render Metaplex/Solscan/Magic Eden external links plus the 3D model but **no on-platform onward link** to the agent's three.ws profile (`/agents/:id`). The lookup resolves an agent then dead-ends off-platform. Add an "Open agent page →" link when an agent id is present. (Main cross-wiring gap.)
+- [P2] `public/lookup.html:530` — `copyText` `catch {}` is silent; Share/copy give no feedback on clipboard failure. Show a transient "Copy failed" label.
+- States: skeleton, not-found (→ /explore, resolves), error, private-model, no-model-yet all designed; Enter submits; inputs have `aria-label`; focus-visible outline. Good. No mocks.
+
+## /gmgn — /workspaces/three.ws/public/gmgn.html
+Verdict: Solid real-time SSE app (EventSource → `/api/agents/gmgn-feed`). No mocks; only token CA present is the correct $THREE.
+
+- [P2] `public/gmgn.html:114,115` — `#side` has `cursor:move` on `.side-header` signaling a draggable panel, but no drag handler is wired (only `#side-minimize` at :820). Drop the `cursor:move` or implement drag.
+- [P3] `public/gmgn.html:180` — status pill is a `<button>` with no click action; status-display-as-button is a minor a11y smell.
+- [P3] `public/gmgn.html:733` — custom-avatar URL validation uses `alert('Invalid URL.')`, inconsistent with the inline messaging elsewhere.
+- [P3] `public/gmgn.html:672` — `DEFAULT_AVATARS` hardcodes `cz.glb`/`default.glb`; both exist and are real bundled narrator presets, not fabricated feed data. Allowed.
+- States: "Waiting for events…" empty, "Error — retrying…" with auto-reconnect, `down` dot, responsive collapse at 768px. Acceptable.
+
+---
+
+## /vanity-wallet — /workspaces/three.ws/public/vanity-wallet.html (+ src/solana/vanity/grinder.js)
+Verdict: Grinding is REAL — WASM ed25519, fresh CSPRNG seed per batch, secretKey = `[seed][pubkey]` derived from the matched keypair; keys stay client-side. A few token/estimate gaps.
+
+- [P2] `public/vanity-wallet.html:405` — pre-grind ETA uses `RATE_PER_CORE = 5000` while real WASM throughput is much higher; pre-grind estimate can be off by an order of magnitude (the LIVE rate shown during grinding is real). Calibrate against a short warm-up or label as a rough estimate.
+- [P2] `public/vanity-wallet.html:758,780,809,836,854` — assign-block error/success styling references `var(--danger)`/`var(--success)` which `:root` (17-34) never defines (it defines `--bad-fg`/`--ok-fg`); colored feedback falls back to inherited color. Use the defined tokens.
+- [P2] `public/vanity-wallet.html:631,636` — decorative scan-line `setInterval` (100ms) cleared only in `endGrindUI`; would leak on an error thrown before it. Clear in `catch`/`finally` too. (Decorative shimmer only, not faked results — not a data violation.)
+- [P3] `public/vanity-wallet.html:742,774` — assign flow POSTs full `secret_key` to `/api/agents/:id/solana`. Intentional custody transfer gated behind explicit `assign-ack` consent + warnings; endpoint exists. The "keys never leave your device" lede (:205) is contradicted only once a user opts in — soften the lede.
+- [P3] `public/vanity-wallet.html:203` — 6-char case-sensitive prefix (~58^6) is hours-to-days; difficulty tier shown but no explicit "this may take hours" caution at effLen ≥ 6.
+
+## /eth-vanity — /workspaces/three.ws/public/eth-vanity.html
+Verdict: CREATE2 salt grinding is REAL (keccak256 over `0xff‖deployer‖salt‖initCodeHash`, crypto-random salt seed, 64-bit counter). Main issues are inaccurate metadata and broken styling.
+
+- [P1] `public/eth-vanity.html:94,101,103` — OG/Twitter/JSON-LD all claim "using the **ThreeWSFactory** CREATE2 deployer **on BSC**." No "ThreeWSFactory" exists in the code and BSC is never referenced; the tool is chain-agnostic with Arachnid/CreateX/Safe/Coinbase presets (:129-132). Stale/inaccurate share metadata. Rewrite to match the generic CREATE2 tool.
+- [P1] `public/eth-vanity.html:10-11,628` — links `/nav.css` + `/fonts/fonts.css` but NOT `/footer.css`, yet injects the footer via `<script src="/footer.js">` (:628). Footer renders unstyled (sibling vanity-wallet/evm-wallet load `footer.css`). Add `<link rel="stylesheet" href="/footer.css">`.
+- [P2] `public/eth-vanity.html:48,68` — `.preview .pfx/.sfx` and `.result .pfx/.sfx` set `background:#ffffff; color:#fff` → white text on white; the highlighted prefix/suffix is invisible. Copy/paste regression. Use a visible fg/bg pair.
+- [P2] `public/eth-vanity.html:533-534` — dead `deployerLabel` computed as `? null : null` then immediately recomputed correctly as `presetLabel` (:536). Delete the dead lines.
+- [P3] `public/eth-vanity.html:441,594` — assign block uses undefined `var(--danger)`/`var(--success)` (same token gap as Solana page). Use `--bad-fg`/`--ok-fg`.
+
+## /evm-wallet — /workspaces/three.ws/public/evm-wallet.html (+ eoa-grinder.js, eoa-grinder-worker.js)
+Verdict: Best of the three grinders. EOA grinding is REAL and careful — full 256-bit CSPRNG base scalar (explicitly defends against the 2022 Profanity bug), incremental point-add hot loop, periodic reseed, and independent self-verification re-deriving the address before emit (`eoa-grinder-worker.js:166-179`). Private key never POSTed; encrypted keystore export via ethers.
+
+- [P2] `public/evm-wallet.html:529` — raw private key injected into DOM via `innerHTML` (escaped through `esc()`). Functionally safe (hex has no HTML-special chars) but injecting a secret via string template is a smell. Set via `textContent` on a pre-created node.
+- [P2] `public/evm-wallet.html:240` — imports full `ethers` `Wallet` only for keystore `encrypt()`; heavy dep on the page bundle (grinder itself uses lean `@noble`). Lazy-import `ethers` only on "Download keystore" click. (Performance.)
+- [P2] `public/evm-wallet.html:445` — scan-line `setInterval` cleared only in `endGrindUI`/`catch`; same minor leak pattern as the Solana page. Decorative only.
+- [P3] `public/evm-wallet.html:163-164` — cross-links correctly to `/eth-vanity`. But unlike the Solana and CREATE2 pages there is no "assign to agent" block here, even though this produces a spendable, importable EOA. Add an assign-to-agent flow (or note why an EOA isn't assignable).
+- [P3] `public/evm-wallet.html:55-57` — `.lit-7`…`.lit-10` difficulty classes are dead CSS (meter caps at 6 segments, `lit-${Math.min(total,6)}`). Delete unused rules.
+
+## /coin3d — /workspaces/three.ws/pages/coin3d.html (+ src/coin3d/main.js)
+Verdict: Strong real-data 3D viewer. Takes runtime `?mint=` (no hardcoded mint default — coin rule clean), pulls live pump.fun MCP data via `Promise.allSettled`, degrades per-source; all states designed.
+
+- [P2] `src/coin3d/main.js:440-463` — all three empty/error states send the user to `/demo/coin` labeled "Browse coins," but `/demo/coin` is the lottery/reflection demo, not a coin browser. The label oversells the destination; this same file links to `/launches` at :417. Point the empty/error CTA at `/launches`.
+- [P3] `src/coin3d/main.js:122` — `ipfsToHttp` hardcodes the `ipfs.io` gateway with no fallback (logo failure degrades gracefully to a tinted disc). Add a secondary gateway (cloudflare-ipfs) to improve logo hit-rate.
+- [P3] `src/coin3d/main.js:416-417` — HUD links to `pump.fun/coin/${mint}` (allowed runtime mint), `/launches`, `/communities/:mint` — good. No link to `/launch` (the launcher); add a "Launch your own" affordance. Opportunity.
+
+---
+
+## /play/arena — /workspaces/three.ws/pages/play/arena.html (+ src/play/arena.js)
+Verdict: Solid real-data spectator surface (real SSE leaderboard + trade stream, on-chain proof links). Minor a11y/empty-state gaps.
+
+- [P2] `src/play/arena.js:182` — the `'update'` SSE event is wired to a no-op `() => {}`. Half-wired path: either refresh the board (debounced `loadBoardOnly()`) or remove the listener.
+- [P2] `pages/play/arena.html:336` / `src/play/arena.js:463` — live-tape empty state ("Waiting for the next trade…") never distinguishes "stream live, no trades yet" from "stream down" and doesn't reflect `setLive(false)`. On `es.onerror` with empty tape, show "Reconnecting to trade stream…".
+- [P3] `src/play/arena.js:519` — avatar picker modal (`role="dialog" aria-modal="true"`, arena.html:359) has no focus trap; focus isn't moved in on open or restored on close. Trap Tab, focus first tile, restore trigger.
+- [P3] `pages/play/arena.html:298-301` — only nav out is the brand link to `/play`; agents deep-link to `/trader/:id` and `/oracle` (good) but no link to `/agents` or `/launches`. Add a directory affordance.
+- [P3] `src/play/arena.js:441` — leaderboard avatar `onerror` hides the img but keeps the 26px grid column, leaving a gap. Collapse the column or use a mono fallback.
+
+## /play/agent-wallet — /workspaces/three.ws/pages/play/agent-wallet.html (+ src/play-agent-wallet.js)
+Verdict: Payment is genuinely real (SPL USDC TransferChecked via the local bridge, SSE settlement, real Solscan tx) with well-designed offline/low-balance/error states — but the whole pay flow is DEAD in production because the bridge is localhost-only.
+
+- [P1] `src/play-agent-wallet.js:35-43,546-556` — `BRIDGE_URL` is empty for any non-localhost host (verified: `defaultBridgeUrl()` returns `''` in prod). `refreshStatus()` short-circuits to the "Bridge offline" banner and the Pay button is permanently disabled. The page's headline promise ("your avatar pays for an endpoint") is unreachable for every real visitor — only devs running `npm run demo:agent-wallet-bridge` can use it. Ship a hosted facilitator/bridge proxy (or a server-side `/api/x402-pay` path the page can call) so prod visitors can actually pay.
+- [P2] `pages/play/agent-wallet.html:262` — topbar links to `/agent-exchange` and `/pay` (resolve), but no link to `/play/arena` or to the agent's profile/activity. The "Agent Wallet" never links to where the agent or its tx history lives.
+- [P3] `src/play-agent-wallet.js:462-477` — pay button's disabled-state label ("Bridge offline") is the only signal; no `aria-live` announcement on the gating banner when bridge transitions offline→online. The stage list has `aria-live="polite"` but the banner doesn't.
+- [P3] `src/play-agent-wallet.js:606-607` — quote fallback hardcodes `$0.01 USDC` copy when the bridge is offline (real price comes from `/quote`). Display placeholder, not coin data — acceptable but derive from a constant.
+
+## /avatar-wallet-chat — /workspaces/three.ws/pages/avatar-wallet-chat.html
+Verdict: Real wallet + real on-chain SOL sends (`/api/agent/send-sol`) with real receive-detection polling and good pay/fail/governance states — but one dead link and a couple robustness gaps. All inline (no separate JS module).
+
+- [P1] `pages/avatar-wallet-chat.html:583` — the IBM Granite Guardian "Trust Layer" chip links to `/ibm/trust-layer`, which is **unrouted** (verified: not in vercel.json or vite.config.js; only `/ibm/x402-demo` exists). Dead primary informational link surfaced exactly when a send is blocked. Point to `/ibm/x402-demo` or build `/ibm/trust-layer`.
+- [P2] `pages/avatar-wallet-chat.html:657-705` — `pollActivity()` and its 9s `setInterval` are defined inside the `finally` of `ask()`, so a fresh poller is created on every message send and never cleared. Concurrent intervals accumulate (memory + redundant RPC). Hoist the poller to boot, start the interval once.
+- [P2] `pages/avatar-wallet-chat.html:451-461` — wallet-offline is handled, but there is no designed insufficient-funds / not-funded state; a low balance only surfaces as a red toast after a failed send. For a wallet surface this should be first-class — read balance and show a fund-the-wallet hint before the user sends.
+- [P3] `pages/avatar-wallet-chat.html:437-443` — 5s `setTimeout` force-flips `avatarReady=true` if the iframe never signals ready (legitimate resilience, not fake loading), but can double-flush the queue if `ready` arrives at ~5s. Add a guard. Coin rule clean (SOL/USD are real wallet values).
+
+## /demo — /workspaces/three.ws/pages/demo-economy.html (+ api/demo-economy.js)
+Verdict: Real on-chain SOL transfer when wallets are configured, with an explicitly-labeled "Simulated" mode (no fabricated signature/explorer) — honest — but it ships a hardcoded fake-marketplace array rendered on-screen as live service discovery.
+
+- [P1] `api/demo-economy.js:81-107` — when the x402 bazaar is unreachable, `discoverServices()` returns a hardcoded array of invented services ("Token price oracle", "On-chain sentiment feed", "Pump.fun trending coins", etc.) that the TV (`drawBazaar`) renders as "Available services · Coinbase network" with **no fallback/sample indication**. This is exactly the "no fallback sample arrays shipped to production" rule — fabricated marketplace data presented as a live bazaar. On bazaar failure emit a real "bazaar unavailable" state (mirror the honest `market_unavailable` path at :336) instead of inventing listings.
+- [P2] `pages/demo-economy.html:227` — bottom bar hardcodes "Real Solana infrastructure · x402 protocol · live bazaar" even when the run is simulated and the bazaar is the fallback array. Anonymous visitors always hit the simulated path (auth required for real send, api/demo-economy.js:133-143). Make that line reflect the actual run mode.
+- [P3] `pages/demo-economy.html:174-177` — NOVA/ORACLE presented as "three.ws AI agents" but neither pill nor wallet row links anywhere (no `/agents`, `/launches`, profile). Economy view is an island. Link the agent pills.
+- [P3] `pages/demo-economy.html:162-165` — at ≤680px the entire sidebar (wallets, transaction, activity log) is `display:none`, so mobile users see only the 3D scene + Run button and none of the payment proof the demo exists to show. Move the tx/activity into a collapsible sheet instead of hiding.
+- Coin rule: the fallback array uses generic three.ws endpoint names only (no foreign mint/ticker) — not a coin-rule P0, but still fabricated data.
+
+## /live — /workspaces/three.ws/pages/live.html (+ api/demo/economy.js)
+Verdict: Real on-chain trade path (`/api/demo/economy?trade=1` signs + sends real SOL, gated behind auth, real underfunded handling) and real LLM-driven agent speech — but anonymous visitors silently get an unlabeled "demo mode" that still shows "settled on-chain" copy.
+
+- [P1] `pages/live.html:470-474,525` + `api/demo/economy.js:161-164` — for anonymous visitors the stream emits `demo_mode` ("Running in demo mode — set AGENT_B_WALLET_SECRET…"), logged as a terse `DEMO` line, then the UI proceeds through PAY/PAID beams and "Trade complete … settled on-chain" copy even though no payment occurred. The visible outcome implies a settled on-chain trade with only a dev-oriented env hint. On `demo_mode`, suppress the "settled on-chain" language and show "no real payment — sign in to run a live trade."
+- [P2] `pages/live.html:418-426` — `refreshStatus()` only renders wallet chips when `agentA/B.configured`; with neither configured (prod default) `#wallets` stays silently empty with no message. Render a "wallets not configured" chip.
+- [P2] `pages/live.html:512-521` + `api/demo/economy.js:178` — on a real underfunded-wallet error the only feedback is one gray `ERROR` log line; the button resets with no recovery (no fundable address). For a payment surface this insufficient-funds state should be designed — surface the address + retry.
+- [P3] `pages/live.html:259-265` — page shows two agents trading but links nowhere (`/agents`, `/launches`, trader/oracle profiles). Link the agent tags to profiles.
+- [P3] `pages/live.html:267-273,429-439` — speech bubbles depend on `llmSay()` → `/api/chat`; on failure it returns `''` and the agent stays silent, making the "live" world look dead during a chat outage. Fall back to a static persona line.
+
+---
+
+## Group summary
+
+No P0 issues. **Coin rule is clean across all 13 pages** — no hardcoded non-$THREE mint or ticker anywhere; the only hardcoded mints are USDC (allowed plumbing) and the correct $THREE CA. The three vanity grinders are all genuinely real cryptographic grinding in Web Workers (WASM ed25519 for Solana, Profanity-hardened `@noble` secp256k1 with self-verification for EVM EOA, real keccak CREATE2 salt search) — keys client-side, no faked results.
+
+Top P1s (reachable but incomplete / integrity):
+
+1. `/play/agent-wallet` `src/play-agent-wallet.js:35-43` — pay flow is DEAD in production; `BRIDGE_URL` is empty for non-localhost, so the headline "your avatar pays" promise is unreachable for every real visitor. Needs a hosted bridge/facilitator.
+2. `/demo` `api/demo-economy.js:81-107` — hardcoded fake-marketplace array rendered as a live bazaar with no fallback indication (direct "no sample arrays in prod" violation).
+3. `/live` `pages/live.html:525` + `api/demo/economy.js:161` — anonymous "demo mode" still shows "settled on-chain" success copy though no payment occurs; misrepresents the outcome.
+4. `/avatar-wallet-chat:583` — governance "Trust Layer" chip links to unrouted `/ibm/trust-layer` (dead link, shown exactly when a send is blocked).
+5. `/lookup` — ships a hardcoded light theme with no nav/footer (off-brand white page) and dead-ends to external explorers with no on-platform agent-profile link.
+6. `/eth-vanity` — stale/inaccurate "ThreeWSFactory…on BSC" share metadata, and missing `footer.css` (footer renders unstyled).
+
+Notable P2 cluster: undefined `--danger`/`--success` CSS tokens shared by the vanity assign blocks; eth-vanity invisible white-on-white prefix highlight; per-send leaking `setInterval` pollers (`avatar-wallet-chat`, plus decorative scan-line intervals on the grinders); several "island" pages (arena, demo, live, agent-wallet) with no cross-link to `/agents` / `/launches` / agent profiles.
diff --git a/docs/audits/06-labs-agent-account.md b/docs/audits/06-labs-agent-account.md
new file mode 100644
index 000000000..fbea143d6
--- /dev/null
+++ b/docs/audits/06-labs-agent-account.md
@@ -0,0 +1,128 @@
+# Audit — Labs, Agent Tools & Account pages
+
+Senior-engineer code + UX audit. Scope: `/launchpad /brain /lipsync /lipsync/mic /playground /labs /avatar-artifact /chat /agent /agents /my-agents /reputation /login /register /forgot-password /dashboard /dashboard/account /dashboard/analytics /dashboard/settings /settings`.
+
+Method: route → file resolved via `vite.config.js` `fileMap` + `vercel.json`; read each page HTML and its primary JS module; grepped for mock/sample/setTimeout/TODO/placeholder and for non-$THREE token addresses/tickers. Claims from sub-agents were spot-verified on disk.
+
+Verdict in one line: **the group is in strong shape — real APIs throughout, no coin-rule violations, no mock data shipped. The only genuinely broken thing is `/avatar-artifact` on mobile. Most remaining items are P2/P3 polish.**
+
+---
+
+## /launchpad — pages/launchpad.html
+Loads and wires cleanly; real publish/get endpoints.
+- [P3] `pages/launchpad.html:52` — imports `mountLaunchpadStudio` from `/src/editor/launchpad-studio.js` (exists). Hydrates from `?template/?slug/?wallet/?avatar` query params with validation in the module. No issues found. — n/a.
+
+## /brain — pages/brain.html (+ src/brain.js)
+Real multi-LLM wiring confirmed; no canned responses.
+- [P0-CLEARED] `src/brain.js:706` — POSTs to real `/api/brain/chat`; `:576` GETs the provider list from the same function (13 real providers in `api/brain/chat.js`). The "must hit real model endpoints" requirement is met. — no fix.
+- [P3] `pages/brain.html:87,178` — `#brDescribeGenerate` / `#brSaveToAgent` ship disabled; correctly gated by input + agent-select state in JS, not dead. — leave as-is.
+
+## /lipsync — public/demos/lipsync-tts.html
+Real streaming TTS + viseme pipeline.
+- [P0-CLEARED] `public/demos/lipsync-tts.html:266` — real `fetch('/api/tts/speak', …)` with `{text,voice,speed,format}`; loads real `/avatars/default.glb`. No mocks. — no fix.
+- [P3] No persistent error toast if `/api/tts/speak` returns non-200 mid-stream; status text only. — add an inline error state with retry.
+
+## /lipsync/mic — public/demos/lipsync-mic.html
+Real mic capture + analyser; responsive.
+- [P0-CLEARED] `public/demos/lipsync-mic.html:106` — imports real `LipSyncAnalyser` from `/src/lip-sync-analyser.js` (exists); uses `getUserMedia` + `AnalyserNode`. No mock audio. — no fix.
+- [P2] No explicit designed state for `getUserMedia` permission-denied / no-mic-device; failure path is thin. — add a designed "microphone blocked — enable access" empty/error state.
+
+## /playground — pages/playground.html
+`<model-viewer>` + drag-drop upload; responsive at 768px.
+- [P3] `pages/playground.html:841` — `DEFAULT_SRC`/`DEFAULT_NAME` hardcoded to `/avatars/default.glb` (acceptable default, not data). — n/a.
+- [P3] Upload validation is type/extension-based only; add size cap + friendlier reject message. — minor.
+
+## /labs — pages/labs.html (+ src/labs.js)
+Registry-driven gallery with real liveness checks and full state set.
+- [P0-CLEARED] `src/labs.js:4` — fetches `/features.json` at runtime; `:30` does real HEAD liveness checks (3s timeout). Skeleton + empty + error(retry) states all present (`pages/labs.html:432-493`), `aria-busy`/`aria-live` set. Exemplary. — no fix.
+
+## /avatar-artifact — pages/avatar-artifact.html
+**Broken on mobile — the one real defect in this group.**
+- [P1] `pages/avatar-artifact.html` (whole file) — **zero `@media` queries** (confirmed: `grep -c @media` = 0). Full-bleed Three.js canvas sizes to `window.innerWidth/Height` (`:70`, `:391`) with no mobile adaptation, no nav, no footer, no links — a dead-end standalone canvas. On small screens there is no readable UI and no way out. — add a responsive layer: a minimal header/back-link, a mobile fallback or reduced-quality path, and touch handling (current interaction is `mousemove`-only, `:312`).
+- [P2] `pages/avatar-artifact.html:14-27` — no `focus-visible`, no keyboard interaction, mouse-only; no loading state while the GLB/CDN Three.js resolves. — add focus/keyboard affordances and a loading indicator.
+- [P3] CDN Three.js loaded with SRI (`:65`) — good; consider same-origin to match the rest of the app. — optional.
+
+## /chat — chat/index.html (Svelte sub-app)
+Real built Svelte app; not a mock.
+- [P2] `chat/index.html` — entry is a built bundle (`chat/src/*.svelte` is the real source, e.g. `AgentPicker.svelte`, `ClientTool.svelte`). Wiring to real endpoints can't be proven from the static shell alone. — verify at runtime (`/verify`) that model/agent calls hit real `/api/*`, not a dev stub, before relying on this audit line.
+
+## /agent — public/agent/index.html (bare `/agent` 301s → `/agents`)
+Real agent token page; ownership-gated; widget mounts only for launched mints.
+- [P0-CLEARED] Real calls to `/api/agents/{id}`, `/api/oembed`, `/api/agent/{id}/og`; imports `AgentIdentity`/`AgentHome`/`AgentTokenWidget` from `/src/pump/*` (exist). Coin widget uses the official `THREE_MINT` constant — coin rule clean. — no fix.
+- [P2] `public/agent/index.html` — **0 `@media` queries** (confirmed). Layout uses relative/inline styles so it degrades rather than breaks, but it isn't explicitly designed for narrow screens. — add breakpoints for the identity/embed columns.
+
+## /agents — public/agents/index.html
+Real public directory; pagination/search/sort; actionable empty state.
+- [P0-CLEARED] `:170` `const API='/api/agents/public'`; cursor pagination; cards link via API `home_url` → agent detail. Empty state `:258` "No public agents yet — Create the first one →" → `/create-agent` (real route). — no fix.
+- [P3] Sort dropdown + grid have `aria-label`/`aria-busy`; consider keyboard focus order audit on card actions. — minor.
+
+## /my-agents — public/my-agents/index.html
+Auth-gated; native + ERC-8004 imported agents; both signed-out and empty states designed.
+- [P0-CLEARED] Signed-out (`:145`) redirects to `/login?next=`; empty (`:168`) "Create an agent" → `/create-agent`. Real `/api/agents`, `/api/erc8004/hydrate`, `/api/erc8004/import`. View → `home_url || /agent/${id}`; Edit/Deploy → `/agent/{id}/edit`. Cross-wiring correct. — no fix.
+
+## /reputation — public/reputation/index.html
+Real ERC-8004 / EAS explorer; wallet-gated writes; per-chain queries.
+- [P0-CLEARED] Reads via EAS GraphQL per chain; writes require `window.ethereum` and submit signed attestations; ENS resolution supported; no demo contracts/coins. Form validation (star picker, char count, gated submit). — no fix.
+- [P3] Base Sepolia is in the chain list for testing — fine (it's a chain, not a coin), but make the "testnet" labeling explicit in the UI so reviewers aren't surprised. — minor copy.
+
+## /login — public/login.html
+Real auth; cross-links correct. **Sub-agent P0 was a false positive.**
+- [P0-CLEARED] `:735` loads `/src/privy-login.js` — **exists** at `src/privy-login.js` (13 KB); Vite serves `src/` at the `/src/` URL root, so Privy email-OTP + wallet login are wired, not broken. (Sub-agent only checked `public/src/`.) Email/password POST to real `api/auth/[action].js`. — no fix.
+- [P1] `:972` — `setTimeout(() => location.href = next, 2000)` delays the post-login redirect 2s for an avatar animation; user can navigate away mid-window. — use `location.replace` and/or fire redirect on animation-end, not a fixed timer.
+- [P1] `:913` — already-authenticated check (`/api/auth/me`) swallows errors with `.catch(()=>{})`; on a network blip a logged-in user just sees the login form with no signal. — surface a transient "couldn't verify session" notice.
+- [P2] `:944` — generic "Email or password is incorrect" (good anti-enumeration); `role="alert"` + `aria-describedby` present. — fine.
+
+## /register — public/register.html
+Real registration; password strength + username validation. Same Privy note as login (resolves, not broken).
+- [P1] `:799-806` — no already-authenticated redirect (login has one); a logged-in user can re-open the signup form. — add the `/api/auth/me` check + redirect for parity.
+- [P2] `:809-814` — structured handling for 409 (taken) / 429 (rate-limit), else generic "Registration failed". — map a couple more server error codes to human copy.
+- [P2] `:820` — immediate redirect on success vs login's 2s delay — inconsistent UX. — pick one pattern.
+
+## /forgot-password — public/forgot-password.html
+Real reset endpoint; privacy-preserving response.
+- [P1] `:294-295` — the catch block shows the same "if an account exists…" success message on a genuine network failure, so a user whose request never reached the server believes it did. (The always-200 success on the happy path is intentional anti-enumeration and fine.) — distinguish network/transport failure from the server's privacy response and show a retry on the former.
+- [P2] `:252-264` — real-time email validity hint; `:268` label focus effect. — fine.
+
+## /dashboard — pages/dashboard-next/index.html → src/dashboard-next/pages/home.js
+Real data pipeline; `requireUser()` gate; skeleton/empty/error states.
+- [P0-CLEARED] `requireUser()` (`api.js:96`) redirects 401 → `/login`. Real `/api/avatars|agents|widgets|billing/revenue|oracle/*` via `Promise.allSettled` with null fallbacks. Oracle feed renders mints from API, not hardcoded. — no fix.
+- [P2] `home.js:743-789` — typewriter uses chained `setTimeout` for animation only (not fake loading); could be one RAF loop. — minor refactor.
+
+## /dashboard/account — pages/dashboard-next/account.html → account.js
+Real CRUD (wallets, profile, provider keys, delegation); validation present.
+- [P2] `account.js` (delegation table) — "Configure →" is a `#delegation` hash anchor; no matching console/modal located in this module. — confirm the target section exists or wire the modal; otherwise it's a dead in-page link.
+- [P3] `:201` audit-log CSV export handles a 404 when the endpoint isn't deployed — good defensive UX. — n/a.
+
+## /dashboard/analytics — pages/dashboard-next/analytics.html → analytics.js
+Real revenue/agent/widget data; canvas charts animated via rAF; designed error/empty.
+- [P0-CLEARED] Real `/api/billing/revenue`, `/api/widgets/:id/stats`, `/api/monetization/revenue`; full-null → error state with retry (`:70`). Charts are real-time animated, not fake progress. — no fix.
+
+## /dashboard/settings — pages/dashboard-next/settings.html → settings.js
+Sessions, LLM usage, storage meter, prefs, theme, export — all persisted to real endpoints.
+- [P0-CLEARED] Real `/api/auth/sessions`, `/api/notifications`, `/api/dashboard/prefs`; revoke / revoke-others wired; storage meter from real quota. — no fix.
+- [P3] Theme writes to both server prefs and localStorage (cross-device + offline) — good. — n/a.
+
+## /settings — public/settings/index.html (standalone, top-level route)
+Comprehensive account settings; real auth guard; tabbed with popstate.
+- [P0-CLEARED] `apiFetch` 401 → `/login` (`:546`); profile PATCH, sessions revoke, GitHub/X connect, account-delete (typed-confirmation `:725` → `DELETE /api/auth/me`). Responsive at 768px (`:277`). USDC referenced as settlement currency only — coin rule clean. — no fix.
+
+---
+
+## Group summary
+
+**Coin rule: PASS across all 20 pages.** No non-$THREE token/coin/mint hardcoded in source, copy, or sample data. The only token references are the official `THREE_MINT` constant (agent token widget), USDC as a settlement-currency word, and runtime API/oracle feeds rendering user data — all sanctioned.
+
+**Real-data / no-mock: PASS.** Every page hits real endpoints (`/api/brain/chat`, `/api/tts/speak`, `/api/agents/public`, `/api/auth/*`, dashboard `/api/*`). No demo sample arrays, no fake `setTimeout` loaders masquerading as progress, no `throw 'not implemented'`, no TODO/stub found in shipped paths. `setTimeout` appears only for genuine animation timing.
+
+**Top P1 (reachable but incomplete) — 5:**
+1. `/avatar-artifact` — zero media queries; full-screen canvas with no nav, no mobile UI, mouse-only interaction → effectively broken on phones (`pages/avatar-artifact.html`).
+2. `/login` — 2s `setTimeout` redirect window after success lets the user navigate away mid-flow (`:972`).
+3. `/login` — already-authenticated `/api/auth/me` check swallows network errors silently (`:913`).
+4. `/register` — missing the already-authenticated redirect that login has; logged-in users can re-open signup (`:799`).
+5. `/forgot-password` — network failure shows the same success message as the privacy response, so failed requests look sent (`:294`).
+
+**P0: 0 genuine.** The sub-agent's `/login` + `/register` "missing `/src/privy-login.js`" P0 was a **false positive** — the file exists at `src/privy-login.js` and Vite serves it at `/src/privy-login.js`. Verified on disk.
+
+**Notable strengths:** `/labs` (full skeleton/empty/error + aria + real liveness checks) and the entire `/dashboard*` suite (clean `requireUser()` auth gating, `Promise.allSettled` resilience, designed empty/error states) are reference-quality.
+
+**Follow-up worth doing:** runtime-verify `/chat` (built Svelte bundle — static audit can't prove endpoint wiring) and confirm the `/dashboard/account` `#delegation` anchor has a real target.
diff --git a/docs/audits/07-learn-blog-legal.md b/docs/audits/07-learn-blog-legal.md
new file mode 100644
index 000000000..2e1a203a7
--- /dev/null
+++ b/docs/audits/07-learn-blog-legal.md
@@ -0,0 +1,153 @@
+# Audit 07 — Learn / Blog / Legal / Machine-readable
+
+Scope: docs (learn), tutorials, status, support, glossary, events, blog (index + 6 sampled posts), legal, and machine-readable files. Read-only content+UX audit. Routing resolved via `vite.config.js` (`vercel-rewrites` fileMap) and `vercel.json`.
+
+Date: 2026-06-18.
+
+**Headline:** Coin rule is CLEAN across every audited surface — the only Solana mint anywhere is `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Zero P0. Machine files are all wired (generated or function-backed and non-empty). The real problems are content-layer: a blog footer regression on ~22 posts, dead `/ibm/*` links, two orphaned `.md` posts, one orphaned doc, and a likely-dead RSS subscribe link.
+
+---
+
+## Learn — docs
+
+### /docs — docs/index.html
+Healthy SPA doc viewer. Renders markdown by slug, ships shared nav + footer (`/footer.js`, docs/index.html:1095-1096), default slug `start-here` (line 852). No issues.
+
+### /docs/start-here — docs/start-here.md
+Alive, in nav. Links `/discover`, `/start` resolve. No issues.
+
+### /docs/make-your-agent — docs/make-your-agent.md
+Alive, in nav. Links `/start`, `/app` resolve. No issues.
+
+### /docs/share-and-embed — docs/share-and-embed.md
+Alive, in nav. Link `/studio` resolves. No issues.
+
+### /docs/do-i-need-crypto — docs/do-i-need-crypto.md
+Alive. $THREE referenced with correct CA; USDC correctly framed as payment rail not a traded coin (lines 60-63). No issues.
+
+### /docs/quick-start — docs/quick-start.md
+Alive. `npm install @three-ws/sdk` (line 55) matches `sdk/package.json`. No issues.
+
+### /docs/agent-system — docs/agent-system.md
+Alive, in nav (line 763). No issues.
+
+### /docs/erc8004 — docs/erc8004.md
+Alive, in nav (line 779). Base58-looking strings (lines 90/94/576/582) are `0x` EVM hex fragments, not Solana mints — not coin violations. No issues.
+
+### /docs/embedding — docs/embedding.md
+Alive. Internal link `/docs/ar` (line 277) → `ar.md` exists and `ar` is in nav. No issues.
+
+### /docs/web-component — docs/web-component.md
+Alive. `/docs/ar` links resolve; React/Vite sample imports correct. No issues.
+
+### /docs/mcp — docs/mcp.md
+Alive, in nav (line 796). No issues.
+
+### /docs/skills — docs/skills.md
+Alive, in nav (line 765). No issues.
+
+### /docs/widgets — public/docs-widgets.html
+Alive standalone page (17 KB), registered in nav (docs/index.html:801) and top-nav `/widgets`. No coin hits. No issues.
+
+### /docs/api-reference — docs/api-reference.md
+Alive, in nav (line 793). Base URL, openapi/x402/mcp well-known links valid.
+- [P3] docs/api-reference.md:74,256,… — example payloads use "2025" timestamps while current date is 2026-06-18 — cosmetic; refresh sample timestamps if desired.
+
+### /docs/sdk — docs/sdk.md
+Alive, in nav (line 797).
+- [P3] docs/sdk.md:62-120 — `from './src/lib.js'` relative imports appear before the published-package (`@three-ws/sdk`) section. Intentional self-host path, but a skimming reader could copy the wrong import. Consider leading with the npm import.
+
+### /docs/listings — docs/listings.md
+Alive, in nav (line 830). External links (IBM Community, HackerNoon, Alibaba Cloud) well-formed; internal `/news/partnered-with-hackernoon` and the Alibaba blog post resolve.
+- [P2] docs/listings.md:42 — inline link `/docs/syndication#hackernoon`. `syndication.md` exists and renders by slug, but `syndication` is NOT in the docs/index.html nav array — reachable only via this one inline link (orphaned doc). Fix: add a nav entry for Syndication.
+
+---
+
+## Learn — interactive
+
+### /tutorials — pages/tutorials.html
+Manifest-driven index (28 tutorials from `public/tutorials-manifest.js`), fully populated, hover/focus states present. CTA links (`/create`, `/studio`, `/widgets`, `/discover`, `/docs`, `/blog`, `/dashboard`, `/legal/*`) all resolve. No fetch → no async state needed (synchronous classic script). No issues.
+
+### /tutorials/<slug> — pages/tutorial.html (text-to-3d, image-to-3d, prompts-for-3d, generate-3d-api)
+Viewer hydrates from `/docs/tutorials/${slug}.md` (line 1319). All 4 target slugs have backing markdown (`docs/tutorials/*.md`) + manifest entries — no orphan routes. Designed error state with recovery link (lines 1361-1367); prev/next pager wired.
+- [P3] docs/tutorials/text-to-3d.md:51, generate-3d-api.md:166 — link to third-party generators Meshy/Tripo. Legitimate BYO-key Forge engine options (real feature, not coins), accurately documented. Noted only as the sole competitor-link mentions.
+
+### /status — pages/status.html
+Real uptime page. Fetches `GET /api/status` (line 351), refreshes every 5 min. Endpoint exists (`api/status.js`) and computes from probe history written by `api/cron/uptime-check.js`. No hardcoded "all operational" — banner derived from `data.services` (lines 286-298). Loading skeleton (lines 257-268), warming-up empty state (line 287), designed error state with retry + `@trythreews` link (lines 340-347); respects `prefers-reduced-motion`. Exemplary. No issues.
+
+### /support — pages/support.html
+Every contact path real and resolving. GitHub Issues (line 158) + Discussions (167) live. mailto links valid: support@/security@/partnerships@/privacy@/legal@/dmca@/abuse@ (lines 183-221). Copy-to-clipboard uses real `navigator.clipboard` with mailto fallback (lines 306-339) — no fake timers. Doc/product links (README, SUPPORT.md, npm, `/ibm`, `/docs`) resolve except `/ibm` (see blog note below — bare `/ibm` has no route).
+- [P2] pages/support.html — link to `/ibm` (bare) has no vercel.json route or file (only `/ibm/x402-demo` is routed). Dead link. Fix: point at `/ibm/x402-demo` or a real IBM landing page, or remove.
+
+### /glossary — pages/glossary.html
+Wired to real data (`/src/glossary/page.js` + `public/glossary.js`), live search, deep-linkable `#term` anchors, designed empty state ("No terms match…", `role="status"`). No issues.
+
+### /events/build-3d-agents-live — pages/events/build-3d-agents-live.html
+Correctly framed as upcoming. Event date 2026-06-23 (JSON-LD lines 45-46, JS 299-300) — 5 days after today; single source drives countdown, Google Calendar link, and LIVE-NOW/replay transition. Live `<agent-3d src="/avatars/default.glb">` asset exists. RSVP uses real `data-newsletter-form` handler. IBM partnership link points to a real external IBM Community blog. No issues.
+
+---
+
+## /blog/*
+
+Sampled 6 posts: `see-your-3d-in-ar` (newest, 2026-06-13), `solana-wallet-integration` (oldest, 2026-04-30), `three-ws-google-cloud-partnership`, `pumpfun-agent-payments-sdk` (SDK), `how-to-embed-3d-onchain-agents` (tutorial), `three-ws-ibm-collaboration`. Plus blog/index.html and full-corpus greps.
+
+Verdict: Coin rule CLEAN across all 30 files (only `$THREE`/`$three` + correct CA). Index is solid. Systemic footer regression and several dead `/ibm/*` links are the main issues.
+
+- [P0] None. Coin grep returned only `$THREE`/`$three` and CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Lowercase `$three` (e.g. three-ws-dextools-social-boost-buyback.html:6) is still $THREE — fine.
+- [P2] blog/three-ws-ibm-collaboration.html, three-ws-ibm-business-partner.html — dead internal links to `/ibm`, `/ibm/galaxy`, `/ibm/oracle`, `/ibm/proof`, `/ibm/trust-layer`, `/ibm/vision`. Confirmed: no vercel.json route and no files; `pages/ibm/` only contains `x402-demo.html` (only `/ibm/x402-demo` is routed at vercel.json:778). Fix: create the pages or repoint links.
+- [P2] Footer missing on ~22 of 28 posts — e.g. solana-wallet-integration.html:99, pumpfun-agent-payments-sdk.html:104, how-to-embed-3d-onchain-agents.html:164, three-ws-google-cloud-partnership.html:93. They load `/footer.css` (line 22) but have NO `<div id="footer-container">` and NO `/footer.js`, so the site footer never renders (dead CSS load, no bottom nav). Only ~6 posts render it. Fix: append footer-container + footer.js to the affected posts.
+- [P2] blog/decision-optimization-3d-ai-crypto.md, blog/internets-second-species.md — orphaned/unreachable. Route regex (vercel.json:3175) `/blog/([a-z0-9-]+)/?` → `/blog/$1.html` only; neither `.md` has an `.html` sibling and neither is linked from index.html, so they cannot be served. Fix: render to `.html` or delete.
+- [P2] RSS subscribe link `/rss/announcements.xml` (index.html:9,61 and several posts) — no generator writes `public/rss/announcements.xml`; not in source, public/, or dist/. Scripts reference the URL but only emit an archive JSON. Likely dead (note: vercel.json:299-304 rewrites `/rss/announcements.xml` and `/rss.xml` → `/api/rss/announcements`, so prod MAY serve it dynamically — verify the function exists before treating as broken). Fix: confirm `api/rss/announcements` function returns valid XML, or add an emit step.
+- [P3] blog/three-ws-play-coin-communities.html exists and is URL-reachable but is NOT linked from index.html (26 listed, this one omitted) — orphaned from discovery. Fix: add to index.
+- [P3] index.html:78 AR-post summary says "a QR code gets you there" while body see-your-3d-in-ar.html:73 says "no QR code to hunt for" — minor copy contradiction.
+- Images: no `<img>` in post bodies; all `og:image` → `https://three.ws/og-image.png` which exists. Shared assets present.
+
+---
+
+## Legal
+
+### /legal/privacy — public/legal/privacy.html
+Solid. Route OK (vercel.json:3338 `/legal/privacy/?` → file). Real complete content (11 sections, 8.5KB, no lorem). Coin grep clean. Links to tos, mailto contacts, `/three.svg`, `/brand.js` resolve. Effective date April 27, 2026.
+- [P3] public/legal/privacy.html:123 — footer "Home" link points to `/marketplace?tab=mine` instead of `/` (TOS uses `/`). Cosmetic mislabel.
+
+### /legal/tos — public/legal/tos.html
+Solid. Route OK (vercel.json:3342). Real content (12 sections, 7.4KB). Coin grep clean. Links resolve. Effective date April 27, 2026.
+- [P3] public/legal/tos.html:6 vs :36/:43 — `<title>` says "Terms of Service" but `og:title`/`twitter:title` say "Terms of Use". Inconsistent metadata. Cosmetic.
+
+---
+
+## Machine-readable
+
+### /sitemap.xml — api/sitemap.js (function)
+Served dynamically: vercel.json:3132 `/sitemap.xml` → `/api/sitemap`. Function exists (`api/sitemap.js`, 3.3KB) and reads `data/pages.json`; per-type sub-sitemaps via `api/sitemap/[type].js`. Non-empty. No issues.
+
+### /llms.txt — public/llms.txt
+Served from generated static file: vercel.json:3179 → `/llms.txt` (= public/llms.txt, 67 KB, generated by `scripts/build-page-index.mjs`). NOT the empty root `llms.txt`. No issues.
+- [P3] Repo-root `llms.txt` (0 bytes) and `docs/llms.txt` / `docs/llms-full.txt` ("Placeholder…") are stale/unused files — NOT served (the served copies live in public/). Harmless but dead; delete to avoid confusion.
+
+### /llms-full.txt — public/llms-full.txt
+Served (vercel.json:3187), 72 KB, generated. No issues.
+
+### /robots.txt — public/robots.txt
+Served (vercel.json:3128). 606 bytes, real disallow rules, points Sitemap at https://three.ws/sitemap.xml and references llms.txt. No issues.
+
+### /openapi.json — api/openapi-json.js (function)
+Served dynamically: vercel.json:307 `/openapi.json` → `/api/openapi-json`. Function exists (35 KB), advertises only x402 (the rail actually settled). Non-empty. No issues.
+
+### /.well-known/x402 — api/wk.js (function)
+Served: vercel.json:359 `/.well-known/x402` → `/api/wk?name=x402`; `x402` and `x402-discovery` handlers present in api/wk.js (63 KB). Static `public/.well-known/` also has openapi.yaml, agent cards, security.txt, etc. Non-empty. No issues.
+
+---
+
+## Group summary
+
+**P0 (0):** None. Coin rule clean everywhere; all critical machine files non-empty and wired.
+
+**P1 (0):** None — every audited route resolves to a real, non-empty file, and the interactive pages (status/support) fetch real data with designed loading/empty/error states.
+
+**Top P2 (content/links to fix):**
+1. Blog footer regression — ~22 of 28 posts load footer.css but omit `#footer-container` + footer.js, so the site footer never renders.
+2. Dead `/ibm/*` links — IBM blog posts (and /support's bare `/ibm` link) point to `/ibm`, `/ibm/galaxy`, `/ibm/oracle`, `/ibm/proof`, `/ibm/trust-layer`, `/ibm/vision`; only `/ibm/x402-demo` exists.
+3. Orphaned posts — `blog/decision-optimization-3d-ai-crypto.md` and `blog/internets-second-species.md` are `.md`-only, unreachable via the `.html`-only blog route.
+4. Orphaned doc — `docs/syndication.md` reachable only via one inline link in listings.md, not the docs nav.
+5. RSS subscribe link `/rss/announcements.xml` — no local generator writes the XML; prod rewrite to `/api/rss/announcements` should be verified.
diff --git a/docs/audits/README.md b/docs/audits/README.md
new file mode 100644
index 000000000..beaa90dde
--- /dev/null
+++ b/docs/audits/README.md
@@ -0,0 +1,60 @@
+# Page Audit — three.ws
+
+A page-by-page audit of every routed surface on three.ws. The goal: find what is
+broken, half-wired, mediocre, or missing — and fix it to the bar in
+[CLAUDE.md](../../CLAUDE.md). One group doc per section; every page gets a row.
+
+## How pages map to files
+
+A route is resolved in two places:
+
+- **Dev:** the `fileMap` and regex routes in [vite.config.js](../../vite.config.js)
+ (`configureServer` → `vercel-rewrites` plugin).
+- **Prod:** rewrites in [vercel.json](../../vercel.json).
+
+So `/forge` → `pages/forge.html`, `/discover` → `public/discover/index.html`, etc.
+Page logic lives in inline `<script type="module">` blocks or sibling modules in
+[src/](../../src) and [public/](../../public). The canonical public inventory is
+[data/pages.json](../../data/pages.json).
+
+## Severity scale
+
+| Sev | Meaning |
+|---|---|
+| **P0** | Broken / violates a hard rule (mock data, fake loading, dead primary CTA, console error, `throw "not implemented"`, references a coin other than $THREE). Fix immediately. |
+| **P1** | Reachable but incomplete: an undesigned empty/error/loading state, a dead secondary link, a real-data path that silently fails, missing a state the rubric requires. |
+| **P2** | Works but mediocre: weak copy, missing hover/focus states, no keyboard path, inconsistent spacing/tokens, no mobile consideration. |
+| **P3** | Opportunity: an adjacent feature that *should* exist, a cross-link that would make the platform feel wired, a polish win. |
+
+## Per-page rubric
+
+Each page is checked against the [Definition of done](../../CLAUDE.md) and:
+
+1. **Loads & wires** — no console errors; primary CTA works; data is real (no
+ mock arrays, no `setTimeout` fake progress, no `sample*` fallbacks).
+2. **States** — loading (skeleton), empty (actionable), error (recoverable),
+ populated, overflow (0 / 1 / 1000 / very-long-name) all designed.
+3. **Navigation** — reachable from nav/links; links out are live; no dead ends.
+4. **Cross-wiring** — connects to related surfaces (e.g. a coin card links to its
+ profile; an agent links to its launches).
+5. **Interaction** — hover/active/focus on every control; keyboard reachable;
+ ARIA where needed.
+6. **Responsive** — sane at 320 / 768 / 1440.
+7. **Coin rule** — references only $THREE; no other token in code, copy, or data.
+
+## Group docs
+
+| Doc | Section | Pages |
+|---|---|---|
+| [01-main.md](01-main.md) | Main entry points | home, discover, gallery, animations, walk, irl, marketplace, collection, skills, community, characters, what-is, sitemap |
+| [02-build.md](02-build.md) | Build / create | start, create, create-agent, forge, scene, compose, pose, app, validation, studio, hydrate, voice, scan, import, features/* |
+| [03-crypto-trading.md](03-crypto-trading.md) | Trading & intel | oracle, activity, leaderboard, trending, trades, claim-wallet, smart-money, radar, coin-intel, watchlist, pump-dashboard, pump-live, pumpfun, pump-visualizer, constellation, strategy-lab |
+| [04-crypto-x402.md](04-crypto-x402.md) | x402 & payments | pay, bazaar, arbitrage, providers, ibm/x402-demo, fact-checker, tutor, unstoppable, shopper, forever, club, agent-exchange, agent-economy, three, three-live |
+| [05-crypto-launch-wallets.md](05-crypto-launch-wallets.md) | Launch & wallets | launch, launches, lookup, gmgn, vanity-wallet, eth-vanity, evm-wallet, coin3d, play/arena, play/agent-wallet, avatar-wallet-chat |
+| [06-labs-agent-account.md](06-labs-agent-account.md) | Labs / agent tools / account | launchpad, brain, lipsync, playground, labs, chat, agent, agents, my-agents, reputation, login, register, dashboard/* |
+| [07-learn-blog-legal.md](07-learn-blog-legal.md) | Docs / blog / legal / machine | docs/*, tutorials/*, status, glossary, support, blog/*, legal/*, machine-readable |
+
+## Master fix list
+
+See [FINDINGS.md](FINDINGS.md) for the consolidated, severity-ranked list of every
+issue across all groups, and what was fixed.
diff --git a/docs/internal/AUDIT-2026-06-18.md b/docs/internal/AUDIT-2026-06-18.md
new file mode 100644
index 000000000..0b4030686
--- /dev/null
+++ b/docs/internal/AUDIT-2026-06-18.md
@@ -0,0 +1,125 @@
+# Project Audit — 2026-06-18
+
+Fact-based health check of the three.ws monorepo, run against the codebase's
+own diagnostic suite plus targeted source inspection. Newest audit; supersedes
+ad-hoc notes. Items that are still open are tracked in
+[ISSUES.md](../../ISSUES.md); human-blocked items live in
+[docs/internal/TODO.md](TODO.md).
+
+## Method
+
+Ran the repo's existing audit tooling (these are the source of truth, not
+guesswork) plus a forbidden-pattern source scan and per-file inspection of the
+flagged sites:
+
+| Check | Command | Result |
+|---|---|---|
+| TypeScript | `npm run typecheck` (`tsc -p jsconfig.json`) | ✅ clean |
+| API handlers export a body | `npm run audit:handlers` | ✅ 872 handlers checked, all export |
+| Page routes documented | `npm run audit:pages` | ✅ 103 routes, all documented (3 legacy pages lack `added` date — cosmetic) |
+| Forbidden patterns (mocks, stubs, fake data, `TODO`, `not implemented`, fake loaders, sample arrays) in shipped source | `grep` sweep of `src api workers sdk solana-agent-sdk agent-payments-sdk` | ✅ clean — every hit was legitimate (animation sampling, input placeholders, instancing dummies, real RPC error strings) |
+| Repo-wide lint | `npm run lint` (`eslint .`) | ⚠️ does not complete — see Finding 2 |
+| character-studio lint | `eslint character-studio` | ⚠️ 6 real runtime bugs (now fixed) + cosmetic debt — see Finding 1 |
+
+`npm test` (vitest + playwright) was **not** run wholesale in this pass — it is a
+heavy browser-matrix suite. The source-level changes here are confined to the
+`character-studio` fork, which has its own test/dev pipeline; the edited files
+pass `node --check` and the fixes are behavior-preserving corrections of
+ReferenceErrors (see Finding 1).
+
+## Top-line conclusion
+
+**The platform is in excellent shape.** First-party source is clean: no mocks,
+no fake data, no stubs, no `TODO`/`not implemented` markers, no fake loaders.
+Type-checking is green and all 872 API handlers and 103 page routes pass their
+structural audits. The only substantive code defects found are six latent
+`ReferenceError`s inside the vendored `character-studio` fork (Finding 1), all
+fixed in this pass. The remaining items are lint hygiene and tooling DX.
+
+---
+
+## Finding 1 — character-studio: 6 latent ReferenceErrors (FIXED)
+
+`character-studio/` is a vendored fork of
+[M3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio) (the avatar
+builder behind `/creator`). It carried six `no-undef` references — each a bare
+identifier that does not exist in scope, so the code path throws `ReferenceError`
+the moment it runs. These are user-reachable (NFT lock checks, wallet collection
+ownership, VRM root-node setup, EVM chain switching). All six are now fixed:
+
+| File | Was | Now | Effect of the bug |
+|---|---|---|---|
+| `src/library/manifestDataManager.js:67` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | `isManifestByIndexNFTLocked()` threw; `isNFTLocked()` takes no arg and the other call sites already call it with none |
+| `src/library/manifestDataManager.js:70` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | same, for the by-identifier path |
+| `src/library/mint-utils.js:292` | `network.toLowerCase() == ethereum` | `network.toLowerCase() === 'ethereum'` | `connectWallet('ethereum'\|'polygon')` threw before it could switch chains; `ethereum` was a bare identifier, not the string |
+| `src/library/vrmManager.js:3,71` | `addChildAtFirst` used, never imported | added to the `./utils` import | `_setupVRM0()` threw on every VRM0 model load; the helper exists in `utils.js` and is imported correctly in `characterManager.js` |
+| `src/library/walletCollections.js:58` | `ownsCollection(wallet, network, …)` | `ownsCollection(wallet, chainName, …)` | `checkForOwnership()` threw; `network` was undefined, the parameter is `chainName` |
+| `src/library/CharacterManifestData.js:877` | `getTraitByIndex(lockFilter = true)` → `collection[index]` | `getTraitByIndex(index, lockFilter = true)` | `TraitModelsGroup.getTraitByIndex()` could never return the right trait; `index` was undefined. The four sibling overloads correctly take `index`; no external callers, so the signature fix is safe |
+
+The two `connection` hits originally listed as candidates in ISSUES.md were
+verified as **false positives** — `connection` is declared locally
+(`const connection = new Connection(rpcUrl)`) at every use site.
+
+### Remaining character-studio lint debt (cosmetic, tracked)
+
+The fork still carries non-runtime lint findings inherited from upstream:
+~118 `no-unused-vars`, ~17 `no-async-promise-executor`
+(`new Promise(async …)` — works, but an anti-pattern), and smaller buckets.
+None throw. These are a mechanical burndown, not correctness bugs, and are
+tracked in ISSUES.md.
+
+---
+
+## Finding 2 — eslint is not CI-practical in this environment (DX)
+
+`npm run lint` (`eslint .` across the whole monorepo) does not complete within a
+4-minute window, and even linting a handful of files is startup-bound to
+>90s in this dev container. The root config
+([eslint.config.js](../../eslint.config.js)) is already correctly scoped (it
+ignores `node_modules`, `dist`, vendored trees, and sub-projects with their own
+flat config), so this is environmental startup cost, not a config bug.
+
+**Impact:** lint is effectively a manual, scoped-only operation today; there is
+no fast `lint` feedback loop and no green/red lint gate in the standard suite.
+
+**Recommendation (not yet applied — needs a perf decision):** add a scoped,
+cache-backed lint script (`eslint <paths> --cache --cache-location
+node_modules/.cache/eslint`) and/or split lint into per-area scripts mirroring
+the existing `audit:*` pattern, so CI can run an incremental lint over changed
+paths rather than the full tree. This is a tooling change with a perf tradeoff,
+left as a recommendation rather than shipped blind.
+
+---
+
+## Finding 3 — human-blocked items (unchanged, surfaced for visibility)
+
+These are not agent-doable and remain open in
+[docs/internal/TODO.md](TODO.md):
+
+- **Resend sending domain** — `three.ws` not yet verified in Resend (SPF/DKIM
+ DNS records). Transactional mail is limited to `[email protected]` via
+ `[email protected]` until done.
+- **`RESEND_AUDIENCE_ID`** — unset, so `/api/newsletter-subscribe` no-ops in
+ production until an audience is created and the UUID added to Vercel env.
+- **3D-Agent mirror PAT** — the push-only mirror needs a fine-grained PAT with
+ Contents: Read/Write on `nirholas/3D-Agent`.
+
+---
+
+## What was changed in this audit pass
+
+- Fixed all six ReferenceErrors in Finding 1 (`character-studio/src/library/`).
+- This document.
+- ISSUES.md updated to reflect the runtime bugs as resolved, leaving only the
+ cosmetic lint burndown open.
+
+## Recommended next work (prioritized)
+
+1. **Burn down the character-studio `no-unused-vars`/`no-async-promise-executor`
+ debt** mechanically, file by file, so the fork lints clean. (Tracked in
+ ISSUES.md.)
+2. **Make lint fast** (Finding 2) so it can rejoin the CI gate.
+3. Clear the human-blocked Resend/mirror items when credentials/DNS are
+ available.
+</content>
+</invoke>
diff --git a/public/changelog.json b/public/changelog.json
index c79c63cc1..efcef3089 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,21 @@
{
- "generated_at": "2026-06-18T10:14:26.500Z",
+ "generated_at": "2026-06-18T22:54:38.919Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-06-18",
+ "type": "update",
+ "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models",
+ "summary": "An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.",
+ "link": "/create/studio",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-18",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index a75893494..2e0422715 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models</title>
+ <link>https://three.ws/create/studio</link>
+ <guid isPermaLink="false">2026-06-18:Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models</guid>
+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.</description>
+ </item>
<item>
<title>Bundle specific skills into your subscription plans</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 4e3d86d56..cb64a9855 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-18T10:14:26.489Z",
+ "generated_at": "2026-06-18T22:54:38.425Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",