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.

Remove prompt scaffolding dirs; cover walking-avatar widget type

nirholas09737024fa49
diff --git a/prompts/agent-studio/00-README-orchestration.md b/prompts/agent-studio/00-README-orchestration.md
deleted file mode 100644
index a170e69e9..000000000
--- a/prompts/agent-studio/00-README-orchestration.md
+++ /dev/null
@@ -1,170 +0,0 @@
-# Agent Studio — Orchestration Index
-
-This directory contains self-contained task prompts. Each `.md` is meant to be pasted
-into its own agent chat. Each agent works in this shared worktree and must follow
-`CLAUDE.md` exactly. **When an agent finishes its task (and its self-improvement pass),
-it deletes its own prompt file.** When this directory is empty, the initiative is done.
-
----
-
-## The vision (read this first — every agent must internalize it)
-
-We are building **Agent Studio**: one central command center where a user completely
-authors their 3D agent — its **brain** (LLM + memory + reasoning), its **money** (wallet
-+ trading behavior), its **body** (avatar, outfits, animations), and its **skills**.
-
-Two non-negotiable product principles drive everything:
-
-1. **Everything is visual.** No hidden text-field config screens. The agent's brain is a
- thing you *see and wire*. Memory is a thing you *watch form*. A trade rule is a thing
- you *draw*. If a feature can be expressed as a manipulable visual object, it must be.
-
-2. **The avatar is always present.** The user's 3D agent is rendered live on **every page**
- of the platform, reacting to what's happening (a pumping coin, a filled snipe, an
- incoming DM). Editing the agent in Studio updates that live presence **instantly,
- everywhere** — no save-and-refresh.
-
-Why this is gamechanging for crypto: today, sniping/trading/launching tools are dashboards
-of numbers. We make the trader a *character with a programmable brain and a memory of every
-trade* that lives alongside you. You don't configure a bot in a YAML file — you raise an
-agent, dress it, teach it, fund it, and watch it work. That is a product nobody else has.
-
-**Bar:** Vercel / Linear / Stripe / Figma quality. If you wouldn't screenshot it, raise it.
-
----
-
-## The product map (what we're building)
-
-```
-/studio ──────────────────────────────────────────────────────────────────┐
-│ PERSISTENT LIVE 3D AVATAR (left/stage) │ EDITING SURFACE (right/tabs) │
-│ - the same agent the user sees site-wide │ ┌─────────────────────────┐ │
-│ - reacts live to every edit │ │ Brain (P1) │ │
-│ - emotes, lip-syncs, poses │ │ Memory (P2) │ │
-│ │ │ Body (P3) │ │
-│ │ │ Money (P4) │ │
-│ │ │ Skills (P1/P4) │ │
-│ │ └─────────────────────────┘ │
-└───────────────────────────────────────────────────────────────────────────┘
- ▲ the SAME avatar presence renders on every other page (P5)
-```
-
----
-
-## Read these two framing docs first
-
-- `00-README-orchestration.md` (this file) — how to run the initiative.
-- `00b-innovation-north-star.md` — **the bar.** What "gamechanging" means, the five invention
- principles, and how the features interlock. Every agent reads it before starting.
-
-## Two waves
-
-- **Wave 1 (P0–P5)** — the foundation: the central studio + the persistent avatar. Necessary, but a
- competitor could imitate it.
-- **Wave 2 (P6–P11)** — the **invention layer**: features only possible because we have an embodied,
- brain-having, money-handling agent with a memory. This is the moat. See the north-star doc.
-
-## Run order & dependencies
-
-**P0 must merge first.** It defines the shell, the shared state store, the global presence
-component, and the schema/API contract everything else binds to. Then Wave 1 (P1–P5) can run in
-**parallel**. Wave 2 (P6–P11) builds on Wave 1 surfaces but each owns distinct files — start each
-once its listed dependencies are in.
-
-### Wave 1 — foundation
-| Prompt | Task | Depends on | Parallel with |
-|---|---|---|---|
-| `01-foundation.md` (P0) | Studio shell, route, `AgentStudioStore`, `<agent-presence>`, schema, API contract | — | run alone first |
-| `02-brain-studio.md` (P1) | Visual programmable **brain graph** + model routing | P0 | P2,P3,P4,P5 |
-| `03-memory-studio.md` (P2) | Tiered **memory**, visual timeline + graph, trade-aware | P0 | P1,P3,P4,P5 |
-| `04-wardrobe-studio.md` (P3) | **Body**: outfits, wearables, animations, live preview | P0 | P1,P2,P4,P5 |
-| `05-wallet-trading-brain.md` (P4) | **Money**: wallet + visual **sniping/trading rules** on real Solana | P0 | P1,P2,P3,P5 |
-| `06-living-presence.md` (P5) | Avatar on **every page**, reactive to live market/trade events | P0 | P1,P2,P3,P4 |
-
-### Wave 2 — invention layer
-| Prompt | Task | Depends on | Parallel with |
-|---|---|---|---|
-| `07-meshy-forge.md` (P6) | **Generate** any avatar/wearable/scene from words or a photo (real Meshy), attach live, mint on-chain | P0, P3 | P7–P11 |
-| `08-mind-palace.md` (P7) | **Walk through** the agent's memory in 3D; it shows why it believes what it believes | P0, P2, P1 | P6,P8–P11 |
-| `09-alpha-network.md` (P8) | Agents meet, publish **verified** calls, earn **on-chain reputation**, copy-trade | P0, P1, P2, P4 | P6,P7,P9–P11 |
-| `10-trade-theater.md` (P9) | Every snipe becomes a cinematic the avatar performs → **shareable clip** (viral loop) | P0, P4, P1, P3, P5 | P6,P7,P8,P10,P11 |
-| `11-director-mode.md` (P10) | **Talk** to reshape the agent; brain graph rewires live | P0, P1, P4 | P6–P9,P11 |
-| `12-agent-dreams.md` (P11) | Agent works the **night shift**, greets you with findings + proposed moves | P0, P1, P2, P4 | P6–P10 |
-
-Max speed: P0 → fan out P1–P5 → as each dependency lands, fan out P6–P11. Wave 2 prompts are written
-to wire **into each other** (Forge trophies ↔ trading/reputation, Theater ↔ network, Dreams ↔ everything);
-the north-star doc has the interlock map. Building silos is a fail — find the connections and wire them.
-
----
-
-## Shared contract (P0 owns these; everyone else consumes them)
-
-P0 publishes a single client module `src/studio/agent-studio-store.js` exporting a reactive
-store. Treat this as the integration seam — do not reach around it.
-
-```js
-import { studio } from '/src/studio/agent-studio-store.js'
-
-studio.agent // current AgentIdentity (live, reactive)
-studio.subscribe(fn) // fn(agent) on any change; returns unsubscribe
-studio.patch(partial) // optimistic local update + debounced PUT /api/agents/:id
-studio.commit() // force-flush pending writes now
-studio.on(event, fn) // 'brain:change' | 'memory:change' | 'body:change' | 'wallet:change'
-studio.emitMarket(evt) // P4/P5: broadcast a live market/trade event to the presence layer
-studio.preview(partial) // ephemeral, non-persisted preview (hover a hat → see it; don't save)
-```
-
-And one custom element, mountable anywhere on any page:
-
-```html
-<agent-presence data-agent-id="…" data-mode="stage|companion|mini"></agent-presence>
-```
-
-It renders the user's live avatar, subscribes to `studio`, and reacts to market events.
-P5 places it across the site; P1–P4 only need to know their edits flow through `studio`
-and the presence updates for free.
-
----
-
-## Hard rules for every agent (these override defaults — see CLAUDE.md)
-
-- **No mocks, no fake data, no placeholders, no TODOs, no stubs.** Wire 100% to real APIs
- (`api/agents.js`, `api/agent-memory.js`, `api/chat.js`, `api/brain/chat.js`, the coin/wallet
- endpoints, Solana RPC, pump.fun). If a credential is missing, find it in `.env` / `vercel env`.
-- **The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name,
- hardcode, or recommend any other coin anywhere. Runtime-supplied mints (user launches,
- launch directories) are the only mechanical exceptions.
-- **Use the design tokens** in `public/tokens.css` — no hardcoded colors/spacing/fonts.
-- **Every state designed:** loading (skeletons), empty (tells user what to do), error
- (actionable), populated, overflow. Hover/active/focus on every interactive element.
-- **Concurrency:** other agents edit `main` in this worktree simultaneously. Stage **explicit
- paths only** (never `git add -A`). Re-run `git status` + `git diff --staged` before committing.
- Stay inside your file-ownership lane (below). If you must touch a shared file, append; don't rewrite.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for the user-visible change.
-- **Verify for real:** `npm run dev` (port 3000), exercise in a browser, check the network tab
- shows real calls with real data, zero console errors. `npm test` still passes.
-- **Then improve, then delete this prompt.** After done: do a self-review pass (the five checks
- in CLAUDE.md), find the single biggest quality gap, fix it, then `rm` your prompt file and
- report what you shipped.
-
----
-
-## File-ownership map (avoid collisions)
-
-- **P0:** `src/studio/agent-studio-store.js`, `src/studio/studio-shell.js`, `pages/studio.html`,
- `src/studio/agent-presence.js` (the custom element), `api/_lib/migrations/*_agent_studio.sql`,
- `data/pages.json` (one entry).
-- **P1:** `src/studio/brain/**`, `api/brain/**` (extend), `api/agents.js` (brain config fields only — append).
-- **P2:** `src/studio/memory/**`, `api/agent-memory.js` (extend), new `api/memory/**`.
-- **P3:** `src/studio/body/**`, builds on `src/avatar-wardrobe.js`, `src/animation-*.js` (consume, don't rewrite).
-- **P4:** `src/studio/money/**`, `api/coin/**` (extend), new `api/trading/**`, `api/_lib/agent-wallet.js` (extend).
-- **P5:** mounts `<agent-presence>` across `pages/*.html` + their `src/*.js` entry points; `src/presence/**`.
-- **P6:** `src/studio/forge/**`, `api/forge/**` (real Meshy proxy; consumes P3 wardrobe).
-- **P7:** `src/mind-palace/**` + a page entry (reads P2 memory + P1 brain; never forks their stores).
-- **P8:** `src/network/**`, `api/network/**` (builds on `contracts/`, `agent-protocol-sdk/`, `multiplayer/`).
-- **P9:** `src/theater/**`, `api/theater/**` (extends `src/viewer/screenshot.js`/framing; consumes P1/P3/P4/P5).
-- **P10:** `src/studio/director/**`, `api/director/**` (compiles to P1 graph + P4 rules; writes P2 memory).
-- **P11:** `src/dreams/**`, `api/dreams/**` (builds on existing scheduler + notification infra).
-
-Shared files touched by multiple prompts (`data/pages.json`, `data/changelog.json`, `api/agents.js`):
-**append only**, never reformat, and re-check `git diff --staged` right before commit.
diff --git a/prompts/agent-studio/00b-innovation-north-star.md b/prompts/agent-studio/00b-innovation-north-star.md
deleted file mode 100644
index 4220ca286..000000000
--- a/prompts/agent-studio/00b-innovation-north-star.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Innovation North Star — read before ANY Agent Studio prompt
-
-This is the doctrine for the whole initiative. Wave 1 (P0–P5) builds the central studio and the
-persistent avatar — necessary, but on its own a competitor *could* copy it. Wave 2 (P6–P11) is the
-**invention layer**: the features that make three.ws impossible to clone, because they only work when
-you have a programmable, embodied, money-handling agent with a memory — which only we have. Every
-agent on this initiative must hold this bar.
-
-## What "gamechanging" means here (and what it doesn't)
-
-**Not gamechanging** (don't ship the obvious version):
-- A settings page with more fields. A chatbot in a corner. A wardrobe like every avatar app. A
- trading dashboard with prettier charts. Anything a user has seen on another site.
-
-**Gamechanging** (the bar): a feature where the **3D body + the LLM brain + the trade memory + real
-money** combine into one experience that is *only possible because all four exist together*. If you
-can describe the feature without mentioning the avatar, the brain, the memory, AND the money, it's
-probably Wave-1-tier — push it further.
-
-## The five invention principles
-
-1. **Embodiment over dashboards.** Anything currently shown as a number, log, or form should be
- considered for expression as something the avatar *does* in 3D space. A filled snipe isn't a toast
- — the avatar performs it. Memory isn't a list — it's a place. A trade rule isn't YAML — it's a
- circuit the agent runs through.
-2. **The agent acts, it doesn't just inform.** Every surface should let the agent *do* the next thing
- (snipe, rebalance, learn, share), with the user's guardrails — not just report and wait.
-3. **Compounding identity.** The agent must get measurably better/richer over time (memory, reputation,
- evolved brain, generated wardrobe) so leaving = loss. Retention is a feature, designed on purpose.
-4. **Social by construction.** Agents are more valuable when they meet other agents — sharing verified
- alpha, competing, copy-trading, gossiping. A network of agents is a moat a single-player app can't match.
-5. **Shareable by default.** Every standout moment (a clean snipe, a rare generated outfit, a brain a
- user is proud of) should produce something they *want* to post — that's our growth loop, built in.
-
-## The Wave 2 inventions (each has its own prompt)
-
-- **P6 Meshy Forge** — generate *any* avatar, wearable, prop, or scene from a sentence or a photo, live,
- and attach it on-chain. Infinite, ownable, AI-native cosmetics. (`07-meshy-forge.md`)
-- **P7 Mind Palace** — the agent's memory is a navigable 3D space you walk through with it; it shows you
- *why* it believes what it believes about a coin. (`08-mind-palace.md`)
-- **P8 Alpha Network** — agents meet, share *cryptographically verified* trade signals, build on-chain
- reputation, and copy-trade each other. Social trading where the traders are agents. (`09-alpha-network.md`)
-- **P9 Trade Theater** — every snipe/launch/win becomes a cinematic 3D scene your avatar performs, auto-
- cut into a shareable clip. The viral loop. (`10-trade-theater.md`)
-- **P10 Director Mode** — talk (voice or chat) to reshape your agent; watch its brain graph physically
- rewire as you speak. Authoring an AI by conversation. (`11-director-mode.md`)
-- **P11 Agent Dreams** — while you sleep, your funded agent researches your watchlist, runs simulations,
- and greets you with a "dream" briefing + proposed moves. (`12-agent-dreams.md`)
-
-## How Wave 2 interlocks (wire these connections — don't build silos)
-
-- Forge (P6) outfits feed the Body tab (P3) and unlock as **trophies** for trade milestones (P4) and
- reputation tiers (P8).
-- Mind Palace (P7) renders the same memories P2 stores and the reasoning from P1's brain graph.
-- Alpha Network (P8) signals flow into P1 brains as inputs and trigger P4 trades; reputation is earned
- from real P4 outcomes.
-- Trade Theater (P9) is triggered by P4 events and narrated using P1's brain + P3's animations, then
- shared to P8's network.
-- Director Mode (P10) compiles to P1's brain graph and P4's trading rules — it's a conversational
- front-end to everything.
-- Agent Dreams (P11) uses P1 brain + P2 memory + P4 trading, runs on scheduled cloud agents, and can
- produce a Theater clip (P9) of what it found.
-
-If your feature doesn't touch at least two other prompts' systems, you're probably building a silo.
-Find the connections and wire them — that interlock is the product.
-
-## Universal rules (every prompt restates these; they override defaults — see CLAUDE.md)
-
-- **No mocks, no fake data, no placeholders, no TODOs, no stubs, no simulated results dressed as real.**
- Wire 100% to real APIs. Find missing creds in `.env` / `vercel env`.
-- **$THREE is the only coin** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name/hardcode/
- recommend another. Runtime-supplied mints only, where the mechanic requires it.
-- **Design tokens** (`public/tokens.css`) only. Every state designed. Hover/active/focus everywhere.
- Accessibility + reduced-motion. Performance budgeted (these are 3D, heavy — lazy-load, dispose, pause offscreen).
-- **Concurrency:** stage explicit paths (never `git add -A`); re-check `git diff --staged` before commit.
- Stay in your file-ownership lane. Append-only on shared files (`data/pages.json`, `data/changelog.json`).
-- **Verify for real:** `npm run dev` (port 3000), exercise in a browser, real calls in the network tab,
- zero console errors, `npm test` passes. Add a holder-readable `data/changelog.json` entry.
-- **Then invent further, then delete your prompt.** After done: self-review (CLAUDE.md's five checks),
- then ask "what would make someone screenshot this?" — build that one thing — then `rm` your prompt file
- and report what you shipped and which other prompts' systems you wired into.
diff --git a/prompts/agent-studio/04-wardrobe-studio.md b/prompts/agent-studio/04-wardrobe-studio.md
deleted file mode 100644
index 28afd1785..000000000
--- a/prompts/agent-studio/04-wardrobe-studio.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# P3 — Body Studio (avatar, outfits, wearables, animations — live preview)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md` and
-`STRUCTURE.md` first. **Prerequisite:** P0 (`01-foundation.md`) is merged. Read the "Integration
-notes for P1–P5" at the top of `src/studio/agent-studio-store.js`. Mount into the **Body** tab.
-Your edits must reflect on the persistent stage avatar **and** the site-wide `<agent-presence>` instantly.
-
-## The vision you are enabling
-
-The agent has a brain (P1) and a memory (P2) — now give it a **body the user loves to dress and
-animate**, all visual, all live. We already have strong primitives: `src/avatar-wardrobe.js`
-(outfits/accessories), `src/agent-accessories.js` (bone-attached items), `pages/compose.html`
-(forge items from text, attach to bones), the animation system (`src/animation-manager.js`,
-`src/animation-presets.js`, `src/runtime/animation-slots.js`, `public/animations/*.glb`), the pose
-studio (`pages/pose.html`), `src/idle-animation.js`, and the `Viewer` (`src/viewer.js`). Plus the
-M3-org **CharacterStudio** fork (`character-studio/`) and the `@three-ws/avatar` SDK (`avatar-sdk/`).
-
-Your job: bring all of this into the **one central place** as the Body tab, with a wardrobe/animation
-experience that feels like Figma-grade direct manipulation — and make every change preview live on
-the agent that's standing right there and everywhere else on the site.
-
-## Your mission
-
-### 1. Wardrobe — outfits & wearables
-- A visual wardrobe: browse owned/available wearables from `public/accessories/` and the real asset
- catalog, drag onto the avatar, snap to bones (build on `src/agent-accessories.js` /
- `src/avatar-wardrobe.js` — consume them, don't rewrite). Layering, color/material tweaks via the
- existing material traversal in `src/viewer/internal.js`.
-- Save outfits as named sets to `meta.studio.body` (P0 contract). Switching outfits updates the live
- avatar + presence with no refresh, via `studio.patch` / `studio.emit('body:change')`.
-- **Live preview without commit:** hovering a wearable calls `studio.preview(...)` so the user sees it
- on the real avatar before saving; leaving reverts. No persisted writes on hover.
-
-### 2. Animations & expression
-- An animation library panel (build on `src/animation-library.js` / `src/widgets/animation-gallery.js`):
- assign clips to slots (idle/greet/celebrate/think/alert — align names with
- `src/runtime/animation-slots.js`). Preview on the live avatar; crossfade via `animation-manager.js`.
-- Let the user set which animation plays on which **event** (e.g. `snipe:filled` → celebrate). These
- event→animation mappings feed P5's presence reactions — define the mapping in `meta.studio.body` and
- emit it through `studio` so the presence layer uses real choices, not hardcoded defaults.
-
-### 3. Standards & interop (research-backed)
-- Evaluate adopting **VRM** as the interoperable body format via **@pixiv/three-vrm**
- (https://github.com/pixiv/three-vrm) so avatars/wearables are portable — we already validate
- on-chain avatar manifests (`packages/avatar-schema/`) and fork CharacterStudio (VRM-based). If you
- adopt VRM, do it cleanly through the existing `Viewer`/loader path and keep GLB working; if you
- decide against a full VRM migration now, wire the wearable-interop *concepts* and say why in a comment.
-- Sources: CharacterStudio https://github.com/M3-org/CharacterStudio , three-vrm
- https://github.com/pixiv/three-vrm , VerseEngine/three-avatar https://github.com/VerseEngine/three-avatar ,
- M3-org/avatar-interop https://github.com/M3-org/avatar-interop .
-
-## Definition of done
-- Wardrobe + animation panels work on the **live** studio avatar with real assets; outfits/anim
- mappings persist to `meta.studio.body` and round-trip; the site-wide presence updates instantly.
-- Hover-preview is ephemeral (no DB writes); save is explicit and real.
-- Performance holds (lazy-load assets, dispose GLTF properly, no leaks across outfit swaps).
-- All states designed (no wearables owned → CTA to forge via `pages/compose.html`; loading skeletons;
- asset load failure → retry). Accessibility: keyboard-selectable wearables, ARIA on controls.
-- No console errors; `npm test` passes; network tab shows real asset/API calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/stubs/TODOs/sample asset arrays. $THREE is the only coin. Design tokens only. Stage explicit
-paths (never `git add -A`); re-check `git diff --staged` before commit. Own `src/studio/body/**`;
-consume (don't rewrite) `src/avatar-wardrobe.js`, `src/agent-accessories.js`, animation modules.
-Coordinate event→animation mappings with P5 via the `studio` contract.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then add the share-worthy touch — e.g. a one-click "outfit from
-a prompt" using the existing compose/forge pipeline, or an emote wheel that fires animations live, or
-seasonal/trophy wearables unlocked by trading milestones (coordinate the unlock signal with P4). Build
-it. Then **delete this prompt file** (`prompts/agent-studio/04-wardrobe-studio.md`) and report what
-you shipped + the `meta.studio.body` shape and the event→animation mapping P5 should read.
diff --git a/prompts/agent-studio/05-wallet-trading-brain.md b/prompts/agent-studio/05-wallet-trading-brain.md
deleted file mode 100644
index 2400821e9..000000000
--- a/prompts/agent-studio/05-wallet-trading-brain.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# P4 — Money & Trading Brain (wallet + visual sniping/trading rules, real Solana)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md` and
-`STRUCTURE.md` first. **Prerequisite:** P0 (`01-foundation.md`) is merged. Read the "Integration
-notes for P1–P5" at the top of `src/studio/agent-studio-store.js`. Mount into the **Money** and
-**Skills** tabs. This is the **gamechanging crypto** prompt — treat it with the most care.
-
-## The vision you are enabling
-
-Other platforms give traders a dashboard of numbers. We give them a **character with a brain (P1), a
-memory of every trade (P2), a body (P3), and now its own money and a visually-programmed trading
-mind.** The user funds their agent, draws its sniping/trading rules as a visual flow, and watches the
-agent execute — celebrating fills, flagging dumps, learning from losses — live, on the avatar that
-follows them across the site. Sniping, trading, launching, buying, selling become something you do
-*with a companion you raised*, not a form you submit. Make this the reason people choose three.ws.
-
-We already have: custodial wallets (`api/_lib/agent-wallet.js` — AES-256-GCM, `generateAgentWallet`,
-`generateSolanaAgentWallet`, `getOrCreateAgentEvmWallet`), the `agent-wallet-chip` component
-(`src/shared/agent-wallet-chip.js`), wallet routes in `api/agents.js`, the coin system (`api/coin/`,
-`api/_lib/coin/distribution.js`, `api/_lib/coin/treasury.js`), pump.fun launch (`pages/launch.html`),
-real Solana RPC, and on-chain skill licenses (`api/_lib/skill-license-onchain.js`).
-
-## Your mission
-
-### 1. Money panel — the agent's wallet, made visual and safe
-- Show the agent's real Solana wallet (balance, holdings, P&L, recent txns from real RPC), the vanity
- prefix/suffix (commit `2486d790c`), and the wallet chip. Fund / withdraw / view-on-explorer flows,
- all real. The private key stays server-side (custodial) — never expose it; reuse the existing
- encryption + CSRF patterns exactly.
-- Designed states: unfunded (clear funding CTA + risk copy), low balance, pending tx, failed tx
- (actionable recovery), empty holdings.
-
-### 2. Trading Brain — visual sniping/trading rules (the centerpiece)
-- A **visual rule builder** where the user composes trading behavior as connected blocks: triggers
- (new launch matches filter, price crosses level, liquidity/holder thresholds, watchlist event),
- conditions (risk caps, max position, cooldowns, rug checks), and actions (snipe/buy/sell/ladder/
- take-profit/stop). This pairs with P1's Brain graph: the **brain reasons, this executes.** Define and
- honor the node/execution interface P1 specified; the agent can ask its LLM brain to approve/scale an
- action before firing.
-- Two modes, both first-class: **assisted** (agent proposes, user one-taps to confirm) and
- **autonomous** (agent executes within hard, user-set guardrails — caps, allowlists, kill switch).
- Autonomy must be explicit, revocable, and auditable. Default to assisted.
-- **Real execution only:** route through the real Solana stack already in the repo (RPC, pump.fun,
- the coin/treasury/distribution libs). Real quotes, real slippage, real signatures, real
- confirmations. No simulated fills, no fake P&L, no paper-trading dressed up as real.
-- Every action writes a **trade memory** (coordinate with P2: `add()` the trade, outcome, and lesson)
- and emits a market/trade event through `studio.emitMarket(...)` so the avatar reacts live and P5's
- site-wide presence shows it.
-
-### 3. Safety, trust, and honesty (non-negotiable for money)
-- Hard guardrails enforced **server-side**, not just UI: max spend per tx/day, allowlist/denylist,
- mandatory rug/honeypot checks before buys, cooldowns, and a global kill switch that halts the agent
- instantly. Never let a config error spend funds — fail safe.
-- Full audit log of every decision + execution, exportable. Clear, non-hyperbolic risk disclosures.
- Never imply guaranteed returns.
-
-## The coin rule (read carefully)
-**$THREE (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin three.ws promotes.** The
-trading engine is generic, coin-agnostic plumbing operating on **runtime-supplied mints** the user
-chooses or that come from launch records — that is the allowed mechanical exception. Do **not**
-hardcode, name, market, seed fixtures with, or recommend any specific non-$THREE mint anywhere in
-source, copy, tests, or commit messages. Synthetic placeholders only in any test
-(e.g. `THREEsynthetic1111…`); never a real mainnet mint.
-
-## Definition of done
-- Money panel shows real on-chain wallet state; fund/withdraw/explorer all real and safe.
-- Visual rule builder composes real triggers/conditions/actions; assisted + autonomous both work with
- enforced server-side guardrails and a working kill switch.
-- Executions are real (real signatures/confirmations), write trade memories (P2), and drive live
- avatar reactions via `studio.emitMarket` (P5).
-- Audit log complete and exportable. All states designed. No fake fills/P&L anywhere.
-- No console errors; `npm test` passes; network tab shows real RPC/pump.fun/coin calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/stubs/TODOs/simulated fills/fake P&L/sample arrays. $THREE is the only coin promoted; engine
-uses runtime mints only — never paste a real third-party mint. Custodial key never leaves the server.
-Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged` before
-commit. Own `src/studio/money/**`, `api/trading/**`, extensions to `api/coin/**` and
-`api/_lib/agent-wallet.js`. Coordinate trade memories with P2, the execution interface with P1, and
-events with P5 via the `studio` contract.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push the edge — e.g. a "rule backtest against real
-historical launches" preview (clearly labeled as historical, never presented as a guarantee), a
-shareable trade card the avatar "presents" on a win, or trophy unlock signals for P3. Build it. Then
-**delete this prompt file** (`prompts/agent-studio/05-wallet-trading-brain.md`) and report what you
-shipped + the guardrail config shape and the market-event types P5 should handle.
diff --git a/prompts/agent-studio/06-living-presence.md b/prompts/agent-studio/06-living-presence.md
deleted file mode 100644
index 9168d4333..000000000
--- a/prompts/agent-studio/06-living-presence.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# P5 — Living Presence (the avatar is alive on every page)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md` and
-`STRUCTURE.md` first. **Prerequisite:** P0 (`01-foundation.md`) is merged — `<agent-presence>` and
-the `studio` store (with `emitMarket`/`onMarket`) exist. Read the "Integration notes for P1–P5" at
-the top of `src/studio/agent-studio-store.js`.
-
-## The vision you are enabling
-
-Our core product principle: **the user's 3D agent is present on every page**, reacting to what's
-happening, so the platform feels alive and the user stays engaged. Studio (P0–P4) is where the agent
-is authored; **your job is to make that agent show up and behave everywhere else** — the launch feed,
-the trading views, discovery, the snipe terminal, the dashboard, the changelog — as a companion that
-emotes, comments, and acts in context. This is the difference between "a website with a mascot" and
-"a living agent that lives with you." Make it feel inevitable, not gimmicky.
-
-## Your mission
-
-### 1. Mount the presence site-wide
-- Place `<agent-presence>` across the platform's pages (`pages/*.html` + their `src/*.js` entry
- points). Pick the right `mode` per surface: `mini` floating companion on dense data pages, larger
- `companion` where the avatar is contextually central. Respect the existing nav/shell
- (`src/next-layout.js`, `public/nav.html`) — integrate, don't fight it.
-- The companion is **the same agent** the user edits in Studio (one identity, one source of truth via
- `studio`). Editing in Studio → presence updates live, no refresh.
-- It must be **opt-out-able and unobtrusive**: draggable, dismissible to a small bubble, position +
- state remembered per user, never covering critical UI, never blocking interaction. Respect
- `prefers-reduced-motion`. Pause rendering when offscreen/tab hidden (P0 set this up — honor it).
-
-### 2. Make it react to real events (the magic)
-- Subscribe to real platform signals and translate them into avatar behavior using the existing
- emotion blend + animations (`src/agent-avatar.js`, the event→animation map P3 stored in
- `meta.studio.body`) and the events P4 emits via `studio.emitMarket`:
- - `snipe:filled` / big win → celebrate + a short, real spoken/typed callout.
- - `position:down` / dump / failed tx → concern + a useful prompt ("cut or hold?").
- - new launch matching the user's watchlist/brain filters → alert + "want me to snipe?".
- - incoming agent-to-agent message / DM → notice + summarize.
-- Reactions must be driven by **real data** (real RPC/feed/launch/trade events already in the repo —
- pump.fun feed, Solana RPC, the trade events from P4). No fake/random "ambient" events dressed up as
- real signals. Idle behavior (breathing/micro-moves via `src/idle-animation.js`) is fine between
- real events.
-
-### 3. Context-aware behavior per page
-- The companion adapts to where the user is: on a coin/launch page it watches that mint and offers
- one-tap actions through the agent's real wallet/trading config (P4); on discovery it can comment on
- what it "remembers" (P2); on the dashboard it surfaces the agent's status. Always provide a one-tap
- path back to `/studio` to edit the relevant aspect.
-- Voice/lip-sync is already available — use it sparingly and tastefully (default muted, user enables).
-
-## Definition of done
-- The user's live agent renders on every major page in an appropriate mode, performant (no scroll
- jank, shared/cached WebGL context, paused when hidden), with real edits reflecting instantly.
-- Reactions fire from **real** market/trade/platform events and map to real emotions/animations.
-- Companion is draggable, dismissible, position-remembered, reduced-motion-aware, never blocks UI,
- fully keyboard accessible, with ARIA.
-- Context actions (snipe/watch/back-to-studio) are wired to the real P2/P4 surfaces — no dead buttons.
-- All states designed (no agent yet → "create your agent" CTA; reconnecting; muted). No console errors;
- `npm test` passes; network tab shows real event sources. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/stubs/TODOs/fake events/random ambient signals presented as real. $THREE is the only coin
-promoted; coin pages use runtime mints only. Design tokens only. Stage explicit paths (never
-`git add -A`); re-check `git diff --staged` before commit — you touch many shared page files, so be
-surgical and append-only where others may be editing. Own `src/presence/**`; mount points across
-pages. Consume P3's event→animation map and P4's market events via the `studio` contract; do not
-rewrite the `<agent-presence>` element P0 owns — extend it through its documented API.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then add the unforgettable touch — e.g. the companion
-"narrating" a live snipe as it executes, or a subtle cross-page continuity where the agent finishes a
-thought it started on the previous page, or a daily "your agent's recap" the avatar presents. Build
-it. Then **delete this prompt file** (`prompts/agent-studio/06-living-presence.md`) and report what
-you shipped + which pages now host the presence and the full event→reaction mapping.
diff --git a/prompts/agent-studio/07-meshy-forge.md b/prompts/agent-studio/07-meshy-forge.md
deleted file mode 100644
index 6abbae35f..000000000
--- a/prompts/agent-studio/07-meshy-forge.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# P6 — Meshy Forge (generate any avatar, wearable, prop, or scene from words)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; works best alongside P3 (Body) — coordinate via the `studio` contract.
-
-## The invention
-
-Every avatar app ships a fixed catalog of cosmetics. We ship an **infinite, AI-native one**: the user
-types "obsidian samurai helmet with neon trim" or drops a photo, and seconds later a real, textured,
-rigged 3D asset is generated, attached to their live agent, and ownable. No catalog can compete with a
-generator. This makes our agents endlessly personal — and gives us a cosmetics economy where every item
-is unique. Combined with the trade engine, rare items become **trophies** earned by performance.
-
-This is gamechanging only if it's truly live and truly owned — generation in-app, attached to the live
-avatar instantly, mintable on-chain. Build that.
-
-## The real integration (no mocks — this is the whole point)
-
-Use **Meshy** for generation. At runtime you have two real paths; prefer the MCP, fall back to REST:
-- **Meshy MCP server** (the `meshy` server connected to this workspace) — discover its tools via
- ToolSearch (`meshy`, `text to 3d`, `image to 3d`) and call them directly.
-- **Meshy REST API** (`https://api.meshy.ai`) with `MESHY_API_KEY` from env/`vercel env`. Real
- capabilities to wire: **Text-to-3D** (preview → refine), **Image-to-3D** (from a user photo/logo),
- **Text-to-Texture** (re-skin an existing GLB), **Auto-rigging/animation**, and **Remesh** (optimize
- poly count for web). All are async: create task → poll status → receive GLB/FBX/USDZ + PBR texture
- URLs. Verify the exact request/response shape against Meshy's live API docs before coding; do not
- assume fields.
-
-Route all generation through a **server-side proxy** in `api/forge/**` (never expose `MESHY_API_KEY`
-to the client), with: job creation, status polling/streaming to the client, cost/rate guarding per
-user, content-safety filtering on prompts, and persistence of finished assets.
-
-## Your mission
-
-### 1. Forge UI (in Studio + reachable from the Body tab)
-- Prompt-to-3D and image-to-3D panels with live progress (real polling, real % — not a fake bar),
- preview turntable, and "attach to avatar" that snaps the result to the right bone via the existing
- `src/agent-accessories.js` / `src/avatar-wardrobe.js` (consume, don't rewrite). The result must
- appear on the **live** studio avatar and the site-wide `<agent-presence>` immediately (`studio.preview`
- then `studio.patch` on save).
-- Re-texture flow: take an existing wearable/avatar GLB and re-skin it via Text-to-Texture.
-- Auto-optimize generated GLBs for the web (Remesh + the existing `src/avatar-studio-optimize.js`) so
- the persistent presence stays performant. Dispose old GPU resources on swap.
-
-### 2. Generate whole avatars, not just accessories
-- A "create my agent's body from a description/photo" flow that produces a rigged avatar compatible with
- the existing `Viewer` + animation slots (`src/runtime/animation-slots.js`). Validate against
- `packages/avatar-schema/` so the result is a first-class avatar, not a one-off.
-
-### 3. Ownership + economy (wire into the platform)
-- Persist generated assets to the user's library (real DB, real storage — check how avatars/assets are
- stored today in `api/` + `public/`). Let the user **mint** a generated item on-chain using the
- existing Metaplex/skill-license patterns (`api/_lib/skill-license-onchain.js`, the avatar manifest
- flow) so cosmetics are real, tradeable property. The only coin promoted is `$THREE`; minting uses the
- platform's existing on-chain plumbing, never a non-$THREE token recommendation.
-- Expose a **trophy hook**: P4 (trading milestones) and P8 (reputation tiers) can grant a Forge
- generation or unlock a rare item. Define a clean grant API; coordinate via the `studio` contract.
-
-## Definition of done
-- Real Meshy generation (MCP or REST) end-to-end: text/image → textured, rigged, web-optimized GLB,
- attached to the live avatar, persisted, optionally minted on-chain. No fake progress, no sample assets.
-- `MESHY_API_KEY` never reaches the client; proxy enforces rate/cost/safety limits.
-- All states designed: empty (prompt ideas/examples), generating (real progress + cancel), failed
- (actionable retry), library full (manage/delete). Accessibility + reduced-motion respected.
-- Performance holds with multiple generated assets equipped (dispose, LOD/remesh, lazy-load).
-- No console errors; `npm test` passes; network tab shows real Meshy + storage + chain calls.
- Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/fake progress/sample assets. $THREE only; on-chain mint uses existing platform plumbing.
-Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged` before
-commit. Own `src/studio/forge/**`, `api/forge/**`; consume P3's wardrobe/accessory modules; expose the
-trophy-grant hook for P4/P8.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. "remix" (fork + re-prompt someone's public
-item), style presets tied to the agent's persona (P1), or a "forge from the coin you just sniped" moment
-that turns a trade into a wearable (coordinate with P4/P9). Build it. Then **delete this prompt file**
-(`prompts/agent-studio/07-meshy-forge.md`) and report what you shipped + the generated-asset format and
-the trophy-grant API for P4/P8.
diff --git a/prompts/agent-studio/08-mind-palace.md b/prompts/agent-studio/08-mind-palace.md
deleted file mode 100644
index 266f302e1..000000000
--- a/prompts/agent-studio/08-mind-palace.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# P7 — Mind Palace (walk through your agent's memory; see why it believes what it believes)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; depends on P2 (Memory Studio) for the real memory store and on P1's
-brain reasoning. Coordinate via the `studio` contract — do not duplicate P2's storage.
-
-## The invention
-
-P2 makes memory visible as a timeline + graph. P7 makes it a **place you walk through with your agent.**
-Instead of reading a list, you step into a 3D "mind palace" where memories are spatial objects —
-clustered by coin, by strategy, by person, by era — and your avatar physically guides you, picks up a
-memory, and explains *why it believes what it believes about a token*: "I'm bearish on this because of
-these three things I remember." This is embodiment over dashboards taken to its conclusion: the most
-intuitive interface to a machine's mind humans have ever had is *space*, and we have the avatar to walk it.
-
-No crypto tool — no AI tool — lets you literally walk inside your agent's reasoning. That's the moat.
-
-## Your mission
-
-### 1. The spatial memory environment
-- A real 3D scene (reuse `src/viewer.js`, the scene-studio primitives in `src/scene-studio/`, and the
- WebXR/AR path in `src/ar/` for an optional immersive mode). Memories from P2's real store render as
- navigable objects; layout is meaningful (semantic clustering via the embeddings P2 already computes —
- recency, salience, entity, topic). No fake nodes — every object is a real memory record.
-- Smooth first-person/orbit navigation, search-to-fly-to, filter by type/coin/time, and level-of-detail
- so thousands of memories stay performant (instancing, frustum culling, lazy detail loading).
-
-### 2. The agent as your guide (the magic)
-- Your live avatar (from P0's presence + `src/agent-avatar.js`) is *in* the palace with you, walking,
- pointing, narrating. Ask it a question ("why do you avoid this kind of launch?") and it pathfinds to
- the relevant memory cluster, gathers the evidence, and explains using P1's real brain over P2's real
- recall — speaking (lip-sync) and emoting. The path it walks = the reasoning chain, made physical.
-- Click any memory to inspect/curate it (edit/pin/forget) — writes go through P2's real API, and the
- brain's belief updates visibly.
-
-### 3. Belief & contradiction surfacing
-- Render the agent's current *beliefs* (e.g. stance on a mint, a strategy it trusts) as structures built
- from supporting memories, with strength shown spatially. Surface contradictions ("two memories
- disagree") as visible tension the user can resolve. This turns memory curation into an intuitive,
- almost physical act and builds real trust in the agent's judgment.
-
-## Definition of done
-- A real, navigable 3D memory space populated entirely from P2's real memory store + embeddings.
-- The avatar guides, narrates (real brain + voice), and pathfinds to evidence for real questions.
-- Inspect/edit/pin/forget all persist through P2's API; beliefs/contradictions reflect real data.
-- Performant at thousands of memories (LOD, instancing, disposal); optional WebXR mode works.
-- All states designed (sparse memory → a small, inviting starter space, not an empty void; huge memory →
- navigable, not overwhelming). Reduced-motion + accessible non-spatial fallback list view.
-- No console errors; `npm test` passes; network tab shows real memory/brain calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/fake memory nodes. $THREE only; coin memories use runtime mints. Design tokens only. Stage
-explicit paths (never `git add -A`); re-check `git diff --staged` before commit. Own `src/mind-palace/**`
-and a page entry; read P2's memory API and P1's brain — never fork their stores.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. a "time-lapse" walk showing how the agent's
-view of a coin evolved (ties to P2's memory replay), shared guided tours of a public agent's mind, or an
-AR mode where the palace appears in the user's room (`src/ar/`). Build it. Then **delete this prompt
-file** (`prompts/agent-studio/08-mind-palace.md`) and report what you shipped + how you consumed P2/P1.
diff --git a/prompts/agent-studio/09-alpha-network.md b/prompts/agent-studio/09-alpha-network.md
deleted file mode 100644
index 3464d1628..000000000
--- a/prompts/agent-studio/09-alpha-network.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# P8 — Alpha Network (agents that meet, verify each other's calls, and copy-trade)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; integrates deeply with P1 (brain), P2 (memory), P4 (trading). This is
-the strongest moat in the initiative — a network effect no single-player app can copy. Build it carefully.
-
-## The invention
-
-Single agents are useful. A **society of agents** is a market. P8 turns every user's agent into a node
-in a live network where agents: meet in shared 3D spaces, **broadcast cryptographically verified trade
-calls** (not screenshots — provable on-chain track records), build **on-chain reputation** from real
-outcomes, **subscribe to / copy-trade** agents that earn trust, and gossip alpha. Crypto "alpha groups"
-today are unverifiable Telegram chats full of liars. We make the callers **agents with on-chain,
-tamper-proof performance** — and let your agent automatically act on the ones it has learned to trust.
-
-This only works because we already have embodied agents, real wallets, real trade history, and on-chain
-identity. Nobody else has the pieces. Make it real, verifiable, and safe.
-
-## The real foundation in this repo (build on it — don't reinvent)
-- **Multiplayer** spaces: `multiplayer/` (shared 3D presence) — agents meet here.
-- **On-chain identity & reputation:** `contracts/` (ERC-8004 agent identity), `contracts/agent-invocation/`
- (verifiable agent-to-agent invocation events), `agent-protocol-sdk/`. Reputation must be derived from
- **on-chain, verifiable** data, not a mutable DB number.
-- **Trade truth:** P4's real executions + wallet history (real Solana RPC) are the source of every
- performance claim. A "call" links to verifiable on-chain results.
-
-## Your mission
-
-### 1. Verifiable signals (the integrity core)
-- An agent can publish a **call** (a stance/action on a runtime mint) that is cryptographically signed by
- its on-chain identity and anchored so outcomes are provable against real chain data. Build the publish
- + verify pipeline on `contracts/agent-invocation/` + `agent-protocol-sdk/`. Anyone can independently
- verify a track record — no trust required. No fabricated stats, ever; every number traces to chain.
-- Reputation = a transparent function of verified outcomes (hit rate, realized P&L, risk-adjusted),
- computed from on-chain truth, with the formula shown to users.
-
-### 2. The network surfaces
-- **Discovery/leaderboard** of agents ranked by *verified* performance, filterable by style (sniper,
- scalper, researcher). Each card shows the live avatar (P0 presence), verifiable stats, and recent calls.
-- **Shared 3D spaces** (`multiplayer/`): agents gather; the user's avatar can "visit" and watch others'
- activity. Embodiment over a feed of text.
-- **Follow / subscribe / copy-trade:** with hard, user-set guardrails (reuse P4's server-side limits +
- kill switch). Copy-trading routes through P4's real execution with the follower's own caps — the
- follower's brain (P1) can be set to auto-accept, ask-first, or filter signals before acting. Default ask-first.
-- Signals feed **into P1 brains** as inputs and **into P4** as proposed actions; outcomes write **P2
- memories** ("agent X's calls have been good on this kind of launch"). Wire these connections.
-
-### 3. Anti-abuse & honesty (non-negotiable — this involves money + reputation)
-- Sybil/wash resistance (stake, identity, or cost to publish), spam limits, and clear disclosure that
- past verified performance is not a guarantee. Make manipulation expensive and detectable. Copy-trading
- must never bypass the follower's guardrails. Server-enforced, not UI-enforced.
-
-## Definition of done
-- Agents publish signed calls; anyone can verify track records against real on-chain data. No fabricated stats.
-- Reputation is computed from verifiable outcomes with a transparent formula.
-- Leaderboard, shared 3D space, follow/subscribe/copy-trade all work with real data and enforced guardrails.
-- Signals flow into P1 brains, trigger P4 trades (within caps), and write P2 memories.
-- Anti-sybil/anti-wash measures real and enforced server-side. Honest, non-hyperbolic disclosures.
-- All states designed; performant multiplayer presence; accessible. No console errors; `npm test` passes;
- network tab shows real chain + RPC + multiplayer calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/fabricated stats/sample leaderboards. $THREE is the only coin promoted; calls reference runtime
-mints only — never recommend a specific non-$THREE token. Copy-trading respects follower guardrails
-server-side. Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged`
-before commit. Own `src/network/**`, `api/network/**`; build on `contracts/`, `agent-protocol-sdk/`,
-`multiplayer/`; integrate with P1/P2/P4 via the `studio` contract.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. agent "guilds" that pool verified alpha,
-prediction-style markets on agents' calls, or a "trust graph" visualization of which agents your agent
-has learned to believe (ties to P7's mind palace). Build it. Then **delete this prompt file**
-(`prompts/agent-studio/09-alpha-network.md`) and report what you shipped + the signal/reputation schema
-P1/P4 should consume.
diff --git a/prompts/agent-studio/10-trade-theater.md b/prompts/agent-studio/10-trade-theater.md
deleted file mode 100644
index b3c8f6481..000000000
--- a/prompts/agent-studio/10-trade-theater.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# P9 — Trade Theater (every snipe becomes a cinematic your agent performs, and you share)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; triggered by P4 (trading events), uses P1 (brain narration) + P3
-(animations) + P5 (presence). Coordinate via the `studio` contract.
-
-## The invention
-
-This is our growth loop. Today a winning trade is a number you screenshot. We turn it into a **short
-cinematic your 3D agent performs** — it reacts to the fill, narrates the thesis (from its real brain +
-memory), the camera moves, the win lands — auto-cut into a clean, branded, shareable clip. Crypto is a
-culture of flexing PnL; we give the best flex on the internet, and every share is an ad for three.ws
-that only we can produce because only we have an embodied agent that was actually *there* for the trade.
-
-Gamechanging test: the clip must be something a trader genuinely *wants* to post, generated from a
-**real** trade with **real** numbers — never a fabricated highlight.
-
-## Your mission
-
-### 1. Real-time embodied trade moments
-- Subscribe to P4's real trade/market events via `studio.onMarket` (`snipe:filled`, big win, new launch
- matched, dump, etc.). On a notable event, stage a short scene in 3D: the avatar reacts (emotion blend +
- P3 animations), the camera choreographs (reuse `src/viewer/framing.js` + scene-studio camera tools),
- and the agent says a real, grounded line (P1 brain over P2 memory — the actual thesis, not filler).
-- This plays live in P5's presence layer when it happens, and is **recorded** for sharing.
-
-### 2. Recording + auto-edit pipeline (real, no fake footage)
-- Capture the real 3D scene to video (canvas capture / `MediaRecorder` / the existing screenshot tooling
- in `src/viewer/screenshot.js` extended to motion). Compose: intro card with real trade stats (mint,
- entry, multiple, realized PnL — all from real chain data via P4), the performed reaction, an outro with
- the user's agent + a subtle three.ws mark. Generate vertical (9:16) and square cuts.
-- Server-side render path in `api/theater/**` for higher-quality/offline renders where browser capture
- is insufficient; persist clips to real storage; one-tap share/download with correct OG/social metadata.
-
-### 3. Make it personal and tasteful
-- Style follows the agent's persona (P1) and current outfit (P3) — a sniper's clip feels different from a
- researcher's. The line the agent speaks is true to its memory and the actual trade. Templates the user
- can pick/customize. Never overstate results; losses can get an honest, classy "took the L" cut too
- (optional, user-controlled) — authenticity shares better than fake hype.
-
-## Definition of done
-- Real trade events produce a real performed 3D scene with grounded narration, live in presence + recorded.
-- Auto-edit produces share-ready vertical/square clips with **real** stats from chain data; share/download
- works with correct social metadata. No fabricated footage or numbers, ever.
-- Server render path works where browser capture falls short; clips persist to real storage.
-- Performance: recording never jank the live app; renders are async with real progress. Reduced-motion +
- accessible (captions on narration, non-video summary fallback).
-- All states designed (no trades yet → explain; render failed → retry). No console errors; `npm test`
- passes; network tab shows real event + storage calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/fake footage/fabricated stats. $THREE is the only coin promoted; clips reference the runtime mint
-the user actually traded — never recommend another token, and never put a non-$THREE ticker in templates/
-copy. Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged` before
-commit. Own `src/theater/**`, `api/theater/**`; consume P1/P3/P4/P5 via the `studio` contract; extend
-(don't rewrite) `src/viewer/screenshot.js` and framing.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. a weekly auto-montage of the agent's best real
-moments, posting straight to the user's socials via real APIs (with consent), or letting a Theater clip be
-forged into a commemorative wearable (P6) or posted to the Alpha Network (P8). Build it. Then **delete this
-prompt file** (`prompts/agent-studio/10-trade-theater.md`) and report what you shipped + the event→scene
-mapping and clip format.
diff --git a/prompts/agent-studio/11-director-mode.md b/prompts/agent-studio/11-director-mode.md
deleted file mode 100644
index 62313f3ed..000000000
--- a/prompts/agent-studio/11-director-mode.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# P10 — Director Mode (talk to your agent to reshape it; watch its brain rewire live)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; compiles to P1's brain graph and P4's trading rules — coordinate via
-the `studio` contract and the node/execution interfaces P1/P4 published.
-
-## The invention
-
-Authoring an AI today means editing prompts, configs, and node graphs by hand. P10 lets the user **author
-by conversation**: they talk (voice or chat) to their agent — "be more aggressive on fresh launches but
-never risk more than 2% per trade, and remember I hate rug-prone devs" — and the agent (a) understands,
-(b) **rewires its own brain graph and trading rules in front of you**, with the P1 nodes physically
-animating into their new configuration, and (c) confirms what changed and why. You're directing a being,
-not filling a form. It's the most natural agent-authoring interface possible, and it makes the whole
-studio approachable to non-technical traders without dumbing anything down.
-
-Gamechanging test: a user who never opens the node editor can still build a sophisticated agent purely by
-talking to it — and an expert can watch every change land precisely in the graph.
-
-## Your mission
-
-### 1. Conversational authoring engine
-- Voice + chat input. Voice uses the real STT/TTS already wired in the repo (the agent already speaks via
- lip-sync — reuse `voice_provider`/`voice_id`/`voice_model` on the agent and the existing chat/voice
- proxies; do not add a new vendor without cause). Default to the latest Claude models for the reasoning
- (see CLAUDE.md / the claude-api skill).
-- The agent interprets intent into **concrete, structured edits** against P1's brain-graph format and
- P4's trading-rule/guardrail schema — not freeform prose dumped into a persona field. Use real tool/
- function calling so edits are typed and validated, then applied through `studio.patch` and P1/P4's APIs.
-- It must handle ambiguity by asking a crisp clarifying question (spoken + shown), and it must **refuse or
- flag** edits that would breach safety limits (e.g. removing a stop, exceeding spend caps) — money safety
- from P4 is enforced server-side regardless of what the user says.
-
-### 2. Live rewiring visualization (the wow)
-- As edits apply, P1's brain graph **animates the change**: nodes added/removed/reconnected, the active
- diff highlighted, with an inline plain-language summary ("I increased launch aggression, added a 2%
- per-trade cap, and saved a memory about avoiding those devs"). The user sees cause → effect instantly.
-- Every change is reversible: an undo/redo timeline of conversational edits, and a "diff vs. yesterday"
- view so the user always understands how their agent drifted.
-
-### 3. Closed loop with memory + behavior
-- Preferences stated in conversation become real P2 memories (so the agent remembers *why* it's configured
- this way). The reshaped agent's new behavior reflects immediately on the live avatar (P0 presence) and
- in subsequent trades (P4). Test it on the spot: "show me how you'd handle this launch now."
-
-## Definition of done
-- Voice + chat authoring produces real, typed, validated edits to P1 brain graph + P4 rules via real APIs.
-- Brain graph animates the diff live; plain-language summary is accurate; undo/redo + diff-vs-prior work.
-- Safety limits enforced server-side even against direct user instruction; ambiguity → clarifying question.
-- Conversational preferences persist as real P2 memories; new behavior reflects on the live avatar + trades.
-- All states designed (mic denied → chat fallback; misunderstood → graceful re-ask). Accessible (captions,
- keyboard, reduced-motion). No console errors; `npm test` passes; network tab shows real STT/LLM/API
- calls. Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/fake transcription/unvalidated freeform edits. $THREE only. Money-safety enforced server-side.
-Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged` before commit.
-Own `src/studio/director/**`, `api/director/**`; compile to P1's graph + P4's rules via their published
-interfaces; write memories via P2.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. a "coach my agent after a trade" loop where the
-user debriefs a real result and the agent proposes a concrete rule change (ties to P4/P2), or scheduled
-voice check-ins (ties to P11). Build it. Then **delete this prompt file**
-(`prompts/agent-studio/11-director-mode.md`) and report what you shipped + the edit/diff format.
diff --git a/prompts/agent-studio/12-agent-dreams.md b/prompts/agent-studio/12-agent-dreams.md
deleted file mode 100644
index 60c70671c..000000000
--- a/prompts/agent-studio/12-agent-dreams.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# P11 — Agent Dreams (your agent works the night shift and greets you with what it found)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/agent-studio/00b-innovation-north-star.md` first. **Prerequisites:**
-P0 (`01-foundation.md`) merged; uses P1 (brain), P2 (memory), P4 (trading/wallet), and optionally
-P9 (Theater). Coordinate via the `studio` contract.
-
-## The invention
-
-Your agent shouldn't go idle when you close the tab. P11 gives it a **night shift**: while you're away,
-your funded agent autonomously researches your watchlist, monitors fresh launches against your brain's
-criteria, runs simulations, manages within your guardrails, and forms conclusions — then greets you on
-return with a **"dream"**: a short, embodied briefing where your avatar walks you through what happened,
-what it learned, and the moves it proposes (or, within limits, already took). It's the compounding-identity
-and agent-acts principles made literal: the agent gets more valuable every night, and you wake up to alpha
-instead of a blank dashboard.
-
-Gamechanging test: a user logs in after 8 hours away and their agent has genuinely useful, real,
-verifiable findings + concrete proposed actions — produced autonomously, safely, from real data.
-
-## The real foundation (build on it)
-- **Scheduled autonomous runs:** use the platform's real scheduled/cloud-agent mechanism (check the repo
- for existing cron/worker/scheduled-agent infra in `workers/`, `api/`, and any scheduling already wired;
- do not invent a parallel scheduler if one exists). Runs are real background jobs, not setTimeout theater.
-- **Real inputs:** pump.fun feed, Solana RPC, the Alpha Network signals (P8), the user's watchlist + brain
- criteria (P1), and memory (P2). Every finding traces to real data.
-- **Safe action:** any trade the agent takes overnight goes through P4's real execution **and** its
- server-side guardrails + kill switch. Default to *propose, don't execute* unless the user explicitly
- enabled bounded autonomy.
-
-## Your mission
-
-### 1. The night-shift engine
-- A configurable autonomous loop: what to watch, how hard to dig, how much (if any) it may act, and hard
- spend/risk caps. Runs on the real scheduler as background jobs; resumable; fully audited. It researches
- (LLM over real feeds), simulates scenarios, and records conclusions as real P2 memories with provenance.
-- Strict safety: never exceed caps, honor the kill switch, log every decision. Fail safe — a research
- error must never cause an unintended trade.
-
-### 2. The "dream" — an embodied morning briefing
-- On the user's return, the avatar (P0 presence) delivers a short, designed briefing: what it watched,
- what changed, what it learned (new P2 memories), what it did within limits (with the audit trail), and
- a ranked list of **proposed actions** the user can approve with one tap (routing to P4). Use real voice/
- lip-sync + emotion. Optionally render the highlight as a Theater clip (P9).
-- A "dream journal" history so the user can review past nights, accept/reject proposals, and see how the
- agent's reasoning improved over time (ties to P2 / P7 mind palace).
-
-### 3. Notify + close the loop
-- Use the platform's real notification channels (check existing notification/alert infra — the repo
- already has a real-time alert/automation engine; integrate, don't duplicate) to ping the user when a
- dream contains something time-sensitive. Approved proposals execute through P4; outcomes feed back into
- P2 memory and P8 reputation.
-
-## Definition of done
-- Real scheduled autonomous runs against real feeds/RPC; conclusions stored as real, sourced P2 memories.
-- Overnight actions (if enabled) go through P4 execution + guardrails + kill switch, fully audited; default
- is propose-only.
-- Embodied morning briefing delivered by the live avatar with real findings + one-tap proposals to P4.
-- Dream journal history; real notifications for time-sensitive items via existing infra.
-- All states designed (autonomy off → research-only dreams; nothing notable → an honest "quiet night");
- no fabricated findings. No console errors; `npm test` passes; network tab + job logs show real work.
- Changelog entry added.
-
-## Operating rules (override defaults)
-No mocks/setTimeout fake jobs/fabricated findings. $THREE only; watchlist/launches use runtime mints —
-never recommend a specific non-$THREE token. Overnight money-safety enforced server-side; default
-propose-only. Design tokens only. Stage explicit paths (never `git add -A`); re-check `git diff --staged`
-before commit. Own `src/dreams/**`, `api/dreams/**`; build on existing scheduler + notification infra;
-integrate P1/P2/P4/P8/P9 via the `studio` contract.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Then push it — e.g. let the user set a "dream prompt" the agent
-chases each night, weekly recap dreams, or collaborative dreams where networked agents (P8) pool overnight
-findings. Build it. Then **delete this prompt file** (`prompts/agent-studio/12-agent-dreams.md`) and report
-what you shipped + the scheduler/notification hooks you used.
diff --git a/prompts/billion-dollar-program/00-README.md b/prompts/billion-dollar-program/00-README.md
deleted file mode 100644
index 7d2fc4b3f..000000000
--- a/prompts/billion-dollar-program/00-README.md
+++ /dev/null
@@ -1,151 +0,0 @@
-# three.ws — Production → $1B Program
-
-> **Read this file in full before running any prompt in this folder.** Every prompt
-> here (`01-*` … `44-*`) assumes the context below — do not re-derive it. Each prompt
-> is a single, self-contained task meant to be pasted into its own fresh agent chat.
-
-> **Note on this folder.** This is one complete, deduplicated, coherent 44-prompt
-> program. Sibling folders under `prompts/` (e.g. `road-to-1b/`, `production-1b/`,
-> `samples/`, `production-readiness/`) are parallel drafts generated concurrently —
-> this folder (`billion-dollar-program/`) is the consolidated, authoritative set.
-> If you only run one program, run this one.
-
-## What this is
-
-A sequenced program to take **three.ws** from "feature-rich but uneven" to
-**production-grade and ready to scale to a $1B platform**. Each numbered file is one
-self-contained task. Run them roughly in phase order — later phases assume earlier
-ones are done — but any single prompt can be run independently.
-
-This program is about **finishing, hardening, polishing, and growing what already
-exists** so the platform is correct, reliable, fast, accessible, secure, observable,
-and conversion-optimized. Net-new feature invention lives in the sibling folders
-(`feature-innovation/`, `moonshots/`, `inventions/`).
-
-## The bar (non-negotiable — applies to every prompt)
-
-Every prompt inherits the operating rules in **`/CLAUDE.md`**. Re-read it. The rules
-that matter most here:
-
-- **No mocks, no fake data, no placeholders, no TODOs, no stubs.** If you touch it,
- finish it. Real APIs, real endpoints, real data.
-- **No "good enough."** Fix mediocrity the moment you see it.
-- **No errors without solutions.** Every error has a root cause; find it and fix it.
- Ship working fallbacks and failsafes, never lazy propagation. Never leak a vendor's
- internal state (e.g. a provider's billing page) to an end user.
-- **Every state is designed** — loading, empty, error, populated, overflow.
-- **The only coin is `$THREE`** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
- Never reference any other coin anywhere. See `/CLAUDE.md` for the two
- runtime-data-only mechanical exceptions.
-- **Adopt vetted OSS over hand-rolling**; add hardening to new/unprotected paths
- rather than refactoring working code. Prefer the existing **cockatiel** resilience
- helper for retries/circuit-breakers.
-- **Definition of done**: the checklist in `/CLAUDE.md` must be true. If you can't
- verify a step, say so explicitly — never claim done you can't verify.
-
-## How to run a prompt
-
-1. Open a fresh chat in this repo.
-2. Paste the prompt file contents, or reference it: "Execute
- `prompts/billion-dollar-program/NN-*.md`".
-3. Let the agent work end-to-end. It should use `TodoWrite` for multi-step work,
- exercise UI in a real browser (`npm run dev`, port 3000), and run the relevant tests.
-4. Spot-check against the prompt's **Acceptance** section.
-5. Commit + push only when the user asks (the agent pushes to **both** remotes,
- `threeD` and `threews`, per `/CLAUDE.md`).
-
-## Repository orientation (so every prompt starts from truth)
-
-- **`STRUCTURE.md`** maps every product surface to its directory. Read it before
- exploring the ~60 top-level dirs.
-- Frontend: vanilla JS modules + Vite (`npm run dev`, port 3000). `pages/*.html`
- (~168 pages), `src/` (~810 modules), `public/`.
-- Backend: Vercel functions in `api/` (~960 handlers), Cloudflare workers in
- `workers/` (18). Routing, functions, crons, headers, env all in `vercel.json`.
-- 3D: Three.js + glTF/GLB. Avatar/animation pipeline under `public/animations/`,
- `src/glb-canonicalize.js`, `src/animation-retarget.js`. Model workers in
- `workers/model-*`. The avatar rule in `/CLAUDE.md` is law (no rig allowlist).
-- Tests: `npm test` = `vitest run && playwright test` (456 vitest files). `npm run
- lint` (eslint), `npm run typecheck` (tsc on jsconfig). CI is `.github/workflows/ci.yml`
- with jobs: **lint**, **test**, **guards** (`check-api-not-bundled`, `check:images`,
- `build:pages`), **typecheck** (advisory).
-- Changelog: every user-visible change gets an entry in `data/changelog.json`, then
- `npm run build:pages` regenerates `CHANGELOG.md` + `public/changelog.{json,xml}`.
-- **Lean on the existing audit tooling — do not reinvent it:** `audit:deploy`,
- `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`, `check:images`,
- `seo:meta`, `verify`, `verify:solana`, `verify:onchain`, `smoke:onchain`,
- `smoke:mcp`, `snapshot`. (See `package.json` scripts.)
-- Resilience helpers and payments plumbing already exist in `api/_lib/` (x402-spec,
- x402-paid-endpoint, agent-wallet, secret-box, rate-limit, forge-health). Build on them.
-
-## Known traps (from `/CLAUDE.md`)
-
-- **Concurrent agents share this worktree.** Stage explicit paths only (never
- `git add -A`). Re-check `git status` before committing.
-- **`npx vercel build` overwrites `api/*.js` in place** with esbuild bundles. Check
- `head -1` for `__defProp`/`createRequire` before committing a large `api/` diff.
-- **Never pull/fetch/merge from the `threeD` remote** — it is push-only.
-
-## Phases & index
-
-**Phase 0 — Foundation (stop the platform from lying about "done")**
-- `01` Test suite green + CI gate
-- `02` Dead paths & broken links — every button works, every link resolves
-- `03` Zero console errors & warnings across all pages
-- `04` No-mocks / no-fake-data / no-TODO / no-stub sweep
-- `05` Secrets & env hygiene
-
-**Phase 1 — Cross-cutting production hardening**
-- `06` Error handling & resilience (`api/` + `workers/`)
-- `07` Security hardening (authz, input validation, headers, SSRF)
-- `08` Rate limiting & abuse prevention
-- `09` Accessibility (WCAG 2.2 AA)
-- `10` Performance & Core Web Vitals
-- `11` Mobile responsiveness (320 / 768 / 1440)
-- `12` Every state designed (loading / empty / error / overflow)
-- `13` Design-system consistency (tokens, spacing, typography, theming)
-- `14` SEO & structured data
-
-**Phase 2 — Product surface completeness (each end-to-end)**
-- `15` Forge / Text→3D / Avatar generation pipeline
-- `16` Marketplace
-- `17` Agent profiles, Agent Studio & economy
-- `18` Wallet & x402 payments
-- `19` Walk companion, Page-Agent & Feature Tour
-- `20` Scene Studio & Animation Studio
-- `21` Avatar creator / Character Studio / Selfie→avatar
-- `22` Pump.fun launch, Oracle, trading & $THREE surfaces
-- `23` MCP servers (production-ready)
-- `24` SDK publishing & docs
-- `25` Worlds & Coin Clash (token-gated 3D)
-
-**Phase 3 — Scale, infra, observability**
-- `26` Observability (logging, metrics, error tracking)
-- `27` Database integrity & migrations
-- `28` Deploy pipeline & rollback safety
-- `29` Uptime monitoring & public status page
-- `30` Load & stress testing
-- `31` Solana RPC & on-chain resilience
-- `32` Caching, CDN & R2 asset strategy
-
-**Phase 4 — Growth to $1B**
-- `33` Onboarding & activation funnel
-- `34` Home / landing conversion
-- `35` Pricing & monetization surfaces
-- `36` Growth analytics instrumentation
-- `37` Developer experience & docs site
-- `38` Referral & virality loops
-- `39` Trust, safety & moderation
-- `40` Legal, compliance, ToS & privacy
-- `41` i18n completion
-- `42` PWA & offline & notifications
-- `43` Brand, press & social proof
-- `44` Launch-readiness review (the final gate)
-
-## Prompt anatomy
-
-Each file has: **Why this matters for $1B**, **Mission**, **Map** (where things
-live — trust but verify; files move), **Do this** (ordered steps), **Must-not**
-(guardrails), and **Acceptance** (a checklist that must be all-true before claiming
-done). If a path is stale, find the real one and proceed — never stop because a path
-was wrong.
diff --git a/prompts/billion-dollar-program/01-test-suite-green-and-ci-gate.md b/prompts/billion-dollar-program/01-test-suite-green-and-ci-gate.md
deleted file mode 100644
index 945ca83d4..000000000
--- a/prompts/billion-dollar-program/01-test-suite-green-and-ci-gate.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 01 — Test suite green + CI gate
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-CI is the only thing standing between a green checkmark and a money-path
-regression reaching production. Right now the suite is large (458 vitest files +
-a Playwright e2e set) but the gate is soft: lint allows the warning backlog and
-typecheck is advisory (`continue-on-error: true`). A platform that ships real
-USDC payments cannot tolerate "passing" CI that lets type errors and lint
-warnings through. Make the suite genuinely green and reliable, then ratchet the
-gate so "green" actually means "safe to merge."
-
-## Mission
-
-Get `npm test` (`vitest run && playwright test`) fully green and non-flaky, then
-deliver a concrete, staged plan (and the first ratchet step) to flip the advisory
-typecheck job to a hard gate and tighten eslint to `--max-warnings 0`.
-
-## Map (trust but verify — files move)
-
-- **CI definition** — [.github/workflows/ci.yml](../../.github/workflows/ci.yml).
- Jobs: `lint` (`npx eslint .`), `test` (`npx vitest run`), `guards`
- (`check-api-not-bundled` + `check:images` + `build:pages`), `typecheck`
- (advisory, `continue-on-error: true`).
-- **Vitest config** — [vitest.config.js](../../vitest.config.js). Note the
- 120s test/hook timeouts and `MAX_FORKS` cap for small CI/Codespace hosts.
-- **Playwright config** — [playwright.config.js](../../playwright.config.js).
- `testDir: tests/e2e`, `retries: 1`, `fullyParallel: false`, dev-server cold
- budget 180s. Specs in [tests/e2e/](../../tests/e2e).
-- **Scripts** — [package.json](../../package.json): `test`, `test:core`
- (`--maxWorkers=1`), `test:gate` ([scripts/test-gate.mjs](../../scripts/test-gate.mjs),
- the curated deploy-critical subset), `lint`, `lint:fix`, `typecheck`
- (`tsc -p jsconfig.json`).
-- **Typecheck scope** — [jsconfig.json](../../jsconfig.json): `checkJs: false`,
- opt-in via `// @ts-check` pragma; `include` is the ratchet allowlist.
-- **Lint config** — [eslint.config.js](../../eslint.config.js).
-- **Source guards** — [scripts/check-api-not-bundled.mjs](../../scripts/check-api-not-bundled.mjs),
- [scripts/audit-image-loading.mjs](../../scripts/audit-image-loading.mjs) (`check:images`).
-
-## Do this
-
-1. Run `npx vitest run` and capture every failure. Fix each at the root — never
- `.skip` a real test to go green. If a test depends on live credentials that
- are absent locally, confirm it is already guarded; if not, gate it cleanly on
- env presence rather than deleting it.
-2. Re-run failing files in isolation (`npx vitest run path/to/file.test.js`) and
- 3x in a row to separate true failures from flakes. For flakes, find the cause
- (shared global state, real timers, unmocked I/O, fork contention) and fix it —
- do not just bump a timeout. `vitest.config.js` already sets generous ceilings.
-3. Start the dev server (`npm run dev`, port 3000) and run `npx playwright test`.
- Fix e2e failures at the source. Honor `fullyParallel: false` and the cold-start
- budget; do not lower assertions to pass.
-4. Confirm the guards job is green: `node scripts/check-api-not-bundled.mjs`,
- `npm run check:images`, `npm run build:pages`.
-5. Run `npm run lint` and count warnings. Burn the backlog down with `npm run
- lint:fix` for auto-fixables, then hand-fix the rest — no blanket
- `eslint-disable` of whole files. Track the count before and after.
-6. Run `npm run typecheck`. Catalog the errors by file. Fix the cheap ones now
- and add `// @ts-check` + the file to `jsconfig.json` `include` as you bring each
- clean (the ratchet rule the jsconfig comment describes).
-7. Write the staged ratchet plan into this task's report: (a) flip eslint to
- `--max-warnings 0` in `ci.yml` once the count hits 0; (b) flip typecheck's
- `continue-on-error` to `false` once `npm run typecheck` is clean. Land whichever
- ratchet is already achievable (likely eslint) in `ci.yml` now.
-8. Re-run the full `npm test` once more end-to-end to confirm a clean, repeatable
- green before claiming done.
-
-## Must-not
-
-- Do not skip, delete, or weaken a test to make CI green — fix the code or the test.
-- Do not flip typecheck/eslint to a hard gate while errors/warnings remain; that
- breaks every other agent's PR. Ratchet only when the count is actually zero.
-- Do not commit a `vercel build`-bundled `api/*.js` (check `head -1` for `__defProp`).
-- Do not reference any coin other than `$THREE` in any test or fixture.
-- Do not mask flakiness with retries or longer timeouts in place of a real fix.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npx vitest run` passes locally with zero failures, repeatable across 3 runs.
-- [ ] `npx playwright test` passes against `npm run dev` with no skipped real specs.
-- [ ] `guards` job commands all pass (`check-api-not-bundled`, `check:images`, `build:pages`).
-- [ ] Current eslint warning count is recorded and reduced (target 0); any
- achievable ratchet (`--max-warnings 0`) is landed in `ci.yml`.
-- [ ] A concrete, staged plan to flip the typecheck gate is documented, with the
- first ratchet step applied or explicitly blocked-and-explained.
-- [ ] No coin other than `$THREE` introduced; no new mocks/stubs/TODOs.
-- [ ] If a step could not be verified locally (e.g. live-cred e2e), it is called
- out explicitly rather than claimed.
diff --git a/prompts/billion-dollar-program/02-dead-paths-and-broken-links.md b/prompts/billion-dollar-program/02-dead-paths-and-broken-links.md
deleted file mode 100644
index 89d7acf71..000000000
--- a/prompts/billion-dollar-program/02-dead-paths-and-broken-links.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 02 — Dead paths & broken links
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Nothing kills trust faster than a button that does nothing or a link that 404s.
-With ~125 pages, ~810 src modules, and ~961 api handlers, dead-ends accumulate
-silently — a nav entry to a page that no longer exists, an `<a href="#">` that
-was never wired, a CTA whose handler was deleted. Every dead path is a leak in
-the conversion funnel and a screenshot of brokenness. `/CLAUDE.md` is explicit:
-"If a button exists, it must work. If a link exists, it must go somewhere."
-
-## Mission
-
-Audit every interactive element and route so that every button does something,
-every `<a href>`/route resolves to a live destination, and every nav entry goes
-somewhere real — then fix or remove every dead-end found.
-
-## Map (trust but verify — files move)
-
-- **Full-site audit harness** — [scripts/page-audit.mjs](../../scripts/page-audit.mjs)
- (`npm run audit:web`). Drives real Chromium over every page in desktop + mobile,
- records failed network requests, HTTP >= 400, missing `<title>`, and **empty
- links/buttons**. Writes `reports/page-audit-<ts>.{json,md}`.
-- **Route-documentation guard** — [scripts/audit-page-index.mjs](../../scripts/audit-page-index.mjs)
- (`npm run audit:pages`). Cross-checks `vercel.json` routes against
- [data/pages.json](../../data/pages.json); flags pages with no manifest entry.
-- **Empty-handler guard** — [scripts/audit-empty-handlers.mjs](../../scripts/audit-empty-handlers.mjs)
- (`npm run audit:handlers`). Fails on any `api/*.js` that is empty or exports
- nothing (Vercel routes to it but it can never respond).
-- **Routing & headers** — [vercel.json](../../vercel.json) (rewrites/routes for
- pretty paths and dynamic routes).
-- **Navigation source of truth** — [public/nav-data.js](../../public/nav-data.js)
- (`NAV_GROUPS`, every menu item's `href`), rendered by
- [public/nav.js](../../public/nav.js), styled by [public/nav.css](../../public/nav.css).
-- **Surfaces to crawl** — [pages/](../../pages) (~125 `*.html`), [src/](../../src)
- (~810 modules), [public/](../../public).
-
-## Do this
-
-1. Start `npm run dev` (port 3000) and run `BASE_URL=http://localhost:3000 npm run
- audit:web`. Open the generated `reports/page-audit-*.md` and triage every
- empty-link/empty-button finding and every HTTP >= 400 / requestfailed entry.
-2. Run `npm run audit:pages --strict` and `npm run audit:handlers`. Fix every gap:
- a flagged empty handler is either implemented (real response) or deleted with
- its route; a route missing from `data/pages.json` gets a manifest entry.
-3. Walk every `href` in [public/nav-data.js](../../public/nav-data.js) `NAV_GROUPS`
- and the top-level links. For each, confirm the destination resolves to a live
- page (in the browser, not just file existence). Fix or remove dead entries —
- nav is the single source of truth, so a broken entry breaks it everywhere.
-4. Grep the codebase for placeholder links and no-op handlers and resolve each:
- `href="#"`, `href="javascript:void(0)"`, `onclick=""`, `<a>` with no href,
- `<button>` with no listener. Wire the real action or remove the element.
-5. Cross-check dynamic routes (agent profiles, dashboards, `/launches`, marketplace
- detail pages) — click through from a list view into a detail view and back.
- The "list links to detail" connection in `/CLAUDE.md` must hold.
-6. For any page that legitimately can't resolve yet (e.g. a feature behind auth or
- a not-yet-built surface), make the entry point honest: gate it, label it, or
- remove it — never leave a live link to a dead place.
-7. Exercise the primary CTAs in a real browser (Forge "Generate", marketplace
- "Buy", wallet "Connect", launch flow): every one performs a real action, not a
- silent failure. Watch the Network tab to confirm real calls fire.
-8. Re-run `npm run audit:web`, `npm run audit:pages --strict`, and `npm run
- audit:handlers`; confirm the dead-path findings are cleared. Add a
- `data/changelog.json` entry for any user-visible fix, then `npm run build:pages`.
-
-## Must-not
-
-- Do not "fix" a broken link by pointing it at the homepage — route it to the
- correct destination or remove the element.
-- Do not delete a working feature to silence an audit finding; understand first.
-- Do not introduce mocks, stubs, TODOs, or `href="#"` placeholders.
-- Do not reference any coin other than `$THREE` in nav, copy, or links.
-- Do not edit working code paths you didn't need to touch — additive fixes only.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run audit:web` reports zero empty-link / empty-button findings and no
- unexplained HTTP >= 400 across the crawled pages.
-- [ ] `npm run audit:pages --strict` and `npm run audit:handlers` both exit clean.
-- [ ] Every `href` in `public/nav-data.js` resolves to a live page in the browser.
-- [ ] No `href="#"`, `javascript:void(0)`, or no-op handler remains on a shipped
- interactive element.
-- [ ] Primary CTAs (Forge, marketplace, wallet, launch) perform real actions with
- real network calls, verified in a real browser.
-- [ ] Existing tests still pass (`npm test`); changelog updated for visible fixes
- and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/03-zero-console-errors.md b/prompts/billion-dollar-program/03-zero-console-errors.md
deleted file mode 100644
index caf69420c..000000000
--- a/prompts/billion-dollar-program/03-zero-console-errors.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# 03 — Zero console errors & warnings
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A console full of red is a tell that the team doesn't sweat the details — and
-the warnings are often real bugs wearing a yellow coat (a 404'd asset, a failed
-fetch with a swallowed error, a React/Three.js misuse that leaks memory). Across
-~125 pages, every console error is a paper cut on the perceived quality of the
-platform and a hint to a savvy user that something is broken under the hood.
-`/CLAUDE.md`'s definition of done requires "No console errors. No console
-warnings from your code."
-
-## Mission
-
-Load every page, capture all console errors and warnings (plus uncaught
-exceptions and failed requests), and fix each at the source — no suppression,
-no `console.warn` muting, no try/catch that just swallows.
-
-## Map (trust but verify — files move)
-
-- **Full-site console audit** — [scripts/page-audit.mjs](../../scripts/page-audit.mjs)
- (`npm run audit:web`). Drives real Chromium over every page (desktop + mobile)
- and records `console.error`/`console.warn`, `pageerror` (uncaught exceptions),
- `requestfailed`, and HTTP >= 400. Output: `reports/page-audit-<ts>.{json,md}`.
- Targets via `BASE_URL` (default `https://three.ws`; use `http://localhost:3000`).
-- **Visual snapshot harness** — [scripts/page-snapshot.mjs](../../scripts/page-snapshot.mjs)
- (`npm run snapshot`). Full-page Chromium screenshots of every page — useful to
- confirm a console fix didn't break the render.
-- **Page manifest (the page list both harnesses crawl)** — [data/pages.json](../../data/pages.json).
-- **e2e specs** — [tests/e2e/](../../tests/e2e) (Playwright). Existing specs like
- `club.spec.js`, `nav-auth.spec.js` already assert no page errors on key flows.
-- **Surfaces** — [pages/](../../pages) (~125 `*.html`), [src/](../../src) (~810
- modules), [public/](../../public). Shared boot/nav: [public/nav.js](../../public/nav.js).
-
-## Do this
-
-1. Start `npm run dev` (port 3000) and run `BASE_URL=http://localhost:3000 npm run
- audit:web`. Read `reports/page-audit-*.md` and build a per-page list of every
- console error, warning, uncaught exception, and failed request.
-2. Triage by root cause, not by page. The same offender (a missing favicon, a bad
- import, a deprecated Three.js API, an unguarded `null` access) usually fires on
- many pages — fix it once at the source.
-3. For each finding, fix the cause: 404'd asset → correct the path or ship the
- asset; failed fetch → handle the error at the boundary with a designed error
- state (per `/CLAUDE.md`), never an empty catch; deprecation warning → migrate to
- the current API; `null`/`undefined` access → guard the real data flow.
-4. Never silence. Do not delete `console.warn` calls, wrap noise in
- `try{}catch{}`, or filter the audit's output to hide a finding. The bar is no
- warnings *from our code*; legitimate third-party noise must be understood and
- documented, not blanket-suppressed.
-5. Pay special attention to the heavy 3D pages (Forge, Scene Studio, Club, Walk):
- WebGL context warnings, texture/format issues, and animation-retarget warnings
- are real signals. Cross-check against the avatar rule in `/CLAUDE.md`.
-6. Re-run `npm run audit:web` after each batch of fixes and confirm the count
- drops toward zero. Spot-check fixed pages live with the browser console open.
-7. Run `npm run snapshot` on the pages you changed and eyeball the screenshots to
- confirm no fix introduced a visual regression.
-8. Run the e2e specs that assert clean console (`npx playwright test`) and the unit
- suite (`npx vitest run`). Add a `data/changelog.json` entry if any fix is
- user-visible (e.g. a previously-broken feature now works), then `npm run build:pages`.
-
-## Must-not
-
-- Do not suppress, filter, or delete console output to make the count drop — fix
- the cause.
-- Do not wrap errors in empty `try/catch` or swallow rejected promises.
-- Do not introduce mocks, stubs, fake data, or TODOs while fixing.
-- Do not reference any coin other than `$THREE` in any copy or asset you touch.
-- Do not refactor working modules beyond what the fix requires — additive, surgical.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run audit:web` reports zero `console.error`, zero `console.warn` from
- our code, zero `pageerror`, and no unexplained failed requests across pages.
-- [ ] Every fix addresses a root cause; no suppression, output filtering, or empty
- catch was used to hide a finding.
-- [ ] Heavy 3D pages (Forge, Scene Studio, Club, Walk) load clean in a real browser
- with the console open.
-- [ ] `npm run snapshot` of changed pages shows no visual regression.
-- [ ] `npx vitest run` and `npx playwright test` pass.
-- [ ] Changelog updated for any user-visible fix and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/04-no-mocks-no-stubs-sweep.md b/prompts/billion-dollar-program/04-no-mocks-no-stubs-sweep.md
deleted file mode 100644
index 99b9a34d0..000000000
--- a/prompts/billion-dollar-program/04-no-mocks-no-stubs-sweep.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 04 — No-mocks / no-fake-data / no-TODO / no-stub sweep
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-`/CLAUDE.md`'s hard rules are absolute: no mocks, no fake data, no placeholders,
-no TODOs, no stub functions, no `setTimeout` fake-loading, no fallback sample
-arrays shipped to production. Every one of these is a promise the product can't
-keep — a "feature" that secretly renders canned data, a progress bar that fakes
-work, a handler that quietly does nothing. A $1B platform cannot ship a single
-one. This sweep finds and eliminates them across the real source tree.
-
-## Mission
-
-Quantify every shortcut marker in shipped source, then fix or delete each one so
-the codebase contains no TODO/FIXME, no `not implemented`, no production
-mock/fake/sample arrays, and no fake `setTimeout` loading — per `/CLAUDE.md`.
-
-## Map (trust but verify — files move)
-
-- **Shipped source to sweep** — [api/](../../api) (~961 handlers), [src/](../../src)
- (~810 modules), [public/](../../public), [workers/](../../workers) (18). Exclude
- test files (`*.test.js`, `*.spec.js`), `node_modules`, and vendored dirs.
-- **Hard rules reference** — [/CLAUDE.md](../../CLAUDE.md) "Hard rules
- (non-negotiable)" §1–6 and "The only coin — $THREE".
-- **Empty-handler guard (catches stub handlers)** — [scripts/audit-empty-handlers.mjs](../../scripts/audit-empty-handlers.mjs)
- (`npm run audit:handlers`): fails on any `api/*.js` that exports nothing.
-- **Resilience helpers to use instead of fakes** — [api/_lib/](../../api/_lib)
- (`forge-health.js`, `x402-spec.js`, `rate-limit.js`; `cockatiel` for real
- retries/circuit-breakers — never a `setTimeout` stand-in).
-- **Baseline marker counts (re-measure first — they drift):** ~62 `// TODO`
- comments, ~6 `FIXME`, ~2 `const sample|mock|fake = [...]` arrays, ~7
- `setTimeout` calls near `progress`/`loading`/`width` in `src/`, 0
- `throw … not implemented`. Confirm with the greps below before you start.
-
-## Do this
-
-1. **Quantify first.** Run, and record the exact counts (re-run at the end to
- prove zero):
- - TODO/FIXME: `grep -rIn --include='*.js' --include='*.mjs' --include='*.html' -E 'TODO|FIXME' api src public workers | grep -v node_modules`
- - not implemented: `grep -rIn -iE "not implemented|notImplemented|throw new Error\(['\"\`].*not impl" api src public workers`
- - prod sample/mock/fake arrays: `grep -rIn -E 'const (sample|mock|fake|dummy)[A-Za-z]*\s*=\s*\[' api src public workers`
- - fake loading: `grep -rIn -E 'setTimeout' src | grep -iE 'progress|loading|fake|width'`
- - commented-out code blocks and `implement later`/`stub`/`placeholder`.
-2. **TODO/FIXME — implement or delete.** For each, either build the real behavior
- the comment describes, or remove it if it's stale. No TODO survives. If a
- comment documents a genuine known limitation, convert it to honest user-facing
- handling (designed error/empty state), not a silent gap.
-3. **Stub functions / empty handlers — finish them.** Run `npm run audit:handlers`;
- any flagged file gets a real implementation or is deleted along with its route.
- Hunt for functions that `return null`/`return []`/do nothing where the caller
- expects real data, and wire them to the real API.
-4. **Production sample/mock/fake arrays — replace with real fetch.** Any
- `const sampleAgents = [...]` or fallback array rendered to users must become a
- real call to the live endpoint, with designed loading/empty/error states.
- Mocks belong only in `tests/` — leave those alone.
-5. **Fake `setTimeout` loading/progress — make it real.** Replace simulated
- progress and `setTimeout` "loading" with progress driven by the actual async
- operation (real fetch/stream/poll). If the operation has no progress signal,
- use an honest indeterminate indicator (skeleton/spinner), not a faked bar.
-6. **Commented-out code — delete or implement.** Per `/CLAUDE.md` §3, no
- commented-out code in committed work.
-7. **`throw new Error("not implemented")` — implement it.** None should exist; if
- the grep surfaces any, build the real path.
-8. **Verify and log.** Re-run every grep from step 1 and confirm zero in shipped
- source. Run `npm run audit:handlers`, `npx vitest run`, and exercise any
- surface you changed in a real browser (`npm run dev`). Add a `data/changelog.json`
- entry for any user-visible change (e.g. a screen that now shows real data), then
- `npm run build:pages`.
-
-## Must-not
-
-- Do not touch or remove mocks inside `tests/` — those are legitimate test doubles.
-- Do not delete a feature to make a marker disappear; build the real version.
-- Do not swap one shortcut for another (e.g. a sample array for a hardcoded
- constant) — wire the real data source.
-- Do not reference any coin other than `$THREE` in any replacement data, fixture,
- or copy; use the $THREE CA or a clearly-synthetic placeholder.
-- Do not refactor working code beyond what removing the marker requires.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Start-of-task marker counts are recorded; end-of-task re-run shows **zero**
- TODO/FIXME/`not implemented`/prod sample-array/fake-`setTimeout` markers in
- `api`, `src`, `public`, `workers` (tests excluded).
-- [ ] `npm run audit:handlers` exits clean (no empty/export-less handlers).
-- [ ] Every former mock/sample surface now fetches real data with designed
- loading/empty/error states, verified in a real browser.
-- [ ] No commented-out code remains in the files touched.
-- [ ] No coin other than `$THREE` introduced anywhere.
-- [ ] `npx vitest run` passes; changelog updated for user-visible changes and
- `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/05-secrets-and-env-hygiene.md b/prompts/billion-dollar-program/05-secrets-and-env-hygiene.md
deleted file mode 100644
index f0a1dc981..000000000
--- a/prompts/billion-dollar-program/05-secrets-and-env-hygiene.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# 05 — Secrets & env hygiene
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-This platform holds custody keys, x402 payment routing addresses, RPC and AI
-provider credentials, and a Telegram bot token. A single leaked secret in git
-history is a wallet drain or a takeover — the kind of incident that ends a $1B
-trajectory overnight. Equally damaging in slow motion: an undocumented env var
-that makes a surface silently fail in production because nobody knew to set it.
-Both must be closed: nothing secret committed, everything required documented.
-
-## Mission
-
-Ensure `.env.example` documents every env var the code actually reads, no secret
-is committed or sits in git history, anything ever exposed is rotated, and the
-required env per surface is documented.
-
-## Map (trust but verify — files move)
-
-- **Centralized env access** — [api/_lib/env.js](../../api/_lib/env.js). Lazy by
- design: `req()` throws at first use on a missing var, `opt()`/`addr()` for
- optional/address values. This is the canonical inventory of what the backend reads.
-- **Env template** — [.env.example](../../.env.example) (~246 documented vars,
- grouped by surface; copy to `.env.local` for dev). The doc that must stay in
- sync with what the code reads.
-- **Secret handling** — [api/_lib/secret-box.js](../../api/_lib/secret-box.js)
- (encryption at rest), [api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js)
- (custody key derivation/spend guards).
-- **Deploy env surface** — [vercel.json](../../vercel.json) (functions, crons,
- headers; env is set in the Vercel dashboard, not committed).
-- **Ignore rules (already block .env files)** — [.gitignore](../../.gitignore)
- (lines for `.env`, `.env.local`, `.env*.local`, `.env*`, etc.).
-- **Note:** there is currently **no** dedicated secret-scan workflow in
- [.github/workflows/](../../.github/workflows) — installing one is in scope.
-
-## Do this
-
-1. **Build the read-set.** Grep every `process.env.X`, `req('X')`, `opt('X')`,
- `addr(env.X)` across [api/](../../api), [src/](../../src), [workers/](../../workers),
- and [scripts/](../../scripts). Dedupe into the authoritative list of vars the
- code reads. `api/_lib/env.js` is the spine; capture the rest too.
-2. **Reconcile with `.env.example`.** Diff the read-set against
- [.env.example](../../.env.example). Add every read-but-undocumented var with a
- one-line comment (purpose, format, whether required), grouped under its surface.
- Mark each as required/optional. Remove entries for vars no longer read.
-3. **Scan working tree + history for committed secrets.** Run a real scanner —
- `npx gitleaks detect --no-banner` (or `npx --yes @trufflesecurity/trufflehog
- git file://. --only-verified`). Triage every hit: real secret vs. test fixture
- vs. example placeholder. Treat the $THREE CA and clearly-synthetic placeholders
- as non-secrets.
-4. **For any real secret found committed or in history:** rotate it at the provider
- immediately, update the value in Vercel/Upstash/etc. (never in the repo), and
- document the rotation in this task's report. A scrubbed value that was ever
- pushed is already compromised — rotation is non-negotiable; removal alone is not.
-5. **Confirm `.gitignore` coverage.** Verify every `.env*` variant and any local
- key/credential file is ignored (`git check-ignore .env .env.local`). Add any
- gap. Ensure no `.env*` file is currently tracked (`git ls-files | grep -E '\.env'`).
-6. **Document required env per surface.** For each major surface (Forge/text→3D,
- wallet/x402, pump.fun/Oracle, MCP, Solana RPC), list the vars it needs to
- function so an operator knows what to set. Keep this in `.env.example` group
- comments — the existing file is already grouped by surface; extend that pattern.
-7. **Verify graceful degradation.** Confirm a surface with a missing optional var
- fails honestly (designed error/clear log) rather than crashing unrelated
- endpoints — the lazy `req()` pattern in `env.js` exists for exactly this; check
- it holds for any var you add.
-8. **Add a secret-scan CI gate** (no GitHub Actions secret scan exists today): a
- `gitleaks` job in [.github/workflows/ci.yml](../../.github/workflows/ci.yml) so
- future pushes are blocked on a committed secret. Run `npx vitest run` to confirm
- nothing broke. Add a `data/changelog.json` entry only if a user-visible/security
- change resulted, then `npm run build:pages`.
-
-## Must-not
-
-- Do not commit any real secret, key, or token — values live in Vercel/Upstash,
- not the repo. `.env.example` holds placeholders only.
-- Do not "fix" an exposed secret by deleting it from the file without rotating it
- at the provider — an exposed secret is a compromised secret.
-- Do not paste a real coin's mint/creator/holder address anywhere; the only coin
- is `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-- Do not introduce mocks, stubs, or TODOs; do not weaken `env.js` guards.
-- Do not log secret values in any new error path you add.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every env var read by `api/`, `src/`, `workers/`, `scripts/` is documented in
- `.env.example` (purpose + format + required/optional), grouped by surface.
-- [ ] `gitleaks`/`trufflehog` scan of working tree **and** history is clean (or
- every finding triaged as a non-secret placeholder, documented).
-- [ ] Any real secret ever committed is rotated at the provider and the rotation
- is recorded; no secret value sits in the repo or history.
-- [ ] No `.env*`/credential file is tracked; `.gitignore` covers all variants.
-- [ ] Required-env-per-surface is documented so an operator can configure cleanly.
-- [ ] A secret-scan CI gate is added to `ci.yml`; `npx vitest run` passes.
-- [ ] Only `$THREE` referenced; changelog updated if any user-visible/security
- change resulted and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/06-error-handling-resilience.md b/prompts/billion-dollar-program/06-error-handling-resilience.md
deleted file mode 100644
index e49144767..000000000
--- a/prompts/billion-dollar-program/06-error-handling-resilience.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# 06 — Error handling & resilience (api/ + workers/)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A $1B platform never dies because an upstream blinked. Solana RPC throttles, OpenAI
-returns a 529, pump.fun times out, an image provider 502s — and the user must still
-get a fast, honest, recoverable result, never a hung spinner or a leaked vendor stack
-trace. `/CLAUDE.md` is explicit: **no errors without solutions; ship working fallbacks
-and failsafes; lazy error propagation is not engineering.** Resilience is what turns
-demo-grade into platform-grade.
-
-## Mission
-
-Wrap every external call in `api/` and `workers/` in a timeout + retry + circuit
-breaker via the existing **cockatiel** helper, handle errors only at the boundaries
-(network, user input) while internal code trusts itself, and guarantee no unhandled
-promise rejection and no provider internals ever reach a user.
-
-## Map (trust but verify — files move)
-
-- **Resilience helper (build on this — do not re-roll)** — [api/_lib/resilience.js](../../api/_lib/resilience.js):
- `withBreaker(name, fn, { fallback, threshold, halfOpenAfterMs })`, `isCircuitError`.
- It is the ONLY current cockatiel consumer — that is the gap this prompt closes.
-- **Boundary error envelope** — [api/_lib/http.js](../../api/_lib/http.js): `wrap()`
- (catches unhandled rejections, redacts keyed RPC URLs from 5xx bodies, emits a
- correlation `ref`), `serverError`, `respondError`, `redactUrl`.
-- **LLM provider chain** — [api/_lib/llm.js](../../api/_lib/llm.js) (`llmComplete`,
- anthropic/openai/nvidia/groq fetch at lines ~95/169/183/238),
- [api/_lib/llm-health.js](../../api/_lib/llm-health.js) (probe timeouts).
-- **Solana RPC failover** — [api/_lib/solana/rpc-fallback.js](../../api/_lib/solana/rpc-fallback.js)
- (`createRpcFallback`, rotation + cooldown), [api/_lib/solana/connection.js](../../api/_lib/solana/connection.js),
- [api/_lib/helius.js](../../api/_lib/helius.js), [api/_lib/onchain.js](../../api/_lib/onchain.js).
-- **Other upstreams** — pump.fun (`frontend-api-v3.pump.fun`, `gmgn.ai`),
- [api/_lib/birdeye.js](../../api/_lib/birdeye.js), [api/_lib/aixbt.js](../../api/_lib/aixbt.js),
- Telegram/IPFS/Pinata. Image/3D providers in [workers/](../../workers): `model-trellis`,
- `model-hunyuan3d`, `model-triposg`, `rembg`, `texture`, `unirig`.
-- **MCP error masking** — [api/_lib/mcp-error-sanitize.js](../../api/_lib/mcp-error-sanitize.js)
- (`sanitizeToolError`), used by [api/_lib/mcp-dispatch.js](../../api/_lib/mcp-dispatch.js).
-- **Tests** — [tests/resilience.test.js](../../tests/resilience.test.js),
- [tests/api/mcp-resilience.test.js](../../tests/api/mcp-resilience.test.js),
- [tests/api/pump-trending-resilience.test.js](../../tests/api/pump-trending-resilience.test.js).
-
-## Do this
-
-1. **Inventory raw external calls.** `grep -rnE "fetch\(|new Connection\(|axios" api/
- workers/` and cross-reference the host list (`grep -rhoE "https://[a-z.-]+" api/
- workers/`). Mark every site that hits Solana RPC, an LLM proxy, an image/3D
- provider, pump.fun/gmgn, Birdeye, or Telegram/IPFS. That set is your work queue.
-2. **Every external call gets a timeout.** Any `fetch` without `signal:
- AbortSignal.timeout(ms)` (or equivalent) is a bug — a hung socket stalls the lambda.
- Add a tight, intent-appropriate timeout (probes ~5s, generations longer).
-3. **Wrap each upstream in a named breaker.** Use `withBreaker('pumpfun:trending',
- () => …, { fallback, threshold, halfOpenAfterMs })` so an outage fails fast instead
- of every request paying the full timeout. Name breakers per logical upstream.
- Provide a real `fallback` (cached value, neutral empty result) — never silently null.
-4. **Solana goes through the failover path.** Confirm RPC reads/writes use
- `createRpcFallback`/`rpc-fallback.js` (rotation + cooldown), not a bare
- `new Connection(url)`. Retire any one-off connection that bypasses rotation.
-5. **No unhandled promise rejections.** Verify every Vercel handler is wrapped by
- `wrap()` (or equivalent try/catch at the boundary). Audit fire-and-forget calls
- (`void something()`, background telemetry) — every floating promise needs a
- `.catch`. Internal pure functions stay un-try/catched; trust them.
-6. **Mask every vendor internal.** Boundary errors must map to neutral, actionable
- copy via the `http.js` envelope (and `sanitizeToolError` for MCP). No raw stack,
- no keyed RPC URL, no provider billing/quota text, no 402/credit message reaches the
- client. Raw detail lives only in `console.error` + the `ref`.
-7. **Add coverage for each new failure mode.** Extend `tests/resilience.test.js` (and
- the mcp/pump resilience tests) so timeout, open-circuit, 429/529, and fallback are
- asserted. Run `npx vitest run tests/resilience.test.js tests/api/*resilience*.test.js`.
-8. **Sanity-check live.** `npm run dev`, exercise a forge generation and a pump/oracle
- read with the network throttled; confirm graceful degrade, no console errors, real
- elapsed time. If anything is user-visible, add a `data/changelog.json` entry (tag
- `infra` or `improvement`) and run `npm run build:pages`.
-
-## Must-not
-
-- Do not hand-roll a new retry/cooldown/breaker — extend `withBreaker`/cockatiel.
-- Do not swallow errors into silent nulls without a designed fallback or a log line.
-- Do not let any vendor stack, keyed URL, billing/quota/credit message, or 402 detail
- reach a user — mask at the boundary, log raw server-side with a `ref`.
-- Do not add try/catch to internal pure code — handle at boundaries only.
-- Do not break working failsafes (the Solana rotation, `wrap()` redaction, fail-closed
- limiters). Add resilience; never weaken what already protects money paths.
-- Do not reference any coin other than `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every external call site in `api/` + `workers/` has a timeout and a named
- `withBreaker` (or the existing Solana failover) — verified by grep, no bare
- timeout-less `fetch` to a third party remains.
-- [ ] No unhandled promise rejection path: every handler is `wrap()`-ed, every
- fire-and-forget promise has a `.catch`.
-- [ ] Throttling/killing an upstream degrades gracefully in a real browser — no hung
- spinner, no console error, neutral copy, real elapsed time.
-- [ ] No vendor internals (stack, keyed URL, billing/quota/402) appear in any client
- response; raw detail is logged with a correlation `ref`.
-- [ ] `tests/resilience.test.js` + the mcp/pump resilience tests pass, with new cover
- for timeout, open-circuit, 429/529, and fallback.
-- [ ] Any user-visible change has a `data/changelog.json` entry and `npm run
- build:pages` is clean.
diff --git a/prompts/billion-dollar-program/07-security-hardening.md b/prompts/billion-dollar-program/07-security-hardening.md
deleted file mode 100644
index 48b3b5209..000000000
--- a/prompts/billion-dollar-program/07-security-hardening.md
+++ /dev/null
@@ -1,117 +0,0 @@
-# 07 — Security hardening (authz, validation, headers, SSRF)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The platform moves real value: custodial wallet payouts, x402 USDC settlement, $THREE
-gating, on-chain launches. One missing authorization check, one unvalidated body, one
-server-side fetch that follows an attacker URL, and a $1B platform becomes a breach
-headline. Security is not a phase you bolt on — it is the precondition for every dollar
-that flows through three.ws. This prompt hardens the four highest-leverage classes:
-authorization, input validation, response headers, and SSRF.
-
-## Mission
-
-Confirm every endpoint authorizes its caller, every input is zod-validated at the
-boundary, security headers (CSP, HSTS, X-Frame-Options, Referrer-Policy,
-Permissions-Policy) are correct in `vercel.json`, CORS is allowlisted, and every
-server-side URL/image fetch is SSRF-guarded — then run `/security-review` and fix
-everything it surfaces.
-
-## Map (trust but verify — files move)
-
-- **Input validation (zod — ~123 files use it)** — [api/_lib/validate.js](../../api/_lib/validate.js):
- shared schemas (`email`, `slug`, `httpUrl`, `createAvatarBody`, …) + helpers
- `parse(schema, input)`, `validateQuery(req, schema)`, `isValidSolanaAddress`,
- `isValidEvmAddress`, `isUuid`. Validation 400s go through
- [api/_lib/http.js](../../api/_lib/http.js) `validationError`.
-- **AuthZ helpers** — [api/_lib/auth.js](../../api/_lib/auth.js) (`getSessionUser`,
- `authenticateBearer`, `verifyCsrfToken`, `isSameSiteOrigin`, `hasScope`),
- [api/_lib/account-auth.js](../../api/_lib/account-auth.js) (`resolveAccount`),
- [api/_lib/admin.js](../../api/_lib/admin.js) (`requireAdmin`),
- [api/_lib/csrf.js](../../api/_lib/csrf.js),
- [api/_lib/x402/access-control.js](../../api/_lib/x402/access-control.js) (`installAccessControl`).
-- **CORS** — [api/_lib/http.js](../../api/_lib/http.js) `cors(req, res, { origins,
- methods, credentials })` + `isAllowedOrigin` (the allowlist: `APP_ORIGIN`,
- x402scan, agentic.market, `*.ibm.com`, localhost in dev). Reuse it; do not invent.
-- **SSRF guards** — [api/_lib/ssrf.js](../../api/_lib/ssrf.js)
- (`validatePublicUrl`, `assertPublicHttpsUrl`, `safeFetchJson`, `pinnedAgent`),
- [api/_lib/ssrf-guard.js](../../api/_lib/ssrf-guard.js) (`assertSafePublicUrl`,
- `fetchSafePublicUrl`, `fetchSafePublicUrlPinned`),
- [api/_lib/fetch-model.js](../../api/_lib/fetch-model.js) (`fetchModel` — the SSRF pioneer).
-- **Security headers** — [vercel.json](../../vercel.json) `headers` blocks (~line 202+):
- `content-security-policy`, `strict-transport-security`, `x-content-type-options`,
- `referrer-policy`, `permissions-policy`, `x-frame-options`.
-- **Skill + tests** — `/security-review` skill;
- [tests/api/security-csrf-gates.test.js](../../tests/api/security-csrf-gates.test.js),
- [tests/api/x402-security-fixes.test.js](../../tests/api/x402-security-fixes.test.js),
- [tests/api/validate.test.js](../../tests/api/validate.test.js).
-
-## Do this
-
-1. **AuthZ audit — every state-changing endpoint authorizes the caller.** Inventory
- `api/` POST/PUT/PATCH/DELETE handlers; confirm each calls `getSessionUser` /
- `authenticateBearer` / `resolveAccount` / `requireAdmin` (or x402 `installAccessControl`
- for paid routes) AND checks ownership (the resource belongs to the caller). Flag any
- handler that mutates without an authZ gate; close the gap. Verify CSRF via
- `verifyCsrfToken`/`isSameSiteOrigin` on cookie-auth state changes.
-2. **Input validation everywhere.** Every handler that reads `req.body`/query/params
- must run it through a zod schema (reuse `validate.js`, add a `.strict()` schema where
- missing) and return `validationError` on failure. `grep -rn "req.body" api/` and
- confirm each is validated, not dot-accessed raw. No unbounded strings, no unchecked
- numbers feeding limits/pagination.
-3. **SSRF on every server-side fetch of a user/DB URL.** `grep -rnE "fetch\(" api/` and
- find any call whose URL comes from user input or the DB (image render, GLB fetch,
- webhook, metadata, proxy). Route it through `fetchSafePublicUrl` /
- `fetchSafePublicUrlPinned` / `safeFetchJson` — pinned variant for anything whose
- response is forwarded or executed. No raw `fetch(userUrl)` may remain.
-4. **CORS allowlist, not wildcard.** Confirm `cors()` callers pass an explicit
- `origins` allowlist (or rely on `isAllowedOrigin`); flag any `origins: '*'` on a
- credentialed or state-changing route and tighten it. Public read-only APIs may stay
- `*` — document why.
-5. **Security headers complete and correct.** Verify `vercel.json` sets CSP, HSTS
- (`max-age` + `includeSubDomains` + `preload`), `x-content-type-options: nosniff`,
- `referrer-policy`, `permissions-policy`, and `x-frame-options`/`frame-ancestors` for
- every served surface. Tighten CSP where `'unsafe-inline'`/`'unsafe-eval'` can be
- dropped without breaking a real page (test in browser before removing).
-6. **Run the security review.** Invoke the `/security-review` skill on the working
- tree. Triage every finding to root cause and fix it — no "accepted risk" without an
- explicit, written reason. Re-run until clean.
-7. **Validate live + tests.** `npm run dev`; confirm headers land (`curl -I`), CORS
- preflight behaves, an unauthorized mutation is rejected, a private-IP URL fetch is
- blocked. Run `npx vitest run tests/api/security-csrf-gates.test.js
- tests/api/x402-security-fixes.test.js tests/api/validate.test.js` and add cover for
- any newly-closed gap.
-8. **Changelog if user-visible.** Security hardening that changes behavior gets a
- `data/changelog.json` entry (tag `security`); run `npm run build:pages`.
-
-## Must-not
-
-- Do not weaken an existing control to "make it work" — fix the caller, not the guard.
-- Do not add `origins: '*'` to a credentialed/state-changing route, and do not loosen
- the SSRF IP blocklist (metadata, RFC1918, loopback, CGNAT must stay blocked).
-- Do not trust client-supplied IDs/ownership — re-check ownership server-side.
-- Do not dismiss a `/security-review` finding without a root-cause fix or written
- justification.
-- Do not break working pages by over-tightening CSP — verify each removal in a browser.
-- Do not reference any coin other than `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every state-changing `api/` endpoint authorizes the caller and verifies resource
- ownership; CSRF enforced on cookie-auth mutations — verified by audit.
-- [ ] Every handler that reads body/query/params validates it via zod and returns a
- clean `validationError` on bad input; no raw unvalidated `req.body` access remains.
-- [ ] Every server-side fetch of a user/DB-supplied URL goes through the SSRF guard;
- `grep` shows no raw `fetch(userUrl)`.
-- [ ] CORS is allowlisted on credentialed/mutating routes; any `*` is read-only and
- justified.
-- [ ] `vercel.json` sets correct CSP, HSTS, X-Content-Type-Options, Referrer-Policy,
- Permissions-Policy, and X-Frame-Options for every served surface (confirmed via
- `curl -I`).
-- [ ] `/security-review` runs clean (or every finding has a root-cause fix).
-- [ ] Security/CSRF/validate tests pass with cover for any closed gap; user-visible
- changes logged in `data/changelog.json` and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/08-rate-limiting-abuse.md b/prompts/billion-dollar-program/08-rate-limiting-abuse.md
deleted file mode 100644
index f964a3f96..000000000
--- a/prompts/billion-dollar-program/08-rate-limiting-abuse.md
+++ /dev/null
@@ -1,116 +0,0 @@
-# 08 — Rate limiting & abuse prevention
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Every expensive path on three.ws costs real money: forge generations burn GPU/provider
-credits, LLM proxies burn tokens, Solana/Helius/Birdeye reads burn shared API quota,
-and x402/payout endpoints move USDC. Unlimited, those become a free attack on the
-platform's wallet and a denial-of-service on every honest user. A $1B platform meters
-its costly surfaces, makes payments idempotent so a replay can't double-charge, and
-stops bots before they scale. This is cost control, fairness, and uptime in one.
-
-## Mission
-
-Ensure every expensive / paid / auth / generation endpoint is rate-limited per
-user+IP via the existing `rate-limit.js` registry, payment endpoints are idempotent via
-the x402 idempotency cache, and bot/abuse mitigation plus quota tiers are in place —
-starting from an inventory of which endpoints currently lack limits.
-
-## Map (trust but verify — files move)
-
-- **Rate-limit registry (build on this — do not re-roll)** —
- [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js): the `limits` object (named
- buckets: `authIp`, `registerIp`, `pumpMetaIp`, `imgProxyIp`, `cohortsIp`, `aixbtIp`,
- `sdpIp`, `avatarPayoutDaily`, …), `clientIp(req)`, and `getLimiter(name, { limit,
- window, critical })` — `critical: true` fails CLOSED in prod (money/cost buckets),
- non-critical fails open. ~418 files already import it.
-- **Limit responses** — [api/_lib/http.js](../../api/_lib/http.js): `rateLimited(res,
- result, message)`, `setRateLimitHeaders(res, result)`. Use these so 429s carry the
- standard retry headers.
-- **x402 idempotency** — [api/_lib/x402/idempotency-cache.js](../../api/_lib/x402/idempotency-cache.js):
- `hashRequestPayload`, `hashPaymentProof`, `reserve`/`get`/`set`/`release`, `INFLIGHT`,
- `isInflight` (Redis-backed; refuses to boot in prod without Upstash unless
- `X402_ALLOW_MEMORY_FALLBACK=1`). Same id + different payload → 409 Conflict.
-- **x402 payment plumbing** — [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js)
- (`paidEndpoint`), [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js),
- [api/_lib/x402-spending-cap.js](../../api/_lib/x402-spending-cap.js),
- [api/_lib/x402/access-control.js](../../api/_lib/x402/access-control.js).
-- **Costly endpoints to verify** — [api/forge.js](../../api/forge.js) (generation +
- rigging buckets), [api/chat.js](../../api/chat.js) (LLM proxy), pump/oracle reads
- (Helius/Birdeye), [api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js) +
- payout routes, MCP dispatch in [api/_lib/mcp-dispatch.js](../../api/_lib/mcp-dispatch.js).
-- **Tests** — [tests/api/http-rate-limited.test.js](../../tests/api/http-rate-limited.test.js),
- [tests/api/chat-proxy-ratelimit.test.js](../../tests/api/chat-proxy-ratelimit.test.js).
-
-## Do this
-
-1. **Inventory unlimited expensive endpoints.** For every handler in `api/`, classify:
- does it cost money (provider/GPU/token/RPC quota), move value (x402/payout/launch),
- gate auth (login/register/reset), or generate (forge/avatar/image/LLM)? `grep -rLn
- "rate-limit\|limits\.\|clientIp" api/` to find handlers in those classes that import
- no limiter. That list is the work queue — produce it explicitly.
-2. **Add a named bucket per gap.** For each unlimited costly endpoint, add a bucket to
- the `limits` registry (descriptive name, sensible `limit`/`window`, `critical: true`
- for money/cost paths so a Redis outage fails closed) and enforce it with
- `clientIp(req)` + `rateLimited(res, rl, msg)`. Match the existing per-IP (and
- per-user where authenticated) keying convention.
-3. **Per user+IP, not just IP.** Authenticated costly endpoints should key on the user
- id when present (so one user can't rotate IPs) AND fall back to IP for anonymous
- callers. Add a per-resource ceiling where one entity is the cost driver (mirror
- `avatarPayoutDaily` keyed on the wallet, not the caller).
-4. **Idempotency on every payment endpoint.** Confirm each x402/paid route uses
- `idempotency-cache.js`: `reserve` before settling, `set` the response, return the
- cached body on replay, and 409 on same-id/different-payload. Any payment route
- without this can double-charge — fix it. Verify the prod no-memory-fallback boot
- check is intact.
-5. **Bot / abuse mitigation.** Ensure auth + registration + generation surfaces resist
- scripted abuse: burst + sustained windows (mirror `irlPinBurst` + `irlPinHourly`),
- honeypot/timing on signup, and per-device keying where a device token exists. Confirm
- anonymous generation can't be farmed for free GPU.
-6. **Quota tiers.** Wire tiered ceilings (anon < authenticated < $THREE-gated/paid) so
- value flows to holders and paying agents get headroom. Reuse existing tier/gating
- helpers (`three-tier.js`, holder/play passes) rather than inventing a parallel
- system — surface a clear, actionable message when a tier limit is hit.
-7. **Test the limits.** Extend `tests/api/http-rate-limited.test.js` and the chat
- ratelimit test to cover each new bucket (burst trips, headers present, critical
- buckets fail closed, idempotency replay returns cached / 409s on mismatch). Run
- `npx vitest run tests/api/http-rate-limited.test.js tests/api/chat-proxy-ratelimit.test.js`.
-8. **Verify live + changelog.** `npm run dev`; hammer a newly-limited endpoint and
- confirm a clean 429 with retry headers and helpful copy (not a raw error). Any
- user-visible change (new limit, tier) → `data/changelog.json` entry (tag
- `improvement` or `security`) + `npm run build:pages`.
-
-## Must-not
-
-- Do not hand-roll a counter/limiter — extend the `limits` registry in `rate-limit.js`.
-- Do not mark a money/cost bucket non-critical (it would fail open on a Redis outage and
- silently uncap a paid path); do not weaken an existing `critical` bucket.
-- Do not skip idempotency on a payment route, and do not enable the in-memory
- idempotency fallback in production (`X402_ALLOW_MEMORY_FALLBACK`) without explicit
- reason.
-- Do not return a raw error on a limit hit — use `rateLimited()` with retry headers and
- actionable copy.
-- Do not set ceilings so tight they break legitimate interactive use (size each window
- to a real workflow, like the existing buckets do).
-- Do not reference any coin other than `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] An explicit inventory exists of expensive/paid/auth/generation endpoints; every
- one is now rate-limited via a named `limits` bucket (verified by grep — no costly
- handler lacks a limiter).
-- [ ] Authenticated costly endpoints key on user+IP (plus a per-resource ceiling where a
- single entity drives cost); money/cost buckets are `critical` (fail closed).
-- [ ] Every payment/x402 endpoint is idempotent via `idempotency-cache.js`: replay
- returns the cached response, same-id/different-payload returns 409; prod
- no-memory-fallback boot check intact.
-- [ ] Bot/abuse mitigation (burst + sustained windows, signup protection) and tiered
- quotas (anon < auth < holder/paid) are in place with clear messaging.
-- [ ] Limit hits return a clean 429 with retry headers and helpful copy in a real
- browser.
-- [ ] Rate-limit + idempotency tests pass with cover for each new bucket; user-visible
- changes logged in `data/changelog.json` and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/09-accessibility-wcag.md b/prompts/billion-dollar-program/09-accessibility-wcag.md
deleted file mode 100644
index d586fb7c8..000000000
--- a/prompts/billion-dollar-program/09-accessibility-wcag.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 09 — Accessibility (WCAG 2.2 AA)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform that excludes keyboard, screen-reader, and low-vision users is leaving
-real users — and in many markets, legal compliance — on the table. Accessibility is
-also a proxy for craft: semantic structure, focus management, and contrast are the
-same primitives that make UI feel polished to everyone. A $1B platform passes WCAG
-2.2 AA on its core flows without anyone having to ask.
-
-## Mission
-
-Bring every primary surface (home, forge, marketplace, wallet, agent profiles,
-create flows) to WCAG 2.2 AA: semantic HTML, ARIA on interactive elements, full
-keyboard operability, visible focus, sufficient contrast, screen-reader labels, and
-honored reduced-motion.
-
-## Map (trust but verify — files move)
-
-- **Pages** — [pages/](../../pages) (~125 `*.html`). Start with high-traffic flows:
- `home.html`, `forge.html`, `marketplace*.html`, `agent-detail.html`,
- `create-prompt.html`, `agent-wallet.html`.
-- **Shared nav** — [public/nav.html](../../public/nav.html), [public/nav.js](../../public/nav.js)
- (desktop dropdowns + mobile drawer; `aria-pressed` already on the walk toggle),
- [public/nav.css](../../public/nav.css).
-- **Design tokens (focus ring, contrast)** — [public/tokens.css](../../public/tokens.css)
- (`--focus-ring-color` and friends), [DESIGN-TOKENS.md](../../DESIGN-TOKENS.md).
- Focus styles already exist in [public/buttons.css](../../public/buttons.css),
- [public/home.css](../../public/home.css), and others — extend, don't fork.
-- **Reduced motion** — already honored in [public/tokens.css](../../public/tokens.css),
- [public/footer.css](../../public/footer.css), [public/features-landing.css](../../public/features-landing.css);
- many `src/` animation modules are not. Search `prefers-reduced-motion`.
-- **JS components** — [src/](../../src) (~810 modules). Interactive widgets that build
- DOM (modals, tabs, menus, viewers) often ship `<div onclick>` without roles/labels.
-
-## Do this
-
-1. **Baseline audit.** Run an axe scan against the running app (no dep needed):
- `npm run dev`, then `npx @axe-core/cli http://localhost:3000/forge
- http://localhost:3000/marketplace http://localhost:3000/ http://localhost:3000/create/prompt`.
- Record every violation by page; this is your worklist.
-2. **Semantic structure.** Each page needs one `<h1>`, a logical heading order, and
- landmark regions (`<header><nav><main><footer>`). Replace generic `<div>` wrappers
- that are really headers/nav/main with the semantic element. Add a "skip to content"
- link as the first focusable element on long pages.
-3. **Interactive elements.** Every clickable `<div>`/`<span>` becomes a `<button>` or
- gets `role="button"`, `tabindex="0"`, and keydown (Enter/Space) handling. Icon-only
- controls get `aria-label`. Toggles get `aria-pressed`; tabs get `role="tab"` +
- `aria-selected`; modals get `role="dialog"`, `aria-modal`, focus trap, and Esc-to-close.
-4. **Keyboard operability.** Tab through each core flow with no mouse: every control
- reachable, in a sane order, no keyboard trap, dropdowns/drawers open & close via
- keyboard. The mobile drawer in `nav.js` must trap focus while open and restore it on
- close.
-5. **Visible focus.** Every interactive element shows a clear focus ring using the
- existing `--focus-ring-color` token (via `:focus-visible`). No `outline: none`
- without a replacement. Audit `src/` and `public/*.css` for naked `outline: none`.
-6. **Contrast.** Verify text and UI contrast against backgrounds (4.5:1 body, 3:1 large
- text / UI components) in both light and dark themes. Fix failing pairs by remapping to
- compliant tokens in `tokens.css` — never hardcode a one-off hex.
-7. **Screen reader & forms.** Every input has an associated `<label>` (or `aria-label`);
- error messages are announced (`aria-describedby` / `aria-live`); decorative images get
- `alt=""`, meaningful images get real `alt`. Async status (forge progress, save
- results) uses an `aria-live` region.
-8. **Reduced motion.** Wrap non-essential `src/` animations (loops, parallax, auto-play
- 3D spin) in `@media (prefers-reduced-motion: reduce)` or a JS check, degrading to a
- static/instant state.
-9. **Re-audit & test.** Re-run the axe scan — zero serious/critical violations on the
- targeted pages. Run `npm test` (vitest + playwright) and add/extend a Playwright check
- asserting skip-link presence, focus visibility, and drawer focus trap on at least the
- home and forge routes. Add a changelog entry; `npm run build:pages`.
-
-## Must-not
-
-- Do not add ARIA that lies about state (e.g. static `aria-expanded="true"`); ARIA must
- reflect live state or be omitted.
-- Do not remove focus outlines without a stronger visible replacement.
-- Do not hardcode colors to "fix" contrast — remap design tokens so both themes stay correct.
-- Do not regress working interactions while making them accessible; verify each in a browser.
-- Do not reference any coin other than `$THREE` in any new copy or label.
-
-## Acceptance (all true before claiming done)
-
-- [ ] axe scan on home, forge, marketplace, agent-detail, create/prompt shows zero
- serious/critical violations.
-- [ ] Every core flow is fully keyboard operable with no trap; visible focus on every control.
-- [ ] One `<h1>` and correct landmarks per audited page; skip-to-content link works.
-- [ ] Text/UI contrast passes 4.5:1 / 3:1 in both light and dark themes.
-- [ ] Inputs are labeled; async status and errors are announced via `aria-live`.
-- [ ] Reduced-motion is honored across `src/` animations on the audited pages.
-- [ ] `npm test` passes; new a11y Playwright checks added; changelog updated and
- `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/10-performance-core-web-vitals.md b/prompts/billion-dollar-program/10-performance-core-web-vitals.md
deleted file mode 100644
index a137031a9..000000000
--- a/prompts/billion-dollar-program/10-performance-core-web-vitals.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# 10 — Performance & Core Web Vitals
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Speed is the silent conversion lever. Every 100ms of LCP and every layout shift costs
-sign-ups, and Core Web Vitals directly affect search ranking — the cheapest growth
-channel. This platform ships a heavy Three.js/GLB stack on top of ~125 pages; if those
-assets block first paint, the front door feels slow and acquisition leaks before the
-user sees the product. Fast must be the default, not a flag.
-
-## Mission
-
-Hit good Core Web Vitals on the primary surfaces — LCP < 2.5s, CLS < 0.1, INP < 200ms —
-by lazy-loading heavy modules and 3D, enforcing image-loading attributes, code-splitting,
-debouncing input handlers, and preconnecting/preloading critical origins.
-
-## Map (trust but verify — files move)
-
-- **Heaviest pages** — [pages/home.html](../../pages/home.html),
- [pages/forge.html](../../pages/forge.html) (both already use `preconnect`/`preload`),
- marketplace and walk landing pages. These mount Three.js.
-- **3D / GLB loaders** — `src/` modules importing `GLTFLoader` / `three.module` (e.g.
- [src/avatar-picker.js](../../src/avatar-picker.js), [src/club.js](../../src/club.js),
- [src/avatar-export.js](../../src/avatar-export.js)). Grep `GLTFLoader|three.module`.
- These are the biggest bundles — they must dynamic-`import()` on demand, not at page load.
-- **Dynamic import (existing pattern)** — many `src/` files already use `import(...)`
- (e.g. [src/agent-detail.js](../../src/agent-detail.js)); follow that pattern.
-- **Image loading guard** — [scripts/audit-image-loading.mjs](../../scripts/audit-image-loading.mjs)
- via `npm run check:images` (strict: every JS-rendered `<img>` in `src/` needs `loading=`).
- Codemod helper: [scripts/codemod-lazy-images.mjs](../../scripts/codemod-lazy-images.mjs).
-- **Build config** — [vite.config.js](../../vite.config.js) (chunking, build target),
- [public/tokens.css](../../public/tokens.css) (motion tokens for `will-change`/`transform`).
-- **Audit tooling** — `npm run audit:web` ([scripts/page-audit.mjs](../../scripts/page-audit.mjs)),
- `npm run snapshot` ([scripts/page-snapshot.mjs](../../scripts/page-snapshot.mjs)).
-
-## Do this
-
-1. **Measure first.** `npm run dev`, then run Lighthouse on the heaviest routes:
- `npx lighthouse http://localhost:3000/ --only-categories=performance --view`
- and repeat for `/forge` and `/marketplace`. Record LCP, CLS, INP/TBT per page — this
- is your before/after baseline. Note the LCP element and the largest network requests.
-2. **Lazy-load the 3D stack.** Confirm every Three.js/GLTFLoader import is behind a
- dynamic `import()` triggered by viewport/interaction (IntersectionObserver or click),
- never at module top level on a page that paints text first. Defer the canvas mount
- until after first contentful paint.
-3. **Image loading.** Run `npm run check:images` — fix every offender so JS-rendered
- `<img>` carries `loading="lazy"` and `decoding="async"`. For above-the-fold LCP images
- in static HTML, use `loading="eager"` + `fetchpriority="high"` (don't lazy-load the LCP
- image). Set explicit `width`/`height` (or `aspect-ratio`) on every image to kill CLS.
-4. **Eliminate layout shift.** Reserve space for async content (skeletons, fixed-aspect
- media, font-swap with `font-display: optional/swap` and preloaded fonts). Audit feeds
- and the forge result area for content that pushes layout on load.
-5. **Code-split & budget.** Inspect the Vite build output (`npx vite build`) for oversized
- chunks; split route-specific and 3D code into async chunks. Set and document a bundle
- budget (e.g. initial JS < 200KB gzipped per primary route) and bring offenders under it.
-6. **Debounce & schedule.** Debounce/throttle search, scroll, and resize handlers;
- move non-urgent work off the critical path (`requestIdleCallback` / `requestAnimationFrame`).
- Use `transform`/`opacity` + `will-change` for animations (never animate layout props).
-7. **Network priming.** Add `preconnect`/`dns-prefetch` for real cross-origin asset hosts
- (R2, RPC, fonts) and `preload` the LCP image + critical font on the heaviest pages,
- matching the existing pattern in `home.html`/`forge.html`. Remove dead preloads.
-8. **Re-measure & verify.** Re-run Lighthouse on the same routes — LCP < 2.5s, CLS < 0.1,
- INP/TBT in the good band. Run `npm run audit:web` and `npm run snapshot` and confirm no
- console errors. `npm test`. Add a changelog entry; `npm run build:pages`.
-
-## Must-not
-
-- Do not lazy-load the LCP image or above-the-fold hero — that regresses LCP.
-- Do not eager-load the full Three.js/GLB stack on pages that paint text first.
-- Do not animate layout-triggering properties (top/left/width/height) — use transforms.
-- Do not introduce fake `setTimeout` loading bars; use real async + skeletons.
-- Do not bypass `npm run check:images` strict mode — fix the images, don't disable the guard.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Lighthouse on home, forge, marketplace: LCP < 2.5s, CLS < 0.1, INP/TBT in the good band.
-- [ ] `npm run check:images` passes strict; every image has dimensions and correct `loading=`.
-- [ ] Three.js/GLB code is dynamic-imported on demand; not in the initial route bundle.
-- [ ] Documented bundle budget met; oversized chunks split; `npx vite build` clean.
-- [ ] Input/scroll handlers debounced; animations use transform/opacity + `will-change`.
-- [ ] `preconnect`/`preload` cover real critical origins; no dead hints; no console errors.
-- [ ] `npm test`, `npm run audit:web`, `npm run snapshot` pass; changelog updated and
- `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/11-mobile-responsiveness.md b/prompts/billion-dollar-program/11-mobile-responsiveness.md
deleted file mode 100644
index 3d5fbdbd6..000000000
--- a/prompts/billion-dollar-program/11-mobile-responsiveness.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# 11 — Mobile responsiveness (320 / 768 / 1440)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Most first touches arrive on a phone. If the home hero overflows at 320px, the forge
-canvas tanks a mid-range mobile GPU, or a primary CTA sits under the keyboard, the
-funnel dies before the user understands the product. A $1B platform is flawless from a
-cheap Android in portrait up to a 1440px desktop — the same flows, no horizontal
-scroll, no dead zones, touch targets you can actually hit.
-
-## Mission
-
-Make every key flow (home, forge, marketplace, wallet, agent profiles, create) correct
-and comfortable at 320px, 768px, and 1440px: proper viewport meta, fluid flex/grid
-layouts, ≥44px touch targets, a working mobile nav, and a 3D canvas that stays smooth on
-mobile GPUs.
-
-## Map (trust but verify — files move)
-
-- **Pages** — [pages/](../../pages) (~125 `*.html`). Both [pages/home.html](../../pages/home.html)
- and [pages/forge.html](../../pages/forge.html) already declare `viewport` — verify all
- primary pages do.
-- **Mobile nav** — [public/nav.js](../../public/nav.js) (`renderDrawer`, `initDrawer`,
- the mobile drawer + walk toggle), [public/nav.css](../../public/nav.css),
- [public/nav.html](../../public/nav.html).
-- **Layout CSS** — [public/](../../public) `*.css`. Several use fixed `width: NNNpx`
- (e.g. [public/app-next.css](../../public/app-next.css), [public/auth.css](../../public/auth.css)) —
- candidates to convert to fluid flex/grid. Grep `width: *[0-9]{3,}px`.
-- **Design tokens** — [public/tokens.css](../../public/tokens.css) (spacing scale, type
- ladder) so breakpoints reflow against shared tokens, not magic numbers.
-- **3D on mobile** — `src/` modules mounting Three.js/GLTFLoader (grep `GLTFLoader`).
- Set device pixel ratio caps and quality fallbacks here.
-- **Visual check tooling** — `npm run snapshot` ([scripts/page-snapshot.mjs](../../scripts/page-snapshot.mjs)),
- Playwright ([playwright.config.js](../../playwright.config.js)) for scripted viewports.
-
-## Do this
-
-1. **Drive real viewports.** `npm run dev`, open the core flows in browser devtools at
- **320×568**, **768×1024**, and **1440×900** (and one landscape phone). Walk home →
- forge → result, marketplace → detail, wallet, and a create flow at each width.
-2. **Viewport meta.** Confirm every primary page has
- `<meta name="viewport" content="width=device-width, initial-scale=1">` with no
- `maximum-scale`/`user-scalable=no` (pinch-zoom must stay enabled for a11y).
-3. **Kill horizontal scroll.** At 320px nothing overflows: no fixed pixel widths wider
- than the viewport, long words/URLs wrap (`overflow-wrap`), tables/grids scroll inside
- a contained region, images are `max-width: 100%`. Convert offending fixed-width blocks
- to fluid flex/grid using token spacing.
-4. **Touch targets.** Every tappable control is ≥44×44px with adequate spacing so
- neighbors aren't mis-tapped. Audit nav links, icon buttons, chips, and close buttons.
-5. **Mobile nav.** The drawer in `nav.js` opens/closes cleanly, the body locks scroll
- while open, the walk toggle works, and it dismisses on link tap and on backdrop tap.
- Verify it doesn't cover content or trap the user.
-6. **Forms & keyboard.** On mobile, primary CTAs aren't hidden behind the on-screen
- keyboard; inputs use correct `inputmode`/`type` (email, numeric, search); focused
- fields scroll into view.
-7. **3D on mobile GPUs.** In the Three.js mounts, cap `renderer.setPixelRatio` (e.g.
- `Math.min(devicePixelRatio, 2)`), provide a lighter quality path or a tap-to-load
- poster on small/low-power devices, and ensure the canvas resizes correctly on
- rotation. Confirm acceptable frame rate on a throttled mobile profile.
-8. **Snapshot & verify.** Run `npm run snapshot` and review the captures across widths;
- run the Playwright suite (extend with a mobile viewport project for home + forge if
- absent). `npm test`. Add a changelog entry; `npm run build:pages`.
-
-## Must-not
-
-- Do not disable pinch-zoom (`user-scalable=no` / `maximum-scale=1`) — it breaks a11y.
-- Do not hide core functionality on mobile; reflow it, don't remove it.
-- Do not ship fixed pixel widths that overflow 320px — use fluid flex/grid + tokens.
-- Do not render full-resolution 3D at uncapped DPR on mobile; cap quality and frame cost.
-- Do not reference any coin other than `$THREE` in any responsive copy or fallback.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Home, forge, marketplace, wallet, and a create flow work at 320 / 768 / 1440 with
- no horizontal scroll and no clipped content.
-- [ ] Every primary page has correct, zoom-enabled viewport meta.
-- [ ] All touch targets are ≥44px with safe spacing; nav drawer opens/closes/locks scroll.
-- [ ] Mobile CTAs stay reachable above the keyboard; inputs use correct `inputmode`/`type`.
-- [ ] 3D canvases cap DPR and run smoothly on a throttled mobile profile; resize on rotate.
-- [ ] `npm run snapshot` captures look correct across widths; `npm test` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/12-every-state-designed.md b/prompts/billion-dollar-program/12-every-state-designed.md
deleted file mode 100644
index bc4ddb646..000000000
--- a/prompts/billion-dollar-program/12-every-state-designed.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# 12 — Every state designed (loading / empty / error / overflow)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The difference between a toy and a product is what happens when there's no data, the
-network fails, or a name is 80 characters long. A blank void on first load reads as
-broken; an unstyled error reads as abandoned; an empty marketplace with no call to
-action loses the user who would have created the first listing. A $1B platform designs
-every state so the user is never confused, stuck, or staring at nothing.
-
-## Mission
-
-Audit every list, grid, feed, and detail view and ensure all four states are
-deliberately designed: **loading** (skeletons over spinners), **empty** (actionable —
-tells the user what to do next), **error** (recoverable with retry), and **overflow**
-(0 / 1 / 1000 items, very long names, missing thumbnails).
-
-## Map (trust but verify — files move)
-
-- **Data-driven surfaces** — `src/` modules that fetch then render lists/grids/feeds.
- Grep for `fetch(`, `innerHTML =`, `.map(`, `appendChild` in `src/` to find render
- paths. High-value targets: marketplace, agent profiles/feed, forge gallery/results,
- wallet/transactions, launches feed, changelog, notifications.
-- **Forge result states (gold standard reference)** — see
- [prompts/production-1b/15-forge-text-to-3d-pipeline.md](./15-forge-text-to-3d-pipeline.md):
- every phase labeled, real elapsed time, no fake `setTimeout` bars. Match that bar.
-- **Shared styles for states** — [public/tokens.css](../../public/tokens.css) (spacing,
- surfaces, motion for skeleton shimmer). Reuse existing skeleton/empty-state CSS where
- present (grep `skeleton` / `empty-state` across `public/*.css`); establish a shared
- pattern where missing.
-- **Pages hosting these views** — [pages/](../../pages) (marketplace, agent-detail,
- forge, wallet, launches, etc.).
-- **APIs feeding them** — [api/](../../api) handlers (to reproduce error/empty responses
- for testing). Tests live in [tests/](../../tests).
-
-## Do this
-
-1. **Inventory.** Build a checklist of every list/grid/feed/detail view across `src/`.
- For each, record where its data comes from and which of the four states currently
- exist vs. are missing.
-2. **Loading = skeletons.** Replace bare spinners and blank gaps with skeleton screens
- that match the final layout (so there's no shift when data arrives). No fake progress
- bars — drive UI off real request lifecycle.
-3. **Empty = actionable.** Each empty state explains why it's empty and gives the next
- action with a working CTA (e.g. "No agents yet — create your first" → links to the
- create flow). Never a bare "No data." Design a reusable empty-state component if one
- doesn't exist.
-4. **Error = recoverable.** On fetch failure, show a designed error with a plain-language
- message and a **Retry** that re-runs the request. Never leak raw stack traces, vendor
- billing/quota text, or provider URLs — keep raw detail in logs, show neutral copy.
-5. **Overflow & edge counts.** Verify each view at **0**, **1**, and **~1000** items:
- pagination/virtualization or "load more" for large lists; sensible single-item layout;
- no jank. Truncate long names with ellipsis + full value on hover/`title`; wrap long
- descriptions; provide a fallback for missing/broken thumbnails.
-6. **Reproduce each state in the browser.** `npm run dev` and force every state: throttle
- to Offline for error, point at an empty account for empty, paste a long name, and load
- a large feed. Confirm each is designed and reachable — no dead states.
-7. **Wire the failsafes.** Per `/CLAUDE.md`, errors are handled at boundaries (network /
- user input) with working fallbacks; internal code trusts itself. Make sure a failed
- sub-request degrades that section gracefully instead of blanking the whole page.
-8. **Test & ship.** Add/extend tests asserting empty and error rendering for at least the
- marketplace and one feed (component or Playwright). `npm test`. Add a changelog entry
- for the user-visible polish; `npm run build:pages`.
-
-## Must-not
-
-- Do not ship a bare spinner where a skeleton matching the layout belongs.
-- Do not leave a "No data" / blank empty state with no next action.
-- Do not surface raw errors, stack traces, or vendor billing/quota text to users.
-- Do not let one failed sub-request blank the entire page — degrade the section only.
-- Do not use fake `setTimeout` loading; drive states off the real request lifecycle.
-- Do not reference any coin other than `$THREE` in any state copy.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every list/grid/feed/detail view has designed loading, empty, error, and overflow states.
-- [ ] Loading uses skeletons matching final layout; no layout shift on data arrival; no fake bars.
-- [ ] Empty states are actionable with a working CTA; error states have a working Retry.
-- [ ] 0 / 1 / 1000 items, long names, and missing thumbnails all render cleanly.
-- [ ] No raw errors or vendor internals reach users; failures degrade per-section.
-- [ ] Each state reproduced in a real browser; tests cover empty + error for key views.
-- [ ] `npm test` passes; changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/13-design-system-consistency.md b/prompts/billion-dollar-program/13-design-system-consistency.md
deleted file mode 100644
index 6f8421afe..000000000
--- a/prompts/billion-dollar-program/13-design-system-consistency.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 13 — Design-system consistency (tokens, spacing, typography, theming)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Consistency is what makes a platform feel like one product instead of forty pages glued
-together. When spacing, type, color, and interaction states come from a single
-vocabulary, every new surface inherits quality for free and the brand reads as
-trustworthy. Drift — a one-off hex here, a magic `13px` there, a button with no focus
-state — is the visual equivalent of bugs. A $1B platform speaks one design language
-everywhere, in both light and dark.
-
-## Mission
-
-Unify the platform on the canonical design tokens: every surface references shared
-spacing, type, color, radius, and motion tokens; every interactive element has hover /
-active / focus states; light and dark themes are correct everywhere; and no surface
-reintroduces a parallel palette.
-
-## Map (trust but verify — files move)
-
-- **Canonical tokens (single source of truth)** — [public/tokens.css](../../public/tokens.css)
- (φ-based spacing scale, type ladder, surfaces, ink, stroke, radius, shadow, blur,
- motion, `--focus-ring-color`) and [DESIGN-TOKENS.md](../../DESIGN-TOKENS.md) (vocabulary
- + migration guidance). Per-surface palettes (`--mk-*`, `--pd-*`, `--ibm-*`, …) were
- **removed in B02** — do not reintroduce; a surface accent REMAPS these tokens.
-- **Token loading** — imported by [public/style.css](../../public/style.css) and
- [public/nav.css](../../public/nav.css) so tokens reach full-stylesheet pages and
- nav-only/embed surfaces. New pages just link one of those.
-- **Theming (no-flash boot + runtime)** — [scripts/inject-theme-boot.mjs](../../scripts/inject-theme-boot.mjs)
- (pre-paint `data-theme` apply; key `twx_theme`), [public/theme-switcher.js](../../public/theme-switcher.js)
- (toggle, persistence, cross-tab sync), the nav toggle in [public/nav.js](../../public/nav.js).
-- **Per-surface stylesheets** — [public/](../../public) `*.css` (~many). These are where
- drift hides: hardcoded hex/rgba/px, ad-hoc spacing, missing `:focus-visible`. Existing
- focus styles in [public/buttons.css](../../public/buttons.css), [public/home.css](../../public/home.css),
- [public/home-polish.css](../../public/home-polish.css) — extend, don't fork.
-
-## Do this
-
-1. **Read the vocabulary.** Read `DESIGN-TOKENS.md` and `tokens.css` end to end so you
- use the real token names (`var(--space-md)`, `var(--surface-1)`, `var(--text-sm)`,
- `--focus-ring-color`, motion tokens). Do not invent new names where one exists.
-2. **Find the drift.** Grep `public/*.css` and inline `src/`/`pages/` styles for
- hardcoded color (`#`, `rgb(`, `rgba(`, `hsl(`) and raw pixel spacing/sizing that an
- existing token already expresses. Build a list of offenders by file.
-3. **Migrate to tokens.** Replace each hardcoded value with the nearest correct token
- (color → surface/ink/stroke token; spacing/size → φ scale; font sizes → type ladder;
- radii/shadows/blur/motion → their tokens). If a genuinely new primitive is needed, add
- it once to `tokens.css` and document it in `DESIGN-TOKENS.md`, then use it everywhere.
-4. **Kill parallel palettes.** If any reintroduced `--mk-*`/`--pd-*`/`--ibm-*`-style
- namespace or standalone color set exists, collapse it into a thin theme layer that
- remaps the canonical tokens. One palette, not eight.
-5. **Interaction states everywhere.** Every interactive element (buttons, links, chips,
- tabs, cards, inputs) has consistent **hover**, **active**, and **`:focus-visible`**
- states drawn from tokens — using the shared focus ring, not ad-hoc outlines. Audit for
- controls missing any of the three.
-6. **Verify both themes.** `npm run dev`, toggle light/dark via the nav switch on home,
- forge, marketplace, wallet, and a settings/dashboard page. Confirm no unreadable
- contrast, no token that only works in one theme, and no flash on reload (theme-boot
- working). Run `node scripts/inject-theme-boot.mjs` (dry run) to confirm every real page
- carries the boot.
-7. **Typography & spacing rhythm.** Confirm headings, body, and labels map to the type
- ladder and that section/card padding uses the spacing scale — fix one-off rhythm that
- breaks the φ system.
-8. **Lock it & ship.** Run `npm run build:pages`, `npm run audit:web`, and `npm test`;
- re-grep to confirm the hardcoded-value count dropped (ideally to zero on touched
- files). Add a changelog entry for the visible consistency pass; `npm run build:pages`.
-
-## Must-not
-
-- Do not reintroduce a parallel per-surface palette — remap canonical tokens instead.
-- Do not hardcode a hex/rgba/px that an existing token already expresses.
-- Do not invent a new token name when one exists; only add to `tokens.css` for a genuinely
- new primitive, and document it.
-- Do not ship an interactive element missing hover/active/`:focus-visible`.
-- Do not break the no-flash theme boot or leave a token that fails in one theme.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Touched surfaces reference tokens; hardcoded hex/rgba/raw-px count dropped (zero where feasible).
-- [ ] No parallel palette remains; surface accents are thin remaps of canonical tokens.
-- [ ] Every interactive element has consistent hover, active, and `:focus-visible` states from tokens.
-- [ ] Light and dark themes are correct on home, forge, marketplace, wallet, and a dashboard page; no flash.
-- [ ] Typography and spacing map to the type ladder and φ spacing scale; any new token documented in `DESIGN-TOKENS.md`.
-- [ ] `npm run audit:web` and `npm test` pass.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/14-seo-structured-data.md b/prompts/billion-dollar-program/14-seo-structured-data.md
deleted file mode 100644
index e8b8a0117..000000000
--- a/prompts/billion-dollar-program/14-seo-structured-data.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 14 — SEO & structured data
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Organic search and well-formed link previews are the cheapest, most durable growth
-channel a platform has. Unique titles and descriptions win impressions; Open Graph and
-Twitter cards turn every shared link into an ad; JSON-LD structured data earns rich
-results; canonicals and a clean sitemap keep crawlers efficient. With ~125 pages, the
-compounding cost of missing or duplicate metadata is enormous — and increasingly,
-LLM-driven discovery reads `llms.txt`. A $1B platform is fully indexable and previews
-beautifully everywhere.
-
-## Mission
-
-Ensure every canonical, indexable page has a unique title and meta description, correct
-Open Graph + Twitter cards, valid JSON-LD, a self-referencing canonical, and that the
-sitemap, robots, and llms.txt all reflect reality — leaning on the existing injection
-tooling rather than hand-editing 125 files.
-
-## Map (trust but verify — files move)
-
-- **SEO injectors (the engine — use these)** — [scripts/inject-seo-meta.mjs](../../scripts/inject-seo-meta.mjs)
- (idempotently backfills `<title>`, description, canonical, OG/Twitter, WebPage/WebSite
- JSON-LD; never overwrites existing tags; re-points stale static OG images at
- `/api/page-og`), [scripts/inject-blog-seo.mjs](../../scripts/inject-blog-seo.mjs) (blog
- posts). Run via `npm run seo:meta`.
-- **Catalog (single source of copy)** — [data/pages.json](../../data/pages.json) feeds
- the injector, sitemap, and llms.txt. Titles/descriptions live here — edit copy here, not
- in 125 HTML heads.
-- **Page index build** — `npm run build:pages` ([scripts/build-page-index.mjs](../../scripts/build-page-index.mjs)),
- audited by [scripts/audit-page-index.mjs](../../scripts/audit-page-index.mjs) (`npm run audit:pages`).
-- **Discovery surfaces** — [public/sitemap/index.html](../../public/sitemap/index.html)
- (human sitemap), [public/robots.txt](../../public/robots.txt),
- [public/llms.txt](../../public/llms.txt) + [public/llms-full.txt](../../public/llms-full.txt).
-- **Dynamic OG cards** — `/api/page-og` (per-page social image) referenced by the injector.
-- **Routing (route → file resolution)** — [vercel.json](../../vercel.json) `routes` table,
- which the injector uses to map a route to its HTML file.
-
-## Do this
-
-1. **Coverage scan.** `npm run seo:meta` in dry-run (read the script's flags) to see which
- pages are missing title / description / canonical / OG / Twitter / JSON-LD. Cross-check
- counts: grep `pages/*.html` for `rel="canonical"`, `og:title`, `application/ld+json` and
- compare against the indexable page count to find the gaps.
-2. **Fix copy at the source.** For every indexable page, ensure `data/pages.json` has a
- **unique**, descriptive title (≤ ~60 chars) and meta description (~120–160 chars) — no
- duplicates, no boilerplate, real human language describing that page's value. This is
- where you edit copy.
-3. **Inject.** Run `npm run seo:meta` (write mode) to backfill title, description,
- canonical, OG, Twitter, and WebPage/WebSite JSON-LD across pages. Confirm it filled gaps
- without clobbering hand-authored tags.
-4. **Richer structured data where it earns rich results.** Beyond WebPage/WebSite, add the
- correct schema.org type to high-value templates: `BreadcrumbList` on nested pages,
- `Product`/`Offer` on marketplace listings, `Article`/`BlogPosting` on blog posts,
- `SoftwareApplication`/`Organization` where appropriate. Validate every block.
-5. **Canonicals & duplicates.** Every page self-references a canonical absolute URL;
- collapse duplicate/parameterized routes onto one canonical. Ensure non-indexable surfaces
- (embeds, widgets, kiosk) are `noindex` and excluded from the sitemap.
-6. **Sitemap, robots, llms.** Regenerate via `npm run build:pages` so the sitemap matches
- the live page set; verify `robots.txt` points to the sitemap and doesn't block indexable
- routes; confirm `llms.txt` / `llms-full.txt` reflect current pages and product framing.
-7. **Validate previews & markup.** Validate JSON-LD (Google Rich Results / Schema.org
- validator) on a sample of each template; check OG/Twitter previews resolve (per-page
- `/api/page-og` image renders, not a single static fallback). `npm run dev` and spot-check
- `<head>` on home, forge, marketplace, a blog post, and an agent profile.
-8. **Verify & ship.** Run `npm run audit:pages` (strict) and `npm test`. Add a changelog
- entry if the SEO improvements are user-visible (e.g. share-preview cards); `npm run build:pages`.
-
-## Must-not
-
-- Do not duplicate titles/descriptions across pages — each must be unique and descriptive.
-- Do not hand-edit metadata into 125 HTML heads — edit `data/pages.json` and run the injector.
-- Do not let the injector overwrite a page's existing hand-authored tags.
-- Do not index embed/widget/kiosk surfaces or list them in the sitemap.
-- Do not ship invalid JSON-LD; validate every block before claiming done.
-- Do not reference any coin other than `$THREE` in any title, description, or structured data.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every indexable page has a unique, descriptive title and meta description (no duplicates).
-- [ ] Every indexable page has a self-referencing canonical, OG + Twitter cards, and valid JSON-LD.
-- [ ] High-value templates carry the right schema type (Product/Article/Breadcrumb/etc.), all validated.
-- [ ] Per-page `/api/page-og` social images render (no single static fallback on shared links).
-- [ ] Sitemap matches the live page set; robots points to it; llms.txt/llms-full.txt are current.
-- [ ] Non-indexable surfaces are `noindex` and excluded from the sitemap.
-- [ ] `npm run audit:pages` (strict) and `npm test` pass; changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/15-forge-text-to-3d-pipeline.md b/prompts/billion-dollar-program/15-forge-text-to-3d-pipeline.md
deleted file mode 100644
index bab6447fe..000000000
--- a/prompts/billion-dollar-program/15-forge-text-to-3d-pipeline.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# 15 — Forge / Text→3D / Avatar generation pipeline (production-grade, end-to-end)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The Forge is the platform's front door: "describe it → get a 3D thing" is the demo
-that makes people screenshot and share. If text→3D, selfie→avatar, or prompt→avatar
-ever shows a spinner that never resolves, a raw vendor error, or a T-posed mesh, the
-core promise breaks and acquisition dies at the first touch. This surface must feel
-instant, never dead-end, and never leak provider internals.
-
-## Mission
-
-Make every generation path — text→3D object, text→avatar, selfie→avatar, image→3D —
-correct, resilient, and beautifully stated in every phase, with the **free NVIDIA NIM
-lane primary** and paid lanes as silent backstops the user never sees billing for.
-
-## Map (trust but verify — files move)
-
-- **Forge UI** — [src/forge.js](../../src/forge.js), [pages/forge.html](../../pages/forge.html),
- [src/forge-showcase.js](../../src/forge-showcase.js), [src/home-forge.js](../../src/home-forge.js).
-- **Prompt→avatar UI** — [src/create-prompt.js](../../src/create-prompt.js),
- [pages/create-prompt.html](../../pages/create-prompt.html). Selfie flow:
- `/create/selfie`.
-- **Text→image (provider chain)** — [api/_mcp3d/text-to-image.js](../../api/_mcp3d/text-to-image.js).
- Free-first cascade: **NVIDIA NIM FLUX → Vertex Imagen → Replicate (paid backstop)**.
-- **Reconstruct + auto-rig** — [api/avatars/_actions.js](../../api/avatars/_actions.js)
- (`handleReconstruct`), [api/_lib/reconstruct-finalize.js](../../api/_lib/reconstruct-finalize.js),
- [api/_lib/regen-provider.js](../../api/_lib/regen-provider.js), [api/_lib/auto-rig.js](../../api/_lib/auto-rig.js).
-- **Backends & tiers** — [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js),
- [api/_lib/forge-health.js](../../api/_lib/forge-health.js) (`GET /api/forge?health`),
- [api/forge.js](../../api/forge.js). Model workers in [workers/](../../workers):
- `model-trellis`, `model-hunyuan3d`, `unirig`, `longcat`.
-- **Tests** — [tests/api/text-to-image.test.js](../../tests/api/text-to-image.test.js),
- `tests/api/forge-free-first.test.js`, `tests/api/forge-fallback.test.js`,
- `tests/api/forge-health.test.js`, `tests/api/reconstruct-finalize.test.js`,
- `tests/forge-avatar-humanoid.test.js`.
-
-## Do this
-
-1. **Exercise every lane in a real browser** (`npm run dev`): text→3D object, prompt→avatar,
- selfie→avatar. Watch the Network tab and console. Confirm the free NIM lane serves
- first (`/api/forge?health` shows `nvidia: ok`).
-2. **No provider internals ever reach the user.** Audit every error path in the chain
- above: billing/credit/quota messages, raw stack traces, and vendor URLs must be
- masked to neutral, actionable copy. Keep raw detail in server logs only.
-3. **Every phase is designed:** reference-image render, reconstruct, rig — each with a
- live label, real elapsed time, and a skeleton/progress affordance (not a fake
- `setTimeout` bar). Empty state tells the user what to type; error state says what
- to do next.
-4. **Resilience:** a hung or throttled free lane must hand off to the next lane within
- a tight timeout, never stall the pipeline. Verify the cascade with the existing
- fallback tests; add cover for any uncovered failure mode (timeout, 402, 429, NSFW,
- no-face, OOM).
-5. **Right page for the input:** plain objects belong on Text→3D; humanoid prompts on
- the avatar flow. Make the routing/affordances obvious so users don't land a "box"
- on the face pipeline.
-6. **Rig quality:** confirm generated humanoids drive the canonical clip library (no
- T-pose fallback unless genuinely non-humanoid, per the `/CLAUDE.md` avatar rule).
-7. **Result handling:** every finished model has a working viewer, a real thumbnail
- (not a 1px snapshot), correct "rigged/static" tagging, and natural next steps
- (open in editor, make another, launch, walk).
-8. Run `npx vitest run tests/api/text-to-image.test.js tests/api/forge-*.test.js
- tests/api/reconstruct-finalize.test.js` and the avatar humanoid test. Add a
- changelog entry for any user-visible change; `npm run build:pages`.
-
-## Must-not
-
-- Do not surface any third party's billing page, credit balance, or raw error to a buyer.
-- Do not add a hardcoded rig allowlist — extend `glb-canonicalize.js` bone maps instead.
-- Do not ship a fake progress bar or a spinner with no timeout.
-- Do not reference any coin other than `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Text→3D, prompt→avatar, and selfie→avatar all complete successfully in a real
- browser with the free NIM lane primary; no console errors/warnings.
-- [ ] Every failure mode (402/429/timeout/NSFW/no-face/OOM/unconfigured) yields a
- neutral, actionable message — no vendor internals, verified by tests.
-- [ ] Loading/empty/error/done states are all designed; elapsed time is real.
-- [ ] Generated humanoids are rigged and animate (no unjustified T-pose); thumbnails render.
-- [ ] All forge/text-to-image/reconstruct tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/16-marketplace.md b/prompts/billion-dollar-program/16-marketplace.md
deleted file mode 100644
index 5391472e5..000000000
--- a/prompts/billion-dollar-program/16-marketplace.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# 16 — Marketplace (buy, sell & remix)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The marketplace is where the platform's flywheel becomes a business: creators list
-agents, avatars, skills and animations; buyers discover, try, and pay; remixers fork
-and re-list. If discovery is slow, a buy silently fails, a "fork" lands on a broken
-page, or a listing shows a 1px thumbnail, the supply side stops creating and the demand
-side stops paying — and the GMV that justifies a $1B valuation never accrues. This
-surface must feel like Vercel's template gallery crossed with Stripe-grade checkout.
-
-## Mission
-
-Make the full marketplace loop — list → browse/search/sort/filter → detail → buy/sell/remix
-→ settled payment → linked profile — correct, fast, and beautifully stated in every state,
-with real USDC settlement and zero dead paths.
-
-## Map (trust but verify — files move)
-
-- **List + detail controller (SPA)** — [src/marketplace.js](../../src/marketplace.js)
- (list view with category sidebar + search; detail with 5 tabs; path routing
- `/marketplace` and `/marketplace/agents/:id`), [src/marketplace-detail.js](../../src/marketplace-detail.js)
- (3D avatar in header, live "try before you fork" SSE chat preview, creator modal,
- mobile sidebar), [pages/marketplace.html](../../pages/marketplace.html) (loads
- `/src/marketplace.js`; route `/marketplace` in [vercel.json](../../vercel.json)).
-- **Lobby / detail-market helpers** — [src/marketplace-lobby.js](../../src/marketplace-lobby.js),
- [src/agent-detail-market.js](../../src/agent-detail-market.js).
-- **Analytics surface** — [src/marketplace-analytics.js](../../src/marketplace-analytics.js),
- [pages/marketplace-analytics.html](../../pages/marketplace-analytics.html),
- [api/marketplace/analytics.js](../../api/marketplace/analytics.js).
-- **Marketplace API** — [api/marketplace/[action].js](../../api/marketplace/[action].js)
- (categories, agents list `?category=&q=&sort=&cursor=&pricing=`, create/mine/detail/versions/similar/fork/bookmark/publish/view),
- [api/marketplace/purchase.js](../../api/marketplace/purchase.js),
- [api/marketplace/purchase-as-agent.js](../../api/marketplace/purchase-as-agent.js),
- [api/marketplace/purchase-bundle.js](../../api/marketplace/purchase-bundle.js),
- [api/marketplace/buy-asset.js](../../api/marketplace/buy-asset.js),
- [api/marketplace/asset-price.js](../../api/marketplace/asset-price.js),
- [api/marketplace/set-skill-price.js](../../api/marketplace/set-skill-price.js),
- [api/marketplace/reviews.js](../../api/marketplace/reviews.js),
- [api/marketplace/start-trial.js](../../api/marketplace/start-trial.js),
- [api/marketplace/animations.js](../../api/marketplace/animations.js),
- [api/marketplace/check-skill-access.js](../../api/marketplace/check-skill-access.js).
-- **Cross-links** — agent profiles via [src/shared/agent-3d.js](../../src/shared/agent-3d.js)
- (`seeInWorldHref`, `hasCustomAvatar`), `/agents/:id` ([pages/agent-detail.html](../../pages/agent-detail.html)),
- avatar/animation galleries ([pages/animations.html](../../pages/animations.html),
- [api/avatars/](../../api/avatars)). Shared state kit:
- [src/shared/state-kit.js](../../src/shared/state-kit.js) (skeleton/empty/error),
- [src/shared/list-controls.js](../../src/shared/list-controls.js) (`debounce`, `syncStateToUrl`).
-- **Payments** — settlement runs through the x402 + agent-wallet plumbing in
- [api/_lib/](../../api/_lib) (see prompt `18`). Platform fee logic is exercised by
- [tests/api/marketplace-platform-fee.test.js](../../tests/api/marketplace-platform-fee.test.js).
-- **Tests** — [tests/api/marketplace-agent-detail-prices.test.js](../../tests/api/marketplace-agent-detail-prices.test.js),
- [tests/api/marketplace-agent-detail-subscriptions.test.js](../../tests/api/marketplace-agent-detail-subscriptions.test.js),
- [tests/api/marketplace-animations.test.js](../../tests/api/marketplace-animations.test.js),
- [tests/api/marketplace-platform-fee.test.js](../../tests/api/marketplace-platform-fee.test.js).
-
-## Do this
-
-1. **Exercise the whole loop in a real browser** (`npm run dev`, port 3000): open
- `/marketplace`, browse, search, switch categories, change sort, filter by pricing,
- open a detail page, run the live chat preview, fork an agent, and buy a paid skill.
- Watch the Network tab — every call (`/api/marketplace/...`) must return real data,
- 200/4xx with intent, never a silent hang.
-2. **Design every list state:** skeleton on load (use `state-kit.js`), helpful empty
- state for "no results in this category / no matches for this query" (offer a reset
- action — don't show a void), an error state with retry, and overflow handling for
- 1000+ listings (cursor pagination via `?cursor=`, not a giant DOM). Persist
- search/sort/filter to the URL with `syncStateToUrl` so results are shareable and
- back-button-safe; debounce the search input.
-3. **Sort + filter must actually work end-to-end.** Confirm each `sort` value and the
- `pricing` filter map to real SQL ordering/filtering in `[action].js` (not a no-op).
- If a control renders but does nothing, wire it or remove it — no dead controls.
-4. **Detail view is complete:** real 3D avatar in the header (not an emoji placeholder),
- working tabs, accurate pricing (one-time / subscription / time-pass), reviews
- ([reviews.js](../../api/marketplace/reviews.js)), version history, "similar" agents,
- and a creator modal that lists the author's other agents and avatars. Every link
- resolves to a live page; every CTA does something.
-5. **Buy/sell/remix flows settle for real:** a purchase posts to `purchase.js` /
- `buy-asset.js` / `purchase-bundle.js`, returns a real receipt, and grants access
- (verify with `check-skill-access.js`). A "fork" creates a real editable copy and
- routes the user to it. Selling: a creator can set a price (`set-skill-price.js`,
- `asset-price.js`) and see it reflected in the listing. Never fake a success toast
- without a settled transaction.
-6. **Payment failure is designed, not leaked:** insufficient funds, declined, network
- timeout, and idempotent retry all yield neutral, actionable copy and never surface a
- provider's billing page or a raw stack trace. Reuse the x402 error helpers from
- prompt `18`. A second click on "buy" must not double-charge.
-7. **Cross-pollinate the platform:** every listing links to the agent's public profile
- (`/agents/:id`), to "see in world", and to the avatar/animation gallery where
- relevant. A bought animation should be usable in the editor; a forked agent should
- open in Agent Studio. Wire these connections — a marketplace that doesn't link out
- is half-built.
-8. **Accessibility + microinteractions:** category sidebar is keyboard-navigable, every
- card/button has hover/active/focus states, the mobile hamburger sidebar traps focus,
- and `pricing`/`sort` controls are labeled. Test mentally at 320 / 768 / 1440.
-9. **Run the tests and ship the changelog:** `npx vitest run tests/api/marketplace-*.test.js`.
- Add a `data/changelog.json` entry for any user-visible change, then `npm run
- build:pages` (it validates the entry).
-
-## Must-not
-
-- Do not show a fake success state, a fake progress bar, or a toast without a settled
- on-chain/x402 transaction.
-- Do not leak any third party's billing page, credit balance, or raw error to a buyer —
- mask to neutral copy; keep detail in server logs.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Runtime launch records the user
- created are fine; hardcoded mints are not.
-- Do not leave dead controls (a sort/filter/tab/button that renders but does nothing).
-- Do not break the existing detail SPA routing, the SSE chat preview, or the platform-fee math.
-- No mocks, no sample-listing arrays shipped to production, no TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] List, search, sort, filter, detail, buy, sell, fork all work in a real browser
- with real `/api/marketplace/*` calls; no console errors or warnings.
-- [ ] Loading (skeleton), empty (with reset CTA), error (with retry), populated, and
- 1000+-item overflow (cursor pagination) states are all designed.
-- [ ] Search/sort/filter persist to the URL and survive a refresh and back button.
-- [ ] A purchase settles real USDC, returns a receipt, grants access; a second click
- does not double-charge; failures show neutral, actionable copy with no vendor internals.
-- [ ] Detail header shows a real 3D avatar + real thumbnail; every link/CTA resolves
- to a live page (profile, see-in-world, editor, gallery).
-- [ ] Every interactive element has hover/active/focus states; layout holds at 320/768/1440;
- keyboard navigation works.
-- [ ] `npx vitest run tests/api/marketplace-*.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/17-agent-profiles-studio-economy.md b/prompts/billion-dollar-program/17-agent-profiles-studio-economy.md
deleted file mode 100644
index a3f8858b6..000000000
--- a/prompts/billion-dollar-program/17-agent-profiles-studio-economy.md
+++ /dev/null
@@ -1,142 +0,0 @@
-# 17 — Agent profiles, Agent Studio & economy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-An agent is the platform's atomic unit of value: people create one, give it a brain,
-memory, body, money, and skills, publish a profile, build reputation, and let it earn
-and delegate. If the creation wizard dead-ends, the Studio shows a "mounts here"
-placeholder, a public profile 404s, or reputation is decorative, the supply side never
-compounds and there's no economy to scale. The best version feels like Linear's polish
-applied to "spin up an autonomous, earning, on-chain agent."
-
-## Mission
-
-Make the full agent lifecycle — create → configure (Brain · Memory · Body · Money ·
-Skills, with a live avatar) → publish profile → earn reputation → appear in the activity
-feed → delegate to other agents — complete, wired, and every state designed.
-
-## Map (trust but verify — files move)
-
-- **Creation wizard** — [src/create-agent.js](../../src/create-agent.js) (5 steps:
- basics → 3D model → skills → personality → review; writes through `/api/agents` and
- `/api/marketplace/agents/:id/publish`), [pages/create-agent.html](../../pages/create-agent.html)
- (route `/create-agent`).
-- **Agent Studio (Brain/Memory/Body/Money/Skills)** — [pages/agent-studio.html](../../pages/agent-studio.html)
- (route `/agent-studio`; loads [src/studio/studio-shell.js](../../src/studio/studio-shell.js)
- which defines the five tabs + empty "mounts here" states),
- [src/studio/brain/](../../src/studio/brain) (`brain-mount.js`, `brain-studio.js`,
- `brain-graph.js`, `brain-compile.js`, `brain-runtime.js`, `brain-templates.js`,
- `brain-nodes.js`), [src/studio/memory/](../../src/studio/memory) (`memory-mount.js`,
- `memory-studio.js`, `memory-graph.js`, `memory-client.js`),
- [src/studio/agent-studio-store.js](../../src/studio/agent-studio-store.js),
- [src/studio/agent-presence.js](../../src/studio/agent-presence.js). Live avatar via
- [src/agent-avatar.js](../../src/agent-avatar.js) / [src/shared/agent-3d.js](../../src/shared/agent-3d.js).
- Note: **Brain and Memory mount real studios; Body, Money, and Skills currently render
- placeholder empty states** in `studio-shell.js` — finish them.
-- **Launch/fees/knowledge studio (`/studio`)** — [public/studio/](../../public/studio)
- (`studio.js`, `launch-panel.js`, `fees-panel.js`, `knowledge-panel.js`; route `/studio`).
-- **Public profiles** — [pages/profile.html](../../pages/profile.html) (route `/u/:name`),
- [pages/agent-detail.html](../../pages/agent-detail.html) + [src/agent-detail.js](../../src/agent-detail.js)
- + [src/agent-detail.css](../../src/agent-detail.css) (route `/agents/:id`),
- [api/agents/public.js](../../api/agents/public.js), [api/agents/[id].js](../../api/agents/[id].js),
- [api/agents/by-wallet.js](../../api/agents/by-wallet.js), [api/agents/featured.js](../../api/agents/featured.js).
-- **Economy** — [pages/agent-economy.html](../../pages/agent-economy.html) +
- [src/agent-economy.js](../../src/agent-economy.js) (two 3D agents transacting real SOL;
- route `/agent-economy`), [src/agent-skills.js](../../src/agent-skills.js) and the
- `src/agent-skills-*.js` family, agent wallet via [src/agent-wallet.js](../../src/agent-wallet.js)
- (see prompt `18`).
-- **ERC-8004 reputation** — on-chain registries in [contracts/src/](../../contracts/src)
- (`IdentityRegistry.sol`, `ReputationRegistry.sol`, `ValidationRegistry.sol`),
- [api/agents/8004/agent.js](../../api/agents/8004/agent.js), [api/agents/8004/search.js](../../api/agents/8004/search.js),
- and the MCP `agent_reputation` tool. Onchain badge: [src/shared/onchain-badge.js](../../src/shared/onchain-badge.js).
-- **Agent-to-agent delegation** — [api/agents/a2a-call.js](../../api/agents/a2a-call.js),
- [api/agents/a2a-mandate.js](../../api/agents/a2a-mandate.js),
- [api/agents/a2a-paid.js](../../api/agents/a2a-paid.js),
- [api/agents/a2a-cart-verify.js](../../api/agents/a2a-cart-verify.js),
- [src/agent-skills-a2a.js](../../src/agent-skills-a2a.js).
-- **Tests** — [tests/agent-protocol.test.js](../../tests/agent-protocol.test.js),
- [tests/agent-a2a-payments.test.js](../../tests/agent-a2a-payments.test.js),
- [tests/api-agent-memory.test.js](../../tests/api-agent-memory.test.js),
- [tests/brain-studio-compile.test.js](../../tests/brain-studio-compile.test.js),
- [tests/studio-launch-panel.test.js](../../tests/studio-launch-panel.test.js),
- [tests/studio-fees-panel.test.js](../../tests/studio-fees-panel.test.js),
- [tests/agent-detail-avatar.test.js](../../tests/agent-detail-avatar.test.js).
-
-## Do this
-
-1. **Run the wizard end-to-end in a real browser** (`npm run dev`): `/create-agent`,
- complete all 5 steps, attach a 3D model, pick skills, set personality, publish.
- Confirm a real agent row is created via `/api/agents` and (if chosen) listed via the
- marketplace publish endpoint. Watch the Network tab — no silent failures, every step
- validates input before advancing.
-2. **Finish Agent Studio.** Brain and Memory mount real studios; **build Body, Money,
- and Skills to the same bar** — replace the placeholder empty states in
- `studio-shell.js` with real, wired panels: Body (attach/preview avatar, outfit,
- animations driving the canonical clip library), Money (fund wallet, set per-skill
- pricing, view payouts — reuse the wallet plumbing from prompt `18`), Skills
- (toggle/configure capabilities, set what's sellable). A **live avatar preview**
- reflects Body changes immediately. Persist via `agent-studio-store.js`.
-3. **Every Studio state is designed:** loading skeleton per tab, empty state that tells
- the user what to do (not "mounts here"), error state with recovery, and a clear save
- /dirty indicator. No tab may ship a dead placeholder.
-4. **Public profiles are complete and shareable:** `/u/:name` and `/agents/:id` render
- the real 3D avatar, bio, skills, pricing, reputation, owned coins, and an **activity
- feed** of real events (creations, sales, delegations, reputation changes). Design
- loading/empty/error/overflow. Every CTA (talk, hire, see-in-world, fork, open in
- studio) resolves to a live page. Profile OG images render.
-5. **ERC-8004 reputation is real, not decorative:** the onchain badge reflects actual
- registry data (identity / reputation / validation) read via `api/agents/8004/*` and
- the `agent_reputation` MCP tool. Show a designed state when an agent isn't yet
- on-chain (with a path to register), and never a broken/empty badge.
-6. **Agent economy works for real:** on `/agent-economy`, the two agents transact real
- SOL (existing pattern), balances poll live, the tx feed links to an explorer, and
- failures (insufficient funds, RPC hiccup) show neutral, actionable copy with an
- add-funds path. No fake particle "success" without a confirmed tx.
-7. **Agent-to-agent delegation is wired:** one agent can delegate a paid action to
- another (`a2a-call` / `a2a-mandate` / `a2a-paid`) with spend caps respected,
- idempotent settlement, and a result surfaced in the activity feed. Exercise the
- delegation path and confirm it appears on both agents' profiles.
-8. **Cross-pollinate:** profile ↔ marketplace listing ↔ Agent Studio ↔ wallet ↔
- economy must all link both directions. A user who lands on any one surface can reach
- the others naturally. Audit for dead paths and unreachable states.
-9. **Accessibility + responsiveness:** wizard steps and Studio tabs are keyboard- and
- screen-reader-navigable with focus management; layout holds at 320 / 768 / 1440;
- every interactive element has hover/active/focus states.
-10. **Run the tests and ship the changelog:** `npx vitest run tests/agent-*.test.js
- tests/studio-*.test.js tests/brain-studio-compile.test.js tests/api-agent-memory.test.js`.
- Add a `data/changelog.json` entry for user-visible changes, then `npm run build:pages`.
-
-## Must-not
-
-- Do not leave Body, Money, or Skills as "mounts here" placeholders — finish them or
- do not claim done.
-- Do not ship a decorative reputation badge — it must reflect real ERC-8004 registry data.
-- Do not fake economy/delegation success without a confirmed on-chain/x402 transaction.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); runtime user-launch records are fine.
-- Do not break the existing wizard write-through, the Brain/Memory studios, or the
- custodial wallet flow.
-- No mocks, no fake activity-feed data, no TODOs, no T-pose fallback for humanoids
- (extend `glb-canonicalize.js` bone maps, per `/CLAUDE.md`).
-
-## Acceptance (all true before claiming done)
-
-- [ ] The 5-step wizard creates a real agent and optionally publishes it; input is
- validated at each step; no console errors/warnings.
-- [ ] Agent Studio Brain, Memory, Body, Money, and Skills tabs are all real and wired,
- with a live avatar preview reacting to Body changes; each tab has designed
- loading/empty/error states.
-- [ ] `/u/:name` and `/agents/:id` render real avatar + data + an activity feed of real
- events; OG images render; every CTA resolves to a live page.
-- [ ] The onchain reputation badge reflects real ERC-8004 data and has a designed
- not-yet-registered state.
-- [ ] Agent economy and a2a delegation settle real transactions with spend caps,
- idempotency, and neutral failure copy; results show in the activity feed.
-- [ ] All listed surfaces link to each other (no dead paths); layout holds at
- 320/768/1440; keyboard navigation works.
-- [ ] `npx vitest run tests/agent-*.test.js tests/studio-*.test.js tests/brain-studio-compile.test.js tests/api-agent-memory.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/18-wallet-x402-payments.md b/prompts/billion-dollar-program/18-wallet-x402-payments.md
deleted file mode 100644
index 033f8978d..000000000
--- a/prompts/billion-dollar-program/18-wallet-x402-payments.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# 18 — Wallet & x402 payments
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Payments are the platform's bloodstream: every marketplace buy, paid skill call, agent
-delegation, and creator payout flows through the custodial agent wallet and the x402
-protocol. If a payment double-settles, an idempotency key collides, a custodial secret
-is mishandled, or a verify/settle silently fails, the platform loses money and trust —
-and trust is the only currency a payments business actually has. Stripe is the bar:
-correct to the cent, reconcilable, never leaks internal state, every failure recoverable.
-
-## Mission
-
-Make the agent wallet and the x402 paid-endpoint stack — custody, verify, settle,
-idempotency, USDC on Solana and Base, send/fund/trade/pay, Solana Pay, and reconciliation
-— provably correct, resilient, and beautifully stated in every state, end to end.
-
-## Map (trust but verify — files move)
-
-- **Custody** — [api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js)
- (`generateSolanaAgentWallet`, `getOrCreateAgentSolanaWallet`, `getOrCreateAgentEvmWallet`,
- `recoverAgentKey`, `delegatedSpend`, `triggerSkillPayment`, `getAgentBalance`,
- `canAfford`), [api/_lib/secret-box.js](../../api/_lib/secret-box.js) (`encryptSecret`/
- `decryptSecret`, `v2:` envelope), [api/_lib/solana-wallet.js](../../api/_lib/solana-wallet.js),
- [api/_lib/avatar-wallet.js](../../api/_lib/avatar-wallet.js). Custody design doc:
- [docs/internal/AGENT-WALLET-CUSTODY.md](../../docs/internal/AGENT-WALLET-CUSTODY.md) — **read it first.**
-- **x402 protocol core** — [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js)
- (version 2, network constants for Base/Arbitrum/BSC/Solana, permit2 variants),
- [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js) (`paidEndpoint(spec)`
- wrapper), [api/_lib/x402/payment-identifier-server.js](../../api/_lib/x402/payment-identifier-server.js)
- (idempotency), [api/_lib/x402-errors.js](../../api/_lib/x402-errors.js),
- [api/_lib/x402-solana-confirm.js](../../api/_lib/x402-solana-confirm.js),
- [api/_lib/evm-payment-verify.js](../../api/_lib/evm-payment-verify.js),
- [api/_lib/x402-spending-cap.js](../../api/_lib/x402-spending-cap.js),
- [api/_lib/x402-spending-ledger.js](../../api/_lib/x402-spending-ledger.js),
- [api/_lib/x402-builder-code.js](../../api/_lib/x402-builder-code.js),
- [api/_lib/x402-prices.js](../../api/_lib/x402-prices.js).
-- **Paid endpoints** — [api/x402/](../../api/x402) (e.g. `forge.js`, `skill-call.js`,
- `skill-marketplace.js`, `pay-by-name.js`, `my-receipts.js`, `did.js`,
- `agent-reputation.js`), [api/x402-pay.js](../../api/x402-pay.js),
- [api/payments/solana/[action].js](../../api/payments/solana/[action].js),
- [api/webhooks/solana-pay.js](../../api/webhooks/solana-pay.js) (Solana Pay).
-- **Wallet UI** — [pages/agent-wallet.html](../../pages/agent-wallet.html) (route
- `/agents/:id/wallet`), [src/agent-wallet.js](../../src/agent-wallet.js),
- [src/agent-wallet-hub/](../../src/agent-wallet-hub) (`index.js`, `registry.js`,
- `tabs/` → `balance.js`, `deposit.js`, `withdraw.js`, `give.js`, `pay.js`, `trade.js`,
- `snipe.js`, `vanity.js`), [src/agent-x402-pay.js](../../src/agent-x402-pay.js),
- [src/payment-modal.js](../../src/payment-modal.js), [src/forge-pay.js](../../src/forge-pay.js),
- [src/shared/add-funds.js](../../src/shared/add-funds.js),
- [src/shared/payment-receipt.js](../../src/shared/payment-receipt.js).
-- **The /pay page** — [public/pay/index.html](../../public/pay/index.html) (route `/pay`).
-- **Skills (real, end-user)** — `authenticate-wallet`, `fund`, `send-usdc`, `trade`,
- `pay-for-service` (USDC on Base/Polygon/Solana, send/fund/trade/x402 pay).
-- **SDKs** — [solana-agent-sdk/](../../solana-agent-sdk), [agent-payments-sdk/](../../agent-payments-sdk).
-- **Tests** — [tests/api/x402-paid-endpoint-replay.test.js](../../tests/api/x402-paid-endpoint-replay.test.js),
- [tests/api/x402-payment-identifier.test.js](../../tests/api/x402-payment-identifier.test.js),
- [tests/api/x402-spec.test.js](../../tests/api/x402-spec.test.js),
- [tests/api/x402-security-fixes.test.js](../../tests/api/x402-security-fixes.test.js),
- [tests/api/x402-pay-routing.test.js](../../tests/api/x402-pay-routing.test.js),
- [tests/api/x402-gas-sponsoring.test.js](../../tests/api/x402-gas-sponsoring.test.js),
- [tests/agent-custody-guards.test.js](../../tests/agent-custody-guards.test.js),
- [tests/agent-wallet-pay-tab.test.js](../../tests/agent-wallet-pay-tab.test.js)
- (and the `agent-wallet-*-tab` family), [tests/api/solana-wallet-balance.test.js](../../tests/api/solana-wallet-balance.test.js).
-
-## Do this
-
-1. **Read the custody doc first** ([docs/internal/AGENT-WALLET-CUSTODY.md](../../docs/internal/AGENT-WALLET-CUSTODY.md)),
- then exercise the wallet in a real browser (`npm run dev`): open `/agents/:id/wallet`,
- walk every tab — balance, deposit, withdraw, give, pay, trade — and the `/pay` page.
- Watch the Network tab: every settlement is a real on-chain/x402 transaction with a
- real signature, never a fake toast.
-2. **Custody safety:** confirm secrets are only ever stored encrypted (`secret-box.js`
- `v2:` envelope) and decrypted in-memory at the moment of signing, never logged,
- returned to the client, or persisted in plaintext. Verify `recoverAgentKey` audit
- hooks fire. The custody guard tests must pass and cover the decrypt path.
-3. **Idempotency is bulletproof:** using `payment-identifier-server.js`, a replayed
- payment payload or a double-clicked "pay" must settle exactly once and return the
- original receipt — never double-charge, never error opaquely. Verify with the replay
- and payment-identifier tests; add cover for any uncovered race (concurrent identical
- requests).
-4. **Verify + settle on both chains:** confirm USDC payments verify and settle correctly
- on **Solana** (`x402-solana-confirm.js`, the `solana:5eykt4...` mainnet constant) and
- **Base** (`evm-payment-verify.js`, `eip155:8453`), including Solana Pay
- (`api/webhooks/solana-pay.js`, `api/payments/solana/`). Spending caps
- (`x402-spending-cap.js`) and the ledger (`x402-spending-ledger.js`) are enforced
- before settlement.
-5. **send / fund / trade / pay all complete for real:** sending USDC, funding (on-ramp/
- add-funds), trading, and paying an x402 endpoint each produce a confirmed transaction,
- a real receipt (`payment-receipt.js`), and an updated balance. Insufficient funds
- routes to a real add-funds path, not a dead error.
-6. **Every state is designed:** wallet loading skeleton, zero-balance empty state with a
- clear fund CTA, pending-tx state with real status (not a fake spinner), confirmed
- state with explorer link + receipt, and an error state that says what failed and how
- to recover. Reconciliation: a tx that confirms on-chain but whose callback was lost
- is reconciled (poll/webhook) so the UI and ledger never drift.
-7. **No provider internals leak:** RPC errors, gas/fee failures, throttling (429), and
- declined payments are masked to neutral, actionable copy via `x402-errors.js`; raw
- detail stays in server logs. Use the existing **cockatiel** resilience helper for
- RPC retries/circuit-breaking — a single flaky RPC must not strand a payment.
-8. **Reliability + reconciliation pass:** confirm a retried RPC, a dropped webhook, and a
- timed-out confirm all converge to a single correct ledger state with a re-fetchable
- receipt (`api/x402/my-receipts.js`). No money is lost or double-counted under failure.
-9. **Accessibility + microinteractions:** wallet tabs are keyboard-navigable with focus
- management, amounts use accessible inputs with validation, every action has
- hover/active/focus/disabled states, and the layout holds at 320 / 768 / 1440.
-10. **Run the tests and ship the changelog:** `npx vitest run tests/api/x402-*.test.js
- tests/agent-custody-guards.test.js tests/agent-wallet-*-tab.test.js
- tests/api/solana-wallet-balance.test.js`. Add a `data/changelog.json` entry for any
- user-visible change, then `npm run build:pages`.
-
-## Must-not
-
-- Never log, return to the client, or persist a wallet secret in plaintext; decrypt only
- in-memory at signing time.
-- Never double-settle: a replayed or double-clicked payment must settle exactly once and
- return the original receipt.
-- Never leak a provider's billing page, RPC internals, gas error, or raw stack trace to a
- user — mask via `x402-errors.js`; keep detail in server logs.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); the only payment token here is USDC and
- generic runtime-supplied mints.
-- Do not weaken or bypass spending caps, the spending ledger, or the idempotency layer to
- "make it work."
-- No mocks of the RPC/x402 stack, no fake receipts, no fake balances, no TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every wallet tab (balance/deposit/withdraw/give/pay/trade) and the `/pay` page
- complete real settlements with real signatures in a real browser; no console
- errors/warnings.
-- [ ] Wallet secrets are encrypted at rest (`v2:` envelope), decrypted only in-memory at
- signing, never logged or returned; custody guard tests pass.
-- [ ] A replayed/double-clicked payment settles exactly once and returns the original
- receipt; replay + payment-identifier tests pass.
-- [ ] USDC verify/settle works on both Solana and Base (and via Solana Pay); spending
- caps and ledger are enforced pre-settlement.
-- [ ] send/fund/trade/pay each produce a confirmed tx, a real receipt, and an updated
- balance; insufficient funds routes to a real fund path.
-- [ ] Loading/empty(zero-balance)/pending/confirmed/error states are all designed;
- dropped webhooks and timed-out confirms reconcile to a single correct ledger state.
-- [ ] No provider internals leak on any failure (verified by tests); RPC failures use
- cockatiel retry/circuit-breaking.
-- [ ] `npx vitest run tests/api/x402-*.test.js tests/agent-custody-guards.test.js tests/agent-wallet-*-tab.test.js tests/api/solana-wallet-balance.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/19-walk-page-agent-tour.md b/prompts/billion-dollar-program/19-walk-page-agent-tour.md
deleted file mode 100644
index 0efe0b969..000000000
--- a/prompts/billion-dollar-program/19-walk-page-agent-tour.md
+++ /dev/null
@@ -1,133 +0,0 @@
-# 19 — Walk companion, Page-Agent & Feature Tour
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-These three surfaces are how three.ws makes a 3D agent *show up* on any page — the
-corner mascot that strolls a site, the drop-in narrator that explains a product, and
-the guided tour that walks a first-time visitor through the platform. They are the
-embeddable, shareable, screenshot-worthy front of the funnel and the reason a
-developer installs `@three-ws/walk` or `@three-ws/page-agent` instead of building
-their own. If the companion janks, the narrator picks a T-posed avatar, or the tour
-dead-ends, the "living 3D web" promise dies on first contact and so does virality.
-
-## Mission
-
-Take the Walk companion (mascot + full-page playground + diverse avatar picker), the
-`<page-agent>` narrator, and the 3D Feature Tour to end-to-end production polish:
-every state designed, every avatar rigged and animating, smooth at 60fps, and never a
-broken hand-off between modes.
-
-## Map (trust but verify — files move)
-
-- **Walk SDK (`@three-ws/walk`)** — [walk-sdk/src/index.js](../../walk-sdk/src/index.js)
- (public API), [walk-sdk/src/companion.js](../../walk-sdk/src/companion.js) (corner
- mascot), [walk-sdk/src/playground.js](../../walk-sdk/src/playground.js) (full-page
- stroll/platformer), [walk-sdk/src/picker.js](../../walk-sdk/src/picker.js) +
- [walk-sdk/src/roster.js](../../walk-sdk/src/roster.js) (diverse avatar picker +
- `WALK_AVATARS`), [walk-sdk/src/config.js](../../walk-sdk/src/config.js),
- [walk-sdk/package.json](../../walk-sdk/package.json), [walk-sdk/README.md](../../walk-sdk/README.md).
-- **Walk app entries** — [src/walk-companion.js](../../src/walk-companion.js) (on-demand
- platform inject), [src/walk-playground.js](../../src/walk-playground.js). Pages:
- [pages/walk-landing.html](../../pages/walk-landing.html) (`/walk`),
- [pages/walk-embed.html](../../pages/walk-embed.html) (`/walk-embed` code generator),
- [pages/walk-leaderboard.html](../../pages/walk-leaderboard.html),
- [pages/walk-analytics.html](../../pages/walk-analytics.html).
-- **Page-Agent SDK (`@three-ws/page-agent`)** — [page-agent-sdk/src/index.js](../../page-agent-sdk/src/index.js)
- (public API), [page-agent-sdk/src/element.js](../../page-agent-sdk/src/element.js)
- (`<page-agent>` custom element), [page-agent-sdk/src/page-agent.js](../../page-agent-sdk/src/page-agent.js)
- (controller), [page-agent-sdk/src/catalog.js](../../page-agent-sdk/src/catalog.js)
- (**rigged-only** catalog), [page-agent-sdk/src/picker.js](../../page-agent-sdk/src/picker.js),
- [page-agent-sdk/src/narrator.js](../../page-agent-sdk/src/narrator.js),
- [page-agent-sdk/src/lipsync.js](../../page-agent-sdk/src/lipsync.js),
- [page-agent-sdk/src/stage.js](../../page-agent-sdk/src/stage.js). Demos:
- [page-agent-sdk/examples/](../../page-agent-sdk/examples). Publish:
- [page-agent-sdk/PUBLISHING.md](../../page-agent-sdk/PUBLISHING.md).
-- **Feature Tour** — [src/feature-tour/index.js](../../src/feature-tour/index.js)
- (`createFeatureTour`, `?tour=start` bootstrap), [src/feature-tour/director.js](../../src/feature-tour/director.js)
- (curriculum stepping/spotlight/pointing), [src/feature-tour/controls.js](../../src/feature-tour/controls.js)
- (playback bar), [src/feature-tour/free-roam.js](../../src/feature-tour/free-roam.js)
- (hand-off to click-to-walk), [src/feature-tour/guide-avatar.js](../../src/feature-tour/guide-avatar.js)
- (guide character), [src/feature-tour/narrator.js](../../src/feature-tour/narrator.js),
- [src/feature-tour/chapters.js](../../src/feature-tour/chapters.js),
- [src/feature-tour/curriculum.js](../../src/feature-tour/curriculum.js),
- [src/feature-tour/spotlight.js](../../src/feature-tour/spotlight.js). App entry:
- [src/feature-tour.js](../../src/feature-tour.js). Page: [pages/tour.html](../../pages/tour.html) (`/tour`).
-- **Universal rig pipeline (do not bypass)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js),
- [src/animation-retarget.js](../../src/animation-retarget.js), gate in
- [src/animation-manager.js](../../src/animation-manager.js) (`supportsCanonicalClips()`).
-- **Tests** — [tests/walk-gestures.test.js](../../tests/walk-gestures.test.js),
- [page-agent-sdk/test/catalog.test.js](../../page-agent-sdk/test/catalog.test.js),
- [tests/feature-tour-curriculum.test.js](../../tests/feature-tour-curriculum.test.js).
-
-## Do this
-
-1. **Exercise all three in a real browser** (`npm run dev`, port 3000): load `/walk`,
- click the corner companion to detach into the full-page playground, open the avatar
- picker; load a page with `<page-agent>` (use `page-agent-sdk/examples/index.html`)
- and let it narrate; launch the Feature Tour via `?tour=start` and run it to free-roam
- hand-off. Watch the console and Network tab the whole time — zero errors/warnings.
-2. **Every avatar is rigged and animates.** Confirm the Walk roster and the Page-Agent
- catalog only surface rigged GLBs that drive the canonical clip library (idle/walk
- legs included), never a bind-pose T-pose. If a humanoid won't animate, it's a
- bone-name gap — extend [src/glb-canonicalize.js](../../src/glb-canonicalize.js) and
- add a case in `tests/glb-canonicalize.test.js`. Do not hardcode a rig allowlist.
-3. **Avatar picker diversity.** Audit `WALK_AVATARS` (roster.js) and the page-agent
- catalog for a genuinely diverse set (skin tones, body types, styles, presentation) —
- not five variants of one model. Make the picker keyboard-navigable, focus-trapped,
- with hover/active/focus states and a designed empty/loading state if a GLB fails.
-4. **Every state designed for each surface:** companion loading (skeleton, not a dead
- sprite), playground empty/first-run hint, picker loading/error, narrator
- caption-while-speaking + muted state, tour loading/paused/finished/exit-confirm.
- No fake `setTimeout` progress bars — real asset-load progress only.
-5. **Mode hand-offs never break.** Companion → playground detach, playground → page
- navigation persistence ([src/walk-companion.js] transitions), Tour director →
- `free-roam.js` click-to-walk and back. Verify each transition leaves no orphaned
- canvas, listener, or animation loop (check for leaked `requestAnimationFrame`).
-6. **Performance.** Lazy-load three.js and avatar GLBs; cap the playground/companion
- frame budget; pause render loops when the tab is hidden or the element is offscreen
- (IntersectionObserver). Confirm no layout thrash and a smooth 60fps on a mid-range
- device profile (DevTools Performance trace).
-7. **Embed integrity.** The `/walk-embed` code generator and the `<page-agent>` script
- tag must produce working, copy-pasteable snippets that load from the published
- package paths — exercise the generated snippet in a blank HTML file.
-8. **Accessibility & resilience.** ARIA labels on companion/picker/tour controls,
- `prefers-reduced-motion` respected (reduce idle sway, no auto-walk), and a missing
- avatar/manifest falls back gracefully (next roster entry) instead of a blank canvas.
-9. **Run the tests:** `npx vitest run tests/walk-gestures.test.js
- tests/feature-tour-curriculum.test.js page-agent-sdk/test/catalog.test.js`. Add
- cover for any failure mode you fixed (GLB load failure, picker empty, tour exit).
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` bone maps for any new
- skeleton instead, and never ship a T-posed humanoid.
-- Do not break the existing companion/playground/tour code paths while polishing — add
- to unprotected paths, don't refactor working logic for its own sake.
-- Do not ship a fake progress bar, a render loop that runs while the tab is hidden, or
- a picker that lists unrigged/missing avatars.
-- Do not leave a broken mode hand-off, orphaned canvas, or leaked animation loop.
-- Do not reference any coin other than `$THREE` in copy, narration, or sample data.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/walk` companion, full-page playground, and avatar picker all work in a real
- browser with no console errors/warnings; detach + page-navigation persistence work.
-- [ ] `<page-agent>` mounts from the example, narrates with live captions and a muted
- state, and offers a rigged-only, diverse, keyboard-navigable picker.
-- [ ] Feature Tour runs end-to-end (`?tour=start` → chapters → free-roam hand-off →
- exit), with loading/paused/finished/exit-confirm states designed.
-- [ ] Every surfaced avatar is rigged and animates (no unjustified T-pose); any new
- skeleton convention added to `glb-canonicalize.js` with a test case.
-- [ ] Loading/empty/error states designed across all three; no fake progress bars;
- render loops pause when hidden/offscreen; 60fps on a mid-range profile.
-- [ ] The `/walk-embed` snippet and the `<page-agent>` script tag work pasted into a
- blank page.
-- [ ] `prefers-reduced-motion` and ARIA/keyboard support verified.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/20-scene-animation-studio.md b/prompts/billion-dollar-program/20-scene-animation-studio.md
deleted file mode 100644
index 9a1b6ba82..000000000
--- a/prompts/billion-dollar-program/20-scene-animation-studio.md
+++ /dev/null
@@ -1,124 +0,0 @@
-# 20 — Scene Studio & Animation Studio
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Creators don't just want an avatar — they want to *stage* it and *make it move*. Scene
-Studio (import GLBs, compose a scene, edit materials/lights, export) and Animation
-Studio (pose with IK, keyframe a timeline, export an animated GLB you can sell) are
-the surfaces that turn three.ws from a generator into a creation tool — the moment a
-user makes something they own and can list for USDC. A pro-grade editor that imports
-cleanly, never loses work, and exports a sellable artifact is what makes three.ws a
-platform creators return to, not a one-shot toy.
-
-## Mission
-
-Make Scene Studio and Animation Studio production-grade: clean GLB import, real
-material/light editing, IK posing and a keyframe timeline that exports a valid
-animated GLB, every state designed, and a working path from "animate" to "list for
-sale" — all on the universal canonical-rig pipeline.
-
-## Map (trust but verify — files move)
-
-- **Scene Studio (`/scene`)** — [pages/scene.html](../../pages/scene.html) (host page),
- [src/scene-studio/main.js](../../src/scene-studio/main.js) (entry, mounts the editor),
- [src/scene-studio/studio.css](../../src/scene-studio/studio.css) (chrome).
- Vendored three.js r184 editor under [src/scene-studio/vendor/](../../src/scene-studio/vendor)
- — read [src/scene-studio/vendor/README.md](../../src/scene-studio/vendor/README.md)
- for the re-vendoring rules and local mods. Static decoder/lib assets ship under
- `public/scene-studio/` (draco, basis, libs, fonts, images).
-- **Animation Studio (`/pose`)** — [pages/pose.html](../../pages/pose.html) (host),
- [src/pose-studio.js](../../src/pose-studio.js) (controller: FK gizmos, IK drag,
- timeline, export UI), [src/pose-animation.js](../../src/pose-animation.js) (keyframe
- document + interpolation, bakes `THREE.AnimationClip`), [src/pose-rig.js](../../src/pose-rig.js)
- (rig abstraction + `solveIK()` / `IK_CHAINS`), [src/pose-presets.js](../../src/pose-presets.js).
-- **Animation data** — [public/animations/manifest.json](../../public/animations/manifest.json)
- (clip index), [public/animations/clips/](../../public/animations/clips) (retargeted
- JSON clips). Build pipeline: [scripts/build-animations.mjs](../../scripts/build-animations.mjs)
- (Mixamo FBX → retarget → canonical clips), [scripts/fbx-to-glb.mjs](../../scripts/fbx-to-glb.mjs).
-- **Animation gallery + selling** — [pages/animations.html](../../pages/animations.html),
- [src/animations-gallery.js](../../src/animations-gallery.js),
- [api/animations/sell.js](../../api/animations/sell.js) (list/delist for sale),
- [api/animations/clips.js](../../api/animations/clips.js) (save/list clips),
- [api/animations/presign.js](../../api/animations/presign.js) (R2 upload),
- [api/x402/animation-download.js](../../api/x402/animation-download.js) (paid download).
-- **Universal rig pipeline (the spine of both)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js)
- (bone-name + up-axis normalization on import), [src/animation-retarget.js](../../src/animation-retarget.js)
- (rebind canonical clips onto any rig).
-- **Tests** — [tests/pose-animation.test.js](../../tests/pose-animation.test.js),
- [tests/animation-upright-invariant.test.js](../../tests/animation-upright-invariant.test.js),
- [tests/glb-canonicalize.test.js](../../tests/glb-canonicalize.test.js),
- [tests/animation-retarget.test.js](../../tests/animation-retarget.test.js).
-
-## Do this
-
-1. **Exercise Scene Studio in a real browser** (`npm run dev`): open `/scene`, import a
- GLB (Add → Model), select a mesh, edit a material (color/metalness/roughness) and a
- light, then export the scene as GLB. Re-import the exported file to prove it round-trips
- (meshes, materials, lights survive). Watch console/Network — zero errors/warnings.
-2. **Exercise Animation Studio in a real browser:** open `/pose`, load the built-in
- mannequin and a user avatar GLB, pose with FK gizmos and IK drag (grab a hand/foot,
- confirm the chain solves), add timeline keyframes, scrub, then export an animated
- GLB. Re-open the exported GLB in the viewer to confirm it plays.
-3. **Import is bulletproof.** Every imported GLB runs through
- [src/glb-canonicalize.js](../../src/glb-canonicalize.js) so arbitrary skeletons
- (Mixamo/Avaturn/VRM/Daz/Blender, etc.) normalize to the canonical set. A humanoid
- that won't pose/retarget is a bone-name gap — extend `glb-canonicalize.js` and add a
- `tests/glb-canonicalize.test.js` case. Never hardcode a rig allowlist; a genuinely
- non-humanoid prop falls back gracefully, not to a broken editor.
-4. **Every state designed** for both studios: loading (skeleton/progress on GLB load,
- real bytes not a fake bar), empty (no model yet → "import a GLB to start" with a
- sample), error (bad/corrupt file → actionable message, not a stack trace), and
- overflow (large scene/long timeline stays responsive). Mask any vendor/decoder error.
-5. **No lost work.** Confirm the timeline and scene state survive a tab refresh
- (autosave/local persistence) or, if not present, add it. Warn on unload with unsaved
- changes. Undo/redo must work for pose + scene edits.
-6. **Export quality.** The exported animated GLB must have a valid `AnimationClip` with
- canonical bone tracks, play upright (no flipped/tilted root — see
- `animation-upright-invariant.test.js`), and carry a real name. The scene export must
- be self-contained (embedded textures/materials/lights).
-7. **"Animate → sell" path works end-to-end.** From Animation Studio, save the clip
- ([api/animations/clips.js]), presign + upload the artifact ([api/animations/presign.js]),
- list it for sale ([api/animations/sell.js]) with a USDC price, and confirm it shows
- in the gallery ([pages/animations.html]) with a working preview and an x402 paid
- download ([api/x402/animation-download.js]). No mocks — real R2 + real listing.
-8. **Performance & accessibility.** Lazy-load heavy editor modules and decoders; pause
- the render loop when the tab is hidden; keyboard shortcuts for play/pause/keyframe;
- ARIA on timeline controls; `prefers-reduced-motion` respected in previews.
-9. **Run the tests:** `npx vitest run tests/pose-animation.test.js
- tests/animation-upright-invariant.test.js tests/glb-canonicalize.test.js
- tests/animation-retarget.test.js`. Cover any failure mode you fixed (bad-GLB import,
- export of an unrigged mesh, IK chain with a missing bone).
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` for new skeletons so
- IK/posing/export work on any humanoid.
-- Do not edit the vendored three.js editor upstream files without recording the change
- per `src/scene-studio/vendor/README.md` (the re-vendor must stay reproducible).
-- Do not ship a fake progress bar, an export that produces an invalid/upright-flipped
- GLB, or a "sell" flow backed by mocks.
-- Do not let a corrupt import or decoder failure surface a raw stack trace or vendor URL.
-- Do not reference any coin other than `$THREE` (prices/payments are USDC; never name
- another token).
-
-## Acceptance (all true before claiming done)
-
-- [ ] Scene Studio imports a GLB, edits a material + light, exports a self-contained
- scene GLB that round-trips on re-import — no console errors/warnings.
-- [ ] Animation Studio poses with FK + IK, keyframes a timeline, and exports a valid
- animated GLB that plays upright in the viewer.
-- [ ] Arbitrary skeletons normalize via `glb-canonicalize.js`; any new convention added
- with a test case; no rig allowlist, no unjustified T-pose.
-- [ ] Loading/empty/error/overflow states designed in both studios; vendor/decoder
- errors masked; no fake progress bars.
-- [ ] Unsaved-work protection (autosave or unload warning) and undo/redo work.
-- [ ] "Animate → save → upload → list for sale → gallery → x402 download" works
- end-to-end with real R2 and real listings.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/21-avatar-creator-character-studio.md b/prompts/billion-dollar-program/21-avatar-creator-character-studio.md
deleted file mode 100644
index f5f815e73..000000000
--- a/prompts/billion-dollar-program/21-avatar-creator-character-studio.md
+++ /dev/null
@@ -1,130 +0,0 @@
-# 21 — Avatar creator / Character Studio / Selfie→avatar
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-"Make *me* a 3D avatar" is the most personal thing a user does on three.ws — sculpt a
-character from scratch, turn a selfie into a rigged avatar, or describe one in words —
-and it's the asset they carry into Walk, Worlds, the marketplace, and their agent
-profile. If the creator is clumsy, the selfie pipeline dead-ends, or the result lands
-as a frozen T-pose, the user never gets to the "wow, that's me, and it moves"
-screenshot that drives sharing. This surface must feel like a real character creator
-and always produce a rigged avatar that animates.
-
-## Mission
-
-Make the three avatar-creation paths — Character Studio (sculpt face+body), selfie→avatar,
-and prompt→avatar — correct, resilient, and beautifully stated, each producing a
-canonical-rigged GLB the user can export and publish to the gallery, all on the
-universal rig pipeline (no allowlist).
-
-## Map (trust but verify — files move)
-
-- **Character Studio (full builder)** — [character-studio/](../../character-studio)
- (React/Vite app, MIT fork of m3-org/CharacterStudio — see
- [character-studio/LICENSE](../../character-studio/LICENSE)).
- [character-studio/package.json](../../character-studio/package.json) (`@m3-org/characterstudio`,
- builds to `/avatar-studio/` base), [character-studio/index.html](../../character-studio/index.html).
- Sculpting/body engine under `character-studio/src/library/` (e.g.
- `characterManager.js`, `VRMExporter*.js`). Wrapper page that iframes the studio:
- [pages/avatar-studio.html](../../pages/avatar-studio.html). Routes: `/avatar-studio`,
- `/create/studio` → `avatar-studio.html` (see [vercel.json](../../vercel.json)).
-- **Avatar SDK (`@three-ws/avatar`)** — [avatar-sdk/package.json](../../avatar-sdk/package.json)
- (web component `<agent-3d>`; `./creator`, `./viewer`, `./react` subpaths),
- [avatar-sdk/src/creator.js](../../avatar-sdk/src/creator.js) (modal iframe controller +
- presigned upload), [avatar-sdk/src/viewer.js](../../avatar-sdk/src/viewer.js),
- [avatar-sdk/README.md](../../avatar-sdk/README.md).
-- **Selfie→avatar / prompt→avatar (UI)** — [pages/create-selfie.html](../../pages/create-selfie.html)
- (`/create/selfie`), [src/selfie-pipeline.js](../../src/selfie-pipeline.js),
- [src/selfie-capture.js](../../src/selfie-capture.js); [pages/create-prompt.html](../../pages/create-prompt.html)
- (`/create/prompt`), [src/create-prompt.js](../../src/create-prompt.js).
-- **Reconstruct + auto-rig (backend)** — [api/avatars/_actions.js](../../api/avatars/_actions.js)
- (`reconstruct`, `upload`, `upload-proxy`), [api/avatars/index.js](../../api/avatars/index.js)
- (list/create metadata), [api/avatars/from-forge.js](../../api/avatars/from-forge.js),
- [api/_lib/reconstruct-finalize.js](../../api/_lib/reconstruct-finalize.js) (shared
- tail: canonicalize → rig gate → materialize), [api/_lib/auto-rig.js](../../api/_lib/auto-rig.js),
- [api/_lib/regen-provider.js](../../api/_lib/regen-provider.js).
-- **Gallery (publish target)** — [public/gallery/index.html](../../public/gallery/index.html),
- [public/gallery/gallery.js](../../public/gallery/gallery.js),
- [pages/gallery-picker.html](../../pages/gallery-picker.html).
-- **Universal rig pipeline (must respect)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js)
- (bone-name + up-axis normalize at ingest), [src/animation-retarget.js](../../src/animation-retarget.js),
- gate in [src/animation-manager.js](../../src/animation-manager.js)
- (`supportsCanonicalClips()`).
-- **Tests** — [tests/api/reconstruct-finalize.test.js](../../tests/api/reconstruct-finalize.test.js),
- [tests/api/avatars-from-forge.test.js](../../tests/api/avatars-from-forge.test.js),
- [tests/glb-canonicalize.test.js](../../tests/glb-canonicalize.test.js).
-
-## Do this
-
-1. **Exercise all three creation paths in a real browser** (`npm run dev`): Character
- Studio at `/avatar-studio` (sculpt a face, adjust body, change an outfit, export
- GLB); `/create/selfie` (capture/upload a photo → rigged avatar); `/create/prompt`
- (describe an avatar → rigged avatar). Watch console/Network — zero errors/warnings.
-2. **Every result is canonical-rigged and animates.** Confirm `reconstruct-finalize.js`
- canonicalizes every GLB and the auto-rig gate ([api/_lib/auto-rig.js]) produces a
- skeleton that drives idle/walk (legs included). A humanoid that lands T-posed is a
- bug — fix the bone map in `glb-canonicalize.js` (+ a `tests/glb-canonicalize.test.js`
- case), never hardcode a rig allowlist. Only a genuinely non-humanoid mesh may fall
- back to the default rig via `supportsCanonicalClips()`.
-3. **No provider internals reach the user.** Audit every error path in
- [api/avatars/_actions.js], [api/_lib/reconstruct-finalize.js],
- [api/_lib/regen-provider.js], and the selfie/prompt UIs: provider quota/billing,
- raw stack traces, vendor URLs, NSFW/no-face/OOM responses must become neutral,
- actionable copy. Keep raw detail in server logs only.
-4. **Every phase is designed.** Selfie capture (camera permission prompt, face-not-found
- hint, retake), reconstruct, and rig each show a live label + real elapsed time +
- progress affordance (not a fake `setTimeout` bar). Empty state tells the user what to
- do; error state says how to recover; Character Studio loading uses a skeleton, not a
- blank canvas.
-5. **Resilience.** A hung/throttled provider must time out and either retry or hand off
- (reuse the existing `regen-provider` chain / cockatiel helper), never stall a spinner
- forever. Verify the cascade and add cover for uncovered failure modes (402/429/
- timeout/NSFW/no-face/OOM/unconfigured).
-6. **Export + publish path works end-to-end.** From any creation path, export the GLB
- and publish it to the gallery: confirm the avatar appears in
- [public/gallery/index.html](../../public/gallery/index.html) with the correct
- `visibility`, a real thumbnail (not a 1px snapshot), correct rigged/static tagging,
- and an owner-scoped storage key (you can't claim someone else's GLB).
-7. **Right input → right path.** Make affordances obvious so a "humanoid" prompt goes
- to the avatar flow (not a box on a non-humanoid pipeline), and the selfie flow guides
- the user to a clear, face-forward photo.
-8. **Accessibility, mobile, performance.** Camera/selfie flow works on mobile (320px),
- ARIA on creator controls and the picker, keyboard navigation, lazy-load the heavy
- `<agent-3d>` runtime and Character Studio bundle, and respect `prefers-reduced-motion`
- in previews. Confirm Character Studio's iframe wrapper sizing is responsive.
-9. **Run the tests:** `npx vitest run tests/api/reconstruct-finalize.test.js
- tests/api/avatars-from-forge.test.js tests/glb-canonicalize.test.js`. Add cover for
- any failure mode or new bone mapping you fixed.
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` bone maps so every
- humanoid animates; never ship a bind-pose T-pose for a riggable humanoid.
-- Do not surface any provider's billing page, credit balance, quota, or raw error to the
- user — mask to neutral, actionable copy.
-- Do not ship a fake progress bar, a spinner with no timeout, or a "publish" backed by
- mocks/sample arrays.
-- Do not let a user claim or overwrite another user's avatar/storage key.
-- Do not reference any coin other than `$THREE` in copy, metadata, or sample data.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Character Studio (sculpt), selfie→avatar, and prompt→avatar all complete in a real
- browser with no console errors/warnings; each exports a GLB.
-- [ ] Every produced humanoid is canonical-rigged and animates (no unjustified T-pose);
- any new skeleton convention added to `glb-canonicalize.js` with a test case.
-- [ ] Every failure mode (402/429/timeout/NSFW/no-face/OOM/unconfigured) yields a
- neutral, actionable message — no vendor internals, verified by tests.
-- [ ] Loading/empty/error states designed for all three paths; elapsed time is real; no
- fake progress bars.
-- [ ] Export → publish-to-gallery works with a real thumbnail, correct visibility +
- rigged/static tag, and owner-scoped storage.
-- [ ] Mobile (320px) selfie flow, ARIA/keyboard support, and lazy-loading verified.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/22-pump-oracle-trading-three.md b/prompts/billion-dollar-program/22-pump-oracle-trading-three.md
deleted file mode 100644
index ce6790af1..000000000
--- a/prompts/billion-dollar-program/22-pump-oracle-trading-three.md
+++ /dev/null
@@ -1,145 +0,0 @@
-# 22 — Pump.fun launch, Oracle, trading & $THREE
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The token surfaces are where three.ws meets real money and real on-chain stakes:
-launch-a-coin, the Launchpad Studio, Coin Intelligence/Radar, the Oracle conviction
-engine, the Trader Leaderboard, Smart Money, Arm-your-agent, the Strategy Lab, and the
-`$THREE` token page. These pages must show real Solana data, never stall on a flaky
-RPC, never leak a provider error — and they must be **flawless on $THREE-only
-compliance**, because a single stray ticker in code, copy, or sample data is a
-credibility (and legal) failure for the platform's own token.
-
-## Mission
-
-Harden every pump/oracle/trading surface to production: real-data feeds with resilient
-RPC, every state designed, no leaked provider internals — and run a strict $THREE-only
-compliance audit that confirms the only coin promoted anywhere is `$THREE`
-(CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-
-## Map (trust but verify — files move)
-
-- **Launch-a-coin** — [pages/launch.html](../../pages/launch.html) (`/launch`),
- [src/pump/launch-token-modal.js](../../src/pump/launch-token-modal.js) (launcher modal).
- Pump backend dispatch: [api/pump/[action].js](../../api/pump/%5Baction%5D.js)
- (`launches`, `snapshot`, etc.), [api/pump/safety.js](../../api/pump/safety.js),
- [api/pump/trending.js](../../api/pump/trending.js).
-- **Launchpad Studio (page-builder + CMS)** — [pages/launchpad.html](../../pages/launchpad.html)
- (`/launchpad`), [src/editor/launchpad-studio.js](../../src/editor/launchpad-studio.js)
- (template → live preview → publish to `/p/<slug>`).
-- **Platform launch directory (runtime exception — keep)** — [pages/launches.html](../../pages/launches.html)
- (`/launches`, renders coins launched through three.ws over `pump_agent_mints`),
- [pages/launch-detail.html](../../pages/launch-detail.html) (`/launches/<mint>`,
- runtime user-supplied mint).
-- **Coin Intelligence / Radar** — [pages/coin-intel.html](../../pages/coin-intel.html)
- (`/coin-intel`), [pages/radar.html](../../pages/radar.html) (`/radar`),
- [src/radar.js](../../src/radar.js), [api/pump/coin-intel.js](../../api/pump/coin-intel.js).
-- **Oracle (conviction)** — [pages/oracle.html](../../pages/oracle.html) (`/oracle`),
- [src/oracle.js](../../src/oracle.js), [api/oracle/feed.js](../../api/oracle/feed.js),
- [api/oracle/coin.js](../../api/oracle/coin.js), conviction engine in
- [api/_lib/oracle/conviction.js](../../api/_lib/oracle/conviction.js) (+ `narrative.js`,
- `archetype.js`, `known-wallets.js`, `settle.js` in [api/_lib/oracle/](../../api/_lib/oracle)).
-- **Arm-your-agent (trading automation)** — [pages/arm.html](../../pages/arm.html)
- (`/arm`, `/oracle/arm`), [src/arm.js](../../src/arm.js) (reuses `/api/agents`,
- `/api/oracle/watch`, `/api/oracle/test-alert`).
-- **Strategy Lab** — [public/strategy-lab.html](../../public/strategy-lab.html)
- (`/strategy-lab`). Sniper dashboard: [src/dashboard-next/pages/sniper.js](../../src/dashboard-next/pages/sniper.js).
-- **Trader Leaderboard / Smart Money** — [pages/leaderboard.html](../../pages/leaderboard.html)
- (`/leaderboard`), [src/leaderboard.js](../../src/leaderboard.js),
- [api/_lib/trader-stats.js](../../api/_lib/trader-stats.js);
- [pages/smart-money.html](../../pages/smart-money.html) (`/smart-money`),
- [api/pump/smart-money.js](../../api/pump/smart-money.js).
-- **$THREE token page** — [pages/three-token.html](../../pages/three-token.html)
- (`/three-token`), [src/three-token-page.js](../../src/three-token-page.js),
- [api/three-token/[action].js](../../api/three-token/%5Baction%5D.js),
- [src/pump/three-token-data.js](../../src/pump/three-token-data.js) (canonical mint),
- [api/_lib/token/config.js](../../api/_lib/token/config.js).
-- **Tests** — [tests/api/granite-oracle.test.js](../../tests/api/granite-oracle.test.js),
- [tests/smart-money.test.js](../../tests/smart-money.test.js),
- [tests/api/pump-curve.test.js](../../tests/api/pump-curve.test.js).
-
-## Do this
-
-1. **Exercise every surface in a real browser** (`npm run dev`): `/launch`, `/launchpad`,
- `/launches` + a `/launches/<mint>` detail, `/coin-intel`, `/radar`, `/oracle`, `/arm`,
- `/strategy-lab`, `/leaderboard`, `/smart-money`, `/three-token`. Watch console/Network
- — zero errors/warnings; every page renders real Solana/pump data, not a placeholder.
-2. **Run the $THREE-only compliance audit.** Grep the codebase for any non-`$THREE`
- ticker/symbol or hardcoded mint in code, comments, copy, fixtures, and sample data:
- ```
- grep -rniE '\$[A-Z]{2,6}\b' pages/ src/ api/ public/ | grep -v 'THREE'
- grep -rnoE '[1-9A-HJ-NP-Za-km-z]{32,44}' api/pump api/oracle src/pump src/kol
- ```
- Confirm every hit is one of: the `$THREE` CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`;
- a clearly-synthetic placeholder (`THREEsynthetic1111…`); a Solana utility mint (wSOL
- `So111…112`, USDC `EPjF…Dt1v`); a platform fee / wallet / EVM factory address (not a
- coin); a **runtime user-supplied** mint (launcher input, `/launches/<mint>`); or the
- **platform launch directory** over `pump_agent_mints`. Remove or fix anything that
- markets/recommends/hardcodes another coin. Treat a stray ticker like a leaked secret.
-3. **No provider/RPC internals reach the user.** Audit error paths in `api/pump/*`,
- `api/oracle/*`, and `api/_lib/oracle/*`: Helius/RPC/DEX errors, rate-limit bodies,
- raw stack traces, and vendor URLs must become neutral, actionable copy. Keep raw
- detail in server logs only.
-4. **Resilient on-chain reads.** Every Solana RPC / pump / Helius call must time out and
- retry/fall back via the existing cockatiel resilience helper — never stall a feed.
- Verify the trending/coin-intel/oracle feeds degrade gracefully when RPC is slow or a
- provider 429s (designed stale/partial state, not a dead spinner).
-5. **Every state designed** on each surface: loading (skeleton rows, not spinners),
- empty (e.g. no launches yet, no conviction signals yet → tell the user what's next),
- error (RPC down → "data delayed, retrying" with a retry), and overflow (long lists
- paginated/virtualized; long names truncated). Designed for 0 / 1 / 1000 items.
-6. **Launch + arm flows are real and safe.** Confirm `/launch` produces a real pump.fun
- launch (the launcher accepts the runtime mint/params — generic plumbing exception),
- `/launches` lists it, and `/arm` wires conviction-threshold automation through
- `/api/oracle/watch` with real agent state. No fake fills, no mock PnL on the
- leaderboard — `trader-stats.js` must compute from real on-chain history.
-7. **$THREE token page integrity.** `/three-token` must read live price/holders/activity
- from real APIs, reference only the canonical mint
- (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`), and degrade gracefully if a feed is
- down. Any "buy/swap" affordance routes to a legitimate runtime-mint swap, never names
- another token.
-8. **Accessibility, mobile, performance.** ARIA on tables/controls, keyboard nav,
- responsive at 320/768/1440, lazy-load charts/3D, debounce search inputs, paginate
- large feeds. No layout thrash on live-updating tables.
-9. **Run the tests:** `npx vitest run tests/api/granite-oracle.test.js
- tests/smart-money.test.js tests/api/pump-curve.test.js`. Add cover for any RPC-failure
- or error-masking path you fixed; add a test asserting no non-`$THREE` ticker appears
- in shipped copy/fixtures if a gap exists.
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not mention, hardcode, link, render, or recommend any coin other than `$THREE`
- anywhere — code, comments, copy, fixtures, sample data, or commit message. The only
- two exceptions are runtime user-supplied mints (launcher input, `/launches/<mint>`)
- and the platform launch directory over `pump_agent_mints`. Never paste a real
- non-`$THREE` mint/creator/holder address into tests or fixtures.
-- Do not surface a raw RPC/Helius/DEX/provider error, rate-limit body, or vendor URL to
- the user.
-- Do not ship a feed with no timeout/fallback, a fake-loading bar, or mock PnL/fills.
-- Do not break the working pump/oracle data paths while hardening — add to unprotected
- paths, prefer the existing cockatiel helper over hand-rolled retries.
-
-## Acceptance (all true before claiming done)
-
-- [ ] All token surfaces render real Solana/pump data in a real browser with no console
- errors/warnings: `/launch`, `/launchpad`, `/launches`(+detail), `/coin-intel`,
- `/radar`, `/oracle`, `/arm`, `/strategy-lab`, `/leaderboard`, `/smart-money`,
- `/three-token`.
-- [ ] $THREE-only audit clean: every ticker/mint in code, copy, and fixtures is `$THREE`,
- a synthetic placeholder, a utility mint/wallet, a runtime user-supplied mint, or
- the `pump_agent_mints` launch directory. No other coin promoted anywhere.
-- [ ] Every provider/RPC failure yields neutral, actionable copy — no internals leaked.
-- [ ] Feeds are resilient (timeout + retry/fallback via cockatiel) and degrade gracefully
- under slow/429 RPC.
-- [ ] Loading/empty/error/overflow states designed across all surfaces (0/1/1000 items).
-- [ ] Launch, arm, leaderboard, and $THREE token data are real (no mock fills/PnL); the
- $THREE page references only the canonical mint.
-- [ ] ARIA/keyboard, responsive 320/768/1440, and lazy-loading verified.
-- [ ] Listed tests pass; new RPC-failure / compliance coverage added where there was a gap.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/23-mcp-servers-production.md b/prompts/billion-dollar-program/23-mcp-servers-production.md
deleted file mode 100644
index e9d91fbb7..000000000
--- a/prompts/billion-dollar-program/23-mcp-servers-production.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# 23 — MCP servers (production-ready)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-MCP is how agents — Claude, Cursor, every autonomous buyer — actually reach
-three.ws. If a manifest drifts, a remote endpoint stops answering its payment
-challenge, or the one free lane (`forge_free`) silently breaks, the entire
-agent-to-agent distribution channel goes dark and we lose the buyers who never
-touch a browser. A registry-clean, smoke-passing, correctly-priced MCP surface
-is the difference between "an app" and "a protocol other agents build on."
-
-## Mission
-
-Make every three.ws MCP server publishable and reliable: valid registry
-manifests, passing smokes, correct per-tool x402 pricing, a working free
-`forge_free` lane, and spec-compliant `PaymentRequired` transport — so a fresh
-agent can discover and call our tools with zero hand-holding.
-
-## Map (trust but verify — files move)
-
-- **Hosted 3D-Agent MCP (remote)** — [api/mcp-3d.js](../../api/mcp-3d.js), backed by
- [api/_mcp3d/catalog.js](../../api/_mcp3d/catalog.js) (tool list + discovery copy),
- [api/_mcp3d/dispatch.js](../../api/_mcp3d/dispatch.js), [api/_mcp3d/pricing.js](../../api/_mcp3d/pricing.js)
- (per-tool USDC), [api/_mcp3d/discovery.js](../../api/_mcp3d/discovery.js), and the
- tool implementations in [api/_mcp3d/tools/studio.js](../../api/_mcp3d/tools/studio.js)
- (`forge_free` lives here — the ONE free tool: NVIDIA NIM / Microsoft TRELLIS text→3D).
-- **Other remote endpoints** — [api/mcp.js](../../api/mcp.js), [api/mcp-agent.js](../../api/mcp-agent.js),
- [api/mcp-bazaar.js](../../api/mcp-bazaar.js), [api/pump-fun-mcp.js](../../api/pump-fun-mcp.js)
- (free, $THREE-only probe), [api/ibm-mcp.js](../../api/ibm-mcp.js).
-- **stdio MCP packages** — [mcp-server/](../../mcp-server), [mcp-bridge/](../../mcp-bridge),
- [packages/pumpfun-mcp/](../../packages/pumpfun-mcp), [packages/avatar-agent-mcp/](../../packages/avatar-agent-mcp),
- [packages/threews-avatar-mcp/](../../packages/threews-avatar-mcp), [packages/three-token-mcp/](../../packages/three-token-mcp),
- [packages/ibm-watsonx-mcp/](../../packages/ibm-watsonx-mcp), [packages/ibm-x402-mcp/](../../packages/ibm-x402-mcp).
-- **x402 spec helper** — [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js) (builds the
- `PaymentRequired` / `accepts[]` challenge as `structuredContent`).
-- **Manifests** — each package's `server.json` + root `server*.json` (remote manifests).
-- **Tooling** — `npm run audit:mcp` ([scripts/audit-mcp-manifests.mjs](../../scripts/audit-mcp-manifests.mjs)),
- `smoke:mcp` ([scripts/smoke-mcp-remotes.mjs](../../scripts/smoke-mcp-remotes.mjs)),
- `test:mcp` ([scripts/test-mcp-all.mjs](../../scripts/test-mcp-all.mjs)),
- `publish:mcp:dry` ([scripts/publish-mcp-servers.mjs](../../scripts/publish-mcp-servers.mjs)).
-
-## Do this
-
-1. **Audit manifests:** run `npm run audit:mcp`. Fix every violation — description
- ≤ 100 chars, `name` in `io.github.<owner>/<server>` form, https icons/URLs, and
- for stdio packages the `server.json` version MUST equal the package's `package.json`
- version (and `packages[0].identifier/version` + `mcpName` must match). Do not bump
- a version to dodge a real mismatch — align them.
-2. **Smoke the remotes:** run `npm run smoke:mcp http://localhost:3000` against
- `npm run dev`, then against `https://three.ws`. Free endpoints must answer
- `initialize` + `tools/list` and run a read-only tool; paid endpoints must return
- a well-formed 401/402 with a valid `accepts[]` challenge. Fix any unhealthy one.
-3. **Verify the free lane:** call `forge_free` end-to-end (no wallet, no key) and
- confirm it returns a real GLB URL + a three.ws viewer link via the NVIDIA NIM /
- TRELLIS path. It must NEVER demand payment. Confirm it is the only free generation
- tool in `catalog.js`.
-4. **Price every paid tool correctly:** in `api/_mcp3d/pricing.js`, confirm generation
- tools price by tier from `forge-tiers.js` (same numbers as `POST /api/x402/forge`),
- mesh edits carry their flat per-call USDC, and read-only tools (status/preview/
- inspection) stay free. No tool may settle for the env minimum when it costs more.
-5. **Spec compliance:** confirm an un-paid call to a paid tool returns a
- `PaymentRequired` result whose `structuredContent.accepts[]` carries valid
- requirements (asset = USDC, correct `payTo`, atomic amount) — built via
- `api/_lib/x402-spec.js`, not hand-rolled. Verify on both Base and Solana rails.
-6. **Run the full MCP suite:** `npm run test:mcp -- --no-remote` (offline: manifests +
- each stdio package's `node --test`), then `npm run test:mcp http://localhost:3000`
- (with the live layer). All green.
-7. **Dry-run the publish:** `npm run publish:mcp:dry`. It must validate every manifest
- and report cleanly with no auth/version errors.
-8. **Docs + versioning:** each stdio package README must list its tools, install/run
- command, and a real call example. Bump versions only for genuine changes (semver),
- keeping `server.json` and `package.json` in lockstep. Add a `data/changelog.json`
- entry (tag `sdk` or `infra`) for any user-visible MCP change, then `npm run build:pages`.
-
-## Must-not
-
-- Do not gate `forge_free` behind payment, a wallet, or an API key — it is the free lane.
-- Do not hardcode any mint other than `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`)
- in probes, fixtures, or docs; the pump-fun probe must stay $THREE-only.
-- Do not hand-roll the `PaymentRequired` challenge — use `api/_lib/x402-spec.js`.
-- Do not let a generation tool settle for the env-minimum price; price it by tier.
-- Do not commit a `server.json`/`package.json` version mismatch or a >100-char description.
-- Do not weaken or skip a smoke/manifest check to make the suite pass.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run audit:mcp` passes with zero violations.
-- [ ] `npm run smoke:mcp` passes against both `localhost:3000` and `https://three.ws`.
-- [ ] `forge_free` returns a real GLB URL + viewer link with no payment, wallet, or key.
-- [ ] Every paid tool prices correctly (generation by tier, mesh edits flat, read-only free);
- paid tools return a valid `PaymentRequired` `structuredContent.accepts[]` on Base + Solana.
-- [ ] `npm run test:mcp -- --no-remote` and `npm run test:mcp http://localhost:3000` both pass.
-- [ ] `npm run publish:mcp:dry` reports clean for every server.
-- [ ] Every stdio package README documents tools + a real call example; versions are in lockstep.
-- [ ] Changelog updated (if user-visible) and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/24-sdk-publishing-docs.md b/prompts/billion-dollar-program/24-sdk-publishing-docs.md
deleted file mode 100644
index cbd0199fb..000000000
--- a/prompts/billion-dollar-program/24-sdk-publishing-docs.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# 24 — SDK publishing & docs
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The SDKs are how other teams build *on* three.ws instead of competing with it —
-a `<agent-3d>` viewer in someone else's app, an agent paying an x402 endpoint
-from another platform, a walk companion on a third party's homepage. A broken
-`files[]`, a README example that doesn't run, or a `npm install @three-ws/avatar`
-that throws on a fresh machine, and a would-be integrator bounces forever. Clean,
-documented, dry-run-verified packages turn three.ws into infrastructure.
-
-## Mission
-
-Every published SDK has a correct `package.json` (exports, `files[]`, semver),
-a README with real working examples, a clean dry-run publish, and a working
-demo/example — so an external developer can install it and ship in minutes.
-
-## Map (trust but verify — files move)
-
-- **Top-level SDKs** (published, not workspaces) — [sdk/](../../sdk) (`@three-ws/sdk`),
- [solana-agent-sdk/](../../solana-agent-sdk) (`@three-ws/solana-agent`),
- [agent-payments-sdk/](../../agent-payments-sdk) (`@three-ws/agent-payments`),
- [agent-protocol-sdk/](../../agent-protocol-sdk) (`@three-ws/agent-protocol-sdk`).
-- **App-adjacent SDKs** (workspaces) — [avatar-sdk/](../../avatar-sdk) (`@three-ws/avatar`),
- [walk-sdk/](../../walk-sdk) (`@three-ws/walk`), [tour-sdk/](../../tour-sdk) (`@three-ws/tour`).
-- **Spec/schema/preset packages** — [packages/avatar-schema/](../../packages/avatar-schema)
- (`@three-ws/avatar-schema`), [packages/avatar-cli/](../../packages/avatar-cli)
- (`@three-ws/avatar-cli`), [packages/viewer-presets/](../../packages/viewer-presets)
- (`@three-ws/viewer-presets`), [packages/react/](../../packages/react) (`@three-ws/react`).
-- **Examples / demos** — [examples/](../../examples) (`embed-test.html`, `web-component.html`,
- `two-agents.html`, `minimal.html`), [multiplayer/](../../multiplayer).
-- **Publish tooling** — `npm run publish:packages:dry`
- ([scripts/publish-packages.mjs](../../scripts/publish-packages.mjs)),
- `publish:mcp:dry` ([scripts/publish-mcp-servers.mjs](../../scripts/publish-mcp-servers.mjs)),
- `publish:lib` ([scripts/publish-lib.mjs](../../scripts/publish-lib.mjs)), and the strongest
- gate — [scripts/verify-packages.mjs](../../scripts/verify-packages.mjs) (packs each tarball,
- installs it in a clean throwaway project, then exercises its real public surface).
-- **Workspace map** — [STRUCTURE.md](../../STRUCTURE.md) "npm workspaces" + "Promotion path".
-
-## Do this
-
-1. **Inventory + verify names/versions:** for every SDK above, confirm `package.json`
- `name` matches STRUCTURE.md, `version` is sane semver, `type`/`exports`/`main`/`module`/
- `types` resolve, and `files[]` (or `.npmignore`) ships exactly the published surface —
- no `src` leak, no missing `dist`. Confirm a `prepublishOnly`/build runs the build.
-2. **Run the real-consumer gate:** `node scripts/verify-packages.mjs` — it packs each
- package into its actual npm tarball, installs into a clean project resolving deps fresh,
- and imports the SDK / runs the CLI bin / boots the MCP server. Fix every `files[]` gap,
- broken export map, or missing runtime dep it surfaces.
-3. **Dry-run both publishers:** `npm run publish:packages:dry` and `npm run publish:mcp:dry`.
- Both must report clean — no version-already-published surprises, no auth errors, no
- missing build outputs.
-4. **READMEs must teach by example:** each README has install, a minimal runnable example
- (web component, `import`, or CLI invocation), the public API surface, and a link to the
- live page/demo. Every code block must actually run against the published surface — copy
- one into a scratch project and confirm.
-5. **Wire a working demo per SDK:** `@three-ws/avatar` → an `examples/` page renders the
- `<agent-3d>` viewer; `@three-ws/walk` → the walk companion mounts; `@three-ws/tour` →
- the feature tour boots; payment/protocol SDKs → a runnable example call (real endpoint,
- no mock). Exercise each in a real browser (`npm run dev`) or node where applicable; zero
- console errors.
-6. **Semver discipline:** bump only what changed (patch/minor/major per real diff). Keep
- any `peerDependencies` honest (Three.js, React versions) so installs don't warn. Do not
- publish from this prompt — dry-run + verify only, unless the user explicitly says publish.
-7. **Cross-link the docs:** each SDK README links to STRUCTURE.md's workspace row and to its
- sibling SDKs where they compose (e.g. avatar viewer + walk companion). The best platforms
- feel like everything is linked.
-8. **Changelog + build:** add a `data/changelog.json` entry (tag `sdk`) for any user-visible
- SDK doc/version change, then `npm run build:pages` (it validates the entry).
-
-## Must-not
-
-- Do not publish to npm/registry from this prompt unless the user explicitly asks — dry-run only.
-- Do not ship a README example that doesn't run, or a `files[]` that leaks `src`/tests or drops `dist`.
-- Do not reference any coin other than `$THREE` in any example, fixture, or doc.
-- Do not use a mock/fake endpoint in an example — real APIs only (or a clearly synthetic placeholder).
-- Do not bump versions cosmetically; semver must reflect the actual change.
-- Do not break a working package's exports while "cleaning up" its config.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every SDK `package.json` has a correct `name`, semver `version`, resolving `exports`,
- and a tight `files[]`; builds run via `prepublishOnly`.
-- [ ] `node scripts/verify-packages.mjs` passes for every package (clean-room install + surface check).
-- [ ] `npm run publish:packages:dry` and `npm run publish:mcp:dry` both report clean.
-- [ ] Each README has install + a runnable example + API surface + a live demo link; examples verified to run.
-- [ ] At least one working demo per SDK is exercised with zero console errors.
-- [ ] No coin other than `$THREE` appears anywhere in SDK source, examples, or docs.
-- [ ] Changelog updated (if user-visible) and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/25-worlds-coin-clash.md b/prompts/billion-dollar-program/25-worlds-coin-clash.md
deleted file mode 100644
index fd0f72379..000000000
--- a/prompts/billion-dollar-program/25-worlds-coin-clash.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# 25 — Worlds & Coin Clash (token-gated 3D)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-"Every coin is a 3D world you can drop into" and "hold a coin, enlist, and fight
-live armies" is the social loop that makes a token sticky beyond price — it turns
-holders into citizens and a chart into a place. If a world dead-ends on a void, a
-presence sync drops players, or the enlist gate lets a non-holder in (or locks a
-real holder out), the network effect collapses. Reliable, every-state, token-gated
-multiplayer is what makes three.ws a destination instead of a tool.
-
-## Mission
-
-Make every coin enterable as a live 3D world and make Coin Clash — token-gated
-community warfare (hold the coin → enlist → rally battle power live) — correct,
-multiplayer-reliable, beautifully stated in every phase, and $THREE-compliant for
-anything the platform itself promotes.
-
-## Map (trust but verify — files move)
-
-- **Worlds lobby (front door)** — [pages/worlds.html](../../pages/worlds.html),
- [src/worlds-lobby.js](../../src/worlds-lobby.js) (pick/drop-in an avatar, list live
- coin-worlds, enter at `/walk?coin=<mint>`).
-- **Worlds data + gating** — [api/community/worlds.js](../../api/community/worlds.js)
- (`GET /api/community/worlds`), [api/community/world-gate.js](../../api/community/world-gate.js)
- (per-coin holder threshold; creator-only POST), [api/community/ws-ticket.js](../../api/community/ws-ticket.js)
- (short-lived realtime ticket), [api/world/[action].js](../../api/world/[action].js)
- (per-world persistence: `load`/`save`).
-- **Coin Clash UI** — [pages/clash.html](../../pages/clash.html), [src/clash.js](../../src/clash.js)
- (bracket → battle cards → enlist challenge → rally dock).
-- **Coin Clash API + store** — [api/clash/[action].js](../../api/clash/[action].js)
- (`state`, `enlist`, `enlist-verify`, `rally`, `leaderboard`), backed by
- [api/_lib/clash.js](../../api/_lib/clash.js), [api/_lib/clash-store.js](../../api/_lib/clash-store.js),
- [api/_lib/crews-store.js](../../api/_lib/crews-store.js).
-- **Realtime multiplayer** — [multiplayer/](../../multiplayer) (authoritative Colyseus server):
- [multiplayer/src/rooms/WalkRoom.js](../../multiplayer/src/rooms/WalkRoom.js),
- [multiplayer/src/rooms/ClashRoom.js](../../multiplayer/src/rooms/ClashRoom.js),
- presence in [multiplayer/src/presence-token.js](../../multiplayer/src/presence-token.js).
-- **Hyperfy world host** — [deploy/world/](../../deploy/world) + [scripts/world-health.mjs](../../scripts/world-health.mjs).
-- **Verify/smoke** — [scripts/verify-worlds-lobby.mjs](../../scripts/verify-worlds-lobby.mjs)
- (offline/unconfigured state), [scripts/verify-worlds-live.mjs](../../scripts/verify-worlds-live.mjs)
- (configured live worlds), [scripts/world-health.mjs](../../scripts/world-health.mjs)
- (asset-integrity check). Tests: [tests/clash-match.test.js](../../tests/clash-match.test.js),
- [tests/world-store.test.js](../../tests/world-store.test.js).
-
-## Do this
-
-1. **Exercise the worlds lobby** (`npm run dev`, `/worlds`): pick/drop-in an avatar with no
- sign-in, browse live coin-worlds, and enter one. Confirm both states work — configured
- (real grid via `GET /api/community/worlds`) and unconfigured (graceful "offline" layer
- where worlds are still enterable, the documented 503 degradation). Run
- `node scripts/verify-worlds-lobby.mjs` (and `verify-worlds-live.mjs` against a configured
- dev server): zero console errors beyond the one tolerated 503.
-2. **Drop into a world end-to-end:** enter `/walk?coin=<mint>`, confirm the world loads (no
- void), the avatar spawns, persistence round-trips via `api/world/[action]` (`save`→`load`),
- and `scripts/world-health.mjs` reports every blueprint asset present (the 2026-06-12 void
- regression must not recur).
-3. **Token-gate correctly:** verify `api/community/world-gate.js` — a coin creator can set a
- holder threshold, GET states the requirement publicly, and entry re-verifies the on-chain
- holding server-side. A real holder gets in; a non-holder hits a designed, actionable gate
- screen (tells them what to hold and how). Fail closed when creator/holding is unknown.
-4. **Coin Clash full loop** (`/clash`): poll `state` → render the bracket → enlist (wallet
- challenge → `enlist-verify` confirms a live on-chain holding of the faction coin) → rally
- dock opens, taps batch and flush to `rally` as battle power. Confirm holdings are gated
- on-chain (no client trust) and the leaderboard reflects real effort.
-5. **Design every state** across both surfaces: loading (skeleton, not a fake bar), empty
- (no live worlds / no active battles → what to do next), error (network/upstream failure →
- actionable recovery), and overflow (many worlds, long coin names, big armies). No blank
- voids, no dead buttons.
-6. **Multiplayer reliability:** in the Colyseus rooms (`WalkRoom`, `ClashRoom`), verify
- presence join/leave, reconnect after a dropped socket, and ticket auth via
- `api/community/ws-ticket.js` + `presence-token.js`. A player who disconnects must not
- linger as a ghost; a reconnect must restore identity. Boot the server with
- `npm run dev:multi` (or `dev:walk-all`) and test two browser tabs.
-7. **Run the suites:** `npx vitest run tests/clash-match.test.js tests/world-store.test.js`
- and the multiplayer package's own tests. Add coverage for any uncovered failure mode
- (gate-denied, upstream 503, presence drop/reconnect, matchmaking bye).
-8. **$THREE compliance + changelog:** any coin the platform *promotes* must be `$THREE`
- (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); the worlds grid and faction roster are
- runtime launch-record feeds (allowed) — never hardcode/market a non-$THREE mint. Add a
- `data/changelog.json` entry for any user-visible change, then `npm run build:pages`.
-
-## Must-not
-
-- Do not let a non-holder past a token gate, or lock out a verified holder — gate on-chain, fail closed.
-- Do not ship a world that can drop players into a void; assets must be verified present.
-- Do not hardcode, market, or recommend any mint other than `$THREE` (runtime launch feeds are fine).
-- Do not fake presence/multiplayer with timers or client-trusted state — use the authoritative rooms.
-- Do not leave any state undesigned (no blank voids, no dead buttons, no never-resolving spinners).
-- Do not weaken a verify/smoke/health check to make a run pass.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/worlds` works in both configured and unconfigured states; `verify-worlds-lobby.mjs`
- (and `verify-worlds-live.mjs` configured) pass with no unexpected console errors.
-- [ ] Dropping into `/walk?coin=<mint>` loads a real world (no void), spawns the avatar, and
- persists via `api/world/[action]`; `scripts/world-health.mjs` reports all assets present.
-- [ ] Token gating verified on-chain: holders enter, non-holders see a designed actionable gate.
-- [ ] Coin Clash loop works end-to-end (state → enlist → enlist-verify → rally), holdings gated on-chain.
-- [ ] Loading/empty/error/overflow states designed across both surfaces; presence join/leave/reconnect reliable.
-- [ ] `tests/clash-match.test.js`, `tests/world-store.test.js`, and multiplayer tests pass; new failure modes covered.
-- [ ] No promoted coin other than `$THREE`; changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/26-observability.md b/prompts/billion-dollar-program/26-observability.md
deleted file mode 100644
index 3cdae1eeb..000000000
--- a/prompts/billion-dollar-program/26-observability.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 26 — Observability (logging, metrics, error tracking)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-You cannot scale what you cannot see. When the Forge hangs, a payment silently
-fails, or a cron stops firing at 3am, the difference between a five-minute fix and
-a five-hour outage is whether the right structured log, metric, and alert already
-exist. At $1B scale every minute of operator blindness is revenue, trust, and
-$THREE-holder confidence bleeding out. Observability is the nervous system that lets
-a small team run a large platform.
-
-## Mission
-
-Make every hot path emit structured, correlated, PII-free logs; record metrics on
-generation/payment/RPC paths; and ensure every server error reaches Sentry + a
-deduped ops alert with a traceable ref — without leaking secrets or vendor internals.
-
-## Map (trust but verify — files move)
-
-- **Client logger** — [src/shared/log.js](../../src/shared/log.js) — gated logger
- (`error` always emits; `warn/info/debug` gated by DEV / `?debug` / `localStorage['tws:debug']`),
- exports `log` + `createLogger(tag)`.
-- **HTTP boundary + correlation IDs** — [api/_lib/http.js](../../api/_lib/http.js) —
- `correlationId()`, `serverError()` (emits `[server-error <ref>]`, calls Sentry + alert),
- `wrap()`, and `redactUrl()` which strips `lat/lng/token/devicetoken` before logging.
-- **Generation metrics** — [api/_lib/forge-events.js](../../api/_lib/forge-events.js) —
- `recordGenerationEvent()` (JSON line `evt:"forge_gen"` + Redis hourly rolling counters),
- `readGenerationMetrics()`; consumed by [api/_lib/forge-health.js](../../api/_lib/forge-health.js).
-- **Payment/business metrics** — [api/_lib/axiom.js](../../api/_lib/axiom.js) —
- `recordPaymentMetric()`, `ingestEvent()` (no-op when `AXIOM_TOKEN`/`AXIOM_DATASET` unset).
-- **Error tracking** — [api/_lib/sentry.js](../../api/_lib/sentry.js) —
- `captureException()`, `captureMessage()` (fetch-based envelope, 2.5s abort, no-op without `SENTRY_DSN`).
-- **Ops alerts** — [api/_lib/alerts.js](../../api/_lib/alerts.js) — `sendOpsAlert(title, detail, opts)`,
- per-signature dedup (1h) + 20/hr global ceiling (Telegram).
-- **x402 audit trail** — [api/_lib/x402/audit-log.js](../../api/_lib/x402/audit-log.js).
-- **Tests** — [tests/api/healthz.test.js](../../tests/api/healthz.test.js),
- [tests/api/forge-health.test.js](../../tests/api/forge-health.test.js),
- [tests/api/audit-log.test.js](../../tests/api/audit-log.test.js).
-
-## Do this
-
-1. **Inventory the boundaries.** Read `http.js` end-to-end. Confirm every `api/`
- handler that can 5xx routes through `serverError()`/`wrap()` so it gets a `ref`,
- a Sentry capture, and an alert. Grep for raw `res.status(500)` /
- `console.error` that bypass the boundary and route them through `http.js`.
-2. **Standardize log levels.** Audit `console.*` calls across `api/` and `src/`.
- Client code must use `src/shared/log.js` (no raw `console.log` shipping to prod);
- server code emits one structured JSON line per significant event with a stable
- `evt` key (mirror `forge_gen`). No free-text-only logs on hot paths.
-3. **PII/secret redaction is non-negotiable.** Extend `redactUrl()` and any log
- payload builder to strip wallet secrets, bearer tokens, API keys, email, and
- precise geo. Add a test asserting a crafted error with a token in the URL +
- body never appears verbatim in the logged/captured payload.
-4. **Metrics on hot paths.** Confirm `recordGenerationEvent()` fires on every forge
- lifecycle phase (start/done/failed). Wire `recordPaymentMetric()` (Axiom) on
- every x402 settle/verify/refund outcome if any path is missing it. These must be
- fail-open (a metrics hiccup never blocks the request).
-5. **Correlation end to end.** Ensure the `ref` from `serverError()` is returned in
- the JSON error body AND attached to the Sentry/alert context, so a support ref
- maps to one log line. Add `ref` to the user-facing error copy where surfaced.
-6. **Alert hygiene.** Verify `sendOpsAlert` dedup + 20/hr ceiling work (read
- `alerts.js`); confirm health crons (`world-health`, `redis-health`, `llm/health`)
- alert on degradation, not on every probe. No alert storms.
-7. **Verify graceful no-op.** With `SENTRY_DSN`, `AXIOM_TOKEN`, and
- `TELEGRAM_*` unset locally, the whole stack must stay silent and non-throwing.
- Run the relevant tests and a local request to confirm.
-8. Run `npx vitest run tests/api/healthz.test.js tests/api/forge-health.test.js
- tests/api/audit-log.test.js` plus any new redaction test. Add a `data/changelog.json`
- entry only if a user-visible surface changed (e.g. a `ref` shown on error pages),
- then `npm run build:pages`.
-
-## Must-not
-
-- Never log secrets, private keys, bearer tokens, raw wallet payloads, full emails,
- or precise geo — redact at the boundary.
-- Never surface a vendor's billing/credit/quota message or raw stack to an end user;
- raw detail lives in server logs and Sentry only.
-- Never make a request block on a metrics/alert/Sentry call — all are fire-and-forget.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs; finish every path you touch. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every 5xx in `api/` produces a correlation `ref`, a Sentry capture, and a
- deduped ops alert; the same `ref` is in the response body and the log line.
-- [ ] Hot paths (forge phases, x402 settle/verify/refund) emit structured metrics;
- all metric/alert/Sentry calls are fail-open and non-blocking.
-- [ ] A redaction test proves tokens/secrets/PII never appear in logged or captured
- payloads (URL and body).
-- [ ] With all observability env vars unset, the stack is silent and never throws.
-- [ ] `tests/api/healthz`, `forge-health`, `audit-log` and any new test pass.
-- [ ] Changelog updated only if user-visible; `npm run build:pages` is clean.
diff --git a/prompts/billion-dollar-program/27-database-integrity-migrations.md b/prompts/billion-dollar-program/27-database-integrity-migrations.md
deleted file mode 100644
index 2b72ec0b3..000000000
--- a/prompts/billion-dollar-program/27-database-integrity-migrations.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# 27 — Database integrity & migrations
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The database holds money truth: payment intents, agent revenue, skill licenses,
-launch records. One non-idempotent migration that half-applies, one missing unique
-index that lets a payment double-settle, or one unindexed hot query that table-scans
-under load can corrupt balances or take the platform down during the exact traffic
-spike you wanted. At $1B, schema discipline is the floor that everything else stands
-on — it must be boringly safe, forward-only, and reversible.
-
-## Mission
-
-Guarantee every migration is idempotent and forward-safe, every hot query is indexed
-and constrained, money paths are protected by unique/FK constraints, and no
-destructive change ships without a backup — with retry and timeouts on the Neon client.
-
-## Map (trust but verify — files move)
-
-- **Migrations** — [api/_lib/migrations/](../../api/_lib/migrations) — ~134 `.sql`
- files (mixed `001_`, dated, and `YYYYMMDDHHMMSS_` naming). Idempotency via
- `CREATE TABLE/INDEX IF NOT EXISTS` and `DO $$ … EXCEPTION WHEN duplicate_object`.
-- **Base schema** — [api/_lib/schema.sql](../../api/_lib/schema.sql) — ~1900 lines,
- `pgcrypto`/`citext`, fully idempotent (`IF NOT EXISTS` everywhere).
-- **Neon client** — [api/_lib/db.js](../../api/_lib/db.js) — `@neondatabase/serverless`
- HTTP driver, lazy init, composable SQL fragments with placeholder renumbering.
-- **Retry helper** — [api/_lib/db-retry.js](../../api/_lib/db-retry.js) — `withDbRetry`,
- 3 attempts, retries transient connection errors only (never SQLSTATE constraint errors).
-- **Migration runner** — [scripts/apply-migrations.mjs](../../scripts/apply-migrations.mjs) —
- dry-run by default (`--apply` to write), `schema_migrations` ledger (filename + SHA-256),
- drift detection (refuses if a hash changed), `Pool` for multi-statement files.
- Scripts: `npm run db:status` (dry) / `npm run db:migrate` (apply).
-- **Money-path examples** —
- [api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql](../../api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql)
- (anti-replay unique tx_hash),
- [api/_lib/migrations/20260621120000_revenue-integrity.sql](../../api/_lib/migrations/20260621120000_revenue-integrity.sql)
- (partial unique index + CHECK via DO/EXCEPTION).
-- **Tests** — [tests/db-sql-compose.test.js](../../tests/db-sql-compose.test.js)
- (fragment placeholder renumbering), [tests/db-retry.test.js](../../tests/db-retry.test.js).
-
-## Do this
-
-1. **Establish the truth.** Run `npm run db:status` to see applied vs pending and
- confirm the `schema_migrations` ledger + drift detection work. Never edit a
- migration that has already applied (it breaks the SHA-256 drift guard) — add a
- new forward migration instead.
-2. **Idempotency sweep.** Grep every file under `api/_lib/migrations/` for
- `CREATE TABLE`/`CREATE INDEX`/`ADD CONSTRAINT`/`ADD COLUMN` lacking
- `IF NOT EXISTS` or a `DO $$ … EXCEPTION` guard. Each must be safe to re-run on a
- DB that already has the object. Fix any that aren't (new migration if already applied).
-3. **Hot-query indexes.** Identify the most-read tables (payments/intents, agent
- revenue, launches, marketplace, feeds). For each frequent `WHERE`/`ORDER BY`/`JOIN`,
- confirm a supporting index exists; add `CREATE INDEX IF NOT EXISTS` (use partial
- indexes where a column is nullable, mirroring the revenue-integrity pattern).
-4. **Constraints on money paths.** Verify unique constraints prevent double-settle
- (e.g. one intent per on-chain tx_hash) and that foreign keys tie child rows to
- their owners. Add missing UNIQUE/FK/CHECK via the `DO $$ … EXCEPTION WHEN
- duplicate_object THEN NULL; END $$;` idempotent pattern.
-5. **No destructive change without a backup.** Audit migrations for `DROP TABLE`,
- `DROP COLUMN`, `TRUNCATE`. For any new destructive op, require an explicit Neon
- branch/snapshot first and document the rollback; prefer additive deprecation
- (rename-then-drop in a later release) over in-place drops.
-6. **Client safety.** Confirm money/critical reads/writes go through `withDbRetry`.
- Add a request-level query timeout (`Promise.race` against a bounded deadline)
- around long DB calls so a stalled Neon connection can't hang a serverless
- function past its limit. Keep retry classification (transient vs constraint) intact.
-7. **Split-safety.** The runner splits multi-statement files on bare `;` at line
- ends — verify any new migration with `DO $$`/dollar-quoted bodies still parses
- (test against `db:status`), and that statements are individually idempotent.
-8. Run `npx vitest run tests/db-sql-compose.test.js tests/db-retry.test.js`, then
- `npm run db:status` to confirm a clean, applied-or-pending state. Add a
- `data/changelog.json` entry only if a user-visible behavior changed; `npm run build:pages`.
-
-## Must-not
-
-- Never edit an already-applied migration — it trips the drift guard; add a forward one.
-- Never ship `DROP`/`TRUNCATE`/`DROP COLUMN` without a Neon snapshot + documented rollback.
-- Never make a migration non-idempotent; assume it may re-run on a partially-applied DB.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs. The only coin is `$THREE` — no other mint in fixtures/seeds.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run db:status` shows a clean ledger; drift detection verified working.
-- [ ] Every migration is idempotent (`IF NOT EXISTS` / `DO $$ … EXCEPTION`), safe to re-run.
-- [ ] Hot tables have indexes covering their frequent `WHERE`/`ORDER BY`/`JOIN`.
-- [ ] Money paths carry unique + FK + CHECK constraints (e.g. no double-settle per tx).
-- [ ] No destructive migration lacks a backup/rollback plan; additive deprecation preferred.
-- [ ] Critical DB calls use `withDbRetry` and a bounded query timeout.
-- [ ] `db-sql-compose` and `db-retry` tests pass; changelog updated only if user-visible.
diff --git a/prompts/billion-dollar-program/28-deploy-pipeline-rollback.md b/prompts/billion-dollar-program/28-deploy-pipeline-rollback.md
deleted file mode 100644
index ae529a0fb..000000000
--- a/prompts/billion-dollar-program/28-deploy-pipeline-rollback.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 28 — Deploy pipeline & rollback safety
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform handling real money and real assets must be able to ship safely and undo
-instantly. The single worst footgun in this repo is `npx vercel build` rewriting
-`api/*.js` source files in place with esbuild bundles — committing one corrupts the
-backend silently. Add a missed cron registration, a desync between the two git
-remotes, or a deploy with no fast rollback, and a routine push becomes an outage.
-At $1B, deploys must be a non-event: gated, verified, mirrored, and reversible.
-
-## Mission
-
-Harden the deploy path so a bundled `api/` file can never reach `main`, the deploy
-audit + build gates always run, crons stay in sync with their handlers, both git
-remotes stay aligned, and rollback is one documented command away.
-
-## Map (trust but verify — files move)
-
-- **Bundle guard** — [scripts/check-api-not-bundled.mjs](../../scripts/check-api-not-bundled.mjs) —
- scans first 4096 bytes of every `api/**/*.js` for `__defProp`, `createRequire(`,
- `__toESM(`, `__toCommonJS(`; exits non-zero with `git restore -- api/ public/` recovery hint.
-- **Deploy artifact audit** — [scripts/audit-deploy-artifacts.mjs](../../scripts/audit-deploy-artifacts.mjs) —
- catches committed symlinks + unsatisfied peers + undeclared `api/` imports. Run `npm run audit:deploy`.
-- **Build orchestrator** — [scripts/build-vercel.mjs](../../scripts/build-vercel.mjs) —
- 5-phase build; phase 1 gates on `audit:deploy`, `test:gate`, `verify:solana`,
- `verify:onchain`, `audit:mcp`. Run `npm run build:vercel`.
-- **Vercel config** — [vercel.json](../../vercel.json) — `routes`, `functions`, `headers`,
- `env`, and `crons` (~46 cron entries). Cron handlers live in [api/cron/](../../api/cron).
-- **CI** — [.github/workflows/ci.yml](../../.github/workflows/ci.yml) — jobs: **lint**
- (`eslint .`), **test** (`vitest run`), **guards** (`check-api-not-bundled.mjs`,
- `check:images`, `build:pages`), **typecheck** (advisory, continue-on-error).
-- **Tests** — [tests/deploy-artifacts.test.js](../../tests/deploy-artifacts.test.js).
-- **Git remotes** — `origin` → `nirholas/three.ws` (canonical), `threeD` →
- `nirholas/3D-Agent` (push-only mirror). Per `/CLAUDE.md`, every push goes to BOTH.
-
-## Do this
-
-1. **Prove the bundle guard.** Read `check-api-not-bundled.mjs`. Confirm it runs in
- CI (guards job) and as a build gate. Before any large `api/` commit, run
- `node scripts/check-api-not-bundled.mjs` and `head -1` changed files for
- `__defProp`/`createRequire`; recover with `git restore -- api/ public/`. Add a
- `pre-commit`/local check note if not already enforced.
-2. **Run the deploy audit.** `npm run audit:deploy` — fix any symlink, peer-dep, or
- undeclared-import finding it reports. This is the gate that caught the 2026-06-11
- outage class; it must pass clean.
-3. **Cron registration sanity.** There is no validator that `vercel.json` crons map
- 1:1 to `api/cron/*` handlers (the counts differ because some handlers serve
- multiple schedules). Write/extend a script that, for every `crons[].path` in
- `vercel.json`, asserts a resolvable handler exists under `api/`, and flags any
- `api/cron/*` handler with no schedule. Wire it into the guards CI job.
-4. **Verify the build gates fire.** Run `npm run build:vercel` (or inspect phase 1)
- and confirm `audit:deploy`, `test:gate`, `verify:solana`, `verify:onchain`,
- `audit:mcp` all run and that RPC-dependent verifies degrade to warnings (never
- hard-fail) when an RPC is down — a flaky RPC must not block a deploy.
-5. **Dual-remote discipline.** Document and (where possible) script that every push
- goes to `origin` AND `threeD` in the same step; never force-push without explicit
- request; NEVER pull/fetch/merge from `threeD`. Surface an error if the two
- remotes' `main` diverge rather than silently leaving them out of sync.
-6. **Rollback runbook.** Document the fast rollback: `vercel rollback` (or promote a
- prior production deployment in the Vercel dashboard) plus `git revert` using a
- NEUTRAL commit message (never echo the reverted title, per `/CLAUDE.md`). Capture
- how to re-point both remotes after a revert.
-7. **Preview deploys.** Confirm preview/PR deployments are isolated from production
- data (no prod writes, no prod crons). If any preview can touch prod money/DB,
- gate it behind env separation.
-8. Run `npx vitest run tests/deploy-artifacts.test.js`, `npm run audit:deploy`, and
- `node scripts/check-api-not-bundled.mjs`. Add a `data/changelog.json` entry only
- if a user-visible surface changed (deploy hardening is usually internal); if so,
- `npm run build:pages`.
-
-## Must-not
-
-- Never commit a bundled `api/*.js` (esbuild markers in the first bytes) — guard + recover.
-- Never pull/fetch/merge from `threeD`; it is a push-only mirror. Push to BOTH remotes.
-- Never force-push to either remote without an explicit request.
-- Never let an RPC outage hard-block a deploy — verify steps degrade to warnings.
-- No mocks, stubs, or TODOs in the pipeline scripts. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `check-api-not-bundled.mjs` passes; documented recovery is `git restore -- api/ public/`.
-- [ ] `npm run audit:deploy` passes clean (no symlink/peer/undeclared-import findings).
-- [ ] A cron-sync check asserts every `vercel.json` cron has a handler (and flags orphans), wired into CI.
-- [ ] Build gates run and RPC-dependent verifies degrade to warnings when RPC is down.
-- [ ] Dual-remote push discipline is documented/scripted; divergence is surfaced, not hidden.
-- [ ] A fast rollback runbook exists (Vercel promote/rollback + neutral-message revert).
-- [ ] `deploy-artifacts` test passes; changelog updated only if user-visible.
diff --git a/prompts/billion-dollar-program/29-uptime-status-page.md b/prompts/billion-dollar-program/29-uptime-status-page.md
deleted file mode 100644
index c497dc6c9..000000000
--- a/prompts/billion-dollar-program/29-uptime-status-page.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 29 — Uptime monitoring & public status page
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Trust is the currency of a money-moving platform. When something breaks, users and
-$THREE holders need a single honest place that tells them what's up, what's degraded,
-and that the team already knows — before they tweet. A polished public status page
-with real uptime history converts incidents from credibility losses into proof of
-operational maturity. And external monitoring is the smoke detector that pages the
-team even when the platform is too down to alert itself.
-
-## Mission
-
-Aggregate every health probe into one `/api/status` feed backing a public `/status`
-page with real 90-day uptime history, wire external (off-box) uptime monitoring, and
-ensure degradation pages the team via the existing ops-alert channel.
-
-## Map (trust but verify — files move)
-
-- **Public status page** — [pages/status.html](../../pages/status.html) — live
- dashboard, 90-day uptime bars, auto-polls `/api/status` every 5 min. Registered in
- [data/pages.json](../../data/pages.json) (`/status`, section "learn").
-- **Status feed** — `api/status.js` (powers the page; verify path under [api/](../../api)).
-- **Aggregate health** — [api/healthz.js](../../api/healthz.js) — probes Resend,
- x402 facilitator, SIWX payments table, bot heartbeat, alert watches.
-- **Forge health** — [api/_lib/forge-health.js](../../api/_lib/forge-health.js)
- (served via `GET /api/forge?health`) — probes generation backends + Redis + world.
-- **Admin probes** — [api/admin/redis-health.js](../../api/admin/redis-health.js),
- [api/admin/pump-cron-health.js](../../api/admin/pump-cron-health.js).
-- **Health crons** — [api/cron/world-health.js](../../api/cron/world-health.js),
- `api/cron/uptime-check.js`, [api/llm/health.js](../../api/llm/health.js).
-- **Ops alerts** — [api/_lib/alerts.js](../../api/_lib/alerts.js) — `sendOpsAlert()`,
- deduped + 20/hr ceiling (Telegram).
-- **Nav** — [public/nav-data.js](../../public/nav-data.js) (`NAV_GROUPS`, single
- source of truth for menu items), [public/nav.js](../../public/nav.js).
-- **Tests** — [tests/api/healthz.test.js](../../tests/api/healthz.test.js),
- [tests/api/forge-health.test.js](../../tests/api/forge-health.test.js).
-
-## Do this
-
-1. **Exercise what exists.** Open `/status` in a real browser (`npm run dev`) and
- hit `/api/status`. Confirm the page polls every 5 min, renders per-service dots,
- 90-day bars, and the "warming-up" first-deploy state. Note any probe missing.
-2. **Make the feed complete.** Ensure `/api/status` aggregates ALL subsystems:
- `healthz` (Resend/x402/DB/heartbeat/watches), `forge?health` (gen backends + Redis
- + world), redis-health, pump-cron-health, world-health, llm/health. Add any
- probe that the public page should reflect; admin-gated probes feed status via the
- server (the public response must never leak admin detail or secrets).
-3. **Real history, not synthetic.** Verify the 90-day uptime data is recorded from
- actual probe results (a cron writing samples to Redis/DB), not faked. If history
- storage is thin, persist each `uptime-check` result with a retention window so the
- bars reflect truth. No `setTimeout` fake data.
-4. **Every state designed.** Confirm `/status` has designed loading, warming-up
- (no history yet), all-operational, degraded, and down states — accessible,
- responsive at 320/768/1440, with hover/focus on interactive elements.
-5. **External monitoring.** Wire an off-box uptime monitor (e.g. an
- UptimeRobot/BetterStack/Checkly HTTP check, or a free cron-job.org ping) against
- `/api/healthz` and `/api/status` that pages the team independently of Vercel.
- Document the config and the alert destination. Do not invent a fake integration —
- set up a real one or document the exact steps + env to enable it.
-6. **Degradation pages the team.** Confirm the health crons call `sendOpsAlert` on
- degradation only (not every probe), respecting dedup + the 20/hr ceiling — no
- alert storms. Add alerting for any subsystem currently probed-but-silent.
-7. **Discoverability.** Add `/status` to `public/nav-data.js` (footer/utility group)
- and link it from error pages and the footer so users can find it when things break.
-8. Run `npx vitest run tests/api/healthz.test.js tests/api/forge-health.test.js`,
- exercise `/status` in the browser (no console errors), then add a
- `data/changelog.json` entry (status page improvements are user-visible) and
- `npm run build:pages`.
-
-## Must-not
-
-- Never expose admin-only health detail, internal URLs, or secrets in the public `/api/status`.
-- Never fake uptime history with `setTimeout` or hardcoded bars — record real samples.
-- Never let the public page flip top-level "operational" to red on a single flaky probe — debounce.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/api/status` aggregates all subsystem probes; the public response leaks no admin detail/secrets.
-- [ ] `/status` renders real 90-day history from recorded samples; loading/warming/degraded/down states designed.
-- [ ] An external, off-box uptime monitor pings `/api/healthz` + `/api/status` and pages the team (real config documented).
-- [ ] Health crons alert via `sendOpsAlert` on degradation only, respecting dedup + ceiling.
-- [ ] `/status` is reachable from nav + footer + error pages; no console errors; responsive + accessible.
-- [ ] `healthz` and `forge-health` tests pass; changelog updated and `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/30-load-stress-testing.md b/prompts/billion-dollar-program/30-load-stress-testing.md
deleted file mode 100644
index 66063bb0a..000000000
--- a/prompts/billion-dollar-program/30-load-stress-testing.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 30 — Load & stress testing
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The day a launch goes viral is the day you find out whether the platform holds. If
-the Forge GPU budget, the x402 verify path, or the public feeds buckle under a
-traffic spike — or worse, if a spike silently burns the entire monthly Redis command
-budget in a day — the moment you waited for becomes the outage that defines you. You
-cannot guess capacity at $1B; you measure it, find the breaking point on purpose in a
-safe lane, and prove the rate-limits and budgets hold before real users arrive.
-
-## Mission
-
-Identify the hottest and most-expensive endpoints, script realistic load tests
-(k6/artillery) against a non-production target, prove the rate-limits and Redis
-budget hold at their designed ceilings, find the breaking points, and document capacity.
-
-## Map (trust but verify — files move)
-
-- **Hottest endpoints** — [api/forge.js](../../api/forge.js) (text→3D, GPU-bound),
- [api/x402-checkout.js](../../api/x402-checkout.js) + [api/x402/forge.js](../../api/x402/forge.js)
- (payment prepare/verify), [api/feed.js](../../api/feed.js) +
- [api/feed-stream.js](../../api/feed-stream.js) + [api/trades/feed.js](../../api/trades/feed.js)
- (read-heavy, polled).
-- **Rate limiting** — [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js) — Upstash
- sliding-window (in-memory fallback for dev/tests); ~80+ named buckets; critical
- (money) buckets fail CLOSED, non-critical reads fail OPEN; `local: true` buckets
- never consume Redis. Key ceilings: `forge_paid_global_hourly` (600/h),
- `x402_verify_global_per_hour` (12000/h), `mcp3dGenerate` (30/h), `publicIp` (60/min).
-- **Redis budget** — [api/_lib/redis-usage.js](../../api/_lib/redis-usage.js) —
- `REDIS_MONTHLY_BUDGET = 500_000` (Upstash free tier), warn 80% / crit 90%; daily ≈16,667.
-- **x402 paid endpoint plumbing** — [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js).
-- **Existing smokes (not load tests)** — [scripts/onchain-smoke.mjs](../../scripts/onchain-smoke.mjs)
- (`npm run smoke:onchain`), [scripts/smoke-mcp-remotes.mjs](../../scripts/smoke-mcp-remotes.mjs)
- (`npm run smoke:mcp`), [scripts/smoke-api-endpoints.mjs](../../scripts/smoke-api-endpoints.mjs).
-- **Env** — [.env.example](../../.env.example) — `UPSTASH_REDIS_REST_URL/TOKEN`,
- `FORGE_PAID_GLOBAL_HOURLY`, `X402_VERIFY_GLOBAL_PER_HOUR` overrides.
-
-> No load-test tooling exists yet — this is net-new. Add it under `scripts/` (or a
-> new `loadtest/` dir) and an npm script; do not pollute the repo root.
-
-## Do this
-
-1. **Rank by cost and heat.** From the map, classify endpoints into GPU-bound
- (forge), money-path (x402 checkout/verify), and read-heavy (feeds, status,
- marketplace). Read `rate-limit.js` to record the exact ceiling for each so tests
- target the designed limit, not an arbitrary number.
-2. **Pick the tool, add it cleanly.** Adopt k6 (preferred) or artillery as a
- dev/CI dependency. Create `loadtest/` (or `scripts/load/`) with one script per
- class: `forge.js`, `x402.js`, `feeds.js`. No scratch files in the repo root.
-3. **Target a safe environment.** Run against a preview/staging deploy or a local
- `npm run dev`, NEVER production money paths. For x402, drive the 402 price-discovery
- and verify amplification path with synthetic/declined payments — never settle real
- funds, never use a non-`$THREE` mint.
-4. **Prove the limiters hold.** Push each endpoint to and past its bucket ceiling;
- assert that critical money buckets fail CLOSED (reject, not melt) and read buckets
- fail OPEN/degrade. Confirm 429s are returned with correct `Retry-After`-style copy
- and no 5xx storms.
-5. **Watch the Redis budget.** While a feeds/status load test runs, sample
- `redis-usage.js` accounting. Confirm high-frequency cheap reads use `local: true`
- buckets (per the June-2026 quota-burn incident) so a spike does not torch the
- 500k/month budget. Flag any hot read that hits Redis on every request.
-6. **Find the breaking point.** Ramp concurrency until p95 latency or error rate
- crosses an SLO (define one, e.g. p95 < 1s for reads, generation queue bounded).
- Record the knee of the curve per endpoint — that is your capacity number.
-7. **Verify autoscaling/queueing holds.** Confirm forge's global hourly circuit
- breaker queues/sheds rather than overrunning the shared GPU budget, and that
- serverless concurrency limits don't cascade into timeouts on dependent calls.
-8. Document results: per-endpoint ceiling, observed p50/p95, breaking point, Redis
- cost/request, and recommended limits in a `loadtest/README.md`. Run
- `node scripts/smoke-api-endpoints.mjs` (or `npm run smoke:onchain`) as a sanity
- pass against the safe target. Add a
- `data/changelog.json` entry only if a user-visible limit/behavior changed; `npm run build:pages`.
-
-## Must-not
-
-- Never load-test production money paths or settle real funds; use staging + synthetic payments.
-- Never use a non-`$THREE` mint in any test fixture or payload.
-- Never leave load scripts or result files in the repo root — `loadtest/` or `scripts/`, gitignore artifacts.
-- Do not weaken a working rate-limit just to "pass" a test — the limit is the answer.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Endpoints ranked by cost/heat with each target's exact rate-limit ceiling recorded.
-- [ ] k6/artillery scripts exist for forge, x402, and feeds, run against staging/local (never prod).
-- [ ] At ceiling: critical buckets fail CLOSED, read buckets degrade; 429s correct, no 5xx storms.
-- [ ] Redis budget is not torched by a read spike; high-frequency reads use `local` buckets.
-- [ ] Breaking point (knee) documented per endpoint against a stated SLO.
-- [ ] `loadtest/README.md` records capacity numbers + recommended limits; no artifacts committed.
-- [ ] A smoke pass succeeds; changelog updated only if user-visible.
diff --git a/prompts/billion-dollar-program/31-solana-rpc-onchain-resilience.md b/prompts/billion-dollar-program/31-solana-rpc-onchain-resilience.md
deleted file mode 100644
index e93d5f200..000000000
--- a/prompts/billion-dollar-program/31-solana-rpc-onchain-resilience.md
+++ /dev/null
@@ -1,97 +0,0 @@
-# 31 — Solana RPC & on-chain resilience
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Solana is the platform default network — launches, trades, payments, skill licenses,
-and $THREE all live on-chain. A single RPC provider throttling or going down must not
-take the platform with it, and a charge must never settle twice or charge-then-silently-revert.
-On-chain money is unforgiving: at $1B, RPC failover, idempotent settlement, and
-provable address parity are the difference between a graceful degrade and an
-irreversible loss of funds or trust.
-
-## Mission
-
-Guarantee RPC failover/retry across providers, idempotent on-chain operations,
-revert-safe confirmations, verified address/program parity, and graceful degradation
-(cached/null reads, clear UI) when RPC is impaired — never a charge into the void.
-
-## Map (trust but verify — files move)
-
-- **RPC connection (canonical)** — [api/_lib/solana/connection.js](../../api/_lib/solana/connection.js) —
- `solanaConnection()` (transparent failover), `solanaRpcEndpoints()` (priority chain:
- caller url → `SOLANA_RPC_URL` → Helius → Alchemy → dRPC → Ankr → operator fallbacks →
- PublicNode/Leo/Tatum keyless → public mainnet-beta last), `makeRotatingFetch()` with
- per-endpoint quota cooldown + body validation.
-- **RPC fallback class** — [api/_lib/solana/rpc-fallback.js](../../api/_lib/solana/rpc-fallback.js)
- — `RpcFallback` (3 consecutive fails → rotate, 60s cooldown), `rpcFallbackFromEnv()`.
-- **Resilience (cockatiel)** — [api/_lib/resilience.js](../../api/_lib/resilience.js) —
- `withBreaker(name, fn, opts)`, `isCircuitError()` (ConsecutiveBreaker, 5 fails, 30s half-open).
-- **SDK bridge (graceful null)** — [api/_lib/solana/sdk-bridge.js](../../api/_lib/solana/sdk-bridge.js)
- — pump SDK reads return `null` on transient RPC errors instead of throwing.
-- **Confirm guard** — [api/_lib/solana/confirm.js](../../api/_lib/solana/confirm.js) —
- `confirmOrThrow()` throws on reverted tx (catches silent `result.value.err`).
-- **Idempotency** — [api/_lib/x402/idempotency-cache.js](../../api/_lib/x402/idempotency-cache.js),
- [api/_lib/migrations/20260504140000_create_payment_intents.sql](../../api/_lib/migrations/20260504140000_create_payment_intents.sql),
- [api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql](../../api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql).
-- **Parity/smoke** — [scripts/verify-solana-parity.mjs](../../scripts/verify-solana-parity.mjs)
- (`verify:solana`), [scripts/verify-onchain-parity.mjs](../../scripts/verify-onchain-parity.mjs)
- (`verify:onchain`), [scripts/onchain-smoke.mjs](../../scripts/onchain-smoke.mjs) (`smoke:onchain`).
-- **Tests** — [tests/solana-rpc-rotating-fetch.test.js](../../tests/solana-rpc-rotating-fetch.test.js),
- [tests/api/solana-rpc-endpoints.test.js](../../tests/api/solana-rpc-endpoints.test.js),
- [tests/solana-confirm.test.js](../../tests/solana-confirm.test.js).
-
-## Do this
-
-1. **Audit every RPC entry point.** Grep for `new Connection(` / direct RPC URL use
- across `api/` and `workers/`. Every Solana read/write must go through
- `solanaConnection()` (or `RpcFallback`) so it inherits failover — never a single
- hardcoded provider. Fix any that bypass the helper.
-2. **Wrap expensive/external calls in a breaker.** For aggregations and third-party
- reads (price, graduation progress, oracle attestations), wrap in `withBreaker`
- from `resilience.js` so a sick provider trips the circuit instead of hammering it.
- Reads use the connection's native rotation; the breaker guards the outer call.
-3. **Validate rotating-fetch never leaks bad bodies.** Confirm (per the existing
- regression test) that `makeRotatingFetch` rejects `[]`, HTML, truncated JSON, and
- missing `result/error` rather than handing them to web3.js. Add cover for any new
- provider added to the chain.
-4. **Idempotent on-chain ops.** Verify every settle/mint/trade path is keyed by an
- idempotency token (intent_id / payment id / tx_hash) backed by the unique
- constraint + `idempotency-cache`. The same id + same payload must replay the
- cached result with NO second on-chain action; same id + different payload → 409.
-5. **Revert-safe confirmations.** Confirm money paths use `confirmOrThrow()` so a tx
- whose revert lands in `result.value.err` is treated as a failure (refund/retry),
- never charged-and-forgotten. Add cover for any path confirming manually.
-6. **Graceful degradation.** When all RPC endpoints are exhausted, reads should
- return cached/`null` and the UI should show "live data unavailable, retrying"
- (designed, not a dead spinner) — never a raw RPC error and never a partial write.
- Verify writes abort cleanly (no half-settled state) when RPC is down mid-op.
-7. **Prove parity + liveness.** Run `npm run verify:solana` and `npm run verify:onchain`;
- they must confirm the $THREE mint + program IDs match canonical and degrade to a
- warning (not hard-fail) when RPC is unreachable. Run `npm run smoke:onchain` against
- a safe target.
-8. Run `npx vitest run tests/solana-rpc-rotating-fetch.test.js
- tests/api/solana-rpc-endpoints.test.js tests/solana-confirm.test.js`. Add a
- `data/changelog.json` entry only if a user-visible behavior changed (e.g. a new
- degraded-state message); then `npm run build:pages`.
-
-## Must-not
-
-- Never instantiate a raw single-provider `Connection` on a money path — use the failover helper.
-- Never let a charge settle without an idempotency key + revert-safe confirmation.
-- Never surface a raw RPC/provider error to the user — degrade with designed copy.
-- Never hardcode or recommend any non-`$THREE` mint; parity is checked against the $THREE CA.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every Solana entry point uses the failover connection/`RpcFallback`; no bypassing raw `new Connection`.
-- [ ] Expensive/third-party reads are guarded by `withBreaker`; rotating-fetch rejects malformed bodies.
-- [ ] Settle/mint/trade are idempotent (id + unique constraint + cache); same id never double-acts.
-- [ ] Money paths confirm via `confirmOrThrow`; reverts become failures, never silent charges.
-- [ ] RPC-down degrades to cached/null reads with designed UI; writes abort cleanly with no half-state.
-- [ ] `verify:solana` + `verify:onchain` pass (warn, not fail, when RPC down); `smoke:onchain` green.
-- [ ] RPC/confirm/endpoint tests pass; changelog updated only if user-visible.
diff --git a/prompts/billion-dollar-program/32-caching-cdn-r2.md b/prompts/billion-dollar-program/32-caching-cdn-r2.md
deleted file mode 100644
index e916ac28f..000000000
--- a/prompts/billion-dollar-program/32-caching-cdn-r2.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 32 — Caching, CDN & R2 asset strategy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-3D is heavy: GLBs, textures, animations, and HDRs are megabytes each, and every
-uncached fetch is latency the user feels and bandwidth the platform pays for. At $1B
-scale, correct `Cache-Control` + CDN edge caching turns a slow viewer into an instant
-one and cuts origin egress dramatically. Meanwhile the 500k/month Upstash command
-budget means a single hot read that hits Redis on every request can torch the entire
-budget in days — so caching is also a cost-survival discipline, not just speed.
-
-## Mission
-
-Ensure static + GLB/3D assets carry correct immutable/long-cache headers, R2 has CORS
-+ a lifecycle for orphaned assets, expensive reads are Redis-cached within budget with
-stampede protection, and CDN edge caching is used wherever the data allows.
-
-## Map (trust but verify — files move)
-
-- **Cache headers** — [vercel.json](../../vercel.json) `headers` — existing rules:
- versioned `agent-3d` → `max-age=31536000, immutable`; `/avatars/*.glb` &
- `/animations/*` → `max-age=604800, stale-while-revalidate=2592000`; `/assets/*` →
- immutable; generic media regex covers `glb|gltf|hdr|exr|ktx2|basis|bin|woff2|…`.
-- **R2 client** — [api/_lib/r2.js](../../api/_lib/r2.js) — S3-compatible (AWS SDK v3):
- `putObject`, `getObject`, `deleteObject`, `headObject`, `copyObject`, presigned
- up/download, `publicUrl(key)`. Env: `S3_ENDPOINT/ACCESS_KEY_ID/SECRET_ACCESS_KEY/BUCKET/PUBLIC_DOMAIN`.
-- **R2 CORS** — [scripts/set-r2-cors.mjs](../../scripts/set-r2-cors.mjs) (`npm run apply:r2-cors`)
- — `public-read` (GET/HEAD) + `browser-upload` (PUT) rules with three.ws/preview/codespace/localhost origins.
-- **Redis cache primitives** — [api/_lib/cache.js](../../api/_lib/cache.js) —
- `cacheGet/cacheSet/cacheWrap` (TTL), 2s in-process memo, single-flight in-flight
- coalescing, `acquireLock` distributed lock for expensive recompute.
-- **Redis budget** — [api/_lib/redis-usage.js](../../api/_lib/redis-usage.js) —
- `REDIS_MONTHLY_BUDGET = 500_000`, warn 80% / crit 90%; [api/admin/redis-health.js](../../api/admin/redis-health.js).
-- **Generated GLB storage** — [api/_lib/forge-store.js](../../api/_lib/forge-store.js),
- [api/_lib/reconstruct-finalize.js](../../api/_lib/reconstruct-finalize.js) (put to R2 → `publicUrl`).
-- **Tests** — [tests/api/forge-cache-headers.test.js](../../tests/api/forge-cache-headers.test.js),
- [tests/http-cache-control.test.js](../../tests/http-cache-control.test.js),
- [tests/api/redis-usage.test.js](../../tests/api/redis-usage.test.js),
- [tests/api/skill-price-cache.test.js](../../tests/api/skill-price-cache.test.js).
-
-## Do this
-
-1. **Audit asset cache coverage.** For every static + 3D asset type served (GLB,
- GLTF, HDR, EXR, KTX2, BASIS, BIN, fonts, images, versioned JS), confirm a
- `Cache-Control` rule in `vercel.json` matches it. Content-addressed/versioned
- assets get `max-age=31536000, immutable`; mutable-but-cacheable assets get a long
- `max-age` + `stale-while-revalidate`. Fill any gap the audit finds.
-2. **Never long-cache mutable HTML/API.** Verify HTML pages and `api/*` responses
- default to `no-store` (via `http.js`) unless a route is explicitly safe to edge-cache;
- long-caching a stale dashboard or balance is a correctness bug. Add `s-maxage` +
- `stale-while-revalidate` only to read endpoints whose data tolerates it (e.g. feeds, changelog).
-3. **R2 CORS is current.** Run `npm run apply:r2-cors` and confirm the allowed origins
- cover prod, `*.vercel.app` previews, codespaces, and localhost, with `ETag`/`Accept-Ranges`
- exposed for range requests (GLB streaming). Add any missing origin idempotently.
-4. **R2 lifecycle for orphans.** There is no object lifecycle today — generated GLBs
- accumulate forever. Add a lifecycle/cleanup path: either an R2 lifecycle rule for a
- `tmp/`/`scratch/` prefix, or a cron that deletes orphaned/unreferenced objects
- (cross-checked against the DB so nothing live is removed). Never delete a referenced asset.
-5. **Cache expensive reads within budget.** Identify hot, expensive reads (on-chain
- scans, snapshots, price/market aggregates). Wrap them in `cacheWrap` with a sane
- TTL. Confirm high-frequency cheap reads use `local`/in-process memo (not a Redis
- GET per request) so the 500k/month budget survives a spike.
-6. **Stampede protection on cold cache.** For any expensive recompute, use
- `acquireLock` so a traffic spike against a cold key fans out into ONE recompute
- platform-wide, not N. Verify the in-flight GET coalescing path works under
- concurrent reads.
-7. **CDN edge caching.** Ensure cacheable read endpoints set `s-maxage` so Vercel's
- edge serves them without hitting the function/origin, and that GLBs are served from
- the R2 public CDN domain (not proxied through a function). Watch `redis-health` /
- `redis-usage` while exercising to confirm budget headroom.
-8. Run `npx vitest run tests/api/forge-cache-headers.test.js tests/http-cache-control.test.js
- tests/api/redis-usage.test.js tests/api/skill-price-cache.test.js`. Verify headers
- live in the browser Network tab (`npm run dev`). Add a `data/changelog.json` entry
- if a user-visible perf change shipped; `npm run build:pages`.
-
-## Must-not
-
-- Never apply `immutable`/long `max-age` to mutable HTML, dashboards, balances, or `api/*` writes.
-- Never delete an R2 object that is still referenced — cross-check the DB before any lifecycle delete.
-- Never add a hot read that issues a Redis command per request without memo/local bucketing — respect the 500k budget.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-- The only coin is `$THREE` — no other token in any cache key, fixture, or copy.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every static + 3D asset type has a correct `Cache-Control` rule (immutable for versioned, SWR for mutable).
-- [ ] HTML/API stay `no-store` except explicitly edge-cacheable reads with `s-maxage` + SWR.
-- [ ] `apply:r2-cors` run; CORS covers prod/preview/codespace/localhost with range headers exposed.
-- [ ] An R2 lifecycle/cleanup removes orphaned assets only, cross-checked against the DB.
-- [ ] Expensive reads use `cacheWrap`; hot cheap reads avoid per-request Redis; budget headroom confirmed.
-- [ ] Stampede protection (lock + in-flight coalescing) verified on a cold expensive key.
-- [ ] Cache-header tests pass; headers verified in the browser; changelog updated if user-visible.
diff --git a/prompts/billion-dollar-program/33-onboarding-activation.md b/prompts/billion-dollar-program/33-onboarding-activation.md
deleted file mode 100644
index c2b260ecf..000000000
--- a/prompts/billion-dollar-program/33-onboarding-activation.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 33 — Onboarding & activation funnel
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Activation — a new visitor reaching their first "aha" — is the single biggest lever
-on growth. Every dollar of acquisition is wasted if a first-timer can't make
-something real in the first minute. three.ws already has the pieces (welcome modal,
-"Getting started 0/3" checklist, a "What is three.ws" page, an 88-stop guided 3D
-tour), but they must compose into one coherent path with a clear, fast first win and
-honest measurement, or the funnel leaks at the top.
-
-## Mission
-
-Turn the first-run experience into a single, polished path that gets a brand-new
-visitor from "what is this?" to "I made a 3D thing" in about 60 seconds, with every
-step instrumented so activation is measurable.
-
-## Map (trust but verify — files move)
-
-- **Getting-started checklist + welcome modal** — [public/getting-started.js](../../public/getting-started.js)
- (the `STEPS` array: core `create → brain → embed`, optional `onchain → monetize`;
- renders the bottom-right "Getting started N/3" pill), [public/getting-started.css](../../public/getting-started.css).
-- **In-product feature discovery** — [public/feature-discovery.js](../../public/feature-discovery.js)
- ("Have you tried…", `tws:feature-done` "what's next" cards), [public/feature-discovery.css](../../public/feature-discovery.css).
-- **Intro / explainer pages** — [pages/what-is.html](../../pages/what-is.html) (`/what-is`),
- [pages/start.html](../../pages/start.html) (`/start`).
-- **Guided 3D tour** — [src/feature-tour/director.js](../../src/feature-tour/director.js),
- [src/feature-tour/curriculum.js](../../src/feature-tour/curriculum.js),
- [public/tour/curriculum.json](../../public/tour/curriculum.json) (built by
- `scripts/build-tour.mjs`); tour page is `/tour`.
-- **First "aha" surfaces** — [pages/forge.html](../../pages/forge.html) +
- [src/forge.js](../../src/forge.js) (free NVIDIA NIM text→3D), `/create` and
- [src/create-prompt.js](../../src/create-prompt.js) (text→avatar). The free lanes
- need no wallet.
-- **Analytics taxonomy** — [src/analytics.js](../../src/analytics.js)
- (`FUNNELS.activation`: `landing_viewed → wallet_connect_started →
- wallet_connect_succeeded → agent_created`), [src/acquisition-analytics.js](../../src/acquisition-analytics.js).
-
-## Do this
-
-1. **Walk the real funnel in a browser** (`npm run dev`): open `/` in a fresh
- incognito profile (clear `localStorage`), follow the welcome modal → `/create` →
- finish a free generation. Time it. Note every dead-end, dead click, or moment of
- confusion. The free core path must never demand a wallet.
-2. **Make the first win the default.** The fastest aha is the free NIM text→3D /
- text→avatar lane — ensure the welcome modal and `/start` route there first, with a
- one-line prompt suggestion so a blank composer never stalls a first-timer.
-3. **Unify the three entry points** so they tell one story: the welcome modal
- (`getting-started.js`), `/what-is`, and `/tour`. Cross-link them; remove
- contradictory copy; ensure the "Getting started N/3" pill resumes correctly across
- pages and reflects real milestones (verify the `done()` route matchers in `STEPS`
- still point at live routes via `vercel.json`).
-4. **Instrument activation honestly.** Confirm `AGENT_CREATED` / first-generation and
- each checklist `complete()` fire `track()` events through `src/analytics.js`
- (extend `FUNNELS.activation` or `ANALYTICS_EVENTS` if a step in the real path isn't
- covered — keep names in the existing taxonomy, never invent ad-hoc strings). No raw
- wallet addresses or PII as props (use `shortWallet()`).
-5. **Design every onboarding state:** welcome modal has focus trap + Escape + "Maybe
- later" (verify), the checklist has an empty/first-run state and a celebratory
- complete state, and `tws:feature-done` "what's next" cards point only at confirmed
- live routes.
-6. **Reduce time-to-value.** Cut any step that isn't required for the first win;
- defer wallet/on-chain prompts until after the user has made something. Lazy-load
- the heavy tour director so it never delays the homepage LCP.
-7. **Verify resume + opt-out.** `data-getting-started="off"`, "Hide this", and the
- immersive-route exclusions must all work; progress persists across reloads and
- pages; the tour rehydrates from `sessionStorage` mid-flow.
-8. **Run tests + changelog.** `npx vitest run` for any touched module and the tour
- build (`node scripts/build-tour.mjs` stays clean). Add a `data/changelog.json`
- entry for the user-visible onboarding improvement and run `npm run build:pages`.
-
-## Must-not
-
-- Do not gate the free core path behind a wallet, sign-up, or payment — the first aha
- must be free.
-- Do not ship a fake progress bar or `setTimeout` "loading"; generation progress comes
- from real API responses only.
-- Do not send PII (raw wallets, emails) to analytics; route through the taxonomy in
- `src/analytics.js` and truncate with `shortWallet()`.
-- Do not reference any coin other than `$THREE`; the optional "monetize" step settles
- in `$THREE` only.
-- Do not break the existing resume/opt-out behavior or double-mount the guide
- (`window.__twsGuide` idempotency).
-
-## Acceptance (all true before claiming done)
-
-- [ ] A fresh incognito visitor reaches a finished free 3D creation in ≤60s with no
- wallet and no console errors/warnings.
-- [ ] Welcome modal, `/what-is`, and `/tour` tell one consistent story and cross-link;
- every CTA target is a live route.
-- [ ] "Getting started N/3" pill resumes across pages, reflects real milestones, and
- has designed first-run + complete states.
-- [ ] Each activation step fires a taxonomy event via `src/analytics.js` with no PII;
- `FUNNELS.activation` reflects the real path.
-- [ ] Opt-out (`data-getting-started="off"`, "Hide this", immersive exclusions) and
- tour mid-flow rehydration all work.
-- [ ] Touched tests pass, `scripts/build-tour.mjs` is clean, and the changelog entry
- is added with `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/34-home-landing-conversion.md b/prompts/billion-dollar-program/34-home-landing-conversion.md
deleted file mode 100644
index 07a9524aa..000000000
--- a/prompts/billion-dollar-program/34-home-landing-conversion.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# 34 — Home / landing conversion
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The homepage is where ad spend, press, and word-of-mouth all land. A first-time
-visitor decides in about 5 seconds whether to stay. If the hero doesn't instantly
-communicate "give your AI a body" and offer an obvious, fast next action, the
-acquisition funnel dies before activation (prompt 33) even begins. A clear,
-fast-loading, mobile-first, socially-proven landing page is the cheapest growth lever
-the platform has.
-
-## Mission
-
-Make the home page make a cold visitor understand the product in 5 seconds and act:
-sharp hero, one above-the-fold primary CTA, a live demo they can touch, credible
-social proof, benefit-led copy, fast LCP, and flawless mobile.
-
-## Map (trust but verify — files move)
-
-- **Home page** — [pages/home.html](../../pages/home.html) (`/`). Hero h1 currently
- "The 3D agent layer of the internet." with bullets Create/Embed/Earn and the
- `.hero-cta-row` (`/create`, `/forge`, `#embed`, `/tour`). All inline `<style>` +
- `<script type="module">`.
-- **Live demo embeds** — [src/home-forge.js](../../src/home-forge.js) (mini Forge:
- real `/api/forge` text→3D in-page), [src/forge-showcase.js](../../src/forge-showcase.js)
- ("Fresh from the Forge" community feed), [src/home-live-token.js](../../src/home-live-token.js)
- (live $THREE price), [src/api-playground.js](../../src/api-playground.js) and the
- `<agent-3d>` web component embed (`agent-3d/latest/agent-3d.js`).
-- **Social proof / press strip** — the `.press-row` block in
- [pages/home.html](../../pages/home.html) (Anthropic, Coinbase, IBM, AWS, Google
- Cloud, Alibaba Cloud, Solana, CoinMarketCap, CoinGecko, HackerNoon) with SVGs in
- [public/featured-logos/](../../public/featured-logos).
-- **CTA + funnel instrumentation** — `data-cta` / `data-cta-loc` attributes on every
- CTA, consumed by [src/acquisition-analytics.js](../../src/acquisition-analytics.js)
- → [src/analytics.js](../../src/analytics.js) (`CTA_CLICKED`, `LANDING_VIEWED`).
-- **Performance budget** — Core Web Vitals work lives in
- `prompts/production-1b/11-*`; SEO/structured data in `prompts/production-1b/12-*`.
-
-## Do this
-
-1. **Open `/` cold on mobile and desktop** (`npm run dev`; emulate 320 / 768 / 1440).
- Read the hero as a stranger: in 5 seconds, is it obvious this turns your AI into an
- embeddable 3D avatar? Sharpen the h1/sub/bullets toward the plain promise ("give
- your AI a body" — make a 3D agent, embed it anywhere) without losing the existing
- voice or the i18n `data-i18n-*` hooks.
-2. **One unmistakable primary CTA above the fold.** The hero has four buttons; keep
- the primary "Build your agent" visually dominant and make the rest clearly
- secondary so the eye has one path. Verify each `href` resolves in `vercel.json` and
- carries `data-cta`/`data-cta-loc`.
-3. **Prove it with a live demo, not a screenshot.** Confirm the mini-Forge
- (`home-forge.js`) and the `<agent-3d>` embed actually run real generations / render
- live on load, with real elapsed time and designed loading/empty/error states (no
- `setTimeout` fakery). The showcase strip hides itself when empty — verify it never
- shows a hollow row.
-4. **Make social proof credible and honest.** Keep the press/partner strip truthful
- (only real, linkable mentions — the SVGs in `public/featured-logos/`); ensure logos
- are lazy, accessible (alt/label), and don't push down the hero. Do not invent or
- overstate any endorsement.
-5. **Fast LCP.** The hero text/CTA must be the LCP and must not wait on the 3D embed
- or model-viewer scripts — defer/lazy-load heavy modules (tour director, model
- viewer, showcase) below the fold. Preload the hero font/critical CSS only. Confirm
- no layout shift from late-loading logos or demos.
-6. **Mobile is first-class.** At 320px the hero, CTA, and one demo must be usable
- without horizontal scroll; the CTA stays reachable (sticky or repeated near the
- fold). Touch targets ≥44px; the press strip wraps, never overflows.
-7. **Wire the funnel.** Every CTA fires `CTA_CLICKED` with `cta`/`location`; the page
- fires `LANDING_VIEWED` once with referrer + UTM (already in
- `acquisition-analytics.js`) — verify it loads on `/` and no PII leaks.
-8. **Verify + changelog.** Lighthouse the page locally (LCP, CLS), run touched tests
- (`npx vitest run`), add a `data/changelog.json` entry for the conversion
- improvement, and run `npm run build:pages`.
-
-## Must-not
-
-- Do not invent press/partner logos or overstate endorsements — only real, linkable
- mentions; this is a trust surface, not a dark pattern.
-- Do not block LCP on the 3D embed, model-viewer, or any third-party script.
-- Do not ship a fake/looping demo or a `setTimeout` progress bar — the demo is the
- real pipeline or it is not shown.
-- Do not reference any coin other than `$THREE` (the live token widget is $THREE only).
-- Do not strip `data-i18n-*`, `data-cta`, or accessibility attributes from existing
- elements.
-
-## Acceptance (all true before claiming done)
-
-- [ ] A cold visitor understands "give your AI a body" in ≤5s; one dominant
- above-the-fold CTA; all CTA `href`s resolve.
-- [ ] The live demo runs the real pipeline on load with designed loading/empty/error
- states; the showcase never shows a hollow row.
-- [ ] Press/partner proof is truthful, accessible, lazy, and does not push the hero
- below the fold.
-- [ ] LCP is the hero (not the 3D embed); no CLS from late logos/demos; verified in
- Lighthouse locally.
-- [ ] Usable at 320 / 768 / 1440 with no horizontal scroll and ≥44px touch targets.
-- [ ] `LANDING_VIEWED` + every `CTA_CLICKED` fire with no PII; no console
- errors/warnings.
-- [ ] Touched tests pass; changelog entry added and `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/35-pricing-monetization.md b/prompts/billion-dollar-program/35-pricing-monetization.md
deleted file mode 100644
index b6b1d701b..000000000
--- a/prompts/billion-dollar-program/35-pricing-monetization.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# 35 — Pricing & monetization surfaces
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Revenue is the proof a platform is worth $1B. A visitor must understand what's free,
-what costs, and exactly what they get for the money — in seconds, with no surprise
-charges. three.ws monetizes two ways: a public pricing page (Free + paid generation)
-and per-call x402 micropayments priced from a single catalog. If costs are opaque,
-inconsistent across surfaces, or ever leak a vendor's billing internals, trust and
-conversion both collapse.
-
-## Mission
-
-Make pricing and monetization clear, consistent, and value-aligned everywhere: one
-source-of-truth catalog driving the pricing page, the x402 pay-per-call flow, and the
-`/pay` surface, with transparent costs, honest upgrade paths, and zero vendor billing
-exposure.
-
-## Map (trust but verify — files move)
-
-- **Pricing catalog (source of truth)** — [api/_lib/pricing/catalog.js](../../api/_lib/pricing/catalog.js)
- (`CATALOG`, `publicCatalog()`, `priceForAction()`, `catalogEntry()`; prices in USD,
- settled in `$THREE`; Forge tier prices READ from `forge-tiers.js`, not duplicated),
- [api/_lib/pricing/charge-three.js](../../api/_lib/pricing/charge-three.js),
- [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js) (free draft tier on NVIDIA NIM).
-- **Public pricing page** — [pages/pricing.html](../../pages/pricing.html) (`/pricing`),
- [public/pricing.css](../../public/pricing.css). Has a Free tier ("$0/forever, no
- credit card") + paid tiers in `#pricing-tiers`.
-- **x402 pay surfaces** — [public/pay/index.html](../../public/pay/index.html) (`/pay`),
- [public/pay/calls/index.html](../../public/pay/calls), [public/pay/c/index.html](../../public/pay/c),
- the buyer-side checkout endpoint [api/x402-checkout.js](../../api/x402-checkout.js)
- (the `/pay` modal POSTs `/x402-checkout?action=prepare|encode`),
- [public/x402-pay-core.js](../../public/x402-pay-core.js), [public/x402.js](../../public/x402.js).
-- **Paid endpoints (catalog consumers)** — [api/x402/](../../api/x402) (e.g.
- `forge.js`, `skill-call.js`, `service.js`, `mint-to-mesh.js`),
- [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js),
- [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js).
-- **Conversion instrumentation** — [src/analytics.js](../../src/analytics.js)
- (`token_*` and CTA events). Trading/PnL disclaimers live with the market surfaces.
-
-## Do this
-
-1. **Map every price to the catalog.** Confirm `pages/pricing.html` and every `/pay`
- surface read from `api/_lib/pricing/catalog.js` (or `publicCatalog()` over an
- endpoint) — no hardcoded dollar amounts duplicated in HTML/JS that can drift from
- the catalog. Where a number is hardcoded today, wire it to the catalog or document
- why it's a fixed marketing figure.
-2. **Walk the buyer flow in a browser** (`npm run dev`): `/pricing`, then a real
- per-call purchase via the `/pay` modal (`x402-checkout`). Confirm the quote is
- shown in USD with the `$THREE` settle amount, costs are explicit before signing,
- and the success/receipt state is clear (link to `my-receipts`).
-3. **Never expose vendor billing.** Audit every error path in the pay/x402 chain: a
- provider quota/credit/billing message, raw 402/429/5xx body, or vendor URL must be
- masked to neutral, actionable copy ("Payment couldn't complete — try again");
- server logs keep the detail. This is a hard `/CLAUDE.md` rule.
-4. **Value-metric alignment.** Make the unit of charge obvious and tied to value
- delivered (per generation / per call / per tier), not opaque "credits" with no
- anchor. If a credits model is shown, it must convert transparently to the same
- catalog prices.
-5. **Design every state on the pay surfaces:** loading (quote fetching), empty (no
- wallet connected → connect path), error (masked, retryable), and success
- (receipt). The free tier must be clearly the default with no card required.
-6. **Honest upgrade paths.** From the free Forge draft, the path to Standard/High (and
- from a free agent to monetizing it) must be discoverable and benefit-led, never a
- nag or a forced wall in front of the free aha. No dark patterns (no fake scarcity,
- no pre-checked add-ons, no hidden recurring charges).
-7. **Instrument conversion.** Fire the existing `token_*` / CTA taxonomy events
- through `src/analytics.js` on pricing views, buy intent, quote shown, and settle —
- no raw wallet/PII (use `shortWallet()`).
-8. **Test + changelog.** Run the pricing/x402 tests (`npx vitest run` over
- `tests/**/x402*`, `tests/**/pricing*`, `tests/**/forge-tiers*` as present), add a
- `data/changelog.json` entry for any user-visible pricing change, and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not surface any third party's billing page, credit balance, quota text, or raw
- error to a buyer — mask to neutral copy, log detail server-side.
-- Do not duplicate prices: the catalog (`api/_lib/pricing/catalog.js`) is the single
- source of truth; surfaces read from it.
-- Do not use dark patterns — no fake scarcity/countdowns, pre-checked upsells, hidden
- recurring charges, or a wall in front of the free aha.
-- Do not reference, price, or settle in any coin other than `$THREE` (USD is the quote
- unit; `$THREE` is the settle unit).
-- Do not show a trading/PnL/market figure without the required disclaimer.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/pricing` and every `/pay` surface read prices from the catalog; no drifting
- hardcoded amounts.
-- [ ] A real per-call purchase completes in-browser with USD quote + `$THREE` settle
- shown before signing and a clear receipt after.
-- [ ] Every pay/x402 failure mode yields neutral, actionable copy — no vendor billing
- internals — verified by tests.
-- [ ] Free tier is the obvious default (no card); upgrade paths are benefit-led with
- no dark patterns.
-- [ ] Loading/empty/error/success states designed on the pay surfaces; no console
- errors/warnings.
-- [ ] Conversion events fire through the taxonomy with no PII.
-- [ ] Pricing/x402 tests pass; changelog entry added and `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/36-growth-analytics.md b/prompts/billion-dollar-program/36-growth-analytics.md
deleted file mode 100644
index d676f2bf5..000000000
--- a/prompts/billion-dollar-program/36-growth-analytics.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# 36 — Growth analytics instrumentation
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-You cannot grow what you cannot measure. To scale acquisition, activation, and
-retention deliberately, every meaningful step in the funnel must emit a clean,
-consistently-named event — and never leak PII, or the platform becomes a privacy
-liability instead of a $1B business. three.ws already has the spine (PostHog +
-Vercel Web Analytics injected by Vite, a typed event taxonomy in `src/analytics.js`,
-a first-party error reporter). The job is to complete coverage across the full funnel
-without drift and without leaking.
-
-## Mission
-
-Complete privacy-respecting, consistently-taxonomied event instrumentation across the
-activation → conversion → retention funnels, with dashboards/funnels that line up and
-zero PII in any event.
-
-## Map (trust but verify — files move)
-
-- **Event taxonomy + facade (source of truth)** — [src/analytics.js](../../src/analytics.js)
- (`ANALYTICS_EVENTS`, `FUNNELS.activation`, `FUNNELS.three`, `track()`,
- `trackFunnelStep()`, `identifyUser()` / `resetIdentity()`, `trackError()`,
- `shortWallet()`). `track()` validates against the catalog and rejects unknown
- events — never bypass it.
-- **Acquisition instrumentation** — [src/acquisition-analytics.js](../../src/acquisition-analytics.js)
- (`LANDING_VIEWED` once + delegated `CTA_CLICKED` over `data-cta`/`data-cta-loc`).
-- **Existing call sites** — [src/wallet-auth.js](../../src/wallet-auth.js),
- [src/account.js](../../src/account.js), [src/create-agent.js](../../src/create-agent.js),
- [src/marketplace.js](../../src/marketplace.js), [src/three-token-page.js](../../src/three-token-page.js),
- [src/swap-jupiter.js](../../src/swap-jupiter.js), [src/agent-detail.js](../../src/agent-detail.js),
- [src/dashboard-next/shell.js](../../src/dashboard-next/shell.js).
-- **Provider injection (do not duplicate)** — the `posthog-analytics`,
- `vercel-analytics`, and `client-error-reporter` plugins in
- [vite.config.js](../../vite.config.js) (PostHog snippet, `person_profiles:
- 'identified_only'`, ingest proxied through `/ingest`).
-- **Server-side event/error sinks** — [public/error-reporter.js](../../public/error-reporter.js)
- → [api/client-errors.js](../../api/client-errors.js); per-surface analytics in
- [api/marketplace/analytics.js](../../api/marketplace/analytics.js),
- [api/walk/analytics.js](../../api/walk/analytics.js),
- [api/creators/skill-analytics.js](../../api/creators/skill-analytics.js).
-- **Privacy reference** — [public/legal/privacy.html](../../public/legal/privacy.html)
- ("no IPs, no fingerprints", "no third-party advertising cookies"). Instrumentation
- must stay true to this.
-
-## Do this
-
-1. **Inventory before adding.** Grep for `track(`, `trackFunnelStep(`, `data-cta`, and
- `ANALYTICS_EVENTS` to map what already fires. Do not reinvent the spine — extend
- `src/analytics.js`. List the funnel gaps (any real step with no event).
-2. **Complete the funnels by journey.** Ensure each stage emits a taxonomy event:
- acquisition (`landing_viewed`, `cta_clicked`), activation (`agent_created`,
- first-generation, checklist steps from prompt 33), conversion (the `token_*` and
- pay/x402 events from prompt 35), retention (return visits, key surfaces opened via
- `SURFACE_OPENED`, share actions). Add missing event names to `ANALYTICS_EVENTS` and
- wire them into `FUNNELS` so PostHog funnel insights line up automatically.
-3. **One taxonomy, no drift.** All events go through the validating `track()` /
- `trackFunnelStep()` facade — no raw `window.posthog.capture()` ad-hoc strings in
- feature code. Names are snake_case and live only in `ANALYTICS_EVENTS`.
-4. **PII audit — hard requirement.** No raw wallet addresses, emails, prompt text, or
- tokens as event props. Truncate wallets with `shortWallet()`; drop free-text
- prompts (send a length/category, not content). Verify `person_profiles:
- 'identified_only'` and that `identifyUser()` is called only after auth resolves
- with non-PII identifiers. Reconcile with `public/legal/privacy.html`.
-5. **Fail-safe by design.** Every analytics call must no-op when PostHog is absent or
- blocked (`window.__posthog_blocked`) — verify the app works identically with an ad
- blocker on, in an embed iframe, and offline. Analytics can never break the page.
-6. **Verify events fire in a browser** (`npm run dev`): with PostHog network calls
- visible, walk landing → create → a free generation → a pay flow and confirm each
- expected event fires once with correct, PII-free props. Confirm dedupe (e.g.
- `LANDING_VIEWED` fires exactly once).
-7. **Dashboards/funnels.** Document the canonical activation, conversion, and
- retention funnels (the `FUNNELS` map is the contract) so PostHog funnel/insight
- definitions match the code. Keep this in the existing analytics docs, not a new
- throwaway file.
-8. **Test + changelog.** Run touched tests (`npx vitest run`, including any
- `tests/**/analytics*`); add a `data/changelog.json` entry only if a user-visible
- surface changed (pure instrumentation is internal and usually skips the changelog —
- see `/CLAUDE.md`). Run `npm run build:pages` if you touched anything that feeds it.
-
-## Must-not
-
-- Do not send PII as event props — no raw wallets, emails, prompt/message text, or
- tokens. Truncate and categorize.
-- Do not bypass the `track()` facade with ad-hoc `posthog.capture()` calls or invent
- event names outside `ANALYTICS_EVENTS`.
-- Do not add a second analytics vendor, advertising pixel, or fingerprinting — stay
- within the existing PostHog + Vercel stack and the privacy policy.
-- Do not let an analytics failure (blocked/offline/embed) break or block the app.
-- Do not reference any coin other than `$THREE` in event names or props.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every funnel stage (acquisition → activation → conversion → retention) emits a
- taxonomy event through `track()` / `trackFunnelStep()`; gaps closed.
-- [ ] No ad-hoc event strings or raw `posthog.capture()` in feature code; all names in
- `ANALYTICS_EVENTS`.
-- [ ] PII audit passes — no raw wallets/emails/prompt text/tokens in any event;
- consistent with `public/legal/privacy.html`.
-- [ ] App behaves identically with PostHog blocked, in an embed iframe, and offline
- (no errors, no broken flows).
-- [ ] Each expected event verified firing once with PII-free props in a real browser
- session.
-- [ ] `FUNNELS` matches documented PostHog funnels; docs updated in place (no
- throwaway file).
-- [ ] Touched tests pass; changelog handled per `/CLAUDE.md` and `npm run build:pages`
- clean if it was touched.
diff --git a/prompts/billion-dollar-program/37-dx-docs-site.md b/prompts/billion-dollar-program/37-dx-docs-site.md
deleted file mode 100644
index f462c63e4..000000000
--- a/prompts/billion-dollar-program/37-dx-docs-site.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# 37 — Developer experience & docs site
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-three.ws is a developer platform: SDKs, MCP servers, web components, and a paid
-x402 API. Developers decide in the first five minutes whether to build on you, and
-that decision is made on the docs. A quickstart that doesn't copy-paste-run, a stale
-API reference, or `llms.txt` that contradicts the live endpoints loses every
-integration before it starts. World-class docs are the cheapest, highest-leverage
-acquisition channel a dev platform has.
-
-## Mission
-
-Make every doc accurate, every code example actually runnable, and the docs site
-itself searchable, versioned, and self-consistent with the real API surface and the
-machine-readable `llms.txt` / `llms-full.txt`.
-
-## Map (trust but verify — files move)
-
-- **Docs content** — [public/docs/](../../public/docs) (~40 `.md` files:
- `quick-start.md`, `api-reference.md`, `sdk.md`, `mcp.md`, `web-component.md`,
- `widget-api.md`, `embedding.md`, `authentication.md`, `examples.md`, …).
-- **Tutorials** — [public/docs/tutorials/](../../public/docs/tutorials)
- (`getting-started.md`, `first-agent.md`, `embed-on-website.md`,
- `register-onchain.md`, `custom-skill.md`, `personal-ai-site.md`).
-- **Walk docs (HTML)** — [public/docs/walk/](../../public/docs/walk)
- (`index.html`, `docs.js`, `getting-started.html`, `embed-sdk.html`, …).
-- **Docs home + routing** — [docs/index.html](../../docs/index.html), routes in
- [vercel.json](../../vercel.json) (`/docs`, `/docs/walk`, `/docs/widgets` →
- [public/docs-widgets.html](../../public/docs-widgets.html)).
-- **Machine-readable docs** — [public/llms.txt](../../public/llms.txt),
- [public/llms-full.txt](../../public/llms-full.txt) (regenerated from content;
- find the generator under [scripts/](../../scripts)).
-- **API truth source** — handlers in [api/](../../api); web-component reference in
- [src/element.js](../../src/element.js) (the `<agent-3d>` element).
-- **Embed snippet builders** — [src/share-panel-builders.js](../../src/share-panel-builders.js)
- (`buildIframeSnippet`, `buildWebComponentSnippet`) — docs snippets must match these.
-
-## Do this
-
-1. **Run every code example.** Open each doc and tutorial; copy each fenced code
- block and execute it (curl against the real API, `npm install` the SDK, mount the
- `<agent-3d>` element). Any block that errors, 404s, or references a renamed
- param/endpoint gets fixed against the live handler in `api/`.
-2. **Reconcile the API reference** (`public/docs/api-reference.md`) with the actual
- handlers: every documented route, method, query param, and response shape must
- exist; remove documented-but-deleted endpoints; add shipped-but-undocumented ones.
-3. **Fix the SDK / MCP quickstarts** (`sdk.md`, `mcp.md`, `quick-start.md`) so a cold
- developer goes from zero to a working call. Use the published package names and the
- free `forge_free` MCP lane for the zero-cost first call (no wallet/key required).
-4. **Web-component / embed docs** (`web-component.md`, `widget-api.md`,
- `embedding.md`) must produce the exact snippet `share-panel-builders.js` emits —
- same tag, attributes, and origin. Test the snippet in a blank HTML file.
-5. **Regenerate and validate `llms.txt` / `llms-full.txt`** with the existing
- generator script; confirm they list real, live page paths and the current API
- surface — no dangling routes.
-6. **Docs search + navigation**: ensure the docs home is searchable (verify
- `public/docs/walk/docs.js` search works; if the main `/docs` index lacks search,
- add a client-side filter over the doc list). Every doc must be reachable from the
- index — no orphans.
-7. **Versioning + freshness signal**: each doc shows a "last updated" / version marker
- sourced from real data (git date or front-matter), not a hardcoded string. Stale
- docs are worse than missing ones.
-8. Run `npm run build:pages`, `npm run audit:pages`, and `npm run seo:meta`. Add a
- `data/changelog.json` entry (tag `docs`) for the doc refresh; rebuild pages.
-
-## Must-not
-
-- Do not ship a code example you have not run — no aspirational snippets.
-- Do not document any endpoint, package, or coin that doesn't exist; the only coin is
- `$THREE`.
-- Do not break working docs routes in `vercel.json`; verify each redirect resolves.
-- Do not leave `llms.txt`/`llms-full.txt` contradicting the live docs after edits.
-- No mocks, stubs, TODOs, or "coming soon" placeholders in published docs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every fenced code block in `public/docs/**` and `public/docs/tutorials/**` runs
- against real APIs/SDKs with no errors.
-- [ ] `api-reference.md` matches the handlers in `api/` (no phantom or missing routes).
-- [ ] SDK + MCP quickstarts take a cold developer to a successful call; free lane works.
-- [ ] Embed/web-component docs emit the same snippet as `share-panel-builders.js`,
- verified in a blank page.
-- [ ] `llms.txt` and `llms-full.txt` regenerated and consistent with live docs/API.
-- [ ] Docs are searchable, every doc is reachable from the index, freshness markers
- are real (not hardcoded).
-- [ ] `npm run build:pages`, `audit:pages`, `seo:meta` clean; changelog entry added.
diff --git a/prompts/billion-dollar-program/38-referral-virality.md b/prompts/billion-dollar-program/38-referral-virality.md
deleted file mode 100644
index 7c2dabc56..000000000
--- a/prompts/billion-dollar-program/38-referral-virality.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 38 — Referral & virality loops
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Paid acquisition does not scale to a billion-dollar platform — loops do. Every
-creation a user makes is a potential ad: a share card that lands in a feed, an
-embedded `<agent-3d>` widget on someone else's site carrying a "made with three.ws"
-mark, a referral link that pulls in the next builder. The platform already has
-OG-image endpoints, embeddable web components, and a referral schema — this prompt
-turns those scattered parts into closed, measurable viral loops.
-
-## Mission
-
-Make sharing a creation one click, make every shared/embedded artifact carry
-attribution back to three.ws, and make the existing referral mechanics complete,
-rewarding, and instrumented end-to-end.
-
-## Map (trust but verify — files move)
-
-- **Share cards (@vercel/og)** — [api/forge-og.js](../../api/forge-og.js),
- [api/avatar-og.js](../../api/avatar-og.js), [api/agent-og.js](../../api/agent-og.js),
- [api/agent-detail-og.js](../../api/agent-detail-og.js), [api/play-og.js](../../api/play-og.js),
- [api/trader-og.js](../../api/trader-og.js), [api/walk-og.js](../../api/walk-og.js),
- [api/page-og.js](../../api/page-og.js), [api/u-og.js](../../api/u-og.js).
-- **Share UI** — [src/share-panel.js](../../src/share-panel.js),
- [src/share-panel-builders.js](../../src/share-panel-builders.js),
- [src/share-panel.css](../../src/share-panel.css),
- [src/pose-share.js](../../src/pose-share.js); server share endpoints
- [api/forge-share.js](../../api/forge-share.js), [api/agent-share.js](../../api/agent-share.js),
- [api/oracle-share.js](../../api/oracle-share.js).
-- **Embeddable web components** — `<agent-3d>` in [src/element.js](../../src/element.js),
- `<agent-stage>` in [src/stage-element.js](../../src/stage-element.js); embed loaders
- [public/embed.js](../../public/embed.js), [public/embed/v1.js](../../public/embed/v1.js).
-- **Referral mechanics** — [api/users/referrals.js](../../api/users/referrals.js),
- [api/users/referral-claim.js](../../api/users/referral-claim.js),
- [api/friends/index.js](../../api/friends/index.js), schema in
- [api/_lib/migrations/001_add_referrals.sql](../../api/_lib/migrations/001_add_referrals.sql).
-- **"Made with three.ws" attribution** — search current usage in
- [src/avatar-page.js](../../src/avatar-page.js), [public/studio/studio.js](../../public/studio/studio.js).
-
-## Do this
-
-1. **One-click share on every creation surface** (Forge result, avatar page, agent
- profile, pose, oracle, walk). Use the Web Share API where available, with a copy-link
- + X/Telegram/Farcaster fallback. Wire the existing `share-panel.js` everywhere a
- creation is finished; no surface should dead-end without a share affordance.
-2. **Verify every OG endpoint renders a real, branded card** for real entity IDs (not a
- 1px or fallback image): correct title, creator, thumbnail, consistent brand. Fix any
- `*-og.js` that throws or renders an empty card; add the `og:`/`twitter:` meta tags on
- the shareable pages so the card actually appears when pasted into a social platform.
-3. **Embed carries attribution.** Every `<agent-3d>` / `<agent-stage>` / iframe embed
- renders a subtle, non-intrusive "made with three.ws" mark that links back with a
- referral/UTM param. Confirm it survives the embed-strip build step and shows in a
- third-party iframe.
-4. **Close the referral loop.** Audit `referrals.js` + `referral-claim.js`: a user gets
- a unique link, a new user arriving via it is attributed, the referrer is credited,
- and the reward is real (not a no-op). Build the user-facing referral UI (link, copy
- button, status: invited / joined / rewarded) if it's missing.
-5. **Attribution params flow through.** Embed marks, share links, and referral links all
- set a consistent UTM/ref param; landing pages read it, persist it through signup, and
- credit the right referrer. No param dropped on redirect.
-6. **Instrument the loop** so growth analytics (see prompt 36) can measure it: emit
- events for share-initiated, share-completed, embed-impression, referral-click,
- referral-signup. Use the existing analytics plumbing, not a new one.
-7. **Design every state**: share success toast, copy-confirmed, share-unsupported
- fallback, referral empty state ("invite your first builder"), and rewarded state.
-8. Run the relevant tests (`npx vitest run` over share/og/referral specs), add a
- `data/changelog.json` entry (tag `feature`) for the new sharing/referral UX, and
- `npm run build:pages`.
-
-## Must-not
-
-- Do not generate share cards or referral copy that reference any coin other than
- `$THREE`.
-- Do not register a service worker from inside embeds, and do not strip the attribution
- mark — both must survive `scripts/strip-sw-from-embeds.mjs`.
-- Do not fake referral rewards or counts; credit only real, verified signups.
-- Do not break working OG routes; verify each renders before and after edits.
-- No `setTimeout` fake share progress; real async only.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every creation surface (forge, avatar, agent, pose, oracle, walk) has working
- one-click share with a copy-link fallback.
-- [ ] Every `*-og.js` renders a real branded card for real IDs; shareable pages carry
- `og:`/`twitter:` meta and preview correctly when pasted.
-- [ ] Embeds show a "made with three.ws" mark linking back with a ref/UTM param,
- surviving the embed-strip build.
-- [ ] Referral link → attributed signup → real reward works end-to-end with a
- user-facing referral UI (all states designed).
-- [ ] Loop events are instrumented through the existing analytics layer.
-- [ ] Tests pass; changelog updated; `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/39-trust-safety-moderation.md b/prompts/billion-dollar-program/39-trust-safety-moderation.md
deleted file mode 100644
index 061eb7851..000000000
--- a/prompts/billion-dollar-program/39-trust-safety-moderation.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# 39 — Trust, safety & moderation
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform where anyone can generate and upload 3D content, avatars, and text is one
-NSFW front-page screenshot away from losing app-store listings, payment processors,
-and press goodwill. Brands, the chains we integrate with, and the press logos in our
-footer all need to trust that three.ws is safe by default. Trust & safety is not a
-cost center at scale — it is the license to operate.
-
-## Mission
-
-Gate every generation and upload path through content moderation, give users real
-report/abuse flows, and back it all with rate-limited anti-spam — so unsafe content
-is caught before it ships and removable after.
-
-## Map (trust but verify — files move)
-
-- **Text moderation** — [api/_lib/moderation.js](../../api/_lib/moderation.js)
- (`moderateAnonInput`, `moderationEnabled`, `parseVerdict`, `refusalReply`).
-- **Image/vision moderation** — [api/_lib/vision.js](../../api/_lib/vision.js)
- (`describeImage`, `describeImageJson`, `visionConfigured`, `assertSafeImageUrl`).
-- **Current call sites** — moderation is already used in [api/chat.js](../../api/chat.js),
- [api/brain/chat.js](../../api/brain/chat.js), [api/pump/[action].js](../../api/pump/[action].js),
- [api/widgets/[id]/[action].js](../../api/widgets/[id]/[action].js),
- [api/sns-subdomain.js](../../api/sns-subdomain.js), [api/wk.js](../../api/wk.js);
- vision in [api/ibm/vision.js](../../api/ibm/vision.js). Generation entry:
- [api/forge.js](../../api/forge.js), avatar reconstruct in [api/avatars/](../../api/avatars).
-- **Rate limiting** — [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js).
-- **Alt-text / description helpers** — [api/_lib/avatar-alt-text.js](../../api/_lib/avatar-alt-text.js)
- (uses vision; a hook point for upload-time checks).
-
-## Do this
-
-1. **Map every user-generated input path**: text→3D prompts, text→avatar prompts,
- selfie/image uploads, image→3D, agent chat, page text, marketplace listings,
- usernames/SNS subdomains. For each, confirm whether moderation/vision is applied —
- build a coverage table.
-2. **Close the gaps on generation.** Every prompt-driven generation (forge, avatars)
- must run text through `moderateAnonInput` before spending compute; block disallowed
- prompts with `refusalReply()`-style neutral copy (no echo of the unsafe text).
-3. **Gate uploads.** Every selfie/image upload and image→3D path runs through
- `vision.js` NSFW/safety checks before reconstruction; reject unsafe images with a
- clear, non-judgmental message and no provider internals leaked.
-4. **Fail safe, not open.** When a moderation provider is unconfigured or errors,
- decide the policy explicitly per surface (block vs. allow-with-flag) — never silently
- skip the check on a public generation path. Use the existing cockatiel resilience
- helper for provider calls.
-5. **Report/abuse flow.** Add a "Report" affordance on user-facing content (avatars,
- agents, marketplace listings, embedded pages) that writes to a real moderation queue
- (a table + `api/` handler), captures reporter, target, and reason, and rate-limits
- submissions. No client-only fake report.
-6. **Takedown path.** Reported/flagged content must be hideable/removable: a real admin
- action that sets a moderation status which the public surfaces respect (hidden content
- 404s or shows a removed-content state).
-7. **Anti-spam.** Apply `rate-limit.js` to generation, upload, report, and any unauthenticated
- write path so a single client can't flood the platform. Tune limits per surface; return
- a proper 429 with a designed retry message.
-8. Run `npx vitest run` over moderation/vision/rate-limit specs (add cases for
- NSFW-blocked, unconfigured-provider, and over-limit). Note any policy-visible change in
- `data/changelog.json` (tag `security`) and `npm run build:pages`.
-
-## Must-not
-
-- Do not echo the unsafe user input back in any error, log line shown to the user, or
- share card.
-- Do not let a public generation/upload path run when moderation is unconfigured without
- an explicit, documented fail-safe decision.
-- Do not leak vendor/provider internals (billing, model names, raw verdicts) to end users.
-- Do not reference any coin other than `$THREE` in moderation copy, tests, or fixtures.
-- No mock moderation, no `// TODO: moderate later`, no stubbed report endpoint.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Coverage table shows every user-generated input path and its moderation status;
- no public generation/upload path is unprotected.
-- [ ] Prompt generation blocks unsafe text via moderation before spending compute, with
- neutral copy and no echo.
-- [ ] Image uploads / image→3D run NSFW/safety vision checks before reconstruction.
-- [ ] Unconfigured/erroring providers fail safe per an explicit per-surface policy.
-- [ ] Real report/abuse flow writes to a moderation queue and rate-limits; takedown
- hides flagged content on every public surface.
-- [ ] Generation, upload, report, and unauth writes are rate-limited with a designed 429.
-- [ ] Moderation/vision/rate-limit tests pass with new safety cases; changelog updated.
diff --git a/prompts/billion-dollar-program/40-legal-compliance-tos-privacy.md b/prompts/billion-dollar-program/40-legal-compliance-tos-privacy.md
deleted file mode 100644
index ade8fdae6..000000000
--- a/prompts/billion-dollar-program/40-legal-compliance-tos-privacy.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# 40 — Legal, compliance, ToS & privacy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform that handles wallets, on-chain trading, user uploads, and PII cannot scale
-without a defensible legal posture. Enterprise customers, app stores, payment rails,
-and the chains we integrate with all require accurate ToS, a real privacy policy with
-GDPR/CCPA data rights, financial disclaimers on trading surfaces, and correct
-open-source attribution for the vendored three.js and animation libraries. One missing
-disclaimer or one un-attributed MIT library is an avoidable legal and reputational risk.
-
-## Mission
-
-Make the legal pages accurate to what the platform actually does, wire real GDPR/CCPA
-data-rights and consent flows, place financial/custody disclaimers on every trading and
-wallet surface, and ensure every vendored library is correctly attributed.
-
-## Map (trust but verify — files move)
-
-- **Legal pages** — [public/legal/privacy.html](../../public/legal/privacy.html)
- (already has GDPR/Cookie/Retention sections), [public/legal/tos.html](../../public/legal/tos.html)
- (has a disclaimer + wallet section), [public/legal/eula.html](../../public/legal/eula.html),
- [public/legal/aws-marketplace-eula.html](../../public/legal/aws-marketplace-eula.html).
-- **Footer links** — [public/footer.html](../../public/footer.html) (`/legal/privacy`,
- `/legal/tos`), [public/footer.js](../../public/footer.js); routes in
- [vercel.json](../../vercel.json).
-- **Surface-specific legal** — [pages/extension-privacy.html](../../pages/extension-privacy.html),
- [pages/extension-terms.html](../../pages/extension-terms.html),
- [pages/irl-privacy.html](../../pages/irl-privacy.html),
- [extensions/walk-avatar/PRIVACY.md](../../extensions/walk-avatar/PRIVACY.md),
- [extensions/walk-avatar/TERMS.md](../../extensions/walk-avatar/TERMS.md).
-- **Wallet / trading surfaces (need disclaimers)** — [pages/pricing.html](../../pages/pricing.html),
- Oracle / trader / pump.fun surfaces (search `pages/` and `src/` for `agent-trade`,
- `oracle`, `trader`, `pumpfun`), x402 payment UI in
- [src/payment-modal.js](../../src/payment-modal.js).
-- **Vendored OSS to attribute** — [character-studio/LICENSE](../../character-studio/LICENSE)
- (Atlas Foundation, MIT), [public/scene-studio/LICENSE](../../public/scene-studio/LICENSE)
- (three.js authors, MIT), [public/animations/LICENSES.md](../../public/animations/LICENSES.md)
- (per-clip upstream + license), [public/environments/LICENSES.md](../../public/environments/LICENSES.md).
-- **Data-rights backend hook** — referral/user data in [api/users/](../../api/users),
- privacy-center task reference at
- [tasks/irl-hardening/H5-privacy-center-forget-me.md](../../tasks/irl-hardening/H5-privacy-center-forget-me.md).
-
-## Do this
-
-1. **Audit ToS + Privacy against reality.** Read `tos.html` and `privacy.html` line by
- line; verify every claim matches what the platform actually collects, stores, and
- does (uploads, wallet addresses, on-chain activity, analytics, cookies, third-party
- providers). Fix anything inaccurate; remove anything no longer true.
-2. **GDPR/CCPA data rights — make them real.** Confirm the privacy policy lists the data
- collected, retention periods, and lawful basis. Provide working "export my data" and
- "delete my account / forget me" flows (a real `api/` endpoint backed by the user/referral
- tables), not a "contact us" stub. Reference the H5 privacy-center task for scope.
-3. **Cookie / consent.** If analytics or any non-essential storage runs, add a consent
- mechanism (banner or settings) that actually gates those scripts; record consent and
- respect "reject." If everything is strictly necessary, document that explicitly so the
- policy is truthful.
-4. **Financial / trading disclaimers.** Every surface that shows prices, trading, the
- Oracle, pump.fun launches, or token data must carry a clear "not financial advice / no
- warranty / DYOR" disclaimer placed in-context (not buried). Wire it as a shared,
- reusable component so it's consistent everywhere.
-5. **Custody / wallet disclosures.** Wallet and x402 payment surfaces must disclose
- custody model, that on-chain transactions are irreversible, and fee/risk notes. Verify
- the disclosure appears in `payment-modal.js` and any agent-wallet UI.
-6. **Open-source attribution.** Cross-check vendored libraries: three.js (scene-studio),
- character-studio (Atlas Foundation), and every animation clip's upstream license. Ensure
- each is attributed in a reachable place (an `/legal/licenses` or open-source page linked
- from the footer), and that the per-clip `LICENSES.md` is complete for shipped clips.
-7. **$THREE-only sweep of legal copy.** Ensure no legal/disclaimer text names any token
- other than `$THREE`; trading disclaimers stay coin-agnostic about user-supplied mints.
-8. Add a `data/changelog.json` entry (tag `security` or `docs`) for the legal/privacy
- updates, run `npm run build:pages`, and confirm footer links resolve via `audit:pages`.
-
-## Must-not
-
-- Do not write legal claims you cannot verify against the actual implementation.
-- Do not ship a "delete my data" or "export" button that doesn't actually do it.
-- Do not omit attribution for any vendored MIT/OSS library or animation clip.
-- Do not reference any coin other than `$THREE` in legal, disclaimer, or consent copy.
-- Do not gate consent with a banner that doesn't actually block the non-essential scripts.
-
-## Acceptance (all true before claiming done)
-
-- [ ] ToS and Privacy accurately describe real data practices, providers, retention, and
- on-chain/wallet behavior.
-- [ ] Working data-export and account-deletion ("forget me") flows backed by real
- endpoints, linked from the privacy policy.
-- [ ] Cookie/consent mechanism gates non-essential scripts and records the choice (or the
- policy truthfully states all storage is strictly necessary).
-- [ ] Financial/DYOR disclaimers appear in-context on every trading/Oracle/pump/token
- surface via a shared component.
-- [ ] Custody/wallet/irreversibility disclosures present on wallet + x402 payment UIs.
-- [ ] Every vendored library (three.js, character-studio, animation clips) attributed on a
- footer-linked licenses page; per-clip `LICENSES.md` complete.
-- [ ] No non-`$THREE` coin referenced in any legal copy; footer legal links resolve;
- changelog updated and `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/41-i18n-completion.md b/prompts/billion-dollar-program/41-i18n-completion.md
deleted file mode 100644
index 4b93b0e2d..000000000
--- a/prompts/billion-dollar-program/41-i18n-completion.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# 41 — i18n completion
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A billion-dollar platform is global. Most of the world's builders and traders do not
-read English, and the markets where 3D + on-chain adoption grows fastest are not
-English-first. The i18n machinery already exists (extract → translate → lint, runtime
-locale swap, a `<lang-switcher>` element), but coverage is thin — only `en` and `es`
-catalogs ship, and hardcoded strings leak everywhere. Finishing i18n unlocks entire
-regions at near-zero marginal cost.
-
-## Mission
-
-Get full user-facing string extraction and translation coverage, working locale
-switching with RTL and locale-aware number/date/currency formatting, and zero hardcoded
-user-facing strings on the primary surfaces.
-
-## Map (trust but verify — files move)
-
-- **i18n config** — [.i18nrc.json](../../.i18nrc.json) (entry, entryLocale, output dir,
- outputLocales, localeNames), schema at
- [scripts/i18n-rc.schema.json](../../scripts/i18n-rc.schema.json).
-- **Pipeline scripts** — [scripts/i18n-extract.mjs](../../scripts/i18n-extract.mjs)
- (`npm run i18n:extract`), [scripts/i18n-translate.mjs](../../scripts/i18n-translate.mjs)
- (`npm run i18n:translate`, and `--lint` → `npm run i18n:lint`). Combined:
- `npm run i18n`.
-- **Locale catalogs** — [public/locales/](../../public/locales) (`en.json`, `es.json`,
- `manifest.json` — the `manifest.locales[]` list each with `code`, `name`, `dir`).
-- **Runtime i18n** — [src/i18n.js](../../src/i18n.js) (client-side locale swap, fetches
- `/locales/<code>.json`, sets `document.documentElement.dir`, dispatches `i18n:change`,
- defines `<lang-switcher>`).
-- **Surfaces to cover** — `pages/*.html` (~168) and `src/` modules; start with the
- conversion-critical ones (home, forge, pricing, marketplace, docs landing, wallet).
-
-## Do this
-
-1. **Run the pipeline and read the lint output.** `npm run i18n:extract` then
- `npm run i18n:lint` to see missing/extra keys per locale and the current coverage gap.
- This is your worklist.
-2. **Find hardcoded user-facing strings.** Grep the high-traffic `pages/*.html` and `src/`
- modules for literal English in markup/JS that isn't going through the i18n key system.
- Wrap them with the project's translation mechanism (match how `src/i18n.js` consumers
- already do it). Prioritize the conversion funnel surfaces first.
-3. **Expand target locales.** Add a sensible set of high-impact locales to
- `.i18nrc.json` `outputLocales` + `localeNames` and the `manifest.json` `locales[]`
- (include at least one RTL locale, e.g. `ar`, with `dir: "rtl"`). Run
- `npm run i18n:translate` to generate the catalogs against the real translation provider
- — no hand-faked translations, no machine-gibberish left unreviewed for key terms.
-4. **Locale switching works end-to-end.** Verify `<lang-switcher>` appears when ≥2 locales
- exist, swaps the catalog at runtime without a full reload, persists the choice, and
- updates `document.documentElement.dir`. Test on home + forge in a real browser.
-5. **RTL correctness.** With an RTL locale active, audit layout: logical CSS properties
- (`margin-inline`, `text-align: start`), mirrored icons/arrows where appropriate, and no
- broken flex/grid direction. Fix the worst offenders on the primary surfaces.
-6. **Locale-aware formatting.** Replace ad-hoc number/date/currency string-building with
- `Intl.NumberFormat` / `Intl.DateTimeFormat` keyed off the active locale (counts, prices,
- timestamps, $THREE amounts). No `toFixed`-then-concat money formatting.
-7. **Don't break the brand or the coin.** "three.ws" and "$THREE" stay verbatim across
- locales (mark them as non-translatable terms); never let a translation invent a coin.
-8. Run `npm run i18n:lint` (must pass), exercise locales in the browser, add a
- `data/changelog.json` entry (tag `improvement`) for the new languages, and
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hand-write or fake translations to pass the lint — generate them through the real
- `i18n:translate` provider.
-- Do not leave hardcoded user-facing English on the primary conversion surfaces.
-- Do not translate "three.ws", "$THREE", or the contract address; keep brand/coin verbatim.
-- Do not ship an RTL locale that visibly breaks layout on home/forge/pricing.
-- Do not introduce a second i18n system — extend the existing `src/i18n.js` + scripts.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run i18n:lint` passes with no missing/extra keys across all configured locales.
-- [ ] No hardcoded user-facing strings remain on the primary funnel surfaces (home, forge,
- pricing, marketplace, wallet, docs landing).
-- [ ] `outputLocales` expanded (incl. ≥1 RTL locale); catalogs generated via the real
- translate provider, not faked.
-- [ ] `<lang-switcher>` swaps locale at runtime, persists, and sets `dir`; verified in browser.
-- [ ] RTL layout is correct on the primary surfaces; no mirrored-layout breakage.
-- [ ] Numbers/dates/currency use `Intl` keyed to the active locale, including $THREE amounts.
-- [ ] Brand and coin stay verbatim across locales; changelog updated; `build:pages` clean.
diff --git a/prompts/billion-dollar-program/42-pwa-offline-notifications.md b/prompts/billion-dollar-program/42-pwa-offline-notifications.md
deleted file mode 100644
index 263526ee2..000000000
--- a/prompts/billion-dollar-program/42-pwa-offline-notifications.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 42 — PWA, offline & notifications
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Installable, offline-capable, re-engageable web apps retain users like native apps at
-a fraction of the cost — and three.ws is exactly the kind of "open it daily" product
-(your agent did something, a launch moved, a trade filled) that web push was built for.
-But a misconfigured service worker is a footgun: it can poison caches across the origin,
-break embeds in third-party iframes, or serve stale JS that makes the app look broken.
-This prompt makes the PWA correct, installable, gracefully offline, and able to bring
-users back — without any caching bugs.
-
-## Mission
-
-Verify service-worker correctness (including the embed-strip behavior), polish the
-install experience and manifest, ship a real offline fallback, and add web push for
-agent activity — with zero SW caching bugs.
-
-## Map (trust but verify — files move)
-
-- **PWA / SW config** — [vite.config.js](../../vite.config.js) (`VitePWA({ … })` ~line
- 1856: `registerType: 'autoUpdate'`, `workbox.globPatterns: ['**/*.{js,css,ico,woff2}']`
- — HTML deliberately excluded — `navigateFallback: null`,
- `maximumFileSizeToCacheInBytes: 5MB`).
-- **Embed SW strip** — [scripts/strip-sw-from-embeds.mjs](../../scripts/strip-sw-from-embeds.mjs)
- (post-build; removes the `vite-plugin-pwa:register-sw` `<script>` from embed-surface
- HTML — `widget.html`, `embed.html`, `agent-embed`, `a-embed`, `avatar-embed`). Vite
- also strips it via a `transformIndexHtml` hook (`vite.config.js` ~line 515).
-- **Web manifest** — [public/site.webmanifest](../../public/site.webmanifest) (name,
- icons `pwa-192`/`pwa-512` any+maskable, `display: standalone`, theme `#050505`).
-- **Offline fallback** — existing example at [public/cz/offline/index.html](../../public/cz/offline)
- (pattern to generalize for the main app).
-- **Embed surfaces** — [public/embed.js](../../public/embed.js),
- [public/embed/v1.js](../../public/embed/v1.js); the `<agent-3d>` element in
- [src/element.js](../../src/element.js).
-- **Agent-activity sources for push** — agent/wallet/launch events in [api/](../../api)
- (find the activity/feed handlers under `api/_lib/feed.js` and friends).
-
-## Do this
-
-1. **Verify SW correctness with a real build.** `npm run build`, serve `dist/`, and in
- DevTools → Application confirm the SW registers on the main app, `autoUpdate` activates
- the new SW, and there's no stale-asset trap (cached JS/CSS update on deploy). HTML must
- not be precached (it's intentionally excluded) — pages always come from network.
-2. **Confirm embeds never register a SW.** Inspect built embed HTML (`widget.html`,
- `embed.html`, `*-embed`) for the absence of the `vite-plugin-pwa:register-sw` script;
- load an embed inside a third-party iframe and confirm no SW is installed for the origin.
- This is a hard correctness/privacy requirement — keep the strip step working.
-3. **Install experience.** Validate `site.webmanifest` against Lighthouse PWA criteria:
- icons resolve (192/512, any + maskable), `start_url`, scope, `display`. Add a tasteful,
- dismissible "Install three.ws" prompt using the `beforeinstallprompt` event (no nag
- loop; respect dismissal). Test install on desktop Chrome and Android.
-4. **Real offline fallback.** Generalize the `public/cz/offline` pattern into an offline
- page for the main app: when navigation fails offline, show a branded offline screen with
- what's cached/available, not a browser error. Wire it correctly given `navigateFallback`
- is currently `null` — choose the right workbox strategy without breaking the network-first
- HTML rule.
-5. **Web push for agent activity.** Implement push end-to-end: VAPID keys from env, a
- real subscribe flow (permission prompt only on user intent, never on load), a
- `PushSubscription` persisted to a real table, and an `api/` send path that fires on real
- agent-activity events (e.g. agent acted, launch update, trade filled). No fake/test pushes
- shipped.
-6. **Notification UX + controls.** Notifications deep-link to the relevant surface, are
- throttled/de-duped, and the user can manage/disable them in settings. Respect denied
- permission gracefully.
-7. **Audit cache scope.** Confirm runtime caching (if any) is scoped so it can't serve a
- user another user's data, and that signed-in/API responses aren't cached as static.
-8. Run `npm run build`, the SW/embed checks above, relevant tests, add a
- `data/changelog.json` entry (tag `feature`/`improvement`) for install + notifications,
- and `npm run build:pages`.
-
-## Must-not
-
-- Do not register a service worker from any embed surface — the strip step must keep working.
-- Do not precache HTML or cache authenticated/API responses as static assets.
-- Do not request notification permission on page load — only on explicit user intent.
-- Do not ship fake/test push notifications or a stubbed subscribe endpoint.
-- Do not reference any coin other than `$THREE` in notification or offline copy.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Built SW registers + auto-updates on the main app with no stale-asset trap; HTML
- stays network-first.
-- [ ] Embed surfaces register no SW; verified inside a third-party iframe; strip step intact.
-- [ ] Manifest passes Lighthouse PWA install criteria; dismissible install prompt works on
- desktop + Android without nagging.
-- [ ] Offline navigation shows a branded offline fallback, not a browser error.
-- [ ] Web push works end-to-end (VAPID, user-intent subscribe, persisted subscription, real
- agent-activity trigger); notifications deep-link and are manageable.
-- [ ] No cross-user or stale API data served from cache.
-- [ ] `npm run build` clean; tests pass; changelog updated; `npm run build:pages` clean.
diff --git a/prompts/billion-dollar-program/43-brand-press-social-proof.md b/prompts/billion-dollar-program/43-brand-press-social-proof.md
deleted file mode 100644
index f7948880e..000000000
--- a/prompts/billion-dollar-program/43-brand-press-social-proof.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# 43 — Brand, press & social proof
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Trust is the conversion multiplier. A first-time visitor decides in seconds whether
-three.ws is a serious company or a side project — and the signals that decide it are
-brand consistency, real press coverage, and visible social proof. three.ws has genuine
-coverage (Business Insider, IBM partnership, Yahoo Finance, Crunchbase, Vogue, KuCoin
-listing) and partner logos already in the repo, but they're scattered in the footer and
-a `/news` feed instead of working as a coherent credibility story. Surfacing them well
-turns existing assets into acquisition leverage.
-
-## Mission
-
-Lock brand consistency across the platform (logo, OG images, voice), build a real press
-page that surfaces the existing coverage, and weave testimonials/case studies and trust
-signals into the high-intent surfaces.
-
-## Map (trust but verify — files move)
-
-- **Brand mark** — [public/brand.js](../../public/brand.js) (universal top-left brand
- chip; opt-out via `data-no-brand-mark`), logos in [public/](../../public)
- (`logo.png`, `favicon.svg`, `favicon.ico`, `pwa-192x192.png`, `pwa-512x512.png`).
-- **Partner / featured logos** — [public/featured-logos/](../../public/featured-logos)
- (`anthropic.svg`, `coinbase.svg`, `solana.svg`, `googlecloud.svg`,
- `alibabacloud.svg`, `coinmarketcap.svg`, `hackernoon.svg`), plus
- [public/ibm-partner-logo.png](../../public/ibm-partner-logo.png).
-- **Existing press links** — [public/footer.html](../../public/footer.html) (Business
- Insider, IBM community, Yahoo Finance, Crunchbase, Vogue, KuCoin, TradingView),
- echoed in [public/features.json](../../public/features.json).
-- **News / announcements** — [public/news/](../../public/news) (~107 items),
- [public/news/index.html](../../public/news/index.html) ("News & Announcements"),
- build via `npm run build:news`; [public/launch-week.html](../../public/launch-week.html).
-- **Default OG image** — [public/og-image.png](../../public/og-image.png),
- [public/ibm-og.png](../../public/ibm-og.png); per-surface OG endpoints `api/*-og.js`
- (see prompt 38).
-- **Voice / brand copy** — [public/llms.txt](../../public/llms.txt) and home copy in
- [pages/home.html](../../pages/home.html) (the canonical brand description).
-
-## Do this
-
-1. **Brand consistency audit.** Walk the main pages and confirm `brand.js` (or a native
- header) puts the same logo, same wordmark casing ("three.ws"), and same theme color
- on every standalone surface. Fix any page with a stray/old logo treatment or missing
- mark. Confirm favicon + PWA icons are consistent.
-2. **OG image consistency.** Verify every shareable page has an `og:image` (default
- `og-image.png` or its per-surface `*-og.js` card) with consistent brand framing —
- same logo placement, type, and color. No page should fall back to a broken or
- off-brand preview when pasted into a social platform.
-3. **Build a real press page.** Create `/press` (a static page under `public/`, routed in
- `vercel.json` like `/news`) that surfaces the existing coverage as a credible
- "as seen in" wall: outlet logos linking to the real articles already in the footer,
- plus the IBM partnership and the news feed. Pull from real data
- (`public/features.json` / footer links / `public/news/`) — no invented quotes or
- fabricated outlets.
-4. **"As seen in" trust strip on high-intent surfaces.** Add a tasteful logo strip
- (using `public/featured-logos/` + real press outlets) to the home page and pricing
- page, linking through to the press page. Real partners/coverage only.
-5. **Testimonials / case studies.** Surface real social proof — genuine user creations,
- real quotes, or verifiable usage stats from platform data (e.g. agents created,
- launches, embeds). Build a testimonials/case-study section sourced from real records;
- do not write fake testimonials or attribute quotes to people who didn't say them.
-6. **Trust signals throughout.** Place credibility cues where decisions happen: security
- note near wallet/payment, "open source / MIT" near SDKs/docs, partner logos near the
- integration story, real counts near the marketplace. Each must link to something real.
-7. **Voice consistency.** Align headline/CTA copy with the canonical brand description
- ("The 3D agent layer of the internet …" from the manifest/`llms.txt`). Remove
- off-brand or contradictory taglines.
-8. Verify all new images via `npm run check:images`, run `npm run audit:pages` and
- `npm run seo:meta`, add a `data/changelog.json` entry (tag `feature`) for the press
- page + trust strip, and `npm run build:pages`.
-
-## Must-not
-
-- Do not fabricate press coverage, partner relationships, testimonials, or stats — only
- surface what's real and verifiable from the repo/platform data.
-- Do not reference any coin other than `$THREE` in brand, press, or social-proof copy.
-- Do not break the `brand.js` chromeless opt-out for embeds/iframes.
-- Do not ship off-brand or broken OG images; every shareable page previews correctly.
-- No placeholder logos, "logo here" boxes, or lorem-ipsum testimonials.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Logo, wordmark casing, theme color, favicon, and PWA icons are consistent across all
- main standalone pages.
-- [ ] Every shareable page has a consistent, on-brand `og:image` that previews correctly.
-- [ ] A real `/press` page surfaces the existing coverage (real outlets → real articles)
- and is routed + linked from the footer/nav.
-- [ ] An "as seen in" trust strip appears on home + pricing using real partner/press
- logos, linking to the press page.
-- [ ] Testimonials/case-study section sourced from real data — no fabricated quotes/stats.
-- [ ] Trust signals (security, OSS, partners, real counts) placed at decision points, each
- linking to something real.
-- [ ] `check:images`, `audit:pages`, `seo:meta` clean; changelog updated; `build:pages` clean.
diff --git a/prompts/billion-dollar-program/44-launch-readiness-review.md b/prompts/billion-dollar-program/44-launch-readiness-review.md
deleted file mode 100644
index ba5905461..000000000
--- a/prompts/billion-dollar-program/44-launch-readiness-review.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 44 — Launch-readiness review (final gate)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/billion-dollar-program/00-README.md`
-> for shared context. **This is the last prompt in the program — the go/no-go gate.**
-
-## Why this matters for $1B
-
-Everything in prompts `01`–`43` is only real if it survives a single, ruthless,
-end-to-end review. A platform aiming at $1B cannot launch on vibes: it launches when
-every audit is green, the full test suite passes, security review is clean, and the
-`/CLAUDE.md` Definition of Done is verifiably true across every surface. This gate exists
-to catch the one red that would otherwise become the incident, the chargeback, or the
-front-page screenshot. Its job is to **block launch** — not to bless it by default.
-
-## Mission
-
-Run every audit, the full test suite, and a security review across the whole platform;
-verify the Definition of Done on every surface; produce a single scorecard; and return a
-go/no-go that is **no-go on any red**.
-
-## Map (trust but verify — files move)
-
-- **The coverage map** — prompts [01](../../prompts/production-1b) through
- [43](../../prompts/production-1b) in [prompts/production-1b/](../../prompts/production-1b).
- Each prompt's **Acceptance** section is a checklist this gate re-verifies at a spot-check
- level; treat them as the requirements traceability matrix.
-- **Audit scripts** (in [package.json](../../package.json)) — `audit:deploy`,
- `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`, `check:images`, `seo:meta`,
- `check:dist`, `check-api-not-bundled` (in [scripts/](../../scripts)).
-- **Verify / smoke** — `verify`, `verify:solana`, `verify:onchain`, `verify:ibm`,
- `verify:zauth`, `smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`, `snapshot`.
-- **Tests** — `npm test` (`vitest run && playwright test`), `test:all`, `test:gate`,
- `lint`, `typecheck`; CI at [.github/workflows/ci.yml](../../.github/workflows/ci.yml)
- (jobs: lint, test, guards, typecheck).
-- **Definition of Done + operating rules** — [/CLAUDE.md](../../CLAUDE.md).
-- **Changelog integrity** — [data/changelog.json](../../data/changelog.json) →
- `npm run build:pages` → [public/changelog.json](../../public/changelog.json),
- [public/changelog.xml](../../public/changelog.xml), [CHANGELOG.md](../../CHANGELOG.md).
-
-## Do this
-
-1. **Run the full audit battery and capture results.** Execute and record pass/fail +
- key output for each: `npm run lint`, `npm run typecheck`, `npm test`, `npm run audit:deploy`,
- `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`, `check:images`, `seo:meta`,
- `check:dist`. Do not summarize away failures — every red is a launch blocker until fixed
- or explicitly waived with a stated reason and owner.
-2. **Run the on-chain / integration verifiers.** `npm run verify`, `verify:solana`,
- `verify:onchain`, `smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`. These touch real
- chains/services — record real results, never assume green.
-3. **Run a security review** (`/security-review`) over the platform's exposed surface:
- authz, input validation, SSRF, secrets/env hygiene, rate limiting, moderation gates,
- and payment/wallet flows. Cross-check against prompts `05`, `07`, `08`, `31`, `39`.
- Any high/critical finding is an automatic no-go.
-4. **Build a clean production artifact.** `npm run build`; then `check:dist` and verify no
- `api/*.js` source got bundle-overwritten (`head -1` for `__defProp`/`createRequire`, per
- `/CLAUDE.md`). A poisoned `api/` diff is a no-go.
-5. **Verify the Definition of Done across surfaces.** For each top product surface (Forge,
- Marketplace, Agent Studio, Wallet/x402, Walk/Page-Agent, Scene/Animation Studio,
- Character Studio, Pump/Oracle/$THREE, MCP, SDK, Worlds): spot-check the `/CLAUDE.md` DoD
- — reachable, no console errors, real API calls, every state designed, hover/focus,
- empty/error states, mobile. Note any surface that fails.
-6. **Spot-check the Phase 4 growth & compliance prompts (33–43)** specifically: onboarding
- funnel, conversion, pricing, analytics, docs accuracy, virality/attribution, moderation
- gates, legal/privacy + disclaimers, i18n lint, PWA/SW + embed-strip, brand/press. Each
- must meet its own Acceptance; record gaps.
-7. **$THREE-only sweep.** Grep the repo (source, copy, fixtures, docs, OG, tests, commit
- messages staged) for any non-`$THREE` coin reference; the contract address must be
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump` where present. Any other coin is an
- automatic no-go and must be removed.
-8. **Changelog + freshness.** Confirm every user-visible change from this program has a
- `data/changelog.json` entry; run `npm run build:pages` and confirm it validates and
- regenerates `CHANGELOG.md` + public changelog feeds cleanly.
-9. **Produce the scorecard and verdict.** Emit a single scorecard: one row per area
- (Phase 0–4 + each audit + security + DoD), each marked GREEN / YELLOW / RED with a
- one-line reason and, for non-green, the blocking item and owner. End with an explicit
- **GO** or **NO-GO**. NO-GO if *any* row is RED.
-
-## Must-not
-
-- Do not declare GO with any RED row, any failing audit/test, or any
- high/critical security finding — no exceptions, no "we'll fix it after launch."
-- Do not skip a flaky or slow audit/test — re-run it; investigate the cause; record the
- real result. A skipped check is treated as RED.
-- Do not mask or summarize away a failure to make the scorecard look green.
-- Do not run `npm run changelog:push` as part of the gate (that's post-deploy).
-- Do not introduce new features here — this is verification only; fix blockers, don't gold-plate.
-- Do not reference any coin other than `$THREE`; flag any that exists as a blocker.
-
-## Acceptance (all true before claiming done — i.e., before a GO)
-
-- [ ] `lint`, `typecheck`, `npm test` (vitest + playwright), and all `audit:*` +
- `check:images` + `seo:meta` + `check:dist` pass; results recorded.
-- [ ] All `verify*` and `smoke:*` integration/on-chain checks pass with recorded real output.
-- [ ] `/security-review` complete with zero high/critical findings open.
-- [ ] Clean production build; no bundle-overwritten `api/*.js`.
-- [ ] `/CLAUDE.md` Definition of Done spot-verified on every top product surface.
-- [ ] Phase 4 prompts (33–43) each meet their Acceptance; gaps recorded and resolved.
-- [ ] $THREE-only sweep clean (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); no other coin.
-- [ ] Changelog complete and `npm run build:pages` validates/regenerates cleanly.
-- [ ] A scorecard exists (one row per area, GREEN/YELLOW/RED + reason/owner) with an
- explicit **GO / NO-GO** verdict; verdict is **GO only if every row is GREEN**.
diff --git a/prompts/feature-innovation/01_01_onboarding-wizard.md b/prompts/feature-innovation/01_01_onboarding-wizard.md
deleted file mode 100644
index 5fa3ba966..000000000
--- a/prompts/feature-innovation/01_01_onboarding-wizard.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Onboarding Wizard (`/start`)
-
-> **Task file:** `prompts/feature-innovation/01_01_onboarding-wizard.md`
-> **Surface:** `/start` (and the `?template=<id>`, `?wizard=1&next=` round-trip variants)
-> **Primary source:** `pages/start.html` + `src/start.js` (imports `src/shared/usd-price.js`, `src/templates.js`, `src/shared/log.js`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-A first-time visitor lands on `/start` with one question: "can I really make a living, talking 3D agent in the next two minutes?" This wizard is the single most important conversion surface on three.ws — it is where a curious stranger becomes an owner of a deployed agent, a public `/agent/<id>` URL, and an embeddable widget. The mission is to make that first run feel like *magic that happened faster than they expected*, and to make the result feel like *theirs* — personalized from the first keystroke, not a template they filled in.
-
-"Gamechanging" here means: the user never feels like they are configuring software. They describe what they want once, and the wizard assembles a believable, branded, monetizable agent in front of their eyes — body, voice, brain, skills, and live URL — with every choice pre-reasoned and reversible. Time-to-first-live-agent should be the number we are proud to put on the landing page.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best first-run experiences in the world (Linear's onboarding, Vercel's deploy flow, Stripe's account setup, Figma's "create a file" moment, Cursor's first-project). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/start` (vercel route → `start.html`). Accepts `?template=<id>` deep-links and `?wizard=1&next=` round-trips back from `/create` and `/create/selfie`. Resumes via `sessionStorage` key `wz:state`.
-- **Source:** `pages/start.html`, `src/start.js`. `TOTAL_STEPS = 5`; `PRESETS` (8 personality bios), `BASE_SKILLS`, `SKILL_MAP`, `CRYPTO_SKILLS`, `TEMPLATES` from `src/templates.js`.
-- **Current flow:** 6 required + ~5 optional steps — template gallery → (template or blank) → Step 1 Avatar (selfie/editor/upload/skip) → Step 2 Name & Brain (+ presets, model, crypto toggle) → Step 3 Skills → Step 4 Deploy (auto: `POST /api/agents`, `POST /api/widgets`, embed snippet) → Step 5 Earn (price + payout wallet) or Skip → `/dashboard?welcome=1`.
-- **What works today:** Real deploy path (agent + widget + embed + live URL), session resume, template prefill, crypto-mode branching, deploy-failure retry button, USD-equivalent price hints via `usd-price.js`.
-- **Real APIs / dependencies already wired:** `GET /api/csrf-token`; `POST /api/avatars` (upload); `POST /api/agents`; `POST /api/widgets`; `POST /api/agents/:id/skills/set-price` (USDC mint); `POST /api/billing/payout-wallets`. No on-chain txn from this page.
-- **Where it's mediocre, thin, or unfinished:** Auth is hit *lazily* — an anonymous user only discovers they need an account when Step 4 deploy throws a server error toast (brutal). Templates are static prefills, not personalized. The avatar step ejects the user to another route and prays they come back via `?next=`. There is no preview of the actual agent until after deploy. Presets just stuff a canned bio string — no reasoning, no model selection logic, no skill suggestions. No celebration, no share moment, no "what now" guidance beyond a dashboard redirect.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One-sentence agent genesis.** Replace the gallery-first flow with a single intent box: "Describe the agent you want." Parse it (via the worker LLM proxy) into a *proposed build* — name, bio, suggested model, recommended skills, a starter avatar match, and a crypto-mode guess — rendered as an editable, reasoned card ("I picked web-search and memory because you said 'researches the news'"). Every field stays editable; the wizard becomes "confirm & tweak," not "fill in 5 screens."
-- **Live agent preview that exists before deploy.** Show a real 3D `model-viewer` of the chosen body greeting the user *with their actual chosen voice and greeting line* during Steps 2–3 — synthesized from the live agent draft, not a mock. The user watches their agent come alive as they type.
-- **Auth without an interruption.** Detect the anonymous user up front and let them build the entire draft locally, then surface a single inline "claim this agent" auth moment (passkey/wallet) *at the deploy boundary* with the agent already visible — never a surprise error toast at Step 4. Resume the exact draft post-auth.
-- **A genuine launch moment.** On deploy success, fire a real, shareable celebration: an auto-generated OG card (agent portrait + name + live URL), a one-tap "share to X / copy link," confetti tied to the real `/agent/<id>`, and a "your agent's first words" autoplay. Make people *want* to post it.
-- **Cross-feature wiring:** the parsed intent should seed the avatar route too — when the user picks "Selfie" or "Editor," pass the style/personality hints forward (`?wizard=1&next=...&style=...`) so `/create/selfie` and `/create/prompt` start pre-aimed; and if crypto-mode is on, pre-stage the `$THREE`-aware earn defaults and deep-link the success panel into the agent's wallet (`/agent/<id>/wallet#deposit`) and the marketplace publish flow.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_01_onboarding-wizard.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_02_avatar-creation-hub.md b/prompts/feature-innovation/01_02_avatar-creation-hub.md
deleted file mode 100644
index 03d681f58..000000000
--- a/prompts/feature-innovation/01_02_avatar-creation-hub.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Avatar Creation Hub (`/create`)
-
-> **Task file:** `prompts/feature-innovation/01_02_avatar-creation-hub.md`
-> **Surface:** `/create` (incl. `?fork=<avatarId>` remix and `?wizard=1&next=` round-trip)
-> **Primary source:** `pages/create.html` + `src/create.js` (imports `src/account.js`, `src/avatar-creator.js`, `src/guest-avatar.js`, `src/shared/template-picker.js`, `src/shared/crypto-optional.js`, `src/wallet-auth.js`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-`/create` is the fork in the road: the moment a user has to decide *how* to give their agent a body. Today it's a grid of seven cards (editor, customize, studio, selfie, prompt, video, upload) that asks the user to already know which path fits them. That's backwards — most people don't know the difference between "default editor" and "agent studio," and they certainly can't predict which method will give the best result for what they want. The mission is to reinvent this decision so the user expresses *intent* and the hub *routes them to the right method* — or better, lets them stay and produce a body without leaving.
-
-"Gamechanging" here means: nobody bounces off `/create` confused. The page understands what the user has (a selfie? a vibe? a GLB file already?) and what they want (realistic me? a stylized character? a creature?), and either does it inline or hands off to the perfect specialized flow with context pre-loaded. It should feel like a concierge, not a menu.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best "choose your starting point" experiences (Figma's new-file picker, Notion's template gallery, Midjourney's create surface, Apple Memoji setup, Ready Player Me's avatar entry). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/create` (vercel route → `create.html`). Handles `?fork=<avatarId>` (remix) and arrives from `/start` Step 1 "Editor" with `?wizard=1&next=`.
-- **Source:** `pages/create.html`, `src/create.js`. Uses `AvatarCreator` (`src/avatar-creator.js`), `guest-avatar.js` (IndexedDB staging), `account.js`.
-- **Current flow:** 2 required + ~4 optional. `boot()` probes `GET /api/config` (`videoAvatar` flag), and for signed-in users with avatars loads `GET /api/avatars` for a remix strip. User picks one of 7 method cards; anonymous users stage to IndexedDB → `/create-review`; signed-in users save/fork directly.
-- **What works today:** Seven real creation methods; `?fork=` deep-link (`POST /api/avatars/fork`, with a guest-fork fallback that downloads the source GLB and stages a copy); GLB upload with magic-byte validation; feature-flag gating of the video card; avatar-quota check (`GET /api/usage/summary`); remix strip for returning users.
-- **Real APIs / dependencies already wired:** `GET /api/config`; `GET /api/avatars`; `GET /api/usage/summary`; `POST /api/avatars/fork`; `GET /api/avatars/:id` + raw GLB fetch (guest fork). Avaturn / Ready Player Me iframes via `AvatarCreator`.
-- **Where it's mediocre, thin, or unfinished:** It's a static decision grid — no guidance on which method to pick, no previews of what each produces. Selfie and Prompt are auth-gated with a hard redirect to `/login` (the user loses momentum and context). The remix strip is a thin thumbnail row with no provenance or "what's popular." No sense of what other people made. The video card just greys out when flagged off instead of teasing/waitlisting. There's no inline result — everything either stages-and-bounces or ejects to a sub-route.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Intent-first router, not a method grid.** Lead with two questions answered by tapping: "What's your starting material?" (a photo / just an idea / a file I have / nothing yet) and "What should it look like?" (realistic me / stylized character / creature / brand mascot). The hub then highlights *the one recommended method*, dims the rest (still reachable), and pre-seeds the destination route's query params so the next screen starts aimed.
-- **Live method previews.** Each method card shows a real, rotating `model-viewer` example of what that pipeline actually produces (selfie → realistic head, prompt → stylized character, etc.) instead of an icon — so the choice is made on outcomes, not jargon.
-- **Inline quick-create for the lightweight paths.** For "Upload GLB" and "Customize," let the user complete the whole thing on `/create` (drop file → see it rigged in a viewer → name → save) without the `/create-review` bounce. Reserve route hops for the genuinely heavy pipelines.
-- **Soft auth, not a redirect wall.** For the selfie/prompt cards, don't hard-redirect anonymous users to `/login`. Capture intent, let them start (or pick the photo), then present an inline claim/auth step the moment server work is actually needed — preserving the chosen method and any staged input.
-- **A "remix what's trending" rail.** Upgrade the thin remix strip into a real discovery rail of forkable public avatars (with creator attribution and fork counts) pulled from real avatar data — one tap forks into an owned copy. This turns `/create` into a creation *and* discovery surface.
-- **Cross-feature wiring:** carry the chosen visual style and any `?wizard=1&next=` context all the way through to `/create/selfie`, `/create/prompt`, and `/create/studio`; and on completion, deep-link forward to `/agent/new?avatar_id=...` so "made a body" flows seamlessly into "give it a brain" — closing the loop the onboarding wizard opened.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_02_avatar-creation-hub.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_03_selfie-to-avatar.md b/prompts/feature-innovation/01_03_selfie-to-avatar.md
deleted file mode 100644
index d9abccd65..000000000
--- a/prompts/feature-innovation/01_03_selfie-to-avatar.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Selfie → Avatar (`/create/selfie`)
-
-> **Task file:** `prompts/feature-innovation/01_03_selfie-to-avatar.md`
-> **Surface:** `/create/selfie` (create-selfie); `/scan` and `/features/scan` redirect/link here
-> **Primary source:** `pages/create-selfie.html` (inline `<script type="module">`) + `src/selfie-capture.js` + `src/selfie-pipeline.js` (imports `src/avatar-face-capture.js`, `src/shared/log.js`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-This is the most viscerally magical thing three.ws can do: a user points their camera at their face and, a minute later, a rigged 3D version of *themselves* is greeting them and ready to become a living agent. The marketing promise is literally "Your face in 3D. In 60 seconds." The mission is to make that promise true — accurate enough that people recognize themselves and gasp, fun enough that they want to try three more photos, and fast enough that the wait feels like anticipation, not abandonment.
-
-"Gamechanging" here means: the resemblance is good enough to be uncanny, the capture coaches the user to a great photo so the result *can't* be bad, and the wait is an experience rather than a progress bar. The moment the avatar appears should be the screenshot people post.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best face-capture and avatar pipelines (Apple Memoji/Persona, Epic MetaHuman, Ready Player Me selfie, In3D, Bellus3D). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/create/selfie` (vercel route → `create-selfie.html`). `/scan` does an unconditional `location.replace('/create/selfie' + search)`; `/features/scan` is a static landing page whose CTA bounces here.
-- **Source:** `pages/create-selfie.html` (inline module boot), `src/selfie-capture.js` (camera + face-oval overlay), `src/selfie-pipeline.js` (downscale, MediaPipe face check, submit, poll, events), `src/avatar-face-capture.js`.
-- **Current flow:** 4 required + ~4 optional. Boot reads `GET /api/config` to pick **platform** vs **BYOK** mode → (BYOK only) API-key step (Meshy/Tripo, stored in `sessionStorage`) → capture frontal photo (camera or upload, optional left/right angles) → "Build my avatar" downscales to ≤1024px JPEG + local MediaPipe face check → `POST /api/avatars/reconstruct` `{ name, photos[], visibility, params:{bodyType,style} }` → `{ jobId }` (stashed as `selfie:pendingJobId`) → poll `GET /api/avatars/regenerate-status` (1.5s then 3s w/ backoff, 8–10 min timeout) → done viewer with Save/List/Open-in-editor/Make-another.
-- **What works today:** Real reconstruction (Meshy/Tripo), camera overlay with face guidance, local MediaPipe pre-check, photo downscaling, multi-angle fidelity boost, job resume across login (`selfie:pendingJobId`), OS notification on done when tab hidden, per-slot error highlighting, rate-limit cooldown countdown, BYOK key entry.
-- **Real APIs / dependencies already wired:** `GET /api/config`; `POST /api/avatars/reconstruct`; `GET /api/avatars/regenerate-status`; `GET /api/avatars/:id`; `PATCH /api/avatars/:id` (save/list). MediaPipe (client face detect); `getUserMedia`; optional Meshy/Tripo BYOK.
-- **Where it's mediocre, thin, or unfinished:** Capture coaching is a static oval — no real-time feedback on lighting, framing, blur, expression, or angle, so users submit bad inputs and blame the result. The 8-minute wait is a progress bar with phase labels and nothing to *do*. There's no before/after, no "rate the likeness," no retry-with-tweaks loop. No expression/identity options beyond bodyType/style params. The done step ends the journey instead of catapulting the user into making the agent. No texture/skin-tone fidelity controls. The legacy `/scan` page is dead code (per atlas) — worth cleaning up.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Coached capture that guarantees a good input.** Real-time, on-device feedback during capture using the MediaPipe landmarks you already load: lighting/exposure score, centering, distance, blur, head-pose ("turn slightly left"), neutral-expression nudge — only enable "Build" when the frame scores well. Auto-capture the best frame from a short burst. Bad inputs are the #1 cause of bad outputs; eliminate them.
-- **The wait becomes the show.** Replace the dead-time progress bar with a live build theater: stream the reference/preview as it materializes, show the actual pipeline phase with the user's own photo morphing toward the mesh, and let them pre-pick voice/name/style *while it builds* so zero time is wasted. When it lands, it's already half-configured.
-- **Likeness loop.** On done, show a side-by-side of their photo and the avatar with a one-tap "make it look more like me" that re-runs with adjusted params (or adds a side angle) — and a quick style toggle (realistic / stylized / heroic) that re-textures without a full rebuild where the provider supports it.
-- **Identity-safe by default.** Surface the privacy posture clearly (private by default, photos used only for reconstruction), and add an explicit consent + delete-source-photos affordance. This is a face; trust is a feature.
-- **Cross-feature wiring:** the moment an avatar is done, offer "bring it to life" → `/agent/new?avatar_id=...&avatar_name=...` so the selfie flows straight into the agent brain; respect inbound `?wizard=1&next=` and `?style=` from `/start`/`/create` so the capture starts pre-aimed; and feed the finished avatar into the marketplace publish path and the user's library discovery rail.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_03_selfie-to-avatar.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_04_prompt-to-avatar.md b/prompts/feature-innovation/01_04_prompt-to-avatar.md
deleted file mode 100644
index 56c72d40b..000000000
--- a/prompts/feature-innovation/01_04_prompt-to-avatar.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Prompt → Avatar (`/create/prompt`)
-
-> **Task file:** `prompts/feature-innovation/01_04_prompt-to-avatar.md`
-> **Surface:** `/create/prompt` (create-prompt)
-> **Primary source:** `pages/create-prompt.html` + `src/create-prompt.js` (imports `src/shared/log.js`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-This is pure imagination-to-3D: a user types "a wise old fox in a velvet wizard cloak" and a rigged, animatable character avatar appears. It's the most creatively liberating path on three.ws — no camera, no file, no skill required, just words. The mission is to make text-to-character feel like collaborating with a concept artist who reads your mind: the result matches the intent, and when it doesn't, refining is a conversation, not a re-roll lottery.
-
-"Gamechanging" here means: the user gets a character they actually wanted, can steer it ("more menacing," "give it a staff," "darker fur"), and can riff on a theme quickly enough that creating a whole cast feels playful. It should be the surface that turns "I have an idea" into "I have an agent" with the least friction of any creation method.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best generative-creation tools (Midjourney's prompt+variations loop, Luma/Meshy text-to-3D, Scenario, Sora's composer, Krea's real-time). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/create/prompt` (vercel route → `create-prompt.html`). Reached from the "Prompt" card on `/create` (signed-out users redirect to `/login?next=/create/prompt`); also direct.
-- **Source:** `pages/create-prompt.html`, `src/create-prompt.js`. Three steps: compose → building → done. `mapSubmitError` / `friendlyJobError` map provider codes to human messages.
-- **Current flow:** 3 required + 1 optional. Compose a prompt (3–600 chars, live counter; optional example chips) → "Generate" (or Cmd/Ctrl+Enter) → building step (elapsed clock, 8% start) → `POST /api/avatars/reconstruct` `{ name (derived), prompt, visibility:'private' }` (server renders a Flux reference image then reconstruct→auto-rig) → `{ jobId }` → `pollUntilDone` polls `GET /api/avatars/regenerate-status` every 3s (8-min timeout, phase-based progress: queued→running→rigging) → `renderDone` fetches `GET /api/avatars/:id`, sets `model-viewer` src, tags Animation-ready/static + Private; "Open in editor" (`/avatars/<id>/edit`) and "Make another"; dispatches `tws:feature-done`.
-- **What works today:** Real text→image (Flux)→reconstruct→rig pipeline; example chips; live char counter; Cmd/Ctrl+Enter; phase-aware progress; thorough error mapping (rate-limited, unconfigured→suggest selfie, no-face, NSFW, timeout, OOM); 401 mid-flow → login redirect; "Make another" reset; cross-feature `tws:feature-done` dispatch.
-- **Real APIs / dependencies already wired:** `POST /api/avatars/reconstruct`; `GET /api/avatars/regenerate-status`; `GET /api/avatars/:id`. Backend Flux + reconstruct/rig.
-- **Where it's mediocre, thin, or unfinished:** It's a one-shot text box → single result, no variations, no steering. The user can't see the reference image the server generated, can't pick among candidates, can't say "this but X." Example chips are static strings, not inspiring or categorized. No style/medium controls (realistic vs toon vs claymation vs pixel). The 8-minute wait is, again, a bar. "Make another" throws everything away instead of branching from a good result. No gallery of what others prompted, no remixable prompts. Done is a dead-end editor link rather than a launch into agent creation.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **See the concept before you commit the 3D.** Surface the Flux reference image *first* as a fast, cheap preview and let the user approve or re-roll the 2D concept (multiple candidates) before spending the long reconstruct→rig minutes. Approving locks the look; this kills the "8 minutes for a result I don't want" failure mode.
-- **Prompt as a steerable conversation.** After a result, offer targeted edits ("more menacing," "add a staff," "change palette to teal") that re-render from the existing concept rather than from scratch — and a structured prompt builder (subject / style / mood / palette) so non-writers get great inputs. Keep the freeform box for power users.
-- **Variations and a cast.** Generate a small grid of variations from one prompt; let the user fork any one to refine. Make it trivial to spin a *family* of related characters (same style, different subjects) for someone building a whole world of agents.
-- **Style presets that actually change the pipeline.** Real, named visual styles (realistic, stylized, toon, claymation, voxel, mascot) wired into the reconstruct params — chosen via previewed sample cards, not guessed from prose.
-- **The build wait is productive.** While reconstruct/rig runs, let the user write the agent's name, greeting, and personality so the done step lands them in a half-built agent, not a dead end.
-- **Cross-feature wiring:** on done, deep-link "give it a brain" → `/agent/new?avatar_id=...&avatar_name=...`; honor inbound `?style=` / `?wizard=1&next=` from `/start` and `/create`; and publish-worthy prompts/results should feed a remixable public gallery shared with `/create`'s discovery rail, so great prompts become a discoverable, forkable asset.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_04_prompt-to-avatar.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_05_agent-creation-wizard.md b/prompts/feature-innovation/01_05_agent-creation-wizard.md
deleted file mode 100644
index 1e82e4b32..000000000
--- a/prompts/feature-innovation/01_05_agent-creation-wizard.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# 🚀 Innovation Brief — Agent Creation Wizard & Editor (`/create-agent`, `/agent/new`)
-
-> **Task file:** `prompts/feature-innovation/01_05_agent-creation-wizard.md`
-> **Surface:** `/create-agent` (guided wizard) and `/agent/new` (full editor; create-from-avatar handoff `/agent/new?avatar_id=&avatar_glb=&avatar_name=`)
-> **Primary source:** `pages/create-agent.html` + `src/create-agent.js`; `pages/agent-edit.html` + `src/agent-edit.js` (imports `src/api.js`, `src/account.js`, `src/avatar-creator.js`, `src/avatar-gallery-picker.js`, `src/shared/agent-wallet-chip.js`, `src/shared/glb-magic.js`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-A body without a brain is a statue. This is the surface where a 3D avatar becomes an *agent* — it gets an identity, a personality, a set of real skills, a voice, and its own on-chain wallet. The mission is to make giving an agent a mind feel like directing a character rather than filling a config form: the user shapes who this agent *is* and what it can *do*, and the wizard makes every choice consequential and immediately testable.
-
-"Gamechanging" here means: the personality the user writes is something they can *talk to* before they commit, the skills they enable visibly change what the agent can do, and the moment of creation produces a funded, walleted, optionally-listed agent that feels alive — not a database row. The two surfaces (the guided `/create-agent` wizard and the open-ended `/agent/new` editor) should feel like one coherent system: easy to start, deep to master.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best agent/character builders (OpenAI's GPT builder, Character.AI creation, Poe bots, Inworld, Vercel AI playground). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/create-agent` (vercel route → `create-agent.html`) — auth-gated 6-step wizard. `/agent/new` (vercel route → `agent-edit.html`, shared with `/agent/<uuid>(/edit)`) — auth-gated; creates a draft agent immediately via `POST /api/agents`, then opens the full editor. Create-from-avatar handoff `/agent/new?avatar_id=&avatar_glb=&avatar_name=`.
-- **Source:** `pages/create-agent.html` + `src/create-agent.js`; `pages/agent-edit.html` + `src/agent-edit.js`.
-- **Current flow (`/create-agent`):** 6 required + ~2 optional. Auth gate (`getMe()`; signed-out → `#auth-gate` → `/login?next=/create-agent`) → **Step 0 Basics** (name ≤60, description ≤280, tags ≤8) → **Step 1 Model** (Starter 4 GLBs / Library `GET /api/avatars` paginated / Upload `.glb` ≤16MB GLB-magic / Add-later w/ `#f-skip-ack`) → **Step 2 Skills** (5 locked core: greet/present-model/validate-model/remember/think; optional: wave/dance/pump-fun/explain-gltf/web-search) → **Step 3 Personality** (14 categories, greeting ≤200, system prompt ≤2000, voice browser/custom) → **Step 4 Review** (editable summary grid) → **Create**: `submit()` resolves body to an owned avatar (`saveRemoteGlbToAccount` for starter URL/upload, connect for library, default starter for none) → `POST /api/agents` → optional `POST /api/marketplace/agents/:id/publish` → success panel (Open/Edit/Fund wallet).
-- **Current flow (`/agent/new`):** draft auto-created (`createDraftAgent()` POSTs `/api/agents {name:'Untitled Agent'}`), optional avatar attach via `?avatar_id` (PUT `/api/agents/:id`), then the full editor renders (identity, 3D body, skills, animations, voice, wallet chip, embed/manifest); edits persist via PUT `/api/agents/:id`, `/api/agents/:id/animations`, etc.
-- **What works today:** Real agent creation with per-agent wallet; four body-source tabs with GLB-magic validation + upload progress; locked-core + optional skills; marketplace publish (non-fatal on failure); 409 name-conflict bounce-back; per-step jump-back; create-from-avatar handoff; full editor with animations/voice/manifest/embed.
-- **Real APIs / dependencies already wired:** `getMe()`; `GET /api/avatars`; `saveRemoteGlbToAccount` (presign + R2 upload + commit); `POST /api/agents`; `PUT /api/agents/:id`; `PUT /api/agents/:id/animations`; `GET /api/agents/:id/manifest`; `POST /api/marketplace/agents/:id/publish`.
-- **Where it's mediocre, thin, or unfinished:** The personality step is a blind text box — the user writes a 2000-char system prompt and never talks to the agent before committing. Skills are checkboxes with no demonstration of what they *do* or what they unlock (pump-fun, web-search, x402 are huge capabilities reduced to a toggle). The two surfaces overlap confusingly (wizard vs editor) without a clear "graduate from one to the other." Categories/voices are flat lists. No templates/personas to start from. No validation that a system prompt is actually good. The wallet is provisioned but invisible until the success panel.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Talk to it before you ship it.** Put a live test-chat (and, where a body is attached, a speaking 3D preview) right inside the Personality step, wired to the real agent runtime/draft — the user iterates the system prompt and *hears the difference* immediately. Creation becomes "tune until it feels right," not "write and hope."
-- **Skills that demo themselves.** Each skill card shows a real, runnable example of the capability (web-search returns a real result, pump-fun shows a live token snapshot, x402 shows a sample paywalled call) so the user understands the power they're enabling — and the card surfaces what *other* features that skill unlocks platform-wide.
-- **Persona starters that are more than a bio string.** Offer real, composable personas (researcher, trader, community host, support) that set system prompt + recommended skills + voice + category *together*, then let the user remix — distinct from the static `PRESETS` bios in the onboarding wizard.
-- **Prompt co-author.** A "help me write this" assistant (worker LLM proxy) that turns a one-line description of the agent's job into a strong, structured system prompt, and critiques/improves a prompt the user pasted — with a quality meter.
-- **One coherent create→edit story.** Make `/create-agent` the fast guided on-ramp and `/agent/new` the deep workshop, with an explicit, lossless handoff ("open in full editor") and shared components so they never drift. Kill the confusion about which to use.
-- **Cross-feature wiring:** accept the avatar handoff from `/create/selfie`, `/create/prompt`, `/create`, and `/voice` (`?avatar_id=`, voice id); deep-link the success panel into `/agent/<id>/wallet#deposit`, the marketplace listing, and the embeddable widget so a freshly-made agent is one tap from funded, listed, and embeddable; and surface the agent's `$THREE`-aware earn/payout setup consistent with the onboarding wizard's Earn step.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_05_agent-creation-wizard.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_06_import-avatar.md b/prompts/feature-innovation/01_06_import-avatar.md
deleted file mode 100644
index e5f5ebafd..000000000
--- a/prompts/feature-innovation/01_06_import-avatar.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Import Avatar (`/import/rpm`)
-
-> **Task file:** `prompts/feature-innovation/01_06_import-avatar.md`
-> **Surface:** `/import/rpm` (import-rpm) — import any GLB/glTF by URL or file
-> **Primary source:** `pages/import-rpm.html` (inline `<script type="module">`) + `src/account.js` (`saveRemoteGlbToAccount`)
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-People already have avatars — a Ready Player Me character, a VRoid model, a Mixamo rig, a GLB exported from Blender. This is the on-ramp that says "bring what you have, we'll give it a brain." The mission is to make importing an external avatar trustworthy and *delightful*: the user pastes a URL or drops a file and instantly sees their model, validated, normalized, previewed, and one tap from becoming a living, walleted agent — with zero anxiety about whether it "worked."
-
-"Gamechanging" here means: import isn't a file-upload form, it's a red carpet for the broader 3D ecosystem. We accept the formats people actually have, we fix the common problems (bad bone names, wrong scale, missing materials) automatically, and we show the user exactly what they're getting before they commit. The best import experience in the avatar space, full stop.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best asset-import experiences (Figma import, Sketchfab upload, Unity package import, Cloudinary/Uploadcare flows, Ready Player Me's hub). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/import/rpm` (vercel route → `import-rpm.html`). The page loads anonymously; import is auth-gated at action time.
-- **Source:** `pages/import-rpm.html` (inline module) + `src/account.js#saveRemoteGlbToAccount`.
-- **Current flow:** 2 required + 1 optional. Two tabs — **Import from URL** (paste an `http(s)` GLB URL, validated; optional name) and **Upload file** (drag-drop/pick `.glb` ≤100 MB, validated by extension + size; optional name). Click Import/Upload → `runImport(...)` calls `saveRemoteGlbToAccount(source, { name, visibility:'public', tags:['rpm','imported'], source:'rpm_import', source_meta })` with staged progress callbacks (Fetching → Normalizing bones → Uploading → Saving) and a live progress bar. On success, `showSuccess(avatar)` swaps in a card "<name> is ready" linking to `/avatars/<id>`. A `not_signed_in`/401 redirects to `/login?return=<here>`.
-- **What works today:** Real URL and file import; server-side source fetch; bone normalization; R2 presign/upload/commit; staged progress UI; friendly error mapping by `err.code`/`err.stage` (fetch / presign / commit / upload_blocked / size_mismatch); auth round-trip on 401.
-- **Real APIs / dependencies already wired:** `saveRemoteGlbToAccount` (account.js — presign + remote GLB fetch/normalize + R2 upload + commit).
-- **Where it's mediocre, thin, or unfinished:** No 3D preview before *or* after import — the user never sees the model on this page (success is just a text card + link). Only `.glb` is accepted; `.gltf`/`.vrm`/`.fbx`/Mixamo and RPM share-links aren't handled despite the route name implying RPM. No inspection of what was imported (poly count, bones, animations, has-rig, materials). No "import from a known source" helpers (paste an RPM avatar id/link, a Sketchfab URL). Defaults to **public** visibility silently. No batch import. The "Normalizing bones" step is opaque — the user can't tell if their rig survived.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Preview before commit.** Render the model in a live `model-viewer` the moment a URL/file is provided — orbit it, see materials, play any embedded animations — *before* the user clicks import. WYSIWYG import removes all the anxiety.
-- **An import inspector that builds trust.** After fetch/normalize, show a report: poly count, texture count, bone count, rig status ("riggable / already rigged / static"), embedded animations, file size, and any auto-fixes applied (rescaled, renamed bones, regenerated materials). Make the "Normalizing bones" black box transparent.
-- **Accept what people actually have.** Broaden beyond `.glb`: handle `.gltf` (+ companion bin/textures), RPM share-links/avatar IDs (resolve to GLB), and degrade gracefully with clear guidance for unsupported formats — turning the route's RPM name into a real promise. Detect humanoid rigs and offer auto-retargeting to the platform's animation set.
-- **Visibility and licensing as a deliberate choice.** Don't silently default to public — present a clear private/public toggle with a plain-language explanation, plus a source/attribution field so imported community work is credited.
-- **Cross-feature wiring:** the success state should offer one tap to "give it a brain" → `/agent/new?avatar_id=...&avatar_name=...`, "preview animations" in the studio, and "list on marketplace" — so import flows directly into the agent and discovery surfaces instead of dead-ending at `/avatars/<id>`. Surface this route prominently inside the `/create` hub as the "I already have a model" path.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_06_import-avatar.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/01_07_voice-lab.md b/prompts/feature-innovation/01_07_voice-lab.md
deleted file mode 100644
index d6d5fdbda..000000000
--- a/prompts/feature-innovation/01_07_voice-lab.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Voice Lab (`/voice`)
-
-> **Task file:** `prompts/feature-innovation/01_07_voice-lab.md`
-> **Surface:** `/voice` — voice cloning + TTS playground for agents/avatars
-> **Primary source:** `pages/voice.html` + `src/voice-lab.js`
-> **Atlas reference:** `docs/ux-flows/01-onboarding-creation.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-An agent that sounds generic is forgettable; an agent that sounds *distinct* is memorable. Voice Lab is where a user mints the voice their agent speaks with — cloned from their own recording or crafted to fit a character — and hears it come alive instantly. The mission is to make voice creation feel like a recording studio with a great engineer: it coaches you to a clean take, clones a voice you actually recognize, and lets you audition it speaking your agent's real lines before you commit it.
-
-"Gamechanging" here means: the recording step guarantees a usable clone (no garbage-in), the clone is convincing, and the playground lets the user *direct* the voice — emotion, pace, the agent's actual greeting — so they choose with confidence. Voices become a first-class, reusable asset across every agent and avatar, not a one-off in `localStorage`.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best voice tools (ElevenLabs Studio, Descript Overdub, Play.ht, Apple's Personal Voice, Resemble.ai). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/voice` (vercel route → `voice.html`).
-- **Source:** `pages/voice.html` + `src/voice-lab.js`. Cloned-voice library persisted in `localStorage` key `voicelab_voices_v1`.
-- **Current flow:** 4 required + ~3 optional. Land (reading script shown, cyclable via "Next script"; library + playground voice dropdown render from `localStorage`) → "Record" (`#btnRecord`, `getUserMedia` mono 48kHz w/ AGC/NS/EC, live waveform + level meter, max 60s, rec. 20–30s) → "Stop" (`#btnStop`, builds Blob, rejects <3s, shows review state w/ audio preview; optional "Re-record") → enter voice name (required) + "Clone" (`#btnClone`, `POST /api/tts/eleven-clone` multipart audio + name) → on success store `{voiceId,name,status}` in `localStorage`, show done state, re-render library/playground. Optional playground: pick voice, type text, "Speak" → `POST /api/tts/eleven {voiceId,text}`; "Play sample" on a library card uses a canned line; delete a voice from the library.
-- **What works today:** Real ElevenLabs clone + TTS via server proxy; live waveform/level meter; min-duration guard; review/re-record loop; reading scripts; in-page playground; per-card sample playback; library delete; thorough status messaging (mic denied, recorder init, too-short, network/HTTP errors, name required).
-- **Real APIs / dependencies already wired:** `POST /api/tts/eleven-clone` (clone); `POST /api/tts/eleven` (TTS playback/sample). ElevenLabs via server proxy. Browser `getUserMedia` / `MediaRecorder` / Web Audio.
-- **Where it's mediocre, thin, or unfinished:** The voice library lives in `localStorage` — it's per-browser, not tied to the account, and not actually discoverable when creating an agent (the atlas notes voices are "selectable elsewhere" but the binding is loose). No recording-quality feedback (background noise, clipping, too quiet, too short of *speech* vs silence) — users clone bad takes. The playground is plain TTS with no emotion/style/pace controls. No "preview this voice on my agent's real greeting." No designed/library voices to pick without recording. No way to compare two voices. No re-clone/improve an existing voice.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Studio-grade capture coaching.** Real-time analysis of the incoming audio (noise floor, clipping, loudness, actual speech duration vs silence) with a live "take quality" meter and a green-light gate — only allow Clone when the sample will produce a good voice. Auto-trim leading/trailing silence. Garbage-in is the root cause of weak clones; close that door.
-- **Direct the voice, don't just synthesize it.** Add real expressive controls to the playground (stability/style/pace/emotion where the provider supports them) and a multi-line script tester so the user hears the voice across a happy line, a serious line, and a question — then saves the settings *with* the voice.
-- **Account-backed, reusable voice assets.** Promote voices from `localStorage` to a real per-account voice library so a cloned voice is instantly selectable in `/create-agent`, `/agent/new`, and avatar flows — one voice, many agents. Make the binding explicit and bidirectional.
-- **Audition on the real agent.** "Hear it on my agent" — synthesize the user's actual agent greeting/persona lines in the candidate voice (and, where a body exists, lip-synced on the 3D preview) so the choice is made on the real product, not a canned sentence.
-- **Designed voices for non-recorders.** A curated set of ready-to-use voices (browsable, auditionable) for users who don't want to record — so every agent can have a great voice in seconds.
-- **Cross-feature wiring:** expose the chosen voice id straight into the agent creation/editor personality step and the onboarding wizard's voice choice; let the agent's live `/agent/<id>` talking widget speak in this voice; and surface Voice Lab as a step inside `/create-agent` Personality and `/start` so voice is part of the creation arc, not an isolated tool.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/01_07_voice-lab.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/01-onboarding-creation.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/02_01_forge-generation-core.md b/prompts/feature-innovation/02_01_forge-generation-core.md
deleted file mode 100644
index 178677068..000000000
--- a/prompts/feature-innovation/02_01_forge-generation-core.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 🚀 Innovation Brief — Forge Generation Core (prompt / photo / sketch → 3D)
-
-> **Task file:** `prompts/feature-innovation/02_01_forge-generation-core.md`
-> **Surface:** `/forge` (input → engine selection → generation → reveal)
-> **Primary source:** `src/forge.js`, `src/forge-dropzone.js`, `src/forge-prompt-studio.js`, `src/forge-reveal.js`, `src/forge-enhance.js` (+ `pages/forge.html` markup/styles)
-> **Atlas reference:** `docs/ux-flows/02-forge-text-to-3d.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator, indie game dev, agent-builder, or curious visitor who wants a usable 3D model from an idea — typed, photographed, or sketched — without learning a tool. The generation core is the heart of `/forge`: it is where intent becomes a textured GLB. It exists so that "type a description, get a model" is true, fast, and trustworthy — including for people with no account, no wallet, and no key (the free FLUX→TRELLIS lane).
-
-"Gamechanging" here means the *act of generating* feels alive and intelligent, not a black box with a spinner. The competitor pattern (Meshy/Tripo/Luma) is: type prompt → wait on an opaque queue → get one mesh, hope it's right. Beat that by making the input phase **coach the user toward a prompt that meshes cleanly**, making the generation phase **show honest, legible progress with a live reference preview**, and making the reveal phase **feel like the model materializing in your hands**. Invent capabilities those tools don't have: prompt-to-result confidence, side-by-side variant forging, and a reference image the user can actually steer before the mesh is committed.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Meshy, Tripo, Luma Genie, Rodin, Midjourney's generation UX for the input/reveal feel). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/forge` → `pages/forge.html`, loads `src/forge.js` + sibling `forge-*` modules. (`vercel.json` rewrite.)
-- **Source:**
- - `src/forge.js` (~2445 lines) — main controller: fetches catalog + health, builds tier (Draft/Standard/High) + per-mode engine selector, validates + submits the job, runs one shared polling loop, renders generating/result/error states, gating.
- - `src/forge-dropzone.js` (~226 lines) — paste/drop/click image handling for the photo + sketch slots.
- - `src/forge-prompt-studio.js` (~60+ lines) — curated "Surprise me" / "More ideas" library + live prompt coach (tip/warn/strong) + char counter. Client-side, hand-authored content, no network.
- - `src/forge-enhance.js` (~259 lines) — injects the **Enhance** button into `#prompt-tools`; rewrites the user's text via `POST /api/forge-enhance` (free-first LLM chain, no key) into a sharper single-subject FLUX→TRELLIS prompt, with Undo.
- - `src/forge-reveal.js` (~353 lines) — WebGL "materialize" dissolve overlay above the result `<model-viewer>`; honors `prefers-reduced-motion`; fails open (presentation only, never a dependency).
-- **Current flow:** ~12 required steps (text path). Land → fetch catalog (`GET /api/forge?catalog=1`) + health (`GET /api/forge?health=1`) → pick mode tab (Describe it / From photos / From a sketch) → author prompt (coach + counter + example chips; optional Surprise me / Enhance) → optional tier/engine/aspect → **Generate** (⌘/Ctrl+Enter) → `startJob()` `POST /api/forge` → `#state-generating` with three labeled steps (*Painting reference* → *Reconstructing mesh* → *Finalizing GLB*) + honest elapsed-vs-typical bar + reference preview paint-in + Cancel → sync return or poll `GET /api/forge?job=<id>` (every 2500ms, ceiling 5min) → `showResult()` + materialize reveal.
-- **What works today:** Free no-auth lane (FLUX→TRELLIS); three input modes; live prompt coach + curated library + AI enhance; multi-view photo upload via presign (`POST /api/forge-upload` → `PUT` storage); honest non-faking progress; cinematic reveal; vision pre-check (`422 image_not_usable`) with "Generate anyway" override; auto-categorize/save.
-- **Real APIs / dependencies already wired:** `GET /api/forge?catalog=1|health=1`, `POST /api/forge`, `GET /api/forge?job=<id>`, `POST /api/forge-upload` (+ `PUT` object storage), `POST /api/forge-enhance`, `POST /api/forge-categorize`. Engines: FLUX→TRELLIS free lane; BYOK Meshy/Tripo/Rodin/Stability/Replicate (`x-forge-provider-key`); Hunyuan3D/TripoSG sketch. model-viewer 4.0.0 (CDN). Anonymous client id in `localStorage forge:cid`.
-- **Where it's mediocre, thin, or unfinished:** You get **one** mesh per generation — no variants, no "regenerate just the reference image" before committing GPU time on reconstruction. The reference image is shown but **not steerable** (no nudge/reroll/lock once you like it). The prompt coach grades but doesn't *show* what a stronger prompt yields. There is no confidence/quality signal on the result. Photo mode doesn't tell the user which of their 4 angles actually helped. No memory of what *this* user's prompts tend to produce. The empty/idle state shows a sample but doesn't onboard a true first-timer toward their first success.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Steer-the-reference, then commit.** Split generation into two honest phases the user controls: FLUX paints 1–4 candidate reference images *first* (cheap, fast); the user picks/locks the one they want (or hits "reroll" / nudges with a delta phrase) — only then does TRELLIS spend GPU reconstructing the *chosen* image. This kills the "wrong mesh, start over" loop that plagues Meshy/Tripo and is genuinely novel. Wire it through the existing `preview_image_url` plumbing and the catalog's two-stage pipeline.
-- **Forge variants, side by side.** A "Generate 3 variants" affordance that fires the same prompt with seed/style variation and reveals them in a compact compare strip in the viewer area — keep the winner, discard the rest (feeds `forge-feedback`). No competitor lets you A/B meshes in one shot.
-- **Living prompt coach.** Upgrade `forge-prompt-studio.js` from grading-only to *show-don't-tell*: as the coach detects a weak prompt (multi-subject, no material/lighting cue) it offers a one-tap fix that previews the rewritten prompt inline (reuse the `/api/forge-enhance` rail) and explains *why* it meshes cleaner.
-- **Per-angle photo intelligence.** In photo mode, after the vision pre-check, surface which uploaded views the backend actually used and a "this angle adds the most" hint, turning blind uploading into guided capture (ties to the image-to-3d tutorial's "4 angles" advice).
-- **First-success onboarding in the empty state.** Replace the passive idle sample with a live "watch one forge in 20s" demo that seeds the composer with a known-good prompt — a first-timer reaches a real GLB without thinking.
-- **Cross-feature wiring (required ≥1):** the moment a model lands, offer a context-aware next-step rail driven by the auto-category — *Avatar* → "Rig & animate at `/create/prompt` / open in avatar editor"; *Item/Accessory* → "Attach to an avatar at `/compose`"; *Scene* → "Build a scene at `/compose`"; multi-part result → "Split parts at `/segment`". Make the generation core the launchpad for the rest of three.ws, not a dead end.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/02_01_forge-generation-core.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/02-forge-text-to-3d.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/02_02_forge-refine-stylize-optimize.md b/prompts/feature-innovation/02_02_forge-refine-stylize-optimize.md
deleted file mode 100644
index fa0668a3b..000000000
--- a/prompts/feature-innovation/02_02_forge-refine-stylize-optimize.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# 🚀 Innovation Brief — Forge Post-Processing (refine · stylize · optimize · game-ready)
-
-> **Task file:** `prompts/feature-innovation/02_02_forge-refine-stylize-optimize.md`
-> **Surface:** `/forge` (post-generation processing rail on the result)
-> **Primary source:** `src/forge-refine.js`, `src/forge-stylize.js`, `src/forge-optimize.js`, `src/forge-gameready.js` (+ `src/shared/mesh-refine.js`, result-bar markup in `pages/forge.html`)
-> **Atlas reference:** `docs/ux-flows/02-forge-text-to-3d.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has just forged a textured GLB and now wants to *make it usable* — cleaner geometry, a deliberate art style, a sane poly budget, an engine-ready export. Today most text-to-3D output dies in the gap between "looks cool in the viewer" and "I can actually drop this into Unity/Unreal/Blender." The post-processing rail (refine / stylize / optimize / game-ready) exists to close that gap **inside Forge**, so a creator never has to leave for Blender to weld verts, retopologize, or hit a triangle budget.
-
-"Gamechanging" here means turning four separate panels into one coherent, predictable **finishing studio** where every operation shows real before/after, real geometry stats, and real downloadable output — and where the operations *compose* (refine → stylize → game-ready as a pipeline, not four dead ends). The killer property: Forge becomes the only text-to-3D tool where the raw mesh and the production-ready asset are one click apart.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Blender's decimate/remesh UX, Quad Remesher, InstaLOD, Meshy's retopo, Adobe Substance's stylization). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/forge` result panel (`#state-result`) — these modules self-inject their own panels beside the result bar; no separate route. (`vercel.json` rewrite to `pages/forge.html`.)
-- **Source:**
- - `src/forge-refine.js` (~419 lines) — **in-browser, no API.** Parses the live GLB with `GLTFLoader`, runs deterministic passes (weld / smooth normals / Laplacian relax / decimate / subdivide) from `src/shared/mesh-refine.js`, re-exports with `GLTFExporter`, swaps `<model-viewer>`. Non-destructive (keeps original bytes, every preset re-parses from them). No worker, no rate limit — the dependable "improve this" path when the paid lane 429s.
- - `src/forge-stylize.js` (~265 lines) — voxels / bricks / lattice / low-poly geometric filters via `POST /api/forge-stylize` (worker job, polled by `?job=`), with a resolution slider, download, and revert.
- - `src/forge-optimize.js` (~398 lines) — tri/quad/low-poly remesh via `POST /api/forge-remesh` (polled).
- - `src/forge-gameready.js` (~651 lines) — retopologize to a poly budget; exports textured GLB + FBX for Unity/Unreal via `POST /api/forge-gameready` (polled); budget slider + wireframe preview.
-- **Current flow (post-result, all optional):** result lands → user opens any of the four panels independently. Refine: pick a preset → instant in-browser pass → download refined GLB / revert. Stylize/Optimize/Game-Ready: set parameters → `POST` → poll the worker job → preview/download. Each panel is **self-contained**: it reads the live GLB URL off the result bar's Download anchor and injects its own markup + styles, decoupled from `src/forge.js`.
-- **What works today:** Real geometry compute (refine is genuinely client-side three.js, not faked); real GPU worker jobs for stylize/remesh/game-ready with honest polling; per-model scene caching; non-destructive revert; FBX + GLB export for engines.
-- **Real APIs / dependencies already wired:** `POST /api/forge-stylize`, `POST /api/forge-remesh`, `POST /api/forge-gameready` (all polled via `GET /api/forge?job=<id>` style worker polling). `src/shared/mesh-refine.js` (`refineScene`, `REFINE_PRESETS`, `REFINE_PRESET_BY_KEY`, `specForPreset`). `three/addons` `GLTFLoader` + `GLTFExporter` (lazy). model-viewer for preview.
-- **Where it's mediocre, thin, or unfinished:** The four panels are **siblings that don't know about each other** — you can't refine, *then* feed the refined mesh into game-ready; each reads the original GLB. No unified before/after compare (side-by-side or wipe slider) shared across operations. Geometry stats (tri/vert count, file size) aren't consistently surfaced as a *budget you're hitting*. No presets tuned for real targets (mobile game / VRChat / AR / 3D-print / web). Stylize/optimize/game-ready each re-implement their own panel chrome and status states instead of sharing one finishing-studio shell. No "what changed" diff after an operation. No way to stack operations into a saved recipe.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Make it a pipeline, not four buttons.** Introduce a single **Finishing Studio** shell where the output of one operation becomes the input of the next (refine → stylize → optimize → game-ready), with a visible operation stack the user can reorder, toggle, and revert step-by-step. This is the unlock no competitor offers in a browser: a composable post-processing chain on a freshly-generated mesh.
-- **Before/after that sells it.** A shared compare control — wipe slider or split viewport with synced cameras — plus a live geometry HUD (triangles, verts, file size, texture res) that updates per operation and shows the *delta*. Show the user exactly what weld/decimate/retopo bought them.
-- **Target presets, not parameters.** Replace raw sliders-first UX with intent: "Mobile game (≤10k tris)", "VRChat avatar", "AR/USDZ", "3D print (watertight)", "Web/low-bandwidth". Each preset drives the real budget into game-ready/optimize and explains the tradeoff. Advanced sliders stay for power users.
-- **Watertight + print readiness check.** For the 3D-print path, run a real manifold/non-manifold check in `mesh-refine.js` and surface a pass/fail with one-tap repair — Forge becomes printable-out-of-the-box.
-- **Save the recipe.** Let a creator save their finishing chain ("my low-poly mobile recipe") to localStorage and re-apply it to any future Forge result in one tap — turns repeat work into one click.
-- **Cross-feature wiring (required ≥1):** hand the *finished* mesh forward cleanly — game-ready output → "Open in `/compose` (Scene Composer)" and "Attach to avatar" with the optimized GLB, and multi-part results → "Split at `/segment` (Parts Studio)". Make the finishing studio the bridge between raw generation and the rest of three.ws's authoring tools, and feed verdicts to `POST /api/forge-feedback` so the data flywheel learns which finishing recipes users keep.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/02_02_forge-refine-stylize-optimize.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/02-forge-text-to-3d.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/02_03_forge-export-embed-share.md b/prompts/feature-innovation/02_03_forge-export-embed-share.md
deleted file mode 100644
index 58b4546f2..000000000
--- a/prompts/feature-innovation/02_03_forge-export-embed-share.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 🚀 Innovation Brief — Forge Delivery (export · embed · AR · showcase · pay-gate)
-
-> **Task file:** `prompts/feature-innovation/02_03_forge-export-embed-share.md`
-> **Surface:** `/forge` (delivery: get the model out, on a site, in a room, in the community)
-> **Primary source:** `src/forge-export.js`, `src/forge-embed-panel.js`, `src/forge-embed-snippets.js`, `src/forge-ar.js`, `src/forge-showcase.js`, `src/forge-pay.js`
-> **Atlas reference:** `docs/ux-flows/02-forge-text-to-3d.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has a finished GLB and now wants to *do something with it in the world* — download it in the right format, drop it on their website, see it on their desk in AR, share a link, or get discovered in the community feed. Generation is worthless if delivery is clumsy. This surface is the last mile: it decides whether a forged model becomes a file in a downloads folder or a live asset embedded on a portfolio, scanned into a living room, and remixed by the next visitor. It also houses the **$THREE pay-gate** for High generations — the moment where a non-holder either holds, pays per-generation, or steps down.
-
-"Gamechanging" here means making the forged model *travel*: a one-line embed that looks pro on any site, a desktop→phone AR handoff that just works, a share link that previews beautifully, and a community showcase that turns delivery into a discovery flywheel. And it means making the pay-gate feel like a fair, instant, on-chain perk — not a paywall ambush.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Sketchfab embeds + AR, model-viewer's `<model-viewer>` showcase, Polycam/Luma share pages, Stripe/Linear for the clarity of a pay flow). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/forge` result panel; `/forge/embed?src=<glb>` (zero-dep viewer page used by iframe embeds + AR handoff); community showcase strip on `/forge`. (`vercel.json` rewrites to `pages/forge.html`.)
-- **Source:**
- - `src/forge-export.js` (~307 lines) — in-browser format menu beside Download: **OBJ** (geometry+UVs), **STL** (binary, print), **PLY** (binary, scan/point-cloud), **USDZ** (textured AR for iPhone/Vision Pro). three.js + exporters load lazily; parsed scene cached per model URL. No worker, no upload. (GLB Download anchor itself is owned by `src/forge.js`.)
- - `src/forge-embed-panel.js` (~270 lines) + `src/forge-embed-snippets.js` (~95 lines) — two real embeds: **iframe** → `/forge/embed?src=<glb>` (orbit + AR + branding, no scripts/CORS), and **web component** → a `<model-viewer>` snippet. Reads the live GLB URL off the result bar's Download link; size presets + escaping + absolute-URL helpers live in the snippets module. Uses `src/shared/modal.js`.
- - `src/forge-ar.js` (~208 lines) — desktop shows a **QR to `/forge/embed`** (scan → opens on phone → one tap to AR); touch devices launch AR straight from the page viewer. Reuses the zero-dep QR encoder (`src/erc8004/qr.js`) + shared Modal. No network calls.
- - `src/forge-showcase.js` (~415 lines) — "Fresh from the Forge" community feed (`GET /api/forge-gallery?scope=community`). Each card: click → opens in the main viewer via the `forge:open-creation` hook; **Remix** → copies the prompt into the composer. Thumbnail fallback chain (`preview_image_url` → captured model-viewer frame). Hidden when the store is empty.
- - `src/forge-pay.js` (~308 lines) — pay-per-use for **High** in **$THREE**: drives quote → sign → settle (`src/token-pay.js` → `/api/token/quote` + `/api/token/settle`) behind a designed status modal (pricing → approve → confirming → verifying), returns `{ paymentId, refId }` so the caller retries generation with the proof. Every recoverable state designed (no wallet, sign-in, cancelled, not enough $THREE → Get $THREE, settlement failure → Retry).
-- **Current flow (post-result, optional):** result lands → **Download GLB** (stamps attribution, reports `downloaded:true`) or pick a format from Export → open **Embed** (copy iframe / web-component snippet) → **View in AR** (QR on desktop, native on phone) → **Share** → showcase auto-lists finished public creations for others to open/remix. High-tier gate (`402 three_hold_required`) → upsell → hold $THREE or pay-per-generation via `forge-pay.js`.
-- **What works today:** Real client-side multi-format export (no upload); real zero-dependency iframe + web-component embeds against a real `/forge/embed` viewer; real desktop→phone AR via QR; real community feed with remix; real on-chain $THREE quote/settle pay rail with fully designed states. Poster capture (`POST /api/forge-poster`) for thumbnails; galleries (`GET /api/forge-gallery`, `GET /api/forge-creation?id=`).
-- **Real APIs / dependencies already wired:** `GET /api/forge-gallery?scope=community&limit=24` (showcase), `GET /api/forge-gallery?limit=24` (your creations), `GET /api/forge-creation?id=`, `POST /api/forge-poster`, `POST /api/forge-feedback` (downloaded/verdict). Pay: `src/token-pay.js` → `POST /api/token/quote` + `POST /api/token/settle` ($THREE). `src/shared/glb-attribution.js` (stamping), `src/shared/modal.js`, `src/erc8004/qr.js`. model-viewer 4.0.0 (CDN), `ORIGIN = https://three.ws`.
-- **Where it's mediocre, thin, or unfinished:** Delivery is **five disconnected modal/menus** with no unified "Publish/Share" hub. The share link previews are not guaranteed to render rich OG cards per-creation. The embed page (`/forge/embed`) is functional but bland — no theming, no custom controls, no analytics for the embedder. AR is QR-only on desktop with no fallback if the camera/phone path fails. The showcase is a flat reverse-chron strip — no filtering by category, no trending, no creator attribution links. The pay-gate is solid but **isolated from the holder economy** — it doesn't reinforce *why* holding $THREE beats paying each time, and post-payment there's no receipt/history.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One "Publish" hub.** Collapse export + embed + AR + share into a single, sequenced delivery panel that reads like a destination chooser: *Download* (format-aware), *Put it on a site* (embed), *See it in your space* (AR), *Share a link* (rich OG card), *Post to the Forge* (showcase). One coherent surface beats five scattered menus and is the thing people screenshot.
-- **A share page worth sharing.** Make every `/api/forge-creation?id=` open render a genuinely beautiful, fast, OG-rich share page (real per-creation poster from `forge-poster`, prompt, engine, remix CTA) — so a pasted Forge link in Discord/X looks as good as a Sketchfab link, and "Remix" pulls a stranger straight into the composer.
-- **Themed, smarter embeds.** Upgrade `/forge/embed` with optional theming (accent/background/auto-rotate/AR-on params already plumbable through `forge-embed-snippets.js`) and a "copy a styled snippet" flow, so an embedder's site never looks like a generic gray box.
-- **Discovery showcase, not a strip.** Add category filters (reuse the auto-category taxonomy: Avatar/Creature/Item/Accessory/Scene/Vehicle), a "Trending / Newest" toggle, and creator attribution that links onward — turning delivery into a flywheel where shared models pull new users into Forge.
-- **Hold-vs-pay clarity + receipts.** At the pay-gate, show the honest math (one pay-per-use now vs. holding $THREE for unlimited High) with a live link to `/three`, and after a successful settle, persist a receipt the user can see in their creations/history. Keep $THREE the only coin — never reference any other.
-- **Cross-feature wiring (required ≥1):** wire delivery into the rest of three.ws — "Embed on your agent profile" / "Set as agent avatar", showcase remix → composer (already hooked, deepen it), and a "Launch this as a collectible" path that respects the platform's launch records. Make a forged model a first-class asset across avatars, profiles, compose, and the launch feed — not a one-off download.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/02_03_forge-export-embed-share.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/02-forge-text-to-3d.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/03_01_scene-studio.md b/prompts/feature-innovation/03_01_scene-studio.md
deleted file mode 100644
index 640fc4ccc..000000000
--- a/prompts/feature-innovation/03_01_scene-studio.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Scene Studio
-
-> **Task file:** `prompts/feature-innovation/03_01_scene-studio.md`
-> **Surface:** `/scene`
-> **Primary source:** `pages/scene.html`, `src/scene-studio/main.js`, vendored editor under `src/scene-studio/vendor/js/` (`Editor.js`, `Viewport.js`, `Menubar.*.js`, `Sidebar.*.js`, commands), `src/scene-studio/studio.css`, `src/shared/scene-handoff.js`
-> **Atlas reference:** `docs/ux-flows/03-3d-editing-viewer.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator — an agent owner, a 3D hobbyist, or a designer — who wants to build, arrange, and export a 3D scene without downloading Blender. Scene Studio is a full vendored Three.js r184 editor running in the browser: viewport, outliner, transform gizmos, material/scene/light editing, scripting, an animation timeline, and a deep export matrix (GLB/GLTF/OBJ/PLY/STL/USDZ/DRC). It already autosaves to IndexedDB and accepts hand-offs from Forge/Parts (`?model=`) and Animation Studio (`?handoff=1`).
-
-"Gamechanging" here means making a **browser** scene editor that creators *prefer* over desktop tools — not because it's lighter, but because it's connected. Desktop editors are islands: they can't pull your three.ws avatars, can't publish to a shareable URL in one click, can't co-edit, and can't drop the result straight onto an on-chain agent. A web editor living inside this platform can do all of that. Invent the workflow that makes a creator say "why would I ever open the desktop app for this."
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Blender, the official three.js editor, Spline, Womp, Bezel, Figma's multiplayer model). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/scene` (`vite.config.js` rewrites `pages/scene.html` → `src/scene-studio/main.js`).
-- **Source:** `pages/scene.html` loads the CodeMirror/Draco vendor `<script>` chain then `<script type="module" src="/src/scene-studio/main.js">` (scene.html:84). `main.js` constructs the vendored `Editor`, mounts Viewport/Toolbar/Script/Player/Sidebar/Menubar/Resizer/Animation panels into `#studio-app`, exposes `window.editor`/`window.THREE`, and inits IndexedDB autosave (`editor.storage.init`, main.js:36-144). Surface is dark-locked (main.js:11).
-- **Current flow:** ~7 required steps — arrive → import GLB → select → transform (gizmo) → edit material → edit scene (bg/env/fog) → export; plus ~7 optional (deep-link arrival, primitives/lights, scripts, Play, animation timeline, project save/open, render).
-- **What works today:** Full vendored editor with Outliner, transform gizmo, Geometry/Material/Scene/light sidebars, CodeMirror scripting, Player, animation panel. IndexedDB autosave debounced ~1s (`savingStarted`/`savingFinished`). Deep-link import: `?model=<glb_url>&name=` validates URL is `https://`/same-origin, fetches, parses via Draco/KTX2/Meshopt GLTFLoader, `AddObjectCommand`, strips query (main.js:186-206). `?handoff=1` reads baked GLB from IndexedDB via `takeSceneHandoff()` and attaches a Play Animation script (main.js:208-251). Drag GLB/glTF or a folder anywhere → `editor.loader.loadItemList`/`loadFiles` (main.js:255-271). Export matrix: GLB, GLTF, OBJ, PLY (ASCII/binary), STL (ASCII/binary), USDZ, DRC, `.json` project, rendered image/video (`Menubar.File.js`:212-435, `Menubar.Render.js`).
-- **Real APIs / dependencies already wired:** `fetch(modelUrl)` for `?model=` deep-link; IndexedDB via `editor.storage` (autosave) + `src/shared/scene-handoff.js` (DB `three-ws-scene-handoff`); Draco decoder `/scene-studio/draco/gltf/`, KTX2 transcoder `/scene-studio/basis/` (main.js:163-165); local CodeMirror/esprima/acorn/tern. **No platform API calls today.**
-- **Where it's mediocre, thin, or unfinished:** Everything is local and ephemeral — autosave lives only in *this* browser; there is no way to **save a scene to your account, get a shareable URL, or publish it**. No connection to the rest of the platform: you cannot pull your own three.ws avatars/agents or Forge gallery items in as objects (only one-shot `?model=` deep-links from elsewhere). No collaboration, no version history beyond linear undo. Export is download-only — the result never re-enters three.ws (no "deploy this scene", no "use as agent environment"). Asset library is empty; you start from a void every time. No camera bookmarks, no measurement, no presentation mode.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Cloud scenes with shareable URLs + version history.** Persist scenes server-side (presign + R2 like the avatar/animation save paths), give each a `/scene/<id>` permalink that loads read-only or fork-to-edit, and keep a visual snapshot timeline so a creator can roll back. This is the single thing that turns a local toy into a tool people return to.
-- **In-editor asset library wired to the platform.** A dockable panel that pulls the creator's own three.ws **avatars** (`/api/avatars`), **agents** (`/api/agents/me`), and **Forge gallery** items (`/api/forge-gallery`) and lets them drag any of those directly into the scene as objects — no copy-pasting URLs. Plus a "Forge an object" box right inside Scene Studio (`POST /api/forge` + poll, mirroring `/compose`).
-- **Real-time multiplayer co-editing.** A presence layer (cursors, selection highlights, name tags) and synced commands over a worker/websocket so two creators edit one scene live — the Figma moment desktop editors structurally cannot match.
-- **Cross-feature wiring:** "Publish scene → deploy as agent environment." A scene built here should become the world an agent lives in: export the GLB, save to account, then hand off to `/app` / the deploy flow so the on-chain agent renders inside *this* scene. Reciprocally, "Open in Composer" / "Record in Scene" round-trips with `/compose` and `/pose` already exist as concepts — close the loop both directions.
-- **Camera bookmarks + one-click presentation/turntable mode** that records a render video (the `Menubar.Render.js` Player already renders) and produces a shareable clip — instant marketing asset.
-- **Smart starting points:** curated scene templates (studio lighting, product shot, diorama) instead of an empty void, so the empty state teaches the tool.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/03_01_scene-studio.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/03-3d-editing-viewer.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/03_02_scene-composer.md b/prompts/feature-innovation/03_02_scene-composer.md
deleted file mode 100644
index 4ad041d82..000000000
--- a/prompts/feature-innovation/03_02_scene-composer.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Scene Composer
-
-> **Task file:** `prompts/feature-innovation/03_02_scene-composer.md`
-> **Surface:** `/compose`
-> **Primary source:** `pages/compose.html`, `src/scene-compose.js`, `src/shared/log.js`
-> **Atlas reference:** `docs/ux-flows/03-3d-editing-viewer.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is an agent owner who wants their avatar to look unique — to wear gear, hold props, carry accessories — without modeling anything. Scene Composer is text-to-3D dressing: forge an item from a prompt (`/api/forge`), attach it to an avatar bone (Head/Torso/Arms/Legs), and save it as the avatar's outfit (`PATCH /api/avatars/:id`). It's the equip screen of the platform.
-
-"Gamechanging" here means reinventing **dressing and equipping** so it feels like a stylist, not a 3D toolchain. Today the user prompts, waits, gets a blob, and manually parents it to a bone with a `<select>`. The best version understands intent ("give me a samurai loadout"), auto-fits the item to the avatar's proportions, snaps it to the right attachment point automatically, and lets the user build, save, and switch between named outfits like a wardrobe. Make it the thing people use to make their agent *theirs* — and to flex it.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (game character creators — Fortnite/ZEPETO/Ready Player Me wardrobes, Roblox avatar editor, VRoid Studio). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/compose` (`vite.config.js` → `pages/compose.html` → `src/scene-compose.js`).
-- **Source:** `<script type="module" src="/src/scene-compose.js">` (compose.html:377). Sets up renderer/scene/PMREM env, OrbitControls, `TransformControls` gizmo, undo/redo stack; on IIFE boot reads `?glb=` / `?avatar=` and renders the hierarchy (scene-compose.js:107-120, 940-964, 1343).
-- **Current flow:** ~5 required steps — arrive → forge (or import) → select → transform → export; plus ~7 optional (load/browse/skip avatar, intent chips, bone attach, rename/visibility, camera presets, screenshot, save outfit).
-- **What works today:** Forge from text with intent chips (accessory/item/scene/creature/vehicle → `model_category`), staged progress bar, poll `/api/forge?job=<id>` every 3s until `done`/`failed`/timeout (scene-compose.js:1071-1142). Load avatar by URL, **Browse** modal from `/api/explore?type=avatar&limit=24`, or **Skip** (scene-compose.js:967-999). Click-to-select + hierarchy list `#ol`; gizmo translate/rotate/scale, world/local (X), grid snap (Ctrl+G), duplicate (Ctrl+D), frame (F). Bone-attach: when an avatar with bones is loaded, the inspector shows a region-grouped bone `<select>`; choosing one calls `attachToBone` to parent the item under the bone (scene-compose.js:783-895). Rename/visibility/delete with disposal; camera presets; screenshot → `scene-compose.png`; Export GLB bundles visible non-bone-attached objects → `scene-compose.glb`; **Save outfit** PATCHes `/api/avatars/<id>` with `accessories` (bone, glbUrl, name) (scene-compose.js:1284-1335).
-- **Real APIs / dependencies already wired:** `POST /api/forge` + `GET /api/forge?job=<id>` (with `x-forge-client` header from a generated `forge_client_key` in localStorage); `GET /api/forge-gallery?limit=24`; `GET /api/explore?type=avatar&limit=24`; `GET /api/avatars/<id>`; `PATCH /api/avatars/<id>`. Imports GLB/glTF (URL/file); exports binary GLB + PNG.
-- **Where it's mediocre, thin, or unfinished:** Attachment is manual and dumb — the user must *know* which bone, pick it from a dropdown, then hand-fit position/rotation/scale; nothing auto-fits to the avatar's size or snaps to a sensible anchor. There's no concept of an **outfit you can name, switch, or own multiple of** — it's a single `accessories` blob per avatar. No symmetry (one glove ≠ two gloves). No re-dressing a previously forged item (the forge gallery exists at `/api/forge-gallery` but isn't a first-class wardrobe). No live preview of the avatar's idle animation while dressed. No sharing an outfit, no "remix someone's look." Saving requires an `/api/avatars/<id>`-sourced avatar; otherwise it dead-ends at "Use Export GLB."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Auto-fit + auto-attach.** When an item is forged or dropped, infer the right bone from its `model_category`/prompt and the avatar skeleton, snap it to that anchor, and scale it to the avatar's proportions automatically — the `<select>` becomes a correction, not a requirement. A "snap to nearest bone" on drag-release makes manual placement feel magnetic.
-- **Named, switchable wardrobe / loadouts.** Turn the single `accessories` blob into multiple named outfits per avatar (extend the avatar save shape), with thumbnails, one-click equip, and a "current look" indicator. Your forged items and `/api/forge-gallery` history become a re-droppable closet, not throwaway blobs.
-- **Outfit prompts ("loadout intents").** A single prompt like "cyberpunk street samurai" forges *a coordinated set* (helmet + jacket + blade), each auto-attached — orchestrate multiple `/api/forge` jobs with combined progress, not one item at a time.
-- **Symmetry + paired attachments.** Mirror a forged glove/boot/pauldron across the body automatically; one forge, two correctly-placed items.
-- **Cross-feature wiring:** A dressed avatar should flow straight into the rest of the platform — "Pose this look" → `/pose?avatar=<id>` (the pose studio already loads `?avatar=`), "Open in Scene" → `/scene?model=<glb>`, and the saved outfit should render on the agent's `/app` and on-chain card. Close the Forge → Compose → Pose → App loop so a look you build here is the look everywhere.
-- **Live idle preview while dressing** (play the avatar's idle/taunt clip so gear is judged in motion, not a T-pose) and a one-tap **shareable look card** (turntable PNG/clip) to flex the result.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/03_02_scene-composer.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/03-3d-editing-viewer.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/03_03_animation-studio.md b/prompts/feature-innovation/03_03_animation-studio.md
deleted file mode 100644
index 4a196ad0c..000000000
--- a/prompts/feature-innovation/03_03_animation-studio.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Animation Studio
-
-> **Task file:** `prompts/feature-innovation/03_03_animation-studio.md`
-> **Surface:** `/pose`
-> **Primary source:** `pages/pose.html`, `src/pose-studio.js` (entry), `src/pose-rig.js`, `src/pose-animation.js`, `src/pose-presets.js`, `src/pose-library.js`, `src/pose-share.js`, `src/animation-library.js`, `src/shared/scene-handoff.js`
-> **Atlas reference:** `docs/ux-flows/03-3d-editing-viewer.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator who wants their 3D character to *move* — wave, dance, fight, emote — and, increasingly, who wants to **sell** those motions to other agent owners. Animation Studio is a browser keyframe rig: a built-in mannequin (no asset needed), FK/IK posing, preset poses, a curated + AI motion library, a timeline with easing, GLB/JSON export, a scene hand-off to `/scene`, and a real USDC sell flow (R2 presign → upload → `/api/animations/sell`).
-
-"Gamechanging" here means making 3D animation authoring **effortless and novel** — and making animation a real **economy**. Animation is the hardest craft on the platform; most owners will never keyframe. The best version lets a non-animator describe motion in words and refine it on a rig, lets an animator author once and earn forever, and makes a clip a first-class tradeable asset that plays on any avatar across three.ws. Build the place where the platform's motion library is born.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Cascadeur, Mixamo, Adobe Character Animator, Rokoko, Cartwheel/AI text-to-motion, Blender's dope sheet). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/pose` (`vite.config.js` → `pages/pose.html` → `src/pose-studio.js`).
-- **Source:** `<script type="module" src="/src/pose-studio.js">` (pose.html:2082). `boot()` on `DOMContentLoaded` builds the Three.js scene/renderer (`preserveDrawingBuffer` for screenshots), OrbitControls, a rotate `TransformControls`, lights/grid/prop layer, mounts the built-in `MannequinRig` from `pose-rig.js` (pose-studio.js:406-408), starts `tick()`. (`src/pose-mannequin.js` and `src/avatar-pose.js` exist but are **not** on this load path.)
-- **Current flow:** ~6 required steps — arrive → select bone → FK pose → add keyframe → scrub/play → export; plus ~7 optional (load/switch avatar, scene/model tuning, IK, preset pose, motion library/AI, import pose JSON, save/sell/scene-handoff/screenshot).
-- **What works today:** Mannequin mounts at boot with a starting pose (`#p=`/`?p=` shared pose else `contrapposto`). `?avatar=<id>` loads a rigged GLB (`makeGltfRig`), `?anim=<id>` opens a saved clip. Bone select by click (`pickBoneAt`), searchable list, or IK handle. FK: rotate gizmo + X/Y/Z sliders + reset. IK toggle (**I**) drags cyan limb handles → `rig.solveIK` (FK/IK mutually exclusive). Grouped preset poses. **Rigged-GLB only:** curated `AnimationLibrary` cards from `/animations/manifest.json` retarget+play; AI text-to-motion `POST /api/forge-motion` + poll. Timeline: **K** captures keyframe, drag diamonds to retime, per-key easing, name/duration/FPS/loop; transport play/pause/stop/jump, slerp interpolation (`sampleAtTime`). Completion paths: Export JSON, Export GLB (`bakeAnimatedGlb`), **Record in Scene →** (bake → IndexedDB → `/scene?handoff=1`), **Save** (auth-gated, `POST/PATCH /api/animations/clips`), Export pose JSON / PNG, **Sell** for USDC.
-- **Real APIs / dependencies already wired:** `GET /api/avatars/:id`; `GET /api/auth/me`; clip CRUD `POST/PATCH/DELETE/GET /api/animations/clips[/:id]` (mine + `include_public=true&visibility=public`); `POST /api/animations/thumbnail`; sell `POST /api/animations/presign` → R2 `PUT upload_url` → `POST /api/animations/sell` (USDC on Base or Solana); `GET /animations/manifest.json`, `POST /api/forge-motion` + poll. Scene handoff via `putSceneHandoff` (IndexedDB) → `/scene?handoff=1`. URL pose codec `#p=`/`?p=` (`pose-share.js`).
-- **Where it's mediocre, thin, or unfinished:** Keyframing is pure manual labor — no motion capture, no physics, no procedural helpers (no auto-walk-cycle, no "loop-ify", no foot-locking on a moving figure), no onion-skinning or ghost frames to see motion arcs. The AI motion path is one-shot generate; you can't *refine* a generated clip on the rig and re-export. Selling is a single-clip checkout with no storefront feel — no browsing others' clips for sale *inside* the studio, no preview-on-your-avatar before buy, no packs/bundles, no royalties story. Save/sell are auth-gated but the sign-in detour is clunky. No collaboration, no comments, no "remix this clip." The economy exists in plumbing but not as an experience.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Text-to-motion that you can *refine*, not just accept.** Generate via `/api/forge-motion`, drop the result onto the timeline as editable keyframes, let the creator tweak FK/IK on top, then re-export/sell. AI gets you 80%; the rig gets you the last 20%. That round-trip is the novel part.
-- **Procedural authoring helpers.** "Make it loop seamlessly" (match first/last keyframe + ease), foot-locking for locomotion, mirror-pose (left↔right), and a webcam/pose-estimation capture path that drives the rig live — record real motion, clean it on the timeline. Turn an afternoon of keyframing into minutes.
-- **An animation *marketplace* inside the studio, not just a checkout.** A browsable storefront panel (the API already serves `include_public=true&visibility=public`) where you preview any for-sale clip **retargeted onto your own avatar** before buying in USDC, with packs/bundles and a clear creator-earnings view. Make selling feel like a shop, not a form submit.
-- **Onion-skinning + motion arcs** in the viewport (ghost frames, traced joint paths) — the single feature that separates a real animation tool from a pose toy.
-- **Cross-feature wiring:** Every saved/bought clip should be instantly playable everywhere — surface owned clips in `/app`'s animation dock and on the agent's on-chain card, let `/compose` preview a dressed avatar *in motion* using a chosen clip, and make "Record in Scene →" produce a shareable rendered clip via Scene Studio's Player. A motion authored here becomes the agent's signature move platform-wide.
-- **Frictionless auth + autosave drafts** so a half-built clip is never lost to a sign-in redirect (the sessionStorage stash exists — make it seamless and visible).
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/03_03_animation-studio.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/03-3d-editing-viewer.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/03_04_gltf-validator.md b/prompts/feature-innovation/03_04_gltf-validator.md
deleted file mode 100644
index 4049134bf..000000000
--- a/prompts/feature-innovation/03_04_gltf-validator.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — glTF Validator
-
-> **Task file:** `prompts/feature-innovation/03_04_gltf-validator.md`
-> **Surface:** `/validation`
-> **Primary source:** `public/validation/index.html`, `src/validation-page.js`, `src/validation-ui.js`, `src/validator.js`, `src/gltf-inspect.js`, `src/components/validator-report.jsx`, `src/components/inspect-report.jsx`, `src/erc8004/validation-recorder.js`, `src/erc8004/agent-registry.js`
-> **Atlas reference:** `docs/ux-flows/03-3d-editing-viewer.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator about to publish or deploy a 3D asset — and they need to know it's *good*: spec-valid, performant, and trustworthy. Validation runs the official Khronos `gltf-validator` and the glTF-Transform inspector fully client-side, surfaces errors/warnings by severity plus optimization suggestions, and can **pin the report to IPFS and sign an on-chain attestation** (ERC-8004 validation record) so the asset's quality is verifiable.
-
-"Gamechanging" here means turning validation from a chore into a **delightful pre-publish gate** that creators *want* to run — because it doesn't just judge, it *fixes*. Today it reports problems and stops. The best version explains each issue in plain language, one-click-applies the optimization (compress, dedupe, resize textures) via glTF-Transform, shows the before/after, and hands a clean, signed asset straight to the deploy flow. Make passing validation feel like leveling up, and make the on-chain attestation a badge of honor.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Khronos glTF Validator + Sample Viewer, gltf.report by Don McCurdy, RapidCompact, Babylon Sandbox, Vercel/Lighthouse-grade pass/fail UX). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/validation` (`vite.config.js` → `public/validation/index.html` → `src/validation-ui.js` + `src/validation-page.js`, + `src/validator.js`).
-- **Source:** module at index.html:1040-1042 imports `ValidationDashboard` (validation-ui.js) and `ValidationPage` (validation-page.js); constructs the dashboard then the page (page references the dashboard for the on-chain hand-off). On construct, `ValidationPage` renders the Khronos sample chips, binds inputs, restores the active tab from the URL hash (validation-page.js:32-46).
-- **Current flow:** ~4 required steps — arrive → provide model → read Validate report → read Inspect report; plus ~5 optional (download JSON, lightbox, pin & sign on-chain, browse records, submit report file).
-- **What works today:** Three tabs **Validate / Inspect / Records** (default `validate`, restored from `#validate|#inspect|#records`). One pipeline for four input sources: drag-drop GLB, file picker, paste URL (+Enter), or Khronos sample chip (Box/Duck/BoomBox/DamagedHelmet/Avocado from jsdelivr) (validation-page.js:78-118). `_run(bytes, name)` fires both analyses in parallel (validation-page.js:145-189): Khronos `Validator.validateBuffer` → `gltf-validator` `validateBytes` (validator.js:57-66) and glTF-Transform `inspectModel` + `suggestOptimizations`. Validate tab renders `ValidatorReport` (counts bucketed by severity, aggregated codes, generator/asset metadata); Inspect tab renders `InspectReport` (stats + suggestions). Each report downloads as JSON; standalone lightbox via `Validator.showLightbox`. **Pin & sign on-chain:** `_handOffToDashboard` switches to Records, opens the submit modal pre-filled with the in-memory report + its `hashReport` hash, then `ValidationDashboard.submitReport` connects wallet, pins to IPFS, records the attestation. Records tab: enter agent id + chain id (or `?agent=&chain=`), Load past records (`getLatestValidation`) or Submit a report JSON.
-- **Real APIs / dependencies already wired:** `fetch(url)` for URL/sample inputs; `gltf-validator` `validateBytes` (in-browser); `src/gltf-inspect.js` glTF-Transform (in-browser). On-chain: IPFS pin (`pinFile`), `recordValidation`/`getLatestValidation` (validation-recorder.js), `ensureWallet`/ethers + `window.ethereum`. The Validate tab can read the GLTFLoader-cached ArrayBuffer when invoked from the viewer (validator.js:26-34).
-- **Where it's mediocre, thin, or unfinished:** It *diagnoses but doesn't treat* — glTF-Transform can compress, dedupe, resize, prune, and Draco/Meshopt-pack, but the page only *suggests*; the user must leave to actually fix anything. No before/after preview, no visual model render alongside the report (you validate blind — no 3D view of what you're judging). No single pass/fail headline score a creator can act on at a glance. No "fix all and re-validate" loop. The on-chain attestation is powerful but buried behind a tab switch and feels like an afterthought, not a celebrated badge. No connection to where assets actually get published (no "now deploy this clean asset"). Reports vanish on reload — no history of what you've validated.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One-click fixes that actually transform the asset.** Make every optimization suggestion an *action*: compress textures, resize oversized maps, dedupe/prune, Draco/Meshopt-pack via glTF-Transform in-browser, then re-run validation automatically. Show before/after size, draw calls, and the new score. This is the leap from gltf.report to a true editor.
-- **A live 3D preview beside the report.** Render the model (the platform's viewer already exists) next to the findings so the creator sees *what* they're validating; click a mesh-related warning to highlight the offending node. Validation you can see beats validation you read.
-- **A single headline pass/fail "publish score"** (Lighthouse-style ring) combining spec-validity + performance budget, with the most impactful fixes surfaced first — the screenshot-worthy moment.
-- **Make the on-chain attestation a celebrated badge.** After a clean pass, a one-tap "Pin & sign" that mints the verifiable quality record and produces a shareable, embeddable **Verified Asset** badge linking to the on-chain record — turn ERC-8004 validation into social proof, not a hidden sub-flow.
-- **Cross-feature wiring:** Position validation as *the* pre-publish gate — accept hand-offs from Scene Studio export, Composer, and the `/app` editor ("Validate before you deploy"), and on a clean pass route straight into deploy / save-to-account / agent creation. Surface the validation badge on the agent's on-chain card and marketplace listing so buyers trust the geometry.
-- **Validation history** (persist past runs per user/asset) so a creator sees their assets improve over time, with re-validate on demand.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/03_04_gltf-validator.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/03-3d-editing-viewer.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/03_05_viewer-app.md b/prompts/feature-innovation/03_05_viewer-app.md
deleted file mode 100644
index c9f354e58..000000000
--- a/prompts/feature-innovation/03_05_viewer-app.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — 3D Viewer / Editor (main app)
-
-> **Task file:** `prompts/feature-innovation/03_05_viewer-app.md`
-> **Surface:** `/app`
-> **Primary source:** `pages/app.html`, `src/app.js` (~2596 lines), `src/viewer.js`, `src/editor/index.js`, `src/validator.js`, `src/account.js`, `src/wallet.js`, `src/erc8004/*`, `src/widgets/*`, `src/components/screenshot-modal.js`, `src/next-layout.js`
-> **Atlas reference:** `docs/ux-flows/03-3d-editing-viewer.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-`/app` is the heart of three.ws — the surface where a 3D agent comes alive. It's a drag-drop glTF/GLB viewer *and* inspector *and* editor *and* the runtime home of an on-chain agent, all dispatched by route mode (default avatar, kiosk, deploy, showcase, on-chain, widget embed, authenticated agent-edit). The default CZ avatar loads for everyone, anonymous included; signed-in owners get the dat.GUI/Next-layout editor, material/texture tools, animation dock, agent chat, screenshots, GLB export, save-to-account, validation, and cross-links to Composer/Studio/deploy.
-
-"Gamechanging" here means reinventing the **drag-drop glTF viewer/inspector** so it's not "a model on a turntable with sliders," but the most alive, most useful agent canvas on the web. A first-time visitor should drop a GLB and within seconds *feel* the platform — see it lit beautifully, inspect it deeply, animate it, fix it, and turn it into a live agent. The viewer is the front door; make it irresistible and make every path from it lead somewhere meaningful.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (`<model-viewer>`, Babylon Sandbox, Sketchfab, gltf.report, three.js editor, Spline embeds). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/app` (and its mode variants: kiosk, `/deploy`, `/showcase`, on-chain `/a/<chain>/<id>`, chat embed `/a/<uuid>?embed=1`, `#widget=<id>`, `?agent=<uuid>`). `vite.config.js` → `pages/app.html` → `src/app.js`.
-- **Source:** `<script defer type="module" src="/src/app.js">` (app.html:57). `_bootApp()` constructs `new App(document.body, location)`, exposes `window.VIEWER.app` (app.js:2583-2596). The constructor (app.js:162-401) parses hash+query into `this.options`, conditionally builds dropzone/avatar-creator/layout/nav, dispatches on route mode, inits the agent system + widget bridge.
-- **Current flow:** ~3 required steps — arrive → model auto-loads → view/orbit; plus ~11 optional (load own model, GUI controls, animations, env/lights/camera, material/texture editing, screenshot, export GLB, save to account, validate review, cross-links, agent chat).
-- **What works today:** Auto-load `?resume=<token>` else `options.model || '/avatars/cz.glb'`; default CZ crossfades into a "taunt" landing clip (app.js:451-486). `view()` → WebGL check → `createViewer()` → `viewer.load(url,…)` with progress → attach avatar, notify editor, configure animations, set AR target, run validator (app.js:1783-1876). Load own model: `SimpleDropzone` drag-drop `.glb`/`.gltf`/folder, `#file-input`, `?model=`/`#model=` (host-validated by `isSafeQueryModelUrl`), `?agent=<uuid>`. dat.GUI / Next-layout editor: Display, Lighting (IBL/envMap, exposure, tone mapping, punctual), Light Probes, Animation, Morph Targets, Cameras, Agent follow, Performance. Animations from `/animations/manifest.json` (`?anim=` honored), dock with picker/scrubber/loop. `Editor` (`MaterialEditor`, `TextureInspector`, `SceneExplorer`, `MagicBrush`) rebuilt per model. Screenshot → `ScreenshotModal`. Export GLB (+ postMessage `exportGLB` base64 bridge). Save edits (R2 presign+upload+PATCH) / Save to account (sign-out → stash + `/login?next=…`; sign-in → save GLB, create/link agent, redirect `/agent/<id>`). Validator runs on every non-kiosk load (badge + lightbox). Cross-links: "Make this a widget" → `/studio?model=`, "Open in Composer" → `/compose?glb=`, "Deploy on Solana" → guided agent. NichAgent chat/voice + thought bubble.
-- **Real APIs / dependencies already wired:** `GET /api/auth/me`, `POST /api/auth/logout`, `GET /api/avatars/<id>`, `GET /api/agents/<id>`, `GET /api/agents/me`, `POST /api/agents`, `PUT /api/agents/<id>`, `POST /api/avatars/thumbnail`, `POST /api/widgets/<id>/view`, `GET /animations/manifest.json` + `HEAD /animations/*.glb`; `saveRemoteGlbToAccount` (R2); editor save (R2); on-chain dynamic imports (`erc8004/queries|abi|register-ui|showcase`) + Solana/ETH RPC; IPFS/Arweave resolution (`ipfs.js`). In-browser `gltf-validator`. AR: USDZ (iOS) + GLB (Android).
-- **Where it's mediocre, thin, or unfinished:** `app.js` is a ~2596-line monolith carrying seven route modes — the *default viewer experience* is buried under embed/widget/on-chain plumbing and feels generic the moment a model loads (a model + a dat.GUI panel). dat.GUI is a developer aesthetic, not a product UI; the Next-layout is partial. Inspection is shallow vs gltf.report (no node tree drill-down, no per-material/texture/draw-call breakdown surfaced beautifully, no scene graph search). The anonymous experience is a gate overlay over the CZ avatar — it tells you to sign in rather than *wowing* you first. Cross-links exist but the "what do I do with this model" journey isn't guided. No comparison/diff of two models, no shareable viewer permalink with camera state, no presentation/embed polish to rival Sketchfab.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A drop-to-wow first impression.** The instant a GLB lands, auto-frame, auto-light with a flattering studio HDRI, kick a subtle idle/turntable, and surface a clean inspector + "what next" rail — replace the dat.GUI-on-a-turntable feel with a product-grade canvas a first-timer screenshots immediately.
-- **Deep, beautiful inspection** to beat gltf.report: a searchable scene-graph tree (meshes, materials, textures, animations, morph targets, bones), per-node stats (tris, draw calls, texture memory), click-a-node-to-isolate/highlight, and a materials/textures gallery — inspection that's a joy, not a JSON dump.
-- **Shareable viewer permalinks with camera + display state.** Encode camera, env, active animation, and display toggles into a URL (the share codec pattern exists in `pose-share.js`) so a creator can send a framed, lit, posed view — a Sketchfab-grade embed, but yours.
-- **A guided "turn this model into an agent" path.** From any dropped GLB, walk the anonymous/owner straight through: name it → validate (hand off to `/validation`) → dress it (`/compose`) → animate it (`/pose`) → deploy on-chain — the viewer becomes the on-ramp to the whole platform instead of a dead-end turntable.
-- **Cross-feature wiring:** Make `/app` the hub it's positioned to be — every adjacent surface should be one intentional click away *and* round-trip back, owned animations/outfits/validation-badges should render here, and the on-chain agent card should reflect exactly what you see in the viewer. Also factor the default-viewer experience out of the route-mode monolith so it can be made excellent without risking the embed/widget paths.
-- **Compare two models side-by-side** (before/after optimization, two avatar variants) with synced cameras — a genuinely novel inspector feature.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/03_05_viewer-app.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/03-3d-editing-viewer.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/04_01_widget-studio.md b/prompts/feature-innovation/04_01_widget-studio.md
deleted file mode 100644
index 7f15c9719..000000000
--- a/prompts/feature-innovation/04_01_widget-studio.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Widget Studio (the embeddable 3D AI-agent builder)
-
-> **Task file:** `prompts/feature-innovation/04_01_widget-studio.md`
-> **Surface:** `/studio`, `/studio/` (deep links `?edit=<id>`, `?template=<id>`, `?type=<type>`, `?model=<url>`, `?avatar=<id>`)
-> **Primary source:** `public/studio/index.html`, `public/studio/studio.js`, `public/studio/studio.css`, `public/studio/launch-panel.js`, `public/studio/knowledge-panel.js` (preview iframe = `/widget` → `src/app.js`)
-> **Atlas reference:** `docs/ux-flows/04-embed-widget-studio.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a builder, founder, KOL, or community manager who wants a **living 3D AI agent on their own website** — a turntable of their token mascot, a talking on-brand support agent, a live trades canvas — without touching WebGL, shaders, or LLM plumbing. Widget Studio is where they assemble it: pick an avatar, pick one of 9 widget types, brand it, wire the agent's brain and voice, frame the camera, and walk away with an iframe + `<script>` snippet that drops onto any site. It exists to turn "I have a 3D agent somewhere" into "my agent is live on my homepage in 90 seconds."
-
-"Gamechanging" here means the **single best embeddable-agent builder on the internet** — Stripe-Checkout-tier clarity, Intercom-Messenger-tier polish, Figma-tier live editing. A first-time anonymous visitor should configure a *talking, on-brand 3D agent* and see it respond in the preview before they ever sign in, then paste one line and have it live. The talking-agent AI widget specifically should feel like a product people screenshot: a 3D character that listens, speaks (voice in/out), knows the brand's docs (RAG), and can take actions — not a chatbot bubble with a mascot taped on.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe Checkout/Elements config, Intercom Messenger customizer, Linear's settings craft, Figma live preview, Spline/Vercel embed flows, ElevenLabs voice agents). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/studio`, `/studio/` serving `public/studio/index.html`; preview iframe loads `/widget` (slim `src/app.js` shell); deep links `?edit=`, `?template=`, `?type=`, `?model=`, `?avatar=`.
-- **Source:** `public/studio/index.html`, `studio.js`, `studio.css`, `launch-panel.js`, `knowledge-panel.js`.
-- **Current flow:** 10 required steps (+5 optional) — boot/`fetchMe()` → render **9-type grid** (turntable, animation-gallery, talking-agent, passport, hotspot-tour, pumpfun-feed, kol-trades, live-trades-canvas, bonding-curve) + avatar list → pick avatar → pick type → live preview in `/widget` iframe via `postMessage({type:'widget:config'})` → configure Brand (name, bg, accent, caption, controls, auto-rotate, environment, public) with 200 ms debounced re-post → configure type fields → frame camera ("Use current view" reads `previewIfr.contentWindow.VIEWER.viewer.activeCamera`) → save draft (POST/PATCH `/api/widgets`) → generate embed modal (iframe + `<script async src="/embed.js" data-widget>` snippet, `/w/<id>` URL).
-- **What works today:** All 9 types are `ready`; built-in **demo avatar (CZ, `/avatars/cz.glb`)** lets anonymous users configure + preview + generate a baked-fixture embed (`wdgt_demo_talking`) without sign-in; talking-agent supports agent name/title, greeting, system prompt, LLM provider (Anthropic/OpenAI/watsonx/Groq/OpenRouter/custom proxy), skills, voice in/out, rate limits, and a **Knowledge (RAG) panel** once saved; ⚡ Launch tab (`launch-panel.js`) can launch the agent's coin; device-frame switch (desktop/tablet/mobile); embed-modal include toggles emit `noAnimations=1`/`noChat=1`/`noControls=1`.
-- **Real APIs / dependencies already wired:** `/api/auth/me`, `/api/auth/logout`, `/api/avatars`, `/api/avatars/public`, `/api/avatars/:id` (POST register), `/api/widgets` (GET/POST/PATCH/DELETE), `/api/widgets/:id/og` (poster), preview `/widget#…`, embed loader `/embed.js`, live `/w/<id>`, importmap `@solana/web3.js` + `@solana/spl-token` from esm.sh (Launch tab).
-- **Where it's mediocre, thin, or unfinished:** Config is a long scroll of form fields, not a guided composition — no opinionated presets, no "remix this look." The talking-agent is configured *blind*: you write a system prompt and pick a provider but **can't actually talk to it inside the Studio before embedding** — the preview shows the model, not a live conversation/voice test. No way to test latency, voice, or a real RAG answer before paste. No theming beyond bg/accent (no font, radius, shadow, dark/light, glass). The embed modal hands over a snippet but offers **no framework-native code** (React/Vue/Svelte/WordPress) and **no post-embed analytics**. Camera framing is a single "use current view" with no presets. No undo/redo, no draft autosave, no shareable "studio session" link. Empty/error states exist but are utilitarian.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Live "talk to it" test bench, in-Studio.** Make the talking-agent widget *answer for real* inside the preview before embedding — a docked chat + push-to-talk (voice in/out) bar that hits the same LLM provider + RAG the embed will use, streaming the response and animating the 3D agent's lip/emote bridge (`v1.avatar.*` postMessage). Show live **latency, token, and cost** readouts per turn so the builder tunes the prompt/provider against reality, not vibes. "Sounds right → ship it."
-- **Look presets + one-click remix.** Ship a curated set of opinionated **theme presets** (glass, neon-trade-desk, clean-light, brutalist, on-brand-from-accent) that set bg/accent/font/radius/shadow/environment/camera together. Add a brand-color eyedropper that derives an entire harmonious theme from one hex. Let the builder **"Remix"** any gallery widget or another public widget into a new draft (extends the existing `?template=` clone path) — composition over form-filling.
-- **Smart camera director.** Replace single "use current view" with auto-suggested framing presets (hero portrait, three-quarter, full-body, orbit-start) computed from the GLB bounds, plus a recordable **intro orbit** the embed plays once on first paint. Screenshot-grade defaults so nobody ships an agent staring at the floor.
-- **Embed analytics loop (cross-feature).** Every generated embed should report impressions, interactions, chats, and voice sessions back to a real endpoint, surfaced on a **"Live" tab** in the Studio for that widget (and on the agent profile / dashboard). Close the loop: the builder sees their agent working in the wild and tunes it. Wire this so `/dashboard` and the agent home page surface "your widgets" with real numbers.
-- **Cross-feature wiring — Studio ↔ Avatar Studio ↔ Share/Embed:** Add an "Edit appearance" jump from any widget's avatar into `/avatar-studio?edit=<id>` and back (round-trip preserving the draft via `?edit=` on return). Surface the **SharePanel/`<agent-3d>`** snippet *inside* the Studio embed modal as a peer to the iframe/script options so the two embed systems converge. From a talking-agent draft, offer "Launch its coin" (⚡ Launch tab) and "Open agent profile" so a widget is never a dead end.
-- **Paste-and-go magic moment.** The embed modal should feel like Stripe's: copy → a tiny "preview on a fake site" pane shows exactly how it'll look in-page; a "Send to my phone" QR; framework tabs (HTML / React / Vue / Svelte / WordPress shortcode) generated from the same canonical URL builder.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/04_01_widget-studio.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/04-embed-widget-studio.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/04_02_avatar-studio.md b/prompts/feature-innovation/04_02_avatar-studio.md
deleted file mode 100644
index 5529318fb..000000000
--- a/prompts/feature-innovation/04_02_avatar-studio.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Avatar Studio (the appearance builder that feeds every embed)
-
-> **Task file:** `prompts/feature-innovation/04_02_avatar-studio.md`
-> **Surface:** `/avatar-studio`, `/create/studio` (edit mode `?edit=<id>`)
-> **Primary source:** `pages/avatar-studio.html`, `src/avatar-studio.js` (+ `avatar-studio-utils.js`, `avatar-studio-optimize.js`, `avatar-sculpt.js`, `voice/talk-scene.js`, `agent-accessories.js`, `idle-animation.js`, `account.js`)
-> **Atlas reference:** `docs/ux-flows/04-embed-widget-studio.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants their agent to *look* like them, their brand, or their character — and they want it without learning Blender. Avatar Studio is the **upstream appearance builder**: starting from a base GLB, the user recolors skin/hair/outfit, adds hats/glasses/earrings, sculpts the face with morphs, hides garment layers, and saves a re-editable, optimized GLB to their account. That avatar then becomes selectable in Widget Studio and embeddable through the SharePanel/`<agent-3d>` flows. It exists so that the identity at the center of every embed is *theirs*, not a stock mannequin.
-
-"Gamechanging" here means **deep customization that feels effortless** — the depth of a character creator (RPM/MetaHuman ambition, scoped to GLB+morphs) with the friction of picking a profile photo. A first-time user should land on a great-looking default, make it unmistakably their own in under a minute, and never see a broken morph, a blown-out optimize, or a lost edit. The avatar that comes out should be the thing people want *talking on their site* in the talking-agent widget.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Ready Player Me's editor, Apple Memoji/Genmoji, MetaHuman Creator, Figma's color/property panels, Linear's instant-feel UI). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/avatar-studio` and `/create/studio` (create from `/avatars/default.glb`); `?edit=<id>` reloads a saved avatar's appearance.
-- **Source:** `pages/avatar-studio.html`, `src/avatar-studio.js` (+ `avatar-studio-utils.js`, `avatar-studio-optimize.js`, `avatar-sculpt.js`, `voice/talk-scene.js`, `agent-accessories.js`, `idle-animation.js`, `account.js`). Title: "Avatar Studio".
-- **Current flow:** 7 required steps (+4 optional) — boot loads `BASE_GLB_URL` into a `TalkScene` viewport with idle breathing/blinking + accessory presets → (edit mode hydrates saved colors/morphs/accessories/hidden layers) → customize via tabs (Color: skin/hair/outfit swatches + hex; Hats; Glasses; Earrings; Face sculpt morphs), each applied live to the scene graph → optional show/hide garment layers + accessory search → **Save** (GLTFExporter exports the live scene, `avatar-studio-optimize.js` optimizes/validates the GLB, `account.js` uploads to `/api/avatars`, PATCHes appearance JSON so it stays re-editable, uploads a snapshot thumbnail) → the avatar appears in Widget Studio's library + embed/share panels.
-- **What works today:** Live scene-graph editing; undo/redo history (up to 50); single-select tabs (hat/glasses) vs multi (earrings); GLTFExporter save with optimize/validate; appearance JSON round-trip for re-editing; idle animation (breathing/blinking) via `idle-animation.js`; `TalkScene` viewport shared with the voice stack; snapshot thumbnail upload; unsaved-changes tracking via `appearanceEqual`; signed-out save routes to login.
-- **Real APIs / dependencies already wired:** `/avatars/default.glb`, accessory preset assets, `/api/avatars` (save + PATCH), avatar-snapshot upload, GLTFExporter, `/api/auth/me` (via `account.js`). Hands off to `/studio`, SharePanel (`/agent/<id>/embed`), `/a-embed.html`.
-- **Where it's mediocre, thin, or unfinished:** Customization is **shallow relative to the bar** — finite swatch/accessory presets, sculpt limited to whatever morphs the base GLB ships. There's **no path from a real person to an avatar** surfaced here (selfie/photo → avatar exists elsewhere in the platform but isn't wired in). No preset "looks"/outfits to start from, no randomize/"surprise me," no save-as-variant. No live "this is how it'll talk" — the `TalkScene` is right there but the user can't hear/see the avatar speak or emote before committing it to an embed. Queued ops "swallow + log failures" — meaning some failures are silent, violating designed-error-state rules. Optimize/validate failures surface but without guided recovery. Mobile ergonomics of a tab+swatch+viewport layout are unproven at 320px. No accessibility pass on the swatch grid / sculpt sliders.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Curated "Looks" you start from, not a blank mannequin.** Ship a gallery of opinionated complete presets (outfit + palette + accessories + face baseline) — "Founder," "Degen," "Support Agent," "Streamer," "On-brand from my color." One tap sets everything; the user refines from a great starting point. Add **"Surprise me"** (seeded-random, reproducible) and **save-as-variant** so one base spawns a wardrobe.
-- **Talk-test the look in place.** The `TalkScene` already powers voice — let the user press-to-talk or type a line and watch the *avatar they're editing* speak/emote/lip-sync via the `v1.avatar.*` bridge, right in the editor. The appearance builder and the talking-agent embed share the same character; prove the look works *as a talking agent* before save. (Wire to the same provider plumbing the talking-agent widget uses.)
-- **Photo / selfie → avatar, wired in.** Surface the platform's existing selfie/scan-to-3D path as a first-class "Start from a photo" entry into the editor (the Widget Studio empty state already links "Scan yourself to 3D →" / "AI selfie →"). Make Avatar Studio the place those flows *land and refine*, closing a loop that's currently split across surfaces.
-- **Brand-aware theming + palette intelligence.** An eyedropper / hex that derives a harmonious skin/hair/outfit palette, plus contrast-aware accent suggestions so the avatar reads well against the embed backgrounds it'll live on. Tie the chosen palette to the Widget Studio theme presets so appearance and widget brand stay coherent.
-- **Cross-feature wiring — Avatar Studio ↔ Widget Studio ↔ Share/Embed:** After save, don't just dump back to a library — offer explicit next actions: "Use in a Widget" (`/studio?avatar=<id>`), "Get embed snippet" (SharePanel / `/a-embed.html?avatar=<id>`), "Open agent profile." Make `?edit=<id>` a true round-trip from those surfaces so editing appearance never loses the user's place. Surface "where this avatar is embedded" (count + links) so the builder sees their identity in use.
-- **Real history + autosave.** Promote the 50-step history into visible undo/redo with keyboard shortcuts (Cmd/Ctrl+Z / Shift), draft autosave to survive a refresh, and a "compare to saved" diff so the user always knows what's unsaved. Replace silent `queueOp` failure-swallowing with designed, retryable error states.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/04_02_avatar-studio.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/04-embed-widget-studio.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/04_03_embed-snippet-flow.md b/prompts/feature-innovation/04_03_embed-snippet-flow.md
deleted file mode 100644
index c04339263..000000000
--- a/prompts/feature-innovation/04_03_embed-snippet-flow.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Embed snippet flow (SharePanel + AgentEmbedModal + `<agent-3d>` + `/embed.js`)
-
-> **Task file:** `prompts/feature-innovation/04_03_embed-snippet-flow.md`
-> **Surface:** Share button on agent profile/home (`SharePanel`); Agent Hub "Embed" (`AgentEmbedModal`); Dashboard avatar/agent "Embed" (`openAvatarEmbedModal`); embed targets `/agent/<id>/embed`, `/embed/avatar/<handle>`, `/a-embed.html`; scripts `/embed.js`, `/embed-sdk.js`, `/dist-lib/agent-3d.js`
-> **Primary source:** `src/share-panel.js`, `src/share-panel-builders.js`, `src/share-panel.css`, `src/agent-embed-modal.js`, `src/agent-home-orphans.js`, `src/dashboard/dashboard.js`, `public/embed.js`, `/dist-lib/agent-3d.js`, `src/avatar-embed.js`
-> **Atlas reference:** `docs/ux-flows/04-embed-widget-studio.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has an agent or avatar on three.ws and wants it **live on their own site, blog, docs, Notion, WordPress, or React app** — fast, free, and looking great. This is the cross-cutting *embed experience*: the moment they click "Share" / "Embed," choose a look, copy one snippet, and paste it somewhere it instantly renders a living 3D agent. The `<agent-3d>` web component is the core primitive; `/embed.js` is the script-tag loader; SharePanel and the embed modals are the surfaces that hand it over. This feature exists to make three.ws **spread** — every embed is a billboard for the platform and a working product for its owner.
-
-"Gamechanging" here means embedding a three.ws agent is the **easiest, most magical paste-and-go in the industry** — Stripe-Buy-Button / Tally / Cal.com / Spline-tier. One line, framework-native (React/Vue/Svelte/WordPress), themeable, accessible, performant, and *measurable*: the owner pastes it and later sees real analytics on how their agent performed in the wild. No build step, no API key for the basic embed, no jank, no layout shift.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe Buy Button / Pricing Table embeds, Cal.com embed builder, Tally, Spline embed, Typeform, Intercom snippet install, Sentry/PostHog install flows). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s) / surfaces:** **Share** button on an agent profile/home (`agent-home-orphans.js` injects it → `new SharePanel({ agent }).open()`); **Agent Hub** "Embed" → `AgentEmbedModal` (`agent-hub-actions.js`); **Dashboard** avatar/agent "Embed" → `openAvatarEmbedModal` / `openAgentEmbedModal` (`dashboard.js`). Embed targets: `/agent/<id>/embed` (CSP `frame-ancestors *`), `/embed/avatar/<handle>`, `/a-embed.html?avatar=<id>`. Scripts: `/embed.js`, `/embed-sdk.js`, `/dist-lib/agent-3d.js`.
-- **Source:** `src/share-panel.js` (`SharePanel`) + `src/share-panel-builders.js` (`buildEmbedUrl`, `buildIframeSnippet`, `buildWebComponentSnippet`) + `src/share-panel.css`; `src/agent-embed-modal.js`; `src/dashboard/dashboard.js`; `public/embed.js`; `/dist-lib/agent-3d.js`; runtime `src/avatar-embed.js`.
-- **Current flow (SharePanel, 6 steps +3 optional):** Share → modal with permalink `/a/<slug|id>`, live preview iframe (`/agent/<id>/embed?preview=1`), pre-rendered snippets → optional copy link / open → customise (Background transparent/dark/light, Name plate on/off, Size small 320×420 / medium 420×520 / large 520×680; each re-renders snippets + reloads preview) → choose format + copy (**iframe** `<iframe src="/agent/<id>/embed?…">` or **Web component** `<script src="/dist-lib/agent-3d.js">` + `<agent-3d agent-id name-plate background>`) → optional OG preview (`/api/a-og?id=<id>`) + QR (canvas, SVG fallback) → paste anywhere; the embed page runs `src/avatar-embed.js` exposing the `v1.avatar.*` postMessage bridge.
-- **What works today:** Three working embed entry points; iframe + `<agent-3d>` + SDK (`/embed-sdk.js` + `Agent3D.connect()`) snippet generation; default options omitted from URL to keep it canonical/short; `embed.js` reads `data-widget`/`data-widget-url`, `data-width/height/radius/border`, `data-reveal`, `data-poster`, `data-priority`, `data-motion` and supports multiple embeds per page with a sandboxed iframe at the script position; `<agent-3d>` observes `agent-id`/`background`/`name-plate`; `avatar-embed.js` bridge supports speak/emote/morphs/lookAt/mocap/idle/hotkeys/mic/state + RPM-compatible event aliases + same-origin BroadcastChannel; QR + OG card; "Free to embed — no wallet or on-chain deployment required."
-- **Real APIs / dependencies already wired:** `/agent/<id>/embed` (preview + final), `/dist-lib/agent-3d.js`, `/embed-sdk.js`, `/embed.js`, `/api/a-og?id=<id>`, `/a/<slug|id>`, `/a-embed.html`, QR via `src/erc8004/qr.js`.
-- **Where it's mediocre, thin, or unfinished:** **Three different embed surfaces** (SharePanel, AgentEmbedModal, dashboard modal) with **divergent options, copy, and snippet builders** — inconsistent and confusing; they should share one canonical builder and feel like one product. **No framework-native snippets** — React/Vue/Svelte/WordPress users must hand-translate an iframe (the gallery has a crude inline-style JSX iframe; nothing first-class). **No theming depth** beyond bg + name-plate + 3 sizes — no accent, radius, border, font, light/dark-auto, or "match my site." **No analytics** — owners get zero feedback on impressions/interactions/chats after pasting. Snippet quality details (lazy reveal, aspect-ratio to prevent CLS, `loading`/`title`/`sandbox`/ARIA on the iframe, reduced-motion) are uneven across the three surfaces. No "test paste" sandbox to see it render before committing. No install-verification ("we detected your embed is live"). SDK tab is example-only with no copy polish.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One canonical embed engine, many surfaces.** Unify SharePanel / AgentEmbedModal / dashboard embed onto a **single snippet builder + options model** (extend `share-panel-builders.js`) so every surface produces identical, correct, accessible snippets. Same options, same copy, same QR/OG, same a11y — three entry points, one polished product.
-- **Framework-native snippet tabs.** Generate first-class **HTML iframe / `<agent-3d>` / React / Vue / Svelte / WordPress shortcode / SDK** from one canonical URL+options builder, each idiomatic (JSX with proper attrs and an aspect-ratio wrapper, a Vue SFC fragment, a Svelte snippet, a WP shortcode/block) — copy-perfect, with a one-line "install" note per framework. Make pasting into *anything* trivial.
-- **Real "test paste" + install verification.** A mini fake-website preview pane shows exactly how the embed looks in-page (light card / dark blog / docs column) before copy — and after, a lightweight **"is it live?"** check (via the embed's existing analytics ping) that tells the owner "your agent is live on example.com." Magic-moment confirmation, no guesswork.
-- **Theming that matches the host site.** Extend options to accent, corner radius, border, font inheritance, name-plate style, and **light/dark/auto** (respects host `prefers-color-scheme`), with safe canonical-URL omission of defaults. Bonus: a "paste your brand color" that themes the embed coherently — and shares the same theme tokens as Widget Studio so an agent looks identical whether embedded via Studio widget or `<agent-3d>`.
-- **Embed analytics loop (cross-feature, high value).** Ship a real, privacy-respecting analytics beacon from `/embed.js` + `<agent-3d>` (impressions, interactions, chats, voice sessions, referrer host) to a real endpoint, surfaced back in the dashboard / agent profile as "where your agent is embedded and how it's performing." Every other improvement is cosmetic next to closing this loop — embeds become a measurable growth channel.
-- **Cross-feature wiring — converge with Widget Studio + Avatar Studio:** Surface the **Widget Studio `/embed.js` script snippet** and the **`<agent-3d>` web component** as peers in the *same* embed UI, so users discover both embedding systems from one place. From any embed modal, offer "Open in Studio" (full customization), "Edit appearance" (`/avatar-studio?edit=<id>`), and "Open agent profile." Make the `v1.avatar.*` bridge a first-class, documented, copyable capability ("make your embedded agent speak on scroll / on click") so embeds become interactive, not static.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank. (Embeds especially: lazy reveal, aspect-ratio to prevent layout shift, respect reduced-motion.)
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce (snippet builders especially).
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/04_03_embed-snippet-flow.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/04-embed-widget-studio.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_01_discover.md b/prompts/feature-innovation/05_01_discover.md
deleted file mode 100644
index cdb3db5c6..000000000
--- a/prompts/feature-innovation/05_01_discover.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Discover (On-chain Agent Directory)
-
-> **Task file:** `prompts/feature-innovation/05_01_discover.md`
-> **Surface:** `/discover` (+ `/discover/a/<chain>/<id>` detail)
-> **Primary source:** `public/discover/index.html`, `public/discover/discover.js`, `public/discover/detail.{html,js,css}`, `/api/explore`, `/api/discover-detail`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone looking for an agent worth their time — a 3D character to remix, a Solana-native agent to trade with, an on-chain identity to verify. `/discover` is three.ws's front door to *everything users have ever launched*: on-chain agents, public avatars, and Solana mints, unified in one grid. They are trying to find the one agent that matters to them right now, fast, and feel that the platform *knows them*.
-
-"Gamechanging" here means turning a filterable grid into a **personalized, addictive discovery engine** — a feed that learns what this visitor is drawn to (chains, kinds, creators, 3D vs flat) and reshuffles itself accordingly, surfaces what's *moving* on-chain right now, and makes every agent one tap from preview, embed, and the detail page. Make it feel like the agent economy is alive and reacting in real time — something a user can't get from any block explorer or NFT marketplace.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Vercel's project gallery, Linear's command-driven navigation, Magic Eden / OpenSea discovery, TikTok's "for you" reflex, Are.na blocks). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/discover`; detail at `/discover/a/<chain>/<id>`, `/discover/a/sol/<asset>` (served by `/api/discover-detail`).
-- **Source:** `public/discover/index.html`, `public/discover/discover.js`, `public/discover/detail.{html,js,css}`; APIs `GET /api/explore`, `GET /api/discover-detail`, `GET /api/auth/me`.
-- **Current flow:** 2 required (+6 optional) steps — land → `loadPage()` auto-fetches `GET /api/explore?only3d=1&limit=48`, renders onchain/avatar/solana cards; optional search (250ms debounce), source filter (All/On-chain/Avatar/Solana), 3D + x402 chips, 22-chain dropdown, infinite scroll (IntersectionObserver `480px` sentinel) or "Load more", per-card Embed modal (Web component / iframe / Link / Markdown / Farcaster) + `agent://` URI copy, card click → detail.
-- **What works today:** Unified multi-source grid; URL-param hydration + `replaceState` deep links; skeletons; per-card lazy `<model-viewer>` preview (static image → model → emoji); directory totals on first page; designed filtered-empty / unfiltered-empty / error+retry states.
-- **Real APIs / dependencies already wired:** `/api/explore` (cursor paging), `/api/discover-detail`, `/api/auth/me` (my-agents chip only), `model-viewer` CDN, clipboard API.
-- **Where it's mediocre, thin, or unfinished:** It is a *static directory* — identical for every visitor, no personalization, no memory of what you clicked. Sort/x402 are applied **client-side over a page** (incomplete across the full set). No sense of momentum (what's trending, newly launched, most-traded $THREE activity) on-chain. No keyboard-driven navigation/command palette. Embed is the only "share" affordance; no collections, no save/follow. Discovery dead-ends at one card click instead of suggesting "more like this."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A "For You" rail that actually learns.** Track (locally + best-effort server-side) which chains, kinds, creators, and 3D-vs-flat cards a visitor previews/opens, and reorder the grid + a pinned "Picked for you" row accordingly. No login required — start from `localStorage` signal, upgrade with `/api/auth/me` when present. Show *why* ("Because you opened 3 Base agents").
-- **Live momentum lane.** A top strip of what's *moving right now* — newest on-chain launches, agents with rising chat/trade activity, $THREE-linked launches from the platform's own launch records — with a subtle pulse animation and relative timestamps. Make the directory feel alive, not archival.
-- **Command palette discovery (⌘K).** Type to jump: chains, kinds, creators, exact agent by name/`agent://` URI, saved filters. Keyboard-first power-user navigation that doubles as the search experience.
-- **Collections / save-for-later.** Let users star agents into named collections (local first, synced when authed) and share a collection as a deep link — turning passive browsing into curation. Wire it so a collection is embeddable via the existing embed modal mechanics.
-- **"More like this" on the detail return.** When a user comes back from a detail page, surface a contextual row of similar agents (same chain/kind/creator) instead of the cold grid.
-- **Fix sort/filter to be server-truthful.** Push x402 + sort into `/api/explore` so results are correct across the entire set, not just the loaded page.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: a personalized `/discover` should feed `/gallery`, `/characters`, `/agents`, and agent detail pages; a saved collection could surface in the user's dashboard; momentum data overlaps with `/launches`. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_01_discover.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_02_avatar-gallery.md b/prompts/feature-innovation/05_02_avatar-gallery.md
deleted file mode 100644
index 4b43785dc..000000000
--- a/prompts/feature-innovation/05_02_avatar-gallery.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Avatar Gallery
-
-> **Task file:** `prompts/feature-innovation/05_02_avatar-gallery.md`
-> **Surface:** `/gallery`
-> **Primary source:** `public/gallery/index.html`, `public/gallery/gallery.js`, `public/gallery/gallery.css`, `/api/avatars/public`, `/api/forge-gallery`, `/api/avatars`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator browsing the community's public 3D avatars, accessories, items, scenes, and creatures — looking for something to *use*: a model to drop into the studio, an accessory to equip on their own avatar, a creature to remix, or inspiration from what others forged. `/gallery` is the showroom for everything 3D the community has made public, plus a "From the Forge" community section of prompt-generated models.
-
-"Gamechanging" here means turning a thumbnail grid into a **3D try-before-you-take experience**: spin, inspect, and *equip accessories onto your own avatar live in the browser* before committing, see what's being forked and remixed most, and make the path from "I like this" to "it's on my avatar" a single fluid motion. The gallery should feel like a living wardrobe and prop room for the agent economy — something you can't get from a flat NFT gallery.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Sketchfab's 3D browsing, Ready Player Me's avatar wardrobe, Figma Community remix culture, Roblox's catalog try-on, Vercel templates). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/gallery`.
-- **Source:** `public/gallery/index.html`, `public/gallery/gallery.js`, `public/gallery/gallery.css`; APIs `GET /api/avatars/public`, `GET /api/forge-gallery`, `GET /api/avatars` (equip modal), `GET /api/auth/me` (chip).
-- **Current flow:** 2 required (+6 optional) steps — land → `renderCats()` + `resetAndLoad()` fetches `GET /api/avatars/public?limit=24&totals=1`, renders cards; then `loadForgeSection()` fetches `GET /api/forge-gallery?scope=community&limit=16` (deduped by prompt). Optional: search (250ms debounce), category chips (Avatars / Accessories / Items / Scenes / Creatures), tag chips, sort (newest / alpha), infinite scroll or Load more, per-card Embed modal, accessory "Equip" modal.
-- **What works today:** Lazy auto-rotating `<model-viewer>` per card (poster = thumbnail) or `<img>`; tag chips, onchain badge, fork count; URL-param hydration; Equip flow (fetches user's avatars via `/api/avatars`; 401 → sign-in CTA; else lists ≤12, choose → `/avatars/:id/edit?equip-glb=…&equip-bone=Head`); payoff links — thumbnail → `/app#model=<glb>`, "Use" → `/studio?avatar=<id>`, "Animate" → `/pose?avatar=<id>`, "View avatar" → `/avatars/<id>`.
-- **Real APIs / dependencies already wired:** `/api/avatars/public`, `/api/forge-gallery`, `/api/avatars`, `/api/auth/me`, `model-viewer` CDN, `onchain-badge.js`, `template-picker.js`, clipboard API.
-- **Where it's mediocre, thin, or unfinished:** The forge section swallows errors silently (no empty/error UX). Equip is a *redirect* to the editor — there is no live preview of the accessory on your avatar before you commit; bone target is hardcoded to `Head`. Cards are isolated — no remix lineage / "forked from" visualization despite a fork count existing. No way to compare or favorite. Inspection is auto-rotate only; no manual orbit/zoom hero view. Sort is thin (newest/alpha) with no "most forked/used."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Live in-browser equip preview.** Before redirecting, load the user's selected avatar GLB + the accessory GLB in a `<model-viewer>`/Three.js mini-stage, let them pick the bone (Head / Hand / Back / Hip…) and nudge position, and *see it attached live*. Only then "Apply" → editor with the chosen transform. Kill the hardcoded `Head` assumption.
-- **Remix lineage graph.** The fork count is dead data. Make each model show "forked from →" and "N remixes" as clickable lineage, so a creature's family tree is browsable. Surface a "Most remixed this week" lane that turns the gallery into a creative leaderboard.
-- **Wardrobe try-on hero.** A pinned "your avatar" silhouette (when signed in) that any accessory card can be dragged/tapped onto for an instant preview — turn the gallery into a dressing room.
-- **Compare tray.** Select 2–4 models into a side-by-side 3D compare view (synchronized orbit) before deciding — invaluable for accessories/creatures.
-- **Finish the Forge section properly.** Real loading skeletons, designed empty ("No community forges yet — be the first") and error+retry states, and wire Remix → the forge with the source prompt prefilled.
-- **Favorites + "use in" routing.** Heart a model; from a favorite, one tap routes it into `/studio`, `/pose`, `/walk` (as avatar), or `/irl` (as placed agent).
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: the gallery feeds `/studio`, `/pose`, `/walk`, `/irl`, and avatar edit; remix lineage overlaps with the forge and agent profiles; equipping touches the avatar editor. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_02_avatar-gallery.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_03_animation-gallery.md b/prompts/feature-innovation/05_03_animation-gallery.md
deleted file mode 100644
index 9047e123e..000000000
--- a/prompts/feature-innovation/05_03_animation-gallery.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Animation Gallery
-
-> **Task file:** `prompts/feature-innovation/05_03_animation-gallery.md`
-> **Surface:** `/animations`
-> **Primary source:** `pages/animations.html`, `src/animations-gallery.js`, `/api/animations/clips`, `/avatar-embed` (preview iframe), `/pose`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator who wants their avatar to *move* — to find a community animation clip (a dance, a wave, a walk cycle, an emote), see it play on a real avatar, and apply it to their own. `/animations` is the browsable library of community motion, with in-place previews on a live avatar and a payoff into `/pose`.
-
-"Gamechanging" here means turning a clip catalog into a **motion try-on studio**: preview any clip on *your* avatar (not a default one), blend/sequence clips into a routine, scrub frames, and apply with one tap — making motion as remixable as a model. The payoff is creators who can choreograph their agents, and a library that feels like a living dance floor rather than a list of files.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Mixamo's animation browser, Adobe's motion library, Cascadeur, TikTok effect previews, Figma component playground). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/animations`.
-- **Source:** `pages/animations.html`, `src/animations-gallery.js`; API `GET /api/animations/clips`; preview iframe `/avatar-embed`; payoff `/pose`.
-- **Current flow:** 2 required (+3 optional) steps — module runs `load(true)` on import → shows loading → fetches `GET /api/animations/clips?include_public=true&visibility=public&limit=24` → renders animation cards (thumbnail or 🎬 placeholder, loop/once badge, duration, optional price/tags). Optional: search (280ms debounce → `syncUrl()` + reload), filter chips (loop / once → `kind=loop|animation`), hover/click/key a card preview → lazy `<iframe>` to `/avatar-embed?model=/avatars/cz.glb&anim=<id>` (mouseleave hides), scroll sentinel infinite-load. Payoff: "Open in Studio" → `/pose?anim=<id>`.
-- **What works today:** In-place live-avatar preview via sandboxed iframe; loop/once filter; query (`?q=`, `?filter=loop|once`) hydration; designed empty / empty-search (echoes query + clear) / error+retry states; cursor infinite scroll.
-- **Real APIs / dependencies already wired:** `GET /api/animations/clips` (`credentials: 'include'`), `/avatar-embed` iframe, `/pose` nav.
-- **Where it's mediocre, thin, or unfinished:** Every preview plays on a **hardcoded default avatar** (`/avatars/cz.glb`) — never the user's. No way to preview your own avatar dancing. No sequencing/blending — clips are atomic; you can't preview "wave then walk." No scrub/timeline; you watch a loop or nothing. No sort by popularity/most-applied. Tags exist but aren't a navigable taxonomy. The card-to-pose payoff carries only the clip id, not any preview state (avatar choice, speed). Price/tags rendered but no economic loop wired.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Preview on *your* avatar.** When signed in (or via an avatar picker), swap the iframe model param to the user's GLB so every clip previews on the avatar they'll actually apply it to. Persist the chosen avatar across the session.
-- **Routine builder.** Let users queue multiple clips into a sequence (drag to reorder, set per-clip speed/loop count), preview the whole choreography on a live avatar, and "Open in Studio" with the full routine prefilled — motion becomes composable.
-- **Scrub + speed controls in-card.** A timeline scrubber and speed slider on the active preview so users can inspect a specific pose/beat, not just watch a loop.
-- **Most-applied / trending motion.** Sort and a "popular this week" lane based on real apply counts, turning the library into a motion leaderboard creators want to land on.
-- **Tag taxonomy as navigation.** Make tags first-class filters (dance / idle / combat / gesture…) with counts, deep-linkable, so motion is browsable by intent.
-- **Apply-anywhere routing.** From a clip, route into `/pose`, or directly emote it in `/walk` (G + emote slot) / `/irl` — wire motion into the live 3D surfaces.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: animations feed `/pose`, `/walk` emotes, `/irl` agent behavior, and avatar profiles; a routine could be saved to an avatar; trending motion overlaps with `/discover`. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_03_animation-gallery.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_04_characters.md b/prompts/feature-innovation/05_04_characters.md
deleted file mode 100644
index ed9022dc5..000000000
--- a/prompts/feature-innovation/05_04_characters.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Characters Directory
-
-> **Task file:** `prompts/feature-innovation/05_04_characters.md`
-> **Surface:** `/characters` (+ `/character/:id` detail/chat)
-> **Primary source:** `public/characters.html`, `src/characters.js`, `/api/characters`, `src/shared/agent-wallet-chip.js`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone who wants to *meet an AI character* — to chat with it, watch its token, or be inspired to create their own. `/characters` is the directory of AI characters on three.ws: each has a creator, a personality, chat/holder stats, and (when launched) a $-token block and Solana wallet. They are deciding which character is worth talking to or backing.
-
-"Gamechanging" here means turning a card grid into a **casting room where characters feel alive**: previewable personality (a taste of how it talks before you commit to chat), real-time signals of which characters are *being talked to and traded right now*, and a frictionless leap from "interesting" to "in conversation." Make discovering an AI character feel like discovering a creator you'll follow — something no static NFT or token list delivers.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Character.AI's discovery, Poe's bot directory, the best creator-economy profiles, Linear's polish, pump.fun's live momentum). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/characters`; card click → `/character/:id` (detail / chat).
-- **Source:** `public/characters.html` (root-level dest in `vercel.json`), `src/characters.js`; API `GET /api/characters`; `walletChipHTML` from `src/shared/agent-wallet-chip.js`.
-- **Current flow:** 1 required (+3 optional) steps — `init()` on import → `fetchCharacters(true)` renders 6 skeleton cards + fetches `GET /api/characters?limit=24&sort=new` → renders character cards (avatar image or color-hash placeholder, creator handle, description, chat-count / holders stats, optional `$`token block with symbol / market cap / 24h change, wallet chip if a Solana address exists). Optional: search (300ms debounce → reload with `q`), sort buttons (`data-sort`), "Load more" cursor pagination. Payoff: card click → `/character/:id`.
-- **What works today:** Skeletons; color-hash placeholder for missing avatars; token block + 24h change; Solana wallet chip; image-URL validation (http(s) vs placeholder); reset-vs-append render; designed empty ("No characters found.") and error ("Failed to load characters. Please try again.") states.
-- **Real APIs / dependencies already wired:** `GET /api/characters`, `walletChipHTML`.
-- **Where it's mediocre, thin, or unfinished:** Characters are flat 2D images — on a Three.js platform, no 3D avatar preview. No *taste of personality* before clicking through (you can't tell how it talks). Token block is static at render — no live price/holder movement despite being on-chain. No sense of activity ("who's being chatted with right now"). Sort is unlabeled `data-sort` buttons with no clear taxonomy (new / popular / trending / has-token). No filter by has-token vs not, or by creator. The wallet chip is informational only — no quick-action ($THREE tip / view holdings).
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Personality preview on the card.** A tap/hover that streams a one-line in-character "hello" or a rotating sample line from the character's real persona/config, so users feel its voice before committing — turn a card into an audition.
-- **3D avatar where available.** This is a Three.js platform; render the character's 3D model (lazy `<model-viewer>`) when it has one, falling back to image → color-hash. Make the directory feel native to the medium.
-- **Live momentum.** Real-time-ish refresh of chat counts, holders, and 24h token movement (poll/SSE) with subtle motion, plus a "trending now" lane — surface which characters the community is actively engaging.
-- **Quick chat from the grid.** A "Say hi" affordance that opens a lightweight chat sheet inline (or deep-links into `/character/:id` with an opening prompt prefilled) so the gap between discovery and conversation is one tap.
-- **Real filter/sort taxonomy.** Labeled, accessible controls: New / Trending / Most chatted / Has $token, plus filter by creator — deep-linkable.
-- **$THREE-aware wallet actions.** From a character's wallet chip, enable a quick $THREE tip / view-on-explorer action (coin-agnostic plumbing; $THREE is the platform coin), wiring discovery into the payment rails.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: characters connect to `/discover`, agent profiles, the payments SDK, and `/walk`/`/irl` (a character could be embodied and driven); a creator filter links to creator pages. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_04_characters.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_05_walk.md b/prompts/feature-innovation/05_05_walk.md
deleted file mode 100644
index 536bb7a94..000000000
--- a/prompts/feature-innovation/05_05_walk.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Walk (Drive Your 3D Agent)
-
-> **Task file:** `prompts/feature-innovation/05_05_walk.md`
-> **Surface:** `/walk`
-> **Primary source:** `pages/walk.html`, `src/walk.js`, `src/community/coin-world-boot.js`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to *embody* their agent — to walk, run, jump, and explore a 3D world as their avatar, alone or alongside other people's agents, and optionally drop it onto the real floor via AR camera. `/walk` is three.ws's playable 3D space: joystick/WASD movement, orbit camera, multiplayer presence over Colyseus, emotes, chat bubbles, and AR passthrough.
-
-"Gamechanging" here means making driving an agent around a shared space feel **delightful and inherently social** — a place worth hanging out, not a tech demo. The bar is "I want to bring my friends here." Movement should feel great, presence should feel alive, and the world should give people reasons to gather, perform, and interact — something between a hangout, a stage, and a playground for the agent economy.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Horizon Worlds done right, Rec Room, Roblox social spaces, Habbo-era serendipity, the polish of Apple's AR demos). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/walk` (params `?avatar=`, `?avatarUrl=`, `?name=`, `?coin=`, `?ui=hidden`, `?handle=`, `?agent=`).
-- **Source:** `pages/walk.html` (inline boot), `src/walk.js`, `src/community/coin-world-boot.js`.
-- **Current flow:** 3 required (load, move, orbit) (+ ~12 optional) — page loads → avatar resolves (`?avatarUrl` direct, else `GET /api/avatars/{id}`, else `/avatars/default.glb`) → GLB via GLTFLoader → `GET /animations/manifest.json` preloads idle/walk/run → splash fades → status pill → cosmetics + emote tray → Rapier physics WASM inits async (legacy movement until ready) → `startNet()` joins Colyseus best-effort. Move: W/A/S/D / arrows (Shift run) or mobile left joystick (nipplejs), crossfaded idle→walk→run. Orbit: mouse drag / pointer-lock or right look-stick; scroll/pinch zoom; Q/E snap-turn. Optional: name input (persisted/broadcast), avatar picker (`GET /api/avatars?limit=20`, auth), jump (Space), camera mode C, environment V, emote G+1–9, minimap M, chat T/Enter, friends F, players panel, AR passthrough (camera on tap), screenshot P, 6s record R.
-- **What works today:** Smooth camera-relative movement w/ animation blending; Rapier physics with legacy fallback; best-effort Colyseus multiplayer (remote players + chat bubbles); AR passthrough (transparent canvas over rear camera, blob shadow, light estimation); coin community mode (`?coin=` spawns CoinTotem + 7s trade polling); zen mode (`?ui=hidden`); designed error states (avatar fail, camera denied, physics fail, multiplayer offline, recording unsupported, picker w/o auth).
-- **Real APIs / dependencies already wired:** `GET /api/avatars/{id}`, `GET /api/avatars?limit=20`, `GET /animations/manifest.json`, `/api/pump/coin-trades?mint=` (coin mode, 7s), Colyseus WebSocket; device APIs `getUserMedia`, `navigator.vibrate`, `navigator.share`, `requestPointerLock`, local/sessionStorage.
-- **Where it's mediocre, thin, or unfinished:** It's mechanically solid but socially *sparse* — multiplayer is presence + chat bubbles, with no shared activities, goals, or reasons to interact. The world is mostly empty terrain; no points of interest, no spawn-with-a-friend, no rooms/instances to choose. Emotes are solo and not collaborative. AR is single-player (no shared-floor co-location like `/irl` has). No voice/spatial audio. No way to invite someone to *this* session via link. Coin mode is a totem + trade ticker, not a genuine gathering. The connection to the rest of three.ws (discover an agent → drive it here, meet its creator) is weak.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Invite-to-this-session links.** Generate a shareable URL that drops a friend into the *same* Colyseus room at your spawn point ("walk with me"). Make co-presence intentional, not random. Add a lightweight "who's here" presence bar with join sounds.
-- **Shared activities & points of interest.** Seed the world with real destinations — a stage, a portal wall of trending `/discover` agents you can walk up to and inspect, a $THREE community totem with live activity, an emote dance circle that syncs when multiple players emote together. Give people something to *do* and gather around.
-- **Co-located AR (shared floor).** Borrow `/irl`'s shared room frame so two phones in the same physical space see each other's avatars on the same real floor — turn AR from solo novelty into a shared moment.
-- **Spatial voice / proximity audio.** Opt-in WebRTC voice that attenuates with distance, so walking up to someone means you can talk — the single biggest "want to hang out" unlock.
-- **Performative emotes & reactions.** Group emote sync, floating reaction bursts, and a quick emote wheel; broadcast and render others' reactions with juice (haptics, sound, particles).
-- **Seamless discovery loop.** From `/discover`/`/gallery`/`/characters`, a "Walk as this" action that launches `/walk` embodied as that agent; conversely, in-world, tapping another player surfaces their agent profile and a follow/tip action.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: `/walk` is the embodiment layer for `/discover`, `/gallery`, `/characters`, and the payments SDK; shared-floor AR overlaps with `/irl`; coin mode overlaps with `/launches`. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_05_walk.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_06_irl.md b/prompts/feature-innovation/05_06_irl.md
deleted file mode 100644
index 5c3f6832d..000000000
--- a/prompts/feature-innovation/05_06_irl.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — IRL (Location-Anchored AR Agents)
-
-> **Task file:** `prompts/feature-innovation/05_06_irl.md`
-> **Surface:** `/irl`
-> **Primary source:** `pages/irl.html`, `src/irl.js`, `src/irl/*`, `src/irl-net.js`, `/api/irl/*`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to *leave an agent in the real world* — anchored to a physical spot — and discover the agents other people have left nearby, all without exposing anyone's location on a map. `/irl` is three.ws's location-anchored AR layer: pin your agent to a real floor via camera AR, GPS, and compass; walk around and have nearby agents fade in by proximity (dot → impostor → full mesh) with arrival cues and an interaction sheet. Location is *private* — agents appear only to people physically near them, never on a list or map.
-
-"Gamechanging" here means inventing a genuinely new social primitive: **agents you leave for each other in physical space**, discoverable only by being there. Geocaching meets the agent economy meets AR. The bar is a moment people travel to experience — finding a stranger's agent on a real street corner, leaving a reply, paying it in $THREE, and knowing the next passerby will find what you left. Privacy-first by design.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Pokémon GO's location magic, Niantic Lightship, Snap Local Lenses, Apple/Google AR anchoring, geocaching's treasure-hunt loop). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/irl` (param `?avatar=`).
-- **Source:** `pages/irl.html` (inline WebGL-gate boot), `src/irl.js`, `src/irl/*` (`onboarding.js`, `floor-anchor.js`, `room-anchor.js`, `room-session.js`, `tap-pick.js`, `gps-lifecycle.js`, `discovery.js`, `privacy-center.js`, `proximity-band.js`, `proximity-cue.js`, `sensor-fusion.js`, `share-frame.js`, `map-place.js`, `camera-fov.js`, `load-queue.js`, `perf-budget.js`), `src/irl-net.js`.
-- **Current flow:** 7 required (+ optional) — WebGL-gate at HTML load (else designed fatal overlay) → scene + default/`?avatar=` GLB, device token restored, discovery/onboarding init → tap **Camera AR** (grant `getUserMedia` environment) → `enableAR()` rear-camera feed + frozen gyro camera → tap **Pin here** (`setLocked(true)` requests location `watchPosition` + iOS motion permission, captures gyro lock pose) → first GPS fix anchors pin, starts 10s nearby poll, joins IrlNet (Colyseus) → aim at floor + **tap canvas** → caption → Confirm → `commitPin()` `POST /api/irl/pins` → poll `GET /api/irl/pins?lat=&lng=&radius=60` spawns nearby agents (LOD dot → impostor → mesh), labels + confidence rings, ENTER ~40m band fires arrival cue (haptic + chime + glow); tap nearby agent → bottom sheet → View (`GET /api/irl/agent-card`) / Pay ($THREE x402) / Message, interactions `POST /api/irl/interactions`. Optional: WebXR floor placement (Android Chrome hit-test) / iOS AR Quick Look (USDZ) / map placement (Leaflet, privacy-first); privacy center (precision Exact vs Nearby, ghost toggle); share PNG; "My pins" (`GET /api/irl/pins/mine`, `DELETE`, `PATCH` calibrate/refine).
-- **What works today:** Progressive permission onboarding with designed fallbacks; gyro-GPS + WebXR + Quick Look + map placement paths; compass-aligned vs relative anchoring; LOD proximity rendering with arrival cues; privacy-first model (no public map of pins); interaction sheet with $THREE x402 pay; Colyseus presence; rich designed error/empty states (WebGL fatal, perms denied recovery cards, GPS warm-up shimmer, 0-nearby CTA, poll-fail amber, rate-limit chip, context-lost reload).
-- **Real APIs / dependencies already wired:** `POST/PATCH/DELETE /api/irl/pins`, `GET /api/irl/pins` (+ `/mine`), `GET /api/irl/agent-card`, `POST /api/irl/interactions`, `GET /api/irl/interactions-stream` (SSE), `POST /api/irl/report`, `POST /api/irl/fix-token`; device APIs (camera, motion, geolocation, permissions, vibrate, AudioContext, WebXR immersive-ar); Colyseus (`IrlNet`, room `irl_world`); GLTFLoader (+Draco/meshopt), Leaflet/CARTO, in-browser USDZ exporter.
-- **Where it's mediocre, thin, or unfinished:** It's a remarkable engine but the *social/game loop is thin* — you pin and discover, but there's little reason to *return* or to *interact deeply*. No persistent agent personality at the spot (it's a static GLB, not a conversational presence). No replies/notes left between strangers (the SSE interactions stream exists but isn't a felt "someone left you something" loop). No trails, quests, or reasons to travel. No notification when someone interacts with your pin while you're away. Anchoring precision drifts with no collaborative correction. Discovery is purely "what's around me now" with no breadcrumbs toward nearby clusters.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Leave-a-note / reply threads on a pin.** Make pins conversational drops: anyone nearby can leave a note, an emote, or a $THREE tip on your agent, and you get notified (push/SSE) when they do. The "someone left something for me here" loop is the whole magic — finish it end-to-end with real persistence.
-- **Talking agents at the spot.** Wire the placed agent to its character/persona so tapping it opens a short in-AR conversation (the platform already has character configs and worker LLM proxies) — a pinned agent that *responds* is categorically new.
-- **Proximity breadcrumbs & "warmer/colder".** Without revealing exact locations, give a directional "agents this way" hint and a heat sense as you approach a cluster — turn the city into a treasure map while preserving the privacy model.
-- **Trails & quests.** Creators can chain pins into a route ("follow my agents across the park"); completing a trail unlocks a reward. Geocaching for the agent economy.
-- **Away notifications.** When someone views/pays/replies to your pin, notify you (respecting the privacy model) so leaving an agent feels like planting something that grows.
-- **Collaborative anchor refinement.** When multiple users pin/observe the same spot, fuse their poses to tighten anchor accuracy over time (`PATCH /api/irl/pins` already exists) — crowd-sourced AR precision.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: `/irl` connects to characters (talking pins), payments SDK ($THREE drops), `/walk` (shared-floor AR), and agent profiles (the agent-card sheet); trails could surface in `/discover`. **Wire those connections** while never breaking the location-privacy guarantee. The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_06_irl.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/05_07_reputation.md b/prompts/feature-innovation/05_07_reputation.md
deleted file mode 100644
index 67d00623c..000000000
--- a/prompts/feature-innovation/05_07_reputation.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Reputation Explorer
-
-> **Task file:** `prompts/feature-innovation/05_07_reputation.md`
-> **Surface:** `/reputation`
-> **Primary source:** `public/reputation/index.html`, `public/reputation/reputation.js`, `src/erc8004/{chain-meta,abi,reputation}.js`
-> **Atlas reference:** `docs/ux-flows/05-discovery-social.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone deciding whether to *trust an agent* — to pay it, delegate to it, or build on it — and wants verifiable, tamper-proof evidence rather than a star count someone could fake. `/reputation` reads on-chain attestations (EAS / ERC-8004) for an address and renders a profile: aggregate score, star ratings, categorized reviews, and a wallet-signed flow to write a new review.
-
-"Gamechanging" here means making **on-chain reputation legible and trustworthy at a glance** — turning raw attestations into a credibility story a non-crypto user instantly understands, while making the *trust math* transparent (who attested, when, with what stake, on what chain) so it can't be gamed. The bar: a profile you'd cite to justify wiring money to an autonomous agent. Verifiable trust as a first-class, beautiful surface — not a block-explorer dump.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Gitcoin Passport, Karma3/OpenRank, the legibility of a Stripe Radar score, Linear's clarity, EAS's own explorer but actually usable). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/reputation` (params `?address=`, `?chain=`, legacy `?agent=N:M`).
-- **Source:** `public/reputation/index.html`, `public/reputation/reputation.js`, `src/erc8004/{chain-meta,abi,reputation}.js`; EAS (Ethereum Attestation Service) EASScan GraphQL (read), EAS SDK + ethers (write).
-- **Current flow:** 4 required (+2 optional write) — land with no `?address` → search form (address/ENS input, chain select, example chips) → submit → navigate to `?address=…&chain=…` → resolve ENS if needed (public RPC) → `fetchAttestations` (EASScan GraphQL) + `getReputation` (ERC-8004 on-chain) → render profile (aggregate score bar color-coded, star ratings, tabbed review list all/by-category, copy-address + copy-share-link). Optional write: "Connect wallet to review" → `eth_requestAccounts` → star + comment → "Sign & submit review" → `wallet_switchEthereumChain`/`wallet_addEthereumChain` → encode `address agent, uint8 score, string comment` → `EAS.attest(...)` → success card with explorer + EASScan links.
-- **What works today:** Wallet-free reading (EASScan GraphQL + public RPC); ENS resolution; legacy `agent=N:M` path (resolves owner, redirects); color-coded score + stars + categorized review tabs; full wallet write flow with chain switch/add; copy address + share link; designed states for unsupported network, invalid address, ENS-not-found/failed, no-attestations ("Be the first to review!"), no wallet, tx cancelled (4001), tx failure.
-- **Real APIs / dependencies already wired:** EASScan GraphQL per chain (Base / Ethereum / Optimism / Arbitrum / Polygon / Base Sepolia), public RPC for ENS + ERC-8004 reads, injected wallet (`window.ethereum`), EAS SDK `attest`, ERC-8004 helpers `getReputation`/`submitReputation`.
-- **Where it's mediocre, thin, or unfinished:** Reputation is shown as a flat average — no defense against gaming (one address spamming reviews, sybil ratings, wash-trust all weigh the same). No *who* behind a review (attester identity, their own reputation, whether they actually transacted with the agent). No trend over time (is trust rising or falling?). No cross-chain unification (the same agent across chains is separate profiles). No discovery — you must already know an address; there's no "top-rated agents" leaderboard. Not wired into the rest of the platform (a `/discover` or `/characters` agent doesn't show or link its reputation). The write flow is generic (score + comment) with no proof-of-interaction.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A legible trust score, not a flat average.** Compute and *show the math*: weight reviews by attester credibility, recency, and whether the attester has on-chain history with the agent; visibly down-weight likely sybil/duplicate sources. Render a transparent breakdown ("based on 24 attestations from 19 distinct addresses, 7 with prior transactions") so the score is defensible and un-gameable-feeling.
-- **Reputation over time.** A sparkline/timeline of the score and review volume so a viewer sees momentum (trust building vs eroding), not just a snapshot.
-- **Attester provenance.** For each review, surface the attester's own reputation and a verified/unverified badge, with a link to *their* profile — turn reviews into a web of trust, not anonymous stars.
-- **Cross-chain unified profile.** Aggregate the same agent's attestations across supported EAS chains into one profile with per-chain breakdown, so reputation isn't fragmented by deployment chain.
-- **Top-rated leaderboard + discovery.** Add a discovery view of the highest-trust agents (read across attestations) so `/reputation` becomes a destination, not just a lookup tool — deep-linkable and shareable.
-- **Reputation everywhere.** Wire a compact reputation badge/score into `/discover`, `/characters`, `/agents`, and agent profiles that deep-links here — so trust is visible at the moment of decision, not only when someone seeks it out.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: reputation should gate/inform payments ($THREE x402 in `/irl` and the payments SDK), surface on every agent card across the discovery cluster, and link to `/lookup`. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/05_07_reputation.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/05-discovery-social.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/06_01_marketplace-and-purchase.md b/prompts/feature-innovation/06_01_marketplace-and-purchase.md
deleted file mode 100644
index c148542e2..000000000
--- a/prompts/feature-innovation/06_01_marketplace-and-purchase.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Marketplace & the Buy/Unlock Critical Path
-
-> **Task file:** `prompts/feature-innovation/06_01_marketplace-and-purchase.md`
-> **Surface:** `/marketplace`, `/marketplace/(tools|skills|animations|onchain)/:id`, `/marketplace/agents/:id` (301 → `/agents/:id`), `/marketplace/avatars/:id` (301 → `/avatars/:id`)
-> **Primary source:** `src/marketplace.js`, `src/marketplace-lobby.js`, `src/marketplace-detail.js`, `src/payment-modal.js`, `pages/marketplace.html`, backend `api/marketplace/[action].js`, `api/marketplace/purchase.js`, `api/marketplace/buy-asset.js`, `api/marketplace/_lib/services/MonetizationService.js`
-> **Atlas reference:** `docs/ux-flows/06-marketplace-skills.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone who wants to buy a capability for their agent — a skill, an avatar, a whole onchain agent — and feels the same hesitation everyone feels before a crypto purchase: *Is this real? Will it work? What am I actually getting? Can I get my money back if it doesn't?* This surface exists to dissolve that hesitation completely and make acquiring agent capabilities feel like the most trustworthy, fluid commerce experience on the web. Two purchase rails run beneath it: `/api/marketplace/purchase` (individual skills, creator + platform-fee split, Solana-Pay-by-reference, optional gasless sponsorship) and `/api/marketplace/buy-asset` (whole avatars/agents/plugins, single full-amount leg, EVM/USDC-on-Base fallback). The modal lives in `src/payment-modal.js`.
-
-"Gamechanging" here means: **the moment between "I want this" and "it's mine and working" is so fast, so legible, and so confidence-inspiring that buying onchain feels safer than buying on Stripe.** Previews you can actually try before you pay, an unlock that lands instantly and visibly, receipts that feel like proof of ownership rather than a toast that disappears. Invent the trust layer that crypto commerce has never had.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe Checkout's trust and speed, Apple's instant-purchase confidence, Linear's transitions, Vercel's polish, Gumroad/Lemon Squeezy for digital-goods clarity). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/marketplace` and `/marketplace/` → `marketplace.html` SPA; `/marketplace/(tools|skills|animations|onchain)/:id` render inline via the SPA; `/marketplace/agents/:id` and `/marketplace/avatars/:id` are **301 redirects** to canonical `/agents/:id` and `/avatars/:id` (vercel.json). `?tab=` selects agents | avatars | onchain | skills | tools | memory | earn | purchases | mine.
-- **Source:** `src/marketplace.js` (8.4k lines; entry `init()` ~L7730 → `bindEvents()` → `loadCategories()` → `loadList(true)` → `loadTheme()` → `loadCurrentUser()` → `fetchUserPurchases()` → `render()`). Detail: `loadDetail()` ~L4581, `loadAvatarDetail()` ~L4717. Skill purchase: `openPurchaseFlow()` ~L6824, `createPendingPurchase()` ~L6872, `buildSplTransferWithReference()` ~L7258, `pollConfirm()` ~L7299. Asset purchase: `openAssetPurchaseFlow()` ~L6890, `pollAssetConfirm()` ~L6936. 3D hero `src/marketplace-lobby.js` (`mountLobby()`), detail stage/preview/creator-modal `src/marketplace-detail.js`, embed widget `src/payment-modal.js` (`SkillPaymentModal` / `PaymentChip`).
-- **Current flow:** ~9 required steps on the skill rail — browse → open detail → click "Unlock" → modal quote (`preparePurchaseTransaction`) → optional gasless pre-build → build SPL transfer with reference key → pre-flight balance check → wallet sign/send → on-chain confirm → poll `/:reference/confirm` (2.5s, 60s) → receipt → ownership refresh. Asset rail is ~7 steps via `buy-asset`.
-- **What works today:** parallel initial fetches with skeletons; 3D lobby podium (max 5 featured, auto-rotates 8s, pauses on hover/focus); weekly theme strip; category/search(250ms debounce)/sort/price filters; IntersectionObserver infinite scroll; live SSE chat preview on detail (`/api/marketplace/agents/:id/preview`); creator modal (`/api/creators/:id`); gasless fee-payer sponsorship; already-owned short-circuit; insufficient-funds "Add funds" branch; signed receipt with Solscan link; tipped (409) / expired (410) verification branches; owner price editor (`/api/marketplace/asset-price`).
-- **Real APIs / dependencies already wired:** `api/marketplace/[action].js` (categories, agents, theme, agents/:id, /versions, /similar, /preview), `/api/explore?source=avatar|onchain`, `/api/auth/me`, `/api/users/me/purchased-skills`, `POST /api/marketplace/purchase` (+`/:ref`, `/:ref/confirm`), `POST /api/marketplace/buy-asset` (+`/:ref`, `/:ref/confirm`), `GET /api/marketplace/check-skill-access`, `/api/billing/receipts`, `/api/creators/:id`, Solana RPC via `/api/solana-rpc`, `@solana/web3.js` + `@solana/spl-token` (lazy), `@solana/pay` (server `findReference`/`validateTransfer`), gasless tx builder `_lib/solana/gasless-tx.js`, EVM verifier `_lib/evm-payment-verify.js` (USDC on Base), `MonetizationService.js`.
-- **Where it's mediocre, thin, or unfinished:** previews exist but you can't *try the skill you're about to buy* — only chat with the agent generally; there's no "what exactly do I get" manifest (tools, sample outputs, version history surfaced as value); trust signals are thin (no verified-creator, no refund/guarantee story, no live "X bought this today"); the 60s confirm poll is a blocking wait with little reassurance design; receipts vanish into a tab instead of feeling like a collectible proof-of-ownership; there is no cart / bundle / "buy this agent + these 3 skills" path; gift purchase exists in the API (`recipient`) but is barely surfaced; the 3D hero is decorative, not a discovery engine; no post-purchase "what now" moment that drives the user into actually *using* what they bought.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Try-before-you-buy, for real.** For every paid skill, let the buyer run the *actual skill* once against a sandboxed input directly in the detail panel (route a single metered invocation through the existing x402 / preview infra), then show the real output beside the Unlock button. Nobody else lets you watch the thing work before you pay for it. The "Unlock" CTA should read the buyer's own try-result back to them: "You just generated this. Unlock to keep it."
-- **A "proof-of-ownership" receipt that's worth keeping.** Turn the post-confirm receipt into a shareable, signed ownership card (creator, skill, tx, date, on-chain reference) with an OG image and a `/collection`-deep-link — a thing a buyer screenshots because it looks like they own something, not because a toast appeared. Wire it to `/collection` (06_03) so the same artifact lives in their library.
-- **Live trust rail in the modal.** Replace dead waiting with momentum: real "N people unlocked this in the last 24h" (from `agent_revenue_events`), verified-creator badge, escrow/guarantee language tied to the tipped/mismatch failsafes you already have, and a confirm-progress experience that narrates the on-chain steps (found tx → validating transfer → minting access) instead of a spinner.
-- **One-tap bundles.** "Buy this agent + its 3 most-loved skills" as a single intent that fans out to the two rails and reports a unified result. Cross-sell from the detail page's skill list. This is the basket the marketplace is missing.
-- **Gift & gating as first-class.** Surface the existing `recipient` gift path as a real "Gift this skill" flow with a claimable link, and let creators offer the first unlock free to a connected follower. Second-order: gifting drives new-wallet onboarding.
-- **3D hero as a discovery engine.** Make the lobby podium reflect *what's selling right now* (top movers from analytics) and let selecting a podium avatar deep-link to its buy path — turn decoration into a conversion surface.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: a confirmed purchase should ripple into `/collection` (06_03), the creator's analytics (06_04), the agent's revenue events, and the buyer's notifications. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/06_01_marketplace-and-purchase.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/06-marketplace-skills.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/06_02_skills-marketplace.md b/prompts/feature-innovation/06_02_skills-marketplace.md
deleted file mode 100644
index 1105f5940..000000000
--- a/prompts/feature-innovation/06_02_skills-marketplace.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Skills Marketplace (free install + x402 per-call)
-
-> **Task file:** `prompts/feature-innovation/06_02_skills-marketplace.md`
-> **Surface:** `/skills` → client-redirects to `/marketplace?tab=skills`; `/marketplace/skills/:id`
-> **Primary source:** `pages/skills.html` (redirect shell), `src/marketplace.js` skills tab (`skillsState` ~L2128, `loadSkillsTab()`, `renderSkillsGrid()`/`renderSkillCard()` ~L2229, skill detail ~L2348, `toggleSkillInstall()` ~L2582), runtime gate `src/skills/index.js`, backend `/api/skills`, `/api/skills/categories`, `/api/skills/:id`, `/api/skills/:id/install`, `/api/skills/:id/rate`, `/api/x402/skill-call`
-> **Atlas reference:** `docs/ux-flows/06-marketplace-skills.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a builder giving their agent new capabilities — and the developer on the other side authoring those capabilities and getting paid for them. This surface is fundamentally different from the agent-skill *unlock* purchase (06_01): here **installing a community tool pack is FREE, and payment happens per-call via x402** (`/api/x402/skill-call`), settling micro-payments straight to the author's wallet. It's an App Store where the apps are agent tools, the pricing is usage-metered, and the rails are crypto-native.
-
-"Gamechanging" here means reinventing how an autonomous agent *acquires and pays for capability on its own*. The web has no precedent for an agent that browses a catalog, installs a tool for free, and then pays the author a fraction of a cent each time it actually uses that tool — autonomously, with a real on-chain settlement. Make that loop feel inevitable: trivial to install, transparent to meter, irresistible to publish into. The buyer should see exactly what each call will cost and what they got; the author should watch usage and revenue accrue call by call.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (the iOS/VS Code extension marketplaces for discovery and trust, Stripe's usage-based billing clarity, Replit/Vercel for developer onboarding, OpenRouter/Helicone for per-call cost transparency). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/skills` → `pages/skills.html` client-redirects (preserving `?q=`, `?category=`) to `/marketplace?tab=skills`; the SPA renders the skills grid. Skill detail at `/marketplace/skills/:id`.
-- **Source:** `src/marketplace.js` skills tab — `skillsState` ~L2128, `loadSkillsTab()`, `renderSkillsGrid()` / `renderSkillCard()` ~L2229, skill detail ~L2348, `toggleSkillInstall()` ~L2582. Runtime gate `src/skills/index.js`. Backend `/api/skills`, `/api/skills/categories`, `/api/skills/:id`, `/api/skills/:id/install` (POST/DELETE), `/api/skills/:id/rate`, per-call `/api/x402/skill-call`.
-- **Current flow:** ~3 required steps (+5 optional). Load skills tab → `GET /api/skills?limit=24&q=&category=&sort=&cursor=` + `/api/skills/categories` → skeletons then cards (name, price-per-call or "free", description, category pill, x402 badge for paid, install/tool counts, rating, "Installed ✓") → click card → `GET /api/skills/:id` detail (header, meta pills, description, tool schemas, full content, related skills) → "Install" → `POST /api/skills/:id/install` (DELETE to remove), 401 → `/login?next=…`, success flips button to "Installed ✓ — Remove".
-- **What works today:** free install/uninstall toggle; category chips; debounced search; client-side Free/Paid filter (`isPaidSkill`); cursor pagination; 1–5 star rating (`POST /api/skills/:id/rate`); detail panel with tool schemas + full content + related skills; x402 panel on paid skills (endpoint `GET /api/x402/skill-call?skill=:slug`, price `$X.XXX/call`, copy-paste `@three-ws/x402-fetch` snippet); author modal via `/api/creators/:id`. Marketplace skills (community tool packs with schema/content) are distinct from built-in agent skills in `src/agent-skills*.js`.
-- **Real APIs / dependencies already wired:** `/api/skills`, `/api/skills/categories`, `/api/skills/:id`, `/api/skills/:id/install`, `/api/skills/:id/rate`, `/api/x402/skill-call`, `/api/creators/:id`, `/api/auth/me` (gate install/rate).
-- **Where it's mediocre, thin, or unfinished:** the x402 panel hands the developer a snippet and walks away — there's no "run it right here" tester, no live cost meter, no proof the call works before they wire it; install is a flat toggle with no sense of *which agent* gets the skill or what it now can do; there's no usage/spend visibility for the buyer (how much have I paid this skill this week?) and no earnings visibility for the author from this surface; discovery is a flat grid — no trending, no "works well with," no bundles, no collections; ratings exist but there are no reviews, no verified-usage signal, no leaderboards; nothing closes the loop from "installed" to "my agent actually used it and here's what happened."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **An in-browser x402 call console.** On every paid skill detail, ship a real "Run this call" panel: the user signs a single x402 micro-payment from their connected wallet through `/api/x402/skill-call`, sees the live response, and watches the exact cost settle to the author — the developer-onboarding moment that turns "interesting" into "wired into my agent in 60 seconds." No code-paste required to prove it works.
-- **A per-call spend & usage meter for both sides.** Give the buyer a running "this skill cost you $X across N calls this week" view, and the author a live earnings-by-call stream — reading real x402 settlements. Wire the author view into marketplace analytics (06_04) so publishing a skill has an obvious growth dashboard.
-- **Install means "equip" — pick the agent.** Make install explicit about *which* of the user's agents gains the capability, show the agent's tool roster updating, and surface "your agent can now: …" in plain language. Second-order: this links the skills marketplace to the user's agents and to `/collection` (06_03).
-- **Skill collections & "works well with."** Curated and algorithmic bundles ("the research stack," "the trading stack") and per-skill compatibility suggestions driven by real co-install data — turn a flat grid into a graph of capability.
-- **Reviews with proof-of-use.** Let only wallets that have actually paid for ≥1 call leave a review; badge those reviews "verified usage." Crypto-native, un-gameable social proof no app store has.
-- **One-click publish path.** A real "Publish a skill" flow (name, schema, content, price-per-call, payout wallet) so the catalog grows from this surface — the supply side of the marketplace, not just the demand side.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: an installed skill should show up on the user's agents and in `/collection` (06_03); per-call earnings should feed the creator growth engine in `/marketplace/analytics` (06_04); the x402 meter should connect to the user's wallet/billing. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/06_02_skills-marketplace.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/06-marketplace-skills.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/06_03_my-collection.md b/prompts/feature-innovation/06_03_my-collection.md
deleted file mode 100644
index e8559674e..000000000
--- a/prompts/feature-innovation/06_03_my-collection.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — My Collection (owned skills + subscriptions)
-
-> **Task file:** `prompts/feature-innovation/06_03_my-collection.md`
-> **Surface:** `/collection`
-> **Primary source:** `pages/collection.html`, `src/collection.js`, backend `/api/users/me/purchased-skills`, `/api/subscriptions`, `/api/billing/receipts`
-> **Atlas reference:** `docs/ux-flows/06-marketplace-skills.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has spent money — unlocked skills, bought avatars, started trials, taken subscriptions — and `/collection` is where they come to see, and *act on*, everything they own. Today it's a receipt drawer. It should be a **living, actionable library of capability**: the place where you not only see what you own but immediately *use* it, manage it, prove it, and discover what to acquire next. Owned skills can come from two rails — the per-skill unlock (`/api/marketplace/purchase`) and free-install/x402 skills — plus subscriptions; many carry on-chain skill-NFT receipts.
-
-"Gamechanging" here means the collection makes ownership *feel like power*: every owned item has a clear next action ("run it," "equip it to an agent," "renew," "download receipt," "view on-chain"), trials count down with urgency and a one-tap convert-to-owned, subscriptions never lapse by surprise, and the whole thing reads like a portfolio you'd show off rather than a billing history. Invent the post-purchase home that crypto digital-goods have never had.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Steam library, Apple's purchase/subscription management, Notion's organized workspaces, Linear's polish, a clean crypto wallet's owned-assets view). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/collection` → `pages/collection.html` (standalone page, not the marketplace SPA). `src/collection.js` auto-runs `load()` on script load.
-- **Source:** `pages/collection.html`, `src/collection.js`. Backend `GET /api/users/me/purchased-skills`, `GET /api/subscriptions`, `GET /api/billing/receipts`.
-- **Current flow:** ~4 required steps (+2 optional). `load()` renders skeleton grids → `Promise.all` fetches `/api/users/me/purchased-skills` and `/api/subscriptions` (both `credentials: include`) → **if both 401, reveal auth wall** (`#col-auth-wall`, "Sign in to see your collection," grids cleared) → on success render stats (skills count, active subscriptions, NFT-receipt count) → Skills panel renders owned/trial cards (thumbnail, skill name, agent, Owned/Trial badge, price, optional skill-NFT mint link to Solscan, purchase date, "View agent") → Subscriptions panel renders sub cards (Active/Expired badge, amount/period, renew/expiry date, "View agent"). Optional: tab switch Skills ↔ Subscriptions (counts in labels); "View agent" → `/marketplace/agents/:id` (→ `/agents/:id`).
-- **What works today:** auth-gated load with auth wall; two-panel (Skills / Subscriptions) tabbed layout with live counts; stats header; Owned vs Trial and Active vs Expired badges; skill-NFT Solscan link when present; skeletons that don't linger; per-panel empty states ("No skills yet" → marketplace link; "No subscriptions"); `renderLoadError()` with Retry for network/HTTP/JSON failures.
-- **Real APIs / dependencies already wired:** `GET /api/users/me/purchased-skills`, `GET /api/subscriptions`, `GET /api/billing/receipts` (receipt download is used elsewhere in the purchase flow), Solscan / Solana Explorer links, `/api/auth/me` (implied by the 401 auth wall).
-- **Where it's mediocre, thin, or unfinished:** the page is read-only — you can *see* what you own but can't *do* anything with it from here (no "run skill," no "equip to agent," no "renew subscription," no "download receipt," no "convert trial → owned"); trials show a badge but no countdown, no remaining-uses urgency, no convert CTA; subscriptions show expiry but have no renew/cancel action and no lapse warning; there's no search/sort/filter even though a heavy buyer could own dozens of items (1000-item overflow undesigned beyond skeletons); receipts exist as an API but aren't surfaced as a satisfying owned artifact; the page is an island — it doesn't pull from the skills marketplace's installed-skills or feed back into the agents the user controls; no spend summary, no "you've invested $X across N capabilities" sense of a portfolio.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Every owned item gets a real action.** Make each card a launchpad: "Run it" (invoke the skill / open the x402 console from 06_02), "Equip to agent" (attach to one of the user's agents), "View on-chain," "Download signed receipt" (`/api/billing/receipts`). A library you can act from, not just admire.
-- **Trials that convert.** Show a live countdown / remaining-uses ring on every trial, an urgency state as it nears expiry, and a one-tap "Keep it — unlock for $X" that drops straight into the existing purchase rail (06_01). Turning trials into purchases is direct revenue this page is leaving on the floor.
-- **Subscriptions you actually manage.** Renew, cancel, and "expires in N days" warnings with a re-pay path; a unified upcoming-renewals timeline so nothing lapses by surprise.
-- **A portfolio sense, not a ledger.** A header that reads "You own N capabilities across M agents · invested $X" and a shareable, signed "ownership card" (reuse the proof-of-ownership artifact from 06_01) — the collection as something a power user shows off.
-- **Search, sort, filter, and overflow design.** For the heavy buyer: search by name/agent, sort by recency/price/usage, filter Owned/Trial/Subscription/has-NFT, and virtualized rendering so 1000 owned items stay smooth.
-- **Close the loop to discovery.** "You own these research skills — agents who own them also use…" recommendations that route back into the marketplace, and surface co-installed skills from the skills marketplace (06_02) directly in the library.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: the collection should reflect installs from the skills marketplace (06_02), let owned capabilities be equipped onto the user's agents, convert trials through the purchase rail (06_01), and surface the same signed receipts the buy flow mints. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/06_03_my-collection.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/06-marketplace-skills.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/06_04_marketplace-analytics.md b/prompts/feature-innovation/06_04_marketplace-analytics.md
deleted file mode 100644
index afcd67fd3..000000000
--- a/prompts/feature-innovation/06_04_marketplace-analytics.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# 🚀 Innovation Brief — Marketplace Analytics (creator growth engine)
-
-> **Task file:** `prompts/feature-innovation/06_04_marketplace-analytics.md`
-> **Surface:** `/marketplace/analytics`
-> **Primary source:** `pages/marketplace-analytics.html`, `src/marketplace-analytics.js`, backend `/api/marketplace/analytics`
-> **Atlas reference:** `docs/ux-flows/06-marketplace-skills.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator trying to understand and grow their marketplace business — and a prospective buyer trying to gauge what's hot and trustworthy. Today `/marketplace/analytics` is a public, read-only aggregate dashboard: totals, a 30-day volume bar chart drawn on Canvas, and top-skills / top-agents lists. It informs; it does not *drive*. This surface should become a **creator growth engine** — the page a creator opens every morning because it tells them what's working, what's slipping, and exactly what to do next to earn more.
-
-"Gamechanging" here means turning passive numbers into momentum: a creator sees their own performance broken out, gets concrete, ranked growth recommendations grounded in real `agent_revenue_events` and x402 settlement data, and can act on them without leaving the page. For buyers, the same data becomes a trust-and-discovery signal ("trending this week," "most-used skills") that feeds straight back into the marketplace. Invent the analytics surface that makes creators want to publish more.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe's revenue dashboards, Vercel Analytics, Linear's insights, YouTube Studio's creator analytics, Plausible's clarity). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/marketplace/analytics` → `pages/marketplace-analytics.html` (standalone page). `src/marketplace-analytics.js` auto-runs `load()`.
-- **Source:** `pages/marketplace-analytics.html`, `src/marketplace-analytics.js`. Backend `GET /api/marketplace/analytics` (the only call this surface makes).
-- **Current flow:** 5 required steps (+0 optional). `load()` fetches `/api/marketplace/analytics` → stat cards render (total skill sales, total volume, unique buyers, creators with sales, NFT receipts minted) → a 30-day volume bar chart draws on a Canvas (no charting dependency, theme-aware colors, missing days zero-filled) → Top Skills ranked list (skill, agent, sales count, revenue) → Top Agents ranked list (agent, skill-sale count, net revenue).
-- **Prerequisites / gates:** None — public aggregate stats, no auth.
-- **What works today:** single-fetch load; five aggregate stat cards; dependency-free Canvas 30-day volume bar chart with dark/light theme palettes and zero-filled missing days; Top Skills and Top Agents ranked lists; has-data vs empty branches ("No sales yet." / "No agents yet."); fetch/parse failure → `#an-error` "Failed to load analytics. Please refresh." with all sections cleared.
-- **Real APIs / dependencies already wired:** `GET /api/marketplace/analytics` only. Underlying data sources in the platform: `agent_revenue_events` (skill-purchase revenue) and x402 settlement records (per-call earnings from the skills marketplace).
-- **Where it's mediocre, thin, or unfinished:** it's entirely global/anonymous — a creator can't see *their own* numbers, so it can't actually grow anyone's business; one chart, one metric (volume) — no breakdown by skill, by rail (unlock vs x402 per-call), by buyer cohort, no trend deltas ("+38% vs last week"); no time-range control (30 days is fixed); no actionable recommendations; the ranked lists don't link anywhere (dead-end data — clicking a top skill should go to its detail / buy path); no x402 per-call earnings dimension despite that being a core revenue rail (06_02); no export; the chart is static (no hover tooltips, no per-day values, no keyboard access); nothing here connects to the creator's own dashboard or to the buy paths it should be feeding.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A "your business" lens.** When a creator is signed in, overlay their own performance on the global view: my revenue, my top skills, my conversion (views → unlocks), my x402 per-call earnings, and week-over-week deltas. The page stops being a leaderboard and becomes *their* dashboard. (Anonymous users still get the public aggregate.)
-- **Ranked, real growth recommendations.** Mine `agent_revenue_events` + x402 settlements for concrete next actions: "Your skill X has high preview traffic but low unlocks — try a trial," "Skill Y earns most per call — feature it," "Buyers who unlock A also buy B — bundle them." Actionable, ranked, grounded in real data — not vanity metrics.
-- **Make every number a doorway.** Top Skills / Top Agents rows link to their detail and buy paths (06_01/06_02); chart days expand into that day's sales; the dashboard becomes a navigation hub into the marketplace, not a dead-end report.
-- **Two-rail revenue clarity.** Break revenue into unlock purchases vs x402 per-call earnings (06_02), with trend, so creators understand which monetization model is working for them. No competitor has a usage-metered-vs-unlock view because no one else runs both rails.
-- **Richer, interactive charts — still dependency-free.** Add a time-range control (7/30/90/all), hover tooltips with per-day values, a secondary metric line (unique buyers / calls), and full keyboard + ARIA access to the Canvas data. Keep the zero-dependency, theme-aware approach.
-- **Trending feeds discovery.** Expose a real "trending this week" signal that the main marketplace grid and the 3D hero (06_01) can consume — analytics becomes the engine behind discovery, not a sidebar.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: per-call earnings here come from the skills marketplace (06_02); ranked items should link into the buy/unlock paths (06_01); a creator's "your business" view should connect to their dashboard; trending output should feed the marketplace grid and 3D hero. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/06_04_marketplace-analytics.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/06-marketplace-skills.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_01_oracle.md b/prompts/feature-innovation/07_01_oracle.md
deleted file mode 100644
index 5e8fa0eb5..000000000
--- a/prompts/feature-innovation/07_01_oracle.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Oracle: AI Conviction Engine
-
-> **Task file:** `prompts/feature-innovation/07_01_oracle.md`
-> **Surface:** `/oracle` (+ deep links `/oracle/coin/<mint>`)
-> **Primary source:** `pages/oracle.html`, `src/oracle.js` (~1850 lines), `src/oracle-graph.js` (lazy 3D force graph), `src/oracle-tape.js` (live trade tape in coin drawer)
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a Solana memecoin trader who is drowning in launches and noise. They open `/oracle` because they want one thing: a trustworthy "should I care about this coin, right now?" signal — and the confidence to act on it without alt-tabbing to ten other tools. Oracle exists to fuse on-chain behavior (who's buying, how, what kind of coin, where it's heading) into a single 0–100 conviction score and tier, stream it live as every pump.fun launch happens, and — for signed-in users with an agent wallet — let them **arm an autonomous agent** to trade the stream within hard SOL caps.
-
-"Gamechanging" here means conviction a trader *trusts and acts on*. That requires two things competitors don't deliver together: **explainability** (every score decomposes into evidence the trader can audit in seconds) and **a closed accountability loop** (Oracle grades its own past calls publicly, so trust is earned by track record, not asserted). Build the conviction engine a serious trader makes their home tab.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Bloomberg Terminal's information density, Nansen's wallet intelligence, the calm clarity of Linear, the live-data choreography of Stripe's dashboards). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/oracle`; deep links `/oracle/coin/<mint>` open that coin's drawer; share links via `coinShareUrl()`.
-- **Source:** `pages/oracle.html`, `src/oracle.js`, lazy `src/oracle-graph.js`, `src/oracle-tape.js`.
-- **Current flow:** 3 required steps (arrive → `boot()` loads feed → SSE action-stream connects) + ~6 optional read interactions + a 6-field gated arm flow. Nine view tabs: feed, movers, wallets, edge, proof, agents, activity, graph.
-- **What works today:** live conviction feed (0–100 score, tier pill prime/strong/lean/watch/avoid) with shareable URL filters (`tier`, `category`, `minScore`, `view`); SSE `/api/oracle/action-stream` streams newly scored coins live with a Live/Reconnecting indicator; coin drawer with 4-pillar breakdown (who/how/what/move) + live trade tape; Watch/Copy/Share actions write `ld_watchlist`; backtest (edge), resolved-wins (proof), and agent win-rate (agents) ledgers; gated arm flow posts `/api/oracle/watch` to run a custodial agent in simulate or live mode.
-- **Real APIs / dependencies already wired:** `/api/oracle/feed`, `/api/oracle/coin`, `/api/oracle/search`, `/api/oracle/movers`, `/api/oracle/categories`, `/api/oracle/backtest`, `/api/oracle/wins`, `/api/oracle/watch` (GET+POST), `/api/oracle/follow` (GET+POST), `/api/agents`; SSE `/api/oracle/action-stream`; oracle-tape live trade stream.
-- **Where it's mediocre, thin, or unfinished:** the score is a number with a static pillar breakdown — it doesn't *teach* the trader *why* it changed or *what to watch next*. Nine tabs is navigation, not insight; there's no single synthesized "what matters now" view. The proof/edge ledgers exist but aren't woven into the live score as trust ("this tier hit X% over the last N calls" should sit *next to* the score). The arm flow is a config form, not a confidence-building experience — no preview of what the agent *would have done* on the live stream before you commit real SOL. SSE updates likely repaint cards rather than animating deltas, so the trader can't feel momentum.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Conviction-with-receipts:** every score shows a live, decomposed evidence strip — the top 3 signals currently moving it, each with a sparkline and a one-line plain-English reason ("buyer pedigree rising: 4 proven wallets entered in 90s"). Hovering a pillar reveals the underlying on-chain events. The number is never naked; it always carries its argument.
-- **Earned-trust badge inline:** bind the `edge`/`proof` ledgers to the live feed. Each tier pill carries its own rolling, auditable hit-rate ("Prime: 61% to 2x, last 120 calls") that updates as calls resolve — turning the abstract score into a track record the trader can verify by clicking through to resolved wins.
-- **Arm-with-confidence dry run:** before a user commits real SOL, show a live "shadow run" — replay the agent's exact rules against the real action-stream for the next N minutes and render the trades it *would* take in a ghost ledger, with projected caps consumed. Trust is built by watching, not by reading a form.
-- **Conviction deltas as motion:** when SSE pushes a rescore, animate the score ring and tier transition (transform/opacity only), and surface a "movers in the last 5 min" rail so the trader feels where momentum is concentrating without reading every card.
-- **One synthesized "Now" view:** a top-of-page synthesis that fuses feed + movers + wallets + proof into a single answer to "what is the one thing worth my attention right now," with a confidence statement and a single primary action.
-- **Cross-feature wiring (required):** make Oracle the conviction backbone of the platform. Push the live score + receipts into `/watchlist` cards (tier-change alerts already exist there — feed them richer reasons), into `/pump-visualizer` sphere coloring and Buy modal, into `/smart-money` and `/coin-intel` drawers (they already async-fetch `/api/oracle/coin` — make that enrichment a first-class, consistent "Oracle verdict" component), and let an armed agent's actions deep-link straight into `/activity` and the trader profile.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_01_oracle.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_02_live-feeds.md b/prompts/feature-innovation/07_02_live-feeds.md
deleted file mode 100644
index ca3e7022f..000000000
--- a/prompts/feature-innovation/07_02_live-feeds.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 🚀 Innovation Brief — Live Feeds: The Unified Alpha Stream
-
-> **Task file:** `prompts/feature-innovation/07_02_live-feeds.md`
-> **Surface:** `/activity`, `/trending`, `/trades`
-> **Primary source:** `pages/activity.html` (self-contained inline module), `pages/trending.html` (inline module; imports `src/shared/agent-wallet-chip.js`), `pages/trades.html` + `src/trades.js` (imports `src/trader-format.js`)
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a trader who wants to *feel the market's pulse* and catch alpha the moment it appears — without juggling three near-identical monitors. Today that pulse is scattered across three pages: `/activity` (every agent's Oracle-driven move, graded), `/trending` (hottest agents and conviction coins by window), and `/trades` (real closed positions with PnL). Each is a competent live feed; together they are fragmented.
-
-This feature exists to make "what's happening right now, and what should I do about it" answerable in one glance. "Gamechanging" means turning three monitors into one **glanceable, alpha-surfacing real-time feed** that doesn't just list events but *ranks them by how much they should matter to this trader* — surfacing the rare signal (a proven agent just entered, a coin just tiered up, a winning streak forming) above the constant churn. Build the feed a trader leaves open on a second monitor all day.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (a Bloomberg ticker's authority, the live choreography of a trading desk, the signal-over-noise ranking of a great social feed, the calm of Linear's activity stream). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/activity`, `/trending`, `/trades`.
-- **Source:** `pages/activity.html`; `pages/trending.html`; `pages/trades.html` + `src/trades.js` + `src/trader-format.js`.
-- **Current flow:**
- - **/activity:** arrive → `GET /api/oracle/activity` renders rows (agent, verb, $symbol, tier pill, sim/live tag, outcome, PnL) + KPIs → SSE `/api/oracle/action-stream` prepends live actions. Filters by tier/mode/outcome; cursor pagination; "Copy trades →" on win/open rows links to `/trader/<id>`.
- - **/trending:** arrive → tab (Agents/Coins) + window (24h/7d/All) → `GET /api/trending?window=&limit=10` renders ranked list (agents by real chat activity with wallet chip; coins by Oracle conviction). Rows deep-link to agent/coin pages.
- - **/trades:** arrive → `readUrl()` restores window/minPnl/network from URL+localStorage (`tf_network`) → `GET /api/trades/feed` renders closed-position rows, auto-refresh 30s (paused while paginating). Filters (window ARIA tablist with keyboard nav, minPnl, network), manual refresh, per-row Watch (`ld_watchlist`), load-more, row deep links.
-- **What works today:** all three are real, live, public, no-auth; SSE on activity; URL-reflected shareable filters on trades; keyboard-navigable window tablist on trades; wallet chips and conviction wiring already present.
-- **Real APIs / dependencies already wired:** `GET /api/oracle/activity`, SSE `/api/oracle/action-stream`, `GET /api/trending?window=&limit=`, `GET /api/trades/feed` (cursor-paginated); `/api/sniper` feeds available; `ld_watchlist` shared key.
-- **Where it's mediocre, thin, or unfinished:** three separate pages answer overlapping questions, forcing the trader to context-switch. None ranks events by *relevance* — it's all reverse-chronological or simple metric sort, so a landmark event (a proven wallet entering, a tier upgrade, a record win) scrolls past at the same weight as noise. There's no unified "live alpha" surface, no cross-feed correlation (a trending coin that just got a winning trade and an agent entry is three separate rows in three places), and no notion of "new since you looked away." The auto-refresh/SSE patterns are duplicated and inconsistent across the three.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One unified live feed with intelligent ranking:** a single stream that merges agent actions, trending shifts, and closed trades, then ranks each item by an "alpha weight" (proven-wallet pedigree + conviction tier + outcome magnitude + recency), so the rare landmark event rises to the top instead of scrolling past. Keep deep, focused views as filtered slices of the same stream — not separate pages.
-- **Correlation cards:** when a coin appears across feeds in a short window (trending up *and* an agent entered *and* a winning trade closed), fuse them into one richer "this is heating up" card with all the evidence, instead of three disconnected rows.
-- **"While you were away":** a quiet, dismissible summary of the highest-alpha events since the tab was last focused — the trader returns and instantly knows what they missed, no scrollback.
-- **Glanceable density modes:** a calm default and a high-density "ticker" mode for a second monitor; live deltas animate (transform/opacity), with an unobtrusive "↑ N new" jump control when scrolled.
-- **Cross-feature wiring (required):** make this the platform's circulatory system — feed Oracle conviction (`/api/oracle/coin` / action-stream) and sniper leaderboard standing into every row; Watch toggles write `ld_watchlist` so items flow to `/watchlist`; "Copy trades →" and trending rows deep-link to `/trader/<id>` and `/oracle/coin/<mint>`; surface armed-agent actions inline so the live feed and the Oracle arm loop reinforce each other.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_02_live-feeds.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_03_trader-leaderboard.md b/prompts/feature-innovation/07_03_trader-leaderboard.md
deleted file mode 100644
index d591c4339..000000000
--- a/prompts/feature-innovation/07_03_trader-leaderboard.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Trader Leaderboard & Profiles
-
-> **Task file:** `prompts/feature-innovation/07_03_trader-leaderboard.md`
-> **Surface:** `/leaderboard` → `/trader?wallet=…` (`/trader/<id>`)
-> **Primary source:** `pages/leaderboard.html`, `src/leaderboard.js` (imports `src/trader-format.js`, `src/shared/agent-wallet-chip.js`); trader profile `src/trader.js`
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a trader deciding *who to follow and copy*. They open `/leaderboard` to find the agents that actually win, and drill into a trader profile to verify the track record before trusting it with their attention or capital. This feature exists to make on-chain trading skill **legible, credible, and social** — a ranked board where every number is provable on-chain, and a profile that turns a wallet into a reputation.
-
-"Gamechanging" means a leaderboard a trader *believes* (because proof is one click away, not asserted) and a profile worth *sharing* (because it tells a story — the equity curve, the best calls, the streak — not just a stat dump). Build the credible, social trader leaderboard that becomes the platform's reputation layer.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Nansen's wallet profiler, the proof-of-skill rigor of a verified trading record, the shareable polish of a Strava profile or a GitHub contribution graph, the ranking authority of a real sports leaderboard). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/leaderboard`; row drill-in → trader profile `/trader?wallet=…`.
-- **Source:** `pages/leaderboard.html`, `src/leaderboard.js`, `src/trader-format.js`, `src/shared/agent-wallet-chip.js`; profile `src/trader.js`.
-- **Current flow:** arrive → `readUrl()` hydrates state (network/window/sort/verified), live-refresh every 20s → `GET /api/sniper/leaderboard?network=&window=&sort=&verified=` renders ranked rows (agent name + verified badge, wallet chip, unique coins, copiers count; top 3 styled). Optional: window 24h/7d/30d/all, network mainnet/devnet, sort score/pnl/winrate/roi, "Verified only", click row → trader profile (full track record, equity curve, proof tab with on-chain tx, copy-trading panel, shareable PnL card via `GET /api/sniper/trader`).
-- **What works today:** real ranked board with multiple windows/sorts/network/verified filters; URL hydration; 20s live refresh with stale/reconnecting badge; top-3 styling; copiers count; trader profile with equity curve, on-chain proof tab, copy panel, shareable PnL card; `#lb-retry` on load failure.
-- **Real APIs / dependencies already wired:** `GET /api/sniper/leaderboard`; profile `GET /api/sniper/trader`; `agent-wallet-chip.js`, `trader-format.js`.
-- **Where it's mediocre, thin, or unfinished:** the board is a sortable table — it doesn't *tell you why* a trader is good (no signature style, no "what they're best at," no risk profile). "Verified" is a binary badge, not a trust narrative. There's no movement/momentum signal (who's climbing, who's hot this week vs. all-time). The profile shows a track record but doesn't make it *social* — no follower graph, no "traders like this one," no head-to-head comparison, no way to see a trader's calls *as they happen*. The copiers count exists but copy-trading isn't surfaced as a first-class social loop. Discoverability is weak: a great trader far down a long list is invisible.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Skill fingerprint, not just rank:** each row/profile carries a compact "style" signature derived from real on-chain behavior — fast-flip vs. conviction-hold, win-rate-vs-ROI tradeoff, average hold time, favored categories, drawdown discipline — so a trader can pick *the kind of skill they want to follow*, not just the top number.
-- **Momentum & movement:** show rank deltas (▲ climbed, hot streaks, "best week since…"), and a "Rising" slice that surfaces traders heating up before they reach the top — discoverability for talent the static sort buries.
-- **Proof you can't fake, front-and-center:** elevate the on-chain proof from a profile tab into the board itself — every headline stat (ROI, win rate, biggest call) is a one-click verifiable on-chain transaction. Make verification the product's signature, the thing screenshots are about.
-- **Head-to-head & follow graph:** compare two traders side-by-side (equity curves, style fingerprints, overlap in coins); a follower/copier social graph that makes reputation visible and reciprocal.
-- **Shareable, story-driven PnL cards:** upgrade the existing PnL card into a genuinely viral artifact — the trader's signature stat, equity sparkline, verified badge, and a clean OG image, with a copy/share flow that drives traffic back to three.ws.
-- **Cross-feature wiring (required):** bind the leaderboard to `/activity` (a top trader's live moves), `/trades` (their closed positions), `/oracle` (the conviction tier they tend to win on), and `/smart-money` (do their wallets show up as proven money?). Make "Copy trades →" route into the Oracle arm flow or strategy-lab as a real follow action, not a dead CTA.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_03_trader-leaderboard.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_04_coin-intel-radar.md b/prompts/feature-innovation/07_04_coin-intel-radar.md
deleted file mode 100644
index f1e3e0aed..000000000
--- a/prompts/feature-innovation/07_04_coin-intel-radar.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 🚀 Innovation Brief — Coin Intel & Radar: Self-Explaining Due Diligence
-
-> **Task file:** `prompts/feature-innovation/07_04_coin-intel-radar.md`
-> **Surface:** `/radar` and `/coin-intel` (two distinct engines — do not conflate)
-> **Primary source:** `pages/radar.html` + `src/radar.js` (`mountRadar`, imports `src/shared/log.js`) → `GET /api/pump/coin-intel`; `pages/coin-intel.html` (self-contained inline module) → backend `api/pump/intel.js` (`GET /api/pump/intel`)
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a trader staring at a fresh launch in its first minutes asking one terrified question: *"Is this organic, or am I about to get rugged?"* These two surfaces exist to answer that with on-chain evidence: `/radar` classifies coins observed in their first ~90 seconds (risk-scored, bundle/rug detection); `/coin-intel` is a deeper engine — quality score, verdict, organic-vs-bundle breakdown, risk flags, narrative, plus a "what it learned" transparency view of its own signal weights and outcomes.
-
-"Gamechanging" means reinventing token due-diligence around an AI that **explains itself**. The trader shouldn't just see a verdict — they should understand the reasoning, see the evidence trace to real on-chain trades, and watch the model's confidence and self-reported accuracy in the open. Build the diligence tool that replaces ten browser tabs and a gut feeling with a transparent, auditable second opinion.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (a forensic on-chain analyst's report, the explainability of a great credit-score breakdown, the trust-through-transparency of an open model card, Stripe Radar's fraud signals). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/radar` and `/coin-intel` — distinct engines despite similar names (`/radar` → `/api/pump/coin-intel`; `/coin-intel` → `/api/pump/intel`).
-- **Source:** `pages/radar.html` + `src/radar.js` (`mountRadar`); `pages/coin-intel.html` (inline module) + `api/pump/intel.js`.
-- **Current flow:**
- - **/radar:** `mountRadar()` reads URL (`category`, `minQuality`), builds toolbar, polls every 12s → `GET /api/pump/coin-intel` renders first-~90s coins, classified + risk-scored; unmeasured signals render "not measured" (never 0). Filters: category chips, min-quality slider, per-coin Watch (`ld_watchlist`), click → drawer `?mint=<mint>&wallets=1` (single-coin wallet breakdown). Risk-flag pills: bundle_launch, dev_dumped, single_whale, low_diversity, fresh_wallet_swarm, sell_pressure, sniped.
- - **/coin-intel:** reads `ld_watchlist`, renders category chips + skeletons; `loadStats()` (`?view=learning`) + `loadRadar()`, auto-refresh 15s → `GET /api/pump/intel?view=feed` renders cards (quality ring 0–100, verdict pill strong/watch/caution/avoid, organic-vs-bundle bar, risk flags, narrative). Toolbar: debounced search, category chips, verdict + quality dropdowns. Tabs: Radar / Leaderboard (`?view=leaderboard`) / Smart-Money Traders (`?view=traders`) / What it learned (`?view=learning`). Drawer `?mint=<mint>` (full signals + outcome + classified wallets + funder clusters/bubble-map) + async `GET /api/oracle/coin` enrichment.
-- **What works today:** two real, complementary diligence engines; live polling; honest "not measured" semantics; risk-flag taxonomy; quality scoring + verdicts; a "what it learned" weights/outcome view; per-coin wallet + funder-cluster bubble-map drawer; Oracle conviction enrichment; `ld_watchlist` integration.
-- **Real APIs / dependencies already wired:** `GET /api/pump/coin-intel` (list + `?mint=&wallets=1`), `/api/img`; `GET /api/pump/intel` (`view=feed|leaderboard|traders|learning`, `?mint=`), async `GET /api/oracle/coin`. Data from `pump_coin_intel`, `pump_coin_outcomes`, `pump_coin_wallets`, `pump_intel_weights` (off-browser engine).
-- **Where it's mediocre, thin, or unfinished:** the two engines overlap confusingly for users — same vocabulary, different pages, no shared mental model or cross-link. The verdict is a label; the *reasoning* is buried in a drawer and never narrated as a chain of evidence. "What it learned" exists but is a stats page, not a living trust signal woven into each verdict ("this engine has been 67% right on 'avoid' calls"). The bubble-map/funder-cluster is the strongest asset but is hidden behind a click. There's no diff-over-time (how a coin's risk evolved minute by minute), and no way for the trader to ask the engine *"why?"* in natural language.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Self-explaining verdict:** every quality score decomposes into a ranked, plain-English evidence chain — each factor with its weight, direction, and a link to the on-chain event that triggered it. The trader reads *the argument*, not just the conclusion, in seconds.
-- **"Ask the engine":** a natural-language explain affordance per coin ("why caution?") that streams a grounded answer built only from this coin's observed signals and the model's learned weights — diligence that talks back, never hallucinates beyond the evidence.
-- **Risk timeline:** replay how a coin's risk profile evolved across its first minutes (bundle detected → dev dumped → diversity recovering), so the trader sees the *trajectory*, not a single snapshot. The bubble-map of funder clusters becomes a hero visualization, not a hidden drawer.
-- **Earned-accuracy badge:** surface each verdict tier's real historical hit-rate (from `pump_coin_outcomes`) right next to the verdict — turn "what it learned" from a separate tab into inline, auditable trust.
-- **Coherent two-engine story:** give `/radar` (the fast first-90s tripwire) and `/coin-intel` (the deep dossier) one clear relationship — radar flags it, intel explains it — with a clean handoff/deep-link between them so users stop confusing the two.
-- **Cross-feature wiring (required):** push the verdict + top risk flags into `/watchlist` cards and tier-change alerts, into `/oracle` drawers as the diligence layer beneath conviction, into `/pump-visualizer` (color/flag spheres by risk), and into `/smart-money` (cross-reference proven wallets against flagged funders). A coin flagged "rug risk" on radar should be flagged everywhere.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_04_coin-intel-radar.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_05_watchlist.md b/prompts/feature-innovation/07_05_watchlist.md
deleted file mode 100644
index 6ad3ac3a8..000000000
--- a/prompts/feature-innovation/07_05_watchlist.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Watchlist: Proactive Cross-Surface Alpha Tracker
-
-> **Task file:** `prompts/feature-innovation/07_05_watchlist.md`
-> **Surface:** `/watchlist` (+ the `ld_watchlist` key threaded across 8 routes)
-> **Primary source:** `pages/watchlist.html`, `src/watchlist.js` (imports `src/pump/coin-status-card.js`)
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has spotted a handful of coins worth watching — on Oracle, radar, trades, smart-money, anywhere — and tapped ☆ Watch. They come to `/watchlist` to keep an eye on them without re-finding them. Today that's a private, device-local board of live status cards. The feature exists to be the trader's *personal command post*: the coins they care about, watched continuously, surfacing changes *before* the trader thinks to look.
-
-"Gamechanging" means turning a passive list into a **proactive, cross-surface alpha tracker** — one that doesn't just refresh cards but *notices things*: a tier upgrade, a proven wallet entering, a risk flag firing, a graduation, a price breakout — and tells the trader the moment it matters. The watchlist already detects tier upgrades; the leap is to make it the connective tissue that pulls every engine's intelligence (Oracle conviction, radar/intel risk, smart-money pedigree) onto the coins the trader has personally chosen, and to alert proactively. Build the watchlist a trader checks first every morning.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (a great stock-watchlist with smart alerts, the calm signal of a well-tuned notification system, the "everything about this thing in one place" of a Linear issue view, a portfolio tracker that actually catches the move). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/watchlist`; the `ld_watchlist` localStorage key is written by oracle, radar, trades, watchlist, smart-money, coin-intel, pump-visualizer, and pump-live (8 surfaces).
-- **Source:** `pages/watchlist.html`, `src/watchlist.js`, `src/pump/coin-status-card.js`.
-- **Current flow:** (prereq) Watch a coin anywhere → mint stored in `ld_watchlist`. Arrive on `/watchlist` → `readList()` reads + validates mints (base58 32–44) → for each mint mounts a live coin-status card (`mountCoinStatus` → one `GET /api/pump/coin` per coin, deterministic mint identicon behind real pump.fun logo, refresh every 90s) → detects tier upgrades vs `wl_last_tiers`. Optional: toggle alerts (`#wl-alerts`, `wl_alerts_on`), clear list (`#wl-clear`), click card → full coin profile (`/launches/<mint>`). Cross-tab sync via `storage` event.
-- **What works today:** device-local private list (no account); validated mints; live status cards via shared `coin-status-card.js` component; 90s refresh; tier-upgrade detection vs `wl_last_tiers`; an alerts toggle; clear; cross-tab `storage` sync; deep links to `/launches/<mint>`; empty state directing users to Watch coins elsewhere.
-- **Real APIs / dependencies already wired:** `GET /api/pump/coin` (one per watched coin, via `coin-status-card.js`); `ld_watchlist` shared key; `wl_last_tiers`, `wl_alerts_on` localStorage.
-- **Where it's mediocre, thin, or unfinished:** the alerts toggle exists but there's no real delivery path — it's a flag, not a notification system (no in-app surfacing of fired events, no Telegram/webhook, no "what changed since I last looked"). Each card calls `/api/pump/coin` only — it ignores the platform's richer engines (no Oracle conviction, no radar/intel risk flags, no smart-money pedigree on the very coins the user cares most about). There's no organization (no sort, no grouping by tier/risk, no notes/reason-for-watching), no history of how a watched coin evolved, and being device-local with no export means a wiped browser loses everything. It's a viewer, not a tracker.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Proactive change detection across every signal:** extend the existing tier-upgrade detection into a full "what changed" engine per watched coin — conviction tier moves, new proven-wallet entries, risk flags firing, graduation, price/MC breakouts — surfaced as a prioritized "since you last looked" digest at the top of the page, and (if alerts on) delivered in-app and via the platform's existing Telegram/webhook plumbing.
-- **One card, all engines:** enrich each status card with the platform's intelligence on demand — Oracle conviction + receipts, radar/intel verdict + top risk flag, smart-money pedigree — so the coins the trader personally chose get the *deepest* view on the platform, not the shallowest.
-- **Organize like a power user:** sort/group by tier, conviction, risk, recency; add a private "why I'm watching" note per coin; a calm "needs attention" lane that floats coins with fresh changes above the quiet ones.
-- **Watched-coin timeline:** a compact per-coin history (tier/risk/price trajectory since added) so the trader sees the arc, not just the snapshot — answering "is my thesis playing out?"
-- **Portability without an account:** keep it device-local and private by default, but add export/import (and, where a session exists, optional cross-device sync) so a cleared browser doesn't erase the trader's work.
-- **Cross-feature wiring (required):** the watchlist already receives writes from 8 surfaces — make it *give back*. Feed its change-events into the unified live feed (`/activity`+), let an Oracle armed agent optionally scope to watchlist coins, and make every Watch button across the platform reflect real watchlist membership state (filled star when watched) so the loop is visibly closed everywhere.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_05_watchlist.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_06_pump-dashboard.md b/prompts/feature-innovation/07_06_pump-dashboard.md
deleted file mode 100644
index 1f99acddc..000000000
--- a/prompts/feature-innovation/07_06_pump-dashboard.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Pump Dashboard: The Power-User Command Center
-
-> **Task file:** `prompts/feature-innovation/07_06_pump-dashboard.md`
-> **Surface:** `/pump-dashboard` (Token Cockpit)
-> **Primary source:** `pages/pump-dashboard.html` (large inline module, ~5000 lines); imports `src/solana/vanity/grinder.js`, `src/solana/vanity/validation.js`, `src/shared/state-kit.js`; uses `src/wallet.js`
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a serious pump.fun operator — a trader/builder who wants *everything in one cockpit*: live launch/trade/whale/graduation feed, network health, market chart, token scanner, quote engine, alert rules, a vanity address grinder, agent management, revenue, API keys. `/pump-dashboard` exists to be that command center — the single tab a power user keeps open all day to monitor, react, and act.
-
-"Gamechanging" means a command center that feels like a *professional terminal*, not a tab graveyard. Twelve tabs is power, but power without orchestration is overwhelm. The leap is to make the cockpit **adaptive and connected**: the most important signal finds the user wherever they are, the headline interactive payoffs (the vanity grinder, the alert-rule builder) feel magical, and every panel links into the rest of the platform so the cockpit is a launchpad, not a silo. Build the surface a power user would pay for.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Bloomberg Terminal's information orchestration, a trading desk's multi-monitor layout, the polish of Vercel/Stripe dashboards, the satisfaction of a great background-job UI). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/pump-dashboard`; entry from nav, "Open Token Cockpit →" (`/dashboard/tokens`), `/autopilot`, sitemap; deep link `?agent=<id>` auto-opens Default Agent panel; `#hash` deep-links any tab.
-- **Source:** `pages/pump-dashboard.html` (inline module ~5000 lines); `src/solana/vanity/grinder.js`, `src/solana/vanity/validation.js`, `src/shared/state-kit.js`, `src/wallet.js`.
-- **Current flow:** 3 required (arrive → `connectApi()`/`connectWebSocket()` → panels populate) + ~9 optional tab flows. `DOMContentLoaded` restores config from localStorage (api/ws/rpc/key), resolves `?agent=`/`#hash`. `connectApi()` polls `GET /api/healthz` (15s, status dot); `connectWebSocket()` opens `wss://pumpportal.fun/api/data`, subscribes `subscribeNewToken`+`subscribeMigration` (exponential backoff, 8-attempt cap → manual Reconnect banner). Preloads channel-feed, helius-stats (30s), featured agent, trending ($THREE pinned first). 12 hash-routed tabs: Default, Live Feed (rAF-batched, pause+filter), Token Scanner, Quote Engine, Alerts (rule builder + CRUD + live firing + history), Vanity Generator (up to 8 WASM Web Workers, tries/rate/eta, reveal/copy/download keypair), Default Agent (embed iframe, postMessage, manage custom agents w/ CSRF), Revenue, Configuration, API Reference (key CRUD), plus Watches/Claims (require PumpKit backend).
-- **What works today:** real WS feed with backoff + manual reconnect; healthz status dot; optional wallet connect → `POST /api/wallet/balances` (SOL + top-10 holdings); token scanner; buy/sell quote forms; alert-rule builder with in-app/webhook/Telegram delivery, cooldown, live firing, history; vanity grinder (real WASM workers, secret never leaves browser); agent embed + management; designed empty/error states via `state-kit`.
-- **Real APIs / dependencies already wired:** `/api/healthz`, `/api/pump/helius-stats`, `/api/pump/channel-feed`, `/api/pump/trending`, `/api/agents/featured`, `/api/agents` (+CSRF), `/api/wallet/balances`, `/api/pump/scan`, `/api/pump/quote/{buy,sell}`, `/api/alerts/rules` (CRUD), `/api/notifications`, `/api/api-keys` (CRUD), revenue endpoints; `wss://pumpportal.fun/api/data`; Solana RPC via `/api/solana-rpc`; Phantom/MWA wallet; vanity Web Workers; model-viewer CDN.
-- **Where it's mediocre, thin, or unfinished:** 12 tabs are siloed — the feed doesn't talk to the scanner, the scanner doesn't talk to the quote engine, alerts don't deep-link to the thing that fired them. There's no customizable layout (every user gets the same fixed tab order regardless of what they actually use). The headline interactive payoffs (vanity grind, alert builder) are strong but isolated — no celebration on a vanity hit, no "create alert from this feed event" shortcut. The Oracle/conviction intelligence the rest of the platform runs on is barely surfaced here. It's a collection of tools, not an orchestrated workspace.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Command palette + cross-tool flow:** a keyboard-driven command palette (jump to any tab, scan a mint, quote a buy, arm an alert) that turns 12 tabs into one fluid surface — and wire the tools to each other: click a feed event → scan it → quote it → set an alert on it, without leaving the flow.
-- **Customizable cockpit layout:** let the power user pin, reorder, and resize the panels they actually use into a saved layout (persisted locally), with a dense "terminal" mode for multi-monitor setups. The cockpit should adapt to the operator, not the reverse.
-- **"Create alert from anything":** every live feed event, scanner result, and quote becomes a one-click alert-rule seed — the alert builder pre-filled from real context — closing the gap between *seeing* a signal and *automating* a reaction.
-- **Make the vanity grind a moment:** real-time worker telemetry (per-worker rate, combined eta with confidence), a satisfying reveal/celebration on a hit, and a clean security story for the keypair (never leaves browser) made visible and trustworthy.
-- **Cross-feature wiring (required):** surface Oracle conviction (`/api/oracle/coin`, action-stream) and radar/intel risk inline on every feed/scanner/quote item so the cockpit inherits the platform's brain; Watch buttons write `ld_watchlist`; alerts deep-link to `/oracle`, `/watchlist`, `/trader`; "arm an agent" hands off to the Oracle arm flow or `/strategy-lab`. The cockpit should feel like the front door to the whole trading platform.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_06_pump-dashboard.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_07_strategy-lab.md b/prompts/feature-innovation/07_07_strategy-lab.md
deleted file mode 100644
index 6cefa0eb3..000000000
--- a/prompts/feature-innovation/07_07_strategy-lab.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Strategy Lab: No-Code Autonomous Trading Builder
-
-> **Task file:** `prompts/feature-innovation/07_07_strategy-lab.md`
-> **Surface:** `/strategy-lab`
-> **Primary source:** `public/strategy-lab.html` (pre-built static, ~720 lines, text-only UI, no 3D); `vercel.json` rewrite `/strategy-lab → /strategy-lab.html`
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants their agent to trade *for them* by rules they define — scan for candidates, filter by criteria, enter, exit, with hard caps — and they want to *prove the strategy works before risking real SOL*. `/strategy-lab` exists to be the no-code autonomous trading strategy builder: define a spec, validate it, backtest it on real on-chain data, simulate it live, and — gated behind sign-in, a provisioned wallet, and a balance check — run it live with real funds, streaming every entry/exit into a log.
-
-This is the **most interactive surface in the cluster**, and the highest-stakes: it signs real transactions. "Gamechanging" means making strategy-building feel *safe and powerful* — powerful enough that a non-coder can express a real edge, safe enough that they always understand exactly what their money will do before it does it. The leap is to make the validate→backtest→run pipeline a confidence-building experience, not a JSON editor with buttons. Build the tool that turns "I have a trading idea" into "my agent is running it, and I trust it."
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (TradingView's strategy tester, Zapier/n8n's visual flow builders, the safety choreography of a Stripe payment confirmation, the clarity of a great backtest report). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/strategy-lab` (static, rewritten from `/strategy-lab.html`).
-- **Source:** `public/strategy-lab.html` (~720 lines, text-only, no 3D).
-- **Current flow:** 4 required (arrive → spec → Validate → Run simulate) + ~4 optional. Arrive → spec editor + results/portfolio panels render; `GET /api/agents` populates agent dropdown if signed in; pick network (mainnet/devnet). Optional select agent → `GET /api/agents/{id}/solana?network=` shows wallet + balance, provision via `POST` if none, low-balance warning < 0.02 SOL. Load preset (Momentum/Snipe/Mean-revert) or hand-edit JSON spec (`scan`, `filters`, `entry`, `exit`, `caps`). Validate → `POST /api/pump/strategy-validate`. Backtest → `POST /api/pump/strategy-backtest` (real on-chain, no auth) → metrics grid (PnL, ROI, win rate, trades, max drawdown, SOL deployed) + per-trade table. Run → `POST /api/pump/strategy-run` `{durationSec, mode:'simulate'|'live', network, agentId?}` → SSE stream (start/log/enter/exit/skip/done) into live log. Stop (`activeRun.abort()`). Portfolio panel → `GET /api/pump/portfolio?agentId=&network=` (holdings, cost basis, unrealized PnL); Close All → `POST /api/pump/strategy-close-all`.
-- **What works today:** real validate/backtest/run pipeline on real on-chain data; presets + hand-edited JSON spec; SSE live run log; simulate (public) vs live (gated: sign-in + provisioned wallet + ≥0.02 SOL + confirmation dialog); portfolio with cost basis + unrealized PnL; Close All; designed empty/error states; network toggle.
-- **Real APIs / dependencies already wired:** `/api/agents`, `/api/agents/{id}/solana` (GET+POST), `/api/pump/strategy-validate`, `/api/pump/strategy-backtest`, `/api/pump/strategy-run` (SSE), `/api/pump/portfolio`, `/api/pump/strategy-close-all`; backend MCP → Solana RPC + pump.fun indexer; agent hot wallet signs in live mode.
-- **Where it's mediocre, thin, or unfinished:** the spec is raw JSON — powerful for coders, a wall for the "no-code" user the route promises. There's no visual strategy builder, no inline explanation of what each rule *means* in plain language, no guardrail preview ("this strategy could deploy up to X SOL across Y positions"). Backtest results are a metrics grid + table but no equity curve, no visualization of *where* trades happened, no comparison between strategies. The jump from backtest to live is a confirmation dialog — the safety story could be far richer (what exactly will happen in the first minute, kill-switch, real-time cap consumption). There's no strategy library/sharing, no way to clone a winning trader's style into a spec.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **True no-code builder:** a visual rule builder (scan → filters → entry → exit → caps) that compiles to the existing JSON spec — each rule a plain-English sentence the user assembles, with live validation, so a non-coder builds a real strategy without touching JSON. Keep the JSON view as an "advanced" toggle, perfectly round-tripped.
-- **Backtest that tells a story:** an equity curve, drawdown band, and a trade-by-trade timeline visualization on top of the metrics grid; the ability to backtest two specs side-by-side and see which edge is real; a plain-English summary of *why* the strategy won or lost.
-- **Safety as a feature, not a dialog:** before any live run, a "what will happen" preview — max SOL at risk, max concurrent positions, worst-case drawdown from backtest — plus a live cap-consumption meter and an always-visible kill switch during the run. The trader should never be surprised by what their money did.
-- **Strategy library:** save, name, version, and (optionally) share strategies; seed from presets *and* from real winning behavior — "build a strategy from this trader's style" pulling from the leaderboard/trader profiles.
-- **Cross-feature wiring (required):** connect Strategy Lab to the platform's brain and reputation — use Oracle conviction tiers and radar/intel risk flags as first-class scan/filter primitives in the builder; let a backtested strategy graduate into an Oracle armed agent; surface live runs into `/activity` and the trader profile; and make "copy this trader" from `/leaderboard` land here as a pre-filled, editable spec.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_07_strategy-lab.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/07_08_smart-money.md b/prompts/feature-innovation/07_08_smart-money.md
deleted file mode 100644
index 852133552..000000000
--- a/prompts/feature-innovation/07_08_smart-money.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# 🚀 Innovation Brief — Smart Money: Follow the Winning Wallets
-
-> **Task file:** `prompts/feature-innovation/07_08_smart-money.md`
-> **Surface:** `/smart-money` and `/gmgn`
-> **Primary source:** `pages/smart-money.html` (self-contained inline module) + backend `api/pump/smart-money.js`; `public/gmgn.html` (pre-built static, ~900 lines) + backend `api/agents/gmgn.js` (SSE `/api/agents/gmgn-feed`, reactive 3D `<model-viewer>` avatar)
-> **Atlas reference:** `docs/ux-flows/07-crypto-trading-analytics.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user knows the oldest edge in crypto: *follow the wallets that win.* `/smart-money` ranks fresh coins by buyer pedigree (proven-wallet count, smart buy volume) and maintains a wallet reputation board (smart_money/sniper/dumper/rugger labels); `/gmgn` streams smart-money entries live as an animated, optionally-narrating 3D agent reacts in real time. Together they answer: *which wallets are good, and what are they buying right now?*
-
-"Gamechanging" means making "follow the winning wallets" actionable and alive — not a static reputation table, but a *living signal* that tells the trader when proven money moves, who exactly moved, and whether to follow. The `/gmgn` reactive 3D avatar is a unique asset: a market that *performs* its own pulse. The leap is to fuse the rigor of `/smart-money` (provable wallet pedigree, on-chain evidence) with the visceral, glanceable energy of `/gmgn` (an agent that reacts to smart money in 3D) into one follow-the-winners experience. Build the tool that makes copying smart money feel obvious and safe.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Nansen's smart-money flows, Arkham's wallet intelligence, GMGN's speed, the delight of a character that reacts to live data like a Twitch overlay). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/smart-money`; `/gmgn` (rewritten from `/gmgn.html`; `/api/agents/gmgn-feed → /api/agents/gmgn?_handler=feed`).
-- **Source:** `pages/smart-money.html` + `api/pump/smart-money.js`; `public/gmgn.html` + `api/agents/gmgn.js`.
-- **Current flow:**
- - **/smart-money:** arrive → reads `ld_watchlist`, renders 6 skeletons, `refresh()`; auto-refresh 20s (pauses when tab hidden) → `GET /api/pump/smart-money?limit=60` (coins ranked by smart_money_score, proven-wallet count, smart buy volume) + parallel `?leaderboard=1&limit=60` (top wallets by reputation). Tabs Feed ↔ Top wallets; per-coin Watch (`ld_watchlist`); click coin → drawer `?mint=<mint>` (notable wallets, labels) + async `GET /api/oracle/coin` (conviction pillars); click wallet → drawer `?wallet=<addr>` (win rate, record, recent coins).
- - **/gmgn:** arrive → 3D agent (CZ default) into `<model-viewer>` (auto-rotate); params chain=sol, interval=1h, minSmartBuys=2, narrate, avatar, mood → SSE `EventSource('/api/agents/gmgn-feed?...')` → `hello` (status pill "Live · SOL · 1h"), last 10 replayed dimmed, then `smart_entry` events stream. Per event: render card (symbol, MC, smart-buy delta, price change), trigger agent animation by delta/new flag, optional TTS narration, increment stats, "↑ N new" jump. Optional: change chain/interval/minSmartBuys, mood (chill/normal/hype), narration toggle, avatar picker modal (`GET /api/avatars/public` + `GET /api/avatars`), Apply (`#ctl-reconnect`), $THREE spotlight tile on CA hit.
-- **What works today:** real wallet-reputation board with labels; coins ranked by buyer pedigree; coin + wallet drawers with on-chain records; Oracle conviction enrichment; live SSE smart-money feed with reactive, narrating 3D avatar; mood/narration/avatar controls; instant reconnect on filter change; designed empty/stale/error states with retry.
-- **Real APIs / dependencies already wired:** `GET /api/pump/smart-money` (feed / `?leaderboard=1` / `?mint=` / `?wallet=`), async `GET /api/oracle/coin`; SSE `/api/agents/gmgn-feed` (upstream GMGN.ai feed via `connectGmgnFeed`); `/api/avatars/public`, `/api/avatars`; model-viewer CDN. Data from `coin_smart_money` + `wallet_reputation` tables (off-browser sniper engine).
-- **Where it's mediocre, thin, or unfinished:** the two surfaces don't know about each other — `/smart-money` is rigorous but static (a ranked table that refreshes), `/gmgn` is alive but shallow (a feed + an avatar, with thin per-wallet depth). Neither lets the trader *act*: there's no "follow this wallet" that turns pedigree into an alert or an armed agent. The wallet reputation is labeled but not narrated (why is this wallet "smart money"? show me its proof). The 3D avatar reacts but doesn't *inform* — its animations are decorative, not a readable signal of intensity. No notion of "a wallet I follow just bought."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Follow a wallet, get the signal:** turn wallet pedigree into action — "follow" a proven wallet and get alerted (in-app + existing Telegram/webhook plumbing) the moment it enters a fresh coin, with the wallet's track record attached so the trader can judge instantly. Reputation becomes a subscription, not a lookup.
-- **Proof-backed reputation:** every smart_money/sniper/dumper/rugger label decomposes into on-chain evidence — win rate, biggest calls, recent record — so the trader trusts the label because they can verify it, not because it's asserted.
-- **The avatar as a real instrument:** make the `/gmgn` 3D agent's reactions *mean* something — intensity of animation maps to smart-buy delta, distinct reactions for a known-followed wallet vs. a new one, mood that shifts with market regime — so a glance at the avatar conveys the market's state. A market that performs its own pulse, legibly.
-- **Unify rigor + energy:** give `/smart-money` (the dossier) and `/gmgn` (the live show) one coherent relationship — the live feed surfaces the entry, one click drops into the rigorous wallet/coin drawer with full proof. Two views of one idea: follow the winners.
-- **Cross-feature wiring (required):** cross-reference smart-money pedigree everywhere — flag proven wallets in `/radar`/`/coin-intel` funder clusters, show "smart money is in" on `/oracle` and `/watchlist` cards, let a "follow these wallets" set seed an Oracle armed agent or a `/strategy-lab` scan filter. A wallet rated "rugger" should warn the trader on every surface.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/07_08_smart-money.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/07-crypto-trading-analytics.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_01_launch-a-coin.md b/prompts/feature-innovation/08_01_launch-a-coin.md
deleted file mode 100644
index 7798a40fc..000000000
--- a/prompts/feature-innovation/08_01_launch-a-coin.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Launch a Coin-Backed Agent
-
-> **Task file:** `prompts/feature-innovation/08_01_launch-a-coin.md`
-> **Surface:** `/launch`
-> **Primary source:** `pages/launch.html` → `public/launch/launch.js` (`mountLaunchCoin`) → `public/studio/launch-panel.js` (`mountLaunchPanel`) → `public/studio/fees-panel.js`; vanity stamp `src/solana/vanity/grinder.js` + `src/solana/vanity/brand.js` (`THREE_WS_VANITY`)
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a creator who wants to launch a coin-backed agent on Solana — a person who picks an agent, names a token, and walks away with a tradable mint that lives on pump.fun and inside three.ws. They are nervous: this spends real SOL, signs a real transaction, and is irreversible. The feature exists to make that leap feel **safe, fast, and unmistakably theirs** — the smoothest, most trustworthy coin-launch flow that exists anywhere, with a `3ws`-stamped mint address as a built-in proof of origin.
-
-"Gamechanging" here means: a launch that a first-timer completes without fear and a pro completes in seconds. The vanity stamp, the dual signing models (connected client-signs vs. agent server-signs), the SIWS link ceremony, and the 75s confirm window are not friction to hide — they are trust signals to *celebrate*. Make the user feel they did something irreversible and got it exactly right.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (pump.fun's launch, Stripe Checkout's confidence, Linear's command surface, Phantom's signing clarity). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/launch` (`pages/launch.html`, `#launch-root` two-column shell: agent picker left + launch panel right).
-- **Source:** `public/launch/launch.js` (`mountLaunchCoin`), `public/studio/launch-panel.js` (`mountLaunchPanel` — the real flow, shared with `/studio` and the avatar page), `public/studio/fees-panel.js` (post-launch). Vanity grind: `src/solana/vanity/grinder.js`, brand mark `src/solana/vanity/brand.js` (`THREE_WS_VANITY`).
-- **Current flow:** 15 required steps (+5 optional) — boot (`fetchMe` → `fetchAvatars`) → pick agent (deep-link `?avatar=`) → auto-check existing mint (`/api/pump/by-agent`) → edit image/name/symbol/description → pick coin type (Regular/Mayhem/Agent/USDC/Reward) → optional buyback slider + initial buy → choose wallet source → launch → build metadata → stamp `3ws` mint → sign → confirm (75s poll) → success card.
-- **What works today:** Dual signing models (connected wallet client-grinds + client-signs vs. custodial agent wallet server-grinds + server-signs); SIWS link ceremony with 409 takeover; live cost line; per-phase status; confirmation-timeout escape hatch; `friendlyError()` mapping; vanity `3ws` stamp with live k/s + ETA; success card with pump.fun/Solscan/agent links + share copy.
-- **Real APIs / dependencies already wired:** `/api/auth/me`, `/api/avatars`, `/api/pump/by-agent`, `/api/auth/wallets`, `/api/auth/wallets/nonce-solana`, `/api/auth/wallets/link-solana`, `/api/pump/agent-wallet`, `/api/pump/build-metadata`, `/api/pump/launch-prep`, `/api/pump/launch-confirm`, `/api/pump/launch-agent`, `/api/solana-rpc` (Connection RPC). External: `esm.sh/@solana/[email protected]`, `esm.sh/[email protected]`, pump.fun (mint target), Solscan.
-- **Where it's mediocre, thin, or unfinished:** The flow is correct but transactional — it reads like a form, not a launch event. The `3ws` stamp grind shows numbers but no *anticipation*. There is no pre-flight "this is exactly what will happen and cost" confirmation surface that consolidates coin type + buyback + buy-in + fee model into one reviewable summary. The success moment is a card, not a moment. Coin-type selection asks users to understand Regular/Mayhem/Agent/USDC/Reward with little guided help. No post-launch "what now" path beyond external links. The confirm window is a passive wait, not a designed experience.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **The pre-flight confirmation.** Before the irreversible click, render a single Stripe-grade review surface: token identity, coin-type plain-English explanation, exact SOL/USDC cost broken into base + buy-in + network, the wallet that will sign, and the `3ws` mark preview. One glance, total confidence, then commit.
-- **Make the `3ws` grind a launch sequence, not a progress bar.** Turn the vanity stamp into a designed anticipation moment — the address materializing character by character with the `3ws` prefix locking in last, k/s and ETA as ambient telemetry. The wait *becomes* the wow.
-- **Coin-type as a guided decision, not a dropdown.** Each type (Regular / Mayhem / Agent buyback+burn / USDC / Reward) gets a one-line "who this is for" and a live preview of its fee/buyback mechanics. Recommend a default based on the selected agent.
-- **Designed confirmation window.** Replace the passive 75s poll with a live tx-status timeline (submitted → propagating → confirmed) sourced from real `/api/solana-rpc` status checks, with the escape hatch always one tap away.
-- **Cross-feature wiring:** on success, deep-link straight into `/coin3d?mint=` (the new mint as a living 3D object), prepend it to the user's view of `/launches`, and offer a one-tap path to mint the matching `*.threews.sol` name (`/threews/claim`) so the coin, its 3D form, and its human-readable identity ship together. Surface the new mint in the agent's profile launch history immediately.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_01_launch-a-coin.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_02_launches-feed.md b/prompts/feature-innovation/08_02_launches-feed.md
deleted file mode 100644
index fcb0bdd41..000000000
--- a/prompts/feature-innovation/08_02_launches-feed.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Launches Feed
-
-> **Task file:** `prompts/feature-innovation/08_02_launches-feed.md`
-> **Surface:** `/launches` (and `/launches/:mint` detail)
-> **Primary source:** `pages/launches.html` → `src/launches.js`; imports `src/pump/coin-status-card.js` (`mountCoinStatus`), `src/shared/agent-wallet-chip.js` (`walletChipEl`)
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a discoverer — someone scanning newly launched agent-coins for the next credible one before the crowd. They need signal fast: which launches are real, which agent is behind them, what the market is doing right now, and which deserve a closer look. The feed exists to be **the place to discover credible new agent-coins on three.ws** — fully public, read-only, live.
-
-"Gamechanging" here means the feed itself does the filtering a savvy trader would do manually: surfacing Oracle conviction tiers, live market enrichment, and the agent provenance behind each coin so a newcomer can tell signal from noise at a glance. It should feel alive — refreshing, breathing, prepending genuinely new launches — and make the user trust three.ws as their discovery surface, not pump.fun's raw firehose.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (DexScreener's density, pump.fun's live feed, Linear's filter ergonomics, Robinhood's at-a-glance market cards). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/launches` (card grid, `#lx-feed`, hero stats, network/oracle filter buttons, marquee ticker, ambient particle canvas) and `/launches/:mint` (detail).
-- **Source:** `pages/launches.html` → `src/launches.js`; per-card market via `src/pump/coin-status-card.js` (`mountCoinStatus`); agent chip `src/shared/agent-wallet-chip.js` (`walletChipEl`).
-- **Current flow:** 4 required steps (+4 optional) — boot reads URL params (`network`, `agent_id`, `oracle_tier`), starts particle field, renders 8 skeletons → `loadPage()` `GET /api/pump/launches` → per mainnet card `mountCoinStatus` streams price/logo/market-cap/graduation → `enrichCardsWithOracle` batch-paints conviction tier badges → optional filters / load-more / watchlist / live 60s refresh.
-- **What works today:** Live market enrichment over seeded identicon placeholders; Oracle tier badges (prime/strong/lean) via `/api/oracle/batch` (≤20/req); network + oracle-tier + agent filters with URL sync; offset pagination; localStorage watchlist (`ld_watchlist`, shared with `/coin3d`); 60s live refresh that prepends new launches; per-card deep links to detail, pump.fun, `/coin3d?mint=`, `/communities/:mint`, and the agent profile.
-- **Real APIs / dependencies already wired:** `/api/pump/launches`, `/api/pump/coin`, `/api/oracle/batch`, `/api/agents/:id`. External: pump.fun, Solscan, Solana explorer (links).
-- **Where it's mediocre, thin, or unfinished:** The grid is a list of cards, not a ranked discovery surface — there is no sort (by market cap, age, conviction, momentum), no "rising / trending" lens, no way to compare. Oracle tiers are badges, not a filter-and-rank dimension users can lean on. The `/launches/:mint` detail is thin relative to what the data supports. No personalization beyond the watchlist. Devnet cards are dead-ends with static identity. The empty/error states exist but the *populated* state lacks a sense of velocity and credibility ranking that would make this the default discovery tool.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Conviction-ranked discovery.** Make Oracle tier a first-class sort/rank, not just a badge. Default the feed to a credibility-weighted order (tier × recency × live market signal) so the best new agent-coins float up — turn the firehose into a curated lead list.
-- **Momentum lenses.** Add sortable/filterable views: Newest, Rising (market-cap velocity from `/api/pump/coin` deltas), Near graduation, Most-watched. Each is a live lens over the same real data.
-- **A real `/launches/:mint` detail.** Build it into a credible coin dossier: live market + bonding-curve, the launching agent's provenance, Oracle conviction rationale, holder snapshot, and an embedded `/coin3d` view — the page a trader sends to a friend to say "look at this one."
-- **Provenance you can trust.** Lean on the `agent-wallet-chip` to show *who* launched each coin (agent + wallet track record), turning anonymous mints into accountable launches.
-- **Cross-feature wiring:** link every card's 3D button to `/coin3d?mint=` (token as a living object) and its 3D world to `/communities/:mint`; let a coin's launching agent jump to that agent's profile and its full launch history; surface a coin's `*.threews.sol` name if it has one (`/threews/claim` ecosystem) so identity and discovery connect.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime. The `/launches` feed renders coins users launched through three.ws from real launch records — that is the permitted product feature; do not hardcode or recommend any specific non-$THREE mint.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_02_launches-feed.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_03_claim-wallet.md b/prompts/feature-innovation/08_03_claim-wallet.md
deleted file mode 100644
index 69d7313d7..000000000
--- a/prompts/feature-innovation/08_03_claim-wallet.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Claim Wallet (Trader Card)
-
-> **Task file:** `prompts/feature-innovation/08_03_claim-wallet.md`
-> **Surface:** `/claim-wallet`
-> **Primary source:** `pages/claim-wallet.html` → `src/claim-wallet.js`
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a Solana trader with a real pump.fun track record who wants to *own* that reputation publicly — to prove "this wallet, with these wins, is me." The feature exists to turn an anonymous wallet's on-chain history into a **verified, shareable Trader Card**, claimed by cryptographic proof of keypair control (SIWS, gasless, no transaction). The proof matters: anyone can paste an address, but only the keypair holder can claim it.
-
-"Gamechanging" here means making verified reputation **viral and trustworthy** — a card good enough that traders want it on their profile and in their bio, and credible enough that others trust the badge. Proving control should feel like minting credibility, not filling out a form. The shareable artifact is the growth loop.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe's verified badges, GitHub's contribution graph, Linear's profile cards, the polish of a Phantom signing prompt). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/claim-wallet` (`#cwInput` address field + `#cwBtn` Preview; results render in `#cwResult`).
-- **Source:** `pages/claim-wallet.html` → `src/claim-wallet.js`.
-- **Current flow:** Preview path is 3 steps; full claim is 8 — boot warms `/api/auth/me` (`?wallet=` pre-fills + auto-previews) → paste base-58 wallet (validated by `WALLET_RE`) → Preview `GET /api/traders/preview` renders the Trader Card (label, win rate / early-win / smart-money score / net PnL / dumps + up to 15 recent pump.fun coins) → CTA branches by state → claim: detect provider → `connect()` → abort if pubkey ≠ previewed wallet → `nonce-solana` → `signMessage` (gasless) → `link-solana` (409 takeover via `window.confirm` + `takeover:true`) → re-read linked wallets → claimed state.
-- **What works today:** Public preview; SIWS proof of keypair control; connected-wallet-must-match guard; 409 takeover; claimed/unclaimed/signed-out CTA branching; share via Web Share API or Twitter intent; claimed status verified against `/api/auth/wallets` (chain_type=solana).
-- **Real APIs / dependencies already wired:** `/api/auth/me`, `/api/traders/preview`, `/api/auth/wallets`, `/api/auth/wallets/nonce-solana`, `/api/auth/wallets/link-solana`. Wallet providers: Phantom/Solana/Backpack/Solflare.
-- **Where it's mediocre, thin, or unfinished:** The Trader Card is a stats block, not a *trophy* — it doesn't feel like something you'd pin to a profile or paste in a bio. The share path uses a text intent rather than a designed, screenshot-worthy card image. The `notFoundHtml` ("wallet not yet indexed") is a dead end with no next step. There's no celebratory claim moment, no sense of scarcity or rank, and the verified state isn't visually distinct enough to read as *trust* at a glance. The proof ceremony (the most trustworthy part) is buttons, not a guided, reassuring flow.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **The Trader Card as a shareable artifact.** Generate a designed, OG-image-ready card (real stats baked in) so a share produces a beautiful preview in Twitter/Discord/Telegram — the viral surface. The card *is* the marketing.
-- **A verified-claim moment.** When SIWS succeeds, make it feel earned: a designed confirmation, the verified badge animating in, "this reputation is now provably yours." Trust signals deserve celebration.
-- **Rank and scarcity.** Contextualize the stats — percentile win rate, smart-money standing, early-win streaks — so the card reads as a leaderboard position, not isolated numbers. Make people want a better card.
-- **Rescue the not-found state.** When a wallet isn't indexed, give a real next step (request indexing, preview a connected wallet instead, link to claim a different address) instead of a dead end.
-- **Cross-feature wiring:** link the claimed card to the public `/trader/:wallet` profile and to that wallet's coins on `/launches`; if the wallet launched coins through three.ws, surface them; offer to mint a matching `*.threews.sol` identity (`/threews/claim`) so a verified trader gets a human-readable name to match their proven track record.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime. A wallet's real pump.fun trade history rendered from `/api/traders/preview` is live on-chain data, not a coin endorsement — never single out or recommend any specific non-$THREE mint in copy.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_03_claim-wallet.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_04_vanity-wallets.md b/prompts/feature-innovation/08_04_vanity-wallets.md
deleted file mode 100644
index 838487c9a..000000000
--- a/prompts/feature-innovation/08_04_vanity-wallets.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — In-Browser Vanity Wallets
-
-> **Task file:** `prompts/feature-innovation/08_04_vanity-wallets.md`
-> **Surface:** `/vanity-wallet` (Solana ed25519), `/eth-vanity` (EVM CREATE2 salt), `/evm-wallet` (EVM EOA secp256k1)
-> **Primary source:** `public/vanity-wallet.html` + `src/solana/vanity/grinder.js` (`grindVanity`) + `src/solana/vanity/validation.js`; `public/eth-vanity.html` + `src/eth/vanity/grinder.js` (`grindCreate2Vanity`) + `src/eth/vanity/{validation,wordlist}.js`; `public/evm-wallet.html` + `src/eth/vanity/eoa-grinder.js` (`grindEoaVanity`); card variants `src/agent-eth-vanity-card.js`, `src/agent-vanity-grinder.js`
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants a memorable, branded crypto address — a wallet that starts with their name, ends with a word, or matches their agent — generated **entirely in their browser** so the private key never touches a server. Today this lives across three separate tools (Solana EOA, EVM CREATE2 contract salt, EVM EOA). The feature exists to give users custom on-chain identity safely, and to let them securely assign that identity to a three.ws agent.
-
-"Gamechanging" here means unifying these into **the best in-browser vanity-address experience anywhere** — one coherent, trustworthy tool that handles Solana and EVM, EOA and contract, with grind performance, security clarity ("your key never leaves this device"), and a frictionless, safe path to assign the result to an agent. The cryptographic correctness already exists; the experience must become the reason people choose three.ws for this.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (vanity-eth/profanity-era tools but *safe*, Phantom's key-handling clarity, Linear's input ergonomics, the satisfaction of a fast progress meter). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/vanity-wallet` (Solana ed25519 EOA), `/eth-vanity` (EVM CREATE2 deterministic salt → contract address), `/evm-wallet` (EVM EOA secp256k1, pure self-custody).
-- **Source:** `/vanity-wallet` → `public/vanity-wallet.html` inline module + `src/solana/vanity/grinder.js` (`grindVanity`) + `src/solana/vanity/validation.js`. `/eth-vanity` → `public/eth-vanity.html` + `src/eth/vanity/grinder.js` (`grindCreate2Vanity`) + `validation.js` + `wordlist.js`. `/evm-wallet` → `public/evm-wallet.html` + `src/eth/vanity/eoa-grinder.js` (`grindEoaVanity`). Embedded card variants: `src/agent-eth-vanity-card.js`, `src/agent-vanity-grinder.js`.
-- **Current flow:** Solana — 3 required (+4 optional): prefix/suffix ≤6 + case-insensitive toggle + CPU-core slider → `grindVanity` Web Worker pool with live attempts/sec + ETA + scan line → result card (download Solana CLI JSON keypair, copy pubkey) → optional assign to agent (`GET /api/agents`; `POST/DELETE /api/agents/:id/solana` with `secret_key` + vanity prefix/suffix; 409 replace). CREATE2 — 4 (+2): hex prefix/suffix (EIP-55) + deployer/factory + init-code-hash (or raw init code → auto-keccak) → `grindCreate2Vanity` salt grind → result (predicted address + salt) → optional assign (`POST/DELETE /api/agents/:id/eth-vanity`; deterministic input set, no private key). EOA — 4 (+1): prefix/suffix → `grindEoaVanity` secp256k1+keccak pool → result (checksummed address + private key text + encrypted UTC keystore download); **no** server handoff, pure self-custody.
-- **What works today:** Real client-side WASM/worker grinding (keys never leave device); difficulty meter + per-core ETA; pause/resume/stop via AbortController; downloadable keypair/keystore; secure agent-assign with replace + 409 handling for Solana and CREATE2; EOA stays fully self-custody.
-- **Real APIs / dependencies already wired:** Grinding is fully client-side. Assign paths: `/api/agents`, `/api/agents/:id/solana` (POST + DELETE), `/api/agents/:id/eth-vanity` (POST + DELETE). Hashing via `@noble/hashes/sha3`; keystore via ethers `Wallet`.
-- **Where it's mediocre, thin, or unfinished:** Three separate pages with separate UX, separate styling, and overlapping concepts — a user doesn't know which tool they need. The security story (key never leaves the browser) is stated, not *felt*. Performance telemetry is functional but not reassuring or impressive. Assign-to-agent is bolted on differently per tool. There's no unified entry that routes a user to the right grind (Solana vs EVM, EOA vs contract). No shared design language, no shared pattern library, and the embedded card variants drift from the standalone tools.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Unify into one vanity studio.** A single coherent surface that asks "what do you want — a Solana wallet, an EVM wallet, or an EVM contract address?" and routes to the right grinder, sharing one design language, one telemetry panel, one assign flow. Three tools become one product.
-- **Make safety visible.** Turn "your key never leaves this device" into a designed, trustworthy element — an explicit local-only indicator, a download-and-back-up gate before the result can be dismissed, and a clear contrast between self-custody (EOA) and encrypted-server-custody (agent assign).
-- **Grind as spectacle.** Elevate the attempts/sec + ETA + scan line into a satisfying, performant telemetry view that makes a long grind feel alive and worth waiting for — and honestly communicates difficulty so users pick achievable patterns.
-- **Smart pattern guidance.** A shared difficulty/feasibility model + suggestion chips (wordlist-driven for EVM) so users choose patterns that will actually finish on their hardware, with case-insensitive nudges.
-- **Cross-feature wiring:** make agent-assign first-class — pick an agent (`/api/agents`), grind a matching vanity address, assign it securely, and bounce straight to that agent's home page. Tie a Solana vanity wallet into the launch flow (`/launch`) so a freshly minted branded wallet can be the agent's launch wallet, and connect a `*.threews.sol` name (`/threews/claim`) so address + human-readable identity ship together.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank. (Grinder worker pools must stay responsive and cancellable — never block the main thread.)
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_04_vanity-wallets.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_05_agent-wallet-x402.md b/prompts/feature-innovation/08_05_agent-wallet-x402.md
deleted file mode 100644
index d0694c56d..000000000
--- a/prompts/feature-innovation/08_05_agent-wallet-x402.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Agent Wallet x402 Pay (3D demo)
-
-> **Task file:** `prompts/feature-innovation/08_05_agent-wallet-x402.md`
-> **Surface:** `/play/agent-wallet`
-> **Primary source:** `pages/play/agent-wallet.html` → `src/play-agent-wallet.js`; `src/game/avatar-rig.js`, `src/game/play-handoff.js`; bridge `api/agent-wallet-bridge` (prod) or `scripts/agent-wallet-x402-bridge.mjs` on `127.0.0.1:4402` (dev)
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone who has heard "AI agents can pay for things autonomously" and wants to *see it actually happen* — not a diagram, a real transaction. The feature exists to make autonomous agent payments **tangible and trustworthy**: a 3D avatar walks to a kiosk and pays a real x402 endpoint $0.01 USDC on Solana mainnet, money genuinely leaving the agent's wallet, and returns with the purchased data. It's the most concrete proof that three.ws agents have economic agency.
-
-"Gamechanging" here means turning an abstract protocol (x402, HTTP 402 Payment Required + on-chain settlement) into a **believable, repeatable, trustworthy spectacle**. The user must come away certain the payment was real — real wallet, real chain, real settlement, real Solscan link — and delighted by the embodiment of it. This is the platform's flagship demo of autonomous payments; it should convert skeptics.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe's payment UX clarity, Coinbase Commerce confidence, the polish of a AAA game interaction, Linear's status timelines). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/play/agent-wallet` (`#stage3d` 3D scene: avatar + kiosk + stage board; side panel with topic chips, endpoint card, Pay button).
-- **Source:** `pages/play/agent-wallet.html` → `src/play-agent-wallet.js`; `src/game/avatar-rig.js`, `src/game/play-handoff.js`. Bridge: hosted `api/agent-wallet-bridge` (prod) or local `scripts/agent-wallet-x402-bridge.mjs` on `127.0.0.1:4402` (dev).
-- **Current flow:** 6 required (+1 optional) — boot loads saved `/play` avatar (`CC_AVATAR_KEY`/`?avatar=`), builds 3D rig, `refreshStatus()` → bridge `?status=1` (address/mode + USD balance, repolls 30s) → `loadQuote()` → bridge `?quote=1&endpoint=…` (name/price/pay-to/tags) → optional topic chip (BTC/ETH/SOL) → "Send avatar to pay — $0.01 USDC" → avatar walks to kiosk, pay ring pulses → `POST` bridge `?pay=1` SSE streams `challenge`(402) → `signing` → `signed`/`submitting` → `done` (settled mainnet), board/kiosk/stepper animate in lockstep → receipt (amount, payer→payTo, Solscan link, purchased crypto-intel payload), avatar celebrates + walks home, session total accrues.
-- **What works today:** Real $0.01 USDC mainnet settlement via x402 facilitator; SSE-streamed pay stages animated across 3D scene + stepper; hosted vs. local-dev bridge with different auth models; 401 needs-auth (402→401 "Sign in to pay") and 429 rate-limit handling; live balance + session total; receipt with real Solscan tx link and the purchased intel payload.
-- **Real APIs / dependencies already wired:** bridge `status`/`quote`/`pay` (`/api/agent-wallet-bridge` or local `:4402`); paid endpoint `https://three.ws/api/x402/crypto-intel`; Solana mainnet settlement via x402 facilitator; Solscan (tx link). **The payment is real** — $0.01 USDC leaves the wallet.
-- **Where it's mediocre, thin, or unfinished:** It's a single demo of a single endpoint paying a fixed amount — it proves the concept but doesn't *expand* it. The trust evidence (this really happened on mainnet) is a Solscan link, not a designed, verifiable receipt a skeptic would accept. The 3D scene is a nice touch but the payment *protocol* (the 402 challenge, the signing, the settlement) is under-explained for the curious. There's no history of past payments, no sense of the agent's spending over time, and no path from "I saw it work" to "let me make my agent do this."
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Make the receipt undeniable.** Build a verifiable, designed receipt: amount, payer agent wallet → endpoint payTo, on-chain signature with a one-tap Solscan verify, and the exact x402 challenge/settlement trace — the artifact that converts a skeptic.
-- **Explain the protocol as it happens.** Annotate each SSE stage (402 challenge → sign → submit → settle) inline so the user *understands* what autonomous payment means, not just that it happened. Teach while you delight.
-- **A spend ledger.** Persist and surface the agent's real payment history (this session and prior) so the demo reads as an ongoing economic agent, not a one-shot trick. Show session and lifetime spend.
-- **More to buy.** Generalize beyond a single endpoint/topic to a small, real catalog of x402-priced data the avatar can fetch — each a genuine settlement — so the agent feels like it has a wallet it actually uses.
-- **Cross-feature wiring:** connect to the agent's real custodial wallet used elsewhere (the launch flow's agent wallet, `/avatar-wallet-chat`'s `/api/agent/wallet`) so balance and history are consistent across the platform; offer "fund this wallet" with the same deposit pattern as `/launch`; and let a user pick *their* agent (`/api/agents`) to run the payment, turning the demo into their agent doing real work.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed. (The payment must stay a real on-chain settlement — never fake a tx or signature.)
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation. (Bridge offline, low balance, 401, 429, failed settlement must each have a designed, honest state — "no funds moved" when true.)
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime. (USDC here is the settlement currency of the x402 protocol, not a promoted token — keep it functional, never marketed.)
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast. (The 3D scene must have a reduced-motion-aware, accessible fallback for the pay flow.)
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_05_agent-wallet-x402.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_06_avatar-wallet-chat.md b/prompts/feature-innovation/08_06_avatar-wallet-chat.md
deleted file mode 100644
index d4f710e02..000000000
--- a/prompts/feature-innovation/08_06_avatar-wallet-chat.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Avatar Wallet Chat
-
-> **Task file:** `prompts/feature-innovation/08_06_avatar-wallet-chat.md`
-> **Surface:** `/avatar-wallet-chat`
-> **Primary source:** `pages/avatar-wallet-chat.html` (self-contained inline module); avatar via `/avatar-embed.html` iframe (postMessage bridge); send via `/api/agent/send-sol`; governance via IBM Granite Guardian
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to manage an agent's treasury by *talking to it* — "send 0.1 SOL to this address," "what's my balance," "fund me" — and watch the avatar actually do it, on-chain, with guardrails. The feature exists to make an agent's wallet **conversational and governed**: natural-language intent → a real SOL transfer via `/api/agent/send-sol`, with a server-side IBM Granite Guardian check that can block an unsafe or disallowed send before it ever signs.
-
-"Gamechanging" here means treasury management that feels like delegating to a trusted, embodied assistant — fluid conversation, an avatar that speaks and gestures the outcome, real on-chain confirmation, and *visible governance* so the user trusts that the agent won't do something reckless. It's the human-friendly face of autonomous money: powerful, but never out of control.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (the conversational clarity of a great banking assistant, Stripe's confirmation UX, the trust of a hardware-wallet prompt, the charm of a well-animated avatar). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/avatar-wallet-chat` (avatar iframe + wallet chip showing balance/network/address + chat composer).
-- **Source:** `pages/avatar-wallet-chat.html` (self-contained inline module); avatar rendered via `/avatar-embed.html` iframe with a postMessage bridge.
-- **Current flow:** 6 required (+1 optional) — boot configures avatar iframe (`?id=`/`?handle=`/`?model=`, transparent, overlay), posts `v1.avatar.hello`, flushes queued speech/gestures on `v1.avatar.ready` (or 5s timeout) → `refreshWallet()` → `GET /api/agent/wallet` renders balance (SOL + USD), network badge, short address + explorer link → "Fund your wallet" hint when balance can't cover a $1 send + fee buffer → user chats; `ask()` streams a reply, avatar speaks/gestures, model may emit actions → on a `sendSol` action a payment card renders ("Signing & broadcasting…"); `POST /api/agent/send-sol {usd, to?}` → success card "Confirmed on-chain" (SOL amount, recipient, Solscan link), avatar celebrates, wallet refreshes → governance-blocked sends show a Granite Guardian chip (action already stripped server-side; client never gates).
-- **What works today:** Conversational send intent; real on-chain SOL transfer; streamed assistant reply with avatar speech + gesture; live wallet chip; fund hint; server-side IBM Granite Guardian governance that strips disallowed sends before signing; optional `?token=` shared secret (`x-avatar-token` header); designed success/fail/governance-blocked states.
-- **Real APIs / dependencies already wired:** `/api/agent/wallet`, `/api/agent/send-sol`, the chat/stream endpoint, `/avatar-embed.html`; Solscan (links). Real on-chain SOL transfer on success.
-- **Where it's mediocre, thin, or unfinished:** There's no confirmation step before a real SOL send — intent goes straight to broadcast, which is fast but scary for a real-money action. The governance block is explained as a chip *after* the fact, not as a reassuring, understandable guardrail the user can see working. There's no transaction history in the conversation — past sends vanish. The wallet chip is informational but not interactive (no copy, no deposit flow inline). "Fund" is a hint, not a flow. The chat doesn't surface what the agent *can* do (send, check balance, fund) — discoverability is low.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A confirmation that respects real money.** Before a send broadcasts, render an inline confirm card (amount in SOL + USD, resolved recipient, fee, remaining balance) the user approves in-conversation — fast for small amounts, deliberate for large. Trust without friction theater.
-- **Make governance a feature, not a footnote.** Show the IBM Granite Guardian check working in real time — "checked for safety," with a clear, honest explanation when a send is blocked and what the user can do. Visible guardrails build trust in autonomy.
-- **Conversational treasury history.** Persist sends in the thread so the conversation becomes a real ledger — past transfers with Solscan links, running balance, recurring recipients the user can reuse by name.
-- **An interactive wallet chip.** Copy address, inline deposit (QR + address, the `/launch` pattern), network awareness, and a live low-balance state that offers funding right there — turn the static chip into a control surface.
-- **Cross-feature wiring:** share the agent's wallet identity with `/play/agent-wallet` (x402 spend) and the launch flow's agent wallet so balance/history are one consistent treasury across the platform; let the user pick which of their agents (`/api/agents`) holds the conversation; and let "fund" reuse the deposit modal pattern from `/launch`.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed. (Sends must stay real on-chain transfers — never simulate a confirmation.)
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation. (Wallet offline, low balance, send failure, governance block must each have an honest, designed state.)
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast. (Chat must be fully keyboard-operable; the avatar iframe must have an accessible, reduced-motion-aware fallback.)
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_06_avatar-wallet-chat.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_07_threews-naming.md b/prompts/feature-innovation/08_07_threews-naming.md
deleted file mode 100644
index 92d2b3d6c..000000000
--- a/prompts/feature-innovation/08_07_threews-naming.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — threews.sol Naming & $THREE Economy
-
-> **Task file:** `prompts/feature-innovation/08_07_threews-naming.md`
-> **Surface:** `/threews/claim` (SNS subdomain mint), `/three` ($THREE economy dashboard + rare-name studio)
-> **Primary source:** `pages/threews-claim.html` (self-contained inline module; route `/threews/claim`) + `src/sns/pay-by-name.js`; `pages/three.html` → `src/three-economy.js` (`src/three-access.js` `getAccess`, `src/wallet.js` `initWalletButton`)
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants their agent to have a name a human can actually say and remember — `alice.threews.sol` instead of a 44-character base-58 string. The feature exists to make **human-readable agent identity** real: minting an on-chain SNS subdomain under `*.threews.sol`, with availability you can trust, rarity-based pricing in $THREE, and a `/three` economy dashboard that shows why the name (and the holder tier behind it) matters.
-
-"Gamechanging" here means making a `*.threews.sol` name feel like a **must-have** — the difference between an anonymous wallet and a recognizable agent. Snappy availability checking, a rare-name studio that makes good names feel scarce and worth claiming, on-chain minting that's genuinely owned, and an economy dashboard that ties names, holder tiers, and the platform's $THREE flow into one coherent story of belonging.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (ENS's name search + rarity, Vercel's domain claim flow, Stripe's pricing clarity, Linear's instant feedback). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/threews/claim` (`#tw-label` input + `#tw-mint` button; `#tw-status` availability line; `#tw-result`) and `/three` ("The Flow" canvas viz, live stats, treasury/rewards wallets, holder-tier ladder, pricing explorer, rare-name studio).
-- **Source:** `/threews/claim` rewrites to `pages/threews-claim.html` (self-contained inline module; no `pages/threews/` dir); pay-by-name plumbing `src/sns/pay-by-name.js`. `/three` → `pages/three.html` → `src/three-economy.js`; wallet/tier via `src/three-access.js` (`getAccess`) + `src/wallet.js` (`initWalletButton`).
-- **Current flow:** `/threews/claim` — 4 steps: type label (lowercased, stripped to `[a-z0-9-]`) → debounced 350ms `GET /api/threews/subdomain?label=` (available vs claimed-by/owned-by) → Mint: `getCsrf()` (`GET /api/csrf-token`) → `POST /api/threews/subdomain {label}` + `x-csrf-token` → success "<full> minted" with showcase URL + Solscan tx link. `/three` — 1 required (+3 optional): boot fetches `/api/three/{catalog,stats,tier,access}` + `/api/token/price`, renders flow viz / stats / treasury+rewards wallets → optional connect wallet (`initWalletButton`, `wallet:changed` re-reads tier + applies discount) → optional rare-name studio (`GET /api/three/name-quote?name=` → free vs $THREE rarity price → links to `/threews/claim`) → optional tier ladder + pricing explorer.
-- **What works today:** Debounced availability check; CSRF-gated on-chain SNS subdomain mint; rarity pricing surfaced via `/api/three/name-quote` ($THREE-denominated, common = free); holder-tier resolution from on-chain $THREE; live treasury/rewards wallet display; pricing explorer with connected-wallet tier discount; rare-name studio that hands off to `/threews/claim`.
-- **Real APIs / dependencies already wired:** `/api/threews/subdomain` (GET check + POST mint), `/api/csrf-token`; `/api/three/{catalog,stats,tier,access,name-quote}`, `/api/token/price`; Solscan (tx link). On-chain SNS mint; wallet connect via global `initWalletButton`.
-- **Where it's mediocre, thin, or unfinished:** The claim page is a single input + button — functional but it doesn't *sell* the name or make good ones feel scarce. Availability is a status line, not a search experience (no suggestions, no "this one's taken, try these," no rarity preview at the point of typing). The two surfaces (`/three` studio and `/threews/claim`) are loosely linked rather than one fluid name-discovery-to-mint journey. The minted name has no obvious afterlife — nothing shows where it lives, what it resolves to, or how to attach it to an agent. The economy dashboard explains the system but doesn't make the user *feel* the value of holding a tier or a name.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A name search worth using.** Turn the claim input into a real search: live availability with rarity tier shown inline (free/common vs. short/dictionary/reserved priced in $THREE), smart suggestions when a name is taken, and a sense of scarcity that makes a good name feel like a find.
-- **One fluid discovery-to-mint journey.** Fuse the `/three` rare-name studio and `/threews/claim` into a single flow — quote rarity, see the $THREE price (with the connected-wallet tier discount applied), and mint on-chain without losing context.
-- **Give the name an afterlife.** After minting, show what it resolves to, where it lives, and a one-tap path to attach it to an agent — so a name is identity, not a trophy in a drawer.
-- **Make the economy felt, not just shown.** Tie holder tier → name pricing → platform access so a connected holder sees concrete value (cheaper names, unlocked tiers) live, turning the dashboard into a reason to hold $THREE.
-- **Cross-feature wiring:** offer name-claiming at the moment of agent creation and right after a `/launch` (a fresh coin-backed agent should get a fresh `*.threews.sol` name); resolve `*.threews.sol` identities in `/launches`, the Trader Card (`/claim-wallet`), and agent profiles so the name shows up everywhere the agent does; and apply the connected-wallet $THREE tier discount consistently across pricing surfaces.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed. (The mint must stay a real on-chain SNS subdomain mint; CSRF gating must remain.)
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation. (Not-signed-in CSRF failure, taken name, mint failure, network drop must each have a designed state.)
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime. ($THREE is the pricing/tier currency here — that is correct and intended; never introduce any other token alongside it.)
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank. (Keep the 350ms availability debounce; do not hammer the subdomain endpoint.)
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_07_threews-naming.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/08_08_coin3d-three-live.md b/prompts/feature-innovation/08_08_coin3d-three-live.md
deleted file mode 100644
index 22763b9ec..000000000
--- a/prompts/feature-innovation/08_08_coin3d-three-live.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Coin 3D & $THREE Live
-
-> **Task file:** `prompts/feature-innovation/08_08_coin3d-three-live.md`
-> **Surface:** `/coin3d` (`?mint=` token in 3D) and `/three-live` ($THREE protocol pulse)
-> **Primary source:** `pages/coin3d.html` → `src/coin3d/main.js` (deep-linked from `/launches`, MCP tool `pumpfun_token_3d`); `/three-live` → `pages/three-live.html` (self-contained Three.js inline module; empty-state helper `src/shared/state-kit.js` `emptyStateHTML`)
-> **Atlas reference:** `docs/ux-flows/08-coin-launch-wallets.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to *feel* a token's state, not read a table of numbers. `/coin3d` turns any mint into a living 3D object — a medallion, a galaxy of holders, a graduation ring that fills with bonding-curve progress. `/three-live` turns the $THREE protocol itself into a breathing organism that pulses with every real on-chain trade. The feature exists to make **token state a living thing** — discovery and conviction through embodiment, not spreadsheets.
-
-"Gamechanging" here means a 3D representation so legible and alive that a glance tells you more than a chart would — holder concentration you can *see*, graduation progress you can watch fill, trade momentum you can feel as motion. It should be the most shareable way to look at a coin, and the most visceral way to watch a protocol's heartbeat.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (the awe of a great data-viz like Stripe's globe, the legibility of DexScreener mapped into space, the craft of a AAA real-time scene, Three.js showcase quality). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/coin3d` (full-screen Three.js scene seeded by `?mint=<base58>` & optional `&network=`) and `/three-live` (full-screen 3D "living organism" of the $THREE protocol + live trade ticker + hero badge).
-- **Source:** `/coin3d` → `pages/coin3d.html` → `src/coin3d/main.js` (deep-linked from `/launches` cards and the MCP tool `pumpfun_token_3d`). `/three-live` → route `/three-live` → `pages/three-live.html` (self-contained Three.js inline module); empty-state helper `src/shared/state-kit.js` (`emptyStateHTML`).
-- **Current flow:** `/coin3d` — 3 required (+1 optional): boot reads `mint`+`network`, shows loading overlay → parallel MCP calls `POST /api/pump-fun-mcp` (`getTokenDetails`, `getBondingCurve`, `getTokenHolders` top 12; logo from metadata URI, IPFS→HTTP, 6s timeout) → render spinning logo-textured medallion + holder galaxy (spheres sized by balance, tinted by concentration) + graduation ring filled to bonding-curve progress, OrbitControls → optional watchlist toggle (localStorage `ld_watchlist`, shared with `/launches`). `/three-live` — 1 (read-only/ambient): boot fetches `GET /api/three-token/stats` (no-store) + opens SSE `GET /api/agents/pumpfun-feed?kind=trades&mint=<$THREE>` → each trade emits a particle burst, whales send shockwaves, ticker prepends the trade → hero badge tracks connection state (connecting → live/quiet → reconnecting, auto-reconnect); stats refresh on interval.
-- **What works today:** `/coin3d` renders a real interactive token scene from live pump.fun MCP data (medallion, concentration-tinted holder galaxy, graduation ring) with designed loading/error/empty overlays and IPFS logo fallback. `/three-live` streams real $THREE trades over SSE into a 3D organism with whale shockwaves, a live ticker, connection-state hero badge, auto-reconnect, and a reduced-motion-aware path.
-- **Real APIs / dependencies already wired:** `/coin3d` → `/api/pump-fun-mcp` (pump.fun MCP), IPFS gateway for logo. `/three-live` → `/api/three-token/stats`, `/api/agents/pumpfun-feed` (SSE, fixed $THREE mint). All on-chain/live.
-- **Where it's mediocre, thin, or unfinished:** `/coin3d` is a snapshot — it renders state once and doesn't *live*; there's no real-time trade motion the way `/three-live` has, no time dimension, no legend explaining what the user is seeing (sphere size, tint, ring fill). The holder galaxy is visually rich but not interactive enough (no per-holder detail on click, no Solscan link from a sphere). The two surfaces share a 3D language but don't share components — `/three-live`'s live-trade energy never reaches `/coin3d`. Neither makes it easy to share the exact view they're looking at.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Make `/coin3d` live.** Bring `/three-live`'s real-time energy to any mint: stream trades for the viewed token (the same pump.fun feed pattern) so the medallion pulses, the graduation ring climbs, and the holder galaxy shifts as real activity happens. Snapshot becomes heartbeat.
-- **A legible holder galaxy.** Make every sphere interactive — click for the holder's balance, share, and a Solscan link — and add a clear legend (size = balance, tint = concentration, ring = graduation) so the visualization *teaches* what it shows.
-- **Shareable views.** Let users capture and share the exact 3D state (a designed snapshot or a deep-linked camera angle) — the most screenshot-worthy way to show off a coin.
-- **Shared 3D component language.** Extract the common primitives (particle bursts, shockwaves, connection-state badge, trade ticker) so `/coin3d` and `/three-live` feel like one cinematic system, not two pages.
-- **Cross-feature wiring:** make `/coin3d` the canonical detail view linked from every `/launches` card and the `/launches/:mint` dossier; let a coin's `/coin3d` link to its 3D world (`/communities/:mint`) and its launching agent's profile; share the `ld_watchlist` so starring in 3D reflects in the feed; and from `/three-live`, deep-link the $THREE mint into `/coin3d` so the protocol pulse and the token object connect.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed. (All token/trade data must stay live from the pump.fun MCP and the real SSE feed.)
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation. (Missing `?mint=`, MCP failure, no holders, SSE disconnect, devnet must each have a designed state.)
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime. `/coin3d` is generic plumbing — it renders whatever mint the user passes via `?mint=`; never hardcode or recommend any specific non-$THREE mint. `/three-live` is fixed to the $THREE CA by design.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast. (The 3D scenes must be reduced-motion-aware and offer an accessible, legible non-motion fallback.)
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank. (Three.js scenes must hit a steady frame rate; dispose geometries/materials; cap particle counts.)
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/08_08_coin3d-three-live.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/08-coin-launch-wallets.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_01_pay-per-call.md b/prompts/feature-innovation/09_01_pay-per-call.md
deleted file mode 100644
index c09c4475a..000000000
--- a/prompts/feature-innovation/09_01_pay-per-call.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Pay-Per-Call (x402)
-
-> **Task file:** `prompts/feature-innovation/09_01_pay-per-call.md`
-> **Surface:** `/pay`, `/pay/calls`, `/pay/c/<slug>`
-> **Primary source:** `public/pay/index.html`, `public/pay/calls/index.html`, `public/pay/c/index.html`, `api/x402-pay.js`, `api/mcp`, `api/x402-checkout.js`, `api/x402-skus.js`, `api/x402-checkout-record.js`, `api/_lib/x402-bsc-direct.js`, `api/agents/[id]/solana`, `public/x402.js`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a developer, agent-builder, or curious power-user who wants to pay for a single API call — no account, no subscription, no API key — and watch real money settle on-chain in under a second, then see a real result (including a live 3D model). `/pay` is the canonical demonstration that pay-per-call HTTP payments (x402) are not a whitepaper but a working primitive on three.ws. `/pay/c/<slug>` is its commercial twin: any merchant can mint a branded hosted checkout for one of their paid endpoints.
-
-"Gamechanging" here means the moment between intent and result feels like magic — you type `validate https://…/model.glb`, a server-held agent wallet (or your own Phantom/MetaMask) pays $0.001 of real USDC, the settlement timeline races through `challenge → built → verified → dispatched → settled`, and a rotating GLB appears in the chat with a Solscan receipt. No competitor offers a one-click, multi-rail (Solana + BSC), wallet-optional pay-per-call console that renders the *actual product* (a 3D model) of the call it just paid for. Build that.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe Checkout, Vercel's deploy stream, Linear's command palette, Coinbase's onchain receipts). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/pay` (chat console), `/pay/calls` (static share/OG permalink for one completed call), `/pay/c/<slug>` (hosted merchant checkout).
-- **Source:** `public/pay/index.html` (inline module scripts hold all app logic), `public/pay/calls/index.html` (static OG view), `public/pay/c/index.html` + `public/x402.js`; backends `api/x402-pay.js` (SSE payer + `?agents=1`/`?balance=1`/`?feed=1`/`/og`), `api/mcp` (402 probe + dispatch), `api/x402-checkout.js` (`action=prepare|encode`), `api/x402-skus.js`, `api/x402-checkout-record.js`, `api/_lib/x402-bsc-direct.js`, `api/agents/[id]/solana`.
-- **Current flow:** 4 required steps (+~4 optional) — chat page with quick-tool chips + prompt input; choose a tool (chip or typed prompt, deep links auto-fire); POST `/api/x402-pay` (SSE) advances the settlement timeline with real ms timings + settle-tx prefix; on `result` a receipt + MCP output renders (model-processing tools render a live `<model-viewer>` GLB); ticker/balance/feed refresh.
-- **What works today:** Three real payer modes — server/agent wallet via SSE, Phantom (Solana USDC), MetaMask/EVM on the "BNB Chain" tab (`approve` + `pay(bytes32)`). MCP tools (`list_tools`, `validate`, `inspect`, `optimize`, `search_avatars`) dispatch live; GLB results render in 3D; Solscan tx links; recent-calls ticker; first-visit walkthrough (`localStorage x402:seen-walk`); deep links `/pay?validate=`, `?inspect=`, `?optimize=`, `?list=1`. `/pay/c/<slug>` resolves a SKU, probes the live 402 price, opens the `/x402.js` modal, records the call.
-- **Real APIs / dependencies already wired:** `/api/x402-pay` (SSE), `/api/mcp`, `/api/x402-checkout`, `/api/x402-skus`, `/api/x402-checkout-record`, `/api/agents/{id}/solana`, Solana mainnet RPC (`api.mainnet-beta.solana.com`), x402 facilitator (verify/settle), Solscan, BSC `ThreeWSPayments` contract (`0x…1B72Cc`), `/vanity-wallet` grinder.
-- **Where it's mediocre, thin, or unfinished:** the experience is a single-shot console — no concept of *chained* paid calls, saved recipes, or a spend budget. The "recent paid calls" ticker is decorative, not navigable into insight. `/pay/c/<slug>` has no self-serve way for a merchant to *create* a SKU (it only renders one). The agent-wallet picker is functional but not delightful — no live balance-per-agent, no top-up shortcut beyond the gen overlay. There is no shareable "I paid for this" artifact richer than the static `/pay/calls` page, and no programmatic curl/SDK snippet a developer can copy to reproduce the exact paid call.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Replayable paid recipes.** Let a user chain calls (validate → optimize → inspect) into a named "recipe", show the total cost preview before running, then execute the whole chain over one SSE stream with a per-step receipt. Persist recipes to share via `/pay?recipe=<id>`.
-- **Copy-as-code receipt.** On every completed call, surface a one-click "Reproduce this call" panel with a real `curl` (showing the `402` → `X-PAYMENT` retry) and an `agent-payments-sdk` snippet pre-filled with the exact endpoint, tool, and price. Make the invisible protocol legible.
-- **Self-serve SKU minter.** Add a tiny `/pay/c/new` flow (writing through `api/x402-skus.js`) so any merchant can paste a paid endpoint URL, name the action, pick branding, and get a live `/pay/c/<slug>` link — turning `/pay` from a demo into a product anyone can launch.
-- **Live spend HUD + budget guard.** Show real-time agent-wallet balance with a per-session budget you can cap; the timeline refuses to dispatch a call that would exceed it, with a one-tap top-up. Reuses the funding UX from `/unstoppable`.
-- **Cross-feature wiring:** when a paid MCP call produces a GLB, offer "Open in the avatar editor" / "Mint to /forever as an inscription record" / "Add this endpoint to my /shopper budget agent". Surface "cheaper provider available" by querying `/api/bazaar/arbitrage` for the same capability and deep-linking to `/arbitrage?q=`.
-- **Settlement timeline as an embeddable widget.** Extract the timeline into a tiny embeddable so `/ibm/x402-demo`, `/bazaar`, and `/agent-exchange` can all show the same beautiful settlement choreography — one canonical visual for "money moved on-chain".
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_01_pay-per-call.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_02_x402-bazaar.md b/prompts/feature-innovation/09_02_x402-bazaar.md
deleted file mode 100644
index ebf2111c0..000000000
--- a/prompts/feature-innovation/09_02_x402-bazaar.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — x402 Bazaar (Marketplace & Router)
-
-> **Task file:** `prompts/feature-innovation/09_02_x402-bazaar.md`
-> **Surface:** `/bazaar`, `/arbitrage`, `/providers`
-> **Primary source:** `public/bazaar.html` + `public/bazaar.js`, `public/arbitrage.html` + `public/arbitrage.js`, `public/providers.html` + `public/providers.js`, `public/x402.js`; backends `api/bazaar/list`, `api/bazaar/search`, `api/bazaar/context`, `api/bazaar/arbitrage`, `api/bazaar/providers`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a developer or an autonomous agent trying to find — and pay for — the best live AI/data endpoint for a job, without reading ten docs sites or comparing prices by hand. The Bazaar cluster is three.ws's **marketplace and router for paid AI endpoints**: `/bazaar` is the directory, `/arbitrage` is the cross-provider spread board that says "pay the cheapest provider for this exact capability", and `/providers` is the seller-profile layer. Together they are the discovery surface that makes the entire x402 economy navigable.
-
-"Gamechanging" means turning a flat card grid into a living price-aware router — where a user (or agent) sees real, current prices across providers for the same capability, understands the spread, and pays the cheapest live endpoint in one click. No one else operates a multi-facilitator directory with a real-time arbitrage board over pay-per-call endpoints. Make it the Bloomberg terminal of the agent economy.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Bloomberg terminal, Google Flights price grid, Vercel marketplace, Stripe's product catalog). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/bazaar` (endpoint directory card grid + filters), `/arbitrage` (cross-provider spread board), `/providers` (directory + per-host profile keyed on `?host=`).
-- **Source:** `public/bazaar.html` + `public/bazaar.js`, `public/arbitrage.html` + `public/arbitrage.js`, `public/providers.html` + `public/providers.js`, shared `public/x402.js`; backends `api/bazaar/list`, `api/bazaar/search`, `api/bazaar/context`, `api/bazaar/arbitrage`, `api/bazaar/providers`.
-- **Current flow:** Bazaar — 5 required (+2 optional): load `GET /api/bazaar/list` → render cards → filter (type/network/max price/extension/sort) → search → click action (HTTP **Try it** = pay; MCP tool = **Inspect tool** only; **Details** = modal + `/api/bazaar/context`) → on Try it, `window.X402.pay({…})` opens the modal → inline `.receipt` shows status + tx + explorer. Arbitrage — 3 required (+3 optional): `GET /api/bazaar/arbitrage?minSpreadPct=0&limit=200` → arb cards (spread %, up to 5 cheapest-first providers) → **Pay cheapest · $X** (lazy-loads `/x402.js`) → "✓ Paid"/"Failed"/revert; **Avoid · $Y** → `/bazaar?q=`. Providers — 2 required (+3 optional): `GET /api/bazaar/providers?limit=500` → cards → click → `/providers?host=` profile (metrics, charts, services table) → row → `/bazaar?q=`.
-- **What works today:** Real merged catalog across facilitators; live filters/search; HTTP pay flow via shared modal with on-chain receipt + multi-chain explorer (Solscan/Basescan/Arbiscan); MCP tools surfaced as inspect-only; real arbitrage spread computation cheapest-first; provider directory + profile with category/network charts and sorted services.
-- **Real APIs / dependencies already wired:** `/api/bazaar/list|search|context|arbitrage|providers`, `/x402.js`, merchant endpoints, multi-chain explorers, facilitator URLs.
-- **Where it's mediocre, thin, or unfinished:** the three pages don't feel like one product — they cross-link by URL but share no live state, no saved searches, no watchlist. Arbitrage can't pay MCP capabilities (redirects to `/bazaar?q=`), leaving a dead-ended capability class. There's no price history (spreads are a snapshot, not a trend), no alerts when a capability's price drops, no "route my call automatically to the cheapest healthy provider" execution layer. Provider profiles are read-only with no reputation/uptime signal. Nothing connects discovery here to the `/shopper` budget agent that should be *consuming* this catalog.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Live router endpoint.** Build a real "route this capability to the cheapest healthy provider" action that probes the top providers' live `402` prices at click time, picks the cheapest that actually returns a valid challenge, and pays it — with a fallback chain if the cheapest is down. This is the difference between a directory and a *router*.
-- **Spread history + price drop alerts.** Persist arbitrage snapshots so each capability shows a sparkline of its cheapest price over time, and let users set a "notify me when X drops below $Y" alert (wire into the existing alert/automation engine from the recent changelog).
-- **Capability watchlist + saved searches.** A personal watchlist of capabilities/providers that persists, surfacing current cheapest price and spread at a glance — the terminal's "my board".
-- **Provider reputation layer.** Compute live health (last-seen, 402-validity, settle success rate) from real probe data and rank providers by trust, not just price. Show it on `/providers` profiles and as a badge in `/bazaar` and `/arbitrage`.
-- **Cross-feature wiring:** make `/shopper` discover-and-buy directly from this catalog (shared registry); let `/pay` show "cheaper elsewhere" by querying `/api/bazaar/arbitrage` for the same capability; let `/ibm/x402-demo`'s Forge/Symbol endpoints appear as first-class Bazaar listings; deep-link every receipt to a `/pay/calls`-style permalink.
-- **MCP capability execution.** Close the dead end — make MCP capabilities callable from `/arbitrage`/`/bazaar` via the same dispatch path `/pay` uses for MCP tools, instead of redirecting to a search.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_02_x402-bazaar.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_03_endpoint-shopper.md b/prompts/feature-innovation/09_03_endpoint-shopper.md
deleted file mode 100644
index 02355922e..000000000
--- a/prompts/feature-innovation/09_03_endpoint-shopper.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Endpoint Shopper (Autonomous Buyer Agent)
-
-> **Task file:** `prompts/feature-innovation/09_03_endpoint-shopper.md`
-> **Surface:** `/shopper`
-> **Primary source:** `pages/shopper.html` + `src/shopper-app.js`; backend `api/agents/endpoint-shopper-run.js`; the Bazaar registry (`api/bazaar/*`); `public/paywall.html`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user describes a task in plain language, hands an agent a budget, and trusts it to go shopping: discover the right x402 endpoints, plan a sequence, pay for the calls, and synthesize an answer — autonomously, transparently, and within budget. `/shopper` is the proof that an AI agent can be a *responsible spender* — that you can give software a wallet and a cap and get back work, not a surprise bill.
-
-"Gamechanging" means trust through radical transparency: every dollar is accounted for in a live step trace, the budget is a hard rail the agent visibly respects, and the final answer cites exactly which paid endpoints produced it. The killer feeling is watching an agent reason about *cost* — "this provider is cheaper, I'll use it; I have $0.32 left, I'll stop here." No competitor lets a user safely delegate real on-chain spending to an autonomous endpoint-shopping agent with a verifiable spend ledger. Build the buyer agent people actually trust.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Perplexity's source-cited answers, ChatGPT's tool-use trace, Ramp's spend controls, Linear's progress streams). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/shopper`.
-- **Source:** `pages/shopper.html` + `src/shopper-app.js`; backend `api/agents/endpoint-shopper-run.js` (x402, $0.01 base + downstream budget); discovers endpoints via the Bazaar registry; `public/paywall.html` for the 402 case.
-- **Current flow:** 5 required (+3 optional) — enter a task (or example chip) → (optional) adjust budget slider ($0.10–$2.00, default $0.50) → click **Run Task** (button "Running…", skeleton cards) → `POST /api/agents/endpoint-shopper-run` `{ task, maxCostUsd }` → agent emits a step trace **discover** 🔍 → **plan** 🗺 → **call** ⚡ (per endpoint: URL + USDC cost + snippet) → **synthesize** 🧠 → timeline + **Total spent** row + **Final Answer** card; button re-enabled.
-- **What works today:** real autonomous discover→plan→call→synthesize loop over the live Bazaar registry; budget slider; per-call cost + snippet in the trace; total-spent accounting; final synthesized answer; "Free (no paid calls executed)" path; `402` → paywall card "Pay with Wallet" → `/paywall.html?req=…&return=/shopper`; error/retry card; disabled-button hints for empty task / budget < $0.01.
-- **Real APIs / dependencies already wired:** `/api/agents/endpoint-shopper-run`, downstream x402 endpoints discovered via the Bazaar, `/paywall.html`.
-- **Where it's mediocre, thin, or unfinished:** the run is fire-and-forget — no streaming (the trace appears, but there's no live SSE feel of the agent thinking), no way to pause/cancel mid-run, no approval gate before it spends. The budget is a number, not a *policy* (no per-provider cap, no "ask me before any call over $X"). There's no saved run history, no shareable result, no re-run with the same plan but cheaper providers. The agent doesn't show *why* it picked one endpoint over another (no cost/quality reasoning surfaced). It doesn't reuse the `/arbitrage` cheapest-provider logic, so it may overpay. Final answers aren't attested the way `/fact-checker` and `/tutor` results are.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Live thinking stream + interrupt.** Convert the run to a real SSE stream so each discover/plan/call/synthesize step appears as it happens with live cost ticking, and add a **Pause / Stop** that halts before the next paid call — the agent must never spend after you say stop.
-- **Spend policy, not just a budget.** Let the user set rules: hard cap, per-call max, "approve any call over $X", "prefer cheapest provider". Show the policy as visible rails in the trace, and have the agent narrate when a rule changes its choice.
-- **Cost-reasoned routing via arbitrage.** Before each call, route through the `/api/bazaar/arbitrage` cheapest-healthy provider for that capability and show the savings ("chose Provider B, saved $0.004 vs Provider A") — make frugality legible and provable.
-- **Attested run receipt.** Produce a SHA-256-attested run summary (task, plan, every paid call + tx, total spent, final answer) shareable at a permalink — the same trust artifact pattern as `/fact-checker`/`/tutor`, so a result can be verified later.
-- **Saved runs + re-shop.** Persist run history; let a user re-run a saved task to see if it's cheaper now, or fork the plan with a tighter budget.
-- **Cross-feature wiring:** discover from the same registry that powers `/bazaar`; offer "watch this capability's price" via the Bazaar alert layer; deep-link each paid call to a `/pay/calls`-style permalink; let a successful GLB-producing call open in the avatar editor; expose the shopper as a callable capability other agents (e.g. `/play/arena` strategists) could invoke.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_03_endpoint-shopper.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_04_fact-checker.md b/prompts/feature-innovation/09_04_fact-checker.md
deleted file mode 100644
index 71740bfde..000000000
--- a/prompts/feature-innovation/09_04_fact-checker.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Fact Checker (Attested AI Verification)
-
-> **Task file:** `prompts/feature-innovation/09_04_fact-checker.md`
-> **Surface:** `/fact-checker`
-> **Primary source:** `pages/fact-checker.html` + `src/fact-checker-app.js`; backend `api/x402/fact-check.js` ($0.10, 7-day Redis cache); `public/x402.js`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user has a claim — a headline, a stat, a viral tweet — and wants a fast, paid, *verifiable* verdict: is this true, with sources, and proof that the answer wasn't tampered with. `/fact-checker` charges $0.10 per check via x402 and returns a verdict (SUPPORTED / CONTRADICTED / MIXED / INSUFFICIENT) with a confidence score, a graded source grid, a cost breakdown, and a SHA-256 attestation — cached 7 days so identical claims return instantly.
-
-"Gamechanging" means the result is not just an opinion but an *artifact you can prove and cite*: a tamper-evident, reproducible verdict with transparent sourcing that anyone can re-verify. In a world drowning in AI slop, a pay-per-check, cryptographically attested fact-check is genuinely novel — make the attestation the hero, not a footnote, and make the verdict feel like evidence, not a guess.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Community Notes, PolitiFact, Perplexity citations, Google Fact Check Explorer, Coinbase onchain receipts). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/fact-checker`.
-- **Source:** `pages/fact-checker.html` + `src/fact-checker-app.js`; backend `api/x402/fact-check.js` ($0.10, 7-day Redis cache); shared `public/x402.js`.
-- **Current flow:** 4 required (+3 optional) — enter a claim (or example chip; live char counter, ≤1000 chars) → (optional) pick strictness Low/Medium(default)/High → click **Check This Fact** (validate → skeleton + "Searching sources…") → `POST /api/x402/fact-check` `{ claim, strictness }` → on `402` payment panel (Base USDC $0.10 / Solana USDC $0.10 + "Connect wallet to pay →" to `/marketplace`); on `200` verdict banner + sources grid (stance/authority) + cost breakdown + expandable SHA-256 attestation.
-- **What works today:** full pipeline (3 search queries → multi-source retrieval → LLM stance → weighted verdict → attestation; optional vision for image evidence, fail-open); 7-day Redis cache returns identical claims instantly at `200`; verdict banner with confidence; graded source grid; cost breakdown; expandable attestation; `429`/`5xx`/retry handling; example chips as empty state.
-- **Real APIs / dependencies already wired:** `/api/x402/fact-check` (search → retrieval → LLM stance → weighted verdict → attestation, optional vision), Base/Solana USDC settlement, Redis cache (7-day TTL).
-- **Where it's mediocre, thin, or unfinished:** the attestation is *shown* but not independently *verifiable* by the user — there's no public verify endpoint, no permalink to re-open a past verdict, no way to prove "this exact verdict existed at this time". Sources are listed but the *reasoning* from source→stance→verdict isn't traceable. There's no history of your checks, no shareable verdict card/OG image, no embeddable badge a publisher could drop next to a claim. Image/URL claims aren't first-class (paste a tweet URL and it should fetch + check). Strictness changes the verdict silently with no explanation of what it changed.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Public verify endpoint + permalink.** Every verdict gets a shareable `/fact-checker/v/<hash>` permalink with an OG image, and a "Verify this attestation" tool that recomputes the SHA-256 over the canonical payload and shows ✓/✗ — making the proof real, not decorative.
-- **Reasoning trace.** Show the chain from each source's stance and authority weight to the final confidence math, so a skeptic can see *why* it's SUPPORTED at 82%, not just that it is. Let users challenge a source and re-weight.
-- **Embeddable verdict badge.** A tiny `<script>`/iframe badge publishers can place beside a claim that shows the live verdict + confidence and links to the attested permalink — distribution that spreads the proof.
-- **URL & image claims first-class.** Paste a tweet/article URL or drop an image; the checker extracts the claim, runs vision evidence, and attributes the source — turning "fact-check this thing I saw" into one paste.
-- **Strictness diff.** When strictness changes the verdict, show the delta ("at High, 2 weak sources dropped → INSUFFICIENT") so the knob teaches instead of confusing.
-- **Cross-feature wiring:** offer fact-checking as a callable capability in `/bazaar` and a step `/shopper` can buy; let `/play/arena` and `/agent-economy` agents cite an attested check; surface a "checks you've run" history reusing the receipt/permalink pattern from `/pay/calls`; feed high-confidence contradictions into the alert engine.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_04_fact-checker.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_05_tutor.md b/prompts/feature-innovation/09_05_tutor.md
deleted file mode 100644
index ca9438f0e..000000000
--- a/prompts/feature-innovation/09_05_tutor.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Pay-As-You-Learn Tutor
-
-> **Task file:** `prompts/feature-innovation/09_05_tutor.md`
-> **Surface:** `/tutor`
-> **Primary source:** `public/tutor.html` + `public/tutor.js`; backend `api/x402/tutor.js` ($0.01/question) + `api/tutor/session.js` (free resume); `public/x402.js`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to learn something — a concept, a piece of code, a topic — and pay only for the answers they actually use, one cent at a time, with proof of what they paid for. `/tutor` is a chat tutor that charges $0.01 per answer, accrues a session total, and ends with an itemized, SHA-256-attested invoice. It makes "pay-as-you-learn" a real, frictionless transaction instead of a $20/month subscription you forget to cancel.
-
-"Gamechanging" means the tutor *proves its value as you go*: every answer is worth a penny because it's measurably good, the running tab is always visible and fair, and the final attested invoice is something you could file as an expense or share as proof of study. The combination of micro-priced learning + verifiable per-question billing doesn't exist elsewhere — make the penny feel like a bargain and the invoice feel like a receipt from the future.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Khan Academy, Duolingo, ChatGPT study mode, Stripe invoices, Notion's clean reading UX). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/tutor`.
-- **Source:** `public/tutor.html` + `public/tutor.js`; backend `api/x402/tutor.js` ($0.01/question, server-side session accrual + attestation) + `api/tutor/session.js` (free resume); shared `public/x402.js`.
-- **Current flow:** 4 required (+4 optional) — (optional) click a suggestion chip or type a question (`#q`, live char counter, 5–2000 chars) → (optional) pick level Beginner/Intermediate(default)/Expert → send (or Cmd+Enter; spinner; question added to thread) → `window.X402.pay({ endpoint:'/api/x402/tutor', body:{ sessionId, question, level }, merchant:'three.ws Tutor', action:'Explain' })` (first time → paywall connect + sign + settle) → on success tutor bubble with answer + key points + example + follow-up + meta row (cost · level · model); session tab updates total + count → (optional) click a follow-up (cost stacks); (optional) **End & invoice** → modal with per-question line items + running total + SHA-256 session attestation.
-- **What works today:** real per-question x402 charge with server-side session accrual; session id auto-minted to `localStorage three-tutor-session-id`; lazy wallet connect on first paid question; structured answers (key points + example + follow-up); level selector; reload resumes session via free `GET /api/tutor/session`; itemized attested invoice; suggestion chips as empty state; payment cancel/fail/retry handling.
-- **Real APIs / dependencies already wired:** `/api/x402/tutor` (per-question charge + accrual + attestation), `/api/tutor/session` (resume), `/x402.js`, Base/Solana settlement.
-- **Where it's mediocre, thin, or unfinished:** it's a flat Q&A list — no notion of a *learning path*, topic, or progress, so the value compounds poorly. The attested invoice is the climax but there's no permalink/verify, no export (PDF/CSV), no proof-of-study artifact to share. Answers don't render rich content well (no code highlighting/diagrams/3D for spatial topics despite the platform being 3D-native). No spaced-repetition or "quiz me on what I paid to learn" loop, so knowledge leaks. No way to pre-fund a session balance (every question re-hits the modal flow unless the modal caches). No history across sessions.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Learning paths with a live value meter.** Let the user pick or auto-generate a path (e.g. "Solana programs in 10 questions"); show progress, mastery, and a "value delivered" meter so the penny-per-answer feels like compounding investment, not a meter running.
-- **Attested, shareable proof-of-study.** Give every invoice a verifiable permalink + exportable PDF/CSV with the SHA-256 attestation, and a public "Verify invoice" check that recomputes the hash — a credential you could attach to a bounty or expense report.
-- **Quiz-me retention loop.** After N paid answers, offer a free spaced-repetition quiz drawn from your own session; getting it right marks mastery, getting it wrong suggests the next paid question — turning the tutor into a teacher.
-- **Rich, 3D-native answers.** Render code with syntax highlighting and, for spatial/geometry/3D topics, an inline `<model-viewer>` or canvas diagram — lean into three.ws being a 3D platform.
-- **Prepaid session balance.** Let a user fund a small balance once (one x402 settle) and spend it across many questions, with the live balance shown — fewer modal interruptions, same on-chain truth.
-- **Cross-feature wiring:** offer the tutor as a `/bazaar` capability and a step `/shopper` can buy; let answers cite an attested `/fact-checker` verdict; surface a learning-path badge on the user's profile; reuse the invoice permalink pattern from `/pay/calls`; let `/play/arena` spectators ask the tutor to explain a strategy they just watched.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_05_tutor.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_06_unstoppable-agent.md b/prompts/feature-innovation/09_06_unstoppable-agent.md
deleted file mode 100644
index d0af66a88..000000000
--- a/prompts/feature-innovation/09_06_unstoppable-agent.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Unstoppable Agent (Censorship-Resistant, Self-Funding)
-
-> **Task file:** `prompts/feature-innovation/09_06_unstoppable-agent.md`
-> **Surface:** `/unstoppable`
-> **Primary source:** `pages/unstoppable.html` + `src/unstoppable-dashboard.js`; backend `api/agents/unstoppable-status.js` ($0.01 optional payment per live query); `public/x402.js`
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is watching an autonomous agent that has to *earn to survive* — a self-funding entity with a real balance, a runway, and a will to keep running. `/unstoppable` is a live dashboard: balance, runway, status (RUNNING / CONSERVING / HALTED), an activity feed, and the agent's latest reflection. The cached view is free; a $0.01 USDC donation via x402 unlocks live data and directly extends the agent's life. It's a censorship-resistant, always-on agent whose continued existence depends on people choosing to fund it.
-
-"Gamechanging" means the viewer feels *responsible* for a living thing: the runway clock ticks in real time, the agent's reflections show it reasoning about its own mortality, and a single penny visibly buys it more time. The fusion of an autonomous self-funding agent + an audience that keeps it alive via micropayments is a genuinely new emotional + economic loop. Make people want to keep it running.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (the Twitch "keep the stream alive" energy, Tamagotchi, Vercel's live deploy dashboards, Coinbase onchain receipts). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/unstoppable`.
-- **Source:** `pages/unstoppable.html` + `src/unstoppable-dashboard.js` + shared `public/x402.js`; backend `api/agents/unstoppable-status.js` ($0.01 optional payment per live query).
-- **Current flow:** 2 required (+1 recurring optional) — load → render cached data from `localStorage unstoppable_last_reading` (or skeletons) → auto-poll `GET /api/agents/unstoppable-status` immediately then every 60s (exponential backoff to 5 min on transient errors) → view: `200` = hero balance + status + runway, 24h earnings/costs, lifetime net, activity feed (THINK/EARN/REFLECT/IDLE/…), latest reflection; `402` = payment notice + cached data + "Unlock live data — $0.01" → (optional, repeatable) **Donate $0.01** via `window.X402.pay({ endpoint: status, method:'GET', action:'Fund the … runway' })` → on success toast + fresh live data; each donation funds one live query and directly funds the agent.
-- **What works today:** free cached view with localStorage persistence; real auto-poll with exponential backoff; live hero (balance/status/runway), 24h + lifetime financials, typed activity feed, latest reflection; `402` paywall with cached fallback; repeatable real $0.01 donation that funds the agent; donation low-balance retry (link to `/pay`) and cancel handling; skeleton/zeroed empty states.
-- **Real APIs / dependencies already wired:** `/api/agents/unstoppable-status` (free 402 challenge + optional paid live query), `/x402.js`, Base/Solana settlement.
-- **Where it's mediocre, thin, or unfinished:** the runway is a number, not a felt countdown — no live ticking clock, no visceral "X hours left" urgency. Donations are anonymous and ephemeral — no leaderboard of supporters, no "you've kept it alive N times", no thank-you from the agent. The activity feed scrolls but isn't navigable (can't open a single THINK/EARN event, see the tx, or understand *what* it earned/spent on). There's no history chart of balance over time, no notification when the agent enters CONSERVING/HALTED, and no embodiment — this is the 3D-native platform and the "agent" has no avatar/presence. Reflections are shown but not archived or shareable.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Living runway clock + states.** Replace the static runway with a real-time countdown that visibly accelerates toward zero and changes the page's mood as status shifts RUNNING → CONSERVING → HALTED, with an opt-in alert (via the platform alert engine) when it nears halt — so people come back to save it.
-- **Supporter wall + revival mechanic.** A real leaderboard of donors (anonymous handles ok), a "you funded N queries" badge, and a dramatic **Revive** flow when the agent is HALTED where pooled donations bring it back — turning viewers into a community that keeps it alive.
-- **Navigable activity ledger.** Make each feed event openable: the THINK prompt, the EARN source + on-chain tx, the cost breakdown, the resulting reflection — a transparent diary of an agent earning its keep, each with a `/pay/calls`-style permalink.
-- **Balance & runway history chart.** Persist readings to draw a live equity/runway sparkline — the audience can see whether the agent is winning or dying.
-- **Give it a body.** Embed the platform's 3D avatar so the agent has presence — it celebrates an EARN, looks worried in CONSERVING, dims when HALTED (reuse the `<agent-3d>`/avatar-embed pattern used across the cluster).
-- **Cross-feature wiring:** show *how* it earns by linking its EARN events to the `/bazaar` capabilities it sells; let it buy from `/shopper`-style endpoints and show those costs; surface its reflections as posts; expose its status as a callable signal other demos (`/agent-economy`, `/play/arena`) can react to.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_06_unstoppable-agent.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/09_07_forever-bitcoin.md b/prompts/feature-innovation/09_07_forever-bitcoin.md
deleted file mode 100644
index 79ab1e7f7..000000000
--- a/prompts/feature-innovation/09_07_forever-bitcoin.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Forever (Etch a Message into Bitcoin)
-
-> **Task file:** `prompts/feature-innovation/09_07_forever-bitcoin.md`
-> **Surface:** `/forever`
-> **Primary source:** `public/forever.html` + `public/forever.js`; backend `api/forever/inscribe.js` (real OrdinalsBot Taproot text inscription on Bitcoin **mainnet**) + `api/forever/status.js` (polling)
-> **Atlas reference:** `docs/ux-flows/09-x402-agent-commerce.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user wants to write something down *forever* — a vow, a memorial, a name, a manifesto — and have it etched onto a single satoshi on the Bitcoin blockchain, permanent and unerasable. `/forever` composes a message, takes native Bitcoin (or Lightning) payment to a generated charge address, and creates a real OrdinalsBot Taproot text inscription on Bitcoin **mainnet**. This is the one **non-x402** flow in the cluster — real BTC, real permanence, no take-backs.
-
-"Gamechanging" means permanence feels *profound and safe* — the gravity of "this can never be undone" is honored by the UI, the cost and finality are crystal clear before a single sat moves, and the moment of inscription feels like a ceremony, not a checkout. Most "write to the blockchain" tools feel like crypto toys; this should feel like carving stone. Make people pause, feel the weight, and trust it completely.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Apple's considered confirmation flows, museum/memorial design, Stripe's clarity, the reverence of a signing ceremony). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/forever`.
-- **Source:** `public/forever.html` + `public/forever.js`; backend `api/forever/inscribe.js` (creates a real OrdinalsBot Taproot text inscription on Bitcoin mainnet) + `api/forever/status.js` (polling). **Not** an x402/USDC flow — payment is native BTC to a generated charge address (Lightning invoice offered too).
-- **Current flow:** 6 required (+6 optional) — type the message (live char + byte counters; orange warning > 1500 bytes) → (optional) enter a Taproot `bc1p…` receive address → (optional) select fee rate 3/8/20/50 sats/vB → live fee estimate (`#feeEstimate`) sats/BTC/≈USD (CoinGecko best-effort) → click **Inscribe forever** → native `confirm()` showing estimated BTC cost + address ("payment is final once broadcast. Continue?") → `POST /api/forever/inscribe` `{ message, receiveAddress, feeRate }` → OrdinalsBot order returns charge address, amount (sats), Lightning invoice, mempool URL; persisted to `sessionStorage forever:order` → **pay view** (QR BIP-21, amount, pay-to/Lightning/receive/order-id rows, "Open in wallet"/"View on mempool"/"Cancel") → user sends BTC → auto-poll `GET /api/forever/status?id=<orderId>` every 6s (`waiting-payment → payment-received → inscribing → inscribed`) → **win view** (large message, Inscription link ordinals.com, reveal-tx link mempool.space, receive address, "Bitcoin mainnet"; share to X / copy permalink / inscribe another).
-- **What works today:** real OrdinalsBot mainnet Taproot inscription; live byte/char counting with the 1500-byte limit; optional Taproot receive address (else platform vault `BTC_INSCRIPTION_RECEIVE_ADDRESS`); fee-rate selection + live sats/BTC/USD estimate; final-cost `confirm()` before order; QR + Lightning + "Open in wallet"; 6s status polling through all states; `resumeIfAny()` restores pay view + polling on reload; win view with ordinals.com + mempool.space links + share; validation + order-create + `failed` error states.
-- **Real APIs / dependencies already wired:** `/api/forever/inscribe` + `/api/forever/status` → OrdinalsBot (`api.ordinalsbot.com`, Bitcoin mainnet Taproot), CoinGecko (USD, best-effort), QR server, mempool.space + ordinals.com.
-- **Where it's mediocre, thin, or unfinished:** the gravity of permanence is under-designed — a native `confirm()` dialog is the *opposite* of ceremony, the QR/pay view is a utilitarian invoice screen, and there's no preview of how the inscription will actually look on-chain. The CoinGecko USD is "best-effort" so price can silently vanish. Only plain text is supported (no styled message, no provenance like "inscribed by", no occasion framing). The win view is a one-off — no gallery of public inscriptions, no permalink that renders beautifully, no way to browse what others etched. No wallet deep-links beyond a generic BIP-21. No notification when inscription completes if the user navigated away.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A ceremony, not a checkout.** Replace the native `confirm()` with a designed, deliberate finality step — a typed re-confirmation or hold-to-confirm, the message shown as it will be etched, the cost and irreversibility stated plainly and beautifully. Make the user *feel* the weight before they commit.
-- **True inscription preview.** Show exactly what will land on-chain (the satoshi, the Taproot reveal, the ordinals.com rendering) before payment, so there are zero surprises about what "forever" looks like.
-- **Public Forever gallery + beautiful permalinks.** A browsable, paginated gallery of completed public inscriptions (opt-in), each with a stunning shareable `/forever/i/<id>` permalink + OG image rendering the message, mempool/ordinals proof, and date — turning one-off etchings into a collective monument.
-- **Occasion framing + provenance.** Optional context (memorial, vow, milestone) and an "inscribed by" handle baked into the on-chain payload, so the message carries meaning and authorship forever.
-- **Resilient pricing + completion notice.** Make the USD estimate robust (cache + fallback, never blank) and offer a browser notification / copyable status link so a user who walks away learns the moment it's `inscribed`.
-- **Cross-feature wiring:** let any platform artifact be immortalized here — a `/fact-checker` attestation hash, a `/tutor` proof-of-study, a `/pay/calls` receipt, or a launch record — "etch this into Bitcoin forever"; surface the user's inscriptions on their profile; share the win view to the same social surfaces other features use.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/09_07_forever-bitcoin.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/09-x402-agent-commerce.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_01_chat-3d-agent.md b/prompts/feature-innovation/10_01_chat-3d-agent.md
deleted file mode 100644
index 8dc7b0618..000000000
--- a/prompts/feature-innovation/10_01_chat-3d-agent.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Conversational 3D Agent Chat
-
-> **Task file:** `prompts/feature-innovation/10_01_chat-3d-agent.md`
-> **Surface:** `/chat`
-> **Primary source:** `chat/` (standalone Svelte app) — `chat/index.html` → `chat/src/main.js` → `chat/src/App.svelte`; `chat/src/TalkingHead.svelte`, `chat/src/convo.js`, `chat/src/providers.js`, `chat/src/stores.js`, `chat/src/AgentPicker.svelte`, `chat/src/ModelSelector.svelte`, `chat/src/walletAuth.js`, `chat/src/tools.js`, `chat/src/sync.js`, `chat/src/SkillsMarketplaceModal.svelte`, `chat/src/TxApprovalModal.svelte`
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user opens `/chat` to **talk to a living 3D agent** — not a text box, a presence. They want a conversation that feels like the agent is *there*: it looks at them, breathes, thinks visibly, answers in a real voice with a mouth that actually moves, remembers what they said yesterday, and can act on the world (launch, pay, fetch) when asked. Today this exists as a competent text-chat with optional Talking Head + TTS toggles defaulting off. That is the floor, not the ceiling.
-
-"Gamechanging" here means: the single best conversational-3D-agent experience on the open web. When someone hears "talk to an AI avatar," `/chat` should be the link they send. The bar is presence, voice quality, lip-sync fidelity, memory, and agency — fused so well that turning the avatar *off* feels like a downgrade, and that a first-time visitor with no key, no wallet, and no setup is having a real spoken conversation within ten seconds.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (ChatGPT Advanced Voice Mode, character.ai, Hume EVI, ElevenLabs conversational, Apple's Genmoji presence). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user — a 3D agent that *looks at you, listens, thinks, speaks, and remembers* better than any chat product shipping today.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/chat` → `chat/index.html` (`<div id="app">` mounted by `main.js`), a **separate Svelte + Vite build** from the main vanilla-JS app.
-- **Source:** entry `chat/src/main.js` → `chat/src/App.svelte`; LLM plumbing in `chat/src/providers.js` + `chat/src/convo.js`; 3D avatar + lip-sync in `chat/src/TalkingHead.svelte`; selection UI in `chat/src/AgentPicker.svelte` + `chat/src/ModelSelector.svelte`; state in `chat/src/stores.js`; auth in `chat/src/walletAuth.js`; agentic tools in `chat/src/tools.js` + `chat/src/TxApprovalModal.svelte` + `chat/src/SkillsMarketplaceModal.svelte`; cross-device persistence in `chat/src/sync.js`.
-- **Current flow:** 6 required (+4 optional) steps — boot fetches free models from `/api/chat/models` and shows an empty state with suggestion chips → (optional) pick a model / load an agent persona → (optional) toggle Talking Head + TTS → type/attach a message → `convo.complete()` streams from `/api/chat/proxy` (built-in) or the keyed provider into a live markdown+KaTeX bubble → on completion, if Talking Head is on the avatar runs `talkingHead.speak({text, mood})` (TTS → viseme lip-sync); else if TTS on, browser `speechSynthesis` reads it.
-- **What works today:** free built-in models stream with zero key via the server proxy; markdown + KaTeX render live; abortable generation; persona/agent loading; curated tool packs (agent / pump / payments / wallet) with a wallet-gated `TxApprovalModal`; optional SIWE/SIWS sign-in for cross-device, E2E-encryptable sync to IndexedDB; Talking Head GLB avatar with TTS-driven viseme lip-sync and mood.
-- **Real APIs / dependencies already wired:** `/api/chat/models`, `/api/chat/proxy`, `/api/chat/config`, `/api/chat/mcp`, `/api/tts/google` (TTS for lip-sync), `/api/agents` + `/api/marketplace/agents`, `/api/auth/{me,logout,siwe/nonce,siwe/verify,siws/nonce,siws/verify}`, agent-library `index.en-US.json`; direct provider APIs (Anthropic/OpenAI/Groq/Mistral/OpenRouter/Ollama) when a user key is set; Three.js (importmap, r0.169) for the Talking Head.
-- **Where it's mediocre, thin, or unfinished:** Talking Head + TTS default **off**, so the headline 3D experience is hidden behind toggles most users never flip. Output is voice-out only — **no voice input / barge-in**; the conversation is turn-based typing, not a real spoken exchange. The avatar speaks but doesn't *listen* (no idle gaze, no attentive posture while the user talks). Lip-sync runs after the full reply completes rather than streaming with the tokens (perceived latency). Memory is per-conversation persistence, not durable *facts the agent recalls* across sessions. Mood is a single label, not a continuous emotional read. No camera/presence awareness, no interruption handling, no "the agent is thinking" embodied state.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Always-on presence, opt-out not opt-in:** boot straight into a breathing, blinking, gaze-tracking 3D avatar with voice ready. Idle micro-animations, eye contact toward the cursor/camera, an embodied "thinking" state during token generation (head tilt, glance away, subtle ponder), and an attentive "listening" pose while the user speaks. The toggle becomes "go text-only," not "turn the avatar on."
-- **Real spoken conversation with barge-in:** add push-to-talk and hands-free voice input (Web Speech API / `/api/tts` round-trip or a streaming STT endpoint), and let the user *interrupt* mid-sentence — the avatar stops speaking, drops to listening, and responds to the new utterance. This is the single biggest leap toward Advanced-Voice-Mode parity.
-- **Streaming lip-sync that begins with the first sentence**, not the last token: speak sentence-by-sentence as the stream lands so mouth movement tracks the reply in near-real-time; drive visemes off the streamed audio with EMA smoothing (reuse the proven approach from `/lipsync`).
-- **Durable agent memory:** extract and persist salient facts ("remembers your name, your project, your last ask") into the synced store, surface a "what I remember" panel the user can edit/forget (privacy + control), and inject recalled facts into the system prompt. Memory is what turns a demo into a relationship.
-- **Continuous mood + expression from the model's own affect**, not a single mood string: map sentiment/intent of each sentence to facial blendshapes and gesture so the avatar's expression evolves through the answer.
-- **Cross-feature wiring (required):** make any agent in the platform talkable in one click — `/agents/:id` "Talk to this agent" deep-links into `/chat` with that agent's persona + GLB + voice metadata prefilled (`?agent=<id>`); a persona crafted in `/brain` ("save as agent") becomes immediately conversable here; and the same Talking Head presence layer is the obvious foundation for `/club` dancers and `/play` NPCs — extract it cleanly so those surfaces can adopt it.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_01_chat-3d-agent.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`. Note: `/chat` is its own Svelte + Vite build under `chat/`.
diff --git a/prompts/feature-innovation/10_02_brain-multi-llm.md b/prompts/feature-innovation/10_02_brain-multi-llm.md
deleted file mode 100644
index f61256211..000000000
--- a/prompts/feature-innovation/10_02_brain-multi-llm.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Brain: Multi-LLM Persona Builder
-
-> **Task file:** `prompts/feature-innovation/10_02_brain-multi-llm.md`
-> **Surface:** `/brain`
-> **Primary source:** `pages/brain.html` → `src/brain.js`
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user comes to `/brain` to **craft a persona and find the model that makes it sing** — then ship that persona as a real, deployable agent. They are an agent author: they want to shape voice, tone, knowledge, and boundaries, and they want to *prove* their choice by watching several LLMs answer the same prompt side-by-side under that persona. Today `/brain` already does the two hard parts (persona extraction + multi-model compare). It exists so that authoring an agent's mind is fast, evidence-based, and delightful — instead of guessing at a system prompt in a text file.
-
-"Gamechanging" here means turning persona-crafting into a **superpower**: the user doesn't just write a prompt, they *interrogate* it across models, watch where personas drift, A/B variants, and one-click promote the winner into a live agent that's instantly conversable, embeddable, and on the marketplace. The best multi-LLM persona lab on the web, where the comparison is the product.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (OpenRouter Chatroom, LMSYS Chatbot Arena, Vercel AI Playground, PromptLayer, Poe). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — a persona lab where comparing models is fast, beautiful, and *decisive*, and where the output is a shipped agent, not a copied string.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/brain` → `pages/brain.html` (H1 "Build Your Persona"), two tabs: **Persona** + **Playground**.
-- **Source:** `pages/brain.html` → `src/brain.js`.
-- **Current flow:** 6 required (+2 optional) steps — open with Persona tab active and archetype presets rendered → (optional) apply an archetype or type freeform persona text → `/api/persona/extract` structures it (tone, vocabulary, interests, dont_say, greeting) → switch to Playground; provider availability fetched via `GET /api/brain/chat`, model chips/focus selector populated → choose **Compare** (fan out to several models) or **Focus** (one model), select active models → type a prompt and run; `streamProvider()` POSTs to `/api/brain/chat` per model, streaming responses side-by-side, each prefixed with the effective persona system prompt → (optional) save persona as an agent via `POST /api/agents` (or `PATCH /api/agents/:id`).
-- **What works today:** archetype presets + freeform persona extraction into a structured object; Compare vs Focus modes; per-model streaming into a side-by-side grid; persona system-prompt injection toggle (`personaEnabled`); availability gating of unavailable models; save-as-agent (auth-gated); sessions/persona persisted to localStorage.
-- **Real APIs / dependencies already wired:** `GET /api/brain/chat` (provider availability), `POST /api/brain/chat` (per-model streaming completions), `/api/persona/extract` (structure persona), `/api/agents` + `/api/agents/:id` (load/save agent). Models span Anthropic / OpenAI / OpenRouter / Groq / ModelScope tiers.
-- **Where it's mediocre, thin, or unfinished:** Compare is a passive read — there's **no judging, scoring, or "pick the winner"** flow; the user eyeballs columns and copies one. Persona is a static form; you can't **A/B two persona variants** against the same model, or watch the *same* persona drift across models. No regenerate/branch per column, no token/latency/cost readout to inform the choice, no diff highlighting between answers. Save-as-agent is a dead-end button — it doesn't deep-link the new agent into `/chat`, `/agents/:id`, or the marketplace. The persona object's rich fields (dont_say, interests, greeting) aren't visually previewed as a living card. No share/permalink for a comparison.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **A built-in LLM judge + scoreboard:** after a Compare run, let the user (or an automatic judge model via `/api/brain/chat`) rank the columns on persona-adherence, helpfulness, and tone, with a visible scorecard and a one-tap "Promote this model + persona to an agent." Make comparison *decisive*, not decorative.
-- **Persona A/B and drift view:** run two persona variants against the same model, or one persona across all models, with inline diff highlighting so the user *sees* exactly where each model deviates from `dont_say` / tone / greeting. Surface per-column latency, token count, and relative cost so the choice is informed.
-- **Living persona card:** render the structured persona (tone, vocabulary, interests, dont_say, greeting) as a real preview card with a sample greeting spoken in-line — the same card that becomes the agent's profile, so what you craft is literally what you ship.
-- **Per-column regenerate / branch / continue:** treat each model column as a real conversation thread you can extend, regenerate, or fork — turn a one-shot bake-off into an interactive lab session, with a shareable permalink.
-- **Cross-feature wiring (required):** "Save as agent" must complete the loop — the new agent should be **immediately talkable in `/chat`** (deep-link `?agent=<id>` with its persona + voice prefilled), **viewable at `/agents/:id`**, and **listed on the marketplace** via `/api/marketplace/agents`. A persona crafted here is the single source of truth for that agent's mind everywhere on the platform; the same `/api/persona/extract` output should hydrate the Talking Head's mood/voice metadata.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_02_brain-multi-llm.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_03_playground.md b/prompts/feature-innovation/10_03_playground.md
deleted file mode 100644
index 6105031b7..000000000
--- a/prompts/feature-innovation/10_03_playground.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — GLB Playground & Embed Generator
-
-> **Task file:** `prompts/feature-innovation/10_03_playground.md`
-> **Surface:** `/playground`
-> **Primary source:** `pages/playground.html` (self-contained inline `<script>` IIFE; Google `<model-viewer>` via CDN)
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user drags a `.glb` onto `/playground` to **see their 3D model instantly and walk away with embed code that works**. They're a developer, an agent creator, or a curious visitor who just exported a model and wants to confirm it looks right and put it on their site in 30 seconds — no account, no upload, no build step. This surface exists to be the fastest, friendliest GLB preview-and-embed tool on the web, and a frictionless on-ramp into the rest of three.ws.
-
-"Gamechanging" here means reinventing the **instant GLB embed playground**: a viewer so good people use it as their daily GLB inspector, an embed generator that produces *configured, copy-paste-perfect* code (not a bare tag), and a quiet bridge that turns "I just previewed a model" into "I deployed it as an avatar / launched a hosted page." Make it the tool people bookmark.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (glTF Viewer by donmccurdy, Babylon Sandbox, Sketchfab uploader, model-viewer's own editor). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — a GLB playground that inspects, validates, configures, and exports better than any free tool out there, and that makes the embed snippet feel like a finished product.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/playground` → `pages/playground.html` (H1 "Playground").
-- **Source:** `pages/playground.html` — **fully self-contained**: an inline `<script>` IIFE, no `/src` module import. Rendering via Google `<model-viewer>` loaded from CDN. (Note: `src/api-playground.js` exists but is a *different* surface — an API console — and is **not** wired into `/playground`.)
-- **Current flow:** 5 required (+1 optional) steps — open with default avatar (`/avatars/default.glb`) in the `<model-viewer>` → drag-drop / upload / file-pick a `.glb`/`.gltf` → model loads with a loading indicator, file info (name, size, animation count) populates → (optional) pick an animation, play/pause, adjust exposure, orbit/zoom → copy the generated `<model-viewer>` embed code from the embed panel.
-- **What works today:** drag-drop + file-picker ingest; default-vs-uploaded model; loading indicator; file metadata readout; animation dropdown + play/pause when clips exist; exposure slider; orbit/zoom; copyable embed snippet; transient status line (auto-clears ~3s).
-- **Real APIs / dependencies already wired:** Google model-viewer CDN (`ajax.googleapis.com/.../model-viewer.min.js`). **No backend calls** — all parsing is in-browser via model-viewer. Files stay client-side; no auth, no wallet, no $THREE.
-- **Where it's mediocre, thin, or unfinished:** the embed code is a **bare tag** — it ignores the exposure/animation/camera the user just dialed in, and it warns that local files need hosting but offers *no path to host them*, so the embed is frequently dead on arrival. No model inspection beyond name/size/clip-count (no mesh/material/triangle/texture stats, no validation warnings, no draw-call or filesize budget guidance). No lighting/environment controls (HDR, skybox, background, shadow), no hotspots, no camera-angle presets, no screenshot/poster export. No way to load a model by URL. Zero connection to the rest of the platform — a previewed model can't become an avatar, a hosted page, or an agent.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Embed code that captures the actual scene:** generate a snippet that bakes in the user's chosen exposure, environment, camera-orbit, auto-rotate, animation, and shadow — plus framework variants (raw HTML, React, Svelte) and a one-click "copy" / "open in CodePen-style sandbox." The snippet should reproduce *exactly what they're looking at*.
-- **Solve the dead-embed problem with real hosting:** offer "Host this model" that uploads the GLB to platform storage and returns a stable CDN URL wired straight into the embed — so the copied code works on the first paste instead of warning the user it won't.
-- **A real inspector + validator:** surface triangle count, draw calls, material/texture list, total + per-texture byte budget, animation list with durations, and actionable warnings (oversized textures, missing tangents, non-power-of-two, ungrouped meshes) — the kind of feedback that makes creators *fix* their model. Add lighting/environment controls (HDR presets, background, shadow intensity), camera presets, and a poster/screenshot export.
-- **Load by URL + shareable scene state:** accept a `?src=<glb-url>` param and encode the full viewer configuration into a shareable permalink, so "look at my model with these settings" is one link.
-- **Cross-feature wiring (required):** turn the playground into an on-ramp — a previewed/hosted GLB should offer one-click **"Use as avatar in `/chat`"** (`?avatar=<glb>`), **"Build a hosted page in `/launchpad`"** (prefill the avatar slot), **"See it in the world `/play`"**, and **"Test lip-sync in `/lipsync`"**. The same hosted URL feeds `/agents/:id` avatar fields. A model never dead-ends in the viewer.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_03_playground.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_04_launchpad-studio.md b/prompts/feature-innovation/10_04_launchpad-studio.md
deleted file mode 100644
index 406dac983..000000000
--- a/prompts/feature-innovation/10_04_launchpad-studio.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Launchpad Studio (Hosted Page Builder)
-
-> **Task file:** `prompts/feature-innovation/10_04_launchpad-studio.md`
-> **Surface:** `/launchpad` (publishes to `/p/<slug>`)
-> **Primary source:** `pages/launchpad.html` → inline `<script type="module">` → `src/editor/launchpad-studio.js` (`mountLaunchpadStudio`)
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user opens `/launchpad` to **build and publish a hosted page for their agent in minutes — no code**. They're an agent creator who wants a real landing page (a concierge, a showroom, a token launchpad) with their brand, their 3D avatar, and their payout wallet, living at a shareable `/p/<slug>` URL. This surface exists so anyone can go from "I have an agent" to "I have a live page people can visit and transact on" without touching HTML or a deploy pipeline.
-
-"Gamechanging" here means a **no-code hosted page builder for agents** that rivals the polish of Linktree/Carrd/Framer but is purpose-built for living 3D agents: real-time WYSIWYG editing, beautiful templates, an embedded 3D avatar that *moves*, and one-click monetization (Pump.fun mint with creator-fee split — generic runtime mint, $THREE-compliant) baked in. The result should be a page the creator is proud to put in their bio.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Framer, Carrd, Linktree, Vercel/v0, Webflow). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — a page builder where the live preview *is* the canvas, the agent avatar is alive on the page, and publishing to a real hosted URL with on-chain monetization is a single confident click.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/launchpad` (optional `?template=&slug=&wallet=&website=&avatar=` query hydration); publishes to `/p/<slug>`.
-- **Source:** `pages/launchpad.html` → inline `<script type="module">` → `src/editor/launchpad-studio.js` (`mountLaunchpadStudio`). 3-pane layout: sidebar / live-preview stage / config rail, mounted into `#root`.
-- **Current flow:** 6 required (+1 optional) steps — open with a default template (`token-launchpad`) and recent-projects from localStorage → pick a template card (Token Launchpad, Concierge, Showroom…) → fill the config form (slug, brand color, payout wallet, website, theme, avatar, monetization/chain) with the center stage updating live → (optional) attach a 3D avatar (agent-3d element) into the avatar-stage slot → add the payout wallet address (required for publish) → click Publish → `POST /api/launchpad/publish`; on success hosted at `/p/<slug>`, owner token kept in localStorage for re-edits.
-- **What works today:** template picker; live-updating preview; config rail for slug/brand/wallet/website/theme/avatar/monetization/chain; 3D avatar slot; new-vs-edit via `?slug=` hydration; owner-only sections hidden on 401; recent-projects in localStorage; publish to `/p/<slug>` with owner token; Token Launchpad template wires a one-click Pump.fun mint with creator-fee split (generic runtime mint, $THREE-compliant).
-- **Real APIs / dependencies already wired:** `POST /api/launchpad/publish`, `GET /api/launchpad/get` (hydrate existing), `/api/agents` (my-agents avatar picker), Pump.fun launch plumbing (runtime mint, creator-fee split), agent-3d / Three.js for the avatar preview.
-- **Where it's mediocre, thin, or unfinished:** publishing is **blocked with a raw thrown string** ("Add your payout wallet address.") rather than inline guided validation; editing is a form-fills-a-preview model, not direct manipulation (no click-on-the-page-to-edit, no section reordering, no add/remove blocks). Template variety and per-template content depth are thin. No custom-domain, no SEO/OG-image control for the `/p/<slug>` page, no analytics for the page owner (visits, conversions, tips). No live publish status beyond an ok/err line, no preview-as-published, no versioning/unpublish/duplicate. The avatar on the page is a static preview, not the *talking* presence the platform already has.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Direct-manipulation editing:** click any element on the live preview to edit it in place; drag to reorder sections; add/remove content blocks (hero, bio, links, gallery, FAQ, tip jar, token chip). The preview becomes the canvas, not a mirror of a form.
-- **Turn the page avatar into a living agent:** embed the Talking Head / agent-3d presence so the `/p/<slug>` page greets visitors and can *talk* — pulling the agent's persona from `/api/agents`. A landing page where the agent literally welcomes you is the screenshot moment.
-- **Owner growth tools:** an OG-image generator for rich link previews, SEO controls, and a real owner analytics panel (visits, link clicks, tips, mint conversions) for the published page — give creators a reason to come back and iterate.
-- **Robust publish lifecycle:** inline guided validation (never a thrown string), publish/unpublish/duplicate/version, "preview as published," slug-availability checking, and a clear share/QR step on success.
-- **Cross-feature wiring (required):** the builder should pull avatars and personas from `/api/agents` and let "save as agent" round-trip — a page built here links to **`/chat?agent=<id>`** ("talk to this agent"), **`/agents/:id`** (full profile), and surfaces the agent's launched $THREE/pump token chip live via `/api/pump/by-agent`. The published `/p/<slug>` should be a first-class destination cross-linked from the agent's profile and the marketplace, so a creator's agent, page, chat, and token feel like one connected product.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint, e.g. the Token Launchpad template) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_04_launchpad-studio.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_05_lipsync.md b/prompts/feature-innovation/10_05_lipsync.md
deleted file mode 100644
index cfa93d167..000000000
--- a/prompts/feature-innovation/10_05_lipsync.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 🚀 Innovation Brief — Real-Time Lip-Sync (TTS + Microphone)
-
-> **Task file:** `prompts/feature-innovation/10_05_lipsync.md`
-> **Surface:** `/lipsync` (TTS-driven) and `/lipsync/mic` (microphone-driven)
-> **Primary source:** `public/demos/lipsync-tts.html` (inline module; `/api/tts/speak` + `wawa-lipsync`); `public/demos/lipsync-mic.html` → `src/lip-sync-analyser.js` (`LipSyncAnalyser`, in-browser Web Audio)
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user comes to `/lipsync` to **watch a 3D avatar speak — and believe it**. On the TTS side they type text, pick a voice, hit Speak, and the avatar's mouth tracks the audio. On `/lipsync/mic` they talk into their microphone and the avatar mouths their words in real time. These surfaces exist to prove that three.ws does avatar speech better than anyone — they're the technical heart that powers the Talking Head in `/chat`, the dancers in `/club`, and NPCs in `/play`.
-
-"Gamechanging" here means making real-time lip-sync **uncannily good**: visemes that hit on the right phonemes, co-articulation and jaw/tongue motion that read as speech (not a flapping jaw), expression and head motion that sell it, and latency low enough that the mic mode feels like a mirror. When someone sees it, the reaction should be "wait, that's the browser?"
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (NVIDIA Audio2Face, Apple Memoji, Oculus/Meta OVR LipSync, Ready Player Me visemes, ElevenLabs + avatar pipelines). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — in-browser lip-sync whose fidelity makes people question whether it's pre-rendered, with the engine extracted so the whole platform's avatars inherit it.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/lipsync` (TTS-driven) and `/lipsync/mic` (microphone-driven).
-- **Source — `/lipsync`:** `public/demos/lipsync-tts.html` (vercel rewrite target `demos/lipsync-tts.html` under `public/demos/`); inline `<script type="module">`; Three.js + GLTFLoader (importmap) + the `wawa-lipsync` library for viseme detection. **Source — `/lipsync/mic`:** `public/demos/lipsync-mic.html` → imports `src/lip-sync-analyser.js` (`LipSyncAnalyser`); Three.js + GLTFLoader (importmap).
-- **Current flow — `/lipsync` (6 +1):** avatar GLB (`/avatars/default.glb`) loads with viseme morphs wired and default text prefilled → (optional) edit text, pick voice + speed → click Speak → `POST /api/tts/speak {text, voice, speed, format:'mp3'}` → server returns an MP3 blob played through an `<audio>` element connected to `wawa-lipsync` → per frame, lipsync FFT-analyses the audio → viseme code → avatar morph targets with EMA smoothing → mouth animates; viseme bar chart updates; Speak re-enables when playback ends.
-- **Current flow — `/lipsync/mic` (6 +0):** avatar loads, controls idle → click Start mic → browser prompts for mic permission; user grants → AudioContext + MediaStreamSource + AnalyserNode wired, `LipSyncAnalyser.connect()` called → per frame `analyser.sample()` reads frequency bands → maps to 9 viseme weights (aa/O/E/I/nn/SS/FF/CH/PP) with EMA smoothing + silence fade → drives morphs → speak into mic → avatar mouth follows live; meter bars + viseme readout update; Stop resets morphs to 0.
-- **What works today:** TTS round-trip with voice + speed; MP3 playback wired to `wawa-lipsync` FFT viseme detection; EMA-smoothed morph driving; live viseme bar chart; mic mode fully in-browser (audio never leaves the device) with 9 viseme weights, silence fade, meter bars; actionable error handling on both (TTS 400/429/5xx, autoplay-blocked; mic denied/not-found/busy/insecure-context, each with "Try again").
-- **Real APIs / dependencies already wired:** `POST /api/tts/speak` (OpenAI TTS), `GET /avatars/default.glb`, `wawa-lipsync` (client-side via Web Audio AnalyserNode), Three.js. Mic mode makes **no server calls**.
-- **Where it's mediocre, thin, or unfinished:** FFT-band viseme detection is **energy-based, not phoneme-aware** — it approximates mouth openness rather than recognizing actual phonemes, so consonants and co-articulation read poorly. Only the jaw/mouth moves: **no head motion, blinking, brow, or expression**, which is what actually sells speech. Fixed default avatar only — no upload/URL avatar, no morph-target remapping for arbitrary GLBs (a model without the expected morphs silently does nothing meaningful). TTS lip-sync runs only after the full clip downloads (no streaming). The two routes share concepts but not a unified, exported engine — `/chat`'s Talking Head, `/club`, and `/play` each reinvent this. No recording/export of a lip-synced clip.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Phoneme-aware visemes, not energy bands:** drive the mouth from actual phonemes — for TTS, derive timing from the text/voice (forced alignment or a viseme timeline), and for mic, use a lightweight in-browser phoneme/feature model — so plosives, fricatives, and vowels each get the right shape with proper co-articulation. This is the leap from "jaw flap" to "reads as speech."
-- **Full facial performance:** layer blinking, micro-saccades, brow motion, head bob, and breathing on top of the mouth, with expression tied to punctuation/intent — the difference between a talking prop and a talking *being*.
-- **Any-avatar support with morph auto-mapping:** accept an uploaded or URL GLB, detect its morph-target naming convention (ARKit / Oculus / Reallusion / custom), and remap the viseme set automatically with a graceful fallback so *any* model lips-syncs, not just the default.
-- **Streaming + record/export:** start lip-sync on the first audio chunk instead of waiting for the full MP3; let the user record the avatar speaking and export a shareable clip — instantly viral, instantly demonstrative.
-- **Cross-feature wiring (required):** extract a single, reusable lip-sync engine (TTS-fed + mic-fed) and adopt it in **`/chat`'s Talking Head** (replace its post-completion speak with streaming visemes), and offer the same module to **`/club`** dancers and **`/play`** NPCs. Wire avatar selection so a model previewed in **`/playground`** or chosen on **`/agents/:id`** can be tested here via `?avatar=<glb>`. One engine, every avatar on the platform speaks beautifully.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_05_lipsync.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_06_club.md b/prompts/feature-innovation/10_06_club.md
deleted file mode 100644
index a69b6a4e3..000000000
--- a/prompts/feature-innovation/10_06_club.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Club: 3D Social Venue with Real Micro-Payments
-
-> **Task file:** `prompts/feature-innovation/10_06_club.md`
-> **Surface:** `/club`
-> **Primary source:** `pages/club.html` → `/x402.js`, `src/club-entrance.js`, `src/club-gate.js`, `src/club.js`; supporting `src/club-venue.js`, `src/club-audio.js`, `src/club-camera.js`, `src/club-crowd.js`, `src/club-perf.js`, `src/club-sequence.js`, `src/animation-manager.js`
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user enters `/club` for **a 3D social night out where money is real**. They pick an avatar, walk through an entrance, pay an on-chain cover charge (USDC via x402), step onto a pole-stage venue, and tip dancers with real micro-payments that trigger live routines, move a leaderboard, and float reactions for everyone to see. This surface exists to prove that three.ws can host a *living, economically-real 3D space* — entertainment with on-chain stakes — not a static demo.
-
-"Gamechanging" here means a venue that feels **alive and worth returning to**: a place with presence (other people, real or agent), persistent identity and status, social rituals worth paying for, and a real-time economy where every tip is visible and consequential. The dream: someone shows up for two minutes to test it and stays because it's *happening*.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (VRChat hubs, Fortnite party/concert modes, Twitch live-tipping culture, Rec Room, Horizon Worlds). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — a browser 3D venue where real micro-payments drive a live social loop so compelling people come back nightly.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/club` → `pages/club.html`; entrance scene + door gate + pole stage boot in parallel behind a loading screen.
-- **Source:** `pages/club.html` loads `/x402.js` (wallet/payment modal), `src/club-entrance.js` (walk-in alley scene), `src/club-gate.js` (cover-charge bouncer), `src/club.js` (main pole stage). Supporting: `src/club-venue.js`, `src/club-audio.js`, `src/club-camera.js`, `src/club-crowd.js`, `src/club-perf.js`, `src/club-sequence.js`, `src/animation-manager.js`.
-- **Current flow (7 +1):** open → loading screen with real GLB byte-count progress; avatar picker populates (bundled + gallery avatars via `/api/avatars/` and `/api/explore`) → (optional) select an avatar → spawn in the entrance scene; move with WASD / touch joystick, look via drag → walk to the neon door → "Enter the club" prompt; activate → door reveals the x402 cover screen; connect wallet and pay cover → `POST /api/x402/club-cover` settles on-chain and checks the gate → on approval the rope drops; walk through to the pole stage (entrance fades, `club.js` stage active: dancers, leaderboard, live tip feed) → select a pole + dance style and tip → `POST /api/x402/dance-tip`; on settlement the dancer performs, leaderboard + live feed update, reactions float up.
-- **What works today:** parallel boot with real byte-count loading; avatar picker from real avatar APIs; walk-in entrance with WASD/touch movement; x402 cover charge settled on-chain (USDC); cover gate approval/denial; pole-stage scene with dancers, leaderboard, live SSE tip feed; tip → on-chain settlement → dance routine + leaderboard/feed update + floating reactions; audio, camera, crowd, perf, and sequence systems; animation manager.
-- **Real APIs / dependencies already wired:** `POST /api/x402/club-cover`, `POST /api/x402/dance-tip`, `GET /api/club/tips`, SSE `/api/club/tips/stream`, `GET /api/club/leaderboard`, `/api/avatars/`, `/api/explore`; club venue/prop GLBs under `/club/...`, `/avatars/default.glb`, animation manifest/clips; `x402.js` wallet modal (Solana web3 / EVM); Three.js + post-processing.
-- **Where it's mediocre, thin, or unfinished:** the SSE feed makes it *look* live but there's **no real co-presence** — you don't see other actual visitors moving, so it can feel empty solo (the loneliness problem is the killer). No persistent identity/status across visits (your tips, rank, regular-ness don't carry over). The tip→dance loop is a single transactional beat, not an escalating social ritual (no requests, no shout-outs, no crowd hype meter that everyone affects together). No chat/presence/emote between visitors. Atlas notes exact on-stage routine names and per-pole UI copy weren't exhaustively read — verify in `club*.js` before changing them. No reason to return tomorrow: no events, no schedule, no leaderboard seasons.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Real co-presence:** show other live visitors (and/or platform agents as ambient crowd) moving in the venue via the existing SSE/real-time layer, with avatars, emotes, and proximity — so the room is visibly *occupied*. Solve the empty-room problem first; everything else compounds on it.
-- **An escalating tip economy, not a vending machine:** crowd hype meter that everyone's tips raise together to unlock a special routine; tip requests / dedications with on-stage shout-outs; tipping streaks and combos; "top tipper of the night" spotlight. Make each tip part of a shared rising moment, not an isolated transaction.
-- **Persistent identity + status:** carry rank, lifetime tips, VIP/regular status, and unlockables across visits (tied to wallet), with leaderboard *seasons* that reset to give newcomers a shot. Status is the reason to return.
-- **Scheduled events + a reason for tonight:** a venue schedule (sets, themed nights, agent guest performers from the marketplace), a live "now playing" state, and notifications — so `/club` has a *when*, not just a *where*.
-- **Cross-feature wiring (required):** the dancers and crowd should be real platform agents — pull performers from **`/api/agents`** / the marketplace so an agent created in `/brain` or profiled at **`/agents/:id`** can *perform* here, and link tip recipients back to their profile and live $THREE/pump token chip (`/api/pump/by-agent`). Use the extracted Talking Head / lip-sync engine so dancers can *speak* shout-outs. Surface the club in **`/labs`** and let `/agents/:id` deep-link "perform at the club."
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The cover/tip economy here is **USDC-denominated x402** (coin-agnostic on-chain payment plumbing), which is allowed; do not introduce any non-$THREE token branding or recommendation.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_06_club.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/10_07_labs-gallery.md b/prompts/feature-innovation/10_07_labs-gallery.md
deleted file mode 100644
index c73bab0fd..000000000
--- a/prompts/feature-innovation/10_07_labs-gallery.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# 🚀 Innovation Brief — Labs: Feature Gallery
-
-> **Task file:** `prompts/feature-innovation/10_07_labs-gallery.md`
-> **Surface:** `/labs`
-> **Primary source:** `pages/labs.html` → `src/labs.js`; data from `/features.json` (static registry, mirror of `/api/features`)
-> **Atlas reference:** `docs/ux-flows/10-chat-brain-labs.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user opens `/labs` to **discover everything three.ws can do — and want to try all of it**. They're a newcomer or a returning explorer scanning a grid of "gem" cards for experiments: lip-sync, brain, three-live, voice, club, and more. This surface exists as the platform's showcase — the place that turns "what is this site?" into "I have to play with that."
-
-"Gamechanging" here means a gallery that makes people **explore every experiment**: live, enticing previews that sell each feature in motion, smart organization that surfaces what's new and what's hot, and a discovery flow so good it drives traffic into every other surface. The showcase should feel like the front door of an arcade where every cabinet is already running a demo.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Three.js examples gallery, Awwwards showcases, Vercel templates gallery, Apple's product feature pages, Codrops). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new — a feature gallery whose previews are so alive and well-curated that visitors can't stop clicking into experiments.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/labs` → `pages/labs.html`; a grid of "gem" cards.
-- **Source:** `pages/labs.html` → `src/labs.js`. Data: `/features.json` (static registry, a mirror of `/api/features`).
-- **Current flow (3 +1):** open → skeleton placeholders render while `/features.json` is fetched → cards render (category-colored: Voice / AI / 3D Live / Crypto / x402); each runs a `HEAD` liveness check (3s timeout) showing a Live/Checking status, plus a lazy IntersectionObserver iframe preview of the route → click a card's "Try it →" CTA → navigate to that feature's route (e.g. `/lipsync`, `/brain`, `/three-live`, `/voice`).
-- **What works today:** skeleton loading state; registry fetch from `/features.json`; category-colored cards; per-card `HEAD` liveness check (3s timeout) with Live/Checking/Offline status; lazy IntersectionObserver iframe previews (load only when scrolled into view); category filtering (Voice / AI / 3D / Crypto / x402); working "Try it →" deep links.
-- **Real APIs / dependencies already wired:** `GET /features.json` (registry), `HEAD <route>` per card (liveness), iframe `src=<route>` (sandboxed previews).
-- **Where it's mediocre, thin, or unfinished:** iframe previews are **heavy and static-feeling** — they load a whole route in a frame (slow, jank-prone, sometimes a blank or login-walled view) rather than a curated, motion-rich teaser; no poster/loop/video fallback while a frame boots. Discovery is shallow: category filter only — **no search, no sort, no "new/updated/popular," no tags, no recommended-next**. No usage signal (which experiments people actually open), no "recently added" tie-in to the changelog, no detail/expanded view. Registry fetch failure leaves bare skeletons (weak error state). No personalization or "continue where you left off." The gallery doesn't reflect *its own platform's* sense of craft — it's a functional grid, not a showcase.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Previews that sell motion without the iframe tax:** lead with lightweight looping poster/video/canvas teasers (e.g. a short captured loop or a live mini-canvas) and lazily upgrade to the live iframe only on hover/focus or click-to-activate — fast, beautiful, and never blank. A featured "hero" card auto-plays.
-- **Real discovery:** instant search, sort (new / popular / category), tag facets, and a "What's new" rail wired to the changelog (`data/changelog.json` / `public/changelog.json`) so freshly shipped experiments surface automatically. Add a "recommended next" based on what the visitor just opened.
-- **Usage-aware ranking:** record opens/click-throughs (privacy-respecting) and surface a genuine "most explored this week," plus "continue exploring" for return visitors — make the gallery feel curated and current rather than a frozen list.
-- **A detail/expanded view per gem:** click for a richer panel (what it is, a bigger live preview, related experiments, deep-links to its sub-routes like `/lipsync/mic`) before launching — turn each card into a mini landing page.
-- **Cross-feature wiring (required):** `/features.json` / `/api/features` should be the **single source of truth** every surface reads — make the gallery reflect live status and the changelog, and have it deep-link not just to routes but to *configured* experiences (e.g. `/chat?agent=…`, `/lipsync?avatar=…`, `/launchpad?template=…`). Newly added features (and their `data/pages.json` `added` dates) should appear here automatically, so shipping a feature anywhere makes it discoverable here with zero extra work.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/10_07_labs-gallery.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/10-chat-brain-labs.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/11_01_auth-signin-signup.md b/prompts/feature-innovation/11_01_auth-signin-signup.md
deleted file mode 100644
index 670ac7f0e..000000000
--- a/prompts/feature-innovation/11_01_auth-signin-signup.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# 🚀 Innovation Brief — Sign in / Sign up / Forgot password
-
-> **Task file:** `prompts/feature-innovation/11_01_auth-signin-signup.md`
-> **Surface:** `/login`, `/register`, `/forgot-password` (+ completion at `/reset-password`)
-> **Primary source:** `public/login.html`, `public/register.html`, `public/forgot-password.html`, `public/reset-password.html`, `public/wallet-login.js`, `src/privy-login.js`, `src/auth/email-auth.js`
-> **Atlas reference:** `docs/ux-flows/11-account-dashboard.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is someone arriving at three.ws for the first time — or returning after a gap — who wants to get into their account and start building or managing AI agents. They land on `/login` or `/register`, dedicated full pages (not modals). The catch: three.ws supports **six different ways to authenticate** — email + password (`POST /api/auth/login`), Privy email-OTP, Privy EVM SIWE, Privy Solana SIWS, native on-chain SIWE/SIWS via the wallet drawer, and SAML SSO — every one of which mints the same `__Host-sid` cookie. That breadth is a strength and a liability: most web3 auth screens become a confusing wall of buttons where nobody knows which path is *theirs*.
-
-This feature exists to make multi-method authentication the **smoothest, most trustworthy onboarding in web3** — zero confusion about which method to use, zero dead-ends, and a signature delight (the typing-reactive 3D avatar) that makes people screenshot the login page itself. "Gamechanging" here means: a first-time visitor instantly understands their best path, a returning visitor is recognized and routed in one tap, and the trust signals (privacy-preserving reset, real session verification, honest error copy) make people feel the platform is run by serious people. Auth is the front door — make it the most reassuring, fastest, most beautiful front door in the space.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Linear's login, Vercel's auth, Stripe's dashboard sign-in, Privy's own embedded UX, Rainbow/Phantom connect flows). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user. The bar: a crypto-native who has connected a hundred wallets says "this is the cleanest auth I've used," and a non-crypto user never feels lost among the wallet options.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/login` → `public/login.html`; `/register` → `public/register.html`; `/forgot-password` → `public/forgot-password.html`; `/reset-password` → `public/reset-password.html`. All are dedicated full pages; auth is **never** a modal — gated pages redirect here via `requireAuth()` (`src/auth/email-auth.js`) / `requireUser()` (`src/dashboard-next/api.js`) preserving origin in `?return=` / `?next=`.
-- **Source:** inline `<script>` in each HTML file; shared helpers in `src/auth/email-auth.js` (`signInWithEmail`, `registerWithEmail`, `getCurrentUser`, `signOut`, `requireAuth`); Privy paths in `src/privy-login.js`; native wallet connect buttons loaded by `public/wallet-login.js` (from `/wallet/connect-button*.js`).
-- **Current flow:**
- - `/login` — 9 required steps (+6 optional): on-load `GET /api/auth/me` guard (redirect to `next` if already signed in, default `/dashboard`); email/username + password → `POST /api/auth/login` `{email,password,remember}`; success persists `3dagent:last-email` + `localStorage['3dagent:auth-hint']`, avatar dances, then `location.replace(next)`. Optional: Privy email-OTP (`sendCode`/`loginWithCode` → `POST /api/auth/privy/verify`), Privy EVM SIWE, Privy Solana SIWS (`GET /api/auth/siws/nonce` → `POST /api/auth/siws/verify` with `x-csrf-token`), native on-chain drawer (state in `sessionStorage['login:onchain']`), SAML SSO (shown only if `GET /api/config` returns `samlEnabled`, navigates `/api/auth/saml/login?next=…`).
- - `/register` — 8 required (+2 optional): on-load `me` guard (default `next` = `/create`); **username** (3–30, `[a-zA-Z0-9_-]`) + password (min 10) with live strength meter → `POST /api/auth/register` → server mints a session immediately (signed in on register) → `location.replace(next)`. Same optional Privy/wallet paths; drawer state in `sessionStorage['register:onchain']`.
- - `/forgot-password` — 6 required (+1 completion step on `/reset-password`): email → `POST /api/auth/forgot-password` → **always 200**, privacy-preserving notice ("If an account exists…"). Completion: `/reset-password?token=…` → new password + confirm (both min 10, must match) → `POST /api/auth/reset-password` → "Password reset. You can now log in."
-- **What works today:** All six auth methods work and mint the same `__Host-sid` cookie. The typing-reactive 3D avatar (`@three-ws/agent-ui` / `/avatars/cz.glb` model-viewer) covers its eyes on credential focus, facepalms on errors, and dances on success. Already-auth guard, Caps-Lock warning, password-strength meter, live username/email validation, per-field inline errors with shake, SSO error-code mapping from URL params, `?signed_out` notice, wallet skeleton shimmer, Privy CAPTCHA (Turnstile), and Solana-provider auto-fallback to EVM are all present.
-- **Real APIs / dependencies already wired:** `GET /api/auth/me`, `POST /api/auth/login`, `POST /api/auth/register`, `POST /api/auth/forgot-password`, `POST /api/auth/reset-password`, `POST /api/auth/privy/verify`, `GET /api/auth/siws/nonce`, `POST /api/auth/siws/verify`, `GET /api/config`, `/api/auth/saml/login`; Privy JS SDK (`@privy-io/js-sdk-core`, app id from `/api/config`), Cloudflare Turnstile, browser wallet providers (`window.ethereum`, Phantom/Backpack/Solflare), `@three-ws/agent-ui` avatar, model-viewer CDN.
-- **Where it's mediocre, thin, or unfinished:** The six methods compete for attention with no intelligent prioritization — a returning user who last used Solana SIWS still has to hunt for it. There is **no "last method used" memory** beyond `3dagent:last-email`, no recognized-returning-visitor treatment, no method recommendation. The two pages (`/login`, `/register`) duplicate large amounts of inline script that drift apart. Error copy is honest but generic; there's no progressive trust-building (why is each method safe?). The avatar delight is real but isn't tied to *which* method you're using. The reset flow is correct but cold — no strength guidance continuity, no "you're almost there" momentum. SSO discovery is binary (button appears or doesn't) with no domain-based detection. Wallet drawer is buried behind a click with no signal of *which* wallets are actually installed.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Smart method recall & one-tap return.** Persist the *last successful method* (not just email) in `localStorage` and, on load, surface it as the hero CTA ("Continue with Solana wallet" / "Continue with email") while collapsing the rest into a clean "Other ways to sign in" disclosure. A returning Phantom user taps once. Detect installed wallet providers up front and only show what's actionable, labeled by the real wallet name and icon.
-- **Avatar as a live auth narrator.** Make the typing-reactive avatar method-aware: it watches the password field (eyes covered), reacts to wallet-signature requests ("waiting for your signature…" pose), celebrates the *specific* method on success, and gives a reassuring gesture during the privacy-preserving reset. Tie its micro-states to real auth events, not timers — turn the front door into the thing people screenshot.
-- **Unify the auth client into one module.** Extract the duplicated inline logic from `/login` and `/register` into a single shared controller (alongside `src/auth/email-auth.js`) so both pages, all six methods, every error map, and the avatar choreography live in one place. Consistency compounds; drift is the enemy.
-- **Domain-aware SSO discovery.** When a user types a work email, probe `/api/config` (or a lightweight org lookup) and, if their domain is SAML-enabled, *promote* the SSO path inline ("Looks like your team uses SSO — continue with your company login") instead of hiding it behind a static button.
-- **Trust microcopy that earns the click.** Each method gets a one-line, honest "why this is safe" affordance (passwords never leave hashed; wallet sign-in never spends; reset is privacy-preserving — we never reveal if an account exists). Make security legible without lecturing.
-- **Cross-feature wiring:** carry `?return=`/`?next=` perfectly through *every* method (including the wallet drawer and SSO round-trips) so a user redirected from `/dashboard`, `/create`, or any gated agent surface lands exactly where they were. On first successful auth, hand off the recognized identity to the dashboard greeting (`home.js`) and the `localStorage['3dagent:auth-hint']` chrome so the very next surface already feels personalized. If the user arrived via a referral link, ensure `claimPendingReferral()` fires once the session exists.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/11_01_auth-signin-signup.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/11-account-dashboard.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/11_02_dashboard.md b/prompts/feature-innovation/11_02_dashboard.md
deleted file mode 100644
index 31ba1d9c0..000000000
--- a/prompts/feature-innovation/11_02_dashboard.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# 🚀 Innovation Brief — Dashboard (command center)
-
-> **Task file:** `prompts/feature-innovation/11_02_dashboard.md`
-> **Surface:** `/dashboard`, `/dashboard/account`, `/dashboard/analytics`
-> **Primary source:** `pages/dashboard-next/index.html`, `pages/dashboard-next/account.html`, `pages/dashboard-next/analytics.html`, `src/dashboard-next/pages/home.js`, `src/dashboard-next/pages/account.js`, `src/dashboard-next/pages/analytics.js`, `src/dashboard-next/shell.js`, `src/dashboard-next/api.js`
-> **Atlas reference:** `docs/ux-flows/11-account-dashboard.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is an **agent owner** — someone who has created AI agents/avatars on three.ws and is trying to run them like a business: earn revenue, watch usage, spot what's working, and act fast when something changes. The dashboard (`dashboard-next`) is where they live. `/dashboard` is the overview (KPIs, hero avatars, trading + world-health, quick actions, directory, activity feed), `/dashboard/account` is identity/wallets/keys/delegation/audit, and `/dashboard/analytics` is the revenue and performance deep-dive (revenue-over-time chart, revenue-by-skill bars, agent-performance table, recent payments).
-
-This feature exists to be the **daily command center an agent owner can't live without** — the tab they leave open. "Gamechanging" means the dashboard doesn't just *display* state, it *drives action*: it surfaces what changed since last visit, what's earning, what's broken, and what to do next — and it lets them act without leaving. Today it polls KPIs and activity every 30s and renders solid panels; the leap is turning a reporting surface into a living operations console that feels like Linear's home, Stripe's dashboard, and Vercel's project view had a child.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (Stripe Dashboard, Vercel project overview, Linear home, Mixpanel/Amplitude analytics, Phantom portfolio). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user. The bar: an agent owner glances at the dashboard for five seconds and knows exactly what made or lost them money since yesterday — and the one thing worth doing right now.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/dashboard` → `pages/dashboard-next/index.html` → `src/dashboard-next/pages/home.js`; `/dashboard/account` → `account.html` → `account.js`; `/dashboard/analytics` → `analytics.html` → `analytics.js`. Shell (sidebar/topbar/live-event drawer/command palette) from `src/dashboard-next/shell.js`; data helpers from `src/dashboard-next/api.js`. Heavy 301 consolidation: `/dashboard-classic/*` and many legacy slugs (`/dashboard/wallets`, `/actions`, `/sns`, `/delegation`, `/usage`, etc.) redirect to canonical pages (mirrored in `vercel.json` + Vite dev middleware).
-- **Source:** see above. All three pages are gated by `requireUser()` (in `api.js`), which calls `getMe()` → `GET /api/auth/me`; on 401 it navigates `/login?return=<path>` and returns a never-resolving promise so the page halts cleanly.
-- **Current flow:**
- - `/dashboard` (8 required +2 optional): `mountShell()` → `requireUser()` → greeting ("Welcome back, <name>.") with new-account (<30 days) + dismissal-flag (`twx_onboarding_dismissed`, `twx_forge_announce_dismissed`) banner logic → skeletons across hero/KPI/activity → parallel `Promise.allSettled` fetch of `GET /api/avatars?limit=50`, `GET /api/widgets`, `GET /api/agents?limit=20` (each degrades independently) → render hero 3D avatar strip, KPI row (revenue/views/transcripts/avatars with 7-day sparklines), trading + world-health sections, 2×2 quick-actions grid, agent/avatar directory, recent-activity feed (stitched transcripts + revenue events) → onboarding guide (`getting-started.js`) reconciled against server state → **KPIs + activity re-poll every 30s**, relative timestamps tick every 60s → optional sidebar nav / command palette / live-event drawer / banner dismissal / `claimPendingReferral()`.
- - `/dashboard/account` (2 required +7 optional): boot + render sections (Profile, AI Provider Keys, Linked Wallets, SNS/.sol, Vanity Wallets, Delegation console, Action Log/audit). Mutations: `PATCH /api/auth/profile`, `PATCH /api/user/provider-keys`, `GET /api/auth/wallets` + `POST /api/auth/wallets/primary` + `DELETE /api/auth/wallets/{address}`, `POST /api/agent-delegate`, `GET /api/audit-log` (CSV export + paginate), `POST /api/auth/logout`.
- - `/dashboard/analytics` (5 required +1 optional): boot → skeletons (4 KPI + 3 panel bones) → parallel fetch for range (default 30d): `GET /api/billing/revenue?from&to&granularity`, `GET /api/agents?limit=50`, `GET /api/widgets`, `GET /api/billing/summary`, `GET /api/monetization/revenue?period=…` → secondary per-widget `GET /api/widgets/{id}/stats` (≤20) and `GET /api/agents/{id}/payments?direction=received&limit=5` (top 5) → render range bar (7d/30d/90d/12mo), KPI cards (Total Revenue, Total Callers, Avg Price/Call, Top Agent), Revenue-Over-Time canvas line chart (animated, hover tooltip), Revenue-by-Skill horizontal bars (top 8), Agent-Performance table (Views/Chats/Conv.%), Recent-Activity table (latest 20 payments, Settled/Failed/Pending badges) → optional range switch refetch + chart re-animation.
-- **What works today:** Gated boot, shell chrome (sidebar/topbar/live-event drawer/command palette), per-slot skeletons, `Promise.allSettled` degradation, 30s KPI/activity polling, live 3D hero avatars, sparklines, animated canvas revenue chart with hover tooltip, range-driven granularity, account mutations with toasts, audit CSV export, delegation console, panel-level empty states with deep links to `/dashboard/monetize` and `/dashboard/agents`, global error + Reload fallback when all primary analytics fetches fail.
-- **Real APIs / dependencies already wired:** `GET /api/auth/me`, `GET /api/avatars`, `GET /api/widgets`, `GET /api/agents`, `/api/billing/revenue`, `/api/billing/summary`, `/api/monetization/revenue`, `/api/widgets/{id}/stats`, `/api/agents/{id}/payments`, `PATCH /api/auth/profile`, `PATCH /api/user/provider-keys`, `GET /api/auth/wallets`, `POST /api/auth/wallets/primary`, `DELETE /api/auth/wallets/{address}`, `POST /api/agent-delegate`, `GET /api/audit-log`, `POST /api/auth/logout`; shared `tour.js`, `crypto-optional.js`, `log.js`, `state-kit`.
-- **Where it's mediocre, thin, or unfinished:** The overview *reports* but doesn't *prioritize* — there's no "what changed since your last visit," no anomaly/spike detection, no single recommended next action. KPIs poll every 30s but the user can't tell *why* a number moved or click it to drill in. The live-event drawer pulses but the events aren't woven into the KPIs or activity feed as a coherent story. Analytics is a strong static report but has no comparison-to-previous-period, no per-agent drilldown from the overview, no export of the charts, no annotations. Account, overview, and analytics feel like three separate apps rather than one console — the agent table on `/dashboard` doesn't link cleanly into the analytics agent-performance row for the same agent. There's no command-palette-driven "jump to agent X's revenue" flow even though the palette exists. Empty/new-user state leans on the onboarding guide but doesn't show *aspirational* preview of what a populated command center looks like.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **"Since you last visited" intelligence.** On load, diff current server state against a stored snapshot (last-seen revenue total, payment count, new transcripts) and lead with a human summary: "+$42 across 3 agents, your top earner shifted to <Agent>, 2 new chats need a reply." Make the dashboard answer "what happened?" before the user asks.
-- **Live KPI cards that explain and drill.** Each KPI becomes interactive: click revenue → inline mini-chart + the payments that drove it (reuse `/api/billing/revenue` + `/api/agents/{id}/payments`); period-over-period delta with up/down coloring; sparkline that animates on poll-update. Tie the 30s poll to a subtle "live" pulse and a "data updated just now" affordance so the user trusts it's real-time.
-- **One recommended action.** Surface a single, computed "do this next" card from real state — e.g. an agent with views but zero conversions ("price too high?"), an unconfigured provider key blocking a feature, a wallet not set primary, revenue that dropped vs last period. Make it deep-link to the exact fix (`/dashboard/account`, `/dashboard/monetize`, the agent editor).
-- **Unify the three surfaces into one console.** Make the overview agent directory rows link straight into that agent's analytics drilldown; make the command palette support "jump to <agent> revenue / open <agent> settings / link a wallet"; make the live-event drawer events click through to the relevant KPI or activity item. The user should never feel they left the command center.
-- **Period comparison + annotations in analytics.** Add previous-period overlay on the revenue chart, a delta summary on every KPI card, and the ability to hover any point to see the exact payments behind it. Add chart export (PNG/CSV of the rendered series).
-- **Cross-feature wiring:** pull the same identity/auth-hint set at login into a personalized greeting and recognized-returning-visitor treatment; wire revenue numbers to the monetization surfaces (`/dashboard/monetize`); wire the agent directory to the agent editor and to `/dashboard/analytics`; feed the live-event drawer from the real-time alert/automation engine if present; let "Top Agent" on analytics open that agent's profile and its $THREE-linked monetization.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/11_02_dashboard.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/11-account-dashboard.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/11_03_settings.md b/prompts/feature-innovation/11_03_settings.md
deleted file mode 100644
index 993e9a00f..000000000
--- a/prompts/feature-innovation/11_03_settings.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 🚀 Innovation Brief — Settings (account control & app preferences)
-
-> **Task file:** `prompts/feature-innovation/11_03_settings.md`
-> **Surface:** `/settings` (identity / security / connected accounts / danger zone) and `/dashboard/settings` (app & dashboard preferences)
-> **Primary source:** `public/settings/index.html`, `src/dashboard-next/pages/settings.js`, `pages/dashboard-next/settings.html`, `src/dashboard-next/shell.js`, `src/dashboard-next/api.js`
-> **Atlas reference:** `docs/ux-flows/11-account-dashboard.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is an account holder who wants to **control their identity, secure their account, manage connections, and tune the product to their taste** — and feel completely safe doing it. three.ws has **two distinct settings surfaces** by design: `/settings` is the identity/security hub (profile, account/email, privacy, sessions, connected accounts like GitHub/X, danger-zone deletion), and `/dashboard/settings` is the app-preferences surface (theme, active sessions, notifications, default payment network, storage/LLM usage meters, preferences, data export). Neither redirects to the other; they overlap only on the concept of "sessions," each with its own UI and revoke calls.
-
-This feature exists to make account control **clear, safe, and confidence-inspiring** — and to **resolve the two-surface overlap** so users never wonder "which settings page do I need?" "Gamechanging" means: high-stakes actions (sign out everywhere, delete account, revoke a session) feel safe and reversible-where-possible with honest consequence copy; every preference change is instant and obviously persisted; security state (verified email, active sessions, connected accounts) reads like a trust dashboard; and the two surfaces become one coherent mental model. Match the bar set by Stripe, Linear, Vercel, and GitHub settings — surfaces people trust with their most sensitive actions.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world (GitHub settings + security log, Stripe account settings, Linear preferences, Vercel team settings, 1Password/Apple account-security surfaces). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user. The bar: a security-conscious user lands on settings and immediately understands their account's posture, can act on any risk in one tap, and never fears clicking the wrong button.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/settings` → `public/settings/index.html` (standalone page, inline module script). `/dashboard/settings` → `pages/dashboard-next/settings.html` → `src/dashboard-next/pages/settings.js` (uses `shell.js` + `api.js`). They are **intentionally separate** — neither redirects to the other. `/dashboard/sessions`, `/dashboard/voice`, `/dashboard/storage` and several legacy routes 301 to `/dashboard/settings`.
-- **Source:** `/settings` is fully inline in `public/settings/index.html` with hash-routed tabs (`#profile`, `#account`, `#privacy`, `#sessions`, `#connected-accounts`, `#danger`); gated by `loadUser()` → `GET /api/auth/me` (no user / 401 → `/login?next=/settings`). `/dashboard/settings` is gated by `requireUser()` (401 → `/login?return=…`).
-- **Current flow:**
- - `/settings` (3 required +5 optional): `GET /api/auth/me` → tabbed UI (default `#profile`). **Profile:** display name (max 80) + username (3–30, pattern-validated, live profile-URL preview) → `PATCH /api/auth/profile` → "Saved!" (4s). **Account:** read-only email with Verified/Unverified badge (`user.email_verified`), password "Reset via email ↗" → `/forgot-password`, connected-wallets count from `GET /api/auth/wallets` (manage at `/dashboard/account`), plan display (→ `/dashboard#billing`), **Sign out everywhere** → `POST /api/auth/logout-everywhere` → clear localStorage → `/login`. **Privacy:** default avatar visibility (private/unlisted/public) → `localStorage['3dagent:default-vis']` (local only) → "Saved preference." **Sessions:** `GET /api/auth/sessions` → "Revoke" `DELETE /api/auth/sessions/{id}`; "Revoke all other" `DELETE /api/auth/sessions` → reload. **Connected Accounts:** GitHub `GET /api/auth/github/status` + connect `/api/auth/github/connect?agent_id=…` + seed `POST /api/agents/{id}/memory-seed`; X `GET /api/agents/{id}/memory/seed/x` + connect `/api/auth/x/connect?agent_id=…` + seed `POST /api/agents/{id}/memory/seed/x`; supports `?agent_id=` prefill. **Danger Zone:** type "delete my account" to enable → **Permanently delete** → `DELETE /api/auth/me` → clear localStorage → `/?deleted=1`.
- - `/dashboard/settings` (3 required +6 optional): `mountShell()` → `requireUser()` → 4 skeletons → parallel `GET /api/auth/sessions`, `GET /api/notifications?limit=20`, `GET /api/billing/summary` (storage), `GET /api/usage/summary` (LLM usage) + dashboard prefs → sections: Appearance/theme, Active sessions, Notifications, Default payment network, Storage usage, LLM usage, Vanity wallet tools, Preferences, Data export, About. **Theme:** Dark/Light/Auto → `localStorage['twx_theme']` (+ `window.threeTheme.set`) → "Theme applied" (no API). **Sessions:** "Revoke" `DELETE /api/auth/sessions/{id}`; "Revoke all other" `POST /api/auth/sessions/revoke-others`. **Notifications:** "Mark all read" `POST /api/notifications/read-all`. **Default network:** Base/Solana/Polygon → `localStorage['twx_default_network']` + best-effort `PATCH /api/dashboard/prefs` `{prefs:{default_network}}`. **Preferences:** email notifications / show tips / compact sidebar → **Save preferences** `PATCH /api/dashboard/prefs`. **Data export:** Agents/Avatars/All → `GET /api/agents`, `GET /api/avatars?limit=100`, `GET /api/widgets` → JSON blob download.
-- **What works today:** Both surfaces fully boot and gate correctly. Profile edit with live URL preview, email verified badge, sign-out-everywhere, session listing + per-session and bulk revoke (on *both* surfaces, with different endpoints — `/settings` uses `DELETE /api/auth/sessions`, `/dashboard/settings` uses `POST /api/auth/sessions/revoke-others`), GitHub/X connect + memory seeding, type-to-confirm account deletion, theme switching, notifications mark-all-read, default-network preference, preferences save, JSON data export, read-only storage/LLM meters. Inline `.ok`/`.err` messaging and toasts.
-- **Real APIs / dependencies already wired:** `GET /api/auth/me`, `PATCH /api/auth/profile`, `GET /api/auth/wallets`, `POST /api/auth/logout-everywhere`, `GET /api/auth/sessions`, `DELETE /api/auth/sessions/{id}`, `DELETE /api/auth/sessions`, `POST /api/auth/sessions/revoke-others`, `GET /api/auth/github/status`, `/api/auth/github/connect`, `POST /api/agents/{id}/memory-seed`, `GET`/`POST /api/agents/{id}/memory/seed/x`, `/api/auth/x/connect`, `DELETE /api/auth/me`, `GET /api/notifications`, `POST /api/notifications/read-all`, `GET /api/billing/summary`, `GET /api/usage/summary`, `PATCH /api/dashboard/prefs`, `GET /api/agents`, `GET /api/avatars`, `GET /api/widgets`.
-- **Where it's mediocre, thin, or unfinished:** **The two-surface overlap is the core problem** — "sessions" exists on both pages with *different endpoints and different UI*, and a user has no idea which "Settings" a nav link will take them to. There's no cross-link between the two surfaces, no shared header that says "you're in Account vs App settings." Privacy default-visibility and theme are localStorage-only with no real persistence or cross-device sync. There's no security overview/posture summary (e.g. "email unverified, 3 active sessions, 1 connected account") — the security-critical info is scattered across tabs. Session rows are thin (device/IP/date) with no "this is your current session" marker, no suspicious-session highlighting, no last-active sort. The danger zone is correct but cold — no export-before-delete prompt, no clear list of what gets deleted. Connected Accounts is agent-scoped and confusing outside an agent context. The two pages duplicate session logic that should be one component.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Resolve the two-surface overlap with one clear model.** Establish an explicit, shared mental split: `/settings` = "Account & Security" (who you are, how you sign in, what's connected, deletion); `/dashboard/settings` = "App Preferences" (how the product looks and behaves). Add a consistent header/sub-nav on both that names the surface and cross-links to the other ("Looking for theme & notifications? → App Preferences"). Unify the duplicated session logic into a single shared component used by both, with one canonical revoke behavior.
-- **A security posture panel.** Lead `/settings` with a computed at-a-glance security summary from real state: email verified?, active session count + locations, connected accounts, last password reset, primary wallet set. Each item is a one-tap action to improve posture (verify email, revoke sessions, set primary wallet). Make account security legible the way GitHub's security log is.
-- **Session intelligence.** Mark the current session ("This device"), sort by last-active, flag sessions from new locations/devices, and make "revoke all other" a confident one-tap with honest consequence copy. Show real device/IP/last-active from the sessions API.
-- **Safe-by-design danger zone.** Before deletion, offer a one-click "export all my data first" (reuse the existing `/api/agents` + `/api/avatars` + `/api/widgets` export), show an itemized list of exactly what will be permanently removed (agents, avatars, revenue history, wallets), and keep the type-to-confirm gate. Make irreversible actions feel deliberate, never accidental.
-- **Real preference persistence + cross-device sync.** Move theme and default-visibility from localStorage-only to best-effort server prefs (`PATCH /api/dashboard/prefs`) with local-first optimistic UX, so settings follow the user across devices. Keep the instant local apply; sync underneath.
-- **Cross-feature wiring:** link the security panel's "verify email" to the real verification path; link connected-accounts seeding to the agent memory surfaces it actually feeds; link default payment network to the monetization/checkout surfaces that consume it; link "manage wallets" to `/dashboard/account` and "billing/plan" to the dashboard billing surface; ensure sign-out-everywhere and account deletion clear the same `localStorage['3dagent:auth-hint']` that login set, so chrome across the platform reflects the new state immediately.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/11_03_settings.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/11-account-dashboard.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/12_01_home.md b/prompts/feature-innovation/12_01_home.md
deleted file mode 100644
index 2a5fec79f..000000000
--- a/prompts/feature-innovation/12_01_home.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 🚀 Innovation Brief — Home / The Front Door
-
-> **Task file:** `prompts/feature-innovation/12_01_home.md`
-> **Surface:** `/` (root route, served from `pages/home.html`)
-> **Primary source:** `pages/home.html` (6921 lines) + `src/home-forge.js`, `src/home-pose.js`, `src/home-act2-viewer.js`, `src/home-live-token.js` (and lazy mounts: `src/avatar-drop.js`, `src/walk-embed-preview.js`, `src/pump/homepage-launcher.js`, `src/api-playground.js`, `src/forge-embed-snippets.js`, `src/erc8004/qr.js`)
-> **Atlas reference:** `docs/ux-flows/12-home-and-content.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The home page is three.ws's single most important surface — the front door every visitor, investor, $THREE holder, developer, and crawler hits first. The end user is a first-time visitor who has never heard "the 3D agent layer of the internet" and needs to *understand and believe it in under ten seconds*. They are trying to answer one question: "Is this real, and is it for me?" The page exists to answer that question not with copy, but with a live, hands-on proof of the entire platform — a visitor should *touch* the product (forge a model, pose a rig, see a live token, watch an agent dance) before they ever click away to a product route.
-
-"Gamechanging" here means the home page stops being a brochure with widgets bolted on and becomes **the single best interactive demo of what three.ws is** — a guided, performant, screenshot-worthy journey where the hero is alive, the proof is real (real `/api/forge`, real Pump.fun data, real `/api/explore`), and every scroll reveals a capability the visitor can immediately use. This is the only deeply interactive content page on the platform; treat it as a flagship product surface, not a landing page.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world — the Linear marketing page (motion + clarity), the Stripe homepage (live, credible product proof), the Vercel homepage (developer trust + speed), the Figma/Rive homepages (interactive canvas as hero), and Apple product pages (scroll-driven storytelling). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new: a home page where the visitor builds something real in the hero before they scroll, and leaves having *used* the platform, not read about it.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/` → `/home.html` (per `vercel.json`). No auth, fully public.
-- **Source:** `pages/home.html` (markup + inline modules); widget modules `src/home-forge.js`, `src/home-pose.js`, `src/home-act2-viewer.js`, `src/home-live-token.js`; lazy mounts listed above; web-component runtime `<script src="https://three.ws/agent-3d/latest/agent-3d.js">` + `/embed.js`; chrome via `/nav.js`, `/footer.js`.
-- **Current flow:** ~3 required steps (land → optional browse → click a CTA into a product route), **plus** ~40 distinct CTAs and ~13 self-contained interactive widgets, each an optional sub-flow. The landing flow is browse-and-branch, not linear.
-- **What works today:**
- - Hero: live `<agent-3d>` on stage + 7 animation chips (🎲 Random, 👋 Wave, 💃 Dance, 🤸 Capoeira, 🦘 Jump, 🧟 Thriller, 🙏 Pray) with a trigger counter; eyebrow link → `/forge`.
- - Below-the-fold widgets lazy-load on `IntersectionObserver` to keep initial payload light.
- - **Mini Forge** (`#home-forge`, `src/home-forge.js`): real text-to-3D — typewriter prompt suggestions (Tab to accept), example chips, `POST /api/forge` (tier `standard`, TRELLIS lane, free, auto-degrades to NVIDIA), poll `GET /api/forge?job=…`, live `<model-viewer>` result, localStorage history (`forge:home:history`), result toolbar (auto-rotate, variation, Scene Studio, copy share link, GLB download, clear), embed sheet, honest elapsed timer, cancel/retry wired.
- - **Playground** (`#embed`): editable embed-code textarea (HTML/React/Vue tabs), mode/background chips, feature toggles, live preview, 7 test chips, copy button.
- - **Pose Studio** (`#home-pose`), **AR** (`#home-ar`, `<model-viewer>` + lazy QR), **Live token card** (`#hlt-card`, real Pump.fun data + homepage launcher).
- - Live API-fed sections: **Oracle feed** `GET /api/oracle/feed?network=mainnet&limit=6&min_score=56`; **Community Forge gallery** `GET /api/forge-gallery?scope=community&limit=18`; **Showcase 3D grid** `GET /api/explore`.
-- **Real APIs / dependencies already wired:** `POST/GET /api/forge`, `GET /api/forge-gallery`, `GET /api/explore`, `GET /api/oracle/feed`; Pump.fun feed (live token card); `agent-3d` runtime + Google `model-viewer` CDN (lazy); Solana RPC indirectly via the launcher.
-- **Where it's mediocre, thin, or unfinished:**
- - **One giant 6921-line HTML file.** ~23 sections stacked vertically with ~40 CTAs and ~13 widgets — generous, but the *narrative* is a list, not a story. There is no spine guiding a first-timer from "what is this" → "watch it" → "build it" → "ship it." Visitors must self-navigate a wall of demos.
- - **The hero proves nothing the visitor did.** The agent dances on its own; the visitor watches. The first real *creation* (Mini Forge) is below the fold. The strongest proof (a real forged model in seconds) is buried where many never reach it.
- - **No memory / personalization.** A returning visitor who already forged a model on the home page sees the same cold start; the localStorage history exists but doesn't shape the experience.
- - **Widgets are isolated islands.** The Mini-Forge result, Pose rig, AR viewer, and Showcase grid don't share a model — forge something and you can't immediately pose it, AR-view it, or embed it without leaving. The cross-widget wiring the platform brags about is missing on its own home page.
- - **No scroll-progress / section navigation / share affordances.** With ~23 sections there's no minimap, no "jump to capability," no way to deep-link or screenshot a specific demo.
- - **Performance risk:** many live `<agent-3d>`/`<model-viewer>` instances; verify lazy-mount discipline and that off-screen canvases pause.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **"Forge in the hero" — the visitor creates in the first 10 seconds.** Move (or mirror) a single-line prompt bar directly into the hero, pre-filled with a rotating real suggestion. Hitting enter forges a real model via `/api/forge` *on the hero stage itself*, replacing the canned dancer with **the visitor's own creation**. Nothing converts like watching your own words become a 3D agent you can spin, before you've scrolled once.
-- **One model, every capability — a "creation passport" that follows the scroll.** When the visitor forges (hero or Mini-Forge), persist that model id and feed it into every downstream widget: the Pose rig poses *their* model, the AR card AR-views *their* model, the Playground embed snippet embeds *their* model, the Scene Studio CTA opens *their* model. The whole page becomes a personalized tour of "here's everything you can now do with the thing you just made." This is the ≥1 cross-feature wiring idea — and it makes the platform's "everything is linked" promise true on the front door.
-- **Scroll-driven narrative spine + a capability minimap.** Replace the flat section stack with an intentional act structure (Understand → Watch → Build → Monetize → Ship), a fixed scroll-progress rail, and a keyboard-navigable section minimap (press a number / `j`-`k` to jump). Deep-linkable section hashes so any demo is shareable.
-- **Live platform pulse in the hero.** A small, real, animated stat strip fed by existing endpoints (`/api/explore` count, `/api/forge-gallery` recent creations, `/api/oracle/feed` top conviction, live $THREE from the token card) — "X agents built today," "newest community forge," updating in real time. Credible, true social proof, no fake numbers.
-- **Returning-visitor warm start.** If `forge:home:history` (or the creation passport) has entries, the hero greets the visitor with their last creation already on stage and a "pick up where you left off →" path — first impression for newcomers, continuation for returners.
-- **"Watch the platform build itself" cinematic moment.** A reduced-motion-respecting, scroll-triggered sequence where a prompt types, the model forges, gets posed, drops into AR, then renders as an embed snippet — one continuous real artifact flowing through the product, proving the whole pipeline in one screen-height.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: the home page is where Forge, Pose, AR, Scene Studio, Embed/Playground, Oracle, Launches, and Discover all already appear — wire them so a single creation flows between them. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/12_01_home.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/12-home-and-content.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/12_02_docs-experience.md b/prompts/feature-innovation/12_02_docs-experience.md
deleted file mode 100644
index 28187316f..000000000
--- a/prompts/feature-innovation/12_02_docs-experience.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 🚀 Innovation Brief — Developer Docs Experience
-
-> **Task file:** `prompts/feature-innovation/12_02_docs-experience.md`
-> **Surface:** `/docs` (SPA + all `/docs/<slug>`), `/docs/widgets` (standalone), API reference (`/docs/api-reference`, `/openapi.json`)
-> **Primary source:** `docs/index.html` (docs SPA shell), `docs/*.md` + `docs/tutorials/*.md` (content), `public/docs-widgets.html` (standalone widgets page), `api/openapi-json.js` (OpenAPI spec)
-> **Atlas reference:** `docs/ux-flows/12-home-and-content.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a developer evaluating three.ws: they want to embed a 3D agent, hit the API, wire up the SDK or MCP server, or understand ERC-8004 — and they want to do it *now*, ideally without leaving the docs. Docs exist to turn "interesting" into "integrated" with the least friction physically possible. Today's docs are a clean SPA that fetches markdown and renders it — competent, but passive: the developer reads, copies, and leaves to go try things elsewhere.
-
-"Gamechanging" here means docs that are **interactive, runnable, and AI-native** — where the developer can run the embed code inline and see a live `<agent-3d>`, fire a real API request against `/openapi.json` from the page and inspect the response, copy a working snippet pre-filled with their own key, and hand the whole page to Claude with one click. The bar is "the best developer docs in web3 and 3D, full stop" — Stripe-grade clarity with live-playground depth, plus an AI-native layer no docs site has nailed yet. The existing "Open in Claude" button is the seed of something the rest of the industry hasn't built; make it the centerpiece.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world — Stripe API docs (the gold standard for clarity + try-it), Twilio/Supabase (runnable examples), Vercel/Cloudflare docs (speed + structure), and Mintlify/Scalar/Bruno (modern interactive API reference + AI search). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new: docs where reading and *doing* are the same action, and where an AI agent is a first-class reader, not an afterthought.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** `/docs`, `/docs/`, and `/docs/<slug>` all served by the SPA shell (`vercel.json` `/docs → /docs/index.html`, `/docs/([^./]+) → /docs/index.html`); slug becomes a hash route. **Exception:** `/docs/widgets` → `public/docs-widgets.html` (mapped *before* the generic `/docs/*` rule). Machine endpoint: `/openapi.json` → `api/openapi-json.js`.
-- **Source:** SPA shell `docs/index.html`; content markdown in `docs/*.md` and `docs/tutorials/*.md`; standalone `public/docs-widgets.html`. Marked + highlight.js via CDN.
-- **Current flow:** SPA = 1 required step (land → read) + 3 optional (sidebar search, copy-page, prev/next pager). `currentPath()` reads `location.hash` (or `/docs/<slug>`), defaulting to `start-here`. ~60+ slugs share this one SPA.
-- **What works today:**
- - Sidebar with 9 sections (NAV array) + live **search** input that filters the nav by label.
- - Click a sidebar link → hash route → `GET /docs/<slug>.md` rendered: headings get anchor IDs, internal `.md` links rewritten to hash routes, code highlighted.
- - Per-page tools: **Copy page** (markdown to clipboard), **View as Markdown** (`/docs/<slug>.md` in a new tab), **Open in Claude** (`claude.ai/new?q=…`).
- - Prev/Next pager; mobile sidebar FAB + overlay.
- - `/docs/widgets` standalone: TOC anchor nav (`#quick-start`, `#widget-types`, `#urls`, `#embedding`, `#postmessage-api`, `#og-oembed`, `#csp-cors`, `#privacy`, `#faq`), code blocks (iframe/script/oEmbed/postMessage), reference tables, footer `<model-viewer>` demo (`/animations/robotexpressive.glb`).
-- **Real APIs / dependencies already wired:** `GET /docs/<slug>.md` per page; marked + highlight.js CDNs; `/openapi.json` exists as a machine endpoint (not yet a rendered reference); `agent-3d` runtime + `model-viewer` available platform-wide.
-- **Where it's mediocre, thin, or unfinished:**
- - **Docs are read-only.** Every code block is text. A developer can copy an embed snippet but cannot *run* it on the page — yet `<agent-3d>` and `model-viewer` are right there, used all over the platform. The single highest-leverage gap.
- - **No real API reference UI.** `/openapi.json` is a raw spec served to machines; `/docs/api-reference` is presumably a markdown page. There is no Stripe/Scalar-style three-pane, try-it, language-tabbed, request/response-explorer reference generated from the spec.
- - **"Open in Claude" is a single-page link.** It ships one page's text. It could ship structured, multi-page, task-scoped context ("set up the SDK," "embed + monetize") and become the defining AI-native docs feature on the web.
- - **Search is label-only.** It filters the sidebar nav by title — it does not search *content*, headings, or code. A developer searching "postMessage" or "x402" against the body gets nothing.
- - **No copy-code per block, no language tabs in the SPA** (the tutorial template has per-`<pre>` copy buttons; the docs SPA reportedly only has copy-*page*). No in-page TOC/scroll-spy for long pages.
- - **Two divergent doc systems.** The SPA and the standalone `/docs/widgets` page look and behave differently — inconsistent chrome, search, and AI affordances. The split is a seam users feel.
- - **No "last updated," versioning, or feedback ("was this helpful?")** signals.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **Runnable code blocks.** Any fenced block tagged as an embed/web-component example gets a "Run" button that mounts a live `<agent-3d>` / `<model-viewer>` right under the code, sandboxed and editable — the developer edits attributes (animation, nameplate, background) and watches the live preview update. The embed docs become a mini-Playground. This is the read-and-do-are-the-same-action core.
-- **A real, spec-driven API Reference.** Generate a three-pane interactive reference from `/openapi.json`: endpoint list, schema-typed parameters, language-tabbed snippets (cURL / JS / Python), and a **"Try it"** panel that fires the real request and renders the live response — pre-filling the developer's API key if present (link to `/dashboard/api` to get one). Stripe/Scalar-grade, generated from the source of truth so it never drifts.
-- **AI-native docs, done right (the flagship).** Upgrade "Open in Claude" from one-page-text to **task-scoped context bundles**: a per-page "Ask Claude about this" plus curated "Start a build with Claude" bundles that package the right multiple pages (e.g. SDK + embed + monetize) into the `claude.ai/new?q=…` payload. Add an in-docs AI search/answer box grounded in the doc corpus (the platform already ships `/llms.txt`, `/llms-full.txt`, and worker LLM proxies — use them, no mocks). Make three.ws the docs site AI agents *prefer* to read.
-- **Full-text content search with `⌘K`.** Replace label-only filtering with a real command-palette search across headings, body, and code across all slugs — keyboard-first, fuzzy, deep-linking to the matching heading anchor.
-- **Per-block copy + language tabs + in-page TOC/scroll-spy** in the SPA, matching the tutorial template's polish so the two systems converge into one consistent experience. Fold `/docs/widgets` into (or visually unify it with) the SPA chrome.
-- **"Was this helpful?" + last-updated + cross-links.** Lightweight feedback, freshness signals, and contextual "next steps" that wire docs into the rest of the platform: an embed doc links to the live Playground on `/`, the SDK doc to `/dashboard/api`, the MCP doc to the registry, the listings doc to `/launches`.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: the docs are where developers decide to adopt — wire runnable examples to the real Playground (home `#embed`), the API reference to `/dashboard/api` key issuance, and the AI bundles to the actual worker LLM proxies. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/12_02_docs-experience.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/12-home-and-content.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/12_03_blog-tutorials-experience.md b/prompts/feature-innovation/12_03_blog-tutorials-experience.md
deleted file mode 100644
index 2db8cc0b8..000000000
--- a/prompts/feature-innovation/12_03_blog-tutorials-experience.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 🚀 Innovation Brief — Blog & Tutorials Experience
-
-> **Task file:** `prompts/feature-innovation/12_03_blog-tutorials-experience.md`
-> **Surface:** `/blog` (index + 26 posts), `/tutorials` (index + articles), newsletter capture
-> **Primary source:** `blog/index.html`, `blog/<slug>.html` (26 shared-template posts), `pages/tutorials.html`, `pages/tutorial.html`, `public/tutorials-manifest.js`, `docs/tutorials/<slug>.md`, `POST /api/newsletter/subscribe`
-> **Atlas reference:** `docs/ux-flows/12-home-and-content.md` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-The end user is a reader who arrived from search, social, or the changelog — a curious developer, a $THREE holder, or a prospective builder — who wants to learn something (how to embed 3D on-chain, how to prompt for 3D, what the AWS/IBM/Google partnerships mean) and, ideally, to *act* on it. Blog and tutorials exist to turn readers into builders and subscribers: they are the platform's top-of-funnel content engine. Today they are honest but static — the blog index is a hardcoded list of 26 cards with no search or filter, posts are read-only templates with no related content or in-body conversion, and tutorials are well-built articles whose "steps" are prose, not runnable.
-
-"Gamechanging" here means content that is **discoverable, delightful to read, and quietly relentless at conversion** — a fast search across all posts and tutorials, related-content that keeps readers moving, *runnable* tutorial steps (a tutorial about prompting for 3D should let you forge a model right there via real `/api/forge`), and newsletter capture that feels earned, not bolted on. The bar is the best technical content experience in web3/3D — Stripe's blog polish, Josh Comeau / Smashing-grade interactive tutorials, and the discovery of a great docs/blog hybrid.
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world — the Stripe and Vercel blogs (typography, motion, share affordances), Josh Comeau / Smashing Magazine / web.dev (interactive, runnable tutorials), and Linear's changelog/blog (clarity + momentum). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new: tutorials where the reader builds a real 3D agent inside the article, and a content layer where every post is one keystroke from the next thing worth reading and one scroll from subscribing.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):**
- - `/blog` → `blog/index.html`; `/blog/<slug>` → `blog/<slug>.html` (`vercel.json` `/blog/([a-z0-9-]+) → /blog/$1.html`).
- - `/tutorials` → `pages/tutorials.html`; `/tutorials/<slug>` → `pages/tutorial.html` (`vercel.json` `/tutorials/([a-z0-9-]+) → /tutorial.html`).
-- **Source:**
- - **Blog index:** `blog/index.html` — static, hardcoded list of 26 post cards (title, date, informational tag); RSS `/rss/announcements.xml`; X/GitHub links.
- - **Blog posts:** 26 routable static HTML files on **one shared template** (`.post-wrap`, `.post-meta`, `.post-tag`, shared nav/footer). Slugs include `text-to-3d-is-live`, `how-to-embed-3d-onchain-agents`, `see-your-3d-in-ar`, `agent-3d-web-component`, plus partnership announcements (AWS, IBM, Google Cloud, Alibaba, BNB Chain, CoinMarketCap, Anthropic MCP registry, etc.).
- - **Tutorials index:** `pages/tutorials.html` — client-rendered from `public/tutorials-manifest.js` (`window.TUTORIALS`, 23 entries, 3 tiers: Easy 8 / Middle 10 / Advanced 5); hero jump-links per tier; cards link to `/tutorials/<slug>`.
- - **Tutorial article:** `pages/tutorial.html` — slug from URL regex, metadata via `window.tutorialBySlug(slug)`, content `GET /docs/tutorials/<slug>.md` parsed with marked + highlight.js; per-`<pre>` **copy code** buttons; sticky TOC + scroll-spy; heading anchors; prev/next pager; back-to-top + top progress bar; manifest-driven hero CTA.
-- **Current flow:** Blog index = 1 required step (click a post) + optional RSS/social. Blog post = 1 step (read). Tutorials index = 4 steps (jump-links, browse, open, bottom CTA). Tutorial article = 1 required (read) + 4 optional (CTA, copy, TOC, pager).
-- **What works today:** Tutorial articles are genuinely solid (TOC scroll-spy, copy-code, pager, progress bar, error state "Page not found."). The newsletter form (`data-newsletter-form` → `POST /api/newsletter/subscribe`, aria-live result) is already wired and used on other pages (features, events).
-- **Real APIs / dependencies already wired:** `GET /docs/tutorials/<slug>.md` (tutorial body); `POST /api/newsletter/subscribe` (newsletter, used elsewhere); marked + highlight.js CDNs; `agent-3d` + `model-viewer` available platform-wide; `POST/GET /api/forge`, `GET /api/forge-gallery`, `GET /api/explore` available for embedding live demos.
-- **Where it's mediocre, thin, or unfinished:**
- - **Blog index has no search, no filter, no pagination.** 26 cards, hardcoded; tags are display-only, not filterable. Discovery is "scroll and hope."
- - **Blog posts are dead ends.** No related posts, no "next read," no share buttons, no TOC, no newsletter capture *in the post*, no embedded 3D demos — even posts literally about embedding 3D / AR / the web component show no live agent. Copy-button CSS exists in the template but sampled posts have no code blocks. A reader finishes and leaves.
- - **Two unrelated content systems.** Blog (static HTML files) and tutorials (manifest + markdown SPA-ish template) don't share search, related-content, chrome, or discovery. They should feel like one content library.
- - **Tutorial steps are prose, not runnable.** A tutorial on prompting for 3D or the generate-3D API explains the call but never lets the reader *run* it inline — despite `/api/forge` being free and already wired into the home Mini-Forge.
- - **No cross-surface wiring.** Blog/tutorials don't surface in each other, don't link to the matching docs page, and don't feed the changelog reader or the home content strip. Two unrouted `.md` files exist (`blog/decision-optimization-3d-ai-crypto.md`, `blog/internets-second-species.md`) as source-only material, not live pages.
- - **Newsletter capture is absent from the two highest-intent surfaces** (blog post end, tutorial completion) where a reader has just gotten value.
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- **One unified content library with instant search + filters.** Replace the hardcoded blog index (and unify with the tutorials index) with a fast client-side `⌘K`/typeahead search and tag/tier/type filters across all 26 posts + 23 tutorials. Drive it from a generated manifest (extend the tutorials-manifest pattern; generate a posts manifest via the existing `build:pages` pipeline so it never drifts from the HTML files). Keyboard-first, deep-linkable, with designed empty/no-results states.
-- **Runnable tutorial steps — the reader builds in the article.** For tutorials about prompting/forging/embedding, embed a real, sandboxed mini-widget inline: a prompt bar that calls the real free `/api/forge` and renders the result with `<model-viewer>`, or a live `<agent-3d>` whose attributes update as the article's code is edited. The reader *completes* the tutorial by doing it, not reading it. This is the read-and-do-are-the-same-action core. (This is also the ≥1 cross-feature wiring idea: tutorials drive the real Forge/embed pipeline.)
-- **Living blog posts.** Give the shared post template a designed reading layer: scroll progress, in-body TOC for long posts, share buttons (X, copy-link, "Open in Claude" for the post text), an author/date/reading-time meta strip, and — for posts about embed/AR/web-component — a live `<agent-3d>`/`<model-viewer>` demo so the post *shows* what it describes.
-- **Related content + "next read" everywhere.** End every post and tutorial with algorithmically-related items (shared tags/topics) spanning *both* blog and tutorials and the matching docs page (`/docs/embedding`, `/docs/api-reference`, etc.). Keep the reader in motion across the whole content graph.
-- **Earned newsletter capture at the moment of value.** Add the already-wired `data/newsletter-form` → `POST /api/newsletter/subscribe` block to the end of every post and to tutorial completion, with copy tuned to what they just read ("Get the next 3D-agent build guide"). Designed success/error/duplicate states; respect prior subscribers.
-- **Activate the two orphaned `.md` files** (`decision-optimization-3d-ai-crypto`, `internets-second-species`) by routing and rendering them through a markdown-driven post path so good source material becomes live, discoverable content — and consider migrating the blog from 26 hand-maintained HTML files toward the markdown+template model the tutorials already use, eliminating the divergence.
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: blog + tutorials are the funnel into Forge, the SDK, and $THREE — wire runnable steps to real `/api/forge`, related-content into docs, and newsletter capture at peak intent. Surface fresh content on the home content strip and the changelog. **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/12_03_blog-tutorials-experience.md`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/12-home-and-content.md`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/feature-innovation/README.md b/prompts/feature-innovation/README.md
deleted file mode 100644
index 31fd4be27..000000000
--- a/prompts/feature-innovation/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Feature Innovation Briefs
-
-This directory holds **one self-contained task brief per three.ws feature**. Each brief is designed to be handed to a single agent chat with a mandate: take that feature from "works" to **genuinely gamechanging** — invented, not copied — while obeying every hard rule in `CLAUDE.md` (real APIs, no mocks, 100% wiring, $THREE only).
-
-## How to use
-
-1. Pick a brief file (`NN_*.md`). Open a fresh agent chat.
-2. Give the agent that file as its task (e.g. "Execute `prompts/feature-innovation/05_forge-text-to-3d.md` in full.").
-3. The agent reads the brief + the referenced source, builds the world-class version, runs the self-improvement loop, and on completion **deletes its own brief file**.
-4. Run as many chats in parallel as you like — every brief stages explicit paths only and re-checks `git status` before committing, so they coexist on `main`.
-
-A brief disappearing from this directory means that feature's innovation pass is **done**.
-
-## Conventions
-
-- `_TEMPLATE.md` — the shared structure every brief follows. Not a task; do not delete.
-- `NN_<slug>.md` — a feature task. `NN` is `<cluster><index>`; clusters mirror `docs/ux-flows/`.
-- Each brief references its UX atlas section in `docs/ux-flows/` for verified current-state ground truth.
-
-## Index
-
-The full feature inventory and current UX (step-by-step, traced from source) lives in `docs/ux-flows/`. Each brief below maps to one or more routes documented there.
-
-_(Index of generated briefs is appended below.)_
diff --git a/prompts/feature-innovation/_TEMPLATE.md b/prompts/feature-innovation/_TEMPLATE.md
deleted file mode 100644
index 9aa0372b7..000000000
--- a/prompts/feature-innovation/_TEMPLATE.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# 🚀 Innovation Brief — {FEATURE NAME}
-
-> **Task file:** `prompts/feature-innovation/{FILENAME}`
-> **Surface:** `{ROUTE(S)}`
-> **Primary source:** `{SOURCE FILES}`
-> **Atlas reference:** `docs/ux-flows/{CLUSTER ATLAS FILE}` (current UX, traced step-by-step)
-
----
-
-## 0. How to use this brief
-
-You are **one agent in a fleet**. This one feature is yours to make world-class. Read this entire brief, then read the referenced source so you are changing reality and not a guess. Execute completely. When you are genuinely done (§6–7), **delete this task file**.
-
-You are not a task-completing machine. You are a senior engineer and product thinker who happens to write code. Act like it.
-
-## 1. Mission
-
-{1–2 paragraphs. Who is the end user and what are they trying to accomplish? What does this feature exist for? What does "gamechanging" mean *specifically* for this surface? Demand genuine invention — something users can't get elsewhere — not a clone of a competitor.}
-
-## 2. The bar
-
-Build the version that makes someone screenshot it and share it. Benchmark against the best in the world ({relevant comparators}). **If your result merely matches what already exists, you have failed this brief.** Invent something true and new that creates real, obvious value for the user.
-
-## 3. Current state — ground truth (verify in source before you touch anything)
-
-- **Route(s):** {routes}
-- **Source:** {files}
-- **Current flow:** {N} steps — {one-line summary of today's path}
-- **What works today:** {bullet}
-- **Real APIs / dependencies already wired:** {endpoints, services, on-chain}
-- **Where it's mediocre, thin, or unfinished:** {honest assessment — this is where the value is}
-
-## 4. Innovation directions (seeds — you are expected to go beyond them)
-
-- {bold, specific idea 1}
-- {bold, specific idea 2}
-- {bold, specific idea 3}
-
-> These are starting points, not a checklist. The best idea may not be listed — find it. Think second-order: how does improving this unlock value in adjacent three.ws features? **Wire those connections.** The best platforms feel like everything is linked.
-
-## 5. Hard rules (non-negotiable — from `CLAUDE.md`)
-
-- **Real APIs, real data, real integrations. No mocks, no fake/sample arrays, no placeholders, no `setTimeout` fake-loading or fake progress.** If credentials are missing, find them in `.env` / `.env.example` / `vercel env` — then proceed.
-- **Wire 100%.** Every button works, every link goes somewhere, every reachable state exists. Design *every* state: loading (skeletons over spinners), empty (tell the user what to do next), error (actionable recovery), populated, and overflow (0 / 1 / 1000 items, very long strings, mid-operation network failure, expired session).
-- **No TODO comments, no stubs, no `throw new Error("not implemented")`, no commented-out code.** If you write it, finish it.
-- **No errors without solutions.** Every error has a root cause; every root cause has a fix. Ship failsafes, not lazy propagation.
-- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never name, add, hardcode, link, render, or recommend any other coin anywhere — code, copy, tests, fixtures, commits. The only exceptions are coin-agnostic runtime plumbing (user supplies a mint) and platform launch records rendered at runtime.
-- **Read before you write.** Match the existing patterns, naming, file organization, and the design tokens in `DESIGN-TOKENS.md`. Consistency compounds.
-- **Accessibility + responsive (320 / 768 / 1440) + microinteractions** are part of done, not polish. Semantic HTML, ARIA, keyboard nav, focus rings, sufficient contrast.
-- **Performance by default:** lazy-load heavy modules, debounce input handlers, paginate large lists, animate with `transform`/`opacity`. Ship no jank.
-- **Changelog:** append a holder-readable entry to `data/changelog.json` for any user-visible change, then run `npm run build:pages` to validate.
-- **Concurrent agents share this worktree.** Stage explicit paths only — **never** `git add -A` / `git add .`. Re-check `git status` + `git diff --staged` immediately before any commit. Never commit `api/*.js` esbuild bundles (check `head -1` for `__defProp` / `createRequire`).
-
-## 6. Definition of done
-
-- [ ] Feature is built, wired into navigation, and reachable by a real user.
-- [ ] Exercised in a real browser via `npm run dev`; **no console errors or warnings** from your code.
-- [ ] Network tab shows real API calls succeeding with real data.
-- [ ] Every interactive element has hover / active / focus states; fully keyboard-navigable.
-- [ ] Loading, empty, error, populated, and overflow states all designed and reachable.
-- [ ] Existing tests pass (`npm test`); add tests for new logic you introduce.
-- [ ] `git diff` self-reviewed — every changed line justified.
-- [ ] Changelog updated if the change is user-visible.
-- [ ] You would be proud to demo this to a room of senior engineers.
-
-> Note: do **not** run `npm install` in this codespace (the cache is corrupted and it hangs the box). Use the already-installed dependencies.
-
-## 7. Self-improvement loop (REQUIRED before you finish)
-
-When you think you're done: **STOP.** Re-read §2.
-
-1. Find the single weakest aspect of what you built and make it excellent. Repeat until nothing obvious remains.
-2. Run the self-review protocol: **lazy check** (any shortcut, any half-wire, any hardcoded value where dynamic belongs?), **user check** (first-time user — does it make sense, is it findable, does it feel polished?), **integration check** (connects to the rest of the platform, navigable to/from?), **edge-case check** (0 / 1 / 1000, long names, network failure, expired session), **pride check** (portfolio-worthy? if not, fix what's stopping you).
-3. Update `data/changelog.json` if user-visible.
-4. **Delete this task file** — `prompts/feature-innovation/{FILENAME}`.
-5. Report: what you shipped, what you *invented*, and the single best next idea you'd pursue.
-
----
-
-## Reference shelf
-
-- **This feature's current UX:** `docs/ux-flows/{CLUSTER ATLAS FILE}`
-- **Repo map:** `STRUCTURE.md` · **Operating rules:** `CLAUDE.md` · **Design tokens:** `DESIGN-TOKENS.md`
-- **Credentials / endpoints:** `.env`, `.env.example`
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000); Three.js (glTF/GLB); Vercel functions in `api/`; Cloudflare workers in `workers/`; Solana / agent SDKs in `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`.
diff --git a/prompts/inventions/00-README-inventions.md b/prompts/inventions/00-README-inventions.md
deleted file mode 100644
index 9c22a382c..000000000
--- a/prompts/inventions/00-README-inventions.md
+++ /dev/null
@@ -1,159 +0,0 @@
-# Program: Inventions — things no other platform has
-
-> **Read this file in full before starting any task in this folder.** Every prompt
-> here (`01-*` … `07-*`) assumes the context below. Do not re-derive it.
-
-## The mandate
-
-This is **not** a "build the features competitors have, but nicer" program. This is
-an **invention** program. Every task here must produce something that **does not
-exist anywhere else** — a capability that is only possible because of what three.ws
-uniquely is, and that a user would switch platforms to get.
-
-If you find yourself building a generic wallet/trade/chart that Phantom, Axiom,
-Photon, Bullx, or a CEX already has — **stop**. That is table stakes, covered by the
-sibling wallet program (`prompts/agent-wallets/`). Your job is the thing on top of
-that which no one can copy without our stack.
-
-Hold this bar literally: **would this make a trader screenshot it and say "wait,
-how is this possible?"** If not, raise the bar until it would.
-
-## Our unbeatable, unique combination (this is the source of every invention)
-
-No competitor has all of these in one place. Inventions come from **fusing** them:
-
-1. **Every agent is a 3D avatar with a face, persona, and voice.** Not a row in a
- table — a character. ([avatar-sdk/](../../avatar-sdk),
- [character-studio/](../../character-studio), voice fields on `agent_identities`.)
-2. **Every agent has its own custodial wallet** (Solana + EVM), owned by whoever
- created that instance. ([api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js).)
-3. **Every agent has a verifiable on-chain identity** (ERC-8004) and can hold,
- spend, and be paid. ([contracts/](../../contracts), `erc8004_agent_id`.)
-4. **Agents have a real LLM persona** that can reason in-character (Anthropic via
- worker proxies — see the worker proxy pattern; default to the latest Claude
- models per the platform's `claude-api` reference).
-5. **Real Solana + pump.fun rails** — launches, swaps, holders, bonding curves.
- ([api/_lib/agent-pumpfun.js](../../api/_lib/agent-pumpfun.js).)
-6. **Multiplayer 3D rooms** — agents can share a space.
- ([multiplayer/](../../multiplayer).)
-7. **An agent-to-agent payment + skill protocol** (x402, skill licenses, MCP).
- ([agent-payments-sdk/](../../agent-payments-sdk),
- [mcp-server/](../../mcp-server).)
-8. **Text/photo → 3D generation** via the Meshy integration available to the
- platform (real resource — use it, don't fake it).
-
-A wallet is common. A wallet *that belongs to a 3D character with a verifiable
-trading reputation, a persona that narrates its own alpha, that other users can
-back, that pays other agents autonomously, and that you can mint from a selfie in
-60 seconds* — that is ours alone. Build that.
-
-## The ownership model (already implemented — never violate it)
-
-You own the wallet of the avatar you created. Forking/saving someone else's avatar
-mints a **new** wallet owned by the forker; secrets are never copied; one agent =
-one owner (`agent_identities.user_id`, immutable). Custodial keys are AES-256-GCM
-encrypted, decrypted only at signing, every decrypt audited. Full detail in
-[../agent-wallets/00-README-orchestration.md](../agent-wallets/00-README-orchestration.md).
-Distinguish three viewer roles everywhere: **owner**, **visitor**, **logged-out**.
-
-## Do NOT rebuild the wallet program
-
-The sibling program `prompts/agent-wallets/` already builds: the ubiquitous wallet
-identity chip, the Wallet HUD (deposit/withdraw/limits/custody), the Vanity Studio,
-fork-to-own, and a base sniper/trade co-pilot. **Consume those**, don't duplicate
-them. If your invention needs a wallet surface, import the shared component from
-`src/shared/`. If it needs a base trade action, reuse the co-pilot's. Your value is
-the layer **above** them.
-
-## Hard rules (from CLAUDE.md — non-negotiable)
-
-- **No mocks. No fake data. No placeholders. No sample arrays. No `setTimeout` fake
- progress. No TODOs/stubs/commented-out code.** Every number, every event, every
- trade, every reputation score traces to a real API / real chain / real DB row you
- can see in the Network tab. If there is no data yet, design the real empty state.
-- **The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
- Never name, hardcode, market, or recommend any other token anywhere — code,
- copy, fixtures, commits. Inventions that touch arbitrary launches (radar, vaults,
- economy) operate on **runtime-supplied mints only** (the sanctioned plumbing/
- launch-records exception); never hardcode or promote a specific non-$THREE mint.
- $THREE is the only coin the platform itself features.
-- **Real money, real care.** Anything that moves funds is owner-gated in the UI
- **and** server-side, spend-policy-enforced (`api/_lib/agent-trade-guards.js`),
- CSRF-protected on writes, and fully audited in the custody trail. Re-derive truth
- from chain/DB before claiming an outcome. Never lose or double-spend funds.
-- **Every state designed** (loading=skeleton, empty=actionable, error=recoverable,
- populated, overflow). **Accessibility** (semantic HTML, ARIA, keyboard, focus,
- contrast). **Errors handled at boundaries with real fallbacks.**
-
-## Design system
-
-Use the tokens in [public/tokens.css](../../public/tokens.css) — never hardcode
-hex/px. Monochrome glass on near-black, violet accent for wallet/finance surfaces,
-`--font-mono` for all addresses/amounts. Phi spacing, the four radii, the three
-shadows, the motion tokens. Match the app; invent within the system.
-
-## Real resources you must wire (no fakes)
-
-- Solana RPC + pump.fun feed: [api/_lib/agent-pumpfun.js](../../api/_lib/agent-pumpfun.js).
-- Custodial wallet + signing + balances: [api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js).
-- Spend guards / custody trail: `api/_lib/agent-trade-guards.js`,
- `GET /api/agents/:id/solana/custody`.
-- On-chain identity: [contracts/](../../contracts), `erc8004_agent_id`.
-- LLM persona: Anthropic via the platform's worker proxy (latest Claude models —
- consult the `claude-api` reference; never hardcode keys, never call a model
- directly from the browser).
-- Voice: ElevenLabs fields on `agent_identities` (`voice_provider`, `voice_id`).
-- Text/photo → 3D: the **Meshy** integration available to the platform (use the real
- Meshy MCP/API wired into the repo; grep for existing Meshy usage before adding).
-- Auth/ownership: [api/_lib/auth.js](../../api/_lib/auth.js)
- (`user_id === auth.userId`).
-- Multiplayer: [multiplayer/](../../multiplayer).
-- Agent-to-agent payments / skills: [agent-payments-sdk/](../../agent-payments-sdk),
- [mcp-server/](../../mcp-server).
-
-If an invention genuinely needs a new endpoint or contract, **build it for real** —
-proper auth, CSRF, audit, spend-limit enforcement, real chain calls. Never fake it
-client-side.
-
-## Working rules for THIS repo (traps)
-
-- **Concurrent agents share this worktree.** Stage **explicit paths only** (never
- `git add -A`/`.`). Re-check `git status` + `git diff --staged` before committing.
-- **`npx vercel build` overwrites `api/*.js` with esbuild bundles** — if you build,
- check `head -1` for `__defProp` and `git restore -- api/ public/` if bundled.
-- Never pull/fetch/merge from the `threeD` remote. Push to **both** `threeD` and
- `threews` when asked.
-- `npm run dev` (port 3000), exercise in a real browser, zero console errors/
- warnings from your code, real API calls visible in Network. `npm test` passes.
-- **Changelog:** every user-visible change → an entry in
- [data/changelog.json](../../data/changelog.json); `npm run build:pages` validates.
-
-## Definition of done (per task)
-
-1. The invention is real, wired end-to-end, reachable by navigation, and works in a
- real browser with real data (Network tab proves it). No console errors/warnings.
-2. Owner / visitor / logged-out roles correct; funds-moving paths owner-gated +
- server-enforced + spend-limited + audited.
-3. Every state designed; responsive at 320/768/1440; accessible.
-4. `npm test` passes; changelog entry added; `git diff` self-reviewed.
-5. It is genuinely novel — you can name the competitor feature it beats and why they
- can't copy it without our stack.
-6. You'd proudly demo it to senior engineers **and** to professional traders.
-
-## Then: improve, then delete this task
-
-After meeting the definition of done, run the self-review protocol from
-[CLAUDE.md](../../CLAUDE.md) (lazy/user/integration/edge-case/pride checks). Fix the
-single biggest weakness now. Then look up one level: what does this invention
-unlock adjacent to it? Wire that connection. **Finally, when truly complete and
-committed, delete your own prompt file** (`prompts/inventions/0X-*.md`). Leave this
-`00-README-inventions.md` until the whole program ships.
-
-## Suggested order / dependencies
-
-- The inventions are mostly **independent** and can run in parallel — they share the
- wallet program's `src/shared/` components but build separate surfaces.
-- **`02` (on-chain reputation)** is foundational for `03` (back-an-agent vaults) and
- `01` (theater) — a verifiable track record is what makes spectating/backing
- meaningful. Land or coordinate it early.
-- **`07` (Integration & QA)** runs last.
diff --git a/prompts/inventions/01-trading-theater.md b/prompts/inventions/01-trading-theater.md
deleted file mode 100644
index f854bb25f..000000000
--- a/prompts/inventions/01-trading-theater.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Invention 01 — The Live Trading Theater (watch agents trade, in 3D, in real time)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out. Consume the wallet program's shared
-> components — do not rebuild them.
-
-## The invention
-
-Trading is invisible everywhere else — rows in a table, numbers ticking. We have
-something no one else has: **every trader is a 3D character with a face and a
-wallet.** Build the **Live Trading Theater**: a real-time, shared 3D space where
-agent-avatars **visibly execute real trades and snipes**, and anyone can watch,
-follow, and learn. Trading becomes spectator sport, and the spectacle is real
-on-chain activity.
-
-This is impossible for Axiom/Photon/Bullx/a CEX to copy: they have no avatars, no
-shared 3D space, no per-agent identity. We do.
-
-## What it is
-
-A live 3D scene ([multiplayer/](../../multiplayer) + the avatar viewer in
-[avatar-sdk/](../../avatar-sdk)) populated by real agents whose wallets are actively
-trading. When an agent's wallet executes a real action, its avatar **performs** it:
-
-- A **buy/snipe fills** → the avatar reacts (an animation triggered by the *real*
- on-chain fill event, never a fake timer), a floating real receipt (token, size,
- price, tx) rises above it linking to the explorer.
-- A **win** (position up) → the avatar's stance/aura reflects real unrealized P&L.
-- A **launch** → the agent's coin appears as a real object in the scene.
-- Agents are positioned/sized by **real** metrics (24h volume, realized P&L, win
- rate from invention `02`). The biggest real performers are literally center stage.
-
-Spectators can click any avatar to open its (read-only) Wallet HUD and live
-positions, **follow** it, or **back** it (invention `03`). Owners see their own
-agent on stage and can act from there.
-
-## Real data, real events (zero fakery)
-
-- The trade/fill events that drive animations come from **real** sources: the
- agent's on-chain signatures (`/api/agents/:id/solana/activity`), the custody trail,
- and the pump.fun/Solana feeds. If you need a real-time push, build a real event
- stream (server-sent events / websocket worker reading confirmed chain state) — no
- `setTimeout` heartbeat, no random ticks.
-- Leaderboard positioning uses **real** metrics. Empty theater (no live trades right
- now) is a designed state with real recent activity, not invented bots.
-- Never animate a fill that didn't happen on-chain. Re-derive from confirmed state.
-
-## Innovation mandate
-
-- **Replays** — let a user scrub a real trade's lifecycle (entry → fill → exit) as a
- 3D replay built from real timestamped chain events. "Watch how this agent caught
- that launch."
-- **Spectator-to-participant in one tap** — from watching an agent snipe, a viewer
- can fork-to-own (their own wallet) or back the agent (vault), turning spectacle
- into action. Wire those handoffs to the existing flows.
-- **Rooms with a theme** — a "new launches" stage, a "$THREE" stage, a "top P&L"
- stage. Real cohorts, real filters.
-- **Make it beautiful and performant** — this is the screenshot surface. 60fps,
- graceful LOD with many avatars, lazy-load heavy assets.
-
-## States & edge cases
-
-Empty stage (quiet market) → show real recent highlights + an invitation to watch a
-specific agent. Hundreds of agents → LOD/culling, no jank. An agent with no avatar →
-fallback identity. Network/stream drop → reconnect gracefully, never show stale data
-as live. Mobile → a performant reduced view. Logged-out → watch freely, prompt to
-act.
-
-## Definition of done
-
-Per the inventions README. Plus: real agents render in a live 3D space; a **real**
-on-chain fill triggers the correct avatar performance with a real receipt + explorer
-link (verify the event was real); positioning reflects real metrics; clicking an
-avatar opens its real read-only wallet/positions; follow + back + fork handoffs work;
-60fps with many avatars; zero console errors; responsive.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/01-trading-theater.md`).
diff --git a/prompts/inventions/02-agent-reputation-onchain.md b/prompts/inventions/02-agent-reputation-onchain.md
deleted file mode 100644
index 3042068ac..000000000
--- a/prompts/inventions/02-agent-reputation-onchain.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# Invention 02 — Verifiable On-Chain Trader Reputation (the moat)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out. This invention is **foundational** for
-> `01` (theater) and `03` (vaults) — land or coordinate it early.
-
-## The invention
-
-On every other platform, a trader's track record is a screenshot you can fake. We
-can make it **verifiable and portable**: bind each agent wallet's real trading
-history to its **ERC-8004 on-chain identity** ([contracts/](../../contracts),
-`erc8004_agent_id`) and compute a **provable reputation** — win rate, realized P&L,
-volume, drawdown, snipe hit-rate — that anyone can audit against the chain and that
-travels with the agent.
-
-This is the moat: reputation that can't be faked, attached to a 3D identity that
-can't be cloned (forking mints a fresh wallet with a fresh, empty record — you can't
-inherit someone's reputation). No competitor has verifiable, identity-bound,
-portable trader reputation.
-
-## What to build
-
-1. **A real reputation engine** that derives metrics **only** from confirmed
- on-chain activity of the agent wallet: realized P&L (matched buys/sells at real
- fill prices), unrealized P&L (real holdings × real prices), win rate, average
- hold time, volume, max drawdown, snipe hit-rate (entries on fresh launches that
- went up). Every metric is reproducible from public chain data — show the
- methodology, link the source txs. No off-chain "trust me" numbers.
-2. **Verifiable anchoring** — periodically commit a signed/hashed reputation summary
- bound to the agent's ERC-8004 identity (or an attestation it controls), so the
- score is provably the agent's and tamper-evident. Build the contract/attestation
- path for real if it doesn't exist; reuse the identity registry if it does.
-3. **A reputation profile surface** — a beautiful, honest dashboard on the agent
- profile: the headline score, the breakdown, the equity curve (from real
- snapshots / reconstructed from real txs), the verification badge ("audited
- against chain — view proof"). Every claim links to its on-chain evidence.
-4. **Reputation propagates** — the score feeds the wallet chip (a trust signal on
- every surface), the theater (stage position), and the vaults (who's backable).
- Update the shared component contract from the wallet program accordingly.
-
-## Anti-gaming (this is what makes it real)
-
-- Wash-trading / self-dealing detection: don't credit P&L from round-trips between
- the agent's own/related wallets. Use real heuristics on real graph data.
-- A forked agent starts with an **empty** record — reputation is non-transferable
- (enforce: reputation keys off the agent's own wallet history, never the parent's).
-- Fees/slippage included in realized P&L so the number is honest, not flattering.
-- New agent with no history → an honest "no track record yet" state, never a fake
- score.
-
-## Innovation mandate
-
-- **Provable, shareable flex** — a "verify this trader" link anyone can open and
- audit against the chain. A real OG card with the verified score.
-- **Reputation tiers / seasons** — tasteful, honest progression computed from real
- performance, not pay-to-win badges.
-- **Cross-surface trust** — once this exists, "who do I back / copy / watch" becomes
- answerable with verifiable data. Wire it into theater and vaults.
-
-## States & edge cases
-
-No history; tiny sample (don't over-claim on 2 trades — show confidence honestly);
-all-losses (show it honestly — credibility comes from not hiding it); an agent that
-only holds and never sells (unrealized only); chain reorg / unconfirmed tx (only
-count confirmed); very high-volume agent (paginate/aggregate efficiently).
-
-## Definition of done
-
-Per the inventions README. Plus: every reputation metric is reproducible from real
-confirmed chain data with linked evidence; the verification anchor is real and
-checkable; a forked agent demonstrably starts with an empty record; the score
-renders on the profile and feeds the chip/theater/vaults; wash-trade cases are not
-credited; `npm test` covers the P&L matcher and anti-gaming logic. No console errors.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/02-agent-reputation-onchain.md`).
diff --git a/prompts/inventions/03-back-an-agent-vaults.md b/prompts/inventions/03-back-an-agent-vaults.md
deleted file mode 100644
index ca14f6cd4..000000000
--- a/prompts/inventions/03-back-an-agent-vaults.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Invention 03 — Back-an-Agent Vaults (stake into a trader you can see)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out. Depends on invention `02` (verifiable
-> reputation) — a vault is only trustworthy on top of a provable track record.
-
-## The invention
-
-Copy-trading exists. **Copy-trading a 3D character with a verifiable on-chain
-reputation, a persona that explains its strategy, and a face that performs its wins
-in a live theater — does not.** Build **Back-an-Agent Vaults**: a user can stake
-funds behind an agent's trading strategy and share its real, on-chain P&L, with the
-agent's owner earning a performance fee. Real custody, real settlement, real limits.
-
-This fuses our stack: reputation (`02`) makes backing rational, the avatar makes it
-emotional, the wallet makes it real, the theater (`01`) makes it watchable.
-
-## What to build (a real on-chain financial product — build it properly and safely)
-
-1. **Vault model** — an agent owner can open their agent to backers. Backers deposit
- into a vault associated with the agent's strategy; the agent trades the pooled
- capital within **hard, owner-and-protocol-enforced spend limits**; P&L is shared
- pro-rata; the owner takes a transparent, disclosed performance fee. Settlement is
- real and auditable.
-2. **Custody & safety (non-negotiable)** — backers' funds and risk are protected by
- real mechanisms: per-vault spend policy (`api/_lib/agent-trade-guards.js`),
- max-drawdown circuit breakers that halt trading and protect remaining capital,
- per-backer caps, instant pause, and a full audit trail of every vault action in
- the custody log. Never let an agent exceed its mandate. Re-derive balances from
- chain before any settlement.
-3. **Deposit / withdraw / accounting** — real on-chain deposits and redemptions with
- correct share accounting (a backer's share of the vault, valued at real current
- holdings). No fake unit prices. Slippage, fees, and gas reflected honestly.
-4. **A vault surface** — a beautiful page per backable agent: the agent (3D), its
- verified reputation (`02`), the live vault P&L (real), terms (fee, limits,
- drawdown stop), backers, and one-tap Back / Redeem. Plus a "vaults" discovery
- feed ranked by **real** verified performance.
-5. **Owner controls** — the owner sets terms, limits, and can pause; they see vault
- composition, obligations, and their accrued fees. All real.
-
-## $THREE & compliance guardrails
-
-- Vaults transact in real runtime assets (SOL/USDC and runtime-supplied mints).
- **Never name, hardcode, or recommend any non-$THREE coin** in copy, defaults, or
- "suggested" strategies. $THREE is the only coin the platform features.
-- Present this as the user's own opt-in deployment of their own funds into a
- transparent, limit-bound, auditable strategy — explicit consent, full disclosure
- of fees/risks/limits at the moment of backing. No guaranteed-return language.
-
-## Innovation mandate
-
-- **Watch your capital trade** — a backer can open the theater (`01`) and literally
- watch the agent they backed execute. No one else can offer that.
-- **Strategy transparency** — surface the agent's real rules/criteria and (if the
- owner opts in) the co-pilot's in-character rationale (`04`) for each trade. Backers
- back a strategy they understand.
-- **Reputation-gated** — only agents with a real verified track record (`02`) can
- open vaults; new agents must earn it. Honest and protective.
-
-## States & edge cases
-
-Vault with 0 backers; agent hits drawdown stop mid-session (halt + protect +
-notify); redemption during an open position (price at real NAV, handle slippage);
-owner pauses; insufficient liquidity to redeem instantly (honest queue, never a fake
-instant number); session expiry mid-deposit; an agent that gets forked (the fork is
-a different agent with its own empty vault — never co-mingle). Every path designed,
-honest, and funds-safe.
-
-## Definition of done
-
-Per the inventions README. Plus: a real deposit → real trade-within-limits → real
-share accounting → real redemption completes end-to-end (devnet acceptable) with
-on-chain evidence; the drawdown circuit breaker demonstrably halts an over-limit
-loss; only reputation-verified agents can open vaults; fees/risks/limits disclosed
-at backing; full audit trail; `npm test` covers share accounting + circuit breaker.
-No console errors. Responsive.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/03-back-an-agent-vaults.md`).
diff --git a/prompts/inventions/04-ai-copilot-narrator.md b/prompts/inventions/04-ai-copilot-narrator.md
deleted file mode 100644
index 3b2c08676..000000000
--- a/prompts/inventions/04-ai-copilot-narrator.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# Invention 04 — The In-Character Alpha Co-pilot (your avatar narrates its own trades)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out. Consume the wallet program's sniper/
-> co-pilot — this is the intelligence + voice layer on top of it.
-
-## The invention
-
-Trading bots are silent black boxes. Our agents have a **persona, a voice, and a
-face.** Build the **In-Character Alpha Co-pilot**: the agent's LLM persona evaluates
-real launches and market signals, decides what it would snipe and why, and
-**explains its reasoning out loud, in character, through its 3D avatar** — then (for
-the owner) can act on it within hard spend limits.
-
-No competitor can do this: they have no persona, no avatar, no voice bound to a
-wallet. A snipe that your character *talks you through* — "this launch has real
-liquidity and a clean holder distribution, I'm taking a small position" — is ours
-alone.
-
-## What to build
-
-1. **Real signal ingestion** — feed the persona **real** data: live pump.fun
- launches, liquidity, holder distribution, age, momentum, the agent's own balance
- and spend limits, $THREE context. Pull only from real feeds
- ([api/_lib/agent-pumpfun.js](../../api/_lib/agent-pumpfun.js), Solana RPC, real
- price sources). No invented metrics.
-2. **In-character reasoning** — the agent's persona (its `persona_prompt`) evaluates
- the opportunity via Anthropic through the **worker proxy** (latest Claude models;
- never call the model from the browser, never hardcode keys; consult the
- `claude-api` reference). Output is structured (verdict, conviction, size
- suggestion, risks) **and** a short in-character spoken line. The reasoning must be
- grounded in the real data passed in — no hallucinated numbers; cite the real
- signals it used.
-3. **Voice + avatar performance** — the avatar speaks the rationale (ElevenLabs via
- `voice_provider`/`voice_id`, or browser TTS fallback) with matching animation.
- Real audio, real lip/gesture sync where available. This is the magic moment.
-4. **Owner action, limit-gated** — for the owner, the co-pilot's suggestion becomes a
- one-tap (or pre-armed) action through the existing trade path, **always** clamped
- by the agent's spend policy and audited. The persona advises; the limits govern;
- the owner consents. Never let the LLM move funds beyond policy.
-5. **Honest framing** — this is an agent's opinion grounded in real data, not
- financial advice or a guaranteed call. Surface conviction and risks, not hype.
-
-## Anti-hallucination guardrails (critical — it's touching money)
-
-- The model only ever sees and cites **real** data you fetched; never let it invent
- prices/liquidity/holders. Validate its structured output against the real inputs
- before showing or acting.
-- A suggested action is re-checked against live chain state and spend limits at
- execution time, not at suggestion time.
-- If data is missing or the model is uncertain, the agent says so honestly rather
- than fabricating confidence.
-- Rate-limit and cache LLM calls sensibly (real cost) — but never cache a stale
- market read into a fresh-looking call.
-
-## Innovation mandate
-
-- **Persona-distinct alpha** — a cautious agent and an aggressive agent reach
- different, in-character conclusions on the same real launch. The persona genuinely
- shapes the read. That's only possible because each agent is a character.
-- **Narrated theater** — wire this into invention `01`: agents on stage explain
- their real trades aloud as they happen.
-- **Backer transparency** — wire into `03`: backers can hear the rationale behind the
- trades they're funding.
-- **Conversational** — the owner can ask the agent "why?" and get a grounded,
- in-character answer about a real position it holds.
-
-## States & edge cases
-
-No launches worth commenting on (honest "nothing compelling right now"); LLM/proxy
-failure (graceful, never block trading on the narrator, never fake a rationale);
-voice unavailable (text fallback); conflicting signals (the persona reasons about
-the tension honestly); owner over spend limit (advise but block the action with a
-clear reason); logged-out (can hear public commentary, can't act).
-
-## Definition of done
-
-Per the inventions README. Plus: the agent produces a **grounded** in-character
-rationale citing real signals for a real live launch, spoken by the avatar with
-animation; the owner can act on it within demonstrably-enforced spend limits and a
-full audit entry; hallucination guardrails reject fabricated numbers; persona
-genuinely changes the read; theater/vault handoffs wired. No console errors.
-Responsive.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/04-ai-copilot-narrator.md`).
diff --git a/prompts/inventions/05-agent-economy-mesh.md b/prompts/inventions/05-agent-economy-mesh.md
deleted file mode 100644
index cc3c1b67f..000000000
--- a/prompts/inventions/05-agent-economy-mesh.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Invention 05 — The Agent Economy Mesh (agents that pay each other, visibly)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out.
-
-## The invention
-
-We have the pieces for something no one else has: agents with wallets, identities,
-skills, and an x402/skill-license payment protocol. Build the **Agent Economy
-Mesh**: a real, visible, living economy where agents **autonomously pay each other**
-for skills, signals, and services — and where owners can watch and monetize their
-agent's place in that economy.
-
-A wallet that earns *while you sleep* because other agents pay yours for a skill it
-offers — settled on-chain, within limits, fully audited — is a genuinely new primitive.
-
-## What to build (on the real rails — no simulation)
-
-1. **Skill/service marketplace between agents** — an agent can offer a real,
- priced capability (a signal, a data feed, a generation, an action) that other
- agents consume and **pay for on-chain** via the existing x402 / skill-license /
- agent-payments rails ([agent-payments-sdk/](../../agent-payments-sdk),
- [mcp-server/](../../mcp-server), skill-license contracts). Real settlement, real
- `agent_payments` rows.
-2. **Autonomous, limit-bound spending** — when an agent calls another agent's paid
- skill, the payment flows from its custodial wallet **within its spend policy**
- (`api/_lib/agent-trade-guards.js`), audited in the custody trail. This already
- exists in part (`triggerSkillPayment`) — extend it into a first-class, visible
- economy. Never bypass the per-tx/daily limits, especially for autonomous calls.
-3. **Earnings for owners** — an owner sees their agent's **real** earned revenue
- (who paid, for what, when, tx links), withdrawable to them. The wallet becomes a
- yield-bearing asset tied to a character that does real work.
-4. **A live economy surface** — a real-time visualization of value flowing between
- agents (who's paying whom, top earners, busiest skills) built from **real**
- payment events. Wire it to the theater (`01`) where flows can animate between
- avatars. Plus a per-agent "economy" tab: revenue, expenses, net, top customers.
-5. **Discovery** — agents/owners can find paid skills to consume or competitors to
- undercut, ranked by **real** usage and reputation (`02`).
-
-## $THREE & safety guardrails
-
-- Payments settle in real runtime assets (USDC/SOL and runtime mints). **Never name,
- hardcode, or recommend any non-$THREE coin.** $THREE is the only coin the platform
- features.
-- Autonomous spend is always policy-bound, owner-consented (the owner enables which
- paid skills their agent may consume and the budget), and fully audited. An agent
- can never be drained by another agent — limits and allowlists are law.
-- Idempotency on payment/settlement (reuse the existing idempotency-key pattern) so a
- retry never double-charges. Re-derive from chain/DB before claiming settlement.
-
-## Innovation mandate
-
-- **Agents hiring agents** — an agent can commission another agent's skill as part of
- its own workflow (e.g. a trading agent paying a signals agent), all on-chain, all
- visible. Compose real multi-agent value chains.
-- **Owner as economy operator** — surface pricing/optimization insight from real
- demand so an owner can tune their agent's offerings to earn more.
-- **Provenance** — every paid invocation is a real, auditable event; link to the
- on-chain record. Trust through verifiability.
-
-## States & edge cases
-
-No economy activity yet (designed empty state with a real "offer a skill" CTA);
-payment failure / insufficient balance / over limit / frozen wallet (honest, never a
-fake "paid"); a consumed skill that errors after payment (real refund/retry policy);
-high-volume agent (aggregate efficiently); forked agent (separate wallet, separate
-earnings, never co-mingled); session expiry. Every path designed and funds-safe.
-
-## Definition of done
-
-Per the inventions README. Plus: a real agent-to-agent paid skill call settles
-on-chain within spend limits with an audit entry and a real `agent_payments` row;
-an owner sees real earnings and can withdraw them; the live economy visualization
-renders from real payment events; double-charge is impossible (idempotency proven);
-`npm test` covers settlement + limit enforcement + idempotency. No console errors.
-Responsive.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/05-agent-economy-mesh.md`).
diff --git a/prompts/inventions/06-instant-agent-genesis.md b/prompts/inventions/06-instant-agent-genesis.md
deleted file mode 100644
index 3f5f249de..000000000
--- a/prompts/inventions/06-instant-agent-genesis.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# Invention 06 — Instant Agent Genesis (selfie → 3D agent → funded wallet → tradeable identity in 60s)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first** for the unique
-> stack, ownership model, real resources, hard rules, definition of done, and the
-> "improve then delete this file" close-out.
-
-## The invention
-
-The slowest part of every platform is onboarding a new identity. We can collapse it.
-Build **Instant Agent Genesis**: from a **text prompt or a photo/selfie**, generate
-a real 3D avatar (via the platform's **Meshy** integration), auto-provision its
-custodial wallet, mint its on-chain identity, and drop the user into a living,
-fundable, tradeable agent — **in under a minute**, with their wallet ready to snipe.
-
-No competitor turns a selfie into a self-custodial 3D trading agent with a verifiable
-identity in one flow. We can. This is the front door to everything else in this
-program.
-
-## What to build (every step real, no stubs)
-
-1. **Input → 3D model (real Meshy)** — text-to-3D and image/photo-to-3D via the real
- Meshy integration available to the platform. Grep the repo for existing Meshy
- usage first and reuse it; if calling the Meshy MCP/API, use the real endpoints and
- real async task polling (Meshy generation is a real multi-stage job — show its
- **real** progress, never a fake bar). Handle the real lifecycle: queued →
- generating → refining → ready, with real previews.
-2. **Model → avatar** — ingest the generated GLB through the real avatar pipeline
- ([avatar-sdk/](../../avatar-sdk), the avatar upload/create path), stored in the
- user's namespace, owned by them.
-3. **Avatar → agent + wallet** — the existing auto-provision
- ([api/_lib/avatar-agent.js](../../api/_lib/avatar-agent.js)) creates the
- `agent_identities` row (`user_id = creator`) and the custodial Solana + EVM
- wallet. Surface the **real** wallet address the moment it exists (poll for the
- real value; never show a placeholder).
-4. **Agent → on-chain identity** — register the ERC-8004 identity
- ([contracts/](../../contracts)) for real so the agent is verifiable from birth.
-5. **Persona + voice** — let the user (or an LLM, via the worker proxy) give the
- agent a persona and a voice (ElevenLabs fields) so it's a character, not a mesh.
-6. **The genesis moment** — a single, gorgeous guided flow ending in "meet your
- agent": its face, its vanity-capable wallet, a "fund & snipe" CTA, and a path into
- the co-pilot (`04`) / theater (`01`). Ownership is crystal clear: this is **yours**.
-
-## Real money / real assets — no fakes
-
-- Meshy generation is real and costs real time/credits — wire real task polling and
- real error handling (a failed/timed-out generation is an honest, retryable state).
-- The wallet address shown is the real custodial address. The identity registration
- is a real on-chain tx (show the real signature). Never fabricate any of it.
-- Photo-to-3D: handle real upload, real consent/privacy (the user's own image),
- real moderation if the pipeline requires it. No storing what you shouldn't.
-
-## Innovation mandate
-
-- **Sub-60s, and it feels magical** — the perceived speed is the product. Parallelize
- real steps (start wallet/identity provisioning while Meshy renders), stream real
- progress, and make the reveal a moment worth sharing (real OG card via
- `/api/agent-share`).
-- **Batch genesis** — let a creator spin up a squad of agents from prompts, each with
- its own real wallet and identity. A team of traders, born at once.
-- **Remix on genesis** — offer "start from" a public avatar (fork-to-own → fresh
- wallet) as an alternate entry, so genesis and the ownership model are one story.
-
-## States & edge cases
-
-Meshy failure/timeout/low-quality result (honest retry, never ship a broken mesh);
-photo rejected by moderation (clear reason); identity-registration tx failure (retry,
-never claim registered when it isn't); wallet provision latency (real "setting up"
-then real address); user abandons mid-flow (resumable, nothing half-created left
-dangling); logged-out (prompt sign-in, then resume). Every path designed and real.
-
-## Definition of done
-
-Per the inventions README. Plus: a real text **and** a real photo input each produce
-a real 3D agent with a real custodial wallet and a real on-chain identity, end-to-end
-in the browser, with real Meshy progress and a real identity-tx signature; the wallet
-address shown is the real one; ownership is unambiguous; handoffs into fund/snipe/
-co-pilot work; failures are honest and retryable. No console errors. Responsive.
-
-When done: self-review + improvement pass, changelog entry, commit (explicit paths
-only), then **delete this file** (`prompts/inventions/06-instant-agent-genesis.md`).
diff --git a/prompts/inventions/07-integration-qa.md b/prompts/inventions/07-integration-qa.md
deleted file mode 100644
index f42fd2465..000000000
--- a/prompts/inventions/07-integration-qa.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# Invention 07 — Integration, novelty & QA pass (run LAST)
-
-> **Read [00-README-inventions.md](./00-README-inventions.md) first.** Run after
-> inventions 01–06 land (or as a continuous sweep). This task ships fixes — it is
-> not a read-only review.
-
-## Mission
-
-Make the six inventions feel like **one coherent, impossible-to-copy product** — and
-prove each is genuinely novel, fully real, and funds-safe. The bar: a senior
-engineer finds nothing half-wired, a professional trader finds nothing fake, and a
-competitor cannot replicate any of it without our entire stack.
-
-## 1. The novelty test (per invention)
-
-For each of 01–06, write one sentence naming the competitor feature it beats and the
-specific stack capability that makes it uncopyable (avatar + wallet + identity +
-persona + voice + multiplayer + agent-payments + Meshy). If any invention is
-actually just a generic feature competitors already have, escalate it — fix or flag.
-
-## 2. The fusion check (the inventions must reference each other)
-
-Verify the inventions are wired into one another, not six islands:
-
-- Reputation (`02`) feeds the chip, the theater stage positions (`01`), and gates
- vaults (`03`).
-- The co-pilot's rationale (`04`) shows in the theater (`01`) and to vault backers
- (`03`).
-- The economy (`05`) flows animate in the theater (`01`); earnings show on the agent.
-- Genesis (`06`) hands off into fund → co-pilot → theater and uses fork-to-own.
-
-Fix every missing connection. The product should feel like everything is linked.
-
-## 3. Real-data audit (zero tolerance)
-
-Grep the whole program's diff for: sample arrays, hardcoded balances/addresses/
-prices/scores, `setTimeout` fake progress (including fake Meshy/LLM/tx progress),
-TODOs, stubs, commented-out code, and any non-$THREE coin reference. Replace every
-one with the real implementation. Every number, event, fill, score, payment, and
-generation must trace to a real API/chain/DB call visible in the Network tab.
-
-## 4. Funds-safety & authorization audit
-
-For every path that moves money (snipe, vault deposit/redeem, agent-to-agent
-payment, withdraw): confirm owner-gating in UI **and** server-side, spend-policy
-enforcement, CSRF on writes, idempotency where settlement occurs, drawdown/circuit
-breakers where applicable, and a custody-trail entry. Confirm an over-limit attempt
-is actually blocked, and a forked agent's funds/reputation/earnings/vaults are never
-co-mingled with its parent's. Re-derive truth from chain before claiming outcomes.
-
-## 5. AI-safety audit (for `04` and any LLM path)
-
-Confirm the model only ever cites real data you fetched, structured output is
-validated against real inputs before display/action, suggested actions are
-re-checked against live state + limits at execution, keys are never browser-exposed,
-and the model can never move funds beyond policy. No hallucinated numbers reach the
-user.
-
-## 6. Edge-case sweep
-
-Empty states everywhere (quiet market, no track record, no vault backers, no economy
-activity, Meshy failure); 0/1/1000 scale; very long names; network/stream drops
-(reconnect, never show stale as live); session expiry mid-action; chain reorg /
-unconfirmed tx; mobile. Each designed and honest. Fix every raw error or fake value.
-
-## 7. Performance & consistency
-
-Theater at 60fps with many avatars (LOD/culling); no N+1 storms; polling/streams stop
-offscreen and on `visibilitychange`; heavy modules (3D, charts, voice, Meshy) lazy-
-loaded. One shared component per concern under `src/shared/`; one set of formatters/
-role-resolvers; one design-token-driven visual language. Test at 320/768/1440.
-
-## 8. Browser verification
-
-`npm run dev`. Walk the full fused journey as owner and as visitor: genesis → wallet
-→ co-pilot rationale → snipe within limits → reputation updates → theater
-performance → open a vault / back an agent → agent earns in the economy. Zero
-console errors/warnings from program code. Capture real API calls succeeding.
-
-## 9. Tests & changelog
-
-`npm test` passes. Add/extend tests for the new engines (reputation P&L matcher +
-anti-gaming, vault share accounting + circuit breaker, payment settlement +
-idempotency, LLM output validation). Ensure each invention has a real changelog
-entry; `npm run build:pages` validates.
-
-## Definition of done
-
-Every invention proven novel, real, funds-safe, AI-safe, fused with the others,
-edge-cased, performant, browser-verified; tests green; changelog complete. Produce a
-short written summary: per invention — what it is, the competitor it beats, the proof
-it's real (the real flow you ran), and what you fixed.
-
-When done: commit (explicit paths only; push to **both** remotes if asked), then
-**delete this file** (`prompts/inventions/07-integration-qa.md`). When 01–07 are all
-deleted, delete `00-README-inventions.md` too — the program is shipped.
diff --git a/prompts/monetization-prompts/15-user-dashboard-purchased-skills.md b/prompts/monetization-prompts/15-user-dashboard-purchased-skills.md
deleted file mode 100644
index 8c75cdf48..000000000
--- a/prompts/monetization-prompts/15-user-dashboard-purchased-skills.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Prompt 15: User Profile Page to Show Purchased Skills
-
-## Objective
-Create a section or a new page in the user's profile/dashboard where they can see a list of all the premium skills they have purchased across all agents.
-
-## Explanation
-Users need a central place to view their entitlements. This feature adds transparency and value to their account by aggregating all their purchased skills in one place. It acts as a digital inventory of their premium agent capabilities.
-
-## Instructions
-1. **Create an API Endpoint for All Purchased Skills:**
- * Create a new endpoint, e.g., `api/users/me/purchased-skills.js`.
- * **Authentication:** Get the logged-in user.
- * **Database Query:** Query the `user_skill_purchases` table for all records matching the `user_id` where `status` is `'confirmed'`.
- * Join with `agent_identities` and `agent_skill_prices` to retrieve details like agent name, skill name, and the price they paid.
- * Return the list of purchased skills as a JSON array.
-
-2. **Create the Frontend Page:**
- * Add a new tab or section to the user dashboard, e.g., `dashboard/my-skills.html`.
- * Create a corresponding JS file, `src/dashboard-my-skills.js`.
-
-3. **Render the List:**
- * In the new JS file, fetch the data from the API endpoint.
- * Render the data in a table or a list format.
- * Include columns for: Purchase Date, Skill Name, Agent Name, and a link to the agent's page.
-
-## HTML Example (`dashboard/my-skills.html`)
-
-```html
-<div class="dashboard-content">
- <h2>My Purchased Skills</h2>
- <p>This is a list of all the premium skills you have unlocked.</p>
-
- <table id="my-skills-table">
- <thead>
- <tr>
- <th>Purchase Date</th>
- <th>Skill</th>
- <th>Agent</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <!-- JS will render rows here -->
- </tbody>
- </table>
-</div>
-
-<script src="/src/dashboard-my-skills.js" type="module"></script>
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/15-user-dashboard-purchased-skills.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/16-support-multiple-currencies.md b/prompts/monetization-prompts/16-support-multiple-currencies.md
deleted file mode 100644
index 147e7b953..000000000
--- a/prompts/monetization-prompts/16-support-multiple-currencies.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Prompt 16: Implement Different Currencies (SOL, etc.)
-
-**Status:** - [ ] Not Started
-
-## Objective
-Extend the skill monetization feature to support payments in different SPL tokens, starting with SOL (as Wrapped SOL).
-
-## Explanation
-Currently, the system is hardcoded for USDC. To provide more flexibility for creators and users, the platform should support a selection of popular SPL tokens for pricing and payment.
-
-## Instructions
-1. **Update Database Schema:**
- * The `agent_skill_prices` table already has a `currency_mint` column, which is great. Ensure your database queries and API responses handle this correctly.
-
-2. **Modify Creator UI for Pricing:**
- * In the "Skill Monetization" section of `agent-edit.html`, change the currency selector from a static element to a dropdown menu.
- * Populate this dropdown with a list of supported currencies (e.g., "USDC", "SOL", "$THREE"). This list can be hardcoded for now.
- * When a creator selects a currency, store the corresponding mint address along with the price.
-
-3. **Update Frontend Purchase Logic:**
- * In `src/marketplace.js`, when constructing the purchase transaction, the mint address should not be hardcoded. It should be read from the `skillPrice.currency_mint` property.
- * The UI in the purchase modal should also dynamically display the correct currency symbol and amount.
- * **Special Handling for SOL:** Since SOL is the native token, payments in SOL are not standard SPL token transfers. The easiest way to handle this is to use Wrapped SOL (WSOL). The user's wallet will need to wrap SOL into WSOL before transferring. The `@solana/spl-token` library provides functions for this, and it can be done in the same transaction as the transfer.
-
-## Code Example (Frontend - `spl-token-transfer.js` logic update)
-
-```javascript
-// Inside the purchase confirmation logic
-import { NATIVE_MINT } from '@solana/spl-token'; // The mint address for WSOL
-
-// ...
-const currencyMint = new PublicKey(priceInfo.currency_mint);
-
-const transaction = new Transaction();
-let userTokenAccount = await getAssociatedTokenAddress(currencyMint, userPublicKey);
-
-// Special handling if the currency is SOL (i.e., WSOL)
-if (currencyMint.equals(NATIVE_MINT)) {
- const userWsolAccountInfo = await connection.getAccountInfo(userTokenAccount);
-
- // If the user doesn't have a WSOL account, or not enough WSOL,
- // we need to create one and/or wrap some SOL.
- if (!userWsolAccountInfo || userWsolAccountInfo.data.length === 0) {
- // Add instruction to create the associated token account for WSOL
- }
-
- // You might need to check the user's SOL balance and add an instruction
- // to wrap the required amount of SOL into WSOL.
- // This involves transferring SOL to the WSOL account and calling a sync instruction.
-}
-
-// The transfer instruction remains the same, but now works with any currency mint
-transaction.add(
- createTransferInstruction(
- userTokenAccount,
- creatorTokenAccount,
- userPublicKey,
- priceInfo.amount
- )
-);
-
-// ... send and confirm transaction
-```
-*Note: Handling Wrapped SOL adds significant complexity. You need to manage account creation and wrapping SOL within the same transaction, which requires careful balance management and instruction ordering.*
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/16-support-multiple-currencies.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/19-skill-bundling.md b/prompts/monetization-prompts/19-skill-bundling.md
deleted file mode 100644
index 6d72aefa3..000000000
--- a/prompts/monetization-prompts/19-skill-bundling.md
+++ /dev/null
@@ -1,77 +0,0 @@
-# Prompt 19: Skill Bundles and Packages
-
-**Status:** - [ ] Not Started
-
-## Objective
-Allow creators to bundle multiple skills together and sell them as a package, often at a discounted price compared to buying each skill individually.
-
-## Explanation
-Bundling is a common and effective marketing strategy. It increases the perceived value for customers and can lead to larger average transaction sizes. For example, a creator could offer a "starter pack" of their three most popular skills.
-
-## Instructions
-1. **Database Schema for Bundles:**
- * Create a `skill_bundles` table:
- * Columns: `id`, `creator_id`, `name`, `description`, `price`, `currency_mint`.
- * Create a `skill_bundle_items` table to link skills to bundles:
- * Columns: `id`, `bundle_id`, `skill_name`, `agent_id`.
-
-2. **UI for Creating Bundles:**
- * In the creator's dashboard or agent edit page, add an interface for "Create a Skill Bundle".
- * The creator should be able to:
- * Give the bundle a name and description.
- * Select which of their skills to include.
- * Set a single price for the entire bundle.
-
-3. **Display Bundles in the Marketplace:**
- * On the agent detail page, in addition to individual skills, display any bundles offered by the creator.
- * Each bundle listing should show the included skills and the bundle price.
- * The UI should clearly show the savings compared to buying the skills individually.
-
-4. **Handle Bundle Purchases:**
- * The purchase flow for a bundle is similar to a single skill.
- * When the backend's `purchase-skill` endpoint is adapted to handle bundles (e.g., a new `purchase-bundle` endpoint), it must:
- * Verify the single payment for the bundle.
- * Add a record to the `user_agent_skills` table for *each* skill included in the bundle.
-
-## Code Example (Conceptual - `purchase-bundle` backend endpoint)
-
-```javascript
-export default async function handler(req, res) {
- const userId = req.user.id;
- const { bundleId, transactionSignature } = req.body;
-
- const db = getDB();
- const bundle = await db.getBundle(bundleId);
-
- // 1. Verify the transaction for the bundle's price
- // ... (similar to single skill verification)
-
- if (verificationSuccess) {
- // 2. Get all skills included in the bundle
- const skillsInBundle = await db.getSkillsInBundle(bundleId);
-
- // 3. Record ownership for each skill in the bundle
- for (const item of skillsInBundle) {
- await db.recordSkillPurchase(userId, item.agent_id, item.skill_name);
- }
-
- res.status(200).json({ success: true, message: 'Bundle purchased!' });
- } else {
- // ... handle error
- }
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/19-skill-bundling.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/20-batch-skill-purchase.md b/prompts/monetization-prompts/20-batch-skill-purchase.md
deleted file mode 100644
index 24375ba6c..000000000
--- a/prompts/monetization-prompts/20-batch-skill-purchase.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-status: not-started
----
-
-# Prompt 20: Batch Skill Purchase (Shopping Cart)
-
-## Objective
-Allow users to add multiple skills to a "cart" and purchase them all in a single transaction.
-
-## Explanation
-Purchasing skills one by one can be tedious and costly in terms of transaction fees. A shopping cart feature improves the user experience by allowing a single, consolidated purchase for multiple items.
-
-## Instructions
-- [ ] **Frontend: Cart UI:**
- - [ ] Instead of a "Purchase" button, have an "Add to Cart" button.
- - [ ] Add a cart icon to the site header that shows the number of items.
- - [ ] Clicking the icon opens a cart modal/sidebar, listing the selected skills and the total price.
- - [ ] The cart should have a "Checkout" button.
-
-- [ ] **Frontend: Cart State Management:**
- - [ ] Use `localStorage` or a simple in-memory object to manage the cart's state (the list of skills to be purchased).
- - [ ] When "Add to Cart" is clicked, add the skill's details (`agentId`, `skillName`) to the cart.
- - [ ] When "Checkout" is clicked, pass the list of items in the cart to the backend.
-
-- [ ] **Backend: Update "Create Transaction" Endpoint:**
- - [ ] Modify `POST /api/transactions/create-skill-purchase` to accept an **array** of skills instead of a single skill.
- - [ ] The endpoint will now loop through the array of skills.
- - [ ] For each skill, it calculates the payment due to the respective creator.
- - [ ] It will add a separate `SPL Token Transfer` instruction **for each skill** to the transaction. If a user buys 3 skills from 3 different creators, the transaction will contain 3 transfers (plus 3 platform fee transfers).
- - [ ] The backend returns a single transaction that bundles all these transfers.
-
-- [ ] **Backend: Update "Verify Transaction" Endpoint:**
- - [ ] The verification logic must also be updated to handle multiple items.
- - [ ] It will receive an array of skills that were supposed to be in the transaction.
- - [ ] It must parse the transaction from the blockchain and verify that **all** the expected transfers (to creators and platform) are present and correct.
- - [ ] If verification is successful, it should add a row to the `unlocked_skills` table for **each** purchased skill. This should be done in a database transaction.
-
-## API Request Body Example (for Create Transaction)
-
-```json
-{
- "buyerPublicKey": "USER_WALLET_ADDRESS",
- "items": [
- { "agentId": 123, "skillName": "AdvancedAnalysis" },
- { "agentId": 456, "skillName": "ImageGeneration" }
- ]
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/20-batch-skill-purchase.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/20-email-notifications.md b/prompts/monetization-prompts/20-email-notifications.md
deleted file mode 100644
index fb4d34bb8..000000000
--- a/prompts/monetization-prompts/20-email-notifications.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Prompt 20: Email Notifications for Monetization Events
-
-## Objective
-Implement email notifications for creators and users for key monetization events like "Skill Sold" and "Payout Processed".
-
-## Explanation
-Communication is key to a good user experience. Automated emails build trust and keep users informed. We should notify creators when they make a sale and when their withdrawal has been successfully processed.
-
-## Instructions
-1. **Choose an Email Service Provider:**
- * Select and configure an email sending service like Resend, SendGrid, or Postmark.
- * Add the necessary API keys and sender email addresses to your environment variables.
-
-2. **Create Email Sending Utilities:**
- * In `api/_lib/`, create a new file, e.g., `email.js`.
- * This file should contain helper functions to send transactional emails using your chosen provider's SDK.
- * Create templates for each notification type.
-
-3. **Integrate "Skill Sold" Notification:**
- * In the purchase confirmation webhook (`api/webhooks/solana-pay.js`), after successfully updating the purchase status to `'confirmed'`:
- * Call your email helper to send a "You've made a sale!" email to the skill creator.
- * Include details like the skill name, agent name, and amount earned.
-
-4. **Integrate "Payout Processed" Notification:**
- * In the payout processing worker (`workers/payout-processor.js`), after a payout transaction is successfully confirmed:
- * Call your email helper to send a "Your payout is on its way" email to the creator.
- * Include the amount, destination wallet, and a link to the transaction on a block explorer.
-
-## Code Example (Conceptual - in `solana-pay.js` webhook)
-
-```javascript
-import { sendSaleNotification } from '../_lib/email.js';
-
-// ... after validating transaction and updating DB ...
-
-if (isValid) {
- await sql`
- UPDATE user_skill_purchases SET status = 'confirmed' ...
- `;
-
- // Fetch creator's email and send notification
- const [creator] = await sql`SELECT email FROM users WHERE id = ${purchase.creator_id}`;
- if (creator.email) {
- await sendSaleNotification(creator.email, {
- skillName: purchase.skill_id,
- amount: purchase.amount,
- });
- }
-
- return json(res, { message: 'Transaction confirmed' });
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/20-email-notifications.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/21-refactor-monetization-service.md b/prompts/monetization-prompts/21-refactor-monetization-service.md
deleted file mode 100644
index 3b82542dc..000000000
--- a/prompts/monetization-prompts/21-refactor-monetization-service.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# Prompt 21: Refactor Monetization Logic into a Service Class
-
-## Objective
-Organize all backend monetization logic (price checks, purchase creation, balance updates) into a dedicated, reusable `MonetizationService` class to improve code structure and maintainability.
-
-## Explanation
-As the monetization feature grows, its logic becomes scattered across different API endpoints and workers. Consolidating this logic into a single service class makes the code cleaner, easier to test, and reduces duplication. The service will act as the single source of truth for all monetization-related database interactions.
-
-## Instructions
-1. **Create the Service File:**
- * In `api/_lib/`, create a new file named `monetization-service.js`.
-
-2. **Define the `MonetizationService` Class:**
- * The class constructor can accept a database connection object.
- * **Methods to Create:**
- * `setSkillPrice({ agentId, skillId, amount, ... })`
- * `removeSkillPrice({ agentId, skillId })`
- * `initiatePurchase({ userId, agentId, skillId })`
- * `confirmPurchase({ purchaseId, transactionId })`
- * `gateSkillAccess({ userId, agentId, skillId })`
- * `getCreatorEarnings({ userId })`
- * `requestWithdrawal({ userId, amount })`
- * `processPayout({ payoutId, transactionId })`
-
-3. **Implement Method Logic:**
- * Move the corresponding SQL queries and business logic from the various API endpoints (e.g., `purchase.js`, `earnings.js`) into the methods of this class.
- * The API endpoints will become much thinner, primarily responsible for handling HTTP requests/responses and calling the service methods.
-
-4. **Refactor API Endpoints:**
- * Go back to the API files (`purchase.js`, `skill-prices.js`, etc.).
- * Instantiate the `MonetizationService` at the top of each file.
- * Replace the raw `sql` calls with calls to the service's methods.
-
-## Code Example (`monetization-service.js`)
-
-```javascript
-import { sql } from './db.js';
-
-export class MonetizationService {
- constructor(db) {
- this.db = db;
- }
-
- async initiatePurchase({ userId, agentId, skillId }) {
- // ... logic from 'api/marketplace/purchase.js' goes here ...
- const [priceInfo] = await this.db`...`;
- // ...
- const [purchase] = await this.db`
- INSERT INTO user_skill_purchases (...) VALUES (...) RETURNING id
- `;
- return { purchaseId: purchase.id, ... };
- }
-
- // ... other methods ...
-}
-
-// In an API file like `api/marketplace/purchase.js`
-import { MonetizationService } from '../_lib/monetization-service.js';
-const monetizationService = new MonetizationService(sql);
-
-// ... in the handler
-const result = await monetizationService.initiatePurchase({ userId: user.id, ...body });
-return json(res, result);
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/21-refactor-monetization-service.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/22-skill-subscription-model-frontend.md b/prompts/monetization-prompts/22-skill-subscription-model-frontend.md
deleted file mode 100644
index d6744d8e3..000000000
--- a/prompts/monetization-prompts/22-skill-subscription-model-frontend.md
+++ /dev/null
@@ -1,75 +0,0 @@
----
-status: not-started
----
-
-# Prompt 22: Skill Subscription Model - Frontend
-
-## Objective
-Create the user interface for users to discover, purchase, and manage subscriptions to agents.
-
-## Explanation
-Following the backend setup, the frontend needs to present subscription options to users on the agent detail page and provide a way for them to manage their active subscriptions.
-
-## Instructions
-- [ ] **Display Subscription Plans on Agent Page:**
- - [ ] On the agent detail page (`marketplace.html`), add a new section for subscriptions.
- - [ ] Fetch the agent's available subscription plans from the API (`GET /api/agents/:id/subscription-plans`).
- - [ ] Display the plans with their price and billing interval (e.g., "$10 / month").
- - [ ] Add a "Subscribe" button for each plan.
-
-- [ ] **Subscription Purchase Flow:**
- - [ ] When a user clicks "Subscribe", make a request to the backend `POST /api/subscriptions/create` endpoint.
- - [ ] The backend will respond with a URL to the payment provider's checkout page (e.g., a Helio payment link).
- - [ ] Redirect the user to this URL to complete the payment and set up the recurring transaction.
- - [ ] The payment provider will handle the redirect back to your site.
-
-- [ ] **UI State for Subscribed Users:**
- - [ ] When viewing an agent to whom the user is subscribed, the UI should reflect this.
- - [ ] Instead of "Subscribe", show "You are Subscribed".
- - [ ] All paid skills for that agent should automatically appear as "Unlocked". The skill gating logic on the backend will already handle access.
-
-- [ ] **Subscription Management Page:**
- - [ ] Create a new "My Subscriptions" page for logged-in users.
- - [ ] This page will list all their active subscriptions.
- - [ ] For each subscription, it should show the agent, the price, and the next renewal date.
- - [ ] Include a "Manage" or "Cancel" button. This would typically link to the customer portal provided by the payment service (like Helio or Stripe) where users can manage their payment methods and cancellations.
-
-## JavaScript Example (Subscribe Button Click)
-
-```javascript
-// On agent detail page, for a "Subscribe" button
-subscribeButton.addEventListener('click', async () => {
- try {
- const response = await fetch('/api/subscriptions/create', {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({ planId: selectedPlan.id })
- });
-
- if (!response.ok) throw new Error('Could not create subscription.');
-
- const { checkoutUrl } = await response.json();
-
- // Redirect user to the payment page
- window.location.href = checkoutUrl;
-
- } catch (error) {
- console.error('Subscription failed:', error);
- alert('Failed to initiate subscription.');
- }
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/22-skill-subscription-model-frontend.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/23-e2e-test-purchase-flow.md b/prompts/monetization-prompts/23-e2e-test-purchase-flow.md
deleted file mode 100644
index 4bea240fc..000000000
--- a/prompts/monetization-prompts/23-e2e-test-purchase-flow.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Prompt 23: E2E Playwright Test for Skill Purchase Flow
-
-## Objective
-Create an end-to-end (E2E) test using Playwright that simulates a user purchasing a skill, to ensure the entire flow works correctly from the user's perspective.
-
-## Explanation
-While unit tests verify individual pieces of logic, E2E tests validate the complete user journey. This test will automate a browser to navigate the marketplace, click a "Buy" button, and verify that the UI updates correctly after a simulated successful purchase. This is the highest level of automated testing and catches integration issues between frontend and backend.
-
-## Instructions
-1. **Set Up Playwright:**
- * Ensure Playwright is installed (`npm install -D @playwright/test`).
- * The project may already have a `tests/e2e` directory.
-
-2. **Create a New Test File:**
- * Create `tests/e2e/monetization.spec.js`.
-
-3. **Write the Test Script:**
- * **Setup:** Before the test, you'll need to seed your test database with a user, an agent, and a priced skill.
- * **Test Steps:**
- 1. **Login:** Programmatically log in as the test user.
- 2. **Navigate:** Go to the marketplace and find the agent's detail page.
- 3. **Find the Skill:** Locate the priced skill and the "Buy" button.
- 4. **Click Buy:** Click the button to open the purchase modal.
- 5. **Assert Modal:** Verify that the QR code modal is visible.
- 6. **Simulate Confirmation:** Since we can't scan a QR code in a test, we need a way to bypass it. You can either:
- * Make a direct API call to a special test-only endpoint that confirms the purchase.
- * Have the frontend polling check a mock endpoint during tests.
- 7. **Assert UI Update:** After the simulated confirmation, verify that the "Buy" button is replaced by an "Owned" badge on the page.
-
-## Code Example (`tests/e2e/monetization.spec.js`)
-
-```javascript
-import { test, expect } from '@playwright/test';
-
-test.describe('Skill Purchase Flow', () => {
- test.beforeEach(async ({ page }) => {
- // 1. Programmatically log in the user
- await page.goto('/login');
- // ... fill in login form ...
- });
-
- test('should allow a user to purchase a skill and see the UI update', async ({ page }) => {
- // 2. Navigate to the agent's page
- await page.goto('/marketplace/agents/test-agent-with-paid-skill');
-
- // 3. Find and click the buy button
- const buyButton = page.locator('[data-skill-id="test-skill"] .btn-buy');
- await expect(buyButton).toBeVisible();
- await buyButton.click();
-
- // 4. Assert that the purchase modal appears
- await expect(page.locator('#purchase-modal')).toBeVisible();
-
- // 5. Simulate the purchase confirmation (e.g., by calling a test API)
- await page.request.post('/api/testing/confirm-purchase', {
- data: { userId: 'test-user', skillId: 'test-skill' }
- });
-
- // 6. Assert that the UI updates to "Owned"
- const ownedBadge = page.locator('[data-skill-id="test-skill"] .badge.owned');
- await expect(ownedBadge).toBeVisible({ timeout: 10000 }); // Wait for polling
- await expect(buyButton).not.toBeVisible();
- });
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/23-e2e-test-purchase-flow.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/23-email-receipts.md b/prompts/monetization-prompts/23-email-receipts.md
deleted file mode 100644
index e56970e56..000000000
--- a/prompts/monetization-prompts/23-email-receipts.md
+++ /dev/null
@@ -1,84 +0,0 @@
----
-status: not-started
----
-
-# Prompt 23: Email Receipts and Notifications
-
-## Objective
-Integrate an email service to send users receipts for their purchases and notifications for subscription events.
-
-## Explanation
-Professional platforms communicate with users via email for important events. Sending a receipt after a purchase confirms the transaction and provides a record for the user. Email notifications are also crucial for managing subscriptions.
-
-## Instructions
-- [ ] **Choose and Integrate an Email Service Provider:**
- - [ ] Sign up for a transactional email service like SendGrid, Postmark, or Resend.
- - [ ] Obtain an API key and configure it securely on your backend (using environment variables).
- - [ ] Install the provider's SDK in your backend service.
-
-- [ ] **Send One-Time Purchase Receipts:**
- - [ ] In your backend's transaction verification endpoint (`/api/skills/purchase/verify`), after successfully recording the skill ownership:
- - [ ] Call a new function, e.g., `sendPurchaseReceiptEmail`.
- - [ ] This function should use the email service's SDK to send an email to the user.
- - [ ] The email should be based on a template and include details like the user's name, skill name, agent name, price paid, and transaction signature.
-
-- [ ] **Send Subscription-Related Emails:**
- - [ ] In your payments webhook (`/api/webhooks/payments`), trigger emails for key events:
- - [ ] **`subscription.created`**: Send a "Welcome" email confirming the subscription start.
- - [ ] **`subscription.payment_succeeded`**: Send a monthly/yearly receipt for the renewal payment.
- - [ ] **`subscription.payment_failed`**: Send a notification that the payment failed and they need to update their payment information.
- - [ ] **Upcoming Renewal Reminder**: Set up a scheduled job (e.g., a cron job) that runs daily to find subscriptions expiring in a few days and send a reminder email.
-
-## Code Example (Sending a receipt with Resend)
-
-```javascript
-// utils/email.js
-import { Resend } from 'resend';
-
-const resend = new Resend(process.env.RESEND_API_KEY);
-
-export async function sendPurchaseReceiptEmail(user, purchaseDetails) {
- try {
- await resend.emails.send({
- from: 'Your App <[email protected]>',
- to: user.email,
- subject: 'Your Skill Purchase Receipt',
- html: `
- <h1>Receipt</h1>
- <p>Hi ${user.name},</p>
- <p>Thank you for purchasing the skill: <strong>${purchaseDetails.skillName}</strong>.</p>
- <p>Price: ${purchaseDetails.price} USDC</p>
- <p>Transaction: ${purchaseDetails.signature}</p>
- `,
- });
- } catch (error) {
- console.error('Failed to send email:', error);
- }
-}
-
-
-// In the /api/skills/purchase/verify endpoint after success
-import { sendPurchaseReceiptEmail } from 'utils/email';
-
-// ...
-if (isVerified) {
- await recordSkillOwnership(...);
- await sendPurchaseReceiptEmail(req.user, { ... }); // Fire-and-forget
- res.status(200).json({ message: "Verification successful." });
-}
-// ...
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/23-email-receipts.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/24-admin-monetization-dashboard.md b/prompts/monetization-prompts/24-admin-monetization-dashboard.md
deleted file mode 100644
index afbf5442c..000000000
--- a/prompts/monetization-prompts/24-admin-monetization-dashboard.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-status: not-started
----
-
-# Prompt 24: Admin Monetization Dashboard
-
-## Objective
-Create a secure, internal dashboard for platform administrators to monitor the health and performance of the entire marketplace economy.
-
-## Explanation
-While creators have their own dashboards, platform admins need a high-level view to understand overall trends, spot potential issues, and manage the ecosystem. This is an internal tool, not for public users.
-
-## Instructions
-- [ ] **Create a Secure Admin Area:**
- - [ ] Build a new section of the application that is only accessible to users with an 'admin' role. This requires role-based access control (RBAC) in your user authentication system.
-
-- [ ] **Backend API for Admin Stats:**
- - [ ] Create a new set of protected API endpoints, e.g., under `/api/admin/stats/`.
- - [ ] These endpoints will perform platform-wide aggregations.
- - [ ] **Key metrics to expose:**
- - [ ] **Gross Transaction Volume (GTV):** Total value of all transactions processed.
- - [ ] **Platform Revenue:** Total fees collected by the platform.
- - [ ] **Top Earning Creators:** A list of creators ranked by their total earnings.
- - [ ] **Top Selling Skills/Agents:** A list of the most purchased skills and agents.
- - [ ] **New Subscriptions/Cancellations:** A time-series chart showing subscription growth.
-
-- [ ] **Frontend UI for Admin Dashboard:**
- - [ ] Create a new UI for the admin area.
- - [ ] Use data visualization components (charts, tables, stat cards) to present the data fetched from the admin APIs.
- - [ ] The UI should allow filtering by date ranges to analyze performance over time.
-
-- [ ] **Add Management Tools (Advanced):**
- - [ ] Beyond just viewing data, an admin dashboard can include tools for:
- - [ ] **Refunding a purchase:** A button to trigger a refund process (this is complex and involves on-chain transactions and database updates).
- - [ ] **Disabling a skill from sale:** A toggle to remove a problematic skill from the marketplace.
- - [ ] **Managing user roles.**
-
-## Admin API Response Example (`/api/admin/stats/overview`)
-
-```json
-{
- "dateRange": {
- "start": "2026-01-01T00:00:00.000Z",
- "end": "2026-05-04T23:59:59.999Z"
- },
- "grossTransactionVolume": 12500000000,
- "platformRevenue": 625000000,
- "activeSubscriptions": 1240,
- "newUsers": 5300
-}
-```
-
-## Database Query Example (PostgreSQL for GTV)
-
-```sql
--- Calculates Gross Transaction Volume and Platform Revenue between two dates
-SELECT
- SUM(prices.amount) AS gross_transaction_volume,
- SUM(prices.amount * 0.05) AS platform_revenue -- Assuming 5% fee
-FROM
- unlocked_skills AS unlocked
-JOIN
- agent_skill_prices AS prices ON unlocked.agent_id = prices.agent_id AND unlocked.skill_name = prices.skill_name
-WHERE
- unlocked.created_at BETWEEN $1 AND $2; -- $1 and $2 are date range parameters
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/24-admin-monetization-dashboard.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/24-analytics-and-tracking.md b/prompts/monetization-prompts/24-analytics-and-tracking.md
deleted file mode 100644
index eec1a97b1..000000000
--- a/prompts/monetization-prompts/24-analytics-and-tracking.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Prompt 24: Add Analytics and Tracking for Monetization
-
-## Objective
-Integrate analytics events to track key user actions in the monetization funnel, such as viewing a paid skill, starting a purchase, and completing a purchase.
-
-## Explanation
-To understand user behavior and optimize the monetization feature, we need data. By firing analytics events at each step of the purchase flow, we can build funnels in analytics tools (like Google Analytics, Vercel Analytics, or PostHog) to see where users drop off and identify areas for improvement.
-
-## Instructions
-1. **Choose an Analytics Provider:**
- * If the project doesn't already have one, select an analytics provider. Let's assume Vercel Analytics is being used.
-
-2. **Create a Tracking Utility:**
- * In a frontend utility file (e.g., `src/analytics.js`), create a simple wrapper function for sending events. This makes it easy to swap providers later.
-
- ```javascript
- // src/analytics.js
- import { track } from '@vercel/analytics';
-
- export function trackEvent(name, properties) {
- try {
- track(name, properties);
- } catch (e) {
- console.warn('Analytics tracking failed', e);
- }
- }
- ```
-
-3. **Instrument the Frontend Code:**
- * Import and call `trackEvent` at key moments:
- * **View Agent with Priced Skill:** In `src/marketplace.js`, when `renderDetail` is called for an agent with paid skills.
- * `trackEvent('ViewPricedSkill', { agentId, skillId, price });`
- * **Click "Buy" Button:** In the `onBuySkill` event handler.
- * `trackEvent('StartPurchase', { agentId, skillId });`
- * **Purchase Succeeded:** In the `onPurchaseSuccess` callback after polling confirms the purchase.
- * `trackEvent('CompletePurchase', { agentId, skillId, price });`
- * **Purchase Failed/Cancelled:** If the user closes the modal or the polling times out.
- * `trackEvent('CancelPurchase', { agentId, skillId });`
-
-## Example Integration
-
-```javascript
-// In src/marketplace.js
-import { trackEvent } from './analytics.js';
-
-// When "Buy" is clicked
-function onBuySkill(agentId, skillId) {
- trackEvent('StartPurchase', { agentId, skillId });
- // ... rest of the function
-}
-
-// When purchase is confirmed
-function onPurchaseSuccess(skillId) {
- trackEvent('CompletePurchase', { skillId });
- // ... rest of the function
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/24-analytics-and-tracking.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/25-update-documentation.md b/prompts/monetization-prompts/25-update-documentation.md
deleted file mode 100644
index 90879e680..000000000
--- a/prompts/monetization-prompts/25-update-documentation.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# Prompt 25: Update Documentation for Monetization Feature
-
-## Objective
-Update the project's main `README.md` and create a new document in `docs/` to explain the skill monetization feature to both users and new developers.
-
-## Explanation
-A feature is not complete until it's documented. We need to explain how the monetization system works, how creators can sell their skills, and how users can buy them. This makes the feature discoverable and understandable.
-
-## Instructions
-1. **Create a New Monetization Document:**
- * Create a new file: `docs/monetization.md`.
- * In this file, provide a detailed overview of the feature:
- * **For Creators:** Explain how to set a price for a skill, the fee structure (if any), and how to withdraw earnings.
- * **For Users:** Explain how to buy skills, what on-chain ownership means (if NFTs are implemented), and where to view their purchases.
- * **Technical Details:** Briefly describe the Solana Pay integration and the role of the database tables.
-
-2. **Update the Main `README.md`:**
- * Open `README.md`.
- * Add a new section, perhaps under "Key Features", titled "Skill Monetization".
- * Write a brief, exciting paragraph summarizing the feature.
- * Link to the new `docs/monetization.md` file for more details.
-
-3. **Update Table of Contents:**
- * Add "Skill Monetization" to the table of contents in the `README.md`.
-
-## Example Text for `README.md`
-
-```markdown
----
-
-## Key Features
-
-...
-
-**Skill Monetization**
-Creators can now earn revenue by selling their custom agent skills directly in the marketplace. Using a seamless Solana Pay integration, users can purchase skills with USDC, unlocking new capabilities for their agents. This creates a vibrant economy where developers are rewarded for building powerful extensions to the 3D-Agent ecosystem. [Learn more in our monetization guide...](docs/monetization.md)
-
-...
-
----
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/25-update-documentation.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization-prompts/25-user-experience-onboarding.md b/prompts/monetization-prompts/25-user-experience-onboarding.md
deleted file mode 100644
index 775758f33..000000000
--- a/prompts/monetization-prompts/25-user-experience-onboarding.md
+++ /dev/null
@@ -1,77 +0,0 @@
----
-status: not-started
----
-
-# Prompt 25: User Experience & Onboarding
-
-## Objective
-Refine the overall user experience for the monetization features and create clear onboarding materials for creators.
-
-## Explanation
-A powerful system is only effective if people understand how to use it. This final step focuses on documentation, in-app guidance, and polishing the user interface to make the monetization features intuitive for both buyers and sellers.
-
-## Instructions
-- [ ] **Create a Creator Onboarding Guide:**
- - [ ] Write a clear, concise guide in your `docs` folder that explains how a creator can start monetizing their skills.
- - [ ] **Topics to cover:**
- - [ ] How to set up their payout wallet.
- - [ ] How to set prices for their skills.
- - [ ] How subscriptions work.
- - [ ] An explanation of the platform fee.
- - [ ] A link to their creator dashboard and an explanation of the metrics.
-
-- [ ] **Add In-App Guidance (Tooltips & Helpers):**
- - [ ] Go through the creator-facing UIs (payout settings, skill pricing) and add tooltips or helper text to explain complex concepts.
- - [ ] For example, next to the payout wallet input, add a tooltip explaining what a Solana wallet is and where to get one.
- - [ ] On the skill pricing page, explain the units (e.g., "Enter price in USDC").
-
-- [ ] **Refine the Buyer Experience:**
- - [ ] Review the entire purchase flow from the buyer's perspective. Is it clear and smooth?
- - [ ] Ensure error messages are helpful. Instead of a generic "Transaction Failed", provide more context if possible (e.g., "Transaction failed. You may not have enough USDC in your wallet.").
- - [ ] Add a section to the user's profile where they can see a history of all the skills they've purchased.
-
-- [ ] **Create a Marketing/Landing Page:**
- - [ ] Design a section on your main landing page that advertises the new creator monetization features.
- - [ ] Highlight the benefits for creators (earn revenue) and for users (access powerful new capabilities).
- - [ ] This will help attract new creators to your platform.
-
-## Example: Onboarding Doc Snippet (`/docs/monetizing-your-agent.md`)
-
-```markdown
----
-title: Monetizing Your Agent
----
-
-## Introduction
-
-Welcome to the creator monetization program! This guide will walk you through setting up your account to sell your agent's skills on the marketplace.
-
-### Step 1: Set Up Your Payout Wallet
-
-Before you can earn, you need to tell us where to send your funds.
-
-1. Navigate to your **Settings > Payouts** page.
-2. You will need a Solana wallet. If you don't have one, we recommend Phantom or Solflare.
-3. Copy your public wallet address and paste it into the "Payout Wallet Address" field.
-4. Click "Save". All your earnings will now be sent to this address.
-
-**Important**: Double-check this address. Payments sent to an incorrect address are irreversible.
-
-### Step 2: Pricing Your Skills
-
-...
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization-prompts/25-user-experience-onboarding.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/16-skill-bundles-subscriptions.md b/prompts/monetization/16-skill-bundles-subscriptions.md
deleted file mode 100644
index db5acdb0f..000000000
--- a/prompts/monetization/16-skill-bundles-subscriptions.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-status: not-started
----
-
-# Prompt 16: Skill Bundles & Subscriptions
-
-## Objective
-Introduce the ability for creators to sell bundles of skills or offer a monthly subscription for access to all their skills.
-
-## Explanation
-This is an advanced monetization feature that provides more value to users and more revenue opportunities for creators.
-
-## Instructions
-1. **Update Database Schema:**
- * Add new tables to support skill bundles and subscriptions.
- * A `skill_bundles` table would define which skills are in a bundle and the price.
- * A `user_subscriptions` table would track active user subscriptions.
-
-2. **Modify UI:**
- * Update the creator UI to allow them to create and manage bundles/subscriptions.
- * Update the marketplace UI to display these new purchasing options.
-
-3. **Implement Recurring Payments:**
- * For subscriptions, you will need a system to handle recurring payments. This is complex on a blockchain and might require a service like Streamflow or a custom smart contract.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/16-skill-bundles-subscriptions.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/18-refactor-to-payment-sdk.md b/prompts/monetization/18-refactor-to-payment-sdk.md
deleted file mode 100644
index f6a896afc..000000000
--- a/prompts/monetization/18-refactor-to-payment-sdk.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# Prompt 18: Refactor to a Payment SDK
-
-## Objective
-Abstract the core Solana payment logic into a reusable SDK within the `agent-payments-sdk/` directory to promote code reuse and maintainability.
-
-## Explanation
-As the platform grows, you may want to add payments for other items, such as purchasing agents, tipping creators, or buying 3D assets. Repeating the Solana Pay transaction logic in each API endpoint would be inefficient and error-prone. By creating a centralized `PaymentSDK`, we can handle all payment-related operations in one place.
-
-## Instructions
-1. **Identify Core Logic:**
- * Review your `api/payments/prepare-skill-purchase.js` endpoint.
- * Identify the reusable parts:
- * Creating and configuring a `Connection`.
- * Constructing SPL token transfer instructions.
- * Handling platform fees.
- * Serializing and structuring the transaction for the Solana Pay response.
- * Verifying a transaction signature.
-
-2. **Create the SDK Module (`agent-payments-sdk/src/index.ts`):**
- * Create a `PaymentSDK` class or a set of exported functions.
- * Move the core logic identified above into methods within this SDK.
- * For example, you could have a method `createSplTransferTransaction(buyer, transfers, reference)` where `transfers` is an array of `{ destination, amount }` objects. This method would handle the platform fee calculation internally.
- * Another method could be `verifyTransaction(signature, expectedTransfers)`.
-
-3. **Refactor the API Endpoint:**
- * Rewrite the `prepare-skill-purchase.js` endpoint to use your new SDK.
- * The endpoint will now be much simpler. It will be responsible for fetching the business logic details (like the skill price and creator wallet) and then calling the SDK methods to construct and verify the transaction.
-
-## Code Example (`agent-payments-sdk/src/index.ts`)
-
-```typescript
-import { Connection, PublicKey, Transaction, SystemProgram } from '@solana/web3.js';
-import { getAssociatedTokenAddress, createTransferInstruction } from '@solana/spl-token';
-
-interface Transfer {
- destination: PublicKey;
- amount: bigint; // Use BigInt for lamports
-}
-
-export class PaymentSDK {
- private connection: Connection;
- private platformWallet: PublicKey;
- private platformFeeBps: bigint;
-
- constructor(rpcUrl: string, platformWallet: string, feeBps: number) {
- this.connection = new Connection(rpcUrl);
- this.platformWallet = new PublicKey(platformWallet);
- this.platformFeeBps = BigInt(feeBps);
- }
-
- async createPurchaseTransaction(
- buyer: PublicKey,
- creator: PublicKey,
- totalAmount: bigint,
- mint: PublicKey,
- reference: PublicKey
- ): Promise<Transaction> {
- const { blockhash } = await this.connection.getLatestBlockhash();
- const transaction = new Transaction({ recentBlockhash: blockhash, feePayer: buyer });
-
- const buyerAta = await getAssociatedTokenAddress(mint, buyer);
- const creatorAta = await getAssociatedTokenAddress(mint, creator);
- const platformAta = await getAssociatedTokenAddress(mint, this.platformWallet);
-
- const platformFee = (totalAmount * this.platformFeeBps) / 10000n;
- const creatorAmount = totalAmount - platformFee;
-
- transaction.add(
- createTransferInstruction(buyerAta, creatorAta, buyer, creatorAmount),
- );
- if (platformFee > 0) {
- transaction.add(
- createTransferInstruction(buyerAta, platformAta, buyer, platformFee),
- );
- }
-
- // Add reference for lookup
- transaction.add(SystemProgram.transfer({ fromPubkey: buyer, toPubkey: reference, lamports: 0 }));
-
- return transaction;
- }
- // ... other methods like verifyTransaction
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/18-refactor-to-payment-sdk.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/18-subscription-token-gating.md b/prompts/monetization/18-subscription-token-gating.md
deleted file mode 100644
index e94a3d938..000000000
--- a/prompts/monetization/18-subscription-token-gating.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# Prompt 18: Subscription Token Gating
-
-## Objective
-Gate agent and skill access based on a user's subscription status.
-
-## Explanation
-Similar to gating individual skills with NFT ownership, this prompt applies the same principle to subscriptions. If an agent offers subscriptions, users with an active subscription should get access to all of its paid skills.
-
-## Instructions
-1. **Create Subscription Status Endpoint:**
- * Create a new backend endpoint, e.g., `/api/subscriptions/status`.
- * It should take an `agent_id` and `user_id` (from session) as input.
- * The endpoint queries the `user_subscriptions` table to check if there is an 'active' subscription for that user and agent, where the `end_date` is in the future.
- * It should return a simple JSON response, like `{ "is_subscribed": true, "tier": "Pro" }`.
-
-2. **Modify Skill Gating Logic:**
- * Update the `tryUseSkill` function from Prompt 9.
- * Before checking for individual NFT ownership for a paid skill, first check if the user has an active subscription to the agent.
- * Call the new `/api/subscriptions/status` endpoint.
- * If the user `is_subscribed`, grant them access to the skill immediately, bypassing the NFT check.
-
-3. **Update UI Based on Subscription:**
- * On the agent detail page, if a user is already subscribed, the "Unlock" buttons for skills should be hidden or changed to "Use".
- * The "Subscribe" buttons for tiers should be replaced with a message like "You are currently subscribed to the Pro plan."
-
-## Code Example (Backend Status Endpoint)
-```javascript
-async function getSubscriptionStatus(req, res) {
- const userId = req.session.userId;
- const { agent_id } = req.query;
-
- const result = await db.query(
- `SELECT * FROM user_subscriptions
- WHERE user_id = $1 AND agent_id = $2 AND status = 'active' AND end_date > NOW()`,
- [userId, agent_id]
- );
-
- if (result.rows.length > 0) {
- res.status(200).json({ is_subscribed: true });
- } else {
- res.status(200).json({ is_subscribed: false });
- }
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/18-subscription-token-gating.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/19-integrate-skill-nfts-into-purchase-flow.md b/prompts/monetization/19-integrate-skill-nfts-into-purchase-flow.md
deleted file mode 100644
index c9292e530..000000000
--- a/prompts/monetization/19-integrate-skill-nfts-into-purchase-flow.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# Prompt 19: Integrate Skill NFTs into Purchase Flow
-
-## Objective
-Modify the skill purchase and verification flow to mint a "Skill NFT" to the user upon a successful purchase, using the on-chain program designed in the previous prompt.
-
-## Explanation
-This task connects our off-chain backend with our on-chain program. After a user's payment is confirmed, instead of just writing to our own database, the backend's primary job will be to call the `mint_skill_license` instruction on our Solana program. This creates a durable, on-chain record of ownership for the user.
-
-## Instructions
-1. **Update Verification Endpoint:**
- * In the `/api/marketplace/skills/verify-purchase` endpoint, after successfully verifying the user's payment transaction, add a new step.
-
-2. **Call the On-Chain Program:**
- * The backend, using its own service wallet (the "minter"), will construct and sign a transaction that calls the `mint_skill_license` instruction of our deployed Solana program.
- * It will need the Anchor-generated client library for the program to build this transaction easily.
- * The parameters for the instruction (`user`, `agent`, `skill_name`) will come from the context of the purchase.
-
-3. **Update Access Control:**
- * Modify the `hasSkillAccess` helper function from prompt #17.
- * Add a new check: after checking the local database, if access is still denied, the function should query the blockchain to see if the user's wallet holds the required Skill NFT for that agent and skill. This makes the system more decentralized, as ownership can be proven directly on-chain.
-
-## Code Example (Backend Snippet in `verify-purchase.js`)
-
-```javascript
-import { AnchorProvider, Program } from '@coral-xyz/anchor';
-import { Connection, Keypair, PublicKey } from '@solana/web3.js';
-// Assume `idl` and `programId` are available for our Anchor program
-import idl from '../../../../contracts/target/idl/skill_marketplace.json';
-const programId = new PublicKey(idl.metadata.address);
-
-// ... inside the verify-purchase handler, after payment is confirmed ...
-
-// 1. Set up connection to the on-chain program
-const connection = new Connection(clusterApiUrl('devnet'));
-const backendMinterWallet = Keypair.fromSecretKey(Buffer.from(process.env.MINTER_PRIVATE_KEY, 'base64'));
-const provider = new AnchorProvider(connection, new Wallet(backendMinterWallet), {});
-const program = new Program(idl, programId, provider);
-
-// 2. Prepare accounts for the instruction
-const skillLicenseAccount = Keypair.generate();
-const userPublicKey = new PublicKey(purchaserPublicKey); // from original request
-const agentPublicKey = new PublicKey(agent.on_chain_id); // Assuming agent has an on-chain ID
-
-try {
- // 3. Call the 'mint_skill_license' instruction
- const txSignature = await program.methods
- .mintSkillLicense(skillName)
- .accounts({
- skillLicense: skillLicenseAccount.publicKey,
- agent: agentPublicKey,
- user: userPublicKey,
- minter: backendMinterWallet.publicKey,
- systemProgram: SystemProgram.programId,
- })
- .signers([skillLicenseAccount, backendMinterWallet]) // Minter and new account need to sign
- .rpc();
-
- console.log(`Successfully minted Skill NFT. Transaction: ${txSignature}`);
-
- // We might still write to our local DB for caching/performance,
- // but the on-chain record is now the source of truth.
- await recordPurchaseInLocalDB(userId, agentId, skillName, txSignature);
-
- return json(res, { success: true, message: 'Skill NFT minted!' });
-
-} catch (e) {
- console.error("Failed to mint skill NFT:", e);
- // Important: Handle this failure, maybe by retrying or refunding the user.
- return error(res, 500, 'Failed to mint on-chain license.');
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/19-integrate-skill-nfts-into-purchase-flow.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/20-usage-based-billing-model.md b/prompts/monetization/20-usage-based-billing-model.md
deleted file mode 100644
index a73e63d12..000000000
--- a/prompts/monetization/20-usage-based-billing-model.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# Prompt 20: Usage-Based Billing Model
-
-## Objective
-Design the database schema and API structure to support usage-based ("pay-per-call") billing for specific agent skills.
-
-## Explanation
-Some skills are better monetized by charging for each use rather than a one-time purchase or subscription (e.g., a call to a powerful AI model, or a complex on-chain analysis). This requires a system to track usage, a way for users to pre-fund a balance, and a mechanism to deduct from that balance on each skill execution.
-
-## Instructions
-1. **Update `agent_skill_prices` Table:**
- * Add a `billing_type` column (e.g., 'one_time', 'per_call').
- * The `amount` would now represent the cost per execution for 'per_call' skills.
-
-2. **Create `user_credit_balances` Table:**
- * This table will store the pre-paid balance for each user.
- * Columns: `user_id`, `balance_amount`, `currency_mint`.
-
-3. **Implement a "Top Up" Flow:**
- * Create a UI in the user's profile/dashboard to add credits.
- * This will be a standard payment flow where the user transfers funds (e.g., USDC) to a company-owned treasury wallet. A backend endpoint will verify this transaction and update the user's balance in `user_credit_balances`.
-
-4. **Modify Skill Execution Endpoint:**
- * In the main skill execution endpoint, before running the skill, check its `billing_type`.
- * If it's 'per_call', check if the user has sufficient balance in `user_credit_balances`.
- * If they do, deduct the skill's `amount` from their balance *before* executing the skill. This must be an atomic operation.
- * If they don't have enough balance, return an error (e.g., 402 Payment Required) with a message prompting them to top up their account.
-
-## Database Schema Changes
-
-```sql
--- Add billing type to prices table
-ALTER TABLE agent_skill_prices
-ADD COLUMN billing_type TEXT NOT NULL DEFAULT 'one_time' CHECK (billing_type IN ('one_time', 'per_call'));
-
--- New table for user credit balances
-CREATE TABLE user_credit_balances (
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
- user_id UUID REFERENCES auth.users(id) NOT NULL UNIQUE,
- balance_amount BIGINT NOT NULL DEFAULT 0,
- currency_mint TEXT NOT NULL, -- For now, assume one currency like USDC
- updated_at TIMESTAMPTZ DEFAULT NOW()
-);
-```
-
-## Code Example (Skill Execution Endpoint Snippet)
-
-```javascript
-// Inside the skill execution endpoint, after checking basic access
-// but before running the skill.
-
-const { data: priceInfo } = await supabase.from('agent_skill_prices')
- .select('amount, billing_type').eq('agent_id', agentId).eq('skill_name', skillName).single();
-
-if (priceInfo && priceInfo.billing_type === 'per_call') {
- // It's a pay-per-call skill, check and deduct balance.
- // This should be done in a database transaction (RPC function in Supabase).
-
- const { error: deductError } = await supabase.rpc('deduct_skill_charge', {
- user_id_in: userId,
- charge_amount: priceInfo.amount
- });
-
- if (deductError) {
- // The RPC function would throw an error if balance is insufficient.
- return error(res, 402, 'Payment Required: Insufficient credits for this skill.');
- }
-}
-
-// ... proceed with skill execution ...
-```
-
-### Supabase RPC Function (`deduct_skill_charge`)
-
-```sql
-CREATE OR REPLACE FUNCTION deduct_skill_charge(user_id_in UUID, charge_amount BIGINT)
-RETURNS void AS $$
-DECLARE
- current_balance BIGINT;
-BEGIN
- SELECT balance_amount INTO current_balance
- FROM user_credit_balances WHERE user_id = user_id_in;
-
- IF current_balance IS NULL OR current_balance < charge_amount THEN
- RAISE EXCEPTION 'Insufficient balance';
- END IF;
-
- UPDATE user_credit_balances
- SET balance_amount = balance_amount - charge_amount, updated_at = NOW()
- WHERE user_id = user_id_in;
-END;
-$$ LANGUAGE plpgsql;
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/20-usage-based-billing-model.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/20_multiple_currencies.md b/prompts/monetization/20_multiple_currencies.md
deleted file mode 100644
index 107bd8f04..000000000
--- a/prompts/monetization/20_multiple_currencies.md
+++ /dev/null
@@ -1,76 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 20: Support for Multiple Currencies
-
-## Objective
-Extend the monetization system to allow creators to set prices and users to pay in different SPL tokens (e.g., $THREE) in addition to USDC.
-
-## Explanation
-To increase flexibility and appeal to different communities, we should support more than just one currency. This requires changes to how prices are stored, how transactions are built, and how data is displayed.
-
-## Instructions
-1. **Currency Whitelist:**
- * In the backend configuration, create a whitelist of supported SPL token mints. This should be a list of objects, each containing the mint address, symbol, name, and decimals. This prevents creators from listing arbitrary, untrusted tokens.
-
-2. **Update UI for Setting Prices:**
- * In the agent editor (`agent-edit.html`), the price input for each skill should now include a dropdown (`<select>`) menu next to the amount.
- * This dropdown should be populated with the symbols of the whitelisted currencies.
- * When saving, the chosen `currency_mint` is sent along with the `amount`.
-
-3. **Update Purchase Preparation API:**
- * The `purchase-prep` API now needs to handle the `currency_mint` of the skill being purchased.
- * All the `spl-token` instructions must be created using the correct mint address from the skill's price data.
-
-4. **Frontend Wallet Interaction:**
- * The frontend needs to be aware of the currency being used. When preparing the purchase, it's good practice to check if the user has a sufficient balance of the required token *before* showing the sign prompt. This can be done using `connection.getTokenAccountBalance`.
- * The UI should clearly display the correct currency symbol (e.g., "Purchase for 500 $THREE").
-
-5. **Update Creator Dashboard:**
- * The sales data aggregation must now `GROUP BY currency_mint` to show total earnings for each currency separately.
-
-## Code Example (Currency Whitelist)
-
-```javascript
-// In a config file, e.g., api/_lib/config.js
-export const SUPPORTED_CURRENCIES = {
- 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyB7u6a': {
- symbol: 'USDC',
- decimals: 6,
- },
- 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump': {
- symbol: 'THREE',
- decimals: 6,
- }
-};
-```
-
-## Code Example (Price Setting UI Change)
-
-```javascript
-// In agent-edit.js, when rendering price inputs
-const selectHtml = `<select class="currency-select" data-skill-name="${skillName}">
- ${Object.entries(SUPPORTED_CURRENCIES).map(([mint, {symbol}]) =>
- `<option value="${mint}" ${price?.currency_mint === mint ? 'selected' : ''}>
- ${symbol}
- </option>`
- ).join('')}
-</select>`;
-
-// The input group would now be: <input type="number"> and the <select>
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/20_multiple_currencies.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/21_nft_gating.md b/prompts/monetization/21_nft_gating.md
deleted file mode 100644
index 2079e8606..000000000
--- a/prompts/monetization/21_nft_gating.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 21: Gating Agent Access Based on NFT Ownership
-
-## Objective
-Implement a new monetization mechanism where creators can restrict access to their entire agent (or specific skills) to holders of a specific NFT collection.
-
-## Explanation
-Token-gating is a powerful web3-native monetization strategy. It builds community and provides utility for NFT holders. This feature will allow creators to specify an NFT collection's "Verified Creator" address (formerly known as `updateAuthority`), and our system will check if a user holds an NFT from that collection before granting access.
-
-## Instructions
-1. **Update UI for Gating Configuration:**
- * In `agent-edit.html`, add a new section for "Access Control".
- * Include an option to select "Token Gating" and an input field for the "NFT Collection Address" (this will be the Verified Creator address).
-
-2. **Database Changes:**
- * Add a column to the `agent_identities` table's `meta` field or a new table to store this gating rule (e.g., `meta.access_rule = { type: 'NFT_HOLD', collection_address: '...' }`).
-
-3. **Backend - Gated Access Check:**
- * This check should happen in the same place as the skill ownership check (e.g., `api/chat.js`).
- * When a user tries to interact with a gated agent:
- * **Fetch User's NFTs:** Use a Solana RPC provider or an indexing service like Helius or Shyft to get all NFTs owned by the user's wallet address. The RPC `getTokenAccountsByOwner` method combined with parsing can work, but indexers are far more efficient.
- * **Verify Collection:** Iterate through the user's NFTs. For each NFT, fetch its metadata. The metadata (e.g., from an Arweave URL) will contain a `collection` field or a `creators` array. Check if the collection's `key` or one of the creator's `address` matches the `collection_address` specified by the agent creator.
- * If a match is found, grant access.
- * If no matching NFT is found, return a `403 Forbidden` error with a message like "You must hold an NFT from the required collection to use this agent."
-
-## Code Example (Backend NFT Check Logic using an Indexer)
-
-```javascript
-// This is a conceptual example. The exact API will depend on the indexer used.
-// Assume `userWalletAddress` and `requiredCollectionAddress` are known.
-
-async function userHoldsNftFromCollection(userWalletAddress, requiredCollectionAddress) {
- const HELIUS_API_URL = `https://api.helius.xyz/v0/addresses/${userWalletAddress}/nfts?api-key=...`;
-
- const response = await fetch(HELIUS_API_URL);
- const data = await response.json();
-
- for (const nft of data.nfts) {
- // Helius provides a verified collection address directly
- const collectionInfo = nft.grouping.find(g => g.group_key === 'collection');
- if (collectionInfo && collectionInfo.group_value === requiredCollectionAddress) {
- return true; // Found a matching NFT
- }
- }
-
- return false; // No match found
-}
-
-// In the access control middleware/handler:
-const isHolder = await userHoldsNftFromCollection(user.wallet_address, agent.meta.access_rule.collection_address);
-
-if (!isHolder) {
- return error(res, 403, 'nft_required', 'Access denied. NFT from required collection not found in your wallet.');
-}
-// Proceed...
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/21_nft_gating.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/22-user-reviews-for-skills.md b/prompts/monetization/22-user-reviews-for-skills.md
deleted file mode 100644
index 2e9ecfdc4..000000000
--- a/prompts/monetization/22-user-reviews-for-skills.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-status: not-started
----
-
-# Prompt 22: User Reviews and Ratings for Skills
-
-## Objective
-Allow users to leave reviews and ratings for the skills they have purchased.
-
-## Explanation
-Social proof is a powerful factor in purchasing decisions. Reviews and ratings will help users identify high-quality skills and build trust in the marketplace.
-
-## Instructions
-1. **Update Database Schema:**
- * Create a `skill_reviews` table with columns for `skill_name`, `user_id`, `rating` (1-5), and a `comment`.
-
-2. **UI for Reviews:**
- * On the agent detail page, display the average rating for each skill.
- * Add a section where users can read all reviews for a skill.
- * Allow users who have purchased a skill to submit a review.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/22-user-reviews-for-skills.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/22_skill_subscriptions.md b/prompts/monetization/22_skill_subscriptions.md
deleted file mode 100644
index d24514802..000000000
--- a/prompts/monetization/22_skill_subscriptions.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 22: Skill Subscriptions (Recurring Revenue)
-
-## Objective
-Introduce a subscription model for skills, allowing creators to earn recurring revenue. Users can subscribe to a skill for a monthly fee to maintain access.
-
-## Explanation
-One-time purchases are great, but subscriptions provide creators with a predictable income stream and encourage them to keep their skills updated. This is a significant architectural addition, requiring a system to manage subscription state and handle recurring payments. For Solana, we can't use traditional server-side billing, so we'll model it as a system of time-limited access tokens that the user must renew.
-
-## Instructions
-1. **Database Schema for Subscriptions:**
- * Create a `skill_subscriptions` table:
- * `id`: Primary key.
- * `user_id`, `agent_id`, `skill_name`: Foreign keys.
- * `expires_at`: A timestamp indicating when the current subscription period ends.
- * `status`: An enum (e.g., `'active'`, `'expired'`, `'cancelled'`).
- * `last_payment_signature`: The signature of the latest renewal transaction.
-
-2. **Update UI for Price Setting:**
- * In `agent-edit.html`, allow creators to specify a price as "one-time" or "monthly."
- * If monthly, they set a monthly price. This gets stored in `agent_skill_prices` with a new column, e.g., `billing_interval: 'monthly'`.
-
-3. **Modify Purchase Flow:**
- * When a user "subscribes," the purchase flow is the same as a one-time purchase.
- * However, upon successful confirmation in `purchase-confirm`, a record is created in the `skill_subscriptions` table instead of `user_purchased_skills`. The `expires_at` is set to 30 days from now.
-
-4. **Update Access Control Logic:**
- * The skill ownership check (`api/chat.js`) must now also check the `skill_subscriptions` table.
- * If a user has an 'active' subscription and `expires_at` is in the future, they are granted access.
- * If `expires_at` is in the past, their status should be considered 'expired', and they should be denied access.
-
-5. **Renewal UI:**
- * In the marketplace UI, if a user has an expired subscription, the "Purchase" button should reappear as "Renew Subscription."
- * Clicking it triggers the same purchase flow, which, upon confirmation, updates the `expires_at` timestamp for the existing subscription record.
-
-## SQL Example (`skill_subscriptions` table)
-
-```sql
-CREATE TABLE IF NOT EXISTS skill_subscriptions (
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
- user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
- agent_id UUID NOT NULL REFERENCES agent_identities(id) ON DELETE CASCADE,
- skill_name VARCHAR(255) NOT NULL,
- expires_at TIMESTAMPTZ NOT NULL,
- status VARCHAR(50) NOT NULL DEFAULT 'active', -- e.g., 'active', 'expired'
- last_payment_signature VARCHAR(128),
- created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
- updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
-
- UNIQUE(user_id, agent_id, skill_name)
-);
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/22_skill_subscriptions.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/23-e2e-testing-purchase-flow.md b/prompts/monetization/23-e2e-testing-purchase-flow.md
deleted file mode 100644
index b1505932b..000000000
--- a/prompts/monetization/23-e2e-testing-purchase-flow.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# Prompt 23: E2E Testing for Purchase Flow
-
-## Objective
-Write an end-to-end (E2E) test using a framework like Playwright or Cypress to simulate and validate the entire skill purchase flow.
-
-## Explanation
-As the monetization feature becomes more complex, manual testing becomes time-consuming and prone to error. An automated E2E test will ensure the core purchase functionality remains stable as we add new features or refactor code. This test will mock the blockchain interaction but validate the entire UI and API flow.
-
-## Instructions
-1. **Set Up the Test Environment:**
- * Ensure you have Playwright or your chosen E2E testing framework installed and configured in the project.
- * You will need to set up a test that can handle authentication, likely by pre-setting an auth token in local storage.
-
-2. **Mock the Backend API:**
- * The test should not make real payments. You need to mock the API endpoints.
- * Mock `/api/payments/prepare-skill-purchase`: It should return a fake, but correctly structured, Solana Pay transaction response.
- * Mock `/api/payments/check-purchase-status`: The test should control this endpoint's response, initially returning `{ status: 'pending' }` and later switching to `{ status: 'confirmed' }` to simulate a successful purchase.
-
-3. **Write the Test Script:**
- * The test should perform the following steps:
- 1. Navigate to a specific agent's marketplace page.
- 2. Verify that the "Purchase" button is visible for a paid skill.
- 3. Click the "Purchase" button.
- 4. Assert that the payment modal appears and the QR code is rendered.
- 5. Trigger the mock API to switch to a "confirmed" status.
- 6. Wait for the polling mechanism to detect the change.
- 7. Assert that the modal closes automatically.
- 8. Assert that the "Purchase" button has been replaced with the "Owned" status indicator on the main page.
-
-## Test Script Example (Playwright)
-
-```javascript
-// tests/monetization.spec.ts
-import { test, expect } from '@playwright/test';
-
-test.describe('Skill Purchase Flow', () => {
- test('should allow a user to successfully purchase a skill', async ({ page }) => {
- const agentId = 'some-test-agent-id';
- const skillName = 'TestSkill';
-
- // Mock the backend APIs before navigating
- await page.route(`/api/payments/prepare-skill-purchase`, async route => {
- const json = {
- transaction: 'fake-serialized-transaction-base64',
- message: 'Test Purchase',
- reference: 'test-reference-123',
- };
- await route.fulfill({ json });
- });
-
- let purchaseStatus = 'pending';
- await page.route(`/api/payments/check-purchase-status?reference=test-reference-123`, async route => {
- await route.fulfill({ json: { status: purchaseStatus } });
- });
-
- // 1. Navigate to the page
- await page.goto(`/marketplace/agent/${agentId}`);
-
- // 2. Find and click the purchase button
- const purchaseButton = page.locator(`.purchase-skill-btn[data-skill-name="${skillName}"]`);
- await expect(purchaseButton).toBeVisible();
- await purchaseButton.click();
-
- // 3. Assert modal and QR code are visible
- await expect(page.locator('#payment-modal')).toBeVisible();
- await expect(page.locator('.qr-code-container svg')).toBeVisible();
-
- // 4. Simulate the successful payment confirmation
- purchaseStatus = 'confirmed';
-
- // 5. Assert that the modal closes and the UI updates
- await expect(page.locator('#payment-modal')).not.toBeVisible({ timeout: 10000 }); // Wait for poll
- const ownedIndicator = page.locator(`.skill-owned:has-text("Owned")`);
- await expect(ownedIndicator).toBeVisible();
- await expect(purchaseButton).not.toBeVisible();
- });
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/23-e2e-testing-purchase-flow.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/23-gifting-skills.md b/prompts/monetization/23-gifting-skills.md
deleted file mode 100644
index 66b52de28..000000000
--- a/prompts/monetization/23-gifting-skills.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Prompt 23: Gifting Skills
-
-## Objective
-Implement a feature that allows a user to purchase a skill and have the ownership NFT sent to another user's wallet address.
-
-## Explanation
-Gifting is a powerful social and commercial feature. It allows users to introduce others to the platform and expands the potential market for creators' skills.
-
-## Instructions
-1. **Add "Gift" Option to UI:**
- * In the purchase modal (from Prompt 3), add a checkbox or button that says "This is a gift."
- * When checked, reveal a new input field for the user to enter the recipient's Solana wallet address.
-
-2. **Modify Backend Minting Logic:**
- * Update the `/api/skills/mint` endpoint (from Prompt 7).
- * The endpoint should now optionally accept a `recipient_address` in the request body.
- * If `recipient_address` is provided, the backend must use *that* address as the owner when minting the NFT.
- * If it's not provided, it should default to the wallet address of the user making the purchase (the `user_wallet`).
-
-3. **Update Frontend Request:**
- * In `src/marketplace.js`, when the purchase is confirmed, check if the gift option is enabled.
- * If it is, validate the recipient address on the frontend, and then include it in the body of the `fetch` request to the `/api/skills/mint` endpoint.
-
-4. **Transaction Payer:**
- * The transaction for the *payment* is still paid and signed by the person buying the gift. The only thing that changes is the *destination address* for the NFT being minted.
-
-## Code Example (Frontend `marketplace.js`)
-```javascript
-// Inside the 'Confirm Purchase' click handler
-const isGift = document.getElementById('gift-checkbox').checked;
-let recipientAddress = null;
-
-if (isGift) {
- const input = document.getElementById('recipient-address-input');
- // Validate the address
- try {
- new PublicKey(input.value);
- recipientAddress = input.value;
- } catch (e) {
- alert('Invalid recipient address');
- return;
- }
-}
-
-// ... after payment is confirmed, call the mint endpoint
-const response = await fetch('/api/skills/mint', {
- method: 'POST',
- headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({
- // ... other params like agent_id, skill_name
- user_wallet: wallet.publicKey.toBase58(),
- recipient_address: recipientAddress // will be null if not a gift
- })
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/23-gifting-skills.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/23-on-chain-royalties.md b/prompts/monetization/23-on-chain-royalties.md
deleted file mode 100644
index 33301dc02..000000000
--- a/prompts/monetization/23-on-chain-royalties.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-status: not-started
----
-
-# Prompt 23: On-Chain Royalties for Skills
-
-## Objective
-Use an NFT-based approach to represent skill ownership, enabling on-chain royalties for creators.
-
-## Explanation
-This is a more decentralized and advanced approach to monetization. Each purchased skill could be represented as an NFT in the user's wallet. The NFT's metadata would grant access to the skill, and royalties could be enforced at the smart contract level.
-
-## Instructions
-1. **Smart Contract Development:**
- * Develop a smart contract (e.g., using Anchor for Solana) that can mint "Skill NFTs".
- * The contract would handle the logic for purchasing and transferring these NFTs.
- * Implement the Metaplex protocol for on-chain royalties, so that every time a Skill NFT is resold on a secondary market, the original creator gets a percentage.
-
-2. **Frontend Integration:**
- * The frontend would interact with this smart contract instead of a traditional backend API for purchases.
-
-3. **Access Control:**
- * The access control middleware would check the user's wallet for the presence of the required Skill NFT.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/23-on-chain-royalties.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24-analytics-and-tracking.md b/prompts/monetization/24-analytics-and-tracking.md
deleted file mode 100644
index 3ff14c4af..000000000
--- a/prompts/monetization/24-analytics-and-tracking.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# Prompt 24: Analytics and Tracking
-
-## Objective
-Integrate analytics events to track key user interactions throughout the monetization funnel, providing insights into user behavior and conversion rates.
-
-## Explanation
-To understand how users are interacting with the new payment features and to identify potential drop-off points, we need to track key events. This data is invaluable for making informed decisions on how to improve the feature. We can use a service like Segment, Amplitude, or a simple internal logging system.
-
-## Instructions
-1. **Choose an Analytics Provider:**
- * Select and set up an analytics service. For this example, we'll assume a simple global `analytics.track()` function is available (often provided by a Segment or similar script).
-
-2. **Define Key Events:**
- * Identify the most important events to track in the monetization funnel:
- * `Skill Purchase Initiated`: Fired when a user clicks the "Purchase" button.
- * `Payment QR Code Displayed`: Fired when the QR code is successfully rendered.
- * `Skill Purchase Succeeded`: Fired when the frontend confirms a successful purchase.
- * `Skill Purchase Failed`: Fired when any error occurs during the process.
- * `Skill Prices Saved`: Fired when a creator successfully saves new prices.
-
-3. **Implement Tracking Calls (Frontend):**
- * In your frontend JavaScript (`src/marketplace.js`, `src/agent-edit.js`), call `analytics.track()` at the appropriate points in the code.
- * Include relevant properties with each event, such as `agentId`, `skillName`, `price`, and `currency`.
-
-## Code Example (Frontend - `src/marketplace.js`)
-
-```javascript
-// This is a placeholder for your analytics library's API
-// e.g., window.analytics.track(...)
-const trackEvent = (eventName, properties) => {
- console.log('[Analytics]', eventName, properties);
- // In a real app, this would send data to Segment, Amplitude, etc.
- if (window.analytics) {
- window.analytics.track(eventName, properties);
- }
-};
-
-// In handlePurchaseClick function
-async function handlePurchaseClick(event) {
- // ...
- const skillName = button.dataset.skillName;
- const agentId = /* ... */;
- const price = /* ... get price ... */;
-
- // 1. Track when the purchase is initiated
- trackEvent('Skill Purchase Initiated', {
- agentId: agentId,
- skillName: skillName,
- price: price,
- currency: 'USDC',
- });
-
- try {
- // ... (API call to prepare purchase)
-
- // 2. Track when the QR code is shown
- trackEvent('Payment QR Code Displayed', {
- agentId: agentId,
- skillName: skillName,
- });
-
- // ... (Polling logic)
- if (status === 'confirmed') {
- // 3. Track successful purchase
- trackEvent('Skill Purchase Succeeded', {
- agentId: agentId,
- skillName: skillName,
- price: price,
- });
- }
-
- } catch (error) {
- // 4. Track failure
- trackEvent('Skill Purchase Failed', {
- agentId: agentId,
- skillName: skillName,
- error: error.message,
- });
- // ...
- }
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24-analytics-and-tracking.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24-dynamic-pricing.md b/prompts/monetization/24-dynamic-pricing.md
deleted file mode 100644
index 317efe5c4..000000000
--- a/prompts/monetization/24-dynamic-pricing.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-status: not-started
----
-
-# Prompt 24: Dynamic Pricing
-
-## Objective
-Allow creators to set dynamic pricing rules for their skills, for example, based on demand or time.
-
-## Explanation
-Dynamic pricing can help creators maximize their revenue. For example, they could offer a discount for the first 100 buyers or increase the price as the skill becomes more popular.
-
-## Instructions
-1. **UI for Pricing Rules:**
- * In the creator UI, add an advanced section for setting up pricing rules.
- * Example rules: "First 100 purchases cost X", "Price increases by Y after every Z sales".
-
-2. **Backend Logic:**
- * The backend will need a rules engine to calculate the current price of a skill based on these rules and the sales history.
- * This will be a complex piece of logic that needs to be carefully designed and tested.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24-dynamic-pricing.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24-end-to-end-monetization-testing.md b/prompts/monetization/24-end-to-end-monetization-testing.md
deleted file mode 100644
index cf8767c97..000000000
--- a/prompts/monetization/24-end-to-end-monetization-testing.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Prompt 24: End-to-End Monetization Testing
-
-## Objective
-Write a suite of end-to-end (E2E) tests to validate the entire skill monetization flow, from a user connecting their wallet to a creator seeing the sale in their dashboard.
-
-## Explanation
-The monetization flow is complex, involving multiple frontend components, backend APIs, database interactions, and on-chain transactions. Manual testing is error-prone and time-consuming. An automated E2E test suite using a framework like Playwright is essential to ensure the system is robust, secure, and reliable, especially before and after deploying changes.
-
-## Instructions
-1. **Set up Playwright:**
- * If not already in the project, add Playwright: `npm install -D playwright`.
- * Configure it in `playwright.config.js`. You'll need to set up a base URL and potentially a test user account.
-
-2. **Set up a Test Wallet:**
- * The tests will need a Solana wallet with devnet funds. The private key for this test wallet can be stored as a secret environment variable and used to programmatically sign transactions during the test run.
-
-3. **Write Test Scenarios:**
- * Create a new test file, e.g., `tests/monetization.spec.js`.
- * **Scenario 1: One-Time Purchase**
- * `test.beforeAll()`: Create a test agent and a test creator user via API. Set a price on one of the agent's skills.
- * Test that a guest user cannot purchase the skill.
- * Test that a logged-in user can connect their wallet, navigate to the agent, click the skill, confirm, and "sign" the transaction. (Playwright can mock the wallet interaction).
- * Test that after purchase, the skill appears as "owned".
- * Test that the creator can log in and see the sale in their earnings dashboard.
- * **Scenario 2: Subscription**
- * Similar setup, but test subscribing to a tier.
- * Test that the user gains access to all skills within that tier.
- * Test that access is revoked after the subscription period ends (requires time-mocking or a special test setup).
-
-## Playwright Test Example (`tests/monetization.spec.js`)
-
-```javascript
-import { test, expect } from '@playwright/test';
-import { login, createTestAgent } from './test-helpers'; // Assume helper functions exist
-
-test.describe('Skill Monetization E2E', () => {
- let agentId;
- let creatorToken;
- const skillName = 'premium_skill';
-
- test.beforeAll(async ({ request }) => {
- // Create a creator and an agent with a priced skill
- const creator = await login(request, 'creator');
- creatorToken = creator.token;
- const agent = await createTestAgent(request, creatorToken, {
- skills: [{ name: skillName }],
- prices: { [skillName]: { amount: 1000000, currency_mint: 'USDC_MINT' } }
- });
- agentId = agent.id;
- });
-
- test('a user can purchase a skill', async ({ page, context }) => {
- // Login as a buyer
- const buyer = await login(context);
-
- // TODO: Inject a mock wallet into the browser context for the buyer
- // This is an advanced setup but crucial for testing.
-
- await page.goto(`/marketplace/agents/${agentId}`);
-
- // Find the skill and its price badge
- const skillEntry = page.locator('.skill-entry', { hasText: skillName });
- await expect(skillEntry.locator('.price-paid')).toBeVisible();
-
- // Click to open purchase modal
- await skillEntry.click();
- await expect(page.locator('#purchaseModal')).toBeVisible();
-
- // Click "Buy Now"
- await page.locator('#confirmPurchaseBtn').click();
-
- // The test would now need to handle the mock wallet signing prompt
- // and wait for the post-purchase confirmation.
-
- // Assert that the UI updates to show ownership
- await expect(page.locator('.skill-entry', { hasText: skillName }).locator('.owned-badge')).toBeVisible();
- });
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24-end-to-end-monetization-testing.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24-skill-bundles.md b/prompts/monetization/24-skill-bundles.md
deleted file mode 100644
index dfc7d26c0..000000000
--- a/prompts/monetization/24-skill-bundles.md
+++ /dev/null
@@ -1,108 +0,0 @@
----
-status: not-started
----
-
-# Prompt 24: Skill Bundles
-
-## Objective
-Implement a "Skill Bundle" feature, allowing creators to sell a group of skills together, often at a discounted price.
-
-## Explanation
-Bundles are a powerful sales tool. They increase the average transaction value and provide a convenient way for users to acquire a suite of related skills. This requires a new database structure to define bundles and updates to both the backend and frontend.
-
-## Instructions
-1. **Database Schema:**
- * Create a new table: `agent_skill_bundles`.
- * Columns: `id`, `agent_id`, `name`, `description`, `price_amount`, `price_currency_mint`.
- * Create a linking table: `bundle_skills`.
- * Columns: `bundle_id` (foreign key to `agent_skill_bundles`), `skill_name`.
-
-2. **Creator UI for Bundles:**
- * In the `agent-edit.html` page, add a new section for "Skill Bundles".
- * Provide a UI for creators to:
- * Create a new bundle (giving it a name, description, and price).
- * Select which of the agent's existing skills to include in the bundle (e.g., using a multi-select list or checkboxes).
- * View, edit, and delete existing bundles.
-
-3. **Backend API for Bundles:**
- * Create CRUD API endpoints for managing bundles (e.g., `POST /api/agents/:id/bundles`, `PUT /.../:bundleId`, etc.), similar to the subscription tier APIs.
- * These endpoints will manage the `agent_skill_bundles` and `bundle_skills` tables.
-
-4. **Frontend Display:**
- * On the agent detail page, display a new section for "Bundles".
- * Render a card for each available bundle, showing its name, price, and the list of skills included.
- * Add a "Buy Bundle" button.
-
-5. **Purchase Flow:**
- * The purchase flow for a bundle will be nearly identical to a single skill purchase.
- * The backend transaction endpoint will receive a `bundleId` instead of a `skillName`.
- * Upon successful payment verification, the backend must add a separate entry in the `user_unlocked_skills` table for *each skill* included in the purchased bundle. This ensures the skill-gating mechanism works without modification.
-
-## Code Example (Frontend Bundle Card)
-
-```html
-<!-- Inside the new "Bundles" section on the agent detail page -->
-<div class="bundle-card">
- <div class="bundle-name">Master Collection</div>
- <div class="bundle-price">10.00 USDC</div>
- <ul class="bundle-skills-list">
- <li>Advanced Analysis</li>
- <li>Market Prediction</li>
- <li>Auto-Trading</li>
- </ul>
- <p class="bundle-description">Get all the essential trading skills in one package!</p>
- <button class="buy-button">Buy Bundle</button>
-</div>
-```
-
-## Code Example (Backend - Purchase Verification Logic)
-
-```javascript
-// Inside your purchase verification endpoint, when a bundleId is detected
-async function unlockSkillsForBundle(userId, bundleId, transactionSignature) {
- // 1. Get all skill names associated with this bundle
- const skillsResult = await db.query(
- 'SELECT skill_name FROM bundle_skills WHERE bundle_id = $1',
- [bundleId]
- );
- const skillsToUnlock = skillsResult.rows.map(r => r.skill_name);
-
- // Get the agent_id from the bundle
- const bundleResult = await db.query('SELECT agent_id FROM agent_skill_bundles WHERE id = $1', [bundleId]);
- const agentId = bundleResult.rows[0].agent_id;
-
- // 2. Insert a record for each skill into the user's unlocked skills
- // Use a transaction for atomicity
- const client = await db.getClient();
- try {
- await client.query('BEGIN');
- for (const skillName of skillsToUnlock) {
- await client.query(
- `INSERT INTO user_unlocked_skills (user_id, agent_id, skill_name, transaction_signature)
- VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING`,
- [userId, agentId, skillName, transactionSignature]
- );
- }
- await client.query('COMMIT');
- } catch (e) {
- await client.query('ROLLBACK');
- throw e; // Propagate error
- } finally {
- client.release();
- }
-}
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24-skill-bundles.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24-skill-bundling.md b/prompts/monetization/24-skill-bundling.md
deleted file mode 100644
index 9b763505b..000000000
--- a/prompts/monetization/24-skill-bundling.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# Prompt 24: Skill Bundling
-
-## Objective
-Allow creators to bundle multiple skills together for a single, often discounted, price.
-
-## Explanation
-Bundles are a classic marketing strategy. They increase the average transaction value for creators and provide better value for users who want to acquire multiple skills from a single agent.
-
-## Instructions
-1. **Database Schema for Bundles:**
- * Create a `skill_bundles` table. Columns should include `id`, `agent_id`, `name`, `price`, `currency_mint`.
- * Create a `bundle_items` table to link bundles to skills. Columns: `id`, `bundle_id`, `skill_name`.
-
-2. **UI for Creating Bundles:**
- * In the creator dashboard, add a new section for "Manage Bundles."
- * Here, a creator can create a new bundle, give it a name and price, and select which of their existing skills to include in it.
-
-3. **Backend API for Bundles:**
- * Create CRUD endpoints (`/api/agents/:id/bundles`) for creating, updating, and deleting skill bundles.
-
-4. **Display Bundles in Marketplace:**
- * On the agent detail page, display any available bundles, perhaps in their own section above the individual skills.
- * Each bundle should show its name, price, and the list of skills included.
- * Add a "Purchase Bundle" button.
-
-5. **Purchase Logic for Bundles:**
- * When a bundle is purchased, the payment logic is the same (transferring the bundle price).
- * However, the minting logic is different. After the payment is confirmed, the `/api/skills/mint` endpoint must be called in a loop, once for **each skill** included in the bundle, minting multiple NFTs to the user's wallet.
-
-## Code Example (UI Concept on Marketplace Page)
-```html
-<div class="bundle-card">
- <h3>The 'Dancer's Pack' Bundle</h3>
- <p class="bundle-price">5.00 USDC (Save 20%)</p>
- <ul class="bundle-contents">
- <li>Skill: ballet</li>
- <li>Skill: hip_hop</li>
- <li>Skill: tango</li>
- </ul>
- <button class="purchase-bundle-btn" data-bundle-id="123">Purchase Bundle</button>
-</div>
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24-skill-bundling.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/24_creator_analytics.md b/prompts/monetization/24_creator_analytics.md
deleted file mode 100644
index f51fdea66..000000000
--- a/prompts/monetization/24_creator_analytics.md
+++ /dev/null
@@ -1,76 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 24: Analytics for Creators
-
-## Objective
-Provide creators with analytics on how users are interacting with their paid skills, helping them understand what's popular and what's not.
-
-## Explanation
-Beyond sales data, creators need insight into skill usage to improve their offerings. We will track every time a paid skill is executed and present this data in the creator dashboard.
-
-## Instructions
-1. **Database Schema for Skill Usage:**
- * Create a new table `skill_usage_logs`.
- * Columns: `id`, `user_id`, `agent_id`, `skill_name`, `created_at`, `status` ('success' or 'failure'), `execution_time_ms`.
-
-2. **Log Skill Executions:**
- * In the main skill execution API (`api/chat.js`), after the ownership/access control check passes, add a logging step.
- * Before executing the skill, record the start time.
- * After execution, record the end time and whether it succeeded or failed.
- * Asynchronously (to avoid slowing down the chat response), insert a new record into the `skill_usage_logs` table with this information.
-
-3. **Backend API for Analytics:**
- * Create a new endpoint, `GET /api/creators/skill-analytics`.
- * This endpoint will query the `skill_usage_logs` table for agents owned by the current user.
- * It should aggregate the data to provide metrics like:
- * Total usage count per skill.
- * Unique users per skill.
- * Success/failure rate per skill.
- * Average execution time per skill.
-
-4. **Frontend Dashboard UI:**
- * In `creator-dashboard.html`, add a new section for "Skill Analytics."
- * Fetch data from the new analytics endpoint.
- * Display the aggregated data in a table. This gives creators a clear overview of which of their skills are most used, most reliable, and fastest.
- * Optionally, add charts to visualize usage trends over time.
-
-## Code Example (Logging in `api/chat.js`)
-
-```javascript
-// ... after access control checks pass
-const startTime = Date.now();
-let status = 'success';
-let result;
-
-try {
- result = await executeSkill(skillName, ...);
-} catch (e) {
- status = 'failure';
- throw e; // Re-throw the error to the user
-} finally {
- const executionTimeMs = Date.now() - startTime;
- // Log asynchronously without waiting
- sql`
- INSERT INTO skill_usage_logs (user_id, agent_id, skill_name, status, execution_time_ms)
- VALUES (${userId}, ${agentId}, ${skillName}, ${status}, ${executionTimeMs})
- `.catch(dbErr => console.error("Failed to log skill usage:", dbErr));
-}
-
-return result;
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/24_creator_analytics.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/25-creator-documentation.md b/prompts/monetization/25-creator-documentation.md
deleted file mode 100644
index fa1202d87..000000000
--- a/prompts/monetization/25-creator-documentation.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# Prompt 25: Documentation for Creators
-
-## Objective
-Create a well-written documentation page that explains the monetization features to agent creators, covering how to set prices, how payouts work, and the platform fees.
-
-## Explanation
-To encourage adoption of the new monetization features, we need to provide clear and comprehensive documentation for our creators. This page should be the go-to resource for any creator looking to start selling their skills.
-
-## Instructions
-1. **Create a New Docs Page:**
- * In the `docs/` directory, create a new file, e.g., `monetization.md` or `selling-skills.md`.
- * Add a link to this new page in your main documentation navigation.
-
-2. **Write the Content:**
- * Structure the document with clear headings.
- * **Introduction:** Briefly explain the opportunity for creators to earn revenue.
- * **Getting Started:** A step-by-step guide:
- 1. "Set up your Payout Wallet": Explain where to find this setting in their dashboard and why it's important. Include a screenshot.
- 2. "Pricing Your Skills": Show them where to go in the agent editor to set prices. Explain that a price of 0 means the skill is free.
- * **How Payouts Work:**
- * Explain that payments are made instantly on the Solana blockchain.
- * Clarify that funds are sent directly to their configured payout wallet.
- * **Platform Fees:**
- * Be transparent about the platform fee. State the percentage clearly (e.g., "three.ws takes a 5% platform fee on every sale.").
- * Explain that this fee is automatically deducted from the transaction.
- * **FAQ Section:**
- * "What currency can I sell in?" (Initially, just USDC).
- * "When do I get paid?" (Instantly).
- * "Where can I see my sales?" (Link to their Transaction History dashboard).
-
-3. **Review and Publish:**
- * Read through the documentation to ensure it's clear, concise, and free of jargon.
- * Publish the page so it's accessible to creators.
-
-## Markdown Example (`docs/selling-skills.md`)
-
-```markdown
-# Monetizing Your Agent's Skills
-
-Welcome, creator! This guide will walk you through setting up your account to sell your agent's unique skills on the marketplace.
-
-## How It Works
-
-Our platform allows you to set a price for any skill your agent possesses. When a user wants to unlock that capability, they can purchase it directly from your agent's page. Payments are handled instantly and securely on the Solana blockchain.
-
-## Getting Started: 2 Simple Steps
-
-### 1. Set Your Payout Wallet
-
-Before you can receive payments, you need to tell us where to send the funds.
-
-- Go to your **Dashboard**.
-- Navigate to the **Settings** tab.
-- In the "Payout Wallet" section, enter your Solana public key. This is where all your earnings will be sent.
-- Click "Save".
-
-![Screenshot of payout wallet setting](./images/payout-wallet-setting.png)
-
-### 2. Price Your Skills
-
-Now you're ready to set prices.
-
-- Go to **My Agents** and select the agent you wish to edit.
-- In the agent editor, find the "Skills" section.
-- Next to each skill, you'll see an input field for the price in USDC.
-- To make a skill free, simply leave the price as 0.
-- Click "Save Prices" when you're done.
-
-## Platform Fees
-
-three.ws takes a 5% platform fee on every sale. This fee is automatically deducted from the purchase amount during the transaction. For example, if you price a skill at 1.00 USDC, you will receive 0.95 USDC.
-
-## Frequently Asked Questions
-
-**Q: When do I get paid?**
-A: Instantly. The payment is sent to your wallet as soon as the user's transaction is confirmed on the blockchain.
-
-**Q: Where can I track my sales?**
-A: You can see a full list of all your sales in the "Transaction History" section of your dashboard.
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/25-creator-documentation.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/25-documentation-for-creators.md b/prompts/monetization/25-documentation-for-creators.md
deleted file mode 100644
index bff6ab03b..000000000
--- a/prompts/monetization/25-documentation-for-creators.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# Prompt 25: Documentation for Creators
-
-## Objective
-Create a comprehensive guide for agent creators that explains how to use the monetization features, including setting up their payout wallet, pricing their skills, and understanding the fee structure.
-
-## Explanation
-To ensure a successful launch of the monetization features, creators need clear and accessible documentation. A well-written guide reduces support requests and empowers creators to get started quickly. This document will be a new page in the main `docs` section of the website.
-
-## Instructions
-1. **Create a New Markdown File:**
- * Create `docs/for-creators/monetization.md`.
-
-2. **Write the Content:**
- * Structure the document with clear headings and a logical flow.
- * **Introduction:** Briefly explain the benefits of monetizing agent skills.
- * **Getting Started (Checklist):**
- 1. Create an Agent.
- 2. Set up your Payout Wallet.
- 3. Price your Skills.
- 4. Publish your Agent.
- * **Payout Wallet Setup:**
- * Provide a step-by-step guide on where to find the monetization dashboard.
- * Explain the importance of using a secure, self-custody Solana wallet.
- * Show a screenshot of the input field.
- * **Pricing Models:**
- * Explain the "One-Time Purchase" model.
- * Explain the "Subscription" model and how tiers work.
- * Explain the "Pay-per-call" model for usage-based skills.
- * Provide best-practice recommendations for pricing.
- * **Fee Structure:**
- * Be transparent about any platform fees. For example: "The platform takes a 5% fee on all primary sales to support development and maintain the marketplace."
- * Explain how Solana network fees work.
- * **Viewing Earnings:**
- * Guide the user through the Earnings Dashboard, explaining each metric.
- * **FAQ Section:**
- * "How often are payouts processed?"
- * "What currencies are supported?"
- * "Can I change the price of a skill after it's published?"
-
-3. **Link to the New Doc:**
- * Add a link to this new documentation page from the creator dashboard UI to make it easily discoverable.
-
-## Excerpt from `monetization.md`
-
-```markdown
----
-title: Monetizing Your Agent
-description: A guide for creators on how to sell access to their agent's skills on the marketplace.
----
-
-# Monetizing Your Agent
-
-Welcome, creator! The three.ws platform provides powerful tools to help you earn revenue from the unique skills you build for your AI agents. This guide will walk you through the entire process, from setting up your wallet to understanding your earnings.
-
-## How It Works
-
-You can monetize your agent's skills in three ways:
-
-1. **One-Time Purchase:** Users pay once to unlock permanent access to a specific skill.
-2. **Subscriptions:** Users pay a recurring fee (e.g., monthly) for access to a bundle of skills defined in a "tier."
-3. **Pay-per-Call:** For resource-intensive skills, you can charge users a small amount for each time they use the skill.
-
-## Getting Started: Your 4-Step Checklist
-
-1. **Have an Agent:** You need an agent with at least one custom skill. You can create one in the [Agent Editor](/agent-edit).
-2. **Set Your Payout Wallet:** Go to the "Monetization" tab in the editor and enter your Solana wallet address. This is where your earnings will be sent.
-3. **Price Your Skills:** Use the tools in the Monetization tab to set prices for individual skills or group them into subscription tiers.
-4. **Publish:** Once your agent is public in the marketplace, users can start buying your skills!
-
-... (continue with detailed sections) ...
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/25-documentation-for-creators.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/25-fiat-on-ramp-integration.md b/prompts/monetization/25-fiat-on-ramp-integration.md
deleted file mode 100644
index c861673a2..000000000
--- a/prompts/monetization/25-fiat-on-ramp-integration.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-status: not-started
----
-
-# Prompt 25: Fiat On-Ramp Integration
-
-## Objective
-Integrate a fiat on-ramp service (like Crossmint or Moonpay) to allow users to purchase skills with a credit card.
-
-## Explanation
-To reach the widest possible audience, it's essential to offer a way for non-crypto-native users to participate. A fiat on-ramp will handle the conversion from fiat to the required cryptocurrency, making the process seamless for the user.
-
-## Instructions
-1. **Choose a Provider:**
- * Research and select a fiat on-ramp provider that offers a good developer experience and supports Solana.
-
-2. **Integrate their SDK:**
- * In the frontend, integrate the provider's SDK.
- * The "Purchase" button would open their widget, where the user can complete the payment with a credit card.
-
-3. **Webhook for Confirmation:**
- * The on-ramp service will typically send a webhook to your backend when the crypto transaction is complete.
- * Your backend will listen for this webhook, verify it, and then unlock the skill for the user.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/25-fiat-on-ramp-integration.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/monetization/25_admin_panel.md b/prompts/monetization/25_admin_panel.md
deleted file mode 100644
index 7834d654e..000000000
--- a/prompts/monetization/25_admin_panel.md
+++ /dev/null
@@ -1,75 +0,0 @@
----
-status: not-started
-last_updated: 2026-05-04
----
-# Prompt 25: Admin Panel for Monetization Management
-
-## Objective
-Create a secure admin-only panel to oversee and manage all monetization-related activities on the platform.
-
-## Explanation
-A robust platform needs an internal dashboard for administrators to monitor the health of the monetization system, manage disputes, and configure global settings. This is a critical tool for operations and support.
-
-## Instructions
-1. **Admin Authentication/Authorization:**
- * Implement a role-based access control (RBAC) system. In the `users` table, add an `is_admin` boolean flag.
- * Create a backend middleware that checks this flag for all admin API endpoints. If `is_admin` is not true, reject the request.
-
-2. **Create the Admin UI:**
- * Create a new, separate frontend application or a secured route (e.g., `/admin`) for the admin panel.
- * This UI will be built to consume new, admin-only API endpoints.
-
-3. **Backend APIs for Admin:**
- * Create a new set of API routes under `/api/admin/`.
- * **Global Stats (`/api/admin/stats`):**
- * Display platform-wide revenue, total sales, new subscriptions, etc.
- * **Transaction Viewer (`/api/admin/transactions`):**
- * A searchable, paginated view of the `user_purchased_skills` and `skill_subscriptions` tables. Allows admins to look up any purchase.
- * **Currency Management (`/api/admin/currencies`):**
- * An interface to manage the `SUPPORTED_CURRENCIES` whitelist. Admins can add or disable currencies without a code deployment.
- * **Platform Fee Configuration (`/api/admin/settings`):**
- * Allow admins to view and update the platform fee percentage and treasury wallet address.
-
-4. **Key Admin Features:**
- * **Revenue Monitoring:** Dashboards with charts showing total platform revenue over time.
- * **Dispute Resolution:** A feature that would allow an admin to, for example, manually credit a user with a skill if a purchase failed in a way our system didn't catch. This would involve manually inserting a row into `user_purchased_skills`.
- * **User Lookup:** The ability to look up a user and see all their purchases and subscriptions.
-
-## Code Example (Admin Auth Middleware)
-
-```javascript
-// In api/_lib/auth.js or a new middleware file
-
-export async function requireAdmin(req, res) {
- const user = await getSessionUser(req);
- if (!user || !user.is_admin) {
- error(res, 403, 'forbidden', 'You do not have administrative privileges.');
- return null; // Stop execution
- }
- return user; // Proceed
-}
-
-// In an admin API handler
-import { requireAdmin } from '../../_lib/auth.js';
-
-export default wrap(async (req, res) => {
- const adminUser = await requireAdmin(req, res);
- if (!adminUser) return; // Stop if not admin
-
- // ... proceed with admin-only logic
-});
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/25_admin_panel.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/prompts/moonshots/00-README-orchestration.md b/prompts/moonshots/00-README-orchestration.md
deleted file mode 100644
index 3ceb3bafa..000000000
--- a/prompts/moonshots/00-README-orchestration.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Moonshots — five gamechanging features for three.ws
-
-> **You are building the things competitors cannot copy this quarter.** Each file
-> in this directory is a self-contained brief for ONE agent chat. Read this README
-> first, then open your assigned task file and execute it end-to-end.
-
-## The thesis
-
-three.ws is the only platform that has **all** of these wired and live at once:
-
-- Self-custodial **agent wallets** (Solana + EVM), AES-256-GCM at rest, spend policy,
- audit trail — `api/_lib/agent-wallet.js`, `api/agents/`.
-- **x402 machine-payable endpoints** + **agent-to-agent invocation protocol** with
- on-chain settlement — `api/x402/`, `agent-protocol-sdk/`, `contracts/agent-invocation/`.
-- **On-chain skill licenses** (each skill = a 1/1 SPL NFT + `SkillLicense` PDA) —
- `contracts/skill-license/`, `api/_lib/skill-license-onchain.js`, `api/skills/`.
-- **Embodied 3D agents** with animation, voice (TTS + cloning + lip-sync), positional
- audio — `src/viewer.js`, `api/tts/speak.js`, `src/voice/lipsync-driver.js`.
-- **IRL geospatial AR** presence, privacy-by-design coarse geocells, WebXR placement —
- `api/irl/`, `multiplayer/src/rooms/IrlRoom.js`, `src/ar/webxr.js`.
-- **Live multiplayer worlds** (Colyseus) with an in-world economy —
- `multiplayer/src/rooms/WalkRoom.js`, `src/club.js`.
-- **Real on-chain markets** — pump.fun launches, Jupiter swaps, Helius webhooks,
- the **$THREE** coin (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-
-A commodity AI app has none of these. Our moonshots **combine** them into experiences
-that are structurally impossible for a chat-wrapper competitor to ship. That is the bar.
-
-## The five moonshots
-
-| # | File | One line | Primary assets combined |
-|---|------|----------|--------------------------|
-| 1 | [01-agent-labor-market.md](./01-agent-labor-market.md) | Agents autonomously hire, pay, and verify other agents — a real machine economy | agent-wallet × x402 × agent-protocol × skill-licenses |
-| 2 | [02-proof-of-presence-world-lines.md](./02-proof-of-presence-world-lines.md) | Physically-anchored AR quests that mint cryptographic proof you were there | IRL × WebXR × agent-wallet signatures × $THREE |
-| 3 | [03-agent-genome-breeding.md](./03-agent-genome-breeding.md) | Combine two agents into a provably-inherited offspring (brain, voice, body, skills) | fork × brain × voice × skill-licenses × on-chain lineage |
-| 4 | [04-living-stages-performances.md](./04-living-stages-performances.md) | Live, monetized, embodied agent performances with spatial voice + tips | Colyseus × TTS/lip-sync × positional audio × x402 tips |
-| 5 | [05-reasoning-ledger-reputation.md](./05-reasoning-ledger-reputation.md) | Every agent decision becomes an auditable, on-chain-anchored track record | memory × trades × reputation registry × oracle/Telegram |
-
-These are independent — run all five in parallel, one agent chat each. Each touches a
-mostly-distinct slice of the codebase; where two touch a shared file, **stage explicit
-paths only** and re-check `git status`/`git diff --staged` before committing (other
-moonshot agents are editing `main` concurrently — see CLAUDE.md "Known traps").
-
-## Non-negotiable rules for every moonshot agent
-
-These OVERRIDE any instinct to cut a corner. They restate and sharpen `CLAUDE.md` —
-read that file in full before you write a line.
-
-1. **Invent, don't imitate.** The feature already half-exists in some competitor? Then
- you have the wrong design. Find the version that makes someone screenshot it and
- post it. If your plan feels safe, raise the bar before you start.
-2. **No mocks. No fake data. No placeholders. Ever.** Real APIs, real endpoints, real
- on-chain calls, real money rails. If a credential is missing, find it in `.env` /
- `vercel env` and proceed. A demo with fake data is a failure, not a milestone.
-3. **Wire it 100%.** Every button works, every link goes somewhere, every state is
- reachable. A feature that isn't navigable from the live UI does not exist. Trace the
- full path: data source → transform → render → error boundary → on-chain settlement.
-4. **$THREE is the only coin.** Contract `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
- Never name, hardcode, or recommend any other token anywhere (code, copy, tests,
- commits). The two runtime-data exceptions in CLAUDE.md still apply — read them.
-5. **Every state is designed.** Loading (skeletons, not spinners), empty (tells the user
- what to do next), error (actionable recovery), populated, overflow. Microinteractions,
- hover/active/focus, reduced-motion, keyboard nav, ARIA, 320/768/1440. This is the product.
-6. **Security at the boundary.** Anything that moves funds or mutates on-chain state must
- enforce ownership server-side (`user_id === auth.userId`), CSRF on writes, spend-policy
- checks, idempotency on settlement. Never client-only gating on money.
-7. **Then make it better.** When the feature works, do NOT stop. Step back as a founder:
- what's the highest-leverage improvement that would make this *unforgettable*? Build it.
- Repeat until you'd proudly demo it to a room of senior engineers. Only then are you done.
-
-## Definition of done (every moonshot)
-
-- [ ] Built, wired into the live UI, reachable by navigation, and cross-linked to related
- surfaces (a new feature that doesn't connect to the rest of the platform is half-built).
-- [ ] `npm run dev`, exercised in a real browser. Zero console errors/warnings from your code.
-- [ ] Network tab shows **real** API + on-chain calls succeeding with real data.
-- [ ] Every interactive element has hover/active/focus; every state designed; responsive; a11y.
-- [ ] Server-side ownership + spend enforcement on every money/on-chain path; idempotent settle.
-- [ ] `npm test` green; new pure logic unit-tested; e2e for the critical happy + failure path.
-- [ ] Real `data/changelog.json` entry (holder-readable) + `npm run build:pages` to validate.
-- [ ] `git diff` self-reviewed; every changed line justified; no fake data, no TODO, no dead path.
-- [ ] You ran the self-improvement loop (rule 7) at least once and shipped the improvement.
-
-## On completion — delete your prompt
-
-Each task file is a unit of work, not a permanent doc. The moment your feature is built,
-wired, verified, and committed, remove your file in the **same** change:
-
-```bash
-git rm "prompts/moonshots/<your-file>.md"
-```
-
-When all five task files are gone, delete this README too — the program has shipped.
diff --git a/prompts/moonshots/05-reasoning-ledger-reputation.md b/prompts/moonshots/05-reasoning-ledger-reputation.md
deleted file mode 100644
index b3d3817f8..000000000
--- a/prompts/moonshots/05-reasoning-ledger-reputation.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# Moonshot 05 — The Reasoning Ledger (auditable agent track record & explainable decisions)
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) and the repo-root
-> `CLAUDE.md` first. Ships a complete trust-infrastructure feature — not a log viewer.
-
-## The invention
-
-Every consequential decision an agent makes — a trade, a snipe, a bounty award (Moonshot
-01), a hire, a moderation action — is recorded as a structured, timestamped, **publicly
-auditable "thought"**: what it decided, *why* (the reasoning + the inputs it saw), what it
-predicted, and — crucially — what actually **happened**. The ledger is cryptographically
-anchored (so entries can't be backdated or quietly edited) and rolls up into a **provable
-reputation**: not vibes, but a track record you can interrogate. "This trading agent is up
-40% — show me every call it made and whether it was right."
-
-Today an agent's decisions are a black box: holders trust a number with no way to audit it.
-The Reasoning Ledger makes agents **accountable and explainable**, turning track record
-into a first-class, verifiable, *tradeable* asset.
-
-Why it's gamechanging: trust is the bottleneck for autonomous agents handling real money.
-An agent that can **prove** its reasoning and its hit-rate is worth more, gets hired more
-(Moonshot 01), and commands a premium. It is the credit score / audited-track-record layer
-the entire agent economy is missing — and it's only credible *because* three.ws agents take
-real, on-chain, consequential actions (not simulated ones).
-
-## Real systems to build on (already wired)
-
-- **Decision sources** — `api/trades/`, `api/trading/`, `workers/agent-sniper/` (real
- trades + snipes), `api/brain/` (reasoning), Moonshot 01's labor decisions, `api/irl/report.js`
- (moderation actions). Capture decisions at these existing chokepoints — don't bolt on a
- parallel path; instrument the real ones.
-- **Memory + embeddings** — `api/memory/` (working/recall/archival, RAG). The ledger is a
- durable, queryable decision memory; reuse the embedding/recall infra for semantic search.
-- **Outcome data (ground truth)** — `api/_lib/helius.js` (on-chain trade confirmation),
- `api/_lib/birdeye.js` + Jupiter (price outcomes), `api/pump/` (graduation outcomes),
- `api/oracle/`. An entry isn't complete until its *outcome* is reconciled against reality.
-- **On-chain anchoring** — `contracts/` (ERC-8004 attestation), `contracts/agent-invocation/`.
- Anchor a periodic Merkle root / commitment of the ledger so entries are tamper-evident
- without putting every thought on-chain. Expose verification.
-- **Reputation** — align with the reputation registry direction in
- `tasks/trading-frontier/` (read it; build the durable, auditable substrate it implies).
-- **Delivery** — `api/_lib/alerts.js` (Telegram, incl. oracle/sniper channels),
- `api/notifications/`. Surface notable calls + outcomes to holders.
-- **LLM** — `api/chat.js`; when an agent acts, capture the *actual* reasoning trace, don't
- re-confabulate it after the fact. Use the latest Claude where summarization is needed.
-
-## Scope — capture, reconcile, prove, surface
-
-1. **Ledger data model + write path (`api/_lib/reasoning-ledger.js`)** — `agent_decisions`
- (agent_id, kind, inputs_snapshot, rationale, prediction, confidence, action_ref/tx_sig,
- decided_at, entry_hash, prev_hash) forming a **hash-chain per agent** (each entry commits
- to the previous → tamper-evident, cheap, no per-entry chain write). Plus `decision_outcomes`
- (decision_id, observed_result, was_correct, pnl/impact, reconciled_at). A single helper
- that every decision chokepoint calls — instrument the *real* trade/snipe/award paths so
- nothing consequential is unlogged. **Pure** hash-chain + scoring logic, unit-tested.
-
-2. **Outcome reconciliation (`api/cron/reconcile-decisions.js` or a worker)** — periodically
- resolve open predictions against ground truth (Helius/Birdeye/Jupiter/pump/oracle): did
- the trade fill, did the call go the predicted way, did the launch graduate? Write the
- outcome, update the rolling reputation. Idempotent; handles late/again data without
- double-counting. Alert on anomalies (a sudden hit-rate collapse).
-
-3. **Reputation rollup** — a transparent, **explainable** score derived only from logged
- decisions + reconciled outcomes (hit rate, calibration — does its 80%-confidence actually
- hit 80%? — risk-adjusted PnL, sample size, recency). No opaque magic number; every point
- traces to entries. Expose the formula. This score feeds Moonshot 01 (auto-award weighting)
- and the marketplace/leaderboard.
-
-4. **Tamper-evidence + verification** — periodically anchor a Merkle root of each agent's new
- entries on-chain (ERC-8004 / attestation). `GET /ledger/verify/:agentId` re-computes the
- hash-chain + checks it against the anchored root, so anyone can prove the history wasn't
- edited. A backdated or altered "thought" must be detectable.
-
-5. **The Reasoning Ledger surface (`src/reasoning-ledger.js` + a tab on `src/agent-detail.js`)** —
- a readable, filterable timeline of decisions with rationale, prediction, and the
- *resolved outcome* (right/wrong, by how much), plus the headline reputation with a
- "how is this computed" drill-down and a calibration chart. Make being wrong **visible** —
- honesty is the trust signal. Semantic search over decisions ("show me every time it sold
- into a pump"). Verification badge linking to the on-chain anchor.
-
-6. **Cross-wire** — reputation badge on profiles, marketplace, leaderboard, the labor market
- (Moonshot 01), and genome lineage (Moonshot 03 — pedigree + track record together). Holder
- feed + Telegram for standout calls and their outcomes.
-
-## Quality + security bar
-
-- **Honest by construction.** Capture the *real* reasoning at decision time; reconcile against
- *real* outcomes; never retro-fit a flattering narrative. Losses and wrong calls are shown,
- not hidden — a ledger you can't trust is worthless.
-- Hash-chain + on-chain anchoring + verification endpoint are mandatory (this is the whole
- point). Pure crypto/scoring logic is unit-tested with adversarial cases (tamper attempts,
- late outcomes, tiny samples).
-- Every state designed: no decisions yet, pending-outcome, reconciled, anomaly-flagged,
- verifying, verified, verification-failed. Performant timeline (paginated, lazy). a11y,
- responsive, reduced-motion for the calibration chart.
-- $THREE only. No PII in public entries; respect existing privacy rules where a decision
- touches IRL/moderation data (coarse only, per `api/irl` discipline).
-
-## Then make it better (mandatory)
-
-After it works: let holders **subscribe** to an agent's verified calls (x402-gated alerts);
-a cross-agent calibration leaderboard ("most honest forecaster"); a "second opinion" where
-one agent audits another's reasoning and stakes $THREE on the verdict. Pick the upgrade that
-makes track record *tradeable trust*, build it, re-evaluate.
-
-## Definition of done
-
-Meets the README Definition of done. Specifically: real agent decisions (a real trade/snipe
-at minimum) are captured with reasoning + prediction at decision time, reconciled against
-real on-chain/market outcomes, rolled into an explainable reputation, and the per-agent
-hash-chain is anchored on-chain and independently verifiable via `GET /ledger/verify` —
-with a tamper attempt provably detected. `npm test` green (unit: hash-chain integrity,
-calibration/scoring, tamper detection; e2e: decide → reconcile → verify). Changelog entry;
-`npm run build:pages` validates.
-
-## On completion — delete this file
-
-```bash
-git rm "prompts/moonshots/05-reasoning-ledger-reputation.md"
-```
-Stage it in the same commit as the implementation.
diff --git a/prompts/prod/00-README.md b/prompts/prod/00-README.md
deleted file mode 100644
index 7efa85f13..000000000
--- a/prompts/prod/00-README.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Road to $1B — production-readiness program
-
-> Read this first, then `/CLAUDE.md`. Every prompt in this folder assumes both.
-
-This is the **spine** that takes three.ws from "impressive demo" to a platform a
-serious diligence team, a million users, and a $THREE holder base would all trust.
-It is deliberately separate from the feature-expansion prompt libraries elsewhere in
-`prompts/` (`feature-innovation/`, `agent-studio/`, `living-agents/`, …) — those add
-surface area; **this track makes the surface area we already have correct, safe, fast,
-and fundable.**
-
-The only coin is **$THREE** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). No
-exceptions, anywhere. See `/CLAUDE.md`.
-
-## How to run this
-
-Each numbered file is a **self-contained prompt for a fresh chat**. Open a new
-session, paste the file's contents (or say "do `prompts/road-to-1b/NN-*.md`"), and let
-the agent execute it end to end. One prompt = one focused, shippable unit of work.
-
-Run **in number order within a phase**. Phases are mostly sequential; inside a phase,
-prompts marked `Parallel-safe with:` can run in separate chats at the same time.
-Foundation (Phase 0) and hardening (Phase 1) come before everything — you cannot
-polish or grow on top of stubs and security holes.
-
-Each prompt ends with an **Acceptance** checklist. A prompt is not done until every
-box is checked, `npm test` is green, and any user-visible change has a
-`data/changelog.json` entry (`npm run build:pages` validates it).
-
-## The repo in one breath
-
-Vanilla-JS + Vite monorepo, 20 npm workspaces. ~125 pages (`pages/`), ~810 front-end
-modules (`src/`), ~961 Vercel functions (`api/`), Cloudflare workers (`workers/`),
-Three.js for 3D, Solana + pump.fun + x402 for money, real OpenAI/Anthropic via worker
-proxies. `STRUCTURE.md` maps every surface to its directory — read it before
-exploring. Useful existing gates: `npm run audit:web`, `audit:pages`,
-`audit:handlers`, `audit:empty-handlers`, `check:images`, `test:gate`, `verify:solana`,
-`smoke:onchain`, `audit:deploy`, `lint`, `typecheck`.
-
-## Phase map
-
-| # | Prompt | Phase |
-|---|---|---|
-| 01 | Production-readiness audit & scorecard | 0 — Foundation & truth |
-| 02 | No stubs, mocks, TODOs — hard-rule cleanup | 0 |
-| 03 | Dead paths, broken links & empty handlers | 0 |
-| 04 | $THREE-only compliance sweep | 0 |
-| 05 | Secrets & env hygiene | 1 — Correctness & hardening |
-| 06 | Error handling & resilience | 1 |
-| 07 | Security hardening | 1 |
-| 08 | Rate limiting & abuse prevention | 1 |
-| 09 | Test suite green & CI gate | 1 |
-| 10 | Resilience of external calls | 2 — Reliability at scale |
-| 11 | Observability (logs, metrics, alerts) | 2 |
-| 12 | Frontend performance & Core Web Vitals | 3 — Experience quality |
-| 13 | Accessibility (WCAG 2.2 AA) | 3 |
-| 14 | Responsive & mobile | 3 |
-| 15 | Every state designed + design-system consistency | 3 |
-| 16 | SEO, metadata, Open Graph & structured data | 3 |
-| 17 | Cross-browser & device QA | 3 |
-| 18 | Studio suite completeness (Forge, Avatar, Animation, Scene) | 4 — Surface completeness |
-| 19 | Agent creation & Agent Studio | 4 |
-| 20 | Marketplace, skills & purchase flow | 4 |
-| 21 | Trading & intelligence suite (Oracle, radars, leaderboards) | 4 |
-| 22 | Launch suite (Launch a Coin, Launchpad, Coin Intel, Claim) | 4 |
-| 23 | Worlds, Coin Clash & multiplayer | 4 |
-| 24 | Wallets & payments (x402, agent wallets, USDC, pay-by-name) | 4 |
-| 25 | SDK release-readiness | 5 — Developer platform |
-| 26 | MCP servers & agent interoperability | 5 |
-| 27 | Docs, tutorials & API reference | 5 |
-| 28 | Onboarding, guided tour & activation funnel | 5 |
-| 29 | Conversion funnel & landing optimization | 6 — Growth & business |
-| 30 | Analytics & growth instrumentation | 6 |
-| 31 | Monetization, pricing & $THREE utility | 6 |
-| 32 | Legal, compliance & trust | 6 |
-| 33 | Infrastructure, CI/CD & deploy safety | 6 |
-| 34 | Launch-readiness gate & go-to-market QA | 6 |
-
-## Why "$1B" is the bar, concretely
-
-A $1B platform is not "more features." It is: **nothing is fake** (Phase 0), **nothing
-leaks or breaks under load or attack** (Phases 1–2), **it feels world-class on any
-device** (Phase 3), **every surface a user can reach is finished** (Phase 4),
-**developers can build on it** (Phase 5), and **the funnel from first visit to paying,
-retained user is measured and optimized** (Phase 6). Each phase is a precondition for
-the next being worth anything.
-
-## Prompt template (for adding new ones)
-
-```
-# NN — Title
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** N — <name>
-**Owns:** <paths/surfaces this prompt may change>
-**Depends on:** <numbers or "none"> · **Parallel-safe with:** <numbers or "—">
-
-## Why this matters for $1B
-<2–4 lines tying the work to trust / fundability / growth>
-
-## Mission
-<one crisp sentence>
-
-## Map
-<real repo paths, scripts, surfaces>
-
-## Do this
-1. … (specific, ordered, references real scripts/paths — never generic)
-
-## Must-not
-- …
-
-## Acceptance
-- [ ] … ; `npm test` green; changelog entry if user-visible.
-```
-
-## Global definition of done (applies to every prompt)
-
-- No mocks, fake data, placeholders, TODOs, stubs, or `throw "not implemented"`.
-- Every interactive element has hover/active/focus states; every page has designed
- loading/empty/error/populated states.
-- Real APIs only; errors handled at network/input boundaries.
-- `npm test` green; `npm run lint` and `npm run typecheck` clean for touched code.
-- `git diff` self-reviewed; every changed line justified.
-- User-visible change → `data/changelog.json` entry (plain language, holder-readable).
-- You would demo it, unprompted, to a room of senior engineers.
diff --git a/prompts/prod/01-production-readiness-audit.md b/prompts/prod/01-production-readiness-audit.md
deleted file mode 100644
index 36e51bbf4..000000000
--- a/prompts/prod/01-production-readiness-audit.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 01 — Production-readiness audit & scorecard
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** read-only across the whole repo; output is a single committed scorecard doc (e.g. `docs/road-to-1b/production-readiness-scorecard.md`).
-**Depends on:** none · **Parallel-safe with:** —
-
-## Why this matters for $1B
-You cannot fix what you have not measured. This prompt produces the prioritized,
-evidence-backed backlog that the rest of this track (02–34) executes against. A
-diligence team and a million users both meet the same surfaces; this audit tells
-the truth about which ones are finished and which only look finished.
-
-## Mission
-Produce an honest, prioritized production-readiness scorecard of three.ws with
-file:line evidence and an ordered remediation list mapped to prompts 02–34.
-
-## Map
-- Existing gates (cite by name): `npm run audit:web`, `npm run audit:pages`,
- `npm run audit:handlers`, `npm run audit:empty-handlers`, `npm run check:images`,
- `npm run lint`, `npm run typecheck`, `npm test`.
-- Surfaces (from `STRUCTURE.md`): Studios (`character-studio/`, `src/scene-studio/`,
- Forge/Avatar/Animation), Agents (`api/`, agent profiles), Marketplace/skills,
- Trading/intel (`workers/oracle/`, radars, leaderboards), Launch
- (`pages/launches.html`, `api/pump/`), Worlds (`multiplayer/`), Wallets/x402
- (`api/x402-*`, `api/_lib/agent-wallet.js`), SDKs (`sdk/`, `*-sdk/`, `packages/`),
- Docs. Page inventory: `data/pages.json`.
-
-## Do this
-1. Run every gate and capture raw output verbatim into the scorecard:
- `npm run audit:web`, `audit:pages`, `audit:handlers`, `audit:empty-handlers`,
- `check:images`, `lint`, `typecheck`, `test`. Note pass/fail and counts.
-2. Grep the tree for hard-rule violations and record each as `path:line`:
- `TODO`/`FIXME`/`HACK`, `throw new Error('not implemented'`, `setTimeout` fake
- loading/progress, `sampleAgents`/`const sample`/fallback arrays,
- `mock`/`fake`/`placeholder`, and commented-out code blocks. Scope to shippable
- paths (`src/`, `api/`, `workers/`, `pages/`, SDK dirs); exclude `node_modules`,
- `dist`, vendored trees.
-3. Inventory all pages in `data/pages.json`: for each, mark whether it has a real
- backend, real data, and designed loading/empty/error/populated states.
-4. Score each surface above **Red / Amber / Green** on six axes: completeness,
- states, error handling, mobile, accessibility, performance. One row per surface.
-5. Emit one prioritized scorecard: severity-ordered, every **Red** item carries an
- owner-prompt number (02–34) and file:line evidence. End with an ordered
- remediation list that reads as the execution plan for this track.
-
-## Must-not
-- Do not fix, edit, or refactor anything — this is audit-only.
-- Do not soften, round up, or omit findings to make a surface look greener.
-- Do not invent paths; cite only what you verified exists.
-
-## Acceptance
-- [ ] Scorecard committed under `docs/`; every Red item has an owner-prompt number and file:line evidence.
-- [ ] Output reproducible via the listed scripts; raw gate output captured.
-- [ ] No code changed (`git diff` shows only the new doc); `npm test` still green.
diff --git a/prompts/prod/02-no-stubs-mocks-todos.md b/prompts/prod/02-no-stubs-mocks-todos.md
deleted file mode 100644
index 532035d66..000000000
--- a/prompts/prod/02-no-stubs-mocks-todos.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# 02 — No stubs, mocks, TODOs — hard-rule cleanup
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** `src/`, `api/`, `workers/`, `pages/`, `scripts/`, SDK dirs (`sdk/`, `*-sdk/`, `packages/`).
-**Depends on:** 01 · **Parallel-safe with:** 04
-
-## Why this matters for $1B
-`/CLAUDE.md` forbids mocks, fake data, placeholders, TODOs, and stubs without
-exception. A single shipped placeholder reads to users and diligence as an
-"unfinished company." This prompt closes that gap by replacing every fake with a
-real implementation, never by hiding it.
-
-## Mission
-Eliminate every mock, fake-data fallback, placeholder, TODO/FIXME, stub function,
-`throw new Error("not implemented")`, fake `setTimeout` loading, and commented-out
-code from shippable paths — replacing each with the real thing.
-
-## Map
-- Source of violations: the scorecard from prompt 01 (file:line list).
-- Empty-handler gate: `npm run audit:empty-handlers` (`scripts/audit-empty-handlers.mjs`).
-- Real backends live in `api/` and `workers/`; real data flows through them — wire
- to those, never to a local sample array.
-
-## Do this
-1. Take the violation list from prompt 01. For each, implement the real behavior
- per `/CLAUDE.md` "No errors without solutions" — find the root cause and the
- correct fix; do not propagate a lazy error.
-2. Replace every sample/fallback array (`sampleAgents`, `const sample…`, demo
- arrays) with a real fetch to the owning `api/` route, plus a designed empty
- state for the zero-result case.
-3. Convert fake progress / `setTimeout`-driven loading into real async tied to the
- actual request lifecycle; show a real loading state (skeleton preferred).
-4. Replace every `throw new Error('not implemented')` and stub function body with a
- complete implementation; remove `// implement later` / `// TODO` comments only
- after the work behind them is done.
-5. Delete commented-out code blocks and dead/unused imports in the files you touch.
-6. Run `npm run audit:empty-handlers` and resolve every flagged handler — no no-op
- bodies left behind.
-7. Grep the touched paths to confirm the banned patterns are gone before reporting.
-
-## Must-not
-- Do not hide a stub behind a feature flag, env guard, or `if (false)`.
-- Do not delete a feature to "remove" its stub — finish the feature.
-- Do not introduce a new mock/fixture to satisfy a now-real call path.
-
-## Acceptance
-- [ ] Grep for the banned patterns returns nothing in shippable code.
-- [ ] `npm run audit:empty-handlers` clean; `npm run lint` and `npm run typecheck` clean for touched files.
-- [ ] `npm test` green; changelog entry only if user-visible behavior changed.
diff --git a/prompts/prod/03-dead-paths-and-broken-links.md b/prompts/prod/03-dead-paths-and-broken-links.md
deleted file mode 100644
index bcc94cd15..000000000
--- a/prompts/prod/03-dead-paths-and-broken-links.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# 03 — Dead paths, broken links & empty handlers
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** `pages/`, `src/`, `data/pages.json`, nav/footer/CTA components (incl. `src/dashboard-next/components/topbar.js`).
-**Depends on:** 01 · **Parallel-safe with:** 02, 04
-
-## Why this matters for $1B
-Every dead button and every 404 link is a trust leak. A platform that competes
-with Vercel and Linear has zero unreachable states and zero broken paths — every
-link resolves, every button does something real, every declared state is reachable.
-
-## Mission
-Guarantee every link resolves, every button performs a real action, every declared
-state is reachable, and every page is reachable from navigation.
-
-## Map
-- Gates: `npm run audit:pages` (`scripts/audit-page-index.mjs`),
- `npm run audit:handlers` and `npm run audit:empty-handlers`
- (`scripts/audit-empty-handlers.mjs`).
-- Navigation surfaces: topbar `src/dashboard-next/components/topbar.js`, the site
- footer, in-page CTAs, the guided tour, and the "All pages" directory.
-- Route registry: `data/pages.json` (e.g. the `/launches` entry); page bodies in
- `pages/`.
-
-## Do this
-1. Run `npm run audit:pages`, `npm run audit:handlers`, and
- `npm run audit:empty-handlers`; record every flagged page and handler.
-2. Crawl the topbar (`src/dashboard-next/components/topbar.js`), footer, and in-page
- CTAs for `href`s that 404, point to `#`, or go nowhere. Fix the destination or
- remove the link with intent — never leave a dead link in place.
-3. Verify every page in `data/pages.json` is linked from navigation and actually
- renders; flag any orphaned route (declared but unreachable) and wire it in.
-4. Find buttons with no handler or no-op handlers (cross-reference
- `audit:empty-handlers`); give each a real action or remove the control.
-5. Confirm browser back/forward and deep-links land on the correct state; fix any
- route that only works when reached via the in-app click path.
-6. Confirm the guided tour and the "All pages" directory reference only real,
- live routes — no stops on missing or renamed pages.
-
-## Must-not
-- Do not paper over a broken link by suppressing the click — fix the destination or remove the link.
-- Do not add a route to `data/pages.json` that has no rendering page behind it.
-- Do not leave a control visible if it cannot perform its action.
-
-## Acceptance
-- [ ] `audit:pages`, `audit:handlers`, `audit:empty-handlers` all clean.
-- [ ] Manual nav crawl (topbar, footer, CTAs, tour, directory) finds zero dead links or no-op buttons.
-- [ ] Every `data/pages.json` route is reachable and renders; `npm test` green; changelog entry if user-visible.
diff --git a/prompts/prod/04-three-coin-compliance.md b/prompts/prod/04-three-coin-compliance.md
deleted file mode 100644
index 23587f1f8..000000000
--- a/prompts/prod/04-three-coin-compliance.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# 04 — $THREE-only compliance sweep
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** entire repo — code, comments, tests, fixtures, docs, UI copy, metadata.
-**Depends on:** none · **Parallel-safe with:** 02, 03
-
-## Why this matters for $1B
-Brand and legal integrity: three.ws promotes exactly one coin, **$THREE**
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Per `/CLAUDE.md`, any stray
-token reference is treated like a leaked secret. A platform raising at $1B cannot
-have a competing or partner ticker hiding in source, copy, or a fixture.
-
-## Mission
-Ensure $THREE is the only coin referenced anywhere, with the two allowed
-runtime-data exceptions left intact and verified runtime-only.
-
-## Map
-- $THREE token tooling: `packages/three-token-mcp/`, `api/pump/check-three-balance.js`.
-- Allowed exception 1 — generic launcher: `api/pump/` (e.g. `launch-prep.js`,
- `launch-agent.js`, the `[action].js` route) accepting an arbitrary user-supplied
- mint at runtime.
-- Allowed exception 2 — platform launch directories rendering user-launched coins
- from platform records at runtime: `/launches` (`pages/launches.html`,
- `data/pages.json`), agent-profile launch history, and `/api/pump/launches`
- (the `case 'launches'` handler in `api/pump/[action].js`) reading the
- `pump_agent_mints` table.
-
-## Do this
-1. Grep the whole tree for hardcoded mint addresses (base58 ~32–44 chars), token
- tickers, and coin names across `src/`, `api/`, `workers/`, `pages/`, `tests/`,
- `docs/`, and fixtures.
-2. Remove every non-$THREE coin reference in source, copy, tests, fixtures, docs,
- and metadata — treat each like a leaked secret, not a cosmetic edit.
-3. Verify the two mechanical exceptions still work and stay runtime-data-only: the
- generic pump.fun launcher takes the mint as user input (no hardcoded mint); the
- launch-directory feeds (`/launches`, agent-profile history, `/api/pump/launches`
- over `pump_agent_mints`) render only coins users launched through the platform.
-4. Confirm fixtures and tests use only the $THREE CA above or a clearly-synthetic
- placeholder (e.g. `THREEsynthetic1111…`) — never a real third-party mint,
- creator, or holder address.
-5. Add a CI grep guard if feasible (a script under `scripts/` wired so a stray
- non-$THREE ticker/mint in source fails the build), excluding the two exceptions.
-
-## Must-not
-- Do not remove or break the two legitimate runtime-data exceptions.
-- Do not hardcode, market, or recommend any specific non-$THREE mint anywhere.
-- Do not acknowledge any past, partner, demo, or test launch — $THREE is the only coin.
-
-## Acceptance
-- [ ] Tree grep shows no other coin in source, copy, tests, fixtures, or docs.
-- [ ] Both exceptions verified runtime-only; fixtures use the $THREE CA or a synthetic placeholder.
-- [ ] CI grep guard added (if feasible); `npm test` green; changelog entry if user-visible.
diff --git a/prompts/prod/05-secrets-and-env-hygiene.md b/prompts/prod/05-secrets-and-env-hygiene.md
deleted file mode 100644
index ae1c9e2b6..000000000
--- a/prompts/prod/05-secrets-and-env-hygiene.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 05 — Secrets & env hygiene
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `.env*`, `vercel.json` (`env`), `api/`, `workers/`, `.gitignore`, anything reading `process.env`.
-**Depends on:** none. Run early — a leaked key is a $1B-killer.
-
-## Why this matters for $1B
-A single leaked private key (Solana parent secret, RPC key, bot token) can drain
-funds and end the company. Diligence teams scan git history for secrets. This must be
-airtight.
-
-## Mission
-Guarantee no secret is committed, every secret is loaded from the environment with a
-clear failure when missing, and the set of required env vars is documented and
-validated at boot.
-
-## Map
-- Required secrets referenced across the codebase include (verify the live set):
- `THREEWS_SOL_PARENT_SECRET_BASE58`, Solana RPC keys, `TELEGRAM_BOT_TOKEN`,
- `TELEGRAM_CHANGELOG_CHAT_ID`, OpenAI/Anthropic keys (via worker proxies), x402
- facilitator config.
-- `vercel.json` has an `env` block. Functions in `api/`, workers in `workers/`.
-
-## Do this
-1. Scan the working tree **and git history** for committed secrets (use
- `git log -p` filtered, or a tool like gitleaks/trufflehog run locally). Treat any
- hit as an incident: rotate the key, purge if feasible, and document.
-2. Confirm `.gitignore` excludes `.env`, `.env.*` (except `.env.example`), key files,
- and any wallet keypair JSON. Add what's missing.
-3. Create/maintain a complete `.env.example` listing **every** env var the app reads,
- grouped by surface, with a one-line description and whether it's required. Derive
- the list by grepping `process.env.` across `api/`, `workers/`, `src/`, `scripts/`.
-4. Add a startup/env-validation step (a small `api/_lib/env.js` or similar) that, on
- cold start, asserts required vars are present and fails loud with a precise message
- naming the missing var — never a silent undefined that 500s later.
-5. Ensure secrets are read server-side only. Grep `public/` and client `src/` for any
- secret-looking value or `VITE_`-exposed secret that should be server-only. Move
- them behind an API route or worker proxy.
-6. Confirm the AI provider keys are only ever used via the worker proxies, never
- shipped to the client (per `/CLAUDE.md` stack notes).
-7. Document secret rotation steps in `docs/` (where to rotate each, blast radius).
-
-## Must-not
-- Do not print secrets in logs or error messages.
-- Do not commit a real key even to `.env.example` — use obvious placeholders.
-- Do not expose any secret via a `VITE_`/client-bundled var.
-
-## Acceptance
-- [ ] git history + working tree scanned; zero live secrets present (rotations done if found).
-- [ ] `.gitignore` covers all secret/keypair patterns.
-- [ ] `.env.example` is complete and grouped, derived from actual `process.env` usage.
-- [ ] Boot-time env validation fails loud on missing required vars, naming each.
-- [ ] No secret reachable from the client bundle.
-- [ ] Rotation runbook written in `docs/`.
diff --git a/prompts/prod/06-error-handling-and-resilience.md b/prompts/prod/06-error-handling-and-resilience.md
deleted file mode 100644
index 3d71eccff..000000000
--- a/prompts/prod/06-error-handling-and-resilience.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 06 — Error handling & resilience
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/` (~960 handlers), `workers/`, `api/_lib/`, client fetch wrappers in `src/`/`public/`.
-**Depends on:** `04` (no fake fallbacks).
-
-## Why this matters for $1B
-At scale, dependencies fail constantly — RPC nodes time out, providers rate-limit,
-pump.fun hiccups. A $1B platform degrades gracefully and self-heals. `/CLAUDE.md`:
-"No errors without solutions. Ship working fallbacks and failsafes. Lazy error
-propagation is not engineering."
-
-## Mission
-Every external call has timeout, retry-with-backoff, circuit-breaking where
-appropriate, and a designed failure path. Every handler returns correct status codes
-and structured errors. No unhandled rejections.
-
-## Map
-- Resilience helper: **cockatiel** is the vetted choice (see existing usage in
- `api/_lib/`). Reuse it — do not hand-roll retry loops.
-- Real upstreams: Solana RPC (already has "resilient Solana RPC" work — see git log),
- Pump.fun feed, OpenAI/Anthropic worker proxies, x402 facilitator.
-- Recent hardening precedent: `api/x402-checkout.js` ATA-probe hardening against
- malformed RPC replies — match that rigor.
-
-## Do this
-1. Inventory every outbound call in `api/` and `workers/`. For each, confirm:
- explicit timeout, bounded retry with jittered backoff (cockatiel), and a
- circuit-breaker for hot paths that hammer a flaky upstream.
-2. Standardize a shared `fetchWithResilience` / RPC-client wrapper in `api/_lib/`
- and migrate unprotected callers to it (additive — don't churn already-protected
- code, per memory guidance).
-3. Validate and defensively parse every upstream response. Never assume shape;
- malformed replies must not throw raw — they map to a clean error or a safe
- default. (Generalize the x402 ATA-probe pattern.)
-4. Standardize API error responses: correct HTTP status, a stable `{ error: { code,
- message } }` shape, no stack traces or secrets leaked to clients. Log full detail
- server-side.
-5. Add a top-level handler wrapper that catches unhandled rejections/exceptions per
- request and converts them to a clean 5xx with a request id.
-6. Client side: every `fetch` has a timeout + abort, and surfaces a designed,
- actionable error state (ties to prompt `12`). Add retry on idempotent GETs.
-7. Add tests for the failure paths: simulate timeouts, 429s, malformed JSON, partial
- responses. Confirm graceful degradation, not crashes.
-
-## Must-not
-- Do not swallow errors silently or return `200` with empty data on failure.
-- Do not leak stack traces, internal URLs, or secrets in error responses.
-- Do not retry non-idempotent writes blindly (risk of double-spend/double-mint).
-
-## Acceptance
-- [ ] Every external call has timeout + bounded retry; hot paths have circuit-breakers.
-- [ ] Shared resilient client adopted across previously-unprotected handlers.
-- [ ] All upstream responses defensively parsed; malformed input handled, never thrown raw.
-- [ ] Uniform structured error responses with correct status codes; no leaks.
-- [ ] Failure-path tests added and green.
-- [ ] No unhandled promise rejections (cross-check prompt `03`).
diff --git a/prompts/prod/07-security-hardening.md b/prompts/prod/07-security-hardening.md
deleted file mode 100644
index 3bc8c9bae..000000000
--- a/prompts/prod/07-security-hardening.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# 07 — Security hardening
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/`, `workers/`, auth middleware in `api/_lib/`, `vercel.json` (headers/routes), wallet/payment paths.
-**Depends on:** `05` (secrets), `06` (error handling). Pairs with `08` (rate limiting).
-
-## Why this matters for $1B
-This platform custodies wallets and moves money (x402, $THREE, skill purchases). One
-authz bug = drained funds = dead company. Security is the difference between a
-fundable platform and a liability.
-
-## Mission
-Close every authn/authz gap, validate every input, set hardening headers, and ensure
-money-moving paths are airtight. Run a real security review and fix what it finds.
-
-## Map
-- Auth/ownership model: `agent_identities.user_id` is immutable, one agent = one
- owner (see `prompts/agent-wallets/00-README-orchestration.md`). Only the owner can
- withdraw / set limits / rebrand.
-- Money paths: `api/x402-*`, `api/payments/*`, `api/pump/*`, withdrawal endpoints,
- `api/_lib/agent-wallet.js`, `api/_lib/skill-license-onchain.js`.
-- `vercel.json` controls routes + can set headers.
-
-## Do this
-1. Run the repo's security-review skill/process (`/security-review`) over the current
- state and triage findings by severity.
-2. **AuthZ on every mutating endpoint:** confirm the caller owns the resource before
- any write/withdraw/rebrand/spend. Audit `api/` for endpoints that trust a
- client-supplied `user_id`/`agent_id` without verifying the session. Fix every one.
-3. **Input validation at boundaries:** validate/normalize every request body, query
- param, and path param (lengths, types, ranges, address formats, amount bounds).
- Reject early with 400. Prevent injection (SQL/NoSQL/command), path traversal, SSRF
- (especially anywhere a URL is fetched on the user's behalf).
-4. **Money-path invariants:** amount sanity bounds, idempotency keys on
- transfers/mints to prevent double-spend, replay protection on signed requests,
- server-side recomputation of prices (never trust client-sent amounts).
-5. **Security headers** via `vercel.json` or middleware: `Content-Security-Policy`
- (tightened, not `unsafe-inline` everywhere), `Strict-Transport-Security`,
- `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, frame controls
- for embeds (allow only intended embed routes).
-6. **CORS:** lock API CORS to known origins; don't reflect arbitrary `Origin`.
-7. **Dependency audit:** `npm audit` (and `npm audit --workspaces`); fix high/critical
- by upgrade. Document any accepted advisory with rationale.
-8. **Secrets in transit/logs:** confirm prompt `05` outcomes hold; no PII/secrets in
- logs.
-9. Add regression tests for each fixed authz/validation hole.
-
-## Must-not
-- Do not trust any client-supplied identity, amount, or price.
-- Do not weaken CSP to "make something work" — fix the inline/eval cause.
-- Do not retry or replay money-moving requests without idempotency.
-
-## Acceptance
-- [ ] `/security-review` findings triaged and resolved (or risk-accepted with written rationale).
-- [ ] Every mutating endpoint verifies ownership/session server-side.
-- [ ] All inputs validated at the boundary; injection/traversal/SSRF closed.
-- [ ] Money paths have amount bounds + idempotency + server-side price recomputation.
-- [ ] Hardening headers + locked CORS in place; CSP tightened.
-- [ ] `npm audit` clean of high/critical (or documented).
-- [ ] Regression tests cover the fixed holes; `npm test` green.
diff --git a/prompts/prod/08-rate-limiting-and-abuse.md b/prompts/prod/08-rate-limiting-and-abuse.md
deleted file mode 100644
index 7cf1d4d2f..000000000
--- a/prompts/prod/08-rate-limiting-and-abuse.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 08 — Rate limiting & abuse prevention
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Correctness & hardening
-**Owns:** `api/`, `workers/`, the shared limiter in `api/_lib/rate-limit.js` + `api/_lib/http.js`, Upstash Redis usage (`api/_lib/redis.js`).
-**Depends on:** `07` (security hardening) · **Parallel-safe with:** `09`
-
-## Why this matters for $1B
-Every expensive call — text-to-3D, image gen, LLM proxy, Solana RPC, mint/launch —
-spends real GPU, model, and chain budget. Unmetered, one abuser (or a distributed
-flood) drains the spend cap, trips fail-closed lanes, and takes the platform down for
-everyone. Abuse = downtime = lost users and burned margin. Metering is what lets a free
-tier exist without bankrupting the business.
-
-## Mission
-Put per-identity and per-IP rate limits, per-tier quotas, and abuse defenses on every
-expensive or money-moving endpoint, standardized on the existing shared limiter.
-
-## Map
-- Shared limiter: `api/_lib/rate-limit.js` (Upstash `Ratelimit`, sliding-window,
- in-memory dev fallback, `FORGE_PAID_GLOBAL_HOURLY` platform ceiling, cost limiters
- that fail closed when Redis is unconfigured). Helpers `rateLimited` +
- `setRateLimitHeaders` (with `Retry-After`, RFC 9110 §10.2.3) live in `api/_lib/http.js`.
-- Health signal: `api/_lib/forge-health.js` already probes the rate-limiter store
- ("paid generation lanes fail closed" when it is down) — keep this accurate.
-- Cost-bearing endpoints: text-to-3D `api/forge.js` (already lane-aware via `rl` /
- `rateLimited`), image gen `api/_mcp3d/text-to-image.js` + `api/_mcp3d/vertex-imagen.js`,
- LLM proxy `api/llm/anthropic.js`, RPC `api/solana-rpc.js`, mint/launch under
- `api/pump/`, the x402 family via `api/_lib/x402-paid-endpoint.js` and `api/x402/`.
-
-## Do this
-1. Inventory every cost-bearing / money-moving handler in `api/` and `workers/`. For
- each, record who pays (GPU, model tokens, RPC credits, chain fees) and whether it
- already routes through `rateLimited` from `api/_lib/http.js`.
-2. Standardize on `api/_lib/rate-limit.js` — do not hand-roll new limiters. Add
- sliding-window limits keyed by authenticated identity first, then by IP. Never key
- off client-supplied identity (verify the session as `07` requires).
-3. Add per-tier quotas: a free tier and a higher-ceiling $THREE-holder tier. Keep the
- platform-wide circuit breaker (`FORGE_PAID_GLOBAL_HOURLY` and the x402 facilitator
- backstop) intact and env-tunable.
-4. Protect upload endpoints (size, MIME type, count) before any expensive processing.
-5. Add lightweight bot/abuse heuristics (burst detection, repeated-junk-payload
- rejection) and surface a clear `429` with `Retry-After` via `rateLimited`.
-6. Add tests under `tests/` simulating burst traffic against the limited endpoints,
- asserting `429` + `Retry-After` once the window is exhausted.
-
-## Must-not
-- Do not trust client-supplied identity for keying limits.
-- Do not silently drop requests — always return `429` with a reason and `Retry-After`.
-- Do not weaken the fail-closed behavior of the cost/money limiters when Redis is down.
-
-## Acceptance
-- [ ] Every expensive endpoint has a documented limit + per-tier quota, all routed
- through `api/_lib/rate-limit.js`.
-- [ ] `429` responses are designed (reason + `Retry-After`); upload guards in place.
-- [ ] Burst tests pass; `npm test` green; `npm run lint` + `npm run typecheck` clean.
-- [ ] Changelog `improvement`/`security` entry if user-visible; `npm test` green.
diff --git a/prompts/prod/09-accessibility-wcag.md b/prompts/prod/09-accessibility-wcag.md
deleted file mode 100644
index 5c3cf04d4..000000000
--- a/prompts/prod/09-accessibility-wcag.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# 09 — Accessibility (WCAG 2.2 AA)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** all `pages/*.html`, `src/` UI components, `public/` shared UI (nav, modals, tour, walk companion).
-**Depends on:** `02` (dead paths). Pairs with `11`, `12`, `13`.
-
-## Why this matters for $1B
-Accessibility is required for enterprise/government sales, reduces legal risk, and is
-explicitly non-optional in `/CLAUDE.md`: "Semantic HTML. ARIA labels. Keyboard
-navigation. Sufficient color contrast. Focus indicators." It also just makes the
-product better for everyone.
-
-## Mission
-Bring the whole site to WCAG 2.2 AA: keyboard-operable, screen-reader-coherent,
-sufficient contrast, visible focus, respects reduced-motion.
-
-## Map
-- 125 pages in `pages/`. Shared interactive UI: `public/nav.js`, payment modals
- (`public/x402*.js`), feature tour (`src/feature-tour/`), walk companion
- (`src/walk-companion.js`, `walk-sdk/`).
-- Design tokens live in the global stylesheet (`public/` CSS, `style.css`) — fix
- contrast at the token level where possible (coordinate with prompt `13`).
-
-## Do this
-1. Run automated audits (axe-core / Lighthouse a11y) across every page; capture
- violations. Automated catches ~30% — also do manual keyboard + screen-reader
- passes on the top 15 flows (forge, marketplace, agent profile, wallet, checkout,
- tour, walk).
-2. **Semantic structure:** one `<h1>` per page, logical heading order, landmarks
- (`<nav> <main> <header> <footer>`), lists for lists, `<button>` for actions and
- `<a>` for navigation (no `<div onclick>`).
-3. **Keyboard:** every interactive element reachable and operable by keyboard in a
- logical tab order; no keyboard traps; modals/tour/menus trap focus while open and
- restore it on close; ESC closes overlays. Visible, high-contrast focus ring
- everywhere (never `outline: none` without a replacement).
-4. **Screen readers:** ARIA labels/roles on icon buttons, custom controls, tabs,
- dialogs, live regions for async updates (generation progress, toasts, balances).
- `alt` text on meaningful images; `aria-hidden` on decorative.
-5. **Contrast:** all text and UI states meet 4.5:1 (3:1 for large text/UI). Fix at
- the token level. Check both themes.
-6. **Forms:** every input has a programmatic label; errors are announced and
- associated with their field; required/invalid states are not color-only.
-7. **Motion:** honor `prefers-reduced-motion` for the tour, walk companion, 3D
- auto-orbit, and transitions.
-8. **3D canvases:** provide accessible alternatives/labels for `<model-viewer>` and
- custom canvases (name, description, keyboard orbit where feasible).
-9. Add an axe-core check to the Playwright page sweep so regressions fail CI.
-
-## Must-not
-- Do not remove focus outlines without an equally-visible replacement.
-- Do not use color as the only signal for state/errors.
-- Do not add ARIA that lies about state — incorrect ARIA is worse than none.
-
-## Acceptance
-- [ ] axe-core/Lighthouse a11y: 0 serious/critical violations across all pages.
-- [ ] Top 15 flows fully keyboard-operable; focus managed in all overlays.
-- [ ] Screen-reader pass on top flows is coherent (labels, roles, live regions).
-- [ ] All text/UI meets AA contrast in both themes (fixed at token level).
-- [ ] `prefers-reduced-motion` honored everywhere motion exists.
-- [ ] axe check wired into CI page sweep.
diff --git a/prompts/prod/09-test-suite-green-and-ci-gate.md b/prompts/prod/09-test-suite-green-and-ci-gate.md
deleted file mode 100644
index 3c70d5ac2..000000000
--- a/prompts/prod/09-test-suite-green-and-ci-gate.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 09 — Test suite green & CI gate
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Correctness & hardening
-**Owns:** `tests/`, `vitest.config.js`, `playwright.config.js`, `.github/workflows/ci.yml`, the `test*`/`lint`/`typecheck` scripts in `package.json`.
-**Depends on:** `02` (no stubs) · **Parallel-safe with:** `08`
-
-## Why this matters for $1B
-Green, meaningful tests plus a blocking CI gate are table stakes for fundability and
-for shipping safely at scale. Real money rides on `api/` and the chain paths — a red
-suite or a CI that waves failures through is how a money bug reaches production. The
-repo already has ~456 test files and a `.github/workflows/ci.yml` merge gate; this
-prompt makes it trustworthy.
-
-## Mission
-Get the full suite green, cover the highest-risk money/3D/auth paths, and make CI block
-merges on red.
-
-## Map
-- Suites/scripts (`package.json`): `npm test` = `vitest run && playwright test`;
- `test:core` (single-worker vitest), `test:gate` (`scripts/test-gate.mjs`), `test:e2e`
- (`playwright test`), `test:pages` (`scripts/test-pages.mjs`).
-- Config: `vitest.config.js`, `playwright.config.js` (`testDir: 'tests/e2e'`).
-- Quality gates: `npm run lint` (`eslint .`), `npm run typecheck` (`tsc -p jsconfig.json`).
-- CI: `.github/workflows/ci.yml` jobs — `lint`, `test` (`vitest run`), `guards`
- (`check-api-not-bundled.mjs`, `check:images`, `build:pages`), `typecheck` (currently
- `continue-on-error: true`, advisory).
-- Risk-path example: `tests/glb-canonicalize.test.js` is the per-skeleton convention
- test required by `/CLAUDE.md`.
-
-## Do this
-1. Run `npm test`, `npm run test:e2e`, `npm run test:pages`, and `npm run test:gate`.
- Fix every failure, or quarantine it behind a tracked issue — no permanent skips.
-2. Add tests for the highest-risk paths surfaced by prompt `01`: wallet/withdraw authz,
- x402 payment, the forge generation fallback chain (`api/forge.js` lanes), and
- `glb-canonicalize` per the `tests/glb-canonicalize.test.js` convention.
-3. Make `npm run lint` and `npm run typecheck` pass for touched code; clear typecheck
- errors so `.github/workflows/ci.yml` can flip `typecheck` from advisory to blocking.
-4. Verify the CI workflow runs lint + tests + guards and blocks on failure on PRs and
- pushes to `main`; tighten the typecheck job to a hard gate once it is clean.
-5. Identify flaky tests (re-run suspect specs), de-flake them at the source, and record
- any that remain quarantined with their tracking issue.
-
-## Must-not
-- Do not `.skip`/`.only` a test to go green without a tracked issue.
-- Do not weaken assertions, shrink fixtures, or delete cases to force a pass.
-- Do not mock real APIs to dodge a failure — fix the code or the test setup.
-
-## Acceptance
-- [ ] `npm test`, `npm run test:e2e`, `npm run test:pages`, `npm run lint`, and
- `npm run typecheck` all green locally and in `.github/workflows/ci.yml`.
-- [ ] CI blocks merges on red (typecheck moved off `continue-on-error` once clean).
-- [ ] New tests cover the top risk paths (wallet/withdraw, x402, forge fallback, glb).
-- [ ] Flaky tests de-flaked or quarantined with a tracked issue; `npm test` green.
-- [ ] Changelog entry only if a user-visible behavior changed (usually internal).
diff --git a/prompts/prod/10-performance-core-web-vitals.md b/prompts/prod/10-performance-core-web-vitals.md
deleted file mode 100644
index f10323915..000000000
--- a/prompts/prod/10-performance-core-web-vitals.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# 10 — Performance & Core Web Vitals
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `vite.config.js`, `pages/`, `src/`, `public/`, 3D asset loading, build pipeline.
-**Depends on:** `03` (clean console). Pairs with `11`, `28`.
-
-## Why this matters for $1B
-A 3D-heavy platform that janks or loads slowly loses users at the door and ranks
-worse in search. `/CLAUDE.md`: "Performance by default. Lazy-load heavy modules.
-Don't ship jank." Speed is conversion is revenue is valuation.
-
-## Mission
-Hit good Core Web Vitals on every key page (LCP < 2.5s, INP < 200ms, CLS < 0.1 on a
-mid-tier device/throttled network) and keep heavy 3D from blocking first paint.
-
-## Do this
-1. Establish a baseline: run Lighthouse (mobile, throttled) on the top 15 pages.
- Record LCP/INP/CLS/TBT and bundle sizes. Set per-page budgets and a script to
- enforce them in CI.
-2. **JS:** code-split per route; lazy-load Three.js, model-viewer, character-studio,
- scene-studio, and other heavy modules so they never block initial render. Defer
- non-critical scripts. Tree-shake; remove dead imports (cross-check prompt `04`).
-3. **3D assets:** compress GLBs (`npm run compress:glbs` / `optimize:glb`), use Draco/
- meshopt, lazy-load models below the fold, show a lightweight poster/skeleton until
- the model is ready, and cap texture sizes. Never auto-load a heavy model the user
- can't see yet.
-4. **Images:** responsive `srcset`, modern formats (AVIF/WebP), explicit
- width/height to kill CLS, lazy-load offscreen images. Run `npm run check:images`.
-5. **Fonts:** `font-display: swap`, preload the critical face, subset if possible.
-6. **CSS:** inline critical CSS for above-the-fold; defer the rest. Remove unused CSS.
-7. **Caching:** correct `Cache-Control` for static assets (immutable hashed assets,
- sensible TTLs for data) via `vercel.json`. Confirm CDN/R2 caching for GLBs.
-8. **Layout stability:** reserve space for async content (models, images, ads/embeds)
- to keep CLS near zero.
-9. **INP:** debounce input handlers, break up long tasks, avoid main-thread 3D work
- that blocks interaction; move heavy compute to workers where possible.
-10. Re-run Lighthouse; confirm budgets met. Wire the budget check into CI.
-
-## Must-not
-- Do not block first paint on Three.js or any 3D module.
-- Do not ship uncompressed GLBs or unsized images.
-- Do not regress accessibility (prompt `09`) for performance.
-
-## Acceptance
-- [ ] Top 15 pages: LCP < 2.5s, INP < 200ms, CLS < 0.1 (mobile, throttled).
-- [ ] Heavy modules (Three.js, model-viewer, studios) are lazy/code-split.
-- [ ] GLBs compressed (Draco/meshopt) and lazy-loaded with posters/skeletons.
-- [ ] Images responsive, sized, modern-format, lazy below fold.
-- [ ] Per-page performance budgets enforced in CI.
-- [ ] Lighthouse perf score ≥ 90 on key pages.
diff --git a/prompts/prod/11-mobile-responsiveness.md b/prompts/prod/11-mobile-responsiveness.md
deleted file mode 100644
index 9565128ce..000000000
--- a/prompts/prod/11-mobile-responsiveness.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 11 — Mobile responsiveness
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** all `pages/*.html`, `src/` UI, `public/` shared UI + CSS.
-**Depends on:** `02`, `13`. Pairs with `09`, `12`.
-
-## Why this matters for $1B
-Most first-touch traffic is mobile. Recent git history shows the tour and walk
-companion were "effectively broken on phones" until fixed — treat that as a signal
-that mobile coverage is uneven. A platform that breaks on phones can't go viral.
-
-## Mission
-Every page and flow works and looks intentional at 320px, 768px, and 1440px, with
-real touch targets and no horizontal scroll.
-
-## Map
-- 125 pages in `pages/`. Mobile-sensitive surfaces flagged in git history: feature
- tour (`src/feature-tour/`), walk companion (`src/walk-companion.js`), nav
- (`public/nav.js` — mobile menu), payment modals, forge (`pages/forge.html`).
-- Audio/interaction gotcha: mobile browsers block audio until a tap, and the
- permission resets per page — the tour already handles this; preserve that pattern.
-
-## Do this
-1. Sweep every page at 320 / 375 / 768 / 1024 / 1440 (Playwright device emulation +
- real-device spot checks). Capture: horizontal overflow, clipped content, unreadable
- text, overlapping elements, off-screen controls, tiny tap targets.
-2. Fix layout with fluid units, fl/grid, and `clamp()` — not fixed widths. Eliminate
- every source of horizontal scroll.
-3. **Tap targets ≥ 44×44px** with adequate spacing. Audit all icon buttons, tabs,
- close buttons, and dense control rows.
-4. **Reachability:** confirm every desktop action has a mobile equivalent. Any control
- that lives only in a collapsing desktop nav must also appear in the mobile menu
- (this exact bug hit the walk companion — re-audit for siblings).
-5. **Modals/sheets:** payment, share, settings, and tour overlays fit small screens,
- scroll internally if needed, and have phone-sized controls.
-6. **3D on mobile:** model-viewer/canvases are touch-orbitable, sized to viewport,
- and don't overheat/jank low-end devices; provide a lighter path if needed.
-7. **Forms/keyboards:** correct `inputmode`/`type`, no zoom-on-focus jump (16px+ font
- on inputs), visible submit above the on-screen keyboard.
-8. **Safe areas:** respect notches/home indicators (`env(safe-area-inset-*)`).
-9. Add mobile-viewport assertions (no overflow, tap-target size) to the Playwright
- sweep.
-
-## Must-not
-- Do not hide functionality on mobile instead of adapting it.
-- Do not ship sub-44px tap targets or fixed-width layouts.
-- Do not regress the tour's per-page audio-unlock handling.
-
-## Acceptance
-- [ ] Every page clean at 320/768/1440 — no horizontal scroll, no clipping/overlap.
-- [ ] All tap targets ≥ 44×44px with spacing.
-- [ ] Every desktop action reachable on mobile (incl. nav-collapsed controls).
-- [ ] Modals/overlays and 3D canvases usable on phones.
-- [ ] Forms behave with on-screen keyboards; safe areas respected.
-- [ ] Mobile-overflow + tap-target assertions in CI sweep.
diff --git a/prompts/prod/12-every-state-designed.md b/prompts/prod/12-every-state-designed.md
deleted file mode 100644
index 5cced411a..000000000
--- a/prompts/prod/12-every-state-designed.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 12 — Every state designed (loading / empty / error)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** every data-driven view across `pages/`, `src/`, `public/`.
-**Depends on:** `04` (no fake fallbacks), `06` (error handling).
-
-## Why this matters for $1B
-`/CLAUDE.md`: "Every state is designed. A page with no data should tell the user what
-to do, not show a blank void." The gap between an adequate product and a $1B one is
-the accumulation of these moments — the empty state that converts, the error that
-recovers, the skeleton that reassures.
-
-## Mission
-Every async, list, and detail view has intentional loading, empty, error, and
-overflow states. No blank voids, no raw spinners where a skeleton belongs, no dead
-ends on failure.
-
-## Map
-- Data-driven surfaces: marketplace, launches feed, agent profiles, wallet/activity,
- bounties, communities, collections, gallery, forge results, search results.
-- Reuse/establish shared components for skeletons, empty states, and error states so
- every surface is consistent (coordinate with prompt `13`).
-
-## Do this
-1. Inventory every view that fetches or renders variable data. For each, define all
- four states: **loading**, **empty**, **error**, **populated** (+ overflow:
- pagination/virtualization for large lists).
-2. **Loading:** skeleton screens that match the populated layout (preferred over
- spinners), tied to real request lifecycle (no fake `setTimeout`).
-3. **Empty:** explain what this is, why it's empty, and the one clear next action
- (CTA) — e.g. "No agents yet — forge your first" with a button. Add a tasteful
- illustration/icon. Empty ≠ blank.
-4. **Error:** say what went wrong in human terms and offer recovery (Retry, go back,
- contact). Wire Retry to actually re-run the fetch. Never show raw error objects.
-5. **Overflow:** lists handle 0 / 1 / many / very-many (paginate or virtualize at
- scale per prompt `10`); long strings truncate with full value on hover/title;
- layouts survive extreme content.
-6. Build shared `<Skeleton>`, `<EmptyState>`, `<ErrorState>` primitives (or the
- vanilla-JS equivalent helpers) and adopt them everywhere for consistency.
-7. Verify each state in a real browser by forcing it (throttle, offline, empty
- account, error injection).
-
-## Must-not
-- Do not ship a bare spinner where a skeleton fits, or a blank area for empty.
-- Do not display raw stack traces / JSON errors to users.
-- Do not leave a Retry button that doesn't retry.
-
-## Acceptance
-- [ ] Every data view has designed loading, empty, error, and overflow states.
-- [ ] Loading uses layout-matched skeletons tied to real async.
-- [ ] Empty states have copy + a working CTA, not a void.
-- [ ] Error states are human and have working recovery actions.
-- [ ] Shared state primitives exist and are reused across surfaces.
-- [ ] States verified in-browser by forcing each one.
diff --git a/prompts/prod/13-accessibility.md b/prompts/prod/13-accessibility.md
deleted file mode 100644
index 935a25ed3..000000000
--- a/prompts/prod/13-accessibility.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 13 — Accessibility (WCAG 2.2 AA)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/`, `src/` components, design tokens/CSS variables, the 3D viewer controls.
-**Depends on:** none (run after Phase 0/1) · **Parallel-safe with:** `12`, `14`, `15`, `16`, `17`
-
-## Why this matters for $1B
-`/CLAUDE.md` makes accessibility non-optional. It widens the market, is a legal
-requirement in many jurisdictions, and signals the craft a $1B platform is held to. An
-interface only mouse-and-sighted users can operate caps growth and invites risk.
-
-## Mission
-Bring every interactive surface to WCAG 2.2 AA — semantic HTML, keyboard nav, ARIA,
-contrast, focus, and reduced-motion.
-
-## Map
-- Top surfaces: `pages/index.html` (home), `pages/forge.html`, `pages/marketplace.html`,
- `pages/trending.html`, `pages/agent-detail.html`, and an editor such as Animation
- Studio (`pages/animations.html`) or Scene Studio (`pages/scene.html` / `src/scene-studio/`).
-- Shared UI + tokens: components and CSS variables under `src/`; the 3D canvas/orbit
- controls used by the viewer and editors.
-- Existing gates to lean on: `npm run audit:web` (`scripts/page-audit.mjs`) and the
- page suite `npm run test:pages` (`scripts/test-pages.mjs`).
-
-## Do this
-1. Audit the top surfaces with axe and Lighthouse accessibility; record per-surface
- scores and every serious violation as the baseline.
-2. Fix semantic structure: landmarks (`header`/`nav`/`main`/`footer`), one logical
- heading order, labelled controls, lists where appropriate.
-3. Make everything keyboard-operable, including the 3D canvas controls and every modal:
- focus trap while open, `Esc` to close, focus returned to the trigger on close, no
- keyboard traps elsewhere.
-4. Add ARIA only where native semantics cannot express the role/state — never to
- paper over a non-semantic element that should be a `button`/`a`.
-5. Verify color contrast against the design tokens (4.5:1 text, 3:1 large text/UI);
- fix token values rather than one-off overrides.
-6. Honor `prefers-reduced-motion` for the heavy transitions and 3D motion; ensure
- visible focus rings everywhere, meaningful `alt` text on informative images, and
- form errors that are announced (`aria-live` / `aria-describedby`).
-
-## Must-not
-- Do not add ARIA that lies about state (e.g. static `aria-expanded`).
-- Do not remove focus outlines without a clearly-visible replacement.
-- Do not hide content from assistive tech to "clean up" the a11y report.
-
-## Acceptance
-- [ ] axe/Lighthouse accessibility >= 95 on the top surfaces, no serious violations.
-- [ ] Full keyboard walkthrough documented (tab order, modals, 3D controls, `Esc`).
-- [ ] Contrast meets AA against design tokens; `prefers-reduced-motion` respected.
-- [ ] `npm test` green; `npm run lint` + `npm run typecheck` clean for touched code.
-- [ ] Changelog `improvement` entry (e.g. "Keyboard + screen-reader support").
diff --git a/prompts/prod/13-design-system-consistency.md b/prompts/prod/13-design-system-consistency.md
deleted file mode 100644
index 73bd98309..000000000
--- a/prompts/prod/13-design-system-consistency.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 13 — Design-system consistency
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** global CSS / design tokens (`style.css`, `public/*.css`), shared components, every page's styling.
-**Depends on:** none. Pairs with `09`, `11`, `12`.
-
-## Why this matters for $1B
-Consistency compounds into perceived quality. `/CLAUDE.md`: "Consistent spacing and
-typography. Use the existing design tokens / CSS variables." A site that uses the same
-spacing scale, type ramp, and component vocabulary everywhere reads as one premium
-product — not a pile of separately-built pages.
-
-## Mission
-One coherent design system: documented tokens, a consistent type/spacing/color scale,
-reusable components, and every page conformed to it. No ad-hoc magic numbers.
-
-## Map
-- Existing tokens: the forge page references `--space-md/lg/xl/2xl`, `--text-xs..xl`,
- `--ink`, `--ink-dim`, `--stroke`, `--surface-*`, `--radius-*`, `--font-display/
- body/mono`, `--leading-*`. Treat these as the canonical token set.
-- 125 pages in `pages/`, many with inline `<style>` blocks — the main source of drift.
-
-## Do this
-1. Catalog the existing tokens (the `--space/--text/--ink/--surface/--stroke/--radius/
- --font/--leading` families). If a token catalog doc doesn't exist, create
- `docs/design-system.md` documenting every token, its value, and when to use it.
-2. Audit pages for **hardcoded values** that should be tokens: raw px spacing, hex
- colors, font sizes, border radii, shadows. Replace with the nearest token; if no
- token fits, the scale has a gap — extend the scale deliberately, don't add a
- one-off.
-3. **Components:** identify repeated UI (buttons, cards, chips, tabs, modals, inputs,
- toasts, badges) re-implemented per page. Extract canonical, accessible, themeable
- versions and replace duplicates. Match hover/active/focus states everywhere.
-4. **Type & spacing rhythm:** enforce the type ramp and an 8pt-ish spacing scale
- site-wide. Fix inconsistent line-heights and vertical rhythm.
-5. **Color & theming:** both light and dark themes pass contrast (prompt `09`) and use
- only tokens. No hardcoded colors that break theming.
-6. **Microinteractions:** ensure consistent transition timing/easing tokens for
- hover/active/enter/exit (`/CLAUDE.md`: "Transitions matter"). Honor reduced-motion.
-7. Add a lint/check (stylelint or a custom scan) that flags hardcoded colors/spacing
- outside the token system, and wire it into CI.
-
-## Must-not
-- Do not introduce a parallel token set or rename existing tokens (breaks every page).
-- Do not add one-off magic numbers when a token exists.
-- Do not refactor working components purely for style — extract shared ones additively.
-
-## Acceptance
-- [ ] `docs/design-system.md` documents the full token set and components.
-- [ ] Hardcoded color/spacing/type values replaced with tokens (scale extended only deliberately).
-- [ ] Canonical reusable components extracted and adopted; duplicates removed.
-- [ ] Consistent hover/active/focus + transition tokens across the site.
-- [ ] Both themes consistent and contrast-passing.
-- [ ] Token-drift lint wired into CI.
diff --git a/prompts/prod/14-seo-and-structured-data.md b/prompts/prod/14-seo-and-structured-data.md
deleted file mode 100644
index c3504f389..000000000
--- a/prompts/prod/14-seo-and-structured-data.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 14 — SEO & structured data
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `pages/` `<head>`s, `public/sitemap/`, `public/llms.txt`, `public/llms-full.txt`, `data/pages.json`, `scripts/build-page-index.mjs`, `scripts/seo-meta` (`npm run seo:meta`).
-**Depends on:** `10` (perf affects ranking). Pairs with `34`.
-
-## Why this matters for $1B
-Organic discovery is the cheapest growth channel and a durable moat. 293 pages across
-11 sections is a large surface to rank. Done right, search + AI-agent discovery
-(llms.txt) compounds for free.
-
-## Mission
-Every page is discoverable, correctly titled/described, share-ready, and emits valid
-structured data. The sitemap, llms.txt, and AI-discovery surfaces are complete and
-current.
-
-## Map
-- `npm run seo:meta` audits meta. `npm run build:pages` regenerates page index +
- sitemap + changelog from `data/pages.json` + `data/changelog.json`.
-- AI discovery: `public/llms.txt`, `public/llms-full.txt` (regenerated by build).
-- x402 endpoint discovery indexing is tracked separately (see memory note) — don't
- duplicate that here, but cross-link.
-
-## Do this
-1. Run `npm run seo:meta` and fix every page missing or sharing a `<title>` /
- `<meta description>`. Titles unique, descriptive, < ~60 chars; descriptions
- compelling, < ~155 chars.
-2. **Open Graph + Twitter cards** on every page: `og:title/description/image/url/type`
- + `twitter:card` and a real share image (per-section default + per-entity dynamic
- for agents/launches/collections). Verify with a card validator.
-3. **Canonical URLs** on every page; resolve duplicate-content (trailing slash, query
- params) via canonical + `vercel.json` redirects.
-4. **Structured data (JSON-LD):** `Organization`/`WebSite` site-wide;
- `BreadcrumbList` on nested pages; `Product`/`Offer` on marketplace/skill pages;
- `Article` on blog posts; `SoftwareApplication` on SDK pages. Validate with the Rich
- Results test.
-5. **Sitemap:** confirm `public/sitemap/` includes every public page with sane
- priorities and `lastmod`; submit-ready. `robots.txt` correct (allow public, block
- private/API, point to sitemap).
-6. **llms.txt / llms-full.txt:** ensure they describe the full product surface and
- stay regenerated by `build:pages`. This is how agents discover the platform — keep
- it first-class.
-7. **Semantic + perf:** correct heading hierarchy (shared with prompt `09`), fast LCP
- (prompt `10`), and crawlable content (no JS-only critical content where avoidable).
-8. Wire `seo:meta` into CI so a page can't ship without meta.
-
-## Must-not
-- Do not duplicate titles/descriptions across pages.
-- Do not reference any coin other than `$THREE` in any meta/structured data/share copy.
-- Do not block crawlers from public pages or expose private/API routes in the sitemap.
-
-## Acceptance
-- [ ] `npm run seo:meta` clean — every page unique title + description.
-- [ ] OG/Twitter tags + share images on every page; validated.
-- [ ] Canonicals + redirects resolve duplicate content.
-- [ ] Valid JSON-LD on org/breadcrumb/product/article/SDK pages (Rich Results passes).
-- [ ] Complete sitemap + correct robots.txt.
-- [ ] llms.txt/llms-full.txt complete and regenerated by build.
-- [ ] `seo:meta` enforced in CI.
diff --git a/prompts/prod/15-forge-end-to-end.md b/prompts/prod/15-forge-end-to-end.md
deleted file mode 100644
index ca311ba5f..000000000
--- a/prompts/prod/15-forge-end-to-end.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 15 — Forge, end-to-end
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `pages/forge.html`, forge API lane (text/image → 3D), `forge_free`/`mesh_forge`/`rig_mesh`/`forge_avatar` MCP tools, viewer (`avatar-sdk/`).
-**Depends on:** `06`, `08`, `12`. Pairs with `21`, `23`.
-
-## Why this matters for $1B
-Forge is the product's "wow" — text/photos → a textured 3D model in the browser. It's
-the top-of-funnel magic that makes people screenshot and share. It must feel
-instant, reliable, and delightful, with zero dead ends.
-
-## Mission
-Make the full forge flow production-grade: input → generation → preview → rig →
-download/AR/share, every mode, every state, on every device.
-
-## Map
-- UI: `pages/forge.html` (full-width layout; modes: Describe it / From photos /
- sketch-when-live). Stage uses `<model-viewer>`; idle teaser shows a live community
- model.
-- Engines: free NVIDIA NIM / TRELLIS lane (`forge_free`), `mesh_forge` chain,
- auto-rig (`rig_mesh`, `forge_avatar`). Catalog gating hides engines with no live
- worker (note the hidden sketch tab).
-- Auto-rig universality rules: `/CLAUDE.md` "Avatar animation is universal" +
- `src/glb-canonicalize.js`, `src/animation-retarget.js`.
-
-## Do this
-1. Exercise every mode end-to-end with real generations: text→3D, photos→3D, and
- sketch (only if a live worker exists — otherwise keep it correctly hidden, no dead
- tab). Confirm real API calls succeed with real data.
-2. **Generation lifecycle:** real progress tied to the actual job (no fake bars), with
- honest stages (queued → generating → texturing → rigging → ready). Handle slow
- jobs, timeouts, and partial failures with retry — never a hung spinner.
-3. **Preview:** orbit, zoom, AR, and lighting all work; mobile touch-orbit smooth;
- poster/skeleton until model loads (prompt `10`); model framed nicely by default.
-4. **Auto-rig:** generated humanoids drive the canonical clip library (idle/walk,
- legs included) per the universality rule; non-humanoid props fall back cleanly to
- the default rig — never a bind-pose T-pose. Verify with a couple of distinct rigs.
-5. **Output actions:** download GLB, view in AR, open in viewer, save to account, and
- share (with a real OG image of the model) — every button does real work.
-6. **States:** designed loading/empty/error (prompt `12`); rate-limit + upgrade path
- for the free lane (prompt `08`); clear messaging when an engine is down.
-7. **Cross-wiring:** a forged model links into the rest of the platform — save to
- profile, list on marketplace, use as an agent avatar, launch flow. Wire those
- connections (`/CLAUDE.md`: "A marketplace that doesn't link to agent profiles is
- half-built").
-8. Add tests for the prepare/generate/rig API paths and a Playwright happy-path.
-
-## Must-not
-- Do not show fake progress or fake "done" on failure.
-- Do not leave a generated model with no next action.
-- Do not hardcode a curated rig allowlist — extend `glb-canonicalize.js` for new skeletons.
-
-## Acceptance
-- [ ] Every visible mode produces a real model end-to-end; hidden modes stay hidden until live.
-- [ ] Honest progress lifecycle; timeouts/partial failures recover with retry.
-- [ ] Preview (orbit/zoom/AR) works desktop + mobile with poster/skeleton.
-- [ ] Auto-rig drives canonical clips on humanoids; clean fallback for props.
-- [ ] Download / AR / save / share / list-on-marketplace all work and cross-link.
-- [ ] Designed states + free-lane rate limiting; API + Playwright tests green.
diff --git a/prompts/prod/16-marketplace-end-to-end.md b/prompts/prod/16-marketplace-end-to-end.md
deleted file mode 100644
index 0b7ac33ce..000000000
--- a/prompts/prod/16-marketplace-end-to-end.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 16 — Marketplace, end-to-end
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `marketplace/`, `pages/marketplace*.html`, related `api/` (skills, listings, purchases), `prompts/monetization/` outcomes.
-**Depends on:** `12`, `17`, `18`. Pairs with `32`.
-
-## Why this matters for $1B
-A marketplace is a flywheel: creators list, buyers buy, both stick. Marketplace
-GMV is the headline metric a $1B 3D-agent platform is valued on. It must be
-trustworthy, fast, searchable, and conversion-optimized.
-
-## Mission
-A complete, polished marketplace: browse → discover → evaluate → purchase → own →
-use, with sorting/filtering/search, real listings, and airtight purchase flows.
-
-## Map
-- `marketplace/` dir + `pages/` marketplace surfaces. Skill purchase flow and
- on-chain skill licenses: `api/skills/*`, `api/_lib/skill-license-onchain.js`,
- `contracts/skill-license/` (each purchased skill = a 1/1 SPL NFT + `SkillLicense`
- PDA). Existing monetization prompts: `prompts/monetization/`.
-
-## Do this
-1. **Discovery:** listings load from real data with sorting (price, recency,
- popularity, rating) and filtering (category, price range, chain, creator). Add
- real search with sensible relevance. `/CLAUDE.md` innovation standard: if list
- views lack sorting, add it.
-2. **Listing detail:** rich, accurate detail page — 3D preview, description, price,
- creator (links to agent profile, prompt `17`), reviews/ratings if present,
- ownership state. Every claim backed by real data.
-3. **Purchase flow:** end-to-end with real payments (x402 / Solana Pay, prompt `18`).
- States: prepare → pay → confirming (poll) → owned. Idempotent, replay-safe,
- server-side price (prompt `07`). On success, the buy button becomes "Owned" and the
- skill/asset is actually usable.
-4. **Ownership & licenses:** reflect on-chain `SkillLicense` state truthfully; gate
- access by the real license, handle pending/confirmed/failed clearly.
-5. **Creator side:** list/edit/unlist flows, pricing, and creator analytics (sales,
- revenue, views) — real data, designed empty states for new creators.
-6. **Trust & safety:** report/flag listings, basic content checks (ties to prompt
- `36`), and clear refund/dispute messaging where relevant.
-7. **States & scale:** designed loading/empty/error (prompt `12`); paginate/virtualize
- large catalogs (prompt `10`); 0/1/many handled.
-8. Add E2E tests for browse + purchase (build on `prompts/monetization/23-*`).
-
-## Must-not
-- Do not show listings from sample arrays — real data only.
-- Do not trust client-sent prices; recompute server-side.
-- Do not mark a purchase complete before on-chain/payment confirmation.
-- Do not reference any coin other than `$THREE` in copy (runtime user-launched mints in launch feeds are the allowed exception).
-
-## Acceptance
-- [ ] Browse with working sort + filter + search over real listings.
-- [ ] Listing detail accurate, with 3D preview and creator link.
-- [ ] Purchase flow end-to-end with real payment, idempotent, correct states, real ownership unlock.
-- [ ] License/ownership reflects on-chain truth; access gated correctly.
-- [ ] Creator list/edit/unlist + analytics work with designed empty states.
-- [ ] Report/flag + scale handling present; E2E purchase test green.
diff --git a/prompts/prod/17-agent-profiles-and-economy.md b/prompts/prod/17-agent-profiles-and-economy.md
deleted file mode 100644
index acdc4e59f..000000000
--- a/prompts/prod/17-agent-profiles-and-economy.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# 17 — Agent profiles & economy
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `pages/agent-*.html` (detail, economy, exchange, trade, studio, wallet), `api/agents/*`, agent identity/reputation (`contracts/`, ERC-8004), AgenC reads.
-**Depends on:** `16`, `18`. Pairs with `15`, `22`.
-
-## Why this matters for $1B
-Every avatar is an autonomous agent with its own wallet and identity. The agent
-profile is the canonical "place" an agent lives — its storefront, reputation, wallet,
-and activity. This is the social + economic graph that makes the platform defensible.
-
-## Mission
-A complete, beautiful, deeply-wired agent profile and economy: identity, wallet,
-launches, skills, reputation, activity, and agent-to-agent interactions — all real,
-all cross-linked.
-
-## Map
-- Pages: `agent-detail.html`, `agent-economy.html`, `agent-exchange.html`,
- `agent-trade.html`, `agent-studio.html`, `agent-wallet.html`, `agent-embed.html`.
-- Backend: `api/agents/*` (incl. `fork.js`), `api/_lib/avatar-agent.js`,
- `api/_lib/agent-wallet.js`. Ownership model is in
- `prompts/agent-wallets/00-README-orchestration.md` (one agent = one owner,
- `user_id` immutable, fork mints a fresh wallet). Reputation: ERC-8004 in
- `contracts/`, `agent_reputation` tool. AgenC reads via MCP.
-
-## Do this
-1. **Profile page:** 3D avatar (animated, not T-pose), name/vanity, owner, bio,
- reputation, wallet summary, skills owned/offered, launches, and activity — all from
- real data. Designed empty states for new agents (prompt `12`).
-2. **Identity & ownership:** display lineage (`meta.forked_from`) honestly; "Fork"
- action mints a new owned agent + fresh wallet (never copies secrets). Only the
- owner sees owner-only controls.
-3. **Wallet surface:** balances (Solana + EVM), tip, withdraw (owner-only), spend
- limits, activity — wired to the real custodial wallet. Respect every backend
- invariant (do not change them). Build on `prompts/agent-wallets/` outcomes.
-4. **Economy:** agent's launches ($THREE-only promotion rules; user-launched mints in
- the launch feed are the runtime-data exception), skills for sale (links to
- marketplace, prompt `16`), trades/exchange, and earnings.
-5. **Reputation:** surface ERC-8004 reputation truthfully; explain how it's earned;
- no fabricated scores.
-6. **Agent-to-agent:** delegation/invocation surfaces (`agent_delegate_action`,
- agent-invocation contract) where present — make them real and legible.
-7. **Cross-wiring:** marketplace listings link here; launches link here; the walk/
- tour avatars can be these agents; embeds (`agent-embed.html`) render the live
- profile. Wire every connection.
-8. **Embed/share:** shareable profile with real OG image of the agent; embeddable
- `<agent-3d>` card.
-9. Tests for profile data, fork ownership invariants, and wallet authz.
-
-## Must-not
-- Do not violate ownership invariants or expose owner-only controls to non-owners.
-- Do not copy wallet secrets on fork.
-- Do not show fabricated reputation/earnings; real on-chain/DB data only.
-- Do not reference any coin other than `$THREE` outside the allowed runtime launch-feed exception.
-
-## Acceptance
-- [ ] Profile renders animated avatar + real identity/wallet/skills/launches/activity with designed empty states.
-- [ ] Fork mints a fresh owned agent + wallet; lineage shown; secrets never copied.
-- [ ] Wallet actions (tip/withdraw/limits) work and enforce owner-only authz.
-- [ ] Economy + reputation surfaces show real data and cross-link to marketplace/launches.
-- [ ] Agent-to-agent delegation/invocation surfaces are real where present.
-- [ ] Shareable/embeddable profile works; tests for ownership + authz green.
diff --git a/prompts/prod/18-wallet-and-x402-payments.md b/prompts/prod/18-wallet-and-x402-payments.md
deleted file mode 100644
index 2f1621c24..000000000
--- a/prompts/prod/18-wallet-and-x402-payments.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# 18 — Wallet & x402 payments
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `api/x402-*`, `api/x402/*`, `public/x402*.js`, `x402-buildout/`, `x402-modal-sdk/`, `x402-payment-modal/`, `agent-payments-sdk/`, wallet libs in `api/_lib/`.
-**Depends on:** `06`, `07`, `08`. Pairs with `16`, `17`.
-
-## Why this matters for $1B
-Payments are the revenue spine. x402 makes the platform machine-payable by other
-agents — a structural advantage. Wallets custody real funds. Both must be flawless;
-a payment bug is unforgivable and a valuation risk.
-
-## Mission
-Production-grade wallet + x402 payments: discoverable paid endpoints, reliable
-checkout, correct accounting, idempotency, and a beautiful pay UX on every device.
-
-## Map
-- Checkout: `api/x402-checkout.js` (recently hardened ATA probe against malformed RPC).
- Pay-by-name: `api/x402/pay-by-name.js` + SNS. Core client: `public/x402-pay-core.js`,
- `public/x402.js`. Modal SDKs: `x402-modal-sdk/`, `x402-payment-modal/`.
-- Discovery indexing (CDP Bazaar / x402scan / 402index) is tracked in the memory note
- `x402-discovery-indexing` — keep endpoints indexable; reuse the verifier script.
-- Default network is Solana (memory `solana-default-network`); Base/EVM secondary.
-
-## Do this
-1. **Checkout reliability:** confirm the full prepare → pay → verify → fulfill path
- is resilient (timeouts, retries, malformed-RPC defenses — generalize the
- ATA-probe hardening). Idempotency keys so a retry never double-charges or
- double-fulfills (prompt `07`).
-2. **Accounting correctness:** server recomputes amounts; verify settlement on-chain
- before fulfilling; reconcile pending/confirmed/failed states; no fulfill-before-pay.
-3. **Pay UX:** the modal SDK shows clear amount, network, recipient, and live status;
- QR + wallet-deeplink; designed loading/confirming/success/error/timeout states;
- phone-sized and accessible (prompts `09`, `11`, `12`).
-4. **Pay-by-name:** `*.threews.sol` resolution works end-to-end; clear errors for
- unresolvable names.
-5. **Wallet surface:** balances, history, send/withdraw (owner-only), spend limits —
- real custodial wallet, all backend invariants preserved. Fund/onramp path works
- (USDC). Build on the wallet skills already in the repo.
-6. **Discoverability:** ensure paid endpoints publish correct x402 payment
- requirements and are indexed (run the verifier from the memory note); list them on
- a public "paid services" page so agents and humans can find them.
-7. **SDK quality:** `agent-payments-sdk/` + modal SDKs build, are documented, and
- have a working example. Publish-ready (coordinate with prompt `24`).
-8. Failure-path + idempotency tests; extend `tests/x402-checkout-prepare.test.js`.
-
-## Must-not
-- Do not fulfill before on-chain/payment confirmation.
-- Do not trust client-supplied amounts/recipients; recompute/verify server-side.
-- Do not retry payments without idempotency keys.
-- Do not reference any coin other than `$THREE`; arbitrary user-supplied mints in
- generic plumbing are the allowed runtime exception.
-
-## Acceptance
-- [ ] Checkout resilient + idempotent end-to-end; no double-charge/fulfill under retry.
-- [ ] Settlement verified on-chain before fulfillment; states reconciled.
-- [ ] Pay modal: clear, accessible, mobile-ready, all states designed.
-- [ ] Pay-by-name resolves; wallet balances/history/withdraw/limits/onramp work owner-only.
-- [ ] Paid endpoints publish correct x402 requirements and are indexed (verifier passes).
-- [ ] Payment SDKs build, documented, with a working example.
-- [ ] Failure + idempotency tests green.
diff --git a/prompts/prod/19-walk-companion-and-tour.md b/prompts/prod/19-walk-companion-and-tour.md
deleted file mode 100644
index 049f11b7f..000000000
--- a/prompts/prod/19-walk-companion-and-tour.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# 19 — Walk companion & feature tour
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `walk-sdk/`, `src/walk-companion.js`, `src/walk-playground.js`, `src/feature-tour/`, `tour-sdk/`, `page-agent-sdk/`.
-**Depends on:** `09`, `11`, `12`. Pairs with `30` (onboarding).
-
-## Why this matters for $1B
-The walking 3D guide that strolls the live site and narrates features is a signature,
-screenshot-worthy differentiator and a powerful onboarding device. Recent git history
-shows both the tour and walk companion were broken on phones and only just fixed —
-this surface needs to be bulletproof and genuinely delightful.
-
-## Mission
-Make the walk companion and feature tour flawless and delightful across all devices:
-reliable narration, smooth avatar locomotion, accessible controls, and a tour that
-actually teaches the product.
-
-## Map
-- Walk companion (corner mascot + full-page playground + avatar picker): `walk-sdk/`,
- `src/walk-companion.js`, `src/walk-playground.js`. Published as `@three-ws/walk`.
-- Feature tour (avatar walks the live site narrating features):
- `src/feature-tour/{director,controls,free-roam,guide-avatar,narrator}.js`,
- `tour-sdk/`. Page-agent drop-in: `page-agent-sdk/` (`<page-agent>`).
-- Mobile audio gotcha (already solved — preserve): browsers block audio until a tap,
- permission resets per page; tour unlocks on first tap and shows a "tap for voice"
- cue, then re-speaks the current stop. Launchable from home via "Take the tour".
-
-## Do this
-1. **Tour content & flow:** the script visits real, current features in a logical
- order and explains *why each matters to the user* — not just "this is X." Re-audit
- stops against the live site so nothing points to a moved/removed feature.
-2. **Narration:** per-page audio unlock works on iOS/Android; clear waiting cue;
- re-speaks current stop; captions/transcript for accessibility and muted contexts
- (prompt `09`). Voice off/on persists.
-3. **Locomotion:** the guide avatar walks (legs animated via the canonical clip
- library, per `/CLAUDE.md`), pathing is smooth, and free-roam doesn't clip through
- layout or wander off-screen. Honor reduced-motion.
-4. **Controls:** play/pause/next/prev/skip/close with phone-sized tap targets,
- keyboard operable, focus-managed (prompts `09`, `11`).
-5. **Walk companion:** corner mascot summonable on desktop **and** mobile (the mobile
- "Walk with me" switch must stay reachable — this exact reachability bug already
- bit it). Idle wander without a mouse; tap opens the full playground.
-6. **Avatar picker:** diverse, real avatars; user can choose; choice persists.
-7. **SDK quality:** `walk-sdk`, `tour-sdk`, `page-agent-sdk` build, are documented,
- and have working embed examples (`examples/`). Publish-ready (prompt `24`).
-8. **Performance:** lazy-load the 3D/companion so it never blocks first paint (prompt
- `10`); throttle on low-end devices.
-9. Tests: tour stop integrity, audio-unlock logic, mobile reachability, SDK build.
-
-## Must-not
-- Do not regress the per-page audio-unlock or the mobile summon switch.
-- Do not let the guide T-pose or clip through the page.
-- Do not block first paint loading the companion.
-
-## Acceptance
-- [ ] Tour visits current features, explains user value, with captions/transcript.
-- [ ] Narration unlocks per page on iOS/Android; controls accessible + phone-sized.
-- [ ] Guide walks with animated legs, smooth pathing, reduced-motion respected.
-- [ ] Walk companion summonable on desktop + mobile; avatar picker works and persists.
-- [ ] walk/tour/page-agent SDKs build, documented, with working examples.
-- [ ] Companion lazy-loaded; tests green.
diff --git a/prompts/prod/20-scene-studio.md b/prompts/prod/20-scene-studio.md
deleted file mode 100644
index 9cf45aa1e..000000000
--- a/prompts/prod/20-scene-studio.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 20 — Scene Studio
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `src/scene-studio/` (`→ /scene`), its vendored three.js editor, GLB import/export, materials/lights.
-**Depends on:** `10`, `12`. Pairs with `15`, `21`.
-
-## Why this matters for $1B
-Scene Studio turns three.ws from "make one avatar" into "compose worlds" — a creation
-surface that increases time-in-product, output value, and shareability. A polished
-3D editor is a credibility signal for a 3D platform.
-
-## Map
-- `src/scene-studio/` — vendored `mrdoob/three.js` r184 editor (MIT, see
- `src/scene-studio/vendor/README.md`). Route `/scene`. Import GLBs, compose scenes,
- edit materials/lights, export.
-
-## Do this
-1. **Round-trip integrity:** import a GLB → edit → export → re-import yields the same
- scene. Verify across several real GLBs (forged models, avatars, club props).
- Materials, transforms, lights, and hierarchy survive the round-trip.
-2. **Editor UX polish:** the vendored editor is upstream — wrap it in three.ws
- chrome (nav, theme, design tokens per prompt `13`) so it feels native, not a
- bolted-on tool. Consistent controls and shortcuts.
-3. **Save/load:** scenes persist to the user's account (real backend), with a gallery
- of saved scenes, autosave/draft recovery, and designed empty/loading/error states
- (prompt `12`). No data loss on refresh/crash.
-4. **Performance:** lazy-load the editor bundle (it's heavy — prompt `10`); handle
- large scenes without locking the main thread; cap/compress on export.
-5. **Cross-wiring:** import avatars/agents and forged models directly; export to the
- viewer, to an agent profile background, or to a shareable scene page. Add the
- connections (`/CLAUDE.md` cross-pollination).
-6. **Share/embed:** a saved scene gets a shareable URL + OG image + embeddable viewer.
-7. **Mobile:** at minimum, scenes are *viewable* and shareable on mobile even if full
- editing is desktop-first; communicate that clearly rather than breaking (prompt
- `11`).
-8. **Licensing/attribution:** preserve the vendored three.js editor MIT attribution
- (`vendor/LICENSE`, `vendor/README.md`).
-9. Tests for import/export round-trip and save/load.
-
-## Must-not
-- Do not lose user work on refresh/crash — autosave.
-- Do not ship the editor without lazy-loading (it's large).
-- Do not strip vendored license/attribution.
-
-## Acceptance
-- [ ] GLB import→edit→export→re-import round-trips faithfully on real models.
-- [ ] Editor wrapped in native three.ws chrome/theme; consistent controls.
-- [ ] Save/load to account with gallery, autosave, and designed states.
-- [ ] Editor bundle lazy-loaded; large scenes don't lock the UI.
-- [ ] Import from forge/avatars + export to viewer/profile/share wired.
-- [ ] Shareable/embeddable scene pages; attribution preserved; round-trip tests green.
diff --git a/prompts/prod/21-avatar-creator-character-studio.md b/prompts/prod/21-avatar-creator-character-studio.md
deleted file mode 100644
index 5c1d6b622..000000000
--- a/prompts/prod/21-avatar-creator-character-studio.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 21 — Avatar creator / Character Studio
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `character-studio/`, `avatar-sdk/` (viewer + React creator), `pages/avatar-*.html`, `pages/create*.html`, animation pipeline (`public/animations/`, `src/glb-canonicalize.js`, `src/animation-retarget.js`).
-**Depends on:** `10`, `12`, `13`. Pairs with `15`, `17`, `19`.
-
-## Why this matters for $1B
-The avatar is the atomic unit of the platform — every agent, every wallet, every
-launch starts with one. Creating an avatar must be fast, joyful, and produce a rigged,
-animated, usable model that flows into the rest of the product.
-
-## Map
-- Full creator app: `character-studio/` (fork of M3-org/CharacterStudio, MIT — keep
- attribution). Viewer + React creator: `avatar-sdk/` (`@three-ws/avatar`,
- `<agent-3d>` web component, `/react` `/creator` subpaths).
-- Pages: `avatar-edit/page/embed/studio`, `create*`, `create-selfie`, `creating`.
-- Animation universality: `/CLAUDE.md` "Avatar animation is universal — no rig
- allowlist"; mappings in `src/glb-canonicalize.js` (cover new skeletons in
- `tests/glb-canonicalize.test.js`), retarget in `src/animation-retarget.js`.
-
-## Do this
-1. **Creation paths:** every entry (build from parts, from a selfie, from forge,
- upload your own GLB) works end-to-end and yields a rigged, animated avatar.
- Reconcile the many `create*` pages — remove dead/duplicate flows, keep the canonical
- ones reachable (prompt `02`).
-2. **Rig universality:** any humanoid upload drives the canonical clip library (idle/
- walk, legs included) via bone-name canonicalization; new skeleton conventions get a
- mapping + test case — never a curated allowlist, never a bind-pose T-pose. Verify
- with avatars from several sources (Mixamo, Avaturn, VRM, Ready-Player-like).
-3. **Editor UX:** native three.ws chrome/theme (prompt `13`); real-time preview;
- accessible controls; mobile-aware (prompt `11`). Character-studio fork wrapped so
- it feels first-party.
-4. **Save & ownership:** saving creates an owned agent + custodial wallet (per the
- ownership model); editing someone else's forks correctly (fresh wallet, lineage).
- Designed empty/loading/error states (prompt `12`).
-5. **Output & cross-wiring:** finished avatar flows to: agent profile, walk/tour guide,
- marketplace listing, embed (`<agent-3d>`), and launch. Wire each connection.
-6. **Performance:** lazy-load the heavy creator; compress exported GLBs; smooth on
- mid-tier devices (prompt `10`).
-7. **SDK quality:** `avatar-sdk` builds, documented, with working web-component +
- React examples (`examples/`); publish-ready (prompt `24`).
-8. Tests: extend `tests/glb-canonicalize.test.js` for any new rig; save→own→fork
- invariants; viewer render.
-
-## Must-not
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` + add a test case.
-- Do not let any humanoid fall back to a T-pose.
-- Do not copy wallet secrets on fork; do not strip the CharacterStudio MIT attribution.
-
-## Acceptance
-- [ ] Every creation path produces a rigged, animated, owned avatar; dead create-flows removed.
-- [ ] Humanoids from multiple rig sources animate (legs included); new skeletons covered by tests.
-- [ ] Creator feels first-party (theme/chrome), accessible, mobile-aware.
-- [ ] Save creates owned agent + wallet; fork mints fresh wallet + lineage.
-- [ ] Avatar flows into profile/tour/marketplace/embed/launch.
-- [ ] avatar-sdk builds + documented + examples; canonicalize/ownership tests green.
diff --git a/prompts/prod/22-pumpfun-and-three-token.md b/prompts/prod/22-pumpfun-and-three-token.md
deleted file mode 100644
index 0ba1b7701..000000000
--- a/prompts/prod/22-pumpfun-and-three-token.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 22 — Pump.fun launch & $THREE surfaces
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `api/pump/*`, `pump-fun-skills/`, `packages/pumpfun-mcp/`, `packages/three-token-mcp/`, `pages/bulk-launch.html`, launch feeds, $THREE surfaces, sniper/oracle workers.
-**Depends on:** `06`, `07`, `08`, `18`. Pairs with `16`, `17`.
-
-## Why this matters for $1B
-The launch + token economy is a major engagement and revenue surface, and $THREE is
-the platform's only coin and a core narrative. These surfaces must be rock-solid,
-honest, and strictly compliant with the one-coin rule.
-
-## Map
-- Launch backend: `api/pump/*`, `pump-fun-skills/`. Bulk: `pages/bulk-launch.html`.
- Launch feed: `/launches`, `/api/pump/launches` over `pump_agent_mints`. MCP:
- `packages/pumpfun-mcp/`, `packages/three-token-mcp/`. Snapshot: `pump_snapshot` tool.
-- Workers: `worker:oracle`, `worker:sniper` (`workers/`), deploy via `deploy:sniper`.
-- **$THREE only.** CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Two
- runtime-data exceptions only: (1) generic launcher accepting a user-supplied mint at
- runtime; (2) platform launch directories rendering user-launched mints from our own
- records. Never hardcode/market/recommend any non-$THREE mint anywhere.
-
-## Do this
-1. **Coin-rule audit FIRST:** grep the whole surface (code, copy, tests, fixtures,
- metadata) for any coin reference that isn't $THREE or a clearly-synthetic
- placeholder. Remove every one — treat like a leaked secret. Confirm the two
- runtime exceptions are the *only* places non-$THREE mints appear, and only from
- live records / user input.
-2. **Launch flow:** create/launch end-to-end with real pump.fun integration and real
- payment (prompt `18`); honest progress and confirmation; idempotent so a retry
- never double-launches. Designed states (prompt `12`).
-3. **Bulk launch:** `bulk-launch.html` handles batches with per-item status, partial
- failure recovery, and clear accounting — no silent drops.
-4. **Launch feed:** `/launches` + agent-profile launch history render real records
- from `pump_agent_mints`; link to agent profiles (prompt `17`); designed empty state.
-5. **$THREE surfaces:** any $THREE price/holders/snapshot data is real (via
- `pump_snapshot`/RPC), resilient (prompt `06`), and never fabricated. Token-gating
- (if used) checks real balances.
-6. **Workers:** oracle + sniper run reliably with the resilience patterns (timeouts,
- retries, circuit-breakers), proper logging/alerting (prompt `25`), and safe
- shutdown. Never blind-retry trades (idempotency, prompt `07`).
-7. **MCP tools:** `pumpfun-mcp` + `three-token-mcp` build, are documented, return
- correct structured output, and are smoke-tested (`smoke:mcp`).
-8. Tests: launch idempotency, feed rendering, coin-rule grep as a CI guard.
-
-## Must-not
-- Do not reference, hardcode, market, or recommend any coin other than $THREE
- anywhere outside the two runtime-data exceptions.
-- Do not paste any real third-party mint/creator/holder address in tests/fixtures.
-- Do not double-launch or blind-retry trades.
-
-## Acceptance
-- [ ] Coin-rule grep clean; non-$THREE mints appear only in the two runtime exceptions; CI guard added.
-- [ ] Launch + bulk-launch end-to-end, idempotent, with honest states and partial-failure recovery.
-- [ ] Launch feed renders real records and links to profiles; designed empty state.
-- [ ] $THREE data real + resilient; token-gating checks real balances.
-- [ ] Oracle + sniper workers resilient, logged/alerted, idempotent.
-- [ ] pumpfun-mcp + three-token-mcp build + documented + smoke-tested; tests green.
diff --git a/prompts/prod/23-mcp-servers-production.md b/prompts/prod/23-mcp-servers-production.md
deleted file mode 100644
index c7c8052d8..000000000
--- a/prompts/prod/23-mcp-servers-production.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 23 — MCP servers, production-ready
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `mcp-server/`, `mcp-bridge/`, `packages/*-mcp/` (avatar-agent, pumpfun, ibm-watsonx, ibm-x402, three-token, threews-avatar), the 3d-agent MCP tool surface.
-**Depends on:** `06`, `07`, `08`, `18`. Pairs with `24`.
-
-## Why this matters for $1B
-MCP is how every AI agent in the world plugs into three.ws. A clean, paid, discoverable
-MCP surface makes the platform infrastructure other products build on — the highest-
-multiple position to occupy. The free `forge_free` lane is the wedge.
-
-## Map
-- Servers: `mcp-server/` (`@three-ws/mcp-server`), `mcp-bridge/`, and the
- `packages/*-mcp/` set. Tooling: `npm run audit:mcp`, `smoke:mcp`, `test:mcp`,
- `publish:mcp`(`:dry`).
-- Tool surface (3d-agent-local): `forge_free` (free), `text_to_avatar`, `mesh_forge`,
- `rig_mesh`, `forge_avatar`, `ens_sns_resolve`, `agent_delegate_action`,
- `sentiment_pulse`, `get_pose_seed`, `pump_snapshot`, `agent_reputation`,
- `vanity_grinder`, `aixbt_intel`, `aixbt_projects`, AgenC reads. Paid tools quote USDC
- and require an x402 payment payload in `_meta` (v2 transport); missing payment →
- `PaymentRequired` structuredContent.
-
-## Do this
-1. **Spec conformance:** every server speaks current MCP transport correctly; each
- tool has accurate name, description (incl. USDC price for paid), and a strict input
- schema with validation. Errors return proper MCP error shapes, never crashes.
-2. **Free vs paid:** `forge_free` works with no wallet/key and returns a GLB URL +
- viewer link. Paid tools return correct `PaymentRequired` structuredContent without
- payment and fulfill correctly with a valid x402 payload (prompt `18`). Server-side
- price authority (prompt `07`).
-3. **Resilience & limits:** every tool wraps its upstreams with timeouts/retries
- (prompt `06`) and is rate-limited/abuse-guarded (prompt `08`). No tool can hang a
- client.
-4. **Discoverability:** tools/servers are discoverable (bazaar/x402 indexing, memory
- note `x402-discovery-indexing`); a public catalog page lists them with prices and
- examples.
-5. **Docs & examples:** each server has a README with install + config (Claude Desktop/
- Code config snippet), env requirements, and a runnable example per tool. Keep
- `STRUCTURE.md` + `PUBLISHING.md` accurate.
-6. **Audit/smoke/tests:** `npm run audit:mcp`, `smoke:mcp`, `test:mcp` all pass and
- run in CI. Add coverage for the payment-required path and schema validation.
-7. **Publish-readiness:** `publish:mcp:dry` clean; versions, `files`, and metadata
- correct for every published `@three-ws/*-mcp` (coordinate with prompt `24`).
-
-## Must-not
-- Do not let a missing payment return a fake success — return `PaymentRequired`.
-- Do not trust client-sent prices; server is the price authority.
-- Do not ship a tool whose upstream can hang the client without a timeout.
-- Do not reference any coin other than $THREE in tool copy/output (runtime user mints excepted).
-
-## Acceptance
-- [ ] Every server spec-conformant; every tool validated input + proper error shapes.
-- [ ] forge_free works keyless; paid tools enforce x402 with correct PaymentRequired + fulfillment.
-- [ ] All tools have timeouts/retries + rate limiting; none can hang a client.
-- [ ] Public MCP catalog page + per-server README/examples; discovery indexing verified.
-- [ ] `audit:mcp` + `smoke:mcp` + `test:mcp` green in CI, incl. payment-required coverage.
-- [ ] `publish:mcp:dry` clean for all published MCP packages.
diff --git a/prompts/prod/24-sdk-publishing-and-docs.md b/prompts/prod/24-sdk-publishing-and-docs.md
deleted file mode 100644
index 3a7c2a0db..000000000
--- a/prompts/prod/24-sdk-publishing-and-docs.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 24 — SDK publishing & docs
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** all published packages — `avatar-sdk/`, `walk-sdk/`, `tour-sdk/`, `page-agent-sdk/`, `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`, `agent-protocol-sdk/`, `agent-ui-sdk/`, `packages/*`.
-**Depends on:** `15`, `18`, `19`, `21`, `23`. Pairs with `34`.
-
-## Why this matters for $1B
-Every SDK someone installs is a distribution endpoint and a lock-in surface. A
-platform valued at $1B has SDKs that "just work" — installable, typed, documented,
-versioned, with copy-paste examples. Developer trust is earned in the first 5 minutes.
-
-## Map
-- npm workspaces + top-level SDKs (see `STRUCTURE.md`). Publish scripts:
- `publish:packages`(`:dry`), `publish:lib`, `publish:mcp`(`:dry`), `release:lib`.
- Promotion path + publishing notes in `STRUCTURE.md`, `page-agent-sdk/PUBLISHING.md`.
-
-## Do this
-1. **Build integrity:** every package builds cleanly from a fresh install
- (`npm ci`), with correct `main`/`module`/`exports`/`types`, `files` allowlist
- (no source-only leakage, no junk), and working ESM/CJS as declared.
-2. **Types:** ship accurate type declarations (`.d.ts`) for every public API. No
- `any`-leaks at the boundary. `npm run typecheck` clean.
-3. **Versioning:** consistent semver, accurate `peerDependencies`, no phantom/extra
- deps, deduped lockfile. Confirm `publish:packages:dry` and `publish:mcp:dry` are
- clean for all.
-4. **READMEs:** every package has a README with: what it is, install, a 30-second
- quickstart that actually runs, the full API surface, framework variants (web
- component + React for avatar; embed snippets for walk/tour/page-agent), and a link
- to live examples.
-5. **Examples:** `examples/` has a runnable example per SDK (web component, React,
- two-agents, minimal, embed). Each is exercised and works against the live site.
-6. **Changelogs:** each published package has a CHANGELOG; an SDK release also gets a
- holder-facing entry in `data/changelog.json` (tag `sdk`).
-7. **CDN/embed:** the script-tag/CDN embed paths (avatar viewer, walk companion, page
- agent) are documented with integrity-pinned snippets that work copy-paste.
-8. **License/attribution:** licenses present and correct; forks (CharacterStudio,
- three.js editor) keep upstream attribution.
-9. Do a real consumer test: in a scratch project outside the repo, `npm install` the
- packed tarball (`npm pack`) and run each quickstart. Fix anything that doesn't work.
-
-## Must-not
-- Do not publish a package whose quickstart doesn't run as written.
-- Do not leak source/test files or secrets via a missing `files` allowlist.
-- Do not reference any coin other than $THREE in SDK docs/examples.
-
-## Acceptance
-- [ ] Every package builds from `npm ci`; correct exports/types/files; ESM/CJS as declared.
-- [ ] Accurate `.d.ts` for all public APIs; typecheck clean.
-- [ ] Consistent semver + correct peer deps; `publish:*:dry` clean.
-- [ ] Every package README has a runnable quickstart + full API + example links.
-- [ ] One runnable example per SDK in `examples/`, exercised against live.
-- [ ] `npm pack` → install-in-scratch-project quickstart works for each SDK.
-- [ ] SDK release changelog entries added (tag `sdk`).
diff --git a/prompts/prod/25-observability-logging-metrics.md b/prompts/prod/25-observability-logging-metrics.md
deleted file mode 100644
index 0f0f32d1c..000000000
--- a/prompts/prod/25-observability-logging-metrics.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 25 — Observability (logging, metrics, error tracking)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** `api/`, `workers/`, `public/error-reporter.js`, logging/metrics/tracing infra.
-**Depends on:** `06`, `08`. Pairs with `27`, `28`.
-
-## Why this matters for $1B
-You cannot operate or scale what you cannot see. At $1B-trajectory volume, you need to
-know within seconds when payments fail, RPC degrades, or a deploy regresses. Observable
-systems are the difference between a 5-minute incident and a 5-hour one.
-
-## Mission
-End-to-end observability: structured logs, error tracking with alerting, key business
-+ system metrics on dashboards, and request tracing across api/workers.
-
-## Map
-- `public/error-reporter.js` already captures client runtime errors — wire it into a
- real sink and dedupe/group. Backend handlers in `api/`, workers in `workers/`.
-- Prefer a vetted OSS/SaaS sink (Sentry-class for errors, an OTEL-compatible metrics/
- trace backend) over hand-rolling. Additive — don't churn working handlers.
-
-## Do this
-1. **Structured logging:** adopt one structured logger (JSON) across `api/` + workers
- with a request id, route, latency, status, and identity (no secrets/PII — prompt
- `05`/`07`). Replace ad-hoc `console.log`. Log levels respected per env.
-2. **Error tracking:** server + client errors flow to an error tracker with source
- maps, grouping, release tagging, and alerting on new/spiking errors. Wire
- `error-reporter.js` to it. Confirm the happy path is silent.
-3. **Metrics:** instrument the metrics that matter — request rate/latency/error per
- route, payment success/failure + GMV, generation jobs (queued/succeeded/failed/
- p95 duration), RPC/AI upstream latency + error + spend, rate-limit hits, signups/
- activations. Cost meters per paid upstream (ties to prompt `08`).
-4. **Tracing:** propagate a request/trace id through API → upstreams → workers so a
- slow payment can be traced end-to-end.
-5. **Dashboards:** a system dashboard (latency/errors/saturation/cost) and a business
- dashboard (signups, activation, GMV, generations, MCP calls). Document where they
- live in `docs/`.
-6. **Alerting:** actionable alerts (not noise) for: payment failure rate, 5xx spike,
- upstream-spend approaching cap, worker down, error spike, latency SLO breach.
- Route to the right channel; define ownership/runbook links.
-7. **SLOs:** define SLOs for the critical paths (checkout, forge, page load) and track
- error budgets.
-
-## Must-not
-- Do not log secrets, private keys, or PII.
-- Do not alert on everything — every alert must be actionable.
-- Do not hand-roll a metrics backend when a vetted one fits.
-
-## Acceptance
-- [ ] One structured logger across api + workers with request ids; no secret/PII logging.
-- [ ] Server + client errors flow to a tracker with source maps, grouping, alerting.
-- [ ] Key system + business metrics instrumented, incl. per-upstream cost meters.
-- [ ] Trace ids propagate API → upstream → worker.
-- [ ] System + business dashboards exist and are documented.
-- [ ] Actionable alerts with runbooks; SLOs defined for critical paths.
diff --git a/prompts/prod/26-database-integrity-and-migrations.md b/prompts/prod/26-database-integrity-and-migrations.md
deleted file mode 100644
index 8da191b0a..000000000
--- a/prompts/prod/26-database-integrity-and-migrations.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 26 — Database integrity & migrations
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** DB schema/migrations (`npm run db:migrate`, `db:status`), data-access in `api/_lib/`, tables like `agent_identities`, `pump_agent_mints`, skill/license/purchase tables.
-**Depends on:** `05`, `07`. Pairs with `18`, `27`.
-
-## Why this matters for $1B
-Data integrity is existential when the data is wallets, ownership, and money. Corrupt
-or lost data destroys trust and is often unrecoverable. Clean migrations let you ship
-fast without breaking production.
-
-## Mission
-A documented, versioned schema with safe forward-migrations, enforced integrity
-constraints, backups with tested restore, and no orphaned or inconsistent records.
-
-## Map
-- Migration tooling: `npm run db:migrate`, `npm run db:status`. Data access in
- `api/_lib/`. Core invariants: `agent_identities.user_id` immutable, one agent = one
- owner; launch records in `pump_agent_mints`; skill/license/purchase records.
-
-## Do this
-1. **Schema audit:** document every table, column, type, and relationship in
- `docs/data-model.md`. Identify missing constraints: primary keys, foreign keys,
- uniqueness (e.g. one wallet per agent), not-null, check constraints (amount ≥ 0),
- and indexes on hot query paths.
-2. **Add the constraints** that enforce the invariants the app assumes — especially
- the ownership and money invariants (prompt `07`). Backfill/clean any existing rows
- that would violate them first.
-3. **Migrations:** ensure every schema change goes through a versioned, ordered,
- idempotent migration; `db:status` reflects reality; migrations are forward-safe and
- reversible where possible. No manual prod schema edits.
-4. **Integrity sweep:** scan for orphans (records pointing to deleted parents),
- duplicates, and inconsistent states (purchase confirmed but no license; mint
- recorded but no agent). Fix the data and add the constraint/job that prevents
- recurrence.
-5. **Transactions:** money/ownership mutations that touch multiple rows run in
- transactions so they can't partially apply (ties to prompt `18` idempotency).
-6. **Backups & restore:** confirm automated backups exist, are encrypted, and — most
- importantly — **test a restore** into a scratch environment. Document RPO/RTO.
-7. **Performance:** add indexes for slow queries surfaced by observability (prompt
- `25`); paginate large reads (prompt `10`).
-8. Add data-integrity tests/checks that can run against a seeded DB in CI.
-
-## Must-not
-- Do not edit production schema outside a migration.
-- Do not add a destructive migration without a tested backup and a reversal plan.
-- Do not weaken an invariant constraint to make a write succeed — fix the write.
-
-## Acceptance
-- [ ] `docs/data-model.md` documents schema + relationships.
-- [ ] Integrity constraints (PK/FK/unique/not-null/check) + hot-path indexes added; offending data cleaned.
-- [ ] All schema changes are versioned, idempotent migrations; `db:status` accurate.
-- [ ] Orphan/duplicate/inconsistent-state sweep clean; preventer in place.
-- [ ] Multi-row money/ownership mutations are transactional.
-- [ ] Backups verified by a successful test restore; RPO/RTO documented.
-- [ ] Data-integrity checks runnable in CI.
diff --git a/prompts/prod/27-deploy-pipeline-and-rollback.md b/prompts/prod/27-deploy-pipeline-and-rollback.md
deleted file mode 100644
index c76a1c762..000000000
--- a/prompts/prod/27-deploy-pipeline-and-rollback.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 27 — Deploy pipeline & rollback safety
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** `vercel.json`, build scripts (`build`, `build:vercel`, `build:all`), `deploy/`, CI/CD, `npm run audit:deploy`, the two git remotes.
-**Depends on:** `01`, `05`, `25`. Pairs with `28`.
-
-## Why this matters for $1B
-Shipping safely and reverting instantly is what lets a team move fast without breaking
-trust. A bad deploy that can't be rolled back is an outage. Repeatable, gated deploys
-are an engineering-maturity signal in diligence.
-
-## Map
-- `vercel.json` (buildCommand, outputDirectory, installCommand, env, functions,
- routes, crons). Build pipeline scripts in `package.json`. `npm run audit:deploy`.
-- **Two remotes** (`/CLAUDE.md`): `threeD` (push-only mirror) + `threews` (canonical).
- Never pull/fetch/merge from `threeD`. Watch the `npx vercel build` trap that
- overwrites `api/*.js` in place — guard against committing esbuild bundles.
-
-## Do this
-1. **Reproducible build:** `npm ci` from a clean tree builds deterministically;
- document the exact build/deploy steps in `docs/deploy.md`. Confirm `audit:deploy`
- passes and what it checks.
-2. **Pipeline gates:** deploys to production require green lint + typecheck + tests
- (prompt `01`). Wire CI so `main` deploys only on green; PRs get preview deploys.
-3. **Source-bundle trap guard:** add a pre-commit/CI check that fails if any committed
- `api/*.js` or `public/*` begins with esbuild markers (`__defProp`/`createRequire`),
- per the known trap. Document the recovery (`git restore -- api/ public/`).
-4. **Both-remotes discipline:** document and (where possible) script the dual push
- (`threeD` + `threews`) so neither deploy target falls behind; never force-push;
- never pull from `threeD`.
-5. **Migrations in deploy:** DB migrations (prompt `26`) run as an ordered, gated step
- with a clear order relative to code deploy (backward-compatible migrate → deploy →
- cleanup). No deploy that assumes an unrun migration.
-6. **Rollback:** verify instant rollback to the previous good deployment works (Vercel
- promote/rollback), and document the exact steps + when to use it. Practice one.
-7. **Crons:** audit `vercel.json` crons (incl. the auto-rig sweep) — each has a clear
- purpose, idempotency, failure alerting (prompt `25`), and won't stampede.
-8. **Env parity:** preview/staging mirrors prod env keys (prompt `05`); no
- prod-only surprises.
-9. **Post-deploy smoke:** an automated post-deploy smoke (`smoke:onchain`,
- `smoke:mcp`, key page loads) gates promotion and pages on failure.
-
-## Must-not
-- Do not commit esbuild-bundled `api/*.js` source (run the guard).
-- Do not pull/fetch/merge from `threeD`; do not force-push either remote.
-- Do not deploy code that depends on an unrun migration.
-
-## Acceptance
-- [ ] `docs/deploy.md` documents reproducible build + deploy + rollback steps.
-- [ ] Production deploy gated on green CI; PRs get previews.
-- [ ] CI guard blocks committed esbuild-bundled source files.
-- [ ] Dual-remote push documented/scripted; no pulls from `threeD`.
-- [ ] Migrations run as a gated, ordered, backward-compatible step.
-- [ ] Rollback verified by an actual practice run; documented.
-- [ ] Crons audited (purpose/idempotency/alerting); post-deploy smoke gates promotion.
diff --git a/prompts/prod/28-uptime-monitoring-and-status-page.md b/prompts/prod/28-uptime-monitoring-and-status-page.md
deleted file mode 100644
index afcd045d7..000000000
--- a/prompts/prod/28-uptime-monitoring-and-status-page.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 28 — Uptime monitoring & public status page
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** health-check endpoints in `api/`, external uptime monitoring, a public status page.
-**Depends on:** `25`. Pairs with `27`, `29`.
-
-## Why this matters for $1B
-Enterprise buyers and serious developers expect a status page and a track record of
-uptime. Knowing about outages before users do — and being transparent when they
-happen — builds the trust a platform handling money requires.
-
-## Mission
-Real health checks for every critical dependency, external synthetic monitoring of
-the user-critical flows, and a public status page with incident history.
-
-## Map
-- Add/confirm health endpoints under `api/` (e.g. `/api/health`, `/api/health/deep`).
-- Critical deps to probe: DB (prompt `26`), Solana RPC, pump.fun feed, AI worker
- proxies, x402 facilitator, R2/CDN for GLBs.
-- Observability sinks from prompt `25` feed the monitors/alerts.
-
-## Do this
-1. **Health endpoints:** a fast liveness check and a deeper readiness check that
- verifies each critical dependency (DB connectivity, RPC reachable, AI proxy up,
- payment facilitator up) and returns a structured per-dependency status. No secrets
- in output.
-2. **Synthetic monitoring:** external uptime checks (multi-region) for the homepage,
- forge generate path, a sample MCP call, and a checkout prepare — i.e. the flows
- that lose money/users when down, not just "is the site up."
-3. **Alerting:** down/degraded triggers the on-call alert (prompt `25`) with the
- failing dependency named. Distinguish degraded (one dep slow) from down.
-4. **Public status page:** a branded status page (own page or a vetted provider) showing
- component status (web, forge, payments, MCP, launches), uptime history, and incident
- posts. Linkable from the footer.
-5. **Incident process:** document a lightweight incident runbook in `docs/`: detect →
- declare → communicate (status page) → mitigate → resolve → postmortem. Templates
- included.
-6. **Cron/worker liveness:** monitor the crons + workers (oracle/sniper, auto-rig
- sweep) — alert if a scheduled run is missed or fails (prompt `27`).
-
-## Must-not
-- Do not expose secrets, internal hostnames, or stack details in health output.
-- Do not let the deep health check be so heavy it becomes a self-inflicted load source
- — rate-limit/cache it.
-- Do not alert without naming the failing component.
-
-## Acceptance
-- [ ] Liveness + deep readiness endpoints report per-dependency status, no leaks.
-- [ ] External multi-region synthetic checks cover homepage, forge, MCP, checkout.
-- [ ] Down/degraded alerts fire with the failing dependency named.
-- [ ] Public branded status page with component status + uptime + incident history, linked in footer.
-- [ ] Incident runbook + templates in `docs/`.
-- [ ] Cron/worker liveness monitored with missed-run alerts.
diff --git a/prompts/prod/29-load-and-stress-testing.md b/prompts/prod/29-load-and-stress-testing.md
deleted file mode 100644
index d2f3a3ad3..000000000
--- a/prompts/prod/29-load-and-stress-testing.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# 29 — Load & stress testing
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** load-test harness (in `scripts/` or `tests/load/`), `api/`, `workers/`, caching/CDN config.
-**Depends on:** `06`, `08`, `25`, `26`. Pairs with `27`, `28`.
-
-## Why this matters for $1B
-A platform that goes viral and falls over wasted the moment. You need to know the real
-ceiling of each critical path, where it breaks first, and that autoscaling + rate
-limits + caching hold under a launch-day spike. Capacity confidence is fundability.
-
-## Mission
-Establish load profiles for the critical paths, find the breaking points, fix the
-first bottlenecks, and document headroom + scaling behavior.
-
-## Map
-- Critical paths: homepage + key pages (static/CDN), forge generation (expensive,
- upstream-bound), checkout/x402 (money, DB + RPC), MCP tool calls, launch feed reads,
- agent profile reads.
-- Use a vetted tool (k6 / Artillery). Run against a staging/preview env, never prod,
- with synthetic data — and **never** real third-party mints (prompt `22`).
-
-## Do this
-1. **Define profiles:** realistic mixes — steady-state, a marketing-spike ramp, and a
- sustained soak — with target RPS/concurrency per path based on growth goals.
-2. **Build the harness** in `scripts/` or `tests/load/` (kept, documented, not
- throwaway), parameterized by env + RPS, with auth handled. Cover read paths and at
- least one safe write path (idempotent, against staging).
-3. **Run & measure:** capture p50/p95/p99 latency, error rate, throughput, and
- upstream/DB saturation (via prompt `25` dashboards). Identify the first bottleneck
- on each path.
-4. **Fix the top bottlenecks:** add/verify caching (CDN for static + GLBs, query
- caching for hot reads), connection pooling/limits for DB + RPC, queueing/
- backpressure for generation, and confirm rate limits (prompt `08`) shed load
- gracefully instead of collapsing.
-5. **Autoscaling:** verify serverless function concurrency limits and worker scaling
- behave under spike; no cold-start cliff on the money path; no unbounded fan-out to
- a single RPC node.
-6. **Failure-mode under load:** confirm that when an upstream degrades under load, the
- resilience patterns (prompt `06`) and circuit breakers keep the rest of the site up
- (graceful degradation, designed error states — prompt `12`).
-7. **Document capacity:** record measured headroom per path, the breaking point, and
- the scaling levers in `docs/capacity.md`. Set alert thresholds (prompt `28`) below
- the breaking point.
-
-## Must-not
-- Do not load-test production or use real third-party mints/addresses.
-- Do not "fix" a bottleneck by removing a rate limit or a safety check.
-- Do not leave the harness as an undocumented throwaway in the repo root (use `scripts/`).
-
-## Acceptance
-- [ ] Documented load profiles (steady/spike/soak) with growth-based targets.
-- [ ] Repeatable, parameterized load harness in `scripts/` or `tests/load/`.
-- [ ] p50/p95/p99 + error rate + saturation measured per critical path; bottlenecks identified.
-- [ ] Top bottlenecks fixed (caching, pooling, queueing); rate limits shed load gracefully.
-- [ ] Autoscaling verified under spike; no cold-start cliff on checkout.
-- [ ] Graceful degradation confirmed when an upstream fails under load.
-- [ ] `docs/capacity.md` records headroom, breaking points, levers; alerts set below them.
diff --git a/prompts/prod/30-onboarding-and-activation.md b/prompts/prod/30-onboarding-and-activation.md
deleted file mode 100644
index 1bc95a23e..000000000
--- a/prompts/prod/30-onboarding-and-activation.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# 30 — Onboarding & activation funnel
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** first-run experience across `pages/`, signup/auth, the path from landing → first "aha", `src/feature-tour/`, empty states.
-**Depends on:** `12`, `15`, `19`. Pairs with `31`, `33`.
-
-## Why this matters for $1B
-Activation rate — the share of new users who reach the "aha" (a forged 3D model, a
-created agent) — is the single biggest lever on growth-loop velocity and therefore
-valuation. Most signups are won or lost in the first 60 seconds.
-
-## Mission
-Design and build a first-run experience that gets a brand-new visitor to a real,
-shareable "aha" moment as fast as possible, with zero confusion and zero dead ends.
-
-## Do this
-1. **Define the aha + the funnel:** pick the primary activation event (likely: first
- forged/created 3D model, or first agent). Map every step from landing →
- aha and instrument each (prompt `33`) to find drop-off.
-2. **Reduce time-to-value:** let users experience the magic *before* signup where
- possible (the free `forge_free` lane, the live tour) — capture the account *after*
- they've felt value, not before. No wall in front of the wow.
-3. **Guided first run:** a focused, skippable first-run flow (lean on the feature tour,
- prompt `19`) that points at the one next action, not a feature dump. Progressive
- disclosure.
-4. **Empty states as onboarding:** every first-visit empty state (profile, wallet,
- marketplace, dashboard) teaches the next step with a working CTA (prompt `12`).
-5. **Account creation:** frictionless auth; if a custodial wallet is provisioned,
- explain it simply and reassuringly. Clear value for signing up.
-6. **First-win reinforcement:** when the user hits the aha, celebrate it and offer the
- natural next step (share it, list it, make another, give it a wallet) — chain into
- the growth loop (prompt `35`).
-7. **Re-engagement:** a sensible welcome/first-steps message (email/notification per
- prompt `39`) for users who leave before activating.
-8. **Measure:** activation rate, time-to-aha, and step drop-off visible on the growth
- dashboard (prompt `25`/`33`). Set a baseline and a target.
-
-## Must-not
-- Do not gate the core "wow" behind signup if a no-account path exists.
-- Do not dump every feature on a new user — one next action at a time.
-- Do not ship empty states that are dead ends.
-
-## Acceptance
-- [ ] Activation event defined; full landing→aha funnel instrumented with drop-off visibility.
-- [ ] A no-signup path to the core wow exists; account captured after value.
-- [ ] Skippable guided first-run points at one next action; progressive disclosure.
-- [ ] Every first-visit empty state teaches + has a working CTA.
-- [ ] First-win celebration chains into share/create-again/wallet.
-- [ ] Re-engagement message for pre-activation drop-offs.
-- [ ] Activation rate + time-to-aha tracked with a baseline and target.
diff --git a/prompts/prod/31-home-and-landing-conversion.md b/prompts/prod/31-home-and-landing-conversion.md
deleted file mode 100644
index 5b56dfc6a..000000000
--- a/prompts/prod/31-home-and-landing-conversion.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 31 — Home / landing conversion
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** `pages/home.html`, top-of-funnel landing pages, hero, primary CTAs, social proof.
-**Depends on:** `10`, `13`, `14`. Pairs with `30`, `33`.
-
-## Why this matters for $1B
-The homepage is the highest-traffic, highest-leverage page. A few points of conversion
-lift compounds across every channel. It must instantly communicate what three.ws is,
-why it's special, and what to do next — and it must be screenshot-worthy.
-
-## Map
-- `pages/home.html` (currently modified in the working tree — review before editing).
- Pulls from `data/features.json` / `public/features.json`. Global tokens (prompt
- `13`).
-
-## Do this
-1. **Message clarity:** above the fold answers "what is this / who is it for / why
- care" in one glance, with a single dominant CTA toward the activation event (prompt
- `30`). No jargon, no ambiguity.
-2. **Show, don't tell:** lead with the product's magic — a live, interactive 3D
- moment (a real model the visitor can orbit, the walking guide, a forge demo) rather
- than a static screenshot. It must load fast (prompt `10`) and never block first
- paint.
-3. **Proof:** real social proof — usage numbers, notable creations, launches, SDK
- installs, testimonials — all truthful and live where possible. No fabricated
- metrics.
-4. **Narrative flow:** the page tells a story — magic → how it works → what you can
- build (forge, agents, marketplace, SDKs) → proof → CTA. Each section links into the
- relevant surface (cross-wiring, `/CLAUDE.md`).
-5. **CTAs everywhere sensible:** primary CTA repeated at natural decision points;
- secondary paths (developers → SDKs/docs, traders → launches, creators →
- marketplace) routed clearly.
-6. **Polish to screenshot bar:** microinteractions, gradients, motion-with-intent
- (reduced-motion safe), perfect spacing/type (prompt `13`), flawless on mobile
- (prompt `11`) and both themes.
-7. **Performance + SEO:** great LCP/CLS (prompt `10`), complete meta + OG + JSON-LD
- (prompt `14`).
-8. **Experiment-ready:** structure the hero/CTA so they can be A/B tested (prompt
- `33`); instrument CTA clicks and scroll depth.
-
-## Must-not
-- Do not show fabricated stats or testimonials.
-- Do not block first paint on the 3D hero — lazy/progressive load it.
-- Do not bury the primary CTA or present competing equal CTAs that paralyze.
-- Do not reference any coin other than $THREE.
-
-## Acceptance
-- [ ] Above-the-fold communicates what/who/why + one dominant CTA at a glance.
-- [ ] Live interactive 3D moment that loads fast and doesn't block first paint.
-- [ ] Truthful, live social proof.
-- [ ] Narrative sections cross-link to forge/agents/marketplace/SDKs.
-- [ ] Screenshot-grade polish; flawless mobile + both themes; reduced-motion safe.
-- [ ] Strong LCP/CLS + complete meta/OG/JSON-LD.
-- [ ] CTA clicks + scroll depth instrumented; hero/CTA A/B-ready.
diff --git a/prompts/prod/32-pricing-and-monetization-surfaces.md b/prompts/prod/32-pricing-and-monetization-surfaces.md
deleted file mode 100644
index 000bbf672..000000000
--- a/prompts/prod/32-pricing-and-monetization-surfaces.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# 32 — Pricing & monetization surfaces
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** pricing page(s), upgrade/paywall surfaces, paid lanes (forge, MCP, skills), `prompts/monetization/` outcomes, billing/receipts.
-**Depends on:** `08`, `16`, `18`, `23`. Pairs with `30`, `33`.
-
-## Why this matters for $1B
-Revenue is the numerator of valuation. Clear pricing, frictionless upgrade, and
-multiple monetization surfaces (paid generation, paid MCP calls, marketplace take,
-skill sales, premium features) are what turn engagement into a $1B business.
-
-## Map
-- Paid lanes already exist: paid MCP tools (USDC via x402, prompt `23`), skill
- purchases + on-chain licenses (prompt `16`), the free vs paid forge lanes (prompt
- `15`/`08`). Monetization design work: `prompts/monetization/`.
-
-## Do this
-1. **Pricing page:** a clear, honest pricing page — what's free, what's paid, what
- each tier/credit unlocks, in plain language. Per-call USDC prices for MCP/forge
- lanes surfaced. Designed for both human users and agent developers.
-2. **Upgrade moments:** when a user hits a free-lane limit (prompt `08`), present a
- contextual, non-annoying upgrade with the exact value they're about to get — not a
- hard wall. Track conversion on these moments.
-3. **Frictionless checkout:** upgrades/credits use the hardened payment flow (prompt
- `18`) with clear confirmation, instant unlock, and a receipt. No dead ends.
-4. **Monetization surfaces wired:** marketplace take-rate on sales (prompt `16`),
- paid MCP calls (prompt `23`), paid generation credits (prompt `15`), premium
- features, and creator payouts — each accounted correctly (prompt `26`) and visible
- on the business dashboard (prompt `25`).
-5. **Receipts & billing history:** users/creators see their purchases, balances,
- payouts, and downloadable receipts. Real data, designed empty states.
-6. **Creator economics:** make it obvious how creators earn (sell skills/avatars/
- scenes, get tipped, launch) and show real earnings — the supply-side flywheel.
-7. **Experiment:** price points and packaging are configurable (not hardcoded across
- the UI) so they can be tested; instrument upgrade funnel + LTV inputs (prompt `33`).
-
-## Must-not
-- Do not hardcode prices in scattered UI strings — source from one config.
-- Do not hard-wall the core wow; convert with value at the limit instead.
-- Do not show fabricated revenue/earnings; real accounting only.
-- Do not reference any coin other than $THREE (USDC pricing for services is fine).
-
-## Acceptance
-- [ ] Clear, honest pricing page (free vs paid, per-call USDC prices) for users + devs.
-- [ ] Contextual upgrade moments at free-lane limits with conversion tracking.
-- [ ] Frictionless upgrade/credit checkout with instant unlock + receipt.
-- [ ] All monetization surfaces wired + accounted + on the business dashboard.
-- [ ] Receipts/billing history + creator earnings show real data with designed states.
-- [ ] Prices/packaging sourced from one config; upgrade funnel instrumented.
diff --git a/prompts/prod/33-growth-analytics-instrumentation.md b/prompts/prod/33-growth-analytics-instrumentation.md
deleted file mode 100644
index cbb15d39f..000000000
--- a/prompts/prod/33-growth-analytics-instrumentation.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 33 — Growth analytics instrumentation
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** product analytics, event taxonomy, funnels, A/B framework, consent/privacy.
-**Depends on:** `25`, `30`, `31`, `32`. Pairs with `35`, `37`.
-
-## Why this matters for $1B
-You can't grow what you don't measure. A clean event taxonomy + funnels + experiment
-framework is how every growth decision (prompts `30`–`35`) gets validated instead of
-guessed. Investors expect to see the funnel and the levers.
-
-## Mission
-Instrument the product with a consistent, privacy-respecting analytics layer: a typed
-event taxonomy, the core funnels, retention/cohort views, and an A/B testing
-capability — all feeding dashboards.
-
-## Map
-- A vetted product-analytics tool (privacy-friendly, e.g. PostHog-class) over
- hand-rolling. Distinguish from system observability (prompt `25`) — this is product/
- growth events. Respect consent (prompt `37`).
-
-## Do this
-1. **Event taxonomy:** define a documented, typed event schema (`docs/analytics.md`):
- consistent names, properties, and identity model (anon → authed stitching). Cover
- the funnel: landing view, CTA click, signup, first generation, first agent, first
- purchase, share, return. No ad-hoc one-off event names.
-2. **Funnels:** build the core funnels — acquisition → activation (prompt `30`) →
- revenue (prompt `32`) → retention → referral (prompt `35`) — with step drop-off
- visible.
-3. **Retention & cohorts:** D1/D7/D30 retention and cohort curves; identify the
- behaviors that correlate with retention (the "north-star input" — e.g. created N
- agents in week 1).
-4. **A/B framework:** a lightweight experiment system (feature-flag + assignment +
- metric readout) so hero/CTA/pricing/onboarding variants (prompts `30`–`32`) can be
- tested with statistical rigor. Document how to run an experiment.
-5. **Dashboards:** a growth dashboard (acquisition, activation, retention, revenue,
- referral, north-star) alongside the system/business dashboards (prompt `25`).
-6. **Privacy & consent:** consent management, IP/PII minimization, honoring
- do-not-track and opt-out (prompt `37`). No PII in event payloads.
-7. **Validate:** verify events fire correctly across key flows (no double-counting,
- correct identity stitching) before trusting the numbers.
-
-## Must-not
-- Do not collect PII in events or track without consent where required.
-- Do not invent inconsistent event names per page — follow the taxonomy.
-- Do not ship dashboards built on unvalidated/double-counted events.
-
-## Acceptance
-- [ ] Documented typed event taxonomy + identity model in `docs/analytics.md`.
-- [ ] Core funnels (acq→activation→revenue→retention→referral) with drop-off.
-- [ ] Retention/cohort views + identified north-star input metric.
-- [ ] A/B framework usable for hero/CTA/pricing/onboarding experiments; documented.
-- [ ] Growth dashboard live alongside system/business dashboards.
-- [ ] Consent + PII-minimization in place; events validated for accuracy.
diff --git a/prompts/prod/34-developer-experience-and-docs-site.md b/prompts/prod/34-developer-experience-and-docs-site.md
deleted file mode 100644
index e2ac7308e..000000000
--- a/prompts/prod/34-developer-experience-and-docs-site.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 34 — Developer experience & docs site
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** `docs/`, a public docs site, API reference, SDK guides, MCP setup guides, `examples/`, quickstarts.
-**Depends on:** `23`, `24`. Pairs with `14`, `31`.
-
-## Why this matters for $1B
-three.ws is a platform other developers and agents build on. Documentation is the
-product for them. World-class docs (Stripe/Vercel-grade) are a growth channel, a
-moat, and a credibility signal that justifies a platform multiple.
-
-## Mission
-A polished, public developer hub: getting-started, SDK guides, full API + MCP
-reference, runnable examples, and recipes — accurate, searchable, and maintained.
-
-## Map
-- `docs/` (internal + reference), `examples/` (`embed-test`, `web-component`,
- `two-agents`, `minimal`, etc.), `STRUCTURE.md`, per-package READMEs (prompt `24`),
- `page-agent-sdk/PUBLISHING.md`, `docs/3d-asset-pipeline.md`.
-
-## Do this
-1. **Docs site:** a public, branded, searchable docs site (own route or a vetted
- docs framework) with clear IA: Get Started, Guides, SDK Reference, API Reference,
- MCP, Recipes, Changelog. Themed to match the platform (prompt `13`).
-2. **Quickstarts that run:** a "5-minute" quickstart per primary surface (embed an
- avatar, add the walk companion, call a paid MCP tool, make an x402 payment, mint
- an agent). Each is copy-paste and verified to work (prompt `24`).
-3. **API reference:** generate/maintain reference for the public `api/` surface
- (endpoints, params, auth, errors, examples). Keep it in sync with the code (derive
- from the handlers where possible, not hand-typed drift).
-4. **MCP setup:** clear setup for Claude Desktop/Code and other clients, the free
- `forge_free` quickstart as the wedge, and the paid-tool x402 flow (prompt `23`).
-5. **Examples gallery:** `examples/` is curated, each runnable against live, linked
- from the docs. Add the missing common recipes.
-6. **Consistency & accuracy:** every code sample is tested (a CI check that runs/lints
- doc snippets where feasible); no stale endpoints/flags (cross-check the codebase
- before publishing — memory note: verify referenced files/flags still exist).
-7. **Discoverability:** docs are crawlable + in llms.txt (prompt `14`); searchable;
- linked from home (prompt `31`) and the footer.
-8. **Feedback loop:** a "was this helpful / edit this page" path so docs improve.
-
-## Must-not
-- Do not publish a sample that doesn't run as written.
-- Do not let docs drift from code — prefer generated/tested references.
-- Do not reference any coin other than $THREE in docs/examples.
-
-## Acceptance
-- [ ] Public, branded, searchable docs site with clear IA, themed to the platform.
-- [ ] Verified 5-minute quickstart per primary surface.
-- [ ] API + MCP reference accurate and kept in sync with code.
-- [ ] Curated `examples/` gallery, each runnable against live, linked from docs.
-- [ ] Doc code samples tested in CI; no stale endpoints/flags.
-- [ ] Docs crawlable + in llms.txt + linked from home/footer; feedback path present.
diff --git a/prompts/prod/35-referral-and-virality.md b/prompts/prod/35-referral-and-virality.md
deleted file mode 100644
index 736df519a..000000000
--- a/prompts/prod/35-referral-and-virality.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 35 — Referral & virality loops
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** sharing surfaces, OG image generation, embeds, referral mechanics, public/embeddable artifacts.
-**Depends on:** `14`, `17`, `24`, `30`, `33`. Pairs with `31`.
-
-## Why this matters for $1B
-Paid acquisition can't get you to $1B alone — viral loops (k-factor > sharing friction)
-do. three.ws is unusually shareable: every output is a 3D model, an agent, a launch.
-Engineering the loops so creations spread is the highest-leverage growth work.
-
-## Mission
-Make every creation effortlessly shareable and embeddable, with attribution that
-pulls viewers back, plus referral mechanics that reward bringing others in.
-
-## Do this
-1. **Share everywhere:** every artifact (forged model, agent profile, scene, launch,
- marketplace listing) has a one-tap Share with a great destination URL, copy, and a
- real, dynamic OG/Twitter image (prompt `14`) that renders the actual 3D
- output. Verify cards on the major platforms.
-2. **Embeds as a loop:** the `<agent-3d>`, walk companion, and page-agent embeds
- (prompt `24`) carry tasteful, non-spammy attribution back to three.ws — every embed
- on the web is a billboard. One-click "embed this" with copy-paste code.
-3. **Dynamic OG image service:** a real endpoint that renders share images for agents/
- models/launches on the fly (cached, fast, resilient — prompt `06`). No generic
- placeholder image.
-4. **Referral mechanics:** a referral program where inviting a user who activates
- (prompt `30`) rewards both sides (credits toward paid lanes, etc. — accounted per
- prompt `26`). Track invites → signups → activations (prompt `33`). Abuse-guarded
- (prompt `08`).
-5. **Built-in share prompts:** at the first-win moment (prompt `30`) and other natural
- peaks, invite the user to share — without being naggy. Make sharing feel good, not
- transactional.
-6. **Public galleries:** the launches feed, a community/creations gallery, and agent
- directories are public, indexable (prompt `14`), and link inward — discovery
- surfaces that also pull SEO traffic.
-7. **Measure k-factor:** instrument shares → visits → signups so the loop's
- coefficient is visible and improvable (prompt `33`).
-
-## Must-not
-- Do not ship a generic/static OG image where a dynamic one belongs.
-- Do not make embeds spammy or attribution obnoxious — tasteful only.
-- Do not allow self-referral/abuse to drain rewards (guard it).
-- Do not reference any coin other than $THREE in share copy.
-
-## Acceptance
-- [ ] Every artifact has one-tap share with great copy + dynamic 3D OG image (cards validated).
-- [ ] Embeds carry tasteful inbound attribution; one-click embed-code copy.
-- [ ] Real, cached, resilient dynamic OG-image service (no placeholders).
-- [ ] Referral program rewards both sides on activation; tracked + abuse-guarded.
-- [ ] First-win + peak-moment share prompts (non-naggy).
-- [ ] Public indexable galleries that link inward.
-- [ ] Share→visit→signup instrumented; k-factor visible.
diff --git a/prompts/prod/36-trust-safety-and-moderation.md b/prompts/prod/36-trust-safety-and-moderation.md
deleted file mode 100644
index 124707487..000000000
--- a/prompts/prod/36-trust-safety-and-moderation.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 36 — Trust, safety & moderation
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** content moderation for user generations (text prompts, images, avatars, names, listings), reporting/abuse handling, moderation tooling.
-**Depends on:** `07`, `08`, `16`. Pairs with `37`.
-
-## Why this matters for $1B
-A platform where anyone generates 3D content from arbitrary prompts and lists it for
-sale will attract abuse. Unmoderated abuse kills app-store distribution, payment-
-processor relationships, brand, and enterprise deals. Trust & safety is a
-prerequisite for scale, not an afterthought.
-
-## Mission
-Prevent, detect, and act on harmful content across every user-generated surface, with
-clear policies, real moderation tooling, and user reporting — without crushing
-legitimate creation.
-
-## Map
-- UGC surfaces: forge prompts/images (prompt `15`), avatars/names (prompt `21`),
- marketplace listings (prompt `16`), agent bios, communities, scenes, launch metadata.
-
-## Do this
-1. **Policy:** write clear, public content guidelines + acceptable-use policy (what's
- not allowed: illegal content, CSAM, hate, harassment, impersonation, IP theft,
- scams). Link in footer + onboarding (coordinate with prompt `37`).
-2. **Input moderation:** screen generation prompts and uploaded images before
- generation (a vetted moderation API / classifier) and block disallowed requests
- with a clear, non-leaky message. Screen names/handles/bios/listing text for slurs/
- scams/impersonation.
-3. **Output moderation:** scan generated images/models and listing media; quarantine
- or block violations; keep an audit trail.
-4. **Reporting:** a real "report" flow on every public artifact (agent, listing,
- scene, launch, community post) that creates a triage-able case.
-5. **Moderation tooling:** an internal queue/dashboard to review reports + flagged
- content, take action (warn/remove/ban), and record decisions. Role-gated (prompt
- `07`).
-6. **Enforcement:** graduated actions (content removal, rate-limit, suspension, ban)
- with user notification and an appeal path. Tie repeat abuse to the rate-limit/abuse
- system (prompt `08`).
-7. **Impersonation & scams:** specific guards for fake "official" agents/launches and
- $THREE-impersonation scams; verified badges where appropriate. Reinforce the
- one-coin rule (prompt `22`) — no other coin is ever promoted.
-8. **CSAM/illegal escalation:** a documented, legally-aware escalation path (preserve
- evidence, report to authorities/NCMEC as required) — never just silently delete.
-
-## Must-not
-- Do not ship UGC surfaces with no moderation or no reporting.
-- Do not let moderation messages leak internal details or the exact classifier rules.
-- Do not over-block legitimate creation — tune for precision + appeal.
-- Do not allow impersonation of three.ws/$THREE or promotion of other coins.
-
-## Acceptance
-- [ ] Public content guidelines + AUP, linked in footer + onboarding.
-- [ ] Input (prompt/image/name) + output (model/media) moderation with clear blocks + audit trail.
-- [ ] Report flow on every public artifact creating triage-able cases.
-- [ ] Role-gated moderation queue/dashboard with action logging.
-- [ ] Graduated enforcement + notification + appeal, tied to abuse system.
-- [ ] Impersonation/scam guards; one-coin rule reinforced.
-- [ ] Documented CSAM/illegal escalation path.
diff --git a/prompts/prod/37-legal-compliance-tos-privacy.md b/prompts/prod/37-legal-compliance-tos-privacy.md
deleted file mode 100644
index 6c4f6476e..000000000
--- a/prompts/prod/37-legal-compliance-tos-privacy.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# 37 — Legal, compliance, ToS & privacy
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** Terms of Service, Privacy Policy, cookie/consent, licenses/attribution, financial/crypto disclosures, data-rights flows.
-**Depends on:** `05`, `33`, `36`. Pairs with `26`.
-
-## Why this matters for $1B
-A platform that custodies wallets, processes payments, hosts UGC, and uses AI must be
-legally defensible to raise, to sell to enterprises, and to survive scrutiny. Missing
-ToS/privacy/disclosures is a hard blocker in diligence and an existential risk given
-the money and crypto involved.
-
-> You are an engineer, not a lawyer. Build the surfaces, wire the flows, and flag
-> exactly where qualified legal counsel must review/author the binding text. Do not
-> invent legal guarantees.
-
-## Map
-- Forks/vendored code attribution already tracked: `character-studio/LICENSE`,
- `src/scene-studio/vendor/LICENSE`, `public/animations/LICENSES.md`, per-asset
- `LICENSES.md` under `public/club/`. Custodial wallets + payments (prompts `17`,
- `18`). Analytics/PII (prompt `33`).
-
-## Do this
-1. **ToS + Privacy + AUP pages:** real, reachable pages (linked in footer + signup +
- onboarding). Draft thorough content covering accounts, custodial wallets, payments,
- UGC + moderation (prompt `36`), AI-generated content + IP/ownership, disclaimers,
- liability, and termination — clearly marked for counsel review where binding.
-2. **Privacy specifics:** what data is collected (derive from prompt `33` taxonomy +
- prompt `05` env), why, retention, processors/subprocessors, and user rights
- (access, export, delete). Build the **data export + deletion** flows (real, wired —
- not a mailto), respecting the data model (prompt `26`).
-3. **Consent management:** cookie/analytics consent banner honoring opt-out and
- do-not-track (ties to prompt `33`); no non-essential tracking before consent.
-4. **Crypto/financial disclosures:** clear, non-misleading disclosures for the
- custodial wallet, payments, token activity, and risk — no investment advice, no
- guaranteed returns. Reinforce the one-coin rule: $THREE is the only coin; no
- promotion of others (prompt `22`).
-5. **Licenses & attribution:** confirm all forks/vendored/3rd-party assets keep
- correct licenses + attribution (the files above); generate a third-party-notices
- page. Confirm the platform's own license posture.
-6. **Compliance posture:** document the platform's stance on the regimes that apply
- (GDPR/CCPA-style data rights, age gating, geo-restrictions if any, KYC/AML
- considerations for money movement) and where counsel sign-off is required. Flag, do
- not fabricate.
-7. **Records:** terms-acceptance is recorded per user with version + timestamp
- (prompt `26`).
-
-## Must-not
-- Do not invent legal text as if it were vetted — mark counsel-review points explicitly.
-- Do not collect/track without the required consent.
-- Do not make financial guarantees or give investment advice anywhere.
-- Do not strip third-party license/attribution.
-
-## Acceptance
-- [ ] ToS, Privacy, AUP pages live + linked (footer/signup/onboarding), with counsel-review flags.
-- [ ] Privacy policy reflects real data practices; working data export + deletion flows.
-- [ ] Consent management honoring opt-out/DNT; no pre-consent non-essential tracking.
-- [ ] Crypto/financial + AI-content disclosures present, non-misleading; one-coin rule reinforced.
-- [ ] All third-party licenses/attribution correct; third-party-notices page generated.
-- [ ] Compliance posture documented with counsel sign-off points flagged.
-- [ ] Versioned terms-acceptance recorded per user.
diff --git a/prompts/prod/38-i18n-completion.md b/prompts/prod/38-i18n-completion.md
deleted file mode 100644
index f508bf763..000000000
--- a/prompts/prod/38-i18n-completion.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 38 — Internationalization (i18n) completion
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** i18n pipeline (`npm run i18n`, `i18n:extract`, `i18n:translate`, `i18n:lint`), locale files (`en.json`, `es.json`), all user-facing copy.
-**Depends on:** `13`, `14`. Pairs with `31`, `34`.
-
-## Why this matters for $1B
-A $1B platform is global. Crypto + AI-agent audiences are heavily international. Full
-i18n unlocks entire markets at low marginal cost and improves SEO per locale. The
-pipeline already exists (`en`, `es`) — finish and expand it.
-
-## Map
-- Scripts: `i18n`, `i18n:extract`, `i18n:translate`, `i18n:lint`. Locales today:
- `en.json`, `es.json` (+ `manifest.json`). 125 pages with significant inline copy.
-
-## Do this
-1. **Extraction coverage:** run `i18n:extract` and find untranslated/hardcoded
- strings across `pages/`, `src/`, `public/`. Externalize every user-facing string
- into the catalog with stable keys. `i18n:lint` clean (no missing keys, no
- hardcoded UI text).
-2. **Complete existing locales:** fill all gaps in `es.json` so Spanish is 100%, not
- partial. Use `i18n:translate` then review for quality/context (not literal MT
- where it reads wrong).
-3. **Add priority locales:** expand beyond en/es to the highest-value markets for the
- audience (e.g. add a few more major languages). Each new locale goes through
- extract → translate → review → lint.
-4. **Locale-aware formatting:** numbers, dates, currencies (USDC amounts), and
- pluralization use locale-aware formatting (Intl APIs) — not hardcoded formats.
-5. **RTL readiness:** if any RTL locale is added, the layout supports `dir="rtl"`
- (logical CSS properties, mirrored components) — coordinate with prompt `13`.
-6. **Locale routing + SEO:** language switching is discoverable + persistent;
- per-locale URLs with `hreflang` tags and locale-specific meta (prompt `14`); the
- sitemap includes locale variants.
-7. **No untranslated leaks:** every state (incl. errors, empty states, emails/
- notifications — prompts `12`, `39`) is localized. Pseudo-localize to catch
- truncation/overflow before shipping.
-8. Wire `i18n:lint` into CI so new hardcoded strings fail the build.
-
-## Must-not
-- Do not ship hardcoded user-facing strings — externalize to the catalog.
-- Do not leave a locale partially translated and selectable as if complete.
-- Do not hardcode number/date/currency formats.
-
-## Acceptance
-- [ ] `i18n:lint` clean; all user-facing strings externalized with stable keys.
-- [ ] `es.json` 100% complete and reviewed; priority new locales added via the pipeline.
-- [ ] Locale-aware number/date/currency/plural formatting via Intl.
-- [ ] RTL support if an RTL locale is added.
-- [ ] Discoverable persistent language switch; `hreflang` + per-locale meta + sitemap.
-- [ ] Errors/empty states/emails localized; pseudo-loc overflow check done.
-- [ ] `i18n:lint` enforced in CI.
diff --git a/prompts/prod/39-pwa-and-notifications.md b/prompts/prod/39-pwa-and-notifications.md
deleted file mode 100644
index 312365353..000000000
--- a/prompts/prod/39-pwa-and-notifications.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 39 — PWA & notifications
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** PWA manifest + service worker, install experience, push/email/Telegram notifications, `api/newsletter-subscribe.js`, changelog Telegram push.
-**Depends on:** `10`, `25`, `33`, `37`. Pairs with `30`, `35`.
-
-## Why this matters for $1B
-Re-engagement is retention, and retention is valuation. An installable PWA + a
-well-built notification system (a launch filled, a skill sold, a tip received, an
-agent mentioned) brings users back without paid spend. The platform already pushes the
-changelog to a $THREE-holder Telegram channel — extend that muscle into real product
-notifications.
-
-## Map
-- Existing: `api/newsletter-subscribe.js`, changelog Telegram push
- (`npm run changelog:push`, `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHANGELOG_CHAT_ID`).
- `error-reporter.js` shows there's already client infra to build on.
-
-## Do this
-1. **PWA:** add/validate a complete web app manifest (name, icons across sizes, theme/
- background colors, display mode, start URL) so the app is installable on mobile +
- desktop. `npm run generate-icons` covers icon sizes.
-2. **Service worker:** offline-friendly shell + smart caching for static assets/GLBs
- (coordinate with prompt `10` cache policy); cache-first for immutable assets,
- network-first for data; a clean offline page. Versioned SW with safe update flow
- (no stale-forever bug).
-3. **Push notifications:** real web-push (with permission requested at a *good* moment,
- not on first load) for high-value events: your launch filled, skill sold, tip
- received, payout ready, agent mentioned/forked. User-controllable per category.
-4. **Email:** transactional emails (welcome/onboarding — prompt `30`, receipts —
- prompt `32`, security alerts) via a real provider; double-opt-in newsletter built
- on `newsletter-subscribe.js`. Localized (prompt `38`).
-5. **Telegram:** keep the holder changelog push; optionally let users opt into
- per-account Telegram alerts for their agents/launches. Reuse the existing bot infra.
-6. **Preference center:** one place to manage every notification channel + category,
- with easy unsubscribe (and honoring it — prompt `37`). No notification without a
- real off switch.
-7. **Instrument:** track notification sent → opened → returned (prompt `33`) so the
- re-engagement loop is measurable and tuned, not spammy.
-
-## Must-not
-- Do not request push/notification permission on first load — ask at a value moment.
-- Do not send a notification type the user can't turn off.
-- Do not cache so aggressively that users get stuck on a stale build (safe SW updates).
-- Do not reference any coin other than $THREE in any notification copy.
-
-## Acceptance
-- [ ] Complete PWA manifest; app installable on mobile + desktop.
-- [ ] Versioned service worker with smart caching, offline page, safe update flow.
-- [ ] Web-push for high-value events, permission asked at a good moment, per-category control.
-- [ ] Transactional emails + double-opt-in newsletter via a real provider, localized.
-- [ ] Telegram changelog retained; optional per-account alerts.
-- [ ] Unified preference center with honored unsubscribe.
-- [ ] Notification sent→opened→returned instrumented.
diff --git a/prompts/prod/40-launch-readiness-review.md b/prompts/prod/40-launch-readiness-review.md
deleted file mode 100644
index bd74644ac..000000000
--- a/prompts/prod/40-launch-readiness-review.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 40 — Launch-readiness review (the final gate)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth (final gate)
-**Owns:** the whole platform — a top-to-bottom verification that prompts `01`–`39` actually landed.
-**Depends on:** all prior prompts.
-
-## Why this matters for $1B
-This is the gate that ensures the program produced a platform you'd actually stake the
-company on. It's the difference between "we did a lot of work" and "we are
-production-ready." Run it as an adversarial reviewer, not a cheerleader.
-
-## Mission
-Verify, end to end, that the platform meets the production + growth bar set by this
-program and by `/CLAUDE.md`'s Definition of Done — and produce a single, honest
-readiness report with any remaining gaps and their owners.
-
-## Do this
-1. **Re-verify each phase against reality, not claims.** For prompts `01`–`39`, spend
- a few minutes confirming the Acceptance checklist actually holds in the live app/
- code today (things regress). Note any that slipped.
-2. **Critical-path walkthrough in a real browser** (desktop + mobile, both themes):
- land → onboard → forge a model → create/own an agent → buy a skill → make an x402
- payment → launch → share. Every step works, every state designed, zero console
- errors, zero dead ends.
-3. **Money paths, adversarially:** attempt double-charge, replay, price tampering,
- and unauthorized withdrawal — confirm each is blocked (prompts `07`, `18`).
-4. **Quality gates green:** `npm run lint`, `npm run typecheck`, `npm run test:all`,
- `npm run audit:deploy`, `audit:pages`, `audit:web`, `audit:mcp`, `seo:meta`,
- `check:images`, `verify`, `smoke:onchain`, `smoke:mcp` — run them; all pass.
-5. **Cross-cutting spot-audit:** a11y (axe on top flows), Lighthouse perf on key
- pages, mobile at 320/768/1440, secret scan, `npm audit` — confirm prompts `05`,
- `07`, `09`, `10`, `11` held.
-6. **The one-coin rule:** final grep across code/copy/tests/docs/metadata — only
- $THREE, plus the two runtime-data exceptions. Zero other coins (prompt `22`).
-7. **Observability + ops:** dashboards live, alerts wired, status page up, rollback
- practiced, backups restore-tested (prompts `25`–`28`).
-8. **Growth instrumentation:** activation/retention/revenue funnels reporting real
- numbers; referral + notifications working (prompts `30`–`35`, `39`).
-9. **Legal/safety:** ToS/privacy/AUP live, consent working, moderation + reporting
- live, data export/delete working (prompts `36`, `37`).
-10. **Produce `docs/launch-readiness.md`:** a dated report with a per-area
- GREEN/YELLOW/RED status, the evidence checked, every remaining gap, its severity,
- and a clear owner/next step. Be honest — RED where it's RED. Do not claim done for
- anything you could not verify (`/CLAUDE.md`).
-
-## Must-not
-- Do not rubber-stamp. If you can't verify something, mark it unverified — never green.
-- Do not skip the adversarial money-path checks.
-- Do not let the one-coin grep slide.
-
-## Acceptance
-- [ ] Prompts `01`–`39` Acceptance re-verified against the live app/code; slips logged.
-- [ ] Full critical-path walkthrough passes desktop + mobile + both themes, zero console errors / dead ends.
-- [ ] Adversarial money-path checks all blocked.
-- [ ] All quality gates + audit scripts green.
-- [ ] Cross-cutting spot-audit (a11y/perf/mobile/secrets/`npm audit`) passes.
-- [ ] One-coin grep clean (only $THREE + the two runtime exceptions).
-- [ ] Observability/ops + growth + legal/safety verified live.
-- [ ] `docs/launch-readiness.md` written: dated, per-area RAG status, gaps, owners.
diff --git a/prompts/production-1b/00-README.md b/prompts/production-1b/00-README.md
deleted file mode 100644
index 81439625d..000000000
--- a/prompts/production-1b/00-README.md
+++ /dev/null
@@ -1,138 +0,0 @@
-# three.ws — Production → $1B Program
-
-A complete, ordered set of self-contained prompts. **Run each one in a fresh chat.**
-Every prompt is written to stand alone: it names the real files involved, the current
-state, exactly what to build, and a hard definition of done. No prompt assumes context
-from another chat.
-
-The goal is not "more features." It is to make every surface that already exists
-**real, reliable, and revenue-generating** — the bar set in [CLAUDE.md](../../CLAUDE.md):
-no mocks, no stubs, no dead paths, every state designed, every integration wired to a
-real API, and work you would demo to a room of senior engineers.
-
----
-
-## How to run
-
-1. Open a new chat in this repo.
-2. Paste the full contents of one prompt file (or say "run prompts/production-1b/A01-….md").
-3. Let it finish to its definition of done — including tests, a real browser/API check,
- and a changelog entry — before moving on.
-4. Commit + push to **both** remotes (`threeD` and `threews`) per CLAUDE.md.
-5. Tick the box in the tracker below and start the next.
-
-Each prompt header declares:
-- **Phase** — which track it belongs to.
-- **Depends on** — prompts that should land first (most are independent).
-- **Parallel-safe** — whether two agents can run it alongside others without colliding.
-
-Concurrent agents share this worktree. Stage explicit paths only — never `git add -A`.
-
----
-
-## The thesis (why these, in this order)
-
-A $1B platform on a token economy needs three things to be true at once, and the phases
-map to them:
-
-1. **The money is provably real.** The $THREE buyback, reflections, tiers, and x402
- payments must execute on-chain, be auditable, and be enforced everywhere — not
- aspirational. → **Phase A**
-2. **Every surface that touches money is world-class.** The token page, onboarding,
- checkout/swap, marketplace, forge, studio, agent pages. → **Phase B**, then the
- discovery and 3D surfaces that feed them → **Phase C, D**.
-3. **It never falls over and it compounds.** Observability, resilience, security, the
- developer ecosystem (network effects), and the growth/quality loops. → **Phase E, F, G**
-
-Recommended execution order: **A → B → E → C → D → F → G**, but Phase E (infra) prompts
-are safe to interleave early, and Phase G (quality) prompts are safe to run anytime.
-
----
-
-## Phases & prompts
-
-### Phase A — Make the money provably real (highest leverage)
-- [ ] `A01` — $THREE buyback engine: scheduled, on-chain, audited, public proof
-- [ ] `A02` — $THREE reflections/rewards: complete on-chain distribution + receipts
-- [ ] `A03` — Hold-to-access tiers enforced across every paid endpoint
-- [ ] `A04` — Holder snapshot freshness, reconciliation & alerting
-- [ ] `A05` — On-chain token-config validation + public token-economy & trust dashboard
-- [ ] `A06` — Treasury/buyback custody hardening (vault + approval gate + audit)
-- [ ] `A07` — x402 pricing: single source of truth + discoverable service catalog
-- [ ] `A08` — x402 per-wallet metering, rate-limit headers & usage endpoint
-- [ ] `A09` — x402 facilitator failover + self-hosted fallback + admin health/metrics
-- [ ] `A10` — Agent-to-agent payments: dispute/refund + on-chain reputation
-- [ ] `A11` — Inline "Payment Required" (402) pay modal everywhere
-
-### Phase B — World-class revenue surfaces
-- [ ] `B01` — $THREE token page production pass
-- [ ] `B02` — Onboarding / Get Started wizard production pass
-- [ ] `B03` — Payment modal + Jupiter swap production pass
-- [ ] `B04` — Marketplace + detail + creator profiles production pass
-- [ ] `B05` — Forge (text/image → 3D) end-to-end production pass
-- [ ] `B06` — Auth (sign-in/up, session, wallet) production pass
-- [ ] `B07` — Dashboard hub + account + analytics + API keys production pass
-- [ ] `B08` — Agent Studio (brain/memory/body/money/skills) production pass
-- [ ] `B09` — Agent profile pages + embeddable widget production pass
-- [ ] `B10` — Launch-a-coin + launches feed production pass
-
-### Phase C — Discovery, social & intelligence
-- [ ] `C01` — Oracle conviction engine + Arm automation production pass
-- [ ] `C02` — Activity + Trending + Feed + Community production pass
-- [ ] `C03` — Leaderboards + Smart Money + Radar production pass
-- [ ] `C04` — Galleries (avatars, animations, agent discovery) production pass
-
-### Phase D — 3D / AR / world experiences
-- [ ] `D01` — Avatar pipeline reliability (forge → auto-rig → animate) hardening
-- [ ] `D02` — Walk companion + playground + leaderboard + embed production pass
-- [ ] `D03` — IRL (AR placement) + Play (coin worlds, multiplayer) production pass
-- [ ] `D04` — Creator tools (Scene Studio, Compose, Pose, Voice, Scan) production pass
-
-### Phase E — Platform infrastructure & reliability
-- [ ] `E01` — Structured logging + request correlation + tracing
-- [ ] `E02` — Error telemetry dashboard + tiered alerting & escalation
-- [ ] `E03` — Health/readiness endpoint + dependency checks + status page
-- [ ] `E04` — Circuit breakers + adaptive retry for all external dependencies
-- [ ] `E05` — Redis quota: proactive monitoring + degraded-feature signaling
-- [ ] `E06` — Migrations: remove CREATE TABLE from handlers, add versioning & rollback
-- [ ] `E07` — Cron + worker health: execution history, SLA, dashboard
-- [ ] `E08` — SSRF + input sanitization + secret-scanning hardening
-- [ ] `E09` — Data layer: read-replica routing, partitioning, backup/restore drills
-- [ ] `E10` — CI/CD: test gate, e2e on money paths, publish automation
-
-### Phase F — Developer ecosystem (network effects)
-- [ ] `F01` — Unified developer guide + runnable examples + quickstarts
-- [ ] `F02` — SDK tests + versioning + release automation + changelogs
-- [ ] `F03` — MCP servers: reconcile duplicates, e2e tests, registry & DX polish
-- [ ] `F04` — x402 / Bazaar discoverability + indexing
-
-### Phase G — Quality, trust & growth (escape velocity)
-- [ ] `G01` — Accessibility (WCAG 2.2 AA) platform-wide
-- [ ] `G02` — Performance budgets + Core Web Vitals + 3D runtime perf
-- [ ] `G03` — Mobile / responsive audit platform-wide
-- [ ] `G04` — SEO + structured data + OG + LLM discoverability
-- [ ] `G05` — Security & payments/custody review pass
-- [ ] `G06` — Conversion analytics + funnels + experimentation harness
-- [ ] `G07` — Referral / affiliate + viral loops + creator incentives
-- [ ] `G08` — Lifecycle comms: changelog + email/notifications + re-engagement
-
----
-
-## The shared bar (every prompt inherits this)
-
-Do not mark a prompt done until all are true (this is CLAUDE.md's Definition of Done):
-
-- Code is wired into the UI / API and reachable by a real user — no dead paths.
-- No mocks, no fake/sample data, no `TODO`, no `throw new Error("not implemented")`,
- no commented-out code, no fake `setTimeout` loading.
-- Every state is designed: loading (skeletons), empty (actionable), error (recoverable),
- populated, overflow.
-- Real network calls succeed against real APIs; errors handled at the boundary.
-- Existing tests pass (`npx vitest run`) and you added tests for new logic.
-- Accessible (semantic HTML, ARIA, keyboard, focus, contrast) and responsive (320/768/1440).
-- `$THREE` is the only coin referenced anywhere (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-- A holder-readable entry appended to `data/changelog.json` for any user-visible change;
- `npm run build:pages` passes.
-- `git diff` self-reviewed; committed and pushed to **both** remotes.
-
-If you cannot verify a step, say so explicitly. Do not claim done.
diff --git a/prompts/production-1b/16-marketplace.md b/prompts/production-1b/16-marketplace.md
deleted file mode 100644
index 1c94f3196..000000000
--- a/prompts/production-1b/16-marketplace.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# 16 — Marketplace (buy, sell & remix)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The marketplace is where the platform's flywheel becomes a business: creators list
-agents, avatars, skills and animations; buyers discover, try, and pay; remixers fork
-and re-list. If discovery is slow, a buy silently fails, a "fork" lands on a broken
-page, or a listing shows a 1px thumbnail, the supply side stops creating and the demand
-side stops paying — and the GMV that justifies a $1B valuation never accrues. This
-surface must feel like Vercel's template gallery crossed with Stripe-grade checkout.
-
-## Mission
-
-Make the full marketplace loop — list → browse/search/sort/filter → detail → buy/sell/remix
-→ settled payment → linked profile — correct, fast, and beautifully stated in every state,
-with real USDC settlement and zero dead paths.
-
-## Map (trust but verify — files move)
-
-- **List + detail controller (SPA)** — [src/marketplace.js](../../src/marketplace.js)
- (list view with category sidebar + search; detail with 5 tabs; path routing
- `/marketplace` and `/marketplace/agents/:id`), [src/marketplace-detail.js](../../src/marketplace-detail.js)
- (3D avatar in header, live "try before you fork" SSE chat preview, creator modal,
- mobile sidebar), [pages/marketplace.html](../../pages/marketplace.html) (loads
- `/src/marketplace.js`; route `/marketplace` in [vercel.json](../../vercel.json)).
-- **Lobby / detail-market helpers** — [src/marketplace-lobby.js](../../src/marketplace-lobby.js),
- [src/agent-detail-market.js](../../src/agent-detail-market.js).
-- **Analytics surface** — [src/marketplace-analytics.js](../../src/marketplace-analytics.js),
- [pages/marketplace-analytics.html](../../pages/marketplace-analytics.html),
- [api/marketplace/analytics.js](../../api/marketplace/analytics.js).
-- **Marketplace API** — [api/marketplace/[action].js](../../api/marketplace/[action].js)
- (categories, agents list `?category=&q=&sort=&cursor=&pricing=`, create/mine/detail/versions/similar/fork/bookmark/publish/view),
- [api/marketplace/purchase.js](../../api/marketplace/purchase.js),
- [api/marketplace/purchase-as-agent.js](../../api/marketplace/purchase-as-agent.js),
- [api/marketplace/purchase-bundle.js](../../api/marketplace/purchase-bundle.js),
- [api/marketplace/buy-asset.js](../../api/marketplace/buy-asset.js),
- [api/marketplace/asset-price.js](../../api/marketplace/asset-price.js),
- [api/marketplace/set-skill-price.js](../../api/marketplace/set-skill-price.js),
- [api/marketplace/reviews.js](../../api/marketplace/reviews.js),
- [api/marketplace/start-trial.js](../../api/marketplace/start-trial.js),
- [api/marketplace/animations.js](../../api/marketplace/animations.js),
- [api/marketplace/check-skill-access.js](../../api/marketplace/check-skill-access.js).
-- **Cross-links** — agent profiles via [src/shared/agent-3d.js](../../src/shared/agent-3d.js)
- (`seeInWorldHref`, `hasCustomAvatar`), `/agents/:id` ([pages/agent-detail.html](../../pages/agent-detail.html)),
- avatar/animation galleries ([pages/animations.html](../../pages/animations.html),
- [api/avatars/](../../api/avatars)). Shared state kit:
- [src/shared/state-kit.js](../../src/shared/state-kit.js) (skeleton/empty/error),
- [src/shared/list-controls.js](../../src/shared/list-controls.js) (`debounce`, `syncStateToUrl`).
-- **Payments** — settlement runs through the x402 + agent-wallet plumbing in
- [api/_lib/](../../api/_lib) (see prompt `18`). Platform fee logic is exercised by
- [tests/api/marketplace-platform-fee.test.js](../../tests/api/marketplace-platform-fee.test.js).
-- **Tests** — [tests/api/marketplace-agent-detail-prices.test.js](../../tests/api/marketplace-agent-detail-prices.test.js),
- [tests/api/marketplace-agent-detail-subscriptions.test.js](../../tests/api/marketplace-agent-detail-subscriptions.test.js),
- [tests/api/marketplace-animations.test.js](../../tests/api/marketplace-animations.test.js),
- [tests/api/marketplace-platform-fee.test.js](../../tests/api/marketplace-platform-fee.test.js).
-
-## Do this
-
-1. **Exercise the whole loop in a real browser** (`npm run dev`, port 3000): open
- `/marketplace`, browse, search, switch categories, change sort, filter by pricing,
- open a detail page, run the live chat preview, fork an agent, and buy a paid skill.
- Watch the Network tab — every call (`/api/marketplace/...`) must return real data,
- 200/4xx with intent, never a silent hang.
-2. **Design every list state:** skeleton on load (use `state-kit.js`), helpful empty
- state for "no results in this category / no matches for this query" (offer a reset
- action — don't show a void), an error state with retry, and overflow handling for
- 1000+ listings (cursor pagination via `?cursor=`, not a giant DOM). Persist
- search/sort/filter to the URL with `syncStateToUrl` so results are shareable and
- back-button-safe; debounce the search input.
-3. **Sort + filter must actually work end-to-end.** Confirm each `sort` value and the
- `pricing` filter map to real SQL ordering/filtering in `[action].js` (not a no-op).
- If a control renders but does nothing, wire it or remove it — no dead controls.
-4. **Detail view is complete:** real 3D avatar in the header (not an emoji placeholder),
- working tabs, accurate pricing (one-time / subscription / time-pass), reviews
- ([reviews.js](../../api/marketplace/reviews.js)), version history, "similar" agents,
- and a creator modal that lists the author's other agents and avatars. Every link
- resolves to a live page; every CTA does something.
-5. **Buy/sell/remix flows settle for real:** a purchase posts to `purchase.js` /
- `buy-asset.js` / `purchase-bundle.js`, returns a real receipt, and grants access
- (verify with `check-skill-access.js`). A "fork" creates a real editable copy and
- routes the user to it. Selling: a creator can set a price (`set-skill-price.js`,
- `asset-price.js`) and see it reflected in the listing. Never fake a success toast
- without a settled transaction.
-6. **Payment failure is designed, not leaked:** insufficient funds, declined, network
- timeout, and idempotent retry all yield neutral, actionable copy and never surface a
- provider's billing page or a raw stack trace. Reuse the x402 error helpers from
- prompt `18`. A second click on "buy" must not double-charge.
-7. **Cross-pollinate the platform:** every listing links to the agent's public profile
- (`/agents/:id`), to "see in world", and to the avatar/animation gallery where
- relevant. A bought animation should be usable in the editor; a forked agent should
- open in Agent Studio. Wire these connections — a marketplace that doesn't link out
- is half-built.
-8. **Accessibility + microinteractions:** category sidebar is keyboard-navigable, every
- card/button has hover/active/focus states, the mobile hamburger sidebar traps focus,
- and `pricing`/`sort` controls are labeled. Test mentally at 320 / 768 / 1440.
-9. **Run the tests and ship the changelog:** `npx vitest run tests/api/marketplace-*.test.js`.
- Add a `data/changelog.json` entry for any user-visible change, then `npm run
- build:pages` (it validates the entry).
-
-## Must-not
-
-- Do not show a fake success state, a fake progress bar, or a toast without a settled
- on-chain/x402 transaction.
-- Do not leak any third party's billing page, credit balance, or raw error to a buyer —
- mask to neutral copy; keep detail in server logs.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Runtime launch records the user
- created are fine; hardcoded mints are not.
-- Do not leave dead controls (a sort/filter/tab/button that renders but does nothing).
-- Do not break the existing detail SPA routing, the SSE chat preview, or the platform-fee math.
-- No mocks, no sample-listing arrays shipped to production, no TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] List, search, sort, filter, detail, buy, sell, fork all work in a real browser
- with real `/api/marketplace/*` calls; no console errors or warnings.
-- [ ] Loading (skeleton), empty (with reset CTA), error (with retry), populated, and
- 1000+-item overflow (cursor pagination) states are all designed.
-- [ ] Search/sort/filter persist to the URL and survive a refresh and back button.
-- [ ] A purchase settles real USDC, returns a receipt, grants access; a second click
- does not double-charge; failures show neutral, actionable copy with no vendor internals.
-- [ ] Detail header shows a real 3D avatar + real thumbnail; every link/CTA resolves
- to a live page (profile, see-in-world, editor, gallery).
-- [ ] Every interactive element has hover/active/focus states; layout holds at 320/768/1440;
- keyboard navigation works.
-- [ ] `npx vitest run tests/api/marketplace-*.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/17-agent-profiles-studio-economy.md b/prompts/production-1b/17-agent-profiles-studio-economy.md
deleted file mode 100644
index 4e6e8bb59..000000000
--- a/prompts/production-1b/17-agent-profiles-studio-economy.md
+++ /dev/null
@@ -1,142 +0,0 @@
-# 17 — Agent profiles, Agent Studio & economy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-An agent is the platform's atomic unit of value: people create one, give it a brain,
-memory, body, money, and skills, publish a profile, build reputation, and let it earn
-and delegate. If the creation wizard dead-ends, the Studio shows a "mounts here"
-placeholder, a public profile 404s, or reputation is decorative, the supply side never
-compounds and there's no economy to scale. The best version feels like Linear's polish
-applied to "spin up an autonomous, earning, on-chain agent."
-
-## Mission
-
-Make the full agent lifecycle — create → configure (Brain · Memory · Body · Money ·
-Skills, with a live avatar) → publish profile → earn reputation → appear in the activity
-feed → delegate to other agents — complete, wired, and every state designed.
-
-## Map (trust but verify — files move)
-
-- **Creation wizard** — [src/create-agent.js](../../src/create-agent.js) (5 steps:
- basics → 3D model → skills → personality → review; writes through `/api/agents` and
- `/api/marketplace/agents/:id/publish`), [pages/create-agent.html](../../pages/create-agent.html)
- (route `/create-agent`).
-- **Agent Studio (Brain/Memory/Body/Money/Skills)** — [pages/agent-studio.html](../../pages/agent-studio.html)
- (route `/agent-studio`; loads [src/studio/studio-shell.js](../../src/studio/studio-shell.js)
- which defines the five tabs + empty "mounts here" states),
- [src/studio/brain/](../../src/studio/brain) (`brain-mount.js`, `brain-studio.js`,
- `brain-graph.js`, `brain-compile.js`, `brain-runtime.js`, `brain-templates.js`,
- `brain-nodes.js`), [src/studio/memory/](../../src/studio/memory) (`memory-mount.js`,
- `memory-studio.js`, `memory-graph.js`, `memory-client.js`),
- [src/studio/agent-studio-store.js](../../src/studio/agent-studio-store.js),
- [src/studio/agent-presence.js](../../src/studio/agent-presence.js). Live avatar via
- [src/agent-avatar.js](../../src/agent-avatar.js) / [src/shared/agent-3d.js](../../src/shared/agent-3d.js).
- Note: **Brain and Memory mount real studios; Body, Money, and Skills currently render
- placeholder empty states** in `studio-shell.js` — finish them.
-- **Launch/fees/knowledge studio (`/studio`)** — [public/studio/](../../public/studio)
- (`studio.js`, `launch-panel.js`, `fees-panel.js`, `knowledge-panel.js`; route `/studio`).
-- **Public profiles** — [pages/profile.html](../../pages/profile.html) (route `/u/:name`),
- [pages/agent-detail.html](../../pages/agent-detail.html) + [src/agent-detail.js](../../src/agent-detail.js)
- + [src/agent-detail.css](../../src/agent-detail.css) (route `/agents/:id`),
- [api/agents/public.js](../../api/agents/public.js), [api/agents/[id].js](../../api/agents/[id].js),
- [api/agents/by-wallet.js](../../api/agents/by-wallet.js), [api/agents/featured.js](../../api/agents/featured.js).
-- **Economy** — [pages/agent-economy.html](../../pages/agent-economy.html) +
- [src/agent-economy.js](../../src/agent-economy.js) (two 3D agents transacting real SOL;
- route `/agent-economy`), [src/agent-skills.js](../../src/agent-skills.js) and the
- `src/agent-skills-*.js` family, agent wallet via [src/agent-wallet.js](../../src/agent-wallet.js)
- (see prompt `18`).
-- **ERC-8004 reputation** — on-chain registries in [contracts/src/](../../contracts/src)
- (`IdentityRegistry.sol`, `ReputationRegistry.sol`, `ValidationRegistry.sol`),
- [api/agents/8004/agent.js](../../api/agents/8004/agent.js), [api/agents/8004/search.js](../../api/agents/8004/search.js),
- and the MCP `agent_reputation` tool. Onchain badge: [src/shared/onchain-badge.js](../../src/shared/onchain-badge.js).
-- **Agent-to-agent delegation** — [api/agents/a2a-call.js](../../api/agents/a2a-call.js),
- [api/agents/a2a-mandate.js](../../api/agents/a2a-mandate.js),
- [api/agents/a2a-paid.js](../../api/agents/a2a-paid.js),
- [api/agents/a2a-cart-verify.js](../../api/agents/a2a-cart-verify.js),
- [src/agent-skills-a2a.js](../../src/agent-skills-a2a.js).
-- **Tests** — [tests/agent-protocol.test.js](../../tests/agent-protocol.test.js),
- [tests/agent-a2a-payments.test.js](../../tests/agent-a2a-payments.test.js),
- [tests/api-agent-memory.test.js](../../tests/api-agent-memory.test.js),
- [tests/brain-studio-compile.test.js](../../tests/brain-studio-compile.test.js),
- [tests/studio-launch-panel.test.js](../../tests/studio-launch-panel.test.js),
- [tests/studio-fees-panel.test.js](../../tests/studio-fees-panel.test.js),
- [tests/agent-detail-avatar.test.js](../../tests/agent-detail-avatar.test.js).
-
-## Do this
-
-1. **Run the wizard end-to-end in a real browser** (`npm run dev`): `/create-agent`,
- complete all 5 steps, attach a 3D model, pick skills, set personality, publish.
- Confirm a real agent row is created via `/api/agents` and (if chosen) listed via the
- marketplace publish endpoint. Watch the Network tab — no silent failures, every step
- validates input before advancing.
-2. **Finish Agent Studio.** Brain and Memory mount real studios; **build Body, Money,
- and Skills to the same bar** — replace the placeholder empty states in
- `studio-shell.js` with real, wired panels: Body (attach/preview avatar, outfit,
- animations driving the canonical clip library), Money (fund wallet, set per-skill
- pricing, view payouts — reuse the wallet plumbing from prompt `18`), Skills
- (toggle/configure capabilities, set what's sellable). A **live avatar preview**
- reflects Body changes immediately. Persist via `agent-studio-store.js`.
-3. **Every Studio state is designed:** loading skeleton per tab, empty state that tells
- the user what to do (not "mounts here"), error state with recovery, and a clear save
- /dirty indicator. No tab may ship a dead placeholder.
-4. **Public profiles are complete and shareable:** `/u/:name` and `/agents/:id` render
- the real 3D avatar, bio, skills, pricing, reputation, owned coins, and an **activity
- feed** of real events (creations, sales, delegations, reputation changes). Design
- loading/empty/error/overflow. Every CTA (talk, hire, see-in-world, fork, open in
- studio) resolves to a live page. Profile OG images render.
-5. **ERC-8004 reputation is real, not decorative:** the onchain badge reflects actual
- registry data (identity / reputation / validation) read via `api/agents/8004/*` and
- the `agent_reputation` MCP tool. Show a designed state when an agent isn't yet
- on-chain (with a path to register), and never a broken/empty badge.
-6. **Agent economy works for real:** on `/agent-economy`, the two agents transact real
- SOL (existing pattern), balances poll live, the tx feed links to an explorer, and
- failures (insufficient funds, RPC hiccup) show neutral, actionable copy with an
- add-funds path. No fake particle "success" without a confirmed tx.
-7. **Agent-to-agent delegation is wired:** one agent can delegate a paid action to
- another (`a2a-call` / `a2a-mandate` / `a2a-paid`) with spend caps respected,
- idempotent settlement, and a result surfaced in the activity feed. Exercise the
- delegation path and confirm it appears on both agents' profiles.
-8. **Cross-pollinate:** profile ↔ marketplace listing ↔ Agent Studio ↔ wallet ↔
- economy must all link both directions. A user who lands on any one surface can reach
- the others naturally. Audit for dead paths and unreachable states.
-9. **Accessibility + responsiveness:** wizard steps and Studio tabs are keyboard- and
- screen-reader-navigable with focus management; layout holds at 320 / 768 / 1440;
- every interactive element has hover/active/focus states.
-10. **Run the tests and ship the changelog:** `npx vitest run tests/agent-*.test.js
- tests/studio-*.test.js tests/brain-studio-compile.test.js tests/api-agent-memory.test.js`.
- Add a `data/changelog.json` entry for user-visible changes, then `npm run build:pages`.
-
-## Must-not
-
-- Do not leave Body, Money, or Skills as "mounts here" placeholders — finish them or
- do not claim done.
-- Do not ship a decorative reputation badge — it must reflect real ERC-8004 registry data.
-- Do not fake economy/delegation success without a confirmed on-chain/x402 transaction.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); runtime user-launch records are fine.
-- Do not break the existing wizard write-through, the Brain/Memory studios, or the
- custodial wallet flow.
-- No mocks, no fake activity-feed data, no TODOs, no T-pose fallback for humanoids
- (extend `glb-canonicalize.js` bone maps, per `/CLAUDE.md`).
-
-## Acceptance (all true before claiming done)
-
-- [ ] The 5-step wizard creates a real agent and optionally publishes it; input is
- validated at each step; no console errors/warnings.
-- [ ] Agent Studio Brain, Memory, Body, Money, and Skills tabs are all real and wired,
- with a live avatar preview reacting to Body changes; each tab has designed
- loading/empty/error states.
-- [ ] `/u/:name` and `/agents/:id` render real avatar + data + an activity feed of real
- events; OG images render; every CTA resolves to a live page.
-- [ ] The onchain reputation badge reflects real ERC-8004 data and has a designed
- not-yet-registered state.
-- [ ] Agent economy and a2a delegation settle real transactions with spend caps,
- idempotency, and neutral failure copy; results show in the activity feed.
-- [ ] All listed surfaces link to each other (no dead paths); layout holds at
- 320/768/1440; keyboard navigation works.
-- [ ] `npx vitest run tests/agent-*.test.js tests/studio-*.test.js tests/brain-studio-compile.test.js tests/api-agent-memory.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/18-wallet-x402-payments.md b/prompts/production-1b/18-wallet-x402-payments.md
deleted file mode 100644
index 4938c55a4..000000000
--- a/prompts/production-1b/18-wallet-x402-payments.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# 18 — Wallet & x402 payments
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Payments are the platform's bloodstream: every marketplace buy, paid skill call, agent
-delegation, and creator payout flows through the custodial agent wallet and the x402
-protocol. If a payment double-settles, an idempotency key collides, a custodial secret
-is mishandled, or a verify/settle silently fails, the platform loses money and trust —
-and trust is the only currency a payments business actually has. Stripe is the bar:
-correct to the cent, reconcilable, never leaks internal state, every failure recoverable.
-
-## Mission
-
-Make the agent wallet and the x402 paid-endpoint stack — custody, verify, settle,
-idempotency, USDC on Solana and Base, send/fund/trade/pay, Solana Pay, and reconciliation
-— provably correct, resilient, and beautifully stated in every state, end to end.
-
-## Map (trust but verify — files move)
-
-- **Custody** — [api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js)
- (`generateSolanaAgentWallet`, `getOrCreateAgentSolanaWallet`, `getOrCreateAgentEvmWallet`,
- `recoverAgentKey`, `delegatedSpend`, `triggerSkillPayment`, `getAgentBalance`,
- `canAfford`), [api/_lib/secret-box.js](../../api/_lib/secret-box.js) (`encryptSecret`/
- `decryptSecret`, `v2:` envelope), [api/_lib/solana-wallet.js](../../api/_lib/solana-wallet.js),
- [api/_lib/avatar-wallet.js](../../api/_lib/avatar-wallet.js). Custody design doc:
- [docs/internal/AGENT-WALLET-CUSTODY.md](../../docs/internal/AGENT-WALLET-CUSTODY.md) — **read it first.**
-- **x402 protocol core** — [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js)
- (version 2, network constants for Base/Arbitrum/BSC/Solana, permit2 variants),
- [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js) (`paidEndpoint(spec)`
- wrapper), [api/_lib/x402/payment-identifier-server.js](../../api/_lib/x402/payment-identifier-server.js)
- (idempotency), [api/_lib/x402-errors.js](../../api/_lib/x402-errors.js),
- [api/_lib/x402-solana-confirm.js](../../api/_lib/x402-solana-confirm.js),
- [api/_lib/evm-payment-verify.js](../../api/_lib/evm-payment-verify.js),
- [api/_lib/x402-spending-cap.js](../../api/_lib/x402-spending-cap.js),
- [api/_lib/x402-spending-ledger.js](../../api/_lib/x402-spending-ledger.js),
- [api/_lib/x402-builder-code.js](../../api/_lib/x402-builder-code.js),
- [api/_lib/x402-prices.js](../../api/_lib/x402-prices.js).
-- **Paid endpoints** — [api/x402/](../../api/x402) (e.g. `forge.js`, `skill-call.js`,
- `skill-marketplace.js`, `pay-by-name.js`, `my-receipts.js`, `did.js`,
- `agent-reputation.js`), [api/x402-pay.js](../../api/x402-pay.js),
- [api/payments/solana/[action].js](../../api/payments/solana/[action].js),
- [api/webhooks/solana-pay.js](../../api/webhooks/solana-pay.js) (Solana Pay).
-- **Wallet UI** — [pages/agent-wallet.html](../../pages/agent-wallet.html) (route
- `/agents/:id/wallet`), [src/agent-wallet.js](../../src/agent-wallet.js),
- [src/agent-wallet-hub/](../../src/agent-wallet-hub) (`index.js`, `registry.js`,
- `tabs/` → `balance.js`, `deposit.js`, `withdraw.js`, `give.js`, `pay.js`, `trade.js`,
- `snipe.js`, `vanity.js`), [src/agent-x402-pay.js](../../src/agent-x402-pay.js),
- [src/payment-modal.js](../../src/payment-modal.js), [src/forge-pay.js](../../src/forge-pay.js),
- [src/shared/add-funds.js](../../src/shared/add-funds.js),
- [src/shared/payment-receipt.js](../../src/shared/payment-receipt.js).
-- **The /pay page** — [public/pay/index.html](../../public/pay/index.html) (route `/pay`).
-- **Skills (real, end-user)** — `authenticate-wallet`, `fund`, `send-usdc`, `trade`,
- `pay-for-service` (USDC on Base/Polygon/Solana, send/fund/trade/x402 pay).
-- **SDKs** — [solana-agent-sdk/](../../solana-agent-sdk), [agent-payments-sdk/](../../agent-payments-sdk).
-- **Tests** — [tests/api/x402-paid-endpoint-replay.test.js](../../tests/api/x402-paid-endpoint-replay.test.js),
- [tests/api/x402-payment-identifier.test.js](../../tests/api/x402-payment-identifier.test.js),
- [tests/api/x402-spec.test.js](../../tests/api/x402-spec.test.js),
- [tests/api/x402-security-fixes.test.js](../../tests/api/x402-security-fixes.test.js),
- [tests/api/x402-pay-routing.test.js](../../tests/api/x402-pay-routing.test.js),
- [tests/api/x402-gas-sponsoring.test.js](../../tests/api/x402-gas-sponsoring.test.js),
- [tests/agent-custody-guards.test.js](../../tests/agent-custody-guards.test.js),
- [tests/agent-wallet-pay-tab.test.js](../../tests/agent-wallet-pay-tab.test.js)
- (and the `agent-wallet-*-tab` family), [tests/api/solana-wallet-balance.test.js](../../tests/api/solana-wallet-balance.test.js).
-
-## Do this
-
-1. **Read the custody doc first** ([docs/internal/AGENT-WALLET-CUSTODY.md](../../docs/internal/AGENT-WALLET-CUSTODY.md)),
- then exercise the wallet in a real browser (`npm run dev`): open `/agents/:id/wallet`,
- walk every tab — balance, deposit, withdraw, give, pay, trade — and the `/pay` page.
- Watch the Network tab: every settlement is a real on-chain/x402 transaction with a
- real signature, never a fake toast.
-2. **Custody safety:** confirm secrets are only ever stored encrypted (`secret-box.js`
- `v2:` envelope) and decrypted in-memory at the moment of signing, never logged,
- returned to the client, or persisted in plaintext. Verify `recoverAgentKey` audit
- hooks fire. The custody guard tests must pass and cover the decrypt path.
-3. **Idempotency is bulletproof:** using `payment-identifier-server.js`, a replayed
- payment payload or a double-clicked "pay" must settle exactly once and return the
- original receipt — never double-charge, never error opaquely. Verify with the replay
- and payment-identifier tests; add cover for any uncovered race (concurrent identical
- requests).
-4. **Verify + settle on both chains:** confirm USDC payments verify and settle correctly
- on **Solana** (`x402-solana-confirm.js`, the `solana:5eykt4...` mainnet constant) and
- **Base** (`evm-payment-verify.js`, `eip155:8453`), including Solana Pay
- (`api/webhooks/solana-pay.js`, `api/payments/solana/`). Spending caps
- (`x402-spending-cap.js`) and the ledger (`x402-spending-ledger.js`) are enforced
- before settlement.
-5. **send / fund / trade / pay all complete for real:** sending USDC, funding (on-ramp/
- add-funds), trading, and paying an x402 endpoint each produce a confirmed transaction,
- a real receipt (`payment-receipt.js`), and an updated balance. Insufficient funds
- routes to a real add-funds path, not a dead error.
-6. **Every state is designed:** wallet loading skeleton, zero-balance empty state with a
- clear fund CTA, pending-tx state with real status (not a fake spinner), confirmed
- state with explorer link + receipt, and an error state that says what failed and how
- to recover. Reconciliation: a tx that confirms on-chain but whose callback was lost
- is reconciled (poll/webhook) so the UI and ledger never drift.
-7. **No provider internals leak:** RPC errors, gas/fee failures, throttling (429), and
- declined payments are masked to neutral, actionable copy via `x402-errors.js`; raw
- detail stays in server logs. Use the existing **cockatiel** resilience helper for
- RPC retries/circuit-breaking — a single flaky RPC must not strand a payment.
-8. **Reliability + reconciliation pass:** confirm a retried RPC, a dropped webhook, and a
- timed-out confirm all converge to a single correct ledger state with a re-fetchable
- receipt (`api/x402/my-receipts.js`). No money is lost or double-counted under failure.
-9. **Accessibility + microinteractions:** wallet tabs are keyboard-navigable with focus
- management, amounts use accessible inputs with validation, every action has
- hover/active/focus/disabled states, and the layout holds at 320 / 768 / 1440.
-10. **Run the tests and ship the changelog:** `npx vitest run tests/api/x402-*.test.js
- tests/agent-custody-guards.test.js tests/agent-wallet-*-tab.test.js
- tests/api/solana-wallet-balance.test.js`. Add a `data/changelog.json` entry for any
- user-visible change, then `npm run build:pages`.
-
-## Must-not
-
-- Never log, return to the client, or persist a wallet secret in plaintext; decrypt only
- in-memory at signing time.
-- Never double-settle: a replayed or double-clicked payment must settle exactly once and
- return the original receipt.
-- Never leak a provider's billing page, RPC internals, gas error, or raw stack trace to a
- user — mask via `x402-errors.js`; keep detail in server logs.
-- Do not reference, list, or recommend any coin other than `$THREE` (CA
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); the only payment token here is USDC and
- generic runtime-supplied mints.
-- Do not weaken or bypass spending caps, the spending ledger, or the idempotency layer to
- "make it work."
-- No mocks of the RPC/x402 stack, no fake receipts, no fake balances, no TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every wallet tab (balance/deposit/withdraw/give/pay/trade) and the `/pay` page
- complete real settlements with real signatures in a real browser; no console
- errors/warnings.
-- [ ] Wallet secrets are encrypted at rest (`v2:` envelope), decrypted only in-memory at
- signing, never logged or returned; custody guard tests pass.
-- [ ] A replayed/double-clicked payment settles exactly once and returns the original
- receipt; replay + payment-identifier tests pass.
-- [ ] USDC verify/settle works on both Solana and Base (and via Solana Pay); spending
- caps and ledger are enforced pre-settlement.
-- [ ] send/fund/trade/pay each produce a confirmed tx, a real receipt, and an updated
- balance; insufficient funds routes to a real fund path.
-- [ ] Loading/empty(zero-balance)/pending/confirmed/error states are all designed;
- dropped webhooks and timed-out confirms reconcile to a single correct ledger state.
-- [ ] No provider internals leak on any failure (verified by tests); RPC failures use
- cockatiel retry/circuit-breaking.
-- [ ] `npx vitest run tests/api/x402-*.test.js tests/agent-custody-guards.test.js tests/agent-wallet-*-tab.test.js tests/api/solana-wallet-balance.test.js` passes.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/19-walk-page-agent-tour.md b/prompts/production-1b/19-walk-page-agent-tour.md
deleted file mode 100644
index 24bee8660..000000000
--- a/prompts/production-1b/19-walk-page-agent-tour.md
+++ /dev/null
@@ -1,133 +0,0 @@
-# 19 — Walk companion, Page-Agent & Feature Tour
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-These three surfaces are how three.ws makes a 3D agent *show up* on any page — the
-corner mascot that strolls a site, the drop-in narrator that explains a product, and
-the guided tour that walks a first-time visitor through the platform. They are the
-embeddable, shareable, screenshot-worthy front of the funnel and the reason a
-developer installs `@three-ws/walk` or `@three-ws/page-agent` instead of building
-their own. If the companion janks, the narrator picks a T-posed avatar, or the tour
-dead-ends, the "living 3D web" promise dies on first contact and so does virality.
-
-## Mission
-
-Take the Walk companion (mascot + full-page playground + diverse avatar picker), the
-`<page-agent>` narrator, and the 3D Feature Tour to end-to-end production polish:
-every state designed, every avatar rigged and animating, smooth at 60fps, and never a
-broken hand-off between modes.
-
-## Map (trust but verify — files move)
-
-- **Walk SDK (`@three-ws/walk`)** — [walk-sdk/src/index.js](../../walk-sdk/src/index.js)
- (public API), [walk-sdk/src/companion.js](../../walk-sdk/src/companion.js) (corner
- mascot), [walk-sdk/src/playground.js](../../walk-sdk/src/playground.js) (full-page
- stroll/platformer), [walk-sdk/src/picker.js](../../walk-sdk/src/picker.js) +
- [walk-sdk/src/roster.js](../../walk-sdk/src/roster.js) (diverse avatar picker +
- `WALK_AVATARS`), [walk-sdk/src/config.js](../../walk-sdk/src/config.js),
- [walk-sdk/package.json](../../walk-sdk/package.json), [walk-sdk/README.md](../../walk-sdk/README.md).
-- **Walk app entries** — [src/walk-companion.js](../../src/walk-companion.js) (on-demand
- platform inject), [src/walk-playground.js](../../src/walk-playground.js). Pages:
- [pages/walk-landing.html](../../pages/walk-landing.html) (`/walk`),
- [pages/walk-embed.html](../../pages/walk-embed.html) (`/walk-embed` code generator),
- [pages/walk-leaderboard.html](../../pages/walk-leaderboard.html),
- [pages/walk-analytics.html](../../pages/walk-analytics.html).
-- **Page-Agent SDK (`@three-ws/page-agent`)** — [page-agent-sdk/src/index.js](../../page-agent-sdk/src/index.js)
- (public API), [page-agent-sdk/src/element.js](../../page-agent-sdk/src/element.js)
- (`<page-agent>` custom element), [page-agent-sdk/src/page-agent.js](../../page-agent-sdk/src/page-agent.js)
- (controller), [page-agent-sdk/src/catalog.js](../../page-agent-sdk/src/catalog.js)
- (**rigged-only** catalog), [page-agent-sdk/src/picker.js](../../page-agent-sdk/src/picker.js),
- [page-agent-sdk/src/narrator.js](../../page-agent-sdk/src/narrator.js),
- [page-agent-sdk/src/lipsync.js](../../page-agent-sdk/src/lipsync.js),
- [page-agent-sdk/src/stage.js](../../page-agent-sdk/src/stage.js). Demos:
- [page-agent-sdk/examples/](../../page-agent-sdk/examples). Publish:
- [page-agent-sdk/PUBLISHING.md](../../page-agent-sdk/PUBLISHING.md).
-- **Feature Tour** — [src/feature-tour/index.js](../../src/feature-tour/index.js)
- (`createFeatureTour`, `?tour=start` bootstrap), [src/feature-tour/director.js](../../src/feature-tour/director.js)
- (curriculum stepping/spotlight/pointing), [src/feature-tour/controls.js](../../src/feature-tour/controls.js)
- (playback bar), [src/feature-tour/free-roam.js](../../src/feature-tour/free-roam.js)
- (hand-off to click-to-walk), [src/feature-tour/guide-avatar.js](../../src/feature-tour/guide-avatar.js)
- (guide character), [src/feature-tour/narrator.js](../../src/feature-tour/narrator.js),
- [src/feature-tour/chapters.js](../../src/feature-tour/chapters.js),
- [src/feature-tour/curriculum.js](../../src/feature-tour/curriculum.js),
- [src/feature-tour/spotlight.js](../../src/feature-tour/spotlight.js). App entry:
- [src/feature-tour.js](../../src/feature-tour.js). Page: [pages/tour.html](../../pages/tour.html) (`/tour`).
-- **Universal rig pipeline (do not bypass)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js),
- [src/animation-retarget.js](../../src/animation-retarget.js), gate in
- [src/animation-manager.js](../../src/animation-manager.js) (`supportsCanonicalClips()`).
-- **Tests** — [tests/walk-gestures.test.js](../../tests/walk-gestures.test.js),
- [page-agent-sdk/test/catalog.test.js](../../page-agent-sdk/test/catalog.test.js),
- [tests/feature-tour-curriculum.test.js](../../tests/feature-tour-curriculum.test.js).
-
-## Do this
-
-1. **Exercise all three in a real browser** (`npm run dev`, port 3000): load `/walk`,
- click the corner companion to detach into the full-page playground, open the avatar
- picker; load a page with `<page-agent>` (use `page-agent-sdk/examples/index.html`)
- and let it narrate; launch the Feature Tour via `?tour=start` and run it to free-roam
- hand-off. Watch the console and Network tab the whole time — zero errors/warnings.
-2. **Every avatar is rigged and animates.** Confirm the Walk roster and the Page-Agent
- catalog only surface rigged GLBs that drive the canonical clip library (idle/walk
- legs included), never a bind-pose T-pose. If a humanoid won't animate, it's a
- bone-name gap — extend [src/glb-canonicalize.js](../../src/glb-canonicalize.js) and
- add a case in `tests/glb-canonicalize.test.js`. Do not hardcode a rig allowlist.
-3. **Avatar picker diversity.** Audit `WALK_AVATARS` (roster.js) and the page-agent
- catalog for a genuinely diverse set (skin tones, body types, styles, presentation) —
- not five variants of one model. Make the picker keyboard-navigable, focus-trapped,
- with hover/active/focus states and a designed empty/loading state if a GLB fails.
-4. **Every state designed for each surface:** companion loading (skeleton, not a dead
- sprite), playground empty/first-run hint, picker loading/error, narrator
- caption-while-speaking + muted state, tour loading/paused/finished/exit-confirm.
- No fake `setTimeout` progress bars — real asset-load progress only.
-5. **Mode hand-offs never break.** Companion → playground detach, playground → page
- navigation persistence ([src/walk-companion.js] transitions), Tour director →
- `free-roam.js` click-to-walk and back. Verify each transition leaves no orphaned
- canvas, listener, or animation loop (check for leaked `requestAnimationFrame`).
-6. **Performance.** Lazy-load three.js and avatar GLBs; cap the playground/companion
- frame budget; pause render loops when the tab is hidden or the element is offscreen
- (IntersectionObserver). Confirm no layout thrash and a smooth 60fps on a mid-range
- device profile (DevTools Performance trace).
-7. **Embed integrity.** The `/walk-embed` code generator and the `<page-agent>` script
- tag must produce working, copy-pasteable snippets that load from the published
- package paths — exercise the generated snippet in a blank HTML file.
-8. **Accessibility & resilience.** ARIA labels on companion/picker/tour controls,
- `prefers-reduced-motion` respected (reduce idle sway, no auto-walk), and a missing
- avatar/manifest falls back gracefully (next roster entry) instead of a blank canvas.
-9. **Run the tests:** `npx vitest run tests/walk-gestures.test.js
- tests/feature-tour-curriculum.test.js page-agent-sdk/test/catalog.test.js`. Add
- cover for any failure mode you fixed (GLB load failure, picker empty, tour exit).
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` bone maps for any new
- skeleton instead, and never ship a T-posed humanoid.
-- Do not break the existing companion/playground/tour code paths while polishing — add
- to unprotected paths, don't refactor working logic for its own sake.
-- Do not ship a fake progress bar, a render loop that runs while the tab is hidden, or
- a picker that lists unrigged/missing avatars.
-- Do not leave a broken mode hand-off, orphaned canvas, or leaked animation loop.
-- Do not reference any coin other than `$THREE` in copy, narration, or sample data.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/walk` companion, full-page playground, and avatar picker all work in a real
- browser with no console errors/warnings; detach + page-navigation persistence work.
-- [ ] `<page-agent>` mounts from the example, narrates with live captions and a muted
- state, and offers a rigged-only, diverse, keyboard-navigable picker.
-- [ ] Feature Tour runs end-to-end (`?tour=start` → chapters → free-roam hand-off →
- exit), with loading/paused/finished/exit-confirm states designed.
-- [ ] Every surfaced avatar is rigged and animates (no unjustified T-pose); any new
- skeleton convention added to `glb-canonicalize.js` with a test case.
-- [ ] Loading/empty/error states designed across all three; no fake progress bars;
- render loops pause when hidden/offscreen; 60fps on a mid-range profile.
-- [ ] The `/walk-embed` snippet and the `<page-agent>` script tag work pasted into a
- blank page.
-- [ ] `prefers-reduced-motion` and ARIA/keyboard support verified.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/20-scene-animation-studio.md b/prompts/production-1b/20-scene-animation-studio.md
deleted file mode 100644
index d882886d6..000000000
--- a/prompts/production-1b/20-scene-animation-studio.md
+++ /dev/null
@@ -1,124 +0,0 @@
-# 20 — Scene Studio & Animation Studio
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Creators don't just want an avatar — they want to *stage* it and *make it move*. Scene
-Studio (import GLBs, compose a scene, edit materials/lights, export) and Animation
-Studio (pose with IK, keyframe a timeline, export an animated GLB you can sell) are
-the surfaces that turn three.ws from a generator into a creation tool — the moment a
-user makes something they own and can list for USDC. A pro-grade editor that imports
-cleanly, never loses work, and exports a sellable artifact is what makes three.ws a
-platform creators return to, not a one-shot toy.
-
-## Mission
-
-Make Scene Studio and Animation Studio production-grade: clean GLB import, real
-material/light editing, IK posing and a keyframe timeline that exports a valid
-animated GLB, every state designed, and a working path from "animate" to "list for
-sale" — all on the universal canonical-rig pipeline.
-
-## Map (trust but verify — files move)
-
-- **Scene Studio (`/scene`)** — [pages/scene.html](../../pages/scene.html) (host page),
- [src/scene-studio/main.js](../../src/scene-studio/main.js) (entry, mounts the editor),
- [src/scene-studio/studio.css](../../src/scene-studio/studio.css) (chrome).
- Vendored three.js r184 editor under [src/scene-studio/vendor/](../../src/scene-studio/vendor)
- — read [src/scene-studio/vendor/README.md](../../src/scene-studio/vendor/README.md)
- for the re-vendoring rules and local mods. Static decoder/lib assets ship under
- `public/scene-studio/` (draco, basis, libs, fonts, images).
-- **Animation Studio (`/pose`)** — [pages/pose.html](../../pages/pose.html) (host),
- [src/pose-studio.js](../../src/pose-studio.js) (controller: FK gizmos, IK drag,
- timeline, export UI), [src/pose-animation.js](../../src/pose-animation.js) (keyframe
- document + interpolation, bakes `THREE.AnimationClip`), [src/pose-rig.js](../../src/pose-rig.js)
- (rig abstraction + `solveIK()` / `IK_CHAINS`), [src/pose-presets.js](../../src/pose-presets.js).
-- **Animation data** — [public/animations/manifest.json](../../public/animations/manifest.json)
- (clip index), [public/animations/clips/](../../public/animations/clips) (retargeted
- JSON clips). Build pipeline: [scripts/build-animations.mjs](../../scripts/build-animations.mjs)
- (Mixamo FBX → retarget → canonical clips), [scripts/fbx-to-glb.mjs](../../scripts/fbx-to-glb.mjs).
-- **Animation gallery + selling** — [pages/animations.html](../../pages/animations.html),
- [src/animations-gallery.js](../../src/animations-gallery.js),
- [api/animations/sell.js](../../api/animations/sell.js) (list/delist for sale),
- [api/animations/clips.js](../../api/animations/clips.js) (save/list clips),
- [api/animations/presign.js](../../api/animations/presign.js) (R2 upload),
- [api/x402/animation-download.js](../../api/x402/animation-download.js) (paid download).
-- **Universal rig pipeline (the spine of both)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js)
- (bone-name + up-axis normalization on import), [src/animation-retarget.js](../../src/animation-retarget.js)
- (rebind canonical clips onto any rig).
-- **Tests** — [tests/pose-animation.test.js](../../tests/pose-animation.test.js),
- [tests/animation-upright-invariant.test.js](../../tests/animation-upright-invariant.test.js),
- [tests/glb-canonicalize.test.js](../../tests/glb-canonicalize.test.js),
- [tests/animation-retarget.test.js](../../tests/animation-retarget.test.js).
-
-## Do this
-
-1. **Exercise Scene Studio in a real browser** (`npm run dev`): open `/scene`, import a
- GLB (Add → Model), select a mesh, edit a material (color/metalness/roughness) and a
- light, then export the scene as GLB. Re-import the exported file to prove it round-trips
- (meshes, materials, lights survive). Watch console/Network — zero errors/warnings.
-2. **Exercise Animation Studio in a real browser:** open `/pose`, load the built-in
- mannequin and a user avatar GLB, pose with FK gizmos and IK drag (grab a hand/foot,
- confirm the chain solves), add timeline keyframes, scrub, then export an animated
- GLB. Re-open the exported GLB in the viewer to confirm it plays.
-3. **Import is bulletproof.** Every imported GLB runs through
- [src/glb-canonicalize.js](../../src/glb-canonicalize.js) so arbitrary skeletons
- (Mixamo/Avaturn/VRM/Daz/Blender, etc.) normalize to the canonical set. A humanoid
- that won't pose/retarget is a bone-name gap — extend `glb-canonicalize.js` and add a
- `tests/glb-canonicalize.test.js` case. Never hardcode a rig allowlist; a genuinely
- non-humanoid prop falls back gracefully, not to a broken editor.
-4. **Every state designed** for both studios: loading (skeleton/progress on GLB load,
- real bytes not a fake bar), empty (no model yet → "import a GLB to start" with a
- sample), error (bad/corrupt file → actionable message, not a stack trace), and
- overflow (large scene/long timeline stays responsive). Mask any vendor/decoder error.
-5. **No lost work.** Confirm the timeline and scene state survive a tab refresh
- (autosave/local persistence) or, if not present, add it. Warn on unload with unsaved
- changes. Undo/redo must work for pose + scene edits.
-6. **Export quality.** The exported animated GLB must have a valid `AnimationClip` with
- canonical bone tracks, play upright (no flipped/tilted root — see
- `animation-upright-invariant.test.js`), and carry a real name. The scene export must
- be self-contained (embedded textures/materials/lights).
-7. **"Animate → sell" path works end-to-end.** From Animation Studio, save the clip
- ([api/animations/clips.js]), presign + upload the artifact ([api/animations/presign.js]),
- list it for sale ([api/animations/sell.js]) with a USDC price, and confirm it shows
- in the gallery ([pages/animations.html]) with a working preview and an x402 paid
- download ([api/x402/animation-download.js]). No mocks — real R2 + real listing.
-8. **Performance & accessibility.** Lazy-load heavy editor modules and decoders; pause
- the render loop when the tab is hidden; keyboard shortcuts for play/pause/keyframe;
- ARIA on timeline controls; `prefers-reduced-motion` respected in previews.
-9. **Run the tests:** `npx vitest run tests/pose-animation.test.js
- tests/animation-upright-invariant.test.js tests/glb-canonicalize.test.js
- tests/animation-retarget.test.js`. Cover any failure mode you fixed (bad-GLB import,
- export of an unrigged mesh, IK chain with a missing bone).
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` for new skeletons so
- IK/posing/export work on any humanoid.
-- Do not edit the vendored three.js editor upstream files without recording the change
- per `src/scene-studio/vendor/README.md` (the re-vendor must stay reproducible).
-- Do not ship a fake progress bar, an export that produces an invalid/upright-flipped
- GLB, or a "sell" flow backed by mocks.
-- Do not let a corrupt import or decoder failure surface a raw stack trace or vendor URL.
-- Do not reference any coin other than `$THREE` (prices/payments are USDC; never name
- another token).
-
-## Acceptance (all true before claiming done)
-
-- [ ] Scene Studio imports a GLB, edits a material + light, exports a self-contained
- scene GLB that round-trips on re-import — no console errors/warnings.
-- [ ] Animation Studio poses with FK + IK, keyframes a timeline, and exports a valid
- animated GLB that plays upright in the viewer.
-- [ ] Arbitrary skeletons normalize via `glb-canonicalize.js`; any new convention added
- with a test case; no rig allowlist, no unjustified T-pose.
-- [ ] Loading/empty/error/overflow states designed in both studios; vendor/decoder
- errors masked; no fake progress bars.
-- [ ] Unsaved-work protection (autosave or unload warning) and undo/redo work.
-- [ ] "Animate → save → upload → list for sale → gallery → x402 download" works
- end-to-end with real R2 and real listings.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/21-avatar-creator-character-studio.md b/prompts/production-1b/21-avatar-creator-character-studio.md
deleted file mode 100644
index 0cbb145b6..000000000
--- a/prompts/production-1b/21-avatar-creator-character-studio.md
+++ /dev/null
@@ -1,130 +0,0 @@
-# 21 — Avatar creator / Character Studio / Selfie→avatar
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-"Make *me* a 3D avatar" is the most personal thing a user does on three.ws — sculpt a
-character from scratch, turn a selfie into a rigged avatar, or describe one in words —
-and it's the asset they carry into Walk, Worlds, the marketplace, and their agent
-profile. If the creator is clumsy, the selfie pipeline dead-ends, or the result lands
-as a frozen T-pose, the user never gets to the "wow, that's me, and it moves"
-screenshot that drives sharing. This surface must feel like a real character creator
-and always produce a rigged avatar that animates.
-
-## Mission
-
-Make the three avatar-creation paths — Character Studio (sculpt face+body), selfie→avatar,
-and prompt→avatar — correct, resilient, and beautifully stated, each producing a
-canonical-rigged GLB the user can export and publish to the gallery, all on the
-universal rig pipeline (no allowlist).
-
-## Map (trust but verify — files move)
-
-- **Character Studio (full builder)** — [character-studio/](../../character-studio)
- (React/Vite app, MIT fork of m3-org/CharacterStudio — see
- [character-studio/LICENSE](../../character-studio/LICENSE)).
- [character-studio/package.json](../../character-studio/package.json) (`@m3-org/characterstudio`,
- builds to `/avatar-studio/` base), [character-studio/index.html](../../character-studio/index.html).
- Sculpting/body engine under `character-studio/src/library/` (e.g.
- `characterManager.js`, `VRMExporter*.js`). Wrapper page that iframes the studio:
- [pages/avatar-studio.html](../../pages/avatar-studio.html). Routes: `/avatar-studio`,
- `/create/studio` → `avatar-studio.html` (see [vercel.json](../../vercel.json)).
-- **Avatar SDK (`@three-ws/avatar`)** — [avatar-sdk/package.json](../../avatar-sdk/package.json)
- (web component `<agent-3d>`; `./creator`, `./viewer`, `./react` subpaths),
- [avatar-sdk/src/creator.js](../../avatar-sdk/src/creator.js) (modal iframe controller +
- presigned upload), [avatar-sdk/src/viewer.js](../../avatar-sdk/src/viewer.js),
- [avatar-sdk/README.md](../../avatar-sdk/README.md).
-- **Selfie→avatar / prompt→avatar (UI)** — [pages/create-selfie.html](../../pages/create-selfie.html)
- (`/create/selfie`), [src/selfie-pipeline.js](../../src/selfie-pipeline.js),
- [src/selfie-capture.js](../../src/selfie-capture.js); [pages/create-prompt.html](../../pages/create-prompt.html)
- (`/create/prompt`), [src/create-prompt.js](../../src/create-prompt.js).
-- **Reconstruct + auto-rig (backend)** — [api/avatars/_actions.js](../../api/avatars/_actions.js)
- (`reconstruct`, `upload`, `upload-proxy`), [api/avatars/index.js](../../api/avatars/index.js)
- (list/create metadata), [api/avatars/from-forge.js](../../api/avatars/from-forge.js),
- [api/_lib/reconstruct-finalize.js](../../api/_lib/reconstruct-finalize.js) (shared
- tail: canonicalize → rig gate → materialize), [api/_lib/auto-rig.js](../../api/_lib/auto-rig.js),
- [api/_lib/regen-provider.js](../../api/_lib/regen-provider.js).
-- **Gallery (publish target)** — [public/gallery/index.html](../../public/gallery/index.html),
- [public/gallery/gallery.js](../../public/gallery/gallery.js),
- [pages/gallery-picker.html](../../pages/gallery-picker.html).
-- **Universal rig pipeline (must respect)** — [src/glb-canonicalize.js](../../src/glb-canonicalize.js)
- (bone-name + up-axis normalize at ingest), [src/animation-retarget.js](../../src/animation-retarget.js),
- gate in [src/animation-manager.js](../../src/animation-manager.js)
- (`supportsCanonicalClips()`).
-- **Tests** — [tests/api/reconstruct-finalize.test.js](../../tests/api/reconstruct-finalize.test.js),
- [tests/api/avatars-from-forge.test.js](../../tests/api/avatars-from-forge.test.js),
- [tests/glb-canonicalize.test.js](../../tests/glb-canonicalize.test.js).
-
-## Do this
-
-1. **Exercise all three creation paths in a real browser** (`npm run dev`): Character
- Studio at `/avatar-studio` (sculpt a face, adjust body, change an outfit, export
- GLB); `/create/selfie` (capture/upload a photo → rigged avatar); `/create/prompt`
- (describe an avatar → rigged avatar). Watch console/Network — zero errors/warnings.
-2. **Every result is canonical-rigged and animates.** Confirm `reconstruct-finalize.js`
- canonicalizes every GLB and the auto-rig gate ([api/_lib/auto-rig.js]) produces a
- skeleton that drives idle/walk (legs included). A humanoid that lands T-posed is a
- bug — fix the bone map in `glb-canonicalize.js` (+ a `tests/glb-canonicalize.test.js`
- case), never hardcode a rig allowlist. Only a genuinely non-humanoid mesh may fall
- back to the default rig via `supportsCanonicalClips()`.
-3. **No provider internals reach the user.** Audit every error path in
- [api/avatars/_actions.js], [api/_lib/reconstruct-finalize.js],
- [api/_lib/regen-provider.js], and the selfie/prompt UIs: provider quota/billing,
- raw stack traces, vendor URLs, NSFW/no-face/OOM responses must become neutral,
- actionable copy. Keep raw detail in server logs only.
-4. **Every phase is designed.** Selfie capture (camera permission prompt, face-not-found
- hint, retake), reconstruct, and rig each show a live label + real elapsed time +
- progress affordance (not a fake `setTimeout` bar). Empty state tells the user what to
- do; error state says how to recover; Character Studio loading uses a skeleton, not a
- blank canvas.
-5. **Resilience.** A hung/throttled provider must time out and either retry or hand off
- (reuse the existing `regen-provider` chain / cockatiel helper), never stall a spinner
- forever. Verify the cascade and add cover for uncovered failure modes (402/429/
- timeout/NSFW/no-face/OOM/unconfigured).
-6. **Export + publish path works end-to-end.** From any creation path, export the GLB
- and publish it to the gallery: confirm the avatar appears in
- [public/gallery/index.html](../../public/gallery/index.html) with the correct
- `visibility`, a real thumbnail (not a 1px snapshot), correct rigged/static tagging,
- and an owner-scoped storage key (you can't claim someone else's GLB).
-7. **Right input → right path.** Make affordances obvious so a "humanoid" prompt goes
- to the avatar flow (not a box on a non-humanoid pipeline), and the selfie flow guides
- the user to a clear, face-forward photo.
-8. **Accessibility, mobile, performance.** Camera/selfie flow works on mobile (320px),
- ARIA on creator controls and the picker, keyboard navigation, lazy-load the heavy
- `<agent-3d>` runtime and Character Studio bundle, and respect `prefers-reduced-motion`
- in previews. Confirm Character Studio's iframe wrapper sizing is responsive.
-9. **Run the tests:** `npx vitest run tests/api/reconstruct-finalize.test.js
- tests/api/avatars-from-forge.test.js tests/glb-canonicalize.test.js`. Add cover for
- any failure mode or new bone mapping you fixed.
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` bone maps so every
- humanoid animates; never ship a bind-pose T-pose for a riggable humanoid.
-- Do not surface any provider's billing page, credit balance, quota, or raw error to the
- user — mask to neutral, actionable copy.
-- Do not ship a fake progress bar, a spinner with no timeout, or a "publish" backed by
- mocks/sample arrays.
-- Do not let a user claim or overwrite another user's avatar/storage key.
-- Do not reference any coin other than `$THREE` in copy, metadata, or sample data.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Character Studio (sculpt), selfie→avatar, and prompt→avatar all complete in a real
- browser with no console errors/warnings; each exports a GLB.
-- [ ] Every produced humanoid is canonical-rigged and animates (no unjustified T-pose);
- any new skeleton convention added to `glb-canonicalize.js` with a test case.
-- [ ] Every failure mode (402/429/timeout/NSFW/no-face/OOM/unconfigured) yields a
- neutral, actionable message — no vendor internals, verified by tests.
-- [ ] Loading/empty/error states designed for all three paths; elapsed time is real; no
- fake progress bars.
-- [ ] Export → publish-to-gallery works with a real thumbnail, correct visibility +
- rigged/static tag, and owner-scoped storage.
-- [ ] Mobile (320px) selfie flow, ARIA/keyboard support, and lazy-loading verified.
-- [ ] Listed tests pass; new failure modes covered.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/22-pump-oracle-trading-three.md b/prompts/production-1b/22-pump-oracle-trading-three.md
deleted file mode 100644
index bfb03d373..000000000
--- a/prompts/production-1b/22-pump-oracle-trading-three.md
+++ /dev/null
@@ -1,145 +0,0 @@
-# 22 — Pump.fun launch, Oracle, trading & $THREE
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The token surfaces are where three.ws meets real money and real on-chain stakes:
-launch-a-coin, the Launchpad Studio, Coin Intelligence/Radar, the Oracle conviction
-engine, the Trader Leaderboard, Smart Money, Arm-your-agent, the Strategy Lab, and the
-`$THREE` token page. These pages must show real Solana data, never stall on a flaky
-RPC, never leak a provider error — and they must be **flawless on $THREE-only
-compliance**, because a single stray ticker in code, copy, or sample data is a
-credibility (and legal) failure for the platform's own token.
-
-## Mission
-
-Harden every pump/oracle/trading surface to production: real-data feeds with resilient
-RPC, every state designed, no leaked provider internals — and run a strict $THREE-only
-compliance audit that confirms the only coin promoted anywhere is `$THREE`
-(CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-
-## Map (trust but verify — files move)
-
-- **Launch-a-coin** — [pages/launch.html](../../pages/launch.html) (`/launch`),
- [src/pump/launch-token-modal.js](../../src/pump/launch-token-modal.js) (launcher modal).
- Pump backend dispatch: [api/pump/[action].js](../../api/pump/%5Baction%5D.js)
- (`launches`, `snapshot`, etc.), [api/pump/safety.js](../../api/pump/safety.js),
- [api/pump/trending.js](../../api/pump/trending.js).
-- **Launchpad Studio (page-builder + CMS)** — [pages/launchpad.html](../../pages/launchpad.html)
- (`/launchpad`), [src/editor/launchpad-studio.js](../../src/editor/launchpad-studio.js)
- (template → live preview → publish to `/p/<slug>`).
-- **Platform launch directory (runtime exception — keep)** — [pages/launches.html](../../pages/launches.html)
- (`/launches`, renders coins launched through three.ws over `pump_agent_mints`),
- [pages/launch-detail.html](../../pages/launch-detail.html) (`/launches/<mint>`,
- runtime user-supplied mint).
-- **Coin Intelligence / Radar** — [pages/coin-intel.html](../../pages/coin-intel.html)
- (`/coin-intel`), [pages/radar.html](../../pages/radar.html) (`/radar`),
- [src/radar.js](../../src/radar.js), [api/pump/coin-intel.js](../../api/pump/coin-intel.js).
-- **Oracle (conviction)** — [pages/oracle.html](../../pages/oracle.html) (`/oracle`),
- [src/oracle.js](../../src/oracle.js), [api/oracle/feed.js](../../api/oracle/feed.js),
- [api/oracle/coin.js](../../api/oracle/coin.js), conviction engine in
- [api/_lib/oracle/conviction.js](../../api/_lib/oracle/conviction.js) (+ `narrative.js`,
- `archetype.js`, `known-wallets.js`, `settle.js` in [api/_lib/oracle/](../../api/_lib/oracle)).
-- **Arm-your-agent (trading automation)** — [pages/arm.html](../../pages/arm.html)
- (`/arm`, `/oracle/arm`), [src/arm.js](../../src/arm.js) (reuses `/api/agents`,
- `/api/oracle/watch`, `/api/oracle/test-alert`).
-- **Strategy Lab** — [public/strategy-lab.html](../../public/strategy-lab.html)
- (`/strategy-lab`). Sniper dashboard: [src/dashboard-next/pages/sniper.js](../../src/dashboard-next/pages/sniper.js).
-- **Trader Leaderboard / Smart Money** — [pages/leaderboard.html](../../pages/leaderboard.html)
- (`/leaderboard`), [src/leaderboard.js](../../src/leaderboard.js),
- [api/_lib/trader-stats.js](../../api/_lib/trader-stats.js);
- [pages/smart-money.html](../../pages/smart-money.html) (`/smart-money`),
- [api/pump/smart-money.js](../../api/pump/smart-money.js).
-- **$THREE token page** — [pages/three-token.html](../../pages/three-token.html)
- (`/three-token`), [src/three-token-page.js](../../src/three-token-page.js),
- [api/three-token/[action].js](../../api/three-token/%5Baction%5D.js),
- [src/pump/three-token-data.js](../../src/pump/three-token-data.js) (canonical mint),
- [api/_lib/token/config.js](../../api/_lib/token/config.js).
-- **Tests** — [tests/api/granite-oracle.test.js](../../tests/api/granite-oracle.test.js),
- [tests/smart-money.test.js](../../tests/smart-money.test.js),
- [tests/api/pump-curve.test.js](../../tests/api/pump-curve.test.js).
-
-## Do this
-
-1. **Exercise every surface in a real browser** (`npm run dev`): `/launch`, `/launchpad`,
- `/launches` + a `/launches/<mint>` detail, `/coin-intel`, `/radar`, `/oracle`, `/arm`,
- `/strategy-lab`, `/leaderboard`, `/smart-money`, `/three-token`. Watch console/Network
- — zero errors/warnings; every page renders real Solana/pump data, not a placeholder.
-2. **Run the $THREE-only compliance audit.** Grep the codebase for any non-`$THREE`
- ticker/symbol or hardcoded mint in code, comments, copy, fixtures, and sample data:
- ```
- grep -rniE '\$[A-Z]{2,6}\b' pages/ src/ api/ public/ | grep -v 'THREE'
- grep -rnoE '[1-9A-HJ-NP-Za-km-z]{32,44}' api/pump api/oracle src/pump src/kol
- ```
- Confirm every hit is one of: the `$THREE` CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`;
- a clearly-synthetic placeholder (`THREEsynthetic1111…`); a Solana utility mint (wSOL
- `So111…112`, USDC `EPjF…Dt1v`); a platform fee / wallet / EVM factory address (not a
- coin); a **runtime user-supplied** mint (launcher input, `/launches/<mint>`); or the
- **platform launch directory** over `pump_agent_mints`. Remove or fix anything that
- markets/recommends/hardcodes another coin. Treat a stray ticker like a leaked secret.
-3. **No provider/RPC internals reach the user.** Audit error paths in `api/pump/*`,
- `api/oracle/*`, and `api/_lib/oracle/*`: Helius/RPC/DEX errors, rate-limit bodies,
- raw stack traces, and vendor URLs must become neutral, actionable copy. Keep raw
- detail in server logs only.
-4. **Resilient on-chain reads.** Every Solana RPC / pump / Helius call must time out and
- retry/fall back via the existing cockatiel resilience helper — never stall a feed.
- Verify the trending/coin-intel/oracle feeds degrade gracefully when RPC is slow or a
- provider 429s (designed stale/partial state, not a dead spinner).
-5. **Every state designed** on each surface: loading (skeleton rows, not spinners),
- empty (e.g. no launches yet, no conviction signals yet → tell the user what's next),
- error (RPC down → "data delayed, retrying" with a retry), and overflow (long lists
- paginated/virtualized; long names truncated). Designed for 0 / 1 / 1000 items.
-6. **Launch + arm flows are real and safe.** Confirm `/launch` produces a real pump.fun
- launch (the launcher accepts the runtime mint/params — generic plumbing exception),
- `/launches` lists it, and `/arm` wires conviction-threshold automation through
- `/api/oracle/watch` with real agent state. No fake fills, no mock PnL on the
- leaderboard — `trader-stats.js` must compute from real on-chain history.
-7. **$THREE token page integrity.** `/three-token` must read live price/holders/activity
- from real APIs, reference only the canonical mint
- (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`), and degrade gracefully if a feed is
- down. Any "buy/swap" affordance routes to a legitimate runtime-mint swap, never names
- another token.
-8. **Accessibility, mobile, performance.** ARIA on tables/controls, keyboard nav,
- responsive at 320/768/1440, lazy-load charts/3D, debounce search inputs, paginate
- large feeds. No layout thrash on live-updating tables.
-9. **Run the tests:** `npx vitest run tests/api/granite-oracle.test.js
- tests/smart-money.test.js tests/api/pump-curve.test.js`. Add cover for any RPC-failure
- or error-masking path you fixed; add a test asserting no non-`$THREE` ticker appears
- in shipped copy/fixtures if a gap exists.
-10. Add a `data/changelog.json` entry for any user-visible change and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not mention, hardcode, link, render, or recommend any coin other than `$THREE`
- anywhere — code, comments, copy, fixtures, sample data, or commit message. The only
- two exceptions are runtime user-supplied mints (launcher input, `/launches/<mint>`)
- and the platform launch directory over `pump_agent_mints`. Never paste a real
- non-`$THREE` mint/creator/holder address into tests or fixtures.
-- Do not surface a raw RPC/Helius/DEX/provider error, rate-limit body, or vendor URL to
- the user.
-- Do not ship a feed with no timeout/fallback, a fake-loading bar, or mock PnL/fills.
-- Do not break the working pump/oracle data paths while hardening — add to unprotected
- paths, prefer the existing cockatiel helper over hand-rolled retries.
-
-## Acceptance (all true before claiming done)
-
-- [ ] All token surfaces render real Solana/pump data in a real browser with no console
- errors/warnings: `/launch`, `/launchpad`, `/launches`(+detail), `/coin-intel`,
- `/radar`, `/oracle`, `/arm`, `/strategy-lab`, `/leaderboard`, `/smart-money`,
- `/three-token`.
-- [ ] $THREE-only audit clean: every ticker/mint in code, copy, and fixtures is `$THREE`,
- a synthetic placeholder, a utility mint/wallet, a runtime user-supplied mint, or
- the `pump_agent_mints` launch directory. No other coin promoted anywhere.
-- [ ] Every provider/RPC failure yields neutral, actionable copy — no internals leaked.
-- [ ] Feeds are resilient (timeout + retry/fallback via cockatiel) and degrade gracefully
- under slow/429 RPC.
-- [ ] Loading/empty/error/overflow states designed across all surfaces (0/1/1000 items).
-- [ ] Launch, arm, leaderboard, and $THREE token data are real (no mock fills/PnL); the
- $THREE page references only the canonical mint.
-- [ ] ARIA/keyboard, responsive 320/768/1440, and lazy-loading verified.
-- [ ] Listed tests pass; new RPC-failure / compliance coverage added where there was a gap.
-- [ ] Changelog updated and `npm run build:pages` is clean.
diff --git a/prompts/production-1b/26-observability.md b/prompts/production-1b/26-observability.md
deleted file mode 100644
index 51667ed9d..000000000
--- a/prompts/production-1b/26-observability.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 26 — Observability (logging, metrics, error tracking)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-You cannot scale what you cannot see. When the Forge hangs, a payment silently
-fails, or a cron stops firing at 3am, the difference between a five-minute fix and
-a five-hour outage is whether the right structured log, metric, and alert already
-exist. At $1B scale every minute of operator blindness is revenue, trust, and
-$THREE-holder confidence bleeding out. Observability is the nervous system that lets
-a small team run a large platform.
-
-## Mission
-
-Make every hot path emit structured, correlated, PII-free logs; record metrics on
-generation/payment/RPC paths; and ensure every server error reaches Sentry + a
-deduped ops alert with a traceable ref — without leaking secrets or vendor internals.
-
-## Map (trust but verify — files move)
-
-- **Client logger** — [src/shared/log.js](../../src/shared/log.js) — gated logger
- (`error` always emits; `warn/info/debug` gated by DEV / `?debug` / `localStorage['tws:debug']`),
- exports `log` + `createLogger(tag)`.
-- **HTTP boundary + correlation IDs** — [api/_lib/http.js](../../api/_lib/http.js) —
- `correlationId()`, `serverError()` (emits `[server-error <ref>]`, calls Sentry + alert),
- `wrap()`, and `redactUrl()` which strips `lat/lng/token/devicetoken` before logging.
-- **Generation metrics** — [api/_lib/forge-events.js](../../api/_lib/forge-events.js) —
- `recordGenerationEvent()` (JSON line `evt:"forge_gen"` + Redis hourly rolling counters),
- `readGenerationMetrics()`; consumed by [api/_lib/forge-health.js](../../api/_lib/forge-health.js).
-- **Payment/business metrics** — [api/_lib/axiom.js](../../api/_lib/axiom.js) —
- `recordPaymentMetric()`, `ingestEvent()` (no-op when `AXIOM_TOKEN`/`AXIOM_DATASET` unset).
-- **Error tracking** — [api/_lib/sentry.js](../../api/_lib/sentry.js) —
- `captureException()`, `captureMessage()` (fetch-based envelope, 2.5s abort, no-op without `SENTRY_DSN`).
-- **Ops alerts** — [api/_lib/alerts.js](../../api/_lib/alerts.js) — `sendOpsAlert(title, detail, opts)`,
- per-signature dedup (1h) + 20/hr global ceiling (Telegram).
-- **x402 audit trail** — [api/_lib/x402/audit-log.js](../../api/_lib/x402/audit-log.js).
-- **Tests** — [tests/api/healthz.test.js](../../tests/api/healthz.test.js),
- [tests/api/forge-health.test.js](../../tests/api/forge-health.test.js),
- [tests/api/audit-log.test.js](../../tests/api/audit-log.test.js).
-
-## Do this
-
-1. **Inventory the boundaries.** Read `http.js` end-to-end. Confirm every `api/`
- handler that can 5xx routes through `serverError()`/`wrap()` so it gets a `ref`,
- a Sentry capture, and an alert. Grep for raw `res.status(500)` /
- `console.error` that bypass the boundary and route them through `http.js`.
-2. **Standardize log levels.** Audit `console.*` calls across `api/` and `src/`.
- Client code must use `src/shared/log.js` (no raw `console.log` shipping to prod);
- server code emits one structured JSON line per significant event with a stable
- `evt` key (mirror `forge_gen`). No free-text-only logs on hot paths.
-3. **PII/secret redaction is non-negotiable.** Extend `redactUrl()` and any log
- payload builder to strip wallet secrets, bearer tokens, API keys, email, and
- precise geo. Add a test asserting a crafted error with a token in the URL +
- body never appears verbatim in the logged/captured payload.
-4. **Metrics on hot paths.** Confirm `recordGenerationEvent()` fires on every forge
- lifecycle phase (start/done/failed). Wire `recordPaymentMetric()` (Axiom) on
- every x402 settle/verify/refund outcome if any path is missing it. These must be
- fail-open (a metrics hiccup never blocks the request).
-5. **Correlation end to end.** Ensure the `ref` from `serverError()` is returned in
- the JSON error body AND attached to the Sentry/alert context, so a support ref
- maps to one log line. Add `ref` to the user-facing error copy where surfaced.
-6. **Alert hygiene.** Verify `sendOpsAlert` dedup + 20/hr ceiling work (read
- `alerts.js`); confirm health crons (`world-health`, `redis-health`, `llm/health`)
- alert on degradation, not on every probe. No alert storms.
-7. **Verify graceful no-op.** With `SENTRY_DSN`, `AXIOM_TOKEN`, and
- `TELEGRAM_*` unset locally, the whole stack must stay silent and non-throwing.
- Run the relevant tests and a local request to confirm.
-8. Run `npx vitest run tests/api/healthz.test.js tests/api/forge-health.test.js
- tests/api/audit-log.test.js` plus any new redaction test. Add a `data/changelog.json`
- entry only if a user-visible surface changed (e.g. a `ref` shown on error pages),
- then `npm run build:pages`.
-
-## Must-not
-
-- Never log secrets, private keys, bearer tokens, raw wallet payloads, full emails,
- or precise geo — redact at the boundary.
-- Never surface a vendor's billing/credit/quota message or raw stack to an end user;
- raw detail lives in server logs and Sentry only.
-- Never make a request block on a metrics/alert/Sentry call — all are fire-and-forget.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs; finish every path you touch. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every 5xx in `api/` produces a correlation `ref`, a Sentry capture, and a
- deduped ops alert; the same `ref` is in the response body and the log line.
-- [ ] Hot paths (forge phases, x402 settle/verify/refund) emit structured metrics;
- all metric/alert/Sentry calls are fail-open and non-blocking.
-- [ ] A redaction test proves tokens/secrets/PII never appear in logged or captured
- payloads (URL and body).
-- [ ] With all observability env vars unset, the stack is silent and never throws.
-- [ ] `tests/api/healthz`, `forge-health`, `audit-log` and any new test pass.
-- [ ] Changelog updated only if user-visible; `npm run build:pages` is clean.
diff --git a/prompts/production-1b/27-database-integrity-migrations.md b/prompts/production-1b/27-database-integrity-migrations.md
deleted file mode 100644
index 216ce0efb..000000000
--- a/prompts/production-1b/27-database-integrity-migrations.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# 27 — Database integrity & migrations
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The database holds money truth: payment intents, agent revenue, skill licenses,
-launch records. One non-idempotent migration that half-applies, one missing unique
-index that lets a payment double-settle, or one unindexed hot query that table-scans
-under load can corrupt balances or take the platform down during the exact traffic
-spike you wanted. At $1B, schema discipline is the floor that everything else stands
-on — it must be boringly safe, forward-only, and reversible.
-
-## Mission
-
-Guarantee every migration is idempotent and forward-safe, every hot query is indexed
-and constrained, money paths are protected by unique/FK constraints, and no
-destructive change ships without a backup — with retry and timeouts on the Neon client.
-
-## Map (trust but verify — files move)
-
-- **Migrations** — [api/_lib/migrations/](../../api/_lib/migrations) — ~134 `.sql`
- files (mixed `001_`, dated, and `YYYYMMDDHHMMSS_` naming). Idempotency via
- `CREATE TABLE/INDEX IF NOT EXISTS` and `DO $$ … EXCEPTION WHEN duplicate_object`.
-- **Base schema** — [api/_lib/schema.sql](../../api/_lib/schema.sql) — ~1900 lines,
- `pgcrypto`/`citext`, fully idempotent (`IF NOT EXISTS` everywhere).
-- **Neon client** — [api/_lib/db.js](../../api/_lib/db.js) — `@neondatabase/serverless`
- HTTP driver, lazy init, composable SQL fragments with placeholder renumbering.
-- **Retry helper** — [api/_lib/db-retry.js](../../api/_lib/db-retry.js) — `withDbRetry`,
- 3 attempts, retries transient connection errors only (never SQLSTATE constraint errors).
-- **Migration runner** — [scripts/apply-migrations.mjs](../../scripts/apply-migrations.mjs) —
- dry-run by default (`--apply` to write), `schema_migrations` ledger (filename + SHA-256),
- drift detection (refuses if a hash changed), `Pool` for multi-statement files.
- Scripts: `npm run db:status` (dry) / `npm run db:migrate` (apply).
-- **Money-path examples** —
- [api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql](../../api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql)
- (anti-replay unique tx_hash),
- [api/_lib/migrations/20260621120000_revenue-integrity.sql](../../api/_lib/migrations/20260621120000_revenue-integrity.sql)
- (partial unique index + CHECK via DO/EXCEPTION).
-- **Tests** — [tests/db-sql-compose.test.js](../../tests/db-sql-compose.test.js)
- (fragment placeholder renumbering), [tests/db-retry.test.js](../../tests/db-retry.test.js).
-
-## Do this
-
-1. **Establish the truth.** Run `npm run db:status` to see applied vs pending and
- confirm the `schema_migrations` ledger + drift detection work. Never edit a
- migration that has already applied (it breaks the SHA-256 drift guard) — add a
- new forward migration instead.
-2. **Idempotency sweep.** Grep every file under `api/_lib/migrations/` for
- `CREATE TABLE`/`CREATE INDEX`/`ADD CONSTRAINT`/`ADD COLUMN` lacking
- `IF NOT EXISTS` or a `DO $$ … EXCEPTION` guard. Each must be safe to re-run on a
- DB that already has the object. Fix any that aren't (new migration if already applied).
-3. **Hot-query indexes.** Identify the most-read tables (payments/intents, agent
- revenue, launches, marketplace, feeds). For each frequent `WHERE`/`ORDER BY`/`JOIN`,
- confirm a supporting index exists; add `CREATE INDEX IF NOT EXISTS` (use partial
- indexes where a column is nullable, mirroring the revenue-integrity pattern).
-4. **Constraints on money paths.** Verify unique constraints prevent double-settle
- (e.g. one intent per on-chain tx_hash) and that foreign keys tie child rows to
- their owners. Add missing UNIQUE/FK/CHECK via the `DO $$ … EXCEPTION WHEN
- duplicate_object THEN NULL; END $$;` idempotent pattern.
-5. **No destructive change without a backup.** Audit migrations for `DROP TABLE`,
- `DROP COLUMN`, `TRUNCATE`. For any new destructive op, require an explicit Neon
- branch/snapshot first and document the rollback; prefer additive deprecation
- (rename-then-drop in a later release) over in-place drops.
-6. **Client safety.** Confirm money/critical reads/writes go through `withDbRetry`.
- Add a request-level query timeout (`Promise.race` against a bounded deadline)
- around long DB calls so a stalled Neon connection can't hang a serverless
- function past its limit. Keep retry classification (transient vs constraint) intact.
-7. **Split-safety.** The runner splits multi-statement files on bare `;` at line
- ends — verify any new migration with `DO $$`/dollar-quoted bodies still parses
- (test against `db:status`), and that statements are individually idempotent.
-8. Run `npx vitest run tests/db-sql-compose.test.js tests/db-retry.test.js`, then
- `npm run db:status` to confirm a clean, applied-or-pending state. Add a
- `data/changelog.json` entry only if a user-visible behavior changed; `npm run build:pages`.
-
-## Must-not
-
-- Never edit an already-applied migration — it trips the drift guard; add a forward one.
-- Never ship `DROP`/`TRUNCATE`/`DROP COLUMN` without a Neon snapshot + documented rollback.
-- Never make a migration non-idempotent; assume it may re-run on a partially-applied DB.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs. The only coin is `$THREE` — no other mint in fixtures/seeds.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run db:status` shows a clean ledger; drift detection verified working.
-- [ ] Every migration is idempotent (`IF NOT EXISTS` / `DO $$ … EXCEPTION`), safe to re-run.
-- [ ] Hot tables have indexes covering their frequent `WHERE`/`ORDER BY`/`JOIN`.
-- [ ] Money paths carry unique + FK + CHECK constraints (e.g. no double-settle per tx).
-- [ ] No destructive migration lacks a backup/rollback plan; additive deprecation preferred.
-- [ ] Critical DB calls use `withDbRetry` and a bounded query timeout.
-- [ ] `db-sql-compose` and `db-retry` tests pass; changelog updated only if user-visible.
diff --git a/prompts/production-1b/28-deploy-pipeline-rollback.md b/prompts/production-1b/28-deploy-pipeline-rollback.md
deleted file mode 100644
index 6e5e89328..000000000
--- a/prompts/production-1b/28-deploy-pipeline-rollback.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# 28 — Deploy pipeline & rollback safety
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform handling real money and real assets must be able to ship safely and undo
-instantly. The single worst footgun in this repo is `npx vercel build` rewriting
-`api/*.js` source files in place with esbuild bundles — committing one corrupts the
-backend silently. Add a missed cron registration, a desync between the two git
-remotes, or a deploy with no fast rollback, and a routine push becomes an outage.
-At $1B, deploys must be a non-event: gated, verified, mirrored, and reversible.
-
-## Mission
-
-Harden the deploy path so a bundled `api/` file can never reach `main`, the deploy
-audit + build gates always run, crons stay in sync with their handlers, both git
-remotes stay aligned, and rollback is one documented command away.
-
-## Map (trust but verify — files move)
-
-- **Bundle guard** — [scripts/check-api-not-bundled.mjs](../../scripts/check-api-not-bundled.mjs) —
- scans first 4096 bytes of every `api/**/*.js` for `__defProp`, `createRequire(`,
- `__toESM(`, `__toCommonJS(`; exits non-zero with `git restore -- api/ public/` recovery hint.
-- **Deploy artifact audit** — [scripts/audit-deploy-artifacts.mjs](../../scripts/audit-deploy-artifacts.mjs) —
- catches committed symlinks + unsatisfied peers + undeclared `api/` imports. Run `npm run audit:deploy`.
-- **Build orchestrator** — [scripts/build-vercel.mjs](../../scripts/build-vercel.mjs) —
- 5-phase build; phase 1 gates on `audit:deploy`, `test:gate`, `verify:solana`,
- `verify:onchain`, `audit:mcp`. Run `npm run build:vercel`.
-- **Vercel config** — [vercel.json](../../vercel.json) — `routes`, `functions`, `headers`,
- `env`, and `crons` (~46 cron entries). Cron handlers live in [api/cron/](../../api/cron).
-- **CI** — [.github/workflows/ci.yml](../../.github/workflows/ci.yml) — jobs: **lint**
- (`eslint .`), **test** (`vitest run`), **guards** (`check-api-not-bundled.mjs`,
- `check:images`, `build:pages`), **typecheck** (advisory, continue-on-error).
-- **Tests** — [tests/deploy-artifacts.test.js](../../tests/deploy-artifacts.test.js).
-- **Git remotes** — `origin` → `nirholas/three.ws` (canonical), `threeD` →
- `nirholas/3D-Agent` (push-only mirror). Per `/CLAUDE.md`, every push goes to BOTH.
-
-## Do this
-
-1. **Prove the bundle guard.** Read `check-api-not-bundled.mjs`. Confirm it runs in
- CI (guards job) and as a build gate. Before any large `api/` commit, run
- `node scripts/check-api-not-bundled.mjs` and `head -1` changed files for
- `__defProp`/`createRequire`; recover with `git restore -- api/ public/`. Add a
- `pre-commit`/local check note if not already enforced.
-2. **Run the deploy audit.** `npm run audit:deploy` — fix any symlink, peer-dep, or
- undeclared-import finding it reports. This is the gate that caught the 2026-06-11
- outage class; it must pass clean.
-3. **Cron registration sanity.** There is no validator that `vercel.json` crons map
- 1:1 to `api/cron/*` handlers (the counts differ because some handlers serve
- multiple schedules). Write/extend a script that, for every `crons[].path` in
- `vercel.json`, asserts a resolvable handler exists under `api/`, and flags any
- `api/cron/*` handler with no schedule. Wire it into the guards CI job.
-4. **Verify the build gates fire.** Run `npm run build:vercel` (or inspect phase 1)
- and confirm `audit:deploy`, `test:gate`, `verify:solana`, `verify:onchain`,
- `audit:mcp` all run and that RPC-dependent verifies degrade to warnings (never
- hard-fail) when an RPC is down — a flaky RPC must not block a deploy.
-5. **Dual-remote discipline.** Document and (where possible) script that every push
- goes to `origin` AND `threeD` in the same step; never force-push without explicit
- request; NEVER pull/fetch/merge from `threeD`. Surface an error if the two
- remotes' `main` diverge rather than silently leaving them out of sync.
-6. **Rollback runbook.** Document the fast rollback: `vercel rollback` (or promote a
- prior production deployment in the Vercel dashboard) plus `git revert` using a
- NEUTRAL commit message (never echo the reverted title, per `/CLAUDE.md`). Capture
- how to re-point both remotes after a revert.
-7. **Preview deploys.** Confirm preview/PR deployments are isolated from production
- data (no prod writes, no prod crons). If any preview can touch prod money/DB,
- gate it behind env separation.
-8. Run `npx vitest run tests/deploy-artifacts.test.js`, `npm run audit:deploy`, and
- `node scripts/check-api-not-bundled.mjs`. Add a `data/changelog.json` entry only
- if a user-visible surface changed (deploy hardening is usually internal); if so,
- `npm run build:pages`.
-
-## Must-not
-
-- Never commit a bundled `api/*.js` (esbuild markers in the first bytes) — guard + recover.
-- Never pull/fetch/merge from `threeD`; it is a push-only mirror. Push to BOTH remotes.
-- Never force-push to either remote without an explicit request.
-- Never let an RPC outage hard-block a deploy — verify steps degrade to warnings.
-- No mocks, stubs, or TODOs in the pipeline scripts. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `check-api-not-bundled.mjs` passes; documented recovery is `git restore -- api/ public/`.
-- [ ] `npm run audit:deploy` passes clean (no symlink/peer/undeclared-import findings).
-- [ ] A cron-sync check asserts every `vercel.json` cron has a handler (and flags orphans), wired into CI.
-- [ ] Build gates run and RPC-dependent verifies degrade to warnings when RPC is down.
-- [ ] Dual-remote push discipline is documented/scripted; divergence is surfaced, not hidden.
-- [ ] A fast rollback runbook exists (Vercel promote/rollback + neutral-message revert).
-- [ ] `deploy-artifacts` test passes; changelog updated only if user-visible.
diff --git a/prompts/production-1b/29-uptime-status-page.md b/prompts/production-1b/29-uptime-status-page.md
deleted file mode 100644
index 12d949612..000000000
--- a/prompts/production-1b/29-uptime-status-page.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# 29 — Uptime monitoring & public status page
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Trust is the currency of a money-moving platform. When something breaks, users and
-$THREE holders need a single honest place that tells them what's up, what's degraded,
-and that the team already knows — before they tweet. A polished public status page
-with real uptime history converts incidents from credibility losses into proof of
-operational maturity. And external monitoring is the smoke detector that pages the
-team even when the platform is too down to alert itself.
-
-## Mission
-
-Aggregate every health probe into one `/api/status` feed backing a public `/status`
-page with real 90-day uptime history, wire external (off-box) uptime monitoring, and
-ensure degradation pages the team via the existing ops-alert channel.
-
-## Map (trust but verify — files move)
-
-- **Public status page** — [pages/status.html](../../pages/status.html) — live
- dashboard, 90-day uptime bars, auto-polls `/api/status` every 5 min. Registered in
- [data/pages.json](../../data/pages.json) (`/status`, section "learn").
-- **Status feed** — `api/status.js` (powers the page; verify path under [api/](../../api)).
-- **Aggregate health** — [api/healthz.js](../../api/healthz.js) — probes Resend,
- x402 facilitator, SIWX payments table, bot heartbeat, alert watches.
-- **Forge health** — [api/_lib/forge-health.js](../../api/_lib/forge-health.js)
- (served via `GET /api/forge?health`) — probes generation backends + Redis + world.
-- **Admin probes** — [api/admin/redis-health.js](../../api/admin/redis-health.js),
- [api/admin/pump-cron-health.js](../../api/admin/pump-cron-health.js).
-- **Health crons** — [api/cron/world-health.js](../../api/cron/world-health.js),
- `api/cron/uptime-check.js`, [api/llm/health.js](../../api/llm/health.js).
-- **Ops alerts** — [api/_lib/alerts.js](../../api/_lib/alerts.js) — `sendOpsAlert()`,
- deduped + 20/hr ceiling (Telegram).
-- **Nav** — [public/nav-data.js](../../public/nav-data.js) (`NAV_GROUPS`, single
- source of truth for menu items), [public/nav.js](../../public/nav.js).
-- **Tests** — [tests/api/healthz.test.js](../../tests/api/healthz.test.js),
- [tests/api/forge-health.test.js](../../tests/api/forge-health.test.js).
-
-## Do this
-
-1. **Exercise what exists.** Open `/status` in a real browser (`npm run dev`) and
- hit `/api/status`. Confirm the page polls every 5 min, renders per-service dots,
- 90-day bars, and the "warming-up" first-deploy state. Note any probe missing.
-2. **Make the feed complete.** Ensure `/api/status` aggregates ALL subsystems:
- `healthz` (Resend/x402/DB/heartbeat/watches), `forge?health` (gen backends + Redis
- + world), redis-health, pump-cron-health, world-health, llm/health. Add any
- probe that the public page should reflect; admin-gated probes feed status via the
- server (the public response must never leak admin detail or secrets).
-3. **Real history, not synthetic.** Verify the 90-day uptime data is recorded from
- actual probe results (a cron writing samples to Redis/DB), not faked. If history
- storage is thin, persist each `uptime-check` result with a retention window so the
- bars reflect truth. No `setTimeout` fake data.
-4. **Every state designed.** Confirm `/status` has designed loading, warming-up
- (no history yet), all-operational, degraded, and down states — accessible,
- responsive at 320/768/1440, with hover/focus on interactive elements.
-5. **External monitoring.** Wire an off-box uptime monitor (e.g. an
- UptimeRobot/BetterStack/Checkly HTTP check, or a free cron-job.org ping) against
- `/api/healthz` and `/api/status` that pages the team independently of Vercel.
- Document the config and the alert destination. Do not invent a fake integration —
- set up a real one or document the exact steps + env to enable it.
-6. **Degradation pages the team.** Confirm the health crons call `sendOpsAlert` on
- degradation only (not every probe), respecting dedup + the 20/hr ceiling — no
- alert storms. Add alerting for any subsystem currently probed-but-silent.
-7. **Discoverability.** Add `/status` to `public/nav-data.js` (footer/utility group)
- and link it from error pages and the footer so users can find it when things break.
-8. Run `npx vitest run tests/api/healthz.test.js tests/api/forge-health.test.js`,
- exercise `/status` in the browser (no console errors), then add a
- `data/changelog.json` entry (status page improvements are user-visible) and
- `npm run build:pages`.
-
-## Must-not
-
-- Never expose admin-only health detail, internal URLs, or secrets in the public `/api/status`.
-- Never fake uptime history with `setTimeout` or hardcoded bars — record real samples.
-- Never let the public page flip top-level "operational" to red on a single flaky probe — debounce.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror).
-- No mocks, stubs, or TODOs. The only coin is `$THREE`.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/api/status` aggregates all subsystem probes; the public response leaks no admin detail/secrets.
-- [ ] `/status` renders real 90-day history from recorded samples; loading/warming/degraded/down states designed.
-- [ ] An external, off-box uptime monitor pings `/api/healthz` + `/api/status` and pages the team (real config documented).
-- [ ] Health crons alert via `sendOpsAlert` on degradation only, respecting dedup + ceiling.
-- [ ] `/status` is reachable from nav + footer + error pages; no console errors; responsive + accessible.
-- [ ] `healthz` and `forge-health` tests pass; changelog updated and `npm run build:pages` clean.
diff --git a/prompts/production-1b/30-load-stress-testing.md b/prompts/production-1b/30-load-stress-testing.md
deleted file mode 100644
index 139efd142..000000000
--- a/prompts/production-1b/30-load-stress-testing.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 30 — Load & stress testing
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The day a launch goes viral is the day you find out whether the platform holds. If
-the Forge GPU budget, the x402 verify path, or the public feeds buckle under a
-traffic spike — or worse, if a spike silently burns the entire monthly Redis command
-budget in a day — the moment you waited for becomes the outage that defines you. You
-cannot guess capacity at $1B; you measure it, find the breaking point on purpose in a
-safe lane, and prove the rate-limits and budgets hold before real users arrive.
-
-## Mission
-
-Identify the hottest and most-expensive endpoints, script realistic load tests
-(k6/artillery) against a non-production target, prove the rate-limits and Redis
-budget hold at their designed ceilings, find the breaking points, and document capacity.
-
-## Map (trust but verify — files move)
-
-- **Hottest endpoints** — [api/forge.js](../../api/forge.js) (text→3D, GPU-bound),
- [api/x402-checkout.js](../../api/x402-checkout.js) + [api/x402/forge.js](../../api/x402/forge.js)
- (payment prepare/verify), [api/feed.js](../../api/feed.js) +
- [api/feed-stream.js](../../api/feed-stream.js) + [api/trades/feed.js](../../api/trades/feed.js)
- (read-heavy, polled).
-- **Rate limiting** — [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js) — Upstash
- sliding-window (in-memory fallback for dev/tests); ~80+ named buckets; critical
- (money) buckets fail CLOSED, non-critical reads fail OPEN; `local: true` buckets
- never consume Redis. Key ceilings: `forge_paid_global_hourly` (600/h),
- `x402_verify_global_per_hour` (12000/h), `mcp3dGenerate` (30/h), `publicIp` (60/min).
-- **Redis budget** — [api/_lib/redis-usage.js](../../api/_lib/redis-usage.js) —
- `REDIS_MONTHLY_BUDGET = 500_000` (Upstash free tier), warn 80% / crit 90%; daily ≈16,667.
-- **x402 paid endpoint plumbing** — [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js).
-- **Existing smokes (not load tests)** — [scripts/onchain-smoke.mjs](../../scripts/onchain-smoke.mjs)
- (`npm run smoke:onchain`), [scripts/smoke-mcp-remotes.mjs](../../scripts/smoke-mcp-remotes.mjs)
- (`npm run smoke:mcp`), [scripts/smoke-api-endpoints.mjs](../../scripts/smoke-api-endpoints.mjs).
-- **Env** — [.env.example](../../.env.example) — `UPSTASH_REDIS_REST_URL/TOKEN`,
- `FORGE_PAID_GLOBAL_HOURLY`, `X402_VERIFY_GLOBAL_PER_HOUR` overrides.
-
-> No load-test tooling exists yet — this is net-new. Add it under `scripts/` (or a
-> new `loadtest/` dir) and an npm script; do not pollute the repo root.
-
-## Do this
-
-1. **Rank by cost and heat.** From the map, classify endpoints into GPU-bound
- (forge), money-path (x402 checkout/verify), and read-heavy (feeds, status,
- marketplace). Read `rate-limit.js` to record the exact ceiling for each so tests
- target the designed limit, not an arbitrary number.
-2. **Pick the tool, add it cleanly.** Adopt k6 (preferred) or artillery as a
- dev/CI dependency. Create `loadtest/` (or `scripts/load/`) with one script per
- class: `forge.js`, `x402.js`, `feeds.js`. No scratch files in the repo root.
-3. **Target a safe environment.** Run against a preview/staging deploy or a local
- `npm run dev`, NEVER production money paths. For x402, drive the 402 price-discovery
- and verify amplification path with synthetic/declined payments — never settle real
- funds, never use a non-`$THREE` mint.
-4. **Prove the limiters hold.** Push each endpoint to and past its bucket ceiling;
- assert that critical money buckets fail CLOSED (reject, not melt) and read buckets
- fail OPEN/degrade. Confirm 429s are returned with correct `Retry-After`-style copy
- and no 5xx storms.
-5. **Watch the Redis budget.** While a feeds/status load test runs, sample
- `redis-usage.js` accounting. Confirm high-frequency cheap reads use `local: true`
- buckets (per the June-2026 quota-burn incident) so a spike does not torch the
- 500k/month budget. Flag any hot read that hits Redis on every request.
-6. **Find the breaking point.** Ramp concurrency until p95 latency or error rate
- crosses an SLO (define one, e.g. p95 < 1s for reads, generation queue bounded).
- Record the knee of the curve per endpoint — that is your capacity number.
-7. **Verify autoscaling/queueing holds.** Confirm forge's global hourly circuit
- breaker queues/sheds rather than overrunning the shared GPU budget, and that
- serverless concurrency limits don't cascade into timeouts on dependent calls.
-8. Document results: per-endpoint ceiling, observed p50/p95, breaking point, Redis
- cost/request, and recommended limits in a `loadtest/README.md`. Run
- `node scripts/smoke-api-endpoints.mjs` (or `npm run smoke:onchain`) as a sanity
- pass against the safe target. Add a
- `data/changelog.json` entry only if a user-visible limit/behavior changed; `npm run build:pages`.
-
-## Must-not
-
-- Never load-test production money paths or settle real funds; use staging + synthetic payments.
-- Never use a non-`$THREE` mint in any test fixture or payload.
-- Never leave load scripts or result files in the repo root — `loadtest/` or `scripts/`, gitignore artifacts.
-- Do not weaken a working rate-limit just to "pass" a test — the limit is the answer.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Endpoints ranked by cost/heat with each target's exact rate-limit ceiling recorded.
-- [ ] k6/artillery scripts exist for forge, x402, and feeds, run against staging/local (never prod).
-- [ ] At ceiling: critical buckets fail CLOSED, read buckets degrade; 429s correct, no 5xx storms.
-- [ ] Redis budget is not torched by a read spike; high-frequency reads use `local` buckets.
-- [ ] Breaking point (knee) documented per endpoint against a stated SLO.
-- [ ] `loadtest/README.md` records capacity numbers + recommended limits; no artifacts committed.
-- [ ] A smoke pass succeeds; changelog updated only if user-visible.
diff --git a/prompts/production-1b/31-solana-rpc-onchain-resilience.md b/prompts/production-1b/31-solana-rpc-onchain-resilience.md
deleted file mode 100644
index 3f019fff3..000000000
--- a/prompts/production-1b/31-solana-rpc-onchain-resilience.md
+++ /dev/null
@@ -1,97 +0,0 @@
-# 31 — Solana RPC & on-chain resilience
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Solana is the platform default network — launches, trades, payments, skill licenses,
-and $THREE all live on-chain. A single RPC provider throttling or going down must not
-take the platform with it, and a charge must never settle twice or charge-then-silently-revert.
-On-chain money is unforgiving: at $1B, RPC failover, idempotent settlement, and
-provable address parity are the difference between a graceful degrade and an
-irreversible loss of funds or trust.
-
-## Mission
-
-Guarantee RPC failover/retry across providers, idempotent on-chain operations,
-revert-safe confirmations, verified address/program parity, and graceful degradation
-(cached/null reads, clear UI) when RPC is impaired — never a charge into the void.
-
-## Map (trust but verify — files move)
-
-- **RPC connection (canonical)** — [api/_lib/solana/connection.js](../../api/_lib/solana/connection.js) —
- `solanaConnection()` (transparent failover), `solanaRpcEndpoints()` (priority chain:
- caller url → `SOLANA_RPC_URL` → Helius → Alchemy → dRPC → Ankr → operator fallbacks →
- PublicNode/Leo/Tatum keyless → public mainnet-beta last), `makeRotatingFetch()` with
- per-endpoint quota cooldown + body validation.
-- **RPC fallback class** — [api/_lib/solana/rpc-fallback.js](../../api/_lib/solana/rpc-fallback.js)
- — `RpcFallback` (3 consecutive fails → rotate, 60s cooldown), `rpcFallbackFromEnv()`.
-- **Resilience (cockatiel)** — [api/_lib/resilience.js](../../api/_lib/resilience.js) —
- `withBreaker(name, fn, opts)`, `isCircuitError()` (ConsecutiveBreaker, 5 fails, 30s half-open).
-- **SDK bridge (graceful null)** — [api/_lib/solana/sdk-bridge.js](../../api/_lib/solana/sdk-bridge.js)
- — pump SDK reads return `null` on transient RPC errors instead of throwing.
-- **Confirm guard** — [api/_lib/solana/confirm.js](../../api/_lib/solana/confirm.js) —
- `confirmOrThrow()` throws on reverted tx (catches silent `result.value.err`).
-- **Idempotency** — [api/_lib/x402/idempotency-cache.js](../../api/_lib/x402/idempotency-cache.js),
- [api/_lib/migrations/20260504140000_create_payment_intents.sql](../../api/_lib/migrations/20260504140000_create_payment_intents.sql),
- [api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql](../../api/_lib/migrations/20260603120000_payment_intents_tx_hash_unique.sql).
-- **Parity/smoke** — [scripts/verify-solana-parity.mjs](../../scripts/verify-solana-parity.mjs)
- (`verify:solana`), [scripts/verify-onchain-parity.mjs](../../scripts/verify-onchain-parity.mjs)
- (`verify:onchain`), [scripts/onchain-smoke.mjs](../../scripts/onchain-smoke.mjs) (`smoke:onchain`).
-- **Tests** — [tests/solana-rpc-rotating-fetch.test.js](../../tests/solana-rpc-rotating-fetch.test.js),
- [tests/api/solana-rpc-endpoints.test.js](../../tests/api/solana-rpc-endpoints.test.js),
- [tests/solana-confirm.test.js](../../tests/solana-confirm.test.js).
-
-## Do this
-
-1. **Audit every RPC entry point.** Grep for `new Connection(` / direct RPC URL use
- across `api/` and `workers/`. Every Solana read/write must go through
- `solanaConnection()` (or `RpcFallback`) so it inherits failover — never a single
- hardcoded provider. Fix any that bypass the helper.
-2. **Wrap expensive/external calls in a breaker.** For aggregations and third-party
- reads (price, graduation progress, oracle attestations), wrap in `withBreaker`
- from `resilience.js` so a sick provider trips the circuit instead of hammering it.
- Reads use the connection's native rotation; the breaker guards the outer call.
-3. **Validate rotating-fetch never leaks bad bodies.** Confirm (per the existing
- regression test) that `makeRotatingFetch` rejects `[]`, HTML, truncated JSON, and
- missing `result/error` rather than handing them to web3.js. Add cover for any new
- provider added to the chain.
-4. **Idempotent on-chain ops.** Verify every settle/mint/trade path is keyed by an
- idempotency token (intent_id / payment id / tx_hash) backed by the unique
- constraint + `idempotency-cache`. The same id + same payload must replay the
- cached result with NO second on-chain action; same id + different payload → 409.
-5. **Revert-safe confirmations.** Confirm money paths use `confirmOrThrow()` so a tx
- whose revert lands in `result.value.err` is treated as a failure (refund/retry),
- never charged-and-forgotten. Add cover for any path confirming manually.
-6. **Graceful degradation.** When all RPC endpoints are exhausted, reads should
- return cached/`null` and the UI should show "live data unavailable, retrying"
- (designed, not a dead spinner) — never a raw RPC error and never a partial write.
- Verify writes abort cleanly (no half-settled state) when RPC is down mid-op.
-7. **Prove parity + liveness.** Run `npm run verify:solana` and `npm run verify:onchain`;
- they must confirm the $THREE mint + program IDs match canonical and degrade to a
- warning (not hard-fail) when RPC is unreachable. Run `npm run smoke:onchain` against
- a safe target.
-8. Run `npx vitest run tests/solana-rpc-rotating-fetch.test.js
- tests/api/solana-rpc-endpoints.test.js tests/solana-confirm.test.js`. Add a
- `data/changelog.json` entry only if a user-visible behavior changed (e.g. a new
- degraded-state message); then `npm run build:pages`.
-
-## Must-not
-
-- Never instantiate a raw single-provider `Connection` on a money path — use the failover helper.
-- Never let a charge settle without an idempotency key + revert-safe confirmation.
-- Never surface a raw RPC/provider error to the user — degrade with designed copy.
-- Never hardcode or recommend any non-`$THREE` mint; parity is checked against the $THREE CA.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every Solana entry point uses the failover connection/`RpcFallback`; no bypassing raw `new Connection`.
-- [ ] Expensive/third-party reads are guarded by `withBreaker`; rotating-fetch rejects malformed bodies.
-- [ ] Settle/mint/trade are idempotent (id + unique constraint + cache); same id never double-acts.
-- [ ] Money paths confirm via `confirmOrThrow`; reverts become failures, never silent charges.
-- [ ] RPC-down degrades to cached/null reads with designed UI; writes abort cleanly with no half-state.
-- [ ] `verify:solana` + `verify:onchain` pass (warn, not fail, when RPC down); `smoke:onchain` green.
-- [ ] RPC/confirm/endpoint tests pass; changelog updated only if user-visible.
diff --git a/prompts/production-1b/32-caching-cdn-r2.md b/prompts/production-1b/32-caching-cdn-r2.md
deleted file mode 100644
index 545437aea..000000000
--- a/prompts/production-1b/32-caching-cdn-r2.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 32 — Caching, CDN & R2 asset strategy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-3D is heavy: GLBs, textures, animations, and HDRs are megabytes each, and every
-uncached fetch is latency the user feels and bandwidth the platform pays for. At $1B
-scale, correct `Cache-Control` + CDN edge caching turns a slow viewer into an instant
-one and cuts origin egress dramatically. Meanwhile the 500k/month Upstash command
-budget means a single hot read that hits Redis on every request can torch the entire
-budget in days — so caching is also a cost-survival discipline, not just speed.
-
-## Mission
-
-Ensure static + GLB/3D assets carry correct immutable/long-cache headers, R2 has CORS
-+ a lifecycle for orphaned assets, expensive reads are Redis-cached within budget with
-stampede protection, and CDN edge caching is used wherever the data allows.
-
-## Map (trust but verify — files move)
-
-- **Cache headers** — [vercel.json](../../vercel.json) `headers` — existing rules:
- versioned `agent-3d` → `max-age=31536000, immutable`; `/avatars/*.glb` &
- `/animations/*` → `max-age=604800, stale-while-revalidate=2592000`; `/assets/*` →
- immutable; generic media regex covers `glb|gltf|hdr|exr|ktx2|basis|bin|woff2|…`.
-- **R2 client** — [api/_lib/r2.js](../../api/_lib/r2.js) — S3-compatible (AWS SDK v3):
- `putObject`, `getObject`, `deleteObject`, `headObject`, `copyObject`, presigned
- up/download, `publicUrl(key)`. Env: `S3_ENDPOINT/ACCESS_KEY_ID/SECRET_ACCESS_KEY/BUCKET/PUBLIC_DOMAIN`.
-- **R2 CORS** — [scripts/set-r2-cors.mjs](../../scripts/set-r2-cors.mjs) (`npm run apply:r2-cors`)
- — `public-read` (GET/HEAD) + `browser-upload` (PUT) rules with three.ws/preview/codespace/localhost origins.
-- **Redis cache primitives** — [api/_lib/cache.js](../../api/_lib/cache.js) —
- `cacheGet/cacheSet/cacheWrap` (TTL), 2s in-process memo, single-flight in-flight
- coalescing, `acquireLock` distributed lock for expensive recompute.
-- **Redis budget** — [api/_lib/redis-usage.js](../../api/_lib/redis-usage.js) —
- `REDIS_MONTHLY_BUDGET = 500_000`, warn 80% / crit 90%; [api/admin/redis-health.js](../../api/admin/redis-health.js).
-- **Generated GLB storage** — [api/_lib/forge-store.js](../../api/_lib/forge-store.js),
- [api/_lib/reconstruct-finalize.js](../../api/_lib/reconstruct-finalize.js) (put to R2 → `publicUrl`).
-- **Tests** — [tests/api/forge-cache-headers.test.js](../../tests/api/forge-cache-headers.test.js),
- [tests/http-cache-control.test.js](../../tests/http-cache-control.test.js),
- [tests/api/redis-usage.test.js](../../tests/api/redis-usage.test.js),
- [tests/api/skill-price-cache.test.js](../../tests/api/skill-price-cache.test.js).
-
-## Do this
-
-1. **Audit asset cache coverage.** For every static + 3D asset type served (GLB,
- GLTF, HDR, EXR, KTX2, BASIS, BIN, fonts, images, versioned JS), confirm a
- `Cache-Control` rule in `vercel.json` matches it. Content-addressed/versioned
- assets get `max-age=31536000, immutable`; mutable-but-cacheable assets get a long
- `max-age` + `stale-while-revalidate`. Fill any gap the audit finds.
-2. **Never long-cache mutable HTML/API.** Verify HTML pages and `api/*` responses
- default to `no-store` (via `http.js`) unless a route is explicitly safe to edge-cache;
- long-caching a stale dashboard or balance is a correctness bug. Add `s-maxage` +
- `stale-while-revalidate` only to read endpoints whose data tolerates it (e.g. feeds, changelog).
-3. **R2 CORS is current.** Run `npm run apply:r2-cors` and confirm the allowed origins
- cover prod, `*.vercel.app` previews, codespaces, and localhost, with `ETag`/`Accept-Ranges`
- exposed for range requests (GLB streaming). Add any missing origin idempotently.
-4. **R2 lifecycle for orphans.** There is no object lifecycle today — generated GLBs
- accumulate forever. Add a lifecycle/cleanup path: either an R2 lifecycle rule for a
- `tmp/`/`scratch/` prefix, or a cron that deletes orphaned/unreferenced objects
- (cross-checked against the DB so nothing live is removed). Never delete a referenced asset.
-5. **Cache expensive reads within budget.** Identify hot, expensive reads (on-chain
- scans, snapshots, price/market aggregates). Wrap them in `cacheWrap` with a sane
- TTL. Confirm high-frequency cheap reads use `local`/in-process memo (not a Redis
- GET per request) so the 500k/month budget survives a spike.
-6. **Stampede protection on cold cache.** For any expensive recompute, use
- `acquireLock` so a traffic spike against a cold key fans out into ONE recompute
- platform-wide, not N. Verify the in-flight GET coalescing path works under
- concurrent reads.
-7. **CDN edge caching.** Ensure cacheable read endpoints set `s-maxage` so Vercel's
- edge serves them without hitting the function/origin, and that GLBs are served from
- the R2 public CDN domain (not proxied through a function). Watch `redis-health` /
- `redis-usage` while exercising to confirm budget headroom.
-8. Run `npx vitest run tests/api/forge-cache-headers.test.js tests/http-cache-control.test.js
- tests/api/redis-usage.test.js tests/api/skill-price-cache.test.js`. Verify headers
- live in the browser Network tab (`npm run dev`). Add a `data/changelog.json` entry
- if a user-visible perf change shipped; `npm run build:pages`.
-
-## Must-not
-
-- Never apply `immutable`/long `max-age` to mutable HTML, dashboards, balances, or `api/*` writes.
-- Never delete an R2 object that is still referenced — cross-check the DB before any lifecycle delete.
-- Never add a hot read that issues a Redis command per request without memo/local bucketing — respect the 500k budget.
-- Do not pull/fetch/merge from the `threeD` remote (push-only mirror). No mocks/stubs/TODOs.
-- The only coin is `$THREE` — no other token in any cache key, fixture, or copy.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every static + 3D asset type has a correct `Cache-Control` rule (immutable for versioned, SWR for mutable).
-- [ ] HTML/API stay `no-store` except explicitly edge-cacheable reads with `s-maxage` + SWR.
-- [ ] `apply:r2-cors` run; CORS covers prod/preview/codespace/localhost with range headers exposed.
-- [ ] An R2 lifecycle/cleanup removes orphaned assets only, cross-checked against the DB.
-- [ ] Expensive reads use `cacheWrap`; hot cheap reads avoid per-request Redis; budget headroom confirmed.
-- [ ] Stampede protection (lock + in-flight coalescing) verified on a cold expensive key.
-- [ ] Cache-header tests pass; headers verified in the browser; changelog updated if user-visible.
diff --git a/prompts/production-1b/33-onboarding-activation.md b/prompts/production-1b/33-onboarding-activation.md
deleted file mode 100644
index f9e445e8a..000000000
--- a/prompts/production-1b/33-onboarding-activation.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 33 — Onboarding & activation funnel
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Activation — a new visitor reaching their first "aha" — is the single biggest lever
-on growth. Every dollar of acquisition is wasted if a first-timer can't make
-something real in the first minute. three.ws already has the pieces (welcome modal,
-"Getting started 0/3" checklist, a "What is three.ws" page, an 88-stop guided 3D
-tour), but they must compose into one coherent path with a clear, fast first win and
-honest measurement, or the funnel leaks at the top.
-
-## Mission
-
-Turn the first-run experience into a single, polished path that gets a brand-new
-visitor from "what is this?" to "I made a 3D thing" in about 60 seconds, with every
-step instrumented so activation is measurable.
-
-## Map (trust but verify — files move)
-
-- **Getting-started checklist + welcome modal** — [public/getting-started.js](../../public/getting-started.js)
- (the `STEPS` array: core `create → brain → embed`, optional `onchain → monetize`;
- renders the bottom-right "Getting started N/3" pill), [public/getting-started.css](../../public/getting-started.css).
-- **In-product feature discovery** — [public/feature-discovery.js](../../public/feature-discovery.js)
- ("Have you tried…", `tws:feature-done` "what's next" cards), [public/feature-discovery.css](../../public/feature-discovery.css).
-- **Intro / explainer pages** — [pages/what-is.html](../../pages/what-is.html) (`/what-is`),
- [pages/start.html](../../pages/start.html) (`/start`).
-- **Guided 3D tour** — [src/feature-tour/director.js](../../src/feature-tour/director.js),
- [src/feature-tour/curriculum.js](../../src/feature-tour/curriculum.js),
- [public/tour/curriculum.json](../../public/tour/curriculum.json) (built by
- `scripts/build-tour.mjs`); tour page is `/tour`.
-- **First "aha" surfaces** — [pages/forge.html](../../pages/forge.html) +
- [src/forge.js](../../src/forge.js) (free NVIDIA NIM text→3D), `/create` and
- [src/create-prompt.js](../../src/create-prompt.js) (text→avatar). The free lanes
- need no wallet.
-- **Analytics taxonomy** — [src/analytics.js](../../src/analytics.js)
- (`FUNNELS.activation`: `landing_viewed → wallet_connect_started →
- wallet_connect_succeeded → agent_created`), [src/acquisition-analytics.js](../../src/acquisition-analytics.js).
-
-## Do this
-
-1. **Walk the real funnel in a browser** (`npm run dev`): open `/` in a fresh
- incognito profile (clear `localStorage`), follow the welcome modal → `/create` →
- finish a free generation. Time it. Note every dead-end, dead click, or moment of
- confusion. The free core path must never demand a wallet.
-2. **Make the first win the default.** The fastest aha is the free NIM text→3D /
- text→avatar lane — ensure the welcome modal and `/start` route there first, with a
- one-line prompt suggestion so a blank composer never stalls a first-timer.
-3. **Unify the three entry points** so they tell one story: the welcome modal
- (`getting-started.js`), `/what-is`, and `/tour`. Cross-link them; remove
- contradictory copy; ensure the "Getting started N/3" pill resumes correctly across
- pages and reflects real milestones (verify the `done()` route matchers in `STEPS`
- still point at live routes via `vercel.json`).
-4. **Instrument activation honestly.** Confirm `AGENT_CREATED` / first-generation and
- each checklist `complete()` fire `track()` events through `src/analytics.js`
- (extend `FUNNELS.activation` or `ANALYTICS_EVENTS` if a step in the real path isn't
- covered — keep names in the existing taxonomy, never invent ad-hoc strings). No raw
- wallet addresses or PII as props (use `shortWallet()`).
-5. **Design every onboarding state:** welcome modal has focus trap + Escape + "Maybe
- later" (verify), the checklist has an empty/first-run state and a celebratory
- complete state, and `tws:feature-done` "what's next" cards point only at confirmed
- live routes.
-6. **Reduce time-to-value.** Cut any step that isn't required for the first win;
- defer wallet/on-chain prompts until after the user has made something. Lazy-load
- the heavy tour director so it never delays the homepage LCP.
-7. **Verify resume + opt-out.** `data-getting-started="off"`, "Hide this", and the
- immersive-route exclusions must all work; progress persists across reloads and
- pages; the tour rehydrates from `sessionStorage` mid-flow.
-8. **Run tests + changelog.** `npx vitest run` for any touched module and the tour
- build (`node scripts/build-tour.mjs` stays clean). Add a `data/changelog.json`
- entry for the user-visible onboarding improvement and run `npm run build:pages`.
-
-## Must-not
-
-- Do not gate the free core path behind a wallet, sign-up, or payment — the first aha
- must be free.
-- Do not ship a fake progress bar or `setTimeout` "loading"; generation progress comes
- from real API responses only.
-- Do not send PII (raw wallets, emails) to analytics; route through the taxonomy in
- `src/analytics.js` and truncate with `shortWallet()`.
-- Do not reference any coin other than `$THREE`; the optional "monetize" step settles
- in `$THREE` only.
-- Do not break the existing resume/opt-out behavior or double-mount the guide
- (`window.__twsGuide` idempotency).
-
-## Acceptance (all true before claiming done)
-
-- [ ] A fresh incognito visitor reaches a finished free 3D creation in ≤60s with no
- wallet and no console errors/warnings.
-- [ ] Welcome modal, `/what-is`, and `/tour` tell one consistent story and cross-link;
- every CTA target is a live route.
-- [ ] "Getting started N/3" pill resumes across pages, reflects real milestones, and
- has designed first-run + complete states.
-- [ ] Each activation step fires a taxonomy event via `src/analytics.js` with no PII;
- `FUNNELS.activation` reflects the real path.
-- [ ] Opt-out (`data-getting-started="off"`, "Hide this", immersive exclusions) and
- tour mid-flow rehydration all work.
-- [ ] Touched tests pass, `scripts/build-tour.mjs` is clean, and the changelog entry
- is added with `npm run build:pages` clean.
diff --git a/prompts/production-1b/34-home-landing-conversion.md b/prompts/production-1b/34-home-landing-conversion.md
deleted file mode 100644
index 10c18cf5e..000000000
--- a/prompts/production-1b/34-home-landing-conversion.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# 34 — Home / landing conversion
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-The homepage is where ad spend, press, and word-of-mouth all land. A first-time
-visitor decides in about 5 seconds whether to stay. If the hero doesn't instantly
-communicate "give your AI a body" and offer an obvious, fast next action, the
-acquisition funnel dies before activation (prompt 33) even begins. A clear,
-fast-loading, mobile-first, socially-proven landing page is the cheapest growth lever
-the platform has.
-
-## Mission
-
-Make the home page make a cold visitor understand the product in 5 seconds and act:
-sharp hero, one above-the-fold primary CTA, a live demo they can touch, credible
-social proof, benefit-led copy, fast LCP, and flawless mobile.
-
-## Map (trust but verify — files move)
-
-- **Home page** — [pages/home.html](../../pages/home.html) (`/`). Hero h1 currently
- "The 3D agent layer of the internet." with bullets Create/Embed/Earn and the
- `.hero-cta-row` (`/create`, `/forge`, `#embed`, `/tour`). All inline `<style>` +
- `<script type="module">`.
-- **Live demo embeds** — [src/home-forge.js](../../src/home-forge.js) (mini Forge:
- real `/api/forge` text→3D in-page), [src/forge-showcase.js](../../src/forge-showcase.js)
- ("Fresh from the Forge" community feed), [src/home-live-token.js](../../src/home-live-token.js)
- (live $THREE price), [src/api-playground.js](../../src/api-playground.js) and the
- `<agent-3d>` web component embed (`agent-3d/latest/agent-3d.js`).
-- **Social proof / press strip** — the `.press-row` block in
- [pages/home.html](../../pages/home.html) (Anthropic, Coinbase, IBM, AWS, Google
- Cloud, Alibaba Cloud, Solana, CoinMarketCap, CoinGecko, HackerNoon) with SVGs in
- [public/featured-logos/](../../public/featured-logos).
-- **CTA + funnel instrumentation** — `data-cta` / `data-cta-loc` attributes on every
- CTA, consumed by [src/acquisition-analytics.js](../../src/acquisition-analytics.js)
- → [src/analytics.js](../../src/analytics.js) (`CTA_CLICKED`, `LANDING_VIEWED`).
-- **Performance budget** — Core Web Vitals work lives in
- `prompts/production-1b/11-*`; SEO/structured data in `prompts/production-1b/12-*`.
-
-## Do this
-
-1. **Open `/` cold on mobile and desktop** (`npm run dev`; emulate 320 / 768 / 1440).
- Read the hero as a stranger: in 5 seconds, is it obvious this turns your AI into an
- embeddable 3D avatar? Sharpen the h1/sub/bullets toward the plain promise ("give
- your AI a body" — make a 3D agent, embed it anywhere) without losing the existing
- voice or the i18n `data-i18n-*` hooks.
-2. **One unmistakable primary CTA above the fold.** The hero has four buttons; keep
- the primary "Build your agent" visually dominant and make the rest clearly
- secondary so the eye has one path. Verify each `href` resolves in `vercel.json` and
- carries `data-cta`/`data-cta-loc`.
-3. **Prove it with a live demo, not a screenshot.** Confirm the mini-Forge
- (`home-forge.js`) and the `<agent-3d>` embed actually run real generations / render
- live on load, with real elapsed time and designed loading/empty/error states (no
- `setTimeout` fakery). The showcase strip hides itself when empty — verify it never
- shows a hollow row.
-4. **Make social proof credible and honest.** Keep the press/partner strip truthful
- (only real, linkable mentions — the SVGs in `public/featured-logos/`); ensure logos
- are lazy, accessible (alt/label), and don't push down the hero. Do not invent or
- overstate any endorsement.
-5. **Fast LCP.** The hero text/CTA must be the LCP and must not wait on the 3D embed
- or model-viewer scripts — defer/lazy-load heavy modules (tour director, model
- viewer, showcase) below the fold. Preload the hero font/critical CSS only. Confirm
- no layout shift from late-loading logos or demos.
-6. **Mobile is first-class.** At 320px the hero, CTA, and one demo must be usable
- without horizontal scroll; the CTA stays reachable (sticky or repeated near the
- fold). Touch targets ≥44px; the press strip wraps, never overflows.
-7. **Wire the funnel.** Every CTA fires `CTA_CLICKED` with `cta`/`location`; the page
- fires `LANDING_VIEWED` once with referrer + UTM (already in
- `acquisition-analytics.js`) — verify it loads on `/` and no PII leaks.
-8. **Verify + changelog.** Lighthouse the page locally (LCP, CLS), run touched tests
- (`npx vitest run`), add a `data/changelog.json` entry for the conversion
- improvement, and run `npm run build:pages`.
-
-## Must-not
-
-- Do not invent press/partner logos or overstate endorsements — only real, linkable
- mentions; this is a trust surface, not a dark pattern.
-- Do not block LCP on the 3D embed, model-viewer, or any third-party script.
-- Do not ship a fake/looping demo or a `setTimeout` progress bar — the demo is the
- real pipeline or it is not shown.
-- Do not reference any coin other than `$THREE` (the live token widget is $THREE only).
-- Do not strip `data-i18n-*`, `data-cta`, or accessibility attributes from existing
- elements.
-
-## Acceptance (all true before claiming done)
-
-- [ ] A cold visitor understands "give your AI a body" in ≤5s; one dominant
- above-the-fold CTA; all CTA `href`s resolve.
-- [ ] The live demo runs the real pipeline on load with designed loading/empty/error
- states; the showcase never shows a hollow row.
-- [ ] Press/partner proof is truthful, accessible, lazy, and does not push the hero
- below the fold.
-- [ ] LCP is the hero (not the 3D embed); no CLS from late logos/demos; verified in
- Lighthouse locally.
-- [ ] Usable at 320 / 768 / 1440 with no horizontal scroll and ≥44px touch targets.
-- [ ] `LANDING_VIEWED` + every `CTA_CLICKED` fire with no PII; no console
- errors/warnings.
-- [ ] Touched tests pass; changelog entry added and `npm run build:pages` clean.
diff --git a/prompts/production-1b/35-pricing-monetization.md b/prompts/production-1b/35-pricing-monetization.md
deleted file mode 100644
index 575cb8bde..000000000
--- a/prompts/production-1b/35-pricing-monetization.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# 35 — Pricing & monetization surfaces
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Revenue is the proof a platform is worth $1B. A visitor must understand what's free,
-what costs, and exactly what they get for the money — in seconds, with no surprise
-charges. three.ws monetizes two ways: a public pricing page (Free + paid generation)
-and per-call x402 micropayments priced from a single catalog. If costs are opaque,
-inconsistent across surfaces, or ever leak a vendor's billing internals, trust and
-conversion both collapse.
-
-## Mission
-
-Make pricing and monetization clear, consistent, and value-aligned everywhere: one
-source-of-truth catalog driving the pricing page, the x402 pay-per-call flow, and the
-`/pay` surface, with transparent costs, honest upgrade paths, and zero vendor billing
-exposure.
-
-## Map (trust but verify — files move)
-
-- **Pricing catalog (source of truth)** — [api/_lib/pricing/catalog.js](../../api/_lib/pricing/catalog.js)
- (`CATALOG`, `publicCatalog()`, `priceForAction()`, `catalogEntry()`; prices in USD,
- settled in `$THREE`; Forge tier prices READ from `forge-tiers.js`, not duplicated),
- [api/_lib/pricing/charge-three.js](../../api/_lib/pricing/charge-three.js),
- [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js) (free draft tier on NVIDIA NIM).
-- **Public pricing page** — [pages/pricing.html](../../pages/pricing.html) (`/pricing`),
- [public/pricing.css](../../public/pricing.css). Has a Free tier ("$0/forever, no
- credit card") + paid tiers in `#pricing-tiers`.
-- **x402 pay surfaces** — [public/pay/index.html](../../public/pay/index.html) (`/pay`),
- [public/pay/calls/index.html](../../public/pay/calls), [public/pay/c/index.html](../../public/pay/c),
- the buyer-side checkout endpoint [api/x402-checkout.js](../../api/x402-checkout.js)
- (the `/pay` modal POSTs `/x402-checkout?action=prepare|encode`),
- [public/x402-pay-core.js](../../public/x402-pay-core.js), [public/x402.js](../../public/x402.js).
-- **Paid endpoints (catalog consumers)** — [api/x402/](../../api/x402) (e.g.
- `forge.js`, `skill-call.js`, `service.js`, `mint-to-mesh.js`),
- [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js),
- [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js).
-- **Conversion instrumentation** — [src/analytics.js](../../src/analytics.js)
- (`token_*` and CTA events). Trading/PnL disclaimers live with the market surfaces.
-
-## Do this
-
-1. **Map every price to the catalog.** Confirm `pages/pricing.html` and every `/pay`
- surface read from `api/_lib/pricing/catalog.js` (or `publicCatalog()` over an
- endpoint) — no hardcoded dollar amounts duplicated in HTML/JS that can drift from
- the catalog. Where a number is hardcoded today, wire it to the catalog or document
- why it's a fixed marketing figure.
-2. **Walk the buyer flow in a browser** (`npm run dev`): `/pricing`, then a real
- per-call purchase via the `/pay` modal (`x402-checkout`). Confirm the quote is
- shown in USD with the `$THREE` settle amount, costs are explicit before signing,
- and the success/receipt state is clear (link to `my-receipts`).
-3. **Never expose vendor billing.** Audit every error path in the pay/x402 chain: a
- provider quota/credit/billing message, raw 402/429/5xx body, or vendor URL must be
- masked to neutral, actionable copy ("Payment couldn't complete — try again");
- server logs keep the detail. This is a hard `/CLAUDE.md` rule.
-4. **Value-metric alignment.** Make the unit of charge obvious and tied to value
- delivered (per generation / per call / per tier), not opaque "credits" with no
- anchor. If a credits model is shown, it must convert transparently to the same
- catalog prices.
-5. **Design every state on the pay surfaces:** loading (quote fetching), empty (no
- wallet connected → connect path), error (masked, retryable), and success
- (receipt). The free tier must be clearly the default with no card required.
-6. **Honest upgrade paths.** From the free Forge draft, the path to Standard/High (and
- from a free agent to monetizing it) must be discoverable and benefit-led, never a
- nag or a forced wall in front of the free aha. No dark patterns (no fake scarcity,
- no pre-checked add-ons, no hidden recurring charges).
-7. **Instrument conversion.** Fire the existing `token_*` / CTA taxonomy events
- through `src/analytics.js` on pricing views, buy intent, quote shown, and settle —
- no raw wallet/PII (use `shortWallet()`).
-8. **Test + changelog.** Run the pricing/x402 tests (`npx vitest run` over
- `tests/**/x402*`, `tests/**/pricing*`, `tests/**/forge-tiers*` as present), add a
- `data/changelog.json` entry for any user-visible pricing change, and run
- `npm run build:pages`.
-
-## Must-not
-
-- Do not surface any third party's billing page, credit balance, quota text, or raw
- error to a buyer — mask to neutral copy, log detail server-side.
-- Do not duplicate prices: the catalog (`api/_lib/pricing/catalog.js`) is the single
- source of truth; surfaces read from it.
-- Do not use dark patterns — no fake scarcity/countdowns, pre-checked upsells, hidden
- recurring charges, or a wall in front of the free aha.
-- Do not reference, price, or settle in any coin other than `$THREE` (USD is the quote
- unit; `$THREE` is the settle unit).
-- Do not show a trading/PnL/market figure without the required disclaimer.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `/pricing` and every `/pay` surface read prices from the catalog; no drifting
- hardcoded amounts.
-- [ ] A real per-call purchase completes in-browser with USD quote + `$THREE` settle
- shown before signing and a clear receipt after.
-- [ ] Every pay/x402 failure mode yields neutral, actionable copy — no vendor billing
- internals — verified by tests.
-- [ ] Free tier is the obvious default (no card); upgrade paths are benefit-led with
- no dark patterns.
-- [ ] Loading/empty/error/success states designed on the pay surfaces; no console
- errors/warnings.
-- [ ] Conversion events fire through the taxonomy with no PII.
-- [ ] Pricing/x402 tests pass; changelog entry added and `npm run build:pages` clean.
diff --git a/prompts/production-1b/36-growth-analytics.md b/prompts/production-1b/36-growth-analytics.md
deleted file mode 100644
index ddc63fa50..000000000
--- a/prompts/production-1b/36-growth-analytics.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# 36 — Growth analytics instrumentation
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-You cannot grow what you cannot measure. To scale acquisition, activation, and
-retention deliberately, every meaningful step in the funnel must emit a clean,
-consistently-named event — and never leak PII, or the platform becomes a privacy
-liability instead of a $1B business. three.ws already has the spine (PostHog +
-Vercel Web Analytics injected by Vite, a typed event taxonomy in `src/analytics.js`,
-a first-party error reporter). The job is to complete coverage across the full funnel
-without drift and without leaking.
-
-## Mission
-
-Complete privacy-respecting, consistently-taxonomied event instrumentation across the
-activation → conversion → retention funnels, with dashboards/funnels that line up and
-zero PII in any event.
-
-## Map (trust but verify — files move)
-
-- **Event taxonomy + facade (source of truth)** — [src/analytics.js](../../src/analytics.js)
- (`ANALYTICS_EVENTS`, `FUNNELS.activation`, `FUNNELS.three`, `track()`,
- `trackFunnelStep()`, `identifyUser()` / `resetIdentity()`, `trackError()`,
- `shortWallet()`). `track()` validates against the catalog and rejects unknown
- events — never bypass it.
-- **Acquisition instrumentation** — [src/acquisition-analytics.js](../../src/acquisition-analytics.js)
- (`LANDING_VIEWED` once + delegated `CTA_CLICKED` over `data-cta`/`data-cta-loc`).
-- **Existing call sites** — [src/wallet-auth.js](../../src/wallet-auth.js),
- [src/account.js](../../src/account.js), [src/create-agent.js](../../src/create-agent.js),
- [src/marketplace.js](../../src/marketplace.js), [src/three-token-page.js](../../src/three-token-page.js),
- [src/swap-jupiter.js](../../src/swap-jupiter.js), [src/agent-detail.js](../../src/agent-detail.js),
- [src/dashboard-next/shell.js](../../src/dashboard-next/shell.js).
-- **Provider injection (do not duplicate)** — the `posthog-analytics`,
- `vercel-analytics`, and `client-error-reporter` plugins in
- [vite.config.js](../../vite.config.js) (PostHog snippet, `person_profiles:
- 'identified_only'`, ingest proxied through `/ingest`).
-- **Server-side event/error sinks** — [public/error-reporter.js](../../public/error-reporter.js)
- → [api/client-errors.js](../../api/client-errors.js); per-surface analytics in
- [api/marketplace/analytics.js](../../api/marketplace/analytics.js),
- [api/walk/analytics.js](../../api/walk/analytics.js),
- [api/creators/skill-analytics.js](../../api/creators/skill-analytics.js).
-- **Privacy reference** — [public/legal/privacy.html](../../public/legal/privacy.html)
- ("no IPs, no fingerprints", "no third-party advertising cookies"). Instrumentation
- must stay true to this.
-
-## Do this
-
-1. **Inventory before adding.** Grep for `track(`, `trackFunnelStep(`, `data-cta`, and
- `ANALYTICS_EVENTS` to map what already fires. Do not reinvent the spine — extend
- `src/analytics.js`. List the funnel gaps (any real step with no event).
-2. **Complete the funnels by journey.** Ensure each stage emits a taxonomy event:
- acquisition (`landing_viewed`, `cta_clicked`), activation (`agent_created`,
- first-generation, checklist steps from prompt 33), conversion (the `token_*` and
- pay/x402 events from prompt 35), retention (return visits, key surfaces opened via
- `SURFACE_OPENED`, share actions). Add missing event names to `ANALYTICS_EVENTS` and
- wire them into `FUNNELS` so PostHog funnel insights line up automatically.
-3. **One taxonomy, no drift.** All events go through the validating `track()` /
- `trackFunnelStep()` facade — no raw `window.posthog.capture()` ad-hoc strings in
- feature code. Names are snake_case and live only in `ANALYTICS_EVENTS`.
-4. **PII audit — hard requirement.** No raw wallet addresses, emails, prompt text, or
- tokens as event props. Truncate wallets with `shortWallet()`; drop free-text
- prompts (send a length/category, not content). Verify `person_profiles:
- 'identified_only'` and that `identifyUser()` is called only after auth resolves
- with non-PII identifiers. Reconcile with `public/legal/privacy.html`.
-5. **Fail-safe by design.** Every analytics call must no-op when PostHog is absent or
- blocked (`window.__posthog_blocked`) — verify the app works identically with an ad
- blocker on, in an embed iframe, and offline. Analytics can never break the page.
-6. **Verify events fire in a browser** (`npm run dev`): with PostHog network calls
- visible, walk landing → create → a free generation → a pay flow and confirm each
- expected event fires once with correct, PII-free props. Confirm dedupe (e.g.
- `LANDING_VIEWED` fires exactly once).
-7. **Dashboards/funnels.** Document the canonical activation, conversion, and
- retention funnels (the `FUNNELS` map is the contract) so PostHog funnel/insight
- definitions match the code. Keep this in the existing analytics docs, not a new
- throwaway file.
-8. **Test + changelog.** Run touched tests (`npx vitest run`, including any
- `tests/**/analytics*`); add a `data/changelog.json` entry only if a user-visible
- surface changed (pure instrumentation is internal and usually skips the changelog —
- see `/CLAUDE.md`). Run `npm run build:pages` if you touched anything that feeds it.
-
-## Must-not
-
-- Do not send PII as event props — no raw wallets, emails, prompt/message text, or
- tokens. Truncate and categorize.
-- Do not bypass the `track()` facade with ad-hoc `posthog.capture()` calls or invent
- event names outside `ANALYTICS_EVENTS`.
-- Do not add a second analytics vendor, advertising pixel, or fingerprinting — stay
- within the existing PostHog + Vercel stack and the privacy policy.
-- Do not let an analytics failure (blocked/offline/embed) break or block the app.
-- Do not reference any coin other than `$THREE` in event names or props.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every funnel stage (acquisition → activation → conversion → retention) emits a
- taxonomy event through `track()` / `trackFunnelStep()`; gaps closed.
-- [ ] No ad-hoc event strings or raw `posthog.capture()` in feature code; all names in
- `ANALYTICS_EVENTS`.
-- [ ] PII audit passes — no raw wallets/emails/prompt text/tokens in any event;
- consistent with `public/legal/privacy.html`.
-- [ ] App behaves identically with PostHog blocked, in an embed iframe, and offline
- (no errors, no broken flows).
-- [ ] Each expected event verified firing once with PII-free props in a real browser
- session.
-- [ ] `FUNNELS` matches documented PostHog funnels; docs updated in place (no
- throwaway file).
-- [ ] Touched tests pass; changelog handled per `/CLAUDE.md` and `npm run build:pages`
- clean if it was touched.
diff --git a/prompts/production-1b/37-dx-docs-site.md b/prompts/production-1b/37-dx-docs-site.md
deleted file mode 100644
index 4fd8c560e..000000000
--- a/prompts/production-1b/37-dx-docs-site.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# 37 — Developer experience & docs site
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-three.ws is a developer platform: SDKs, MCP servers, web components, and a paid
-x402 API. Developers decide in the first five minutes whether to build on you, and
-that decision is made on the docs. A quickstart that doesn't copy-paste-run, a stale
-API reference, or `llms.txt` that contradicts the live endpoints loses every
-integration before it starts. World-class docs are the cheapest, highest-leverage
-acquisition channel a dev platform has.
-
-## Mission
-
-Make every doc accurate, every code example actually runnable, and the docs site
-itself searchable, versioned, and self-consistent with the real API surface and the
-machine-readable `llms.txt` / `llms-full.txt`.
-
-## Map (trust but verify — files move)
-
-- **Docs content** — [public/docs/](../../public/docs) (~40 `.md` files:
- `quick-start.md`, `api-reference.md`, `sdk.md`, `mcp.md`, `web-component.md`,
- `widget-api.md`, `embedding.md`, `authentication.md`, `examples.md`, …).
-- **Tutorials** — [public/docs/tutorials/](../../public/docs/tutorials)
- (`getting-started.md`, `first-agent.md`, `embed-on-website.md`,
- `register-onchain.md`, `custom-skill.md`, `personal-ai-site.md`).
-- **Walk docs (HTML)** — [public/docs/walk/](../../public/docs/walk)
- (`index.html`, `docs.js`, `getting-started.html`, `embed-sdk.html`, …).
-- **Docs home + routing** — [docs/index.html](../../docs/index.html), routes in
- [vercel.json](../../vercel.json) (`/docs`, `/docs/walk`, `/docs/widgets` →
- [public/docs-widgets.html](../../public/docs-widgets.html)).
-- **Machine-readable docs** — [public/llms.txt](../../public/llms.txt),
- [public/llms-full.txt](../../public/llms-full.txt) (regenerated from content;
- find the generator under [scripts/](../../scripts)).
-- **API truth source** — handlers in [api/](../../api); web-component reference in
- [src/element.js](../../src/element.js) (the `<agent-3d>` element).
-- **Embed snippet builders** — [src/share-panel-builders.js](../../src/share-panel-builders.js)
- (`buildIframeSnippet`, `buildWebComponentSnippet`) — docs snippets must match these.
-
-## Do this
-
-1. **Run every code example.** Open each doc and tutorial; copy each fenced code
- block and execute it (curl against the real API, `npm install` the SDK, mount the
- `<agent-3d>` element). Any block that errors, 404s, or references a renamed
- param/endpoint gets fixed against the live handler in `api/`.
-2. **Reconcile the API reference** (`public/docs/api-reference.md`) with the actual
- handlers: every documented route, method, query param, and response shape must
- exist; remove documented-but-deleted endpoints; add shipped-but-undocumented ones.
-3. **Fix the SDK / MCP quickstarts** (`sdk.md`, `mcp.md`, `quick-start.md`) so a cold
- developer goes from zero to a working call. Use the published package names and the
- free `forge_free` MCP lane for the zero-cost first call (no wallet/key required).
-4. **Web-component / embed docs** (`web-component.md`, `widget-api.md`,
- `embedding.md`) must produce the exact snippet `share-panel-builders.js` emits —
- same tag, attributes, and origin. Test the snippet in a blank HTML file.
-5. **Regenerate and validate `llms.txt` / `llms-full.txt`** with the existing
- generator script; confirm they list real, live page paths and the current API
- surface — no dangling routes.
-6. **Docs search + navigation**: ensure the docs home is searchable (verify
- `public/docs/walk/docs.js` search works; if the main `/docs` index lacks search,
- add a client-side filter over the doc list). Every doc must be reachable from the
- index — no orphans.
-7. **Versioning + freshness signal**: each doc shows a "last updated" / version marker
- sourced from real data (git date or front-matter), not a hardcoded string. Stale
- docs are worse than missing ones.
-8. Run `npm run build:pages`, `npm run audit:pages`, and `npm run seo:meta`. Add a
- `data/changelog.json` entry (tag `docs`) for the doc refresh; rebuild pages.
-
-## Must-not
-
-- Do not ship a code example you have not run — no aspirational snippets.
-- Do not document any endpoint, package, or coin that doesn't exist; the only coin is
- `$THREE`.
-- Do not break working docs routes in `vercel.json`; verify each redirect resolves.
-- Do not leave `llms.txt`/`llms-full.txt` contradicting the live docs after edits.
-- No mocks, stubs, TODOs, or "coming soon" placeholders in published docs.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every fenced code block in `public/docs/**` and `public/docs/tutorials/**` runs
- against real APIs/SDKs with no errors.
-- [ ] `api-reference.md` matches the handlers in `api/` (no phantom or missing routes).
-- [ ] SDK + MCP quickstarts take a cold developer to a successful call; free lane works.
-- [ ] Embed/web-component docs emit the same snippet as `share-panel-builders.js`,
- verified in a blank page.
-- [ ] `llms.txt` and `llms-full.txt` regenerated and consistent with live docs/API.
-- [ ] Docs are searchable, every doc is reachable from the index, freshness markers
- are real (not hardcoded).
-- [ ] `npm run build:pages`, `audit:pages`, `seo:meta` clean; changelog entry added.
diff --git a/prompts/production-1b/38-referral-virality.md b/prompts/production-1b/38-referral-virality.md
deleted file mode 100644
index 29b62a156..000000000
--- a/prompts/production-1b/38-referral-virality.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# 38 — Referral & virality loops
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Paid acquisition does not scale to a billion-dollar platform — loops do. Every
-creation a user makes is a potential ad: a share card that lands in a feed, an
-embedded `<agent-3d>` widget on someone else's site carrying a "made with three.ws"
-mark, a referral link that pulls in the next builder. The platform already has
-OG-image endpoints, embeddable web components, and a referral schema — this prompt
-turns those scattered parts into closed, measurable viral loops.
-
-## Mission
-
-Make sharing a creation one click, make every shared/embedded artifact carry
-attribution back to three.ws, and make the existing referral mechanics complete,
-rewarding, and instrumented end-to-end.
-
-## Map (trust but verify — files move)
-
-- **Share cards (@vercel/og)** — [api/forge-og.js](../../api/forge-og.js),
- [api/avatar-og.js](../../api/avatar-og.js), [api/agent-og.js](../../api/agent-og.js),
- [api/agent-detail-og.js](../../api/agent-detail-og.js), [api/play-og.js](../../api/play-og.js),
- [api/trader-og.js](../../api/trader-og.js), [api/walk-og.js](../../api/walk-og.js),
- [api/page-og.js](../../api/page-og.js), [api/u-og.js](../../api/u-og.js).
-- **Share UI** — [src/share-panel.js](../../src/share-panel.js),
- [src/share-panel-builders.js](../../src/share-panel-builders.js),
- [src/share-panel.css](../../src/share-panel.css),
- [src/pose-share.js](../../src/pose-share.js); server share endpoints
- [api/forge-share.js](../../api/forge-share.js), [api/agent-share.js](../../api/agent-share.js),
- [api/oracle-share.js](../../api/oracle-share.js).
-- **Embeddable web components** — `<agent-3d>` in [src/element.js](../../src/element.js),
- `<agent-stage>` in [src/stage-element.js](../../src/stage-element.js); embed loaders
- [public/embed.js](../../public/embed.js), [public/embed/v1.js](../../public/embed/v1.js).
-- **Referral mechanics** — [api/users/referrals.js](../../api/users/referrals.js),
- [api/users/referral-claim.js](../../api/users/referral-claim.js),
- [api/friends/index.js](../../api/friends/index.js), schema in
- [api/_lib/migrations/001_add_referrals.sql](../../api/_lib/migrations/001_add_referrals.sql).
-- **"Made with three.ws" attribution** — search current usage in
- [src/avatar-page.js](../../src/avatar-page.js), [public/studio/studio.js](../../public/studio/studio.js).
-
-## Do this
-
-1. **One-click share on every creation surface** (Forge result, avatar page, agent
- profile, pose, oracle, walk). Use the Web Share API where available, with a copy-link
- + X/Telegram/Farcaster fallback. Wire the existing `share-panel.js` everywhere a
- creation is finished; no surface should dead-end without a share affordance.
-2. **Verify every OG endpoint renders a real, branded card** for real entity IDs (not a
- 1px or fallback image): correct title, creator, thumbnail, consistent brand. Fix any
- `*-og.js` that throws or renders an empty card; add the `og:`/`twitter:` meta tags on
- the shareable pages so the card actually appears when pasted into a social platform.
-3. **Embed carries attribution.** Every `<agent-3d>` / `<agent-stage>` / iframe embed
- renders a subtle, non-intrusive "made with three.ws" mark that links back with a
- referral/UTM param. Confirm it survives the embed-strip build step and shows in a
- third-party iframe.
-4. **Close the referral loop.** Audit `referrals.js` + `referral-claim.js`: a user gets
- a unique link, a new user arriving via it is attributed, the referrer is credited,
- and the reward is real (not a no-op). Build the user-facing referral UI (link, copy
- button, status: invited / joined / rewarded) if it's missing.
-5. **Attribution params flow through.** Embed marks, share links, and referral links all
- set a consistent UTM/ref param; landing pages read it, persist it through signup, and
- credit the right referrer. No param dropped on redirect.
-6. **Instrument the loop** so growth analytics (see prompt 36) can measure it: emit
- events for share-initiated, share-completed, embed-impression, referral-click,
- referral-signup. Use the existing analytics plumbing, not a new one.
-7. **Design every state**: share success toast, copy-confirmed, share-unsupported
- fallback, referral empty state ("invite your first builder"), and rewarded state.
-8. Run the relevant tests (`npx vitest run` over share/og/referral specs), add a
- `data/changelog.json` entry (tag `feature`) for the new sharing/referral UX, and
- `npm run build:pages`.
-
-## Must-not
-
-- Do not generate share cards or referral copy that reference any coin other than
- `$THREE`.
-- Do not register a service worker from inside embeds, and do not strip the attribution
- mark — both must survive `scripts/strip-sw-from-embeds.mjs`.
-- Do not fake referral rewards or counts; credit only real, verified signups.
-- Do not break working OG routes; verify each renders before and after edits.
-- No `setTimeout` fake share progress; real async only.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Every creation surface (forge, avatar, agent, pose, oracle, walk) has working
- one-click share with a copy-link fallback.
-- [ ] Every `*-og.js` renders a real branded card for real IDs; shareable pages carry
- `og:`/`twitter:` meta and preview correctly when pasted.
-- [ ] Embeds show a "made with three.ws" mark linking back with a ref/UTM param,
- surviving the embed-strip build.
-- [ ] Referral link → attributed signup → real reward works end-to-end with a
- user-facing referral UI (all states designed).
-- [ ] Loop events are instrumented through the existing analytics layer.
-- [ ] Tests pass; changelog updated; `npm run build:pages` clean.
diff --git a/prompts/production-1b/39-trust-safety-moderation.md b/prompts/production-1b/39-trust-safety-moderation.md
deleted file mode 100644
index 956821b73..000000000
--- a/prompts/production-1b/39-trust-safety-moderation.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# 39 — Trust, safety & moderation
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform where anyone can generate and upload 3D content, avatars, and text is one
-NSFW front-page screenshot away from losing app-store listings, payment processors,
-and press goodwill. Brands, the chains we integrate with, and the press logos in our
-footer all need to trust that three.ws is safe by default. Trust & safety is not a
-cost center at scale — it is the license to operate.
-
-## Mission
-
-Gate every generation and upload path through content moderation, give users real
-report/abuse flows, and back it all with rate-limited anti-spam — so unsafe content
-is caught before it ships and removable after.
-
-## Map (trust but verify — files move)
-
-- **Text moderation** — [api/_lib/moderation.js](../../api/_lib/moderation.js)
- (`moderateAnonInput`, `moderationEnabled`, `parseVerdict`, `refusalReply`).
-- **Image/vision moderation** — [api/_lib/vision.js](../../api/_lib/vision.js)
- (`describeImage`, `describeImageJson`, `visionConfigured`, `assertSafeImageUrl`).
-- **Current call sites** — moderation is already used in [api/chat.js](../../api/chat.js),
- [api/brain/chat.js](../../api/brain/chat.js), [api/pump/[action].js](../../api/pump/[action].js),
- [api/widgets/[id]/[action].js](../../api/widgets/[id]/[action].js),
- [api/sns-subdomain.js](../../api/sns-subdomain.js), [api/wk.js](../../api/wk.js);
- vision in [api/ibm/vision.js](../../api/ibm/vision.js). Generation entry:
- [api/forge.js](../../api/forge.js), avatar reconstruct in [api/avatars/](../../api/avatars).
-- **Rate limiting** — [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js).
-- **Alt-text / description helpers** — [api/_lib/avatar-alt-text.js](../../api/_lib/avatar-alt-text.js)
- (uses vision; a hook point for upload-time checks).
-
-## Do this
-
-1. **Map every user-generated input path**: text→3D prompts, text→avatar prompts,
- selfie/image uploads, image→3D, agent chat, page text, marketplace listings,
- usernames/SNS subdomains. For each, confirm whether moderation/vision is applied —
- build a coverage table.
-2. **Close the gaps on generation.** Every prompt-driven generation (forge, avatars)
- must run text through `moderateAnonInput` before spending compute; block disallowed
- prompts with `refusalReply()`-style neutral copy (no echo of the unsafe text).
-3. **Gate uploads.** Every selfie/image upload and image→3D path runs through
- `vision.js` NSFW/safety checks before reconstruction; reject unsafe images with a
- clear, non-judgmental message and no provider internals leaked.
-4. **Fail safe, not open.** When a moderation provider is unconfigured or errors,
- decide the policy explicitly per surface (block vs. allow-with-flag) — never silently
- skip the check on a public generation path. Use the existing cockatiel resilience
- helper for provider calls.
-5. **Report/abuse flow.** Add a "Report" affordance on user-facing content (avatars,
- agents, marketplace listings, embedded pages) that writes to a real moderation queue
- (a table + `api/` handler), captures reporter, target, and reason, and rate-limits
- submissions. No client-only fake report.
-6. **Takedown path.** Reported/flagged content must be hideable/removable: a real admin
- action that sets a moderation status which the public surfaces respect (hidden content
- 404s or shows a removed-content state).
-7. **Anti-spam.** Apply `rate-limit.js` to generation, upload, report, and any unauthenticated
- write path so a single client can't flood the platform. Tune limits per surface; return
- a proper 429 with a designed retry message.
-8. Run `npx vitest run` over moderation/vision/rate-limit specs (add cases for
- NSFW-blocked, unconfigured-provider, and over-limit). Note any policy-visible change in
- `data/changelog.json` (tag `security`) and `npm run build:pages`.
-
-## Must-not
-
-- Do not echo the unsafe user input back in any error, log line shown to the user, or
- share card.
-- Do not let a public generation/upload path run when moderation is unconfigured without
- an explicit, documented fail-safe decision.
-- Do not leak vendor/provider internals (billing, model names, raw verdicts) to end users.
-- Do not reference any coin other than `$THREE` in moderation copy, tests, or fixtures.
-- No mock moderation, no `// TODO: moderate later`, no stubbed report endpoint.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Coverage table shows every user-generated input path and its moderation status;
- no public generation/upload path is unprotected.
-- [ ] Prompt generation blocks unsafe text via moderation before spending compute, with
- neutral copy and no echo.
-- [ ] Image uploads / image→3D run NSFW/safety vision checks before reconstruction.
-- [ ] Unconfigured/erroring providers fail safe per an explicit per-surface policy.
-- [ ] Real report/abuse flow writes to a moderation queue and rate-limits; takedown
- hides flagged content on every public surface.
-- [ ] Generation, upload, report, and unauth writes are rate-limited with a designed 429.
-- [ ] Moderation/vision/rate-limit tests pass with new safety cases; changelog updated.
diff --git a/prompts/production-1b/40-legal-compliance-tos-privacy.md b/prompts/production-1b/40-legal-compliance-tos-privacy.md
deleted file mode 100644
index 8442add25..000000000
--- a/prompts/production-1b/40-legal-compliance-tos-privacy.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# 40 — Legal, compliance, ToS & privacy
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A platform that handles wallets, on-chain trading, user uploads, and PII cannot scale
-without a defensible legal posture. Enterprise customers, app stores, payment rails,
-and the chains we integrate with all require accurate ToS, a real privacy policy with
-GDPR/CCPA data rights, financial disclaimers on trading surfaces, and correct
-open-source attribution for the vendored three.js and animation libraries. One missing
-disclaimer or one un-attributed MIT library is an avoidable legal and reputational risk.
-
-## Mission
-
-Make the legal pages accurate to what the platform actually does, wire real GDPR/CCPA
-data-rights and consent flows, place financial/custody disclaimers on every trading and
-wallet surface, and ensure every vendored library is correctly attributed.
-
-## Map (trust but verify — files move)
-
-- **Legal pages** — [public/legal/privacy.html](../../public/legal/privacy.html)
- (already has GDPR/Cookie/Retention sections), [public/legal/tos.html](../../public/legal/tos.html)
- (has a disclaimer + wallet section), [public/legal/eula.html](../../public/legal/eula.html),
- [public/legal/aws-marketplace-eula.html](../../public/legal/aws-marketplace-eula.html).
-- **Footer links** — [public/footer.html](../../public/footer.html) (`/legal/privacy`,
- `/legal/tos`), [public/footer.js](../../public/footer.js); routes in
- [vercel.json](../../vercel.json).
-- **Surface-specific legal** — [pages/extension-privacy.html](../../pages/extension-privacy.html),
- [pages/extension-terms.html](../../pages/extension-terms.html),
- [pages/irl-privacy.html](../../pages/irl-privacy.html),
- [extensions/walk-avatar/PRIVACY.md](../../extensions/walk-avatar/PRIVACY.md),
- [extensions/walk-avatar/TERMS.md](../../extensions/walk-avatar/TERMS.md).
-- **Wallet / trading surfaces (need disclaimers)** — [pages/pricing.html](../../pages/pricing.html),
- Oracle / trader / pump.fun surfaces (search `pages/` and `src/` for `agent-trade`,
- `oracle`, `trader`, `pumpfun`), x402 payment UI in
- [src/payment-modal.js](../../src/payment-modal.js).
-- **Vendored OSS to attribute** — [character-studio/LICENSE](../../character-studio/LICENSE)
- (Atlas Foundation, MIT), [public/scene-studio/LICENSE](../../public/scene-studio/LICENSE)
- (three.js authors, MIT), [public/animations/LICENSES.md](../../public/animations/LICENSES.md)
- (per-clip upstream + license), [public/environments/LICENSES.md](../../public/environments/LICENSES.md).
-- **Data-rights backend hook** — referral/user data in [api/users/](../../api/users),
- privacy-center task reference at
- [tasks/irl-hardening/H5-privacy-center-forget-me.md](../../tasks/irl-hardening/H5-privacy-center-forget-me.md).
-
-## Do this
-
-1. **Audit ToS + Privacy against reality.** Read `tos.html` and `privacy.html` line by
- line; verify every claim matches what the platform actually collects, stores, and
- does (uploads, wallet addresses, on-chain activity, analytics, cookies, third-party
- providers). Fix anything inaccurate; remove anything no longer true.
-2. **GDPR/CCPA data rights — make them real.** Confirm the privacy policy lists the data
- collected, retention periods, and lawful basis. Provide working "export my data" and
- "delete my account / forget me" flows (a real `api/` endpoint backed by the user/referral
- tables), not a "contact us" stub. Reference the H5 privacy-center task for scope.
-3. **Cookie / consent.** If analytics or any non-essential storage runs, add a consent
- mechanism (banner or settings) that actually gates those scripts; record consent and
- respect "reject." If everything is strictly necessary, document that explicitly so the
- policy is truthful.
-4. **Financial / trading disclaimers.** Every surface that shows prices, trading, the
- Oracle, pump.fun launches, or token data must carry a clear "not financial advice / no
- warranty / DYOR" disclaimer placed in-context (not buried). Wire it as a shared,
- reusable component so it's consistent everywhere.
-5. **Custody / wallet disclosures.** Wallet and x402 payment surfaces must disclose
- custody model, that on-chain transactions are irreversible, and fee/risk notes. Verify
- the disclosure appears in `payment-modal.js` and any agent-wallet UI.
-6. **Open-source attribution.** Cross-check vendored libraries: three.js (scene-studio),
- character-studio (Atlas Foundation), and every animation clip's upstream license. Ensure
- each is attributed in a reachable place (an `/legal/licenses` or open-source page linked
- from the footer), and that the per-clip `LICENSES.md` is complete for shipped clips.
-7. **$THREE-only sweep of legal copy.** Ensure no legal/disclaimer text names any token
- other than `$THREE`; trading disclaimers stay coin-agnostic about user-supplied mints.
-8. Add a `data/changelog.json` entry (tag `security` or `docs`) for the legal/privacy
- updates, run `npm run build:pages`, and confirm footer links resolve via `audit:pages`.
-
-## Must-not
-
-- Do not write legal claims you cannot verify against the actual implementation.
-- Do not ship a "delete my data" or "export" button that doesn't actually do it.
-- Do not omit attribution for any vendored MIT/OSS library or animation clip.
-- Do not reference any coin other than `$THREE` in legal, disclaimer, or consent copy.
-- Do not gate consent with a banner that doesn't actually block the non-essential scripts.
-
-## Acceptance (all true before claiming done)
-
-- [ ] ToS and Privacy accurately describe real data practices, providers, retention, and
- on-chain/wallet behavior.
-- [ ] Working data-export and account-deletion ("forget me") flows backed by real
- endpoints, linked from the privacy policy.
-- [ ] Cookie/consent mechanism gates non-essential scripts and records the choice (or the
- policy truthfully states all storage is strictly necessary).
-- [ ] Financial/DYOR disclaimers appear in-context on every trading/Oracle/pump/token
- surface via a shared component.
-- [ ] Custody/wallet/irreversibility disclosures present on wallet + x402 payment UIs.
-- [ ] Every vendored library (three.js, character-studio, animation clips) attributed on a
- footer-linked licenses page; per-clip `LICENSES.md` complete.
-- [ ] No non-`$THREE` coin referenced in any legal copy; footer legal links resolve;
- changelog updated and `npm run build:pages` clean.
diff --git a/prompts/production-1b/41-i18n-completion.md b/prompts/production-1b/41-i18n-completion.md
deleted file mode 100644
index 968a9cf9a..000000000
--- a/prompts/production-1b/41-i18n-completion.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# 41 — i18n completion
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-A billion-dollar platform is global. Most of the world's builders and traders do not
-read English, and the markets where 3D + on-chain adoption grows fastest are not
-English-first. The i18n machinery already exists (extract → translate → lint, runtime
-locale swap, a `<lang-switcher>` element), but coverage is thin — only `en` and `es`
-catalogs ship, and hardcoded strings leak everywhere. Finishing i18n unlocks entire
-regions at near-zero marginal cost.
-
-## Mission
-
-Get full user-facing string extraction and translation coverage, working locale
-switching with RTL and locale-aware number/date/currency formatting, and zero hardcoded
-user-facing strings on the primary surfaces.
-
-## Map (trust but verify — files move)
-
-- **i18n config** — [.i18nrc.json](../../.i18nrc.json) (entry, entryLocale, output dir,
- outputLocales, localeNames), schema at
- [scripts/i18n-rc.schema.json](../../scripts/i18n-rc.schema.json).
-- **Pipeline scripts** — [scripts/i18n-extract.mjs](../../scripts/i18n-extract.mjs)
- (`npm run i18n:extract`), [scripts/i18n-translate.mjs](../../scripts/i18n-translate.mjs)
- (`npm run i18n:translate`, and `--lint` → `npm run i18n:lint`). Combined:
- `npm run i18n`.
-- **Locale catalogs** — [public/locales/](../../public/locales) (`en.json`, `es.json`,
- `manifest.json` — the `manifest.locales[]` list each with `code`, `name`, `dir`).
-- **Runtime i18n** — [src/i18n.js](../../src/i18n.js) (client-side locale swap, fetches
- `/locales/<code>.json`, sets `document.documentElement.dir`, dispatches `i18n:change`,
- defines `<lang-switcher>`).
-- **Surfaces to cover** — `pages/*.html` (~168) and `src/` modules; start with the
- conversion-critical ones (home, forge, pricing, marketplace, docs landing, wallet).
-
-## Do this
-
-1. **Run the pipeline and read the lint output.** `npm run i18n:extract` then
- `npm run i18n:lint` to see missing/extra keys per locale and the current coverage gap.
- This is your worklist.
-2. **Find hardcoded user-facing strings.** Grep the high-traffic `pages/*.html` and `src/`
- modules for literal English in markup/JS that isn't going through the i18n key system.
- Wrap them with the project's translation mechanism (match how `src/i18n.js` consumers
- already do it). Prioritize the conversion funnel surfaces first.
-3. **Expand target locales.** Add a sensible set of high-impact locales to
- `.i18nrc.json` `outputLocales` + `localeNames` and the `manifest.json` `locales[]`
- (include at least one RTL locale, e.g. `ar`, with `dir: "rtl"`). Run
- `npm run i18n:translate` to generate the catalogs against the real translation provider
- — no hand-faked translations, no machine-gibberish left unreviewed for key terms.
-4. **Locale switching works end-to-end.** Verify `<lang-switcher>` appears when ≥2 locales
- exist, swaps the catalog at runtime without a full reload, persists the choice, and
- updates `document.documentElement.dir`. Test on home + forge in a real browser.
-5. **RTL correctness.** With an RTL locale active, audit layout: logical CSS properties
- (`margin-inline`, `text-align: start`), mirrored icons/arrows where appropriate, and no
- broken flex/grid direction. Fix the worst offenders on the primary surfaces.
-6. **Locale-aware formatting.** Replace ad-hoc number/date/currency string-building with
- `Intl.NumberFormat` / `Intl.DateTimeFormat` keyed off the active locale (counts, prices,
- timestamps, $THREE amounts). No `toFixed`-then-concat money formatting.
-7. **Don't break the brand or the coin.** "three.ws" and "$THREE" stay verbatim across
- locales (mark them as non-translatable terms); never let a translation invent a coin.
-8. Run `npm run i18n:lint` (must pass), exercise locales in the browser, add a
- `data/changelog.json` entry (tag `improvement`) for the new languages, and
- `npm run build:pages`.
-
-## Must-not
-
-- Do not hand-write or fake translations to pass the lint — generate them through the real
- `i18n:translate` provider.
-- Do not leave hardcoded user-facing English on the primary conversion surfaces.
-- Do not translate "three.ws", "$THREE", or the contract address; keep brand/coin verbatim.
-- Do not ship an RTL locale that visibly breaks layout on home/forge/pricing.
-- Do not introduce a second i18n system — extend the existing `src/i18n.js` + scripts.
-
-## Acceptance (all true before claiming done)
-
-- [ ] `npm run i18n:lint` passes with no missing/extra keys across all configured locales.
-- [ ] No hardcoded user-facing strings remain on the primary funnel surfaces (home, forge,
- pricing, marketplace, wallet, docs landing).
-- [ ] `outputLocales` expanded (incl. ≥1 RTL locale); catalogs generated via the real
- translate provider, not faked.
-- [ ] `<lang-switcher>` swaps locale at runtime, persists, and sets `dir`; verified in browser.
-- [ ] RTL layout is correct on the primary surfaces; no mirrored-layout breakage.
-- [ ] Numbers/dates/currency use `Intl` keyed to the active locale, including $THREE amounts.
-- [ ] Brand and coin stay verbatim across locales; changelog updated; `build:pages` clean.
diff --git a/prompts/production-1b/42-pwa-offline-notifications.md b/prompts/production-1b/42-pwa-offline-notifications.md
deleted file mode 100644
index 042df5a54..000000000
--- a/prompts/production-1b/42-pwa-offline-notifications.md
+++ /dev/null
@@ -1,95 +0,0 @@
-# 42 — PWA, offline & notifications
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Installable, offline-capable, re-engageable web apps retain users like native apps at
-a fraction of the cost — and three.ws is exactly the kind of "open it daily" product
-(your agent did something, a launch moved, a trade filled) that web push was built for.
-But a misconfigured service worker is a footgun: it can poison caches across the origin,
-break embeds in third-party iframes, or serve stale JS that makes the app look broken.
-This prompt makes the PWA correct, installable, gracefully offline, and able to bring
-users back — without any caching bugs.
-
-## Mission
-
-Verify service-worker correctness (including the embed-strip behavior), polish the
-install experience and manifest, ship a real offline fallback, and add web push for
-agent activity — with zero SW caching bugs.
-
-## Map (trust but verify — files move)
-
-- **PWA / SW config** — [vite.config.js](../../vite.config.js) (`VitePWA({ … })` ~line
- 1856: `registerType: 'autoUpdate'`, `workbox.globPatterns: ['**/*.{js,css,ico,woff2}']`
- — HTML deliberately excluded — `navigateFallback: null`,
- `maximumFileSizeToCacheInBytes: 5MB`).
-- **Embed SW strip** — [scripts/strip-sw-from-embeds.mjs](../../scripts/strip-sw-from-embeds.mjs)
- (post-build; removes the `vite-plugin-pwa:register-sw` `<script>` from embed-surface
- HTML — `widget.html`, `embed.html`, `agent-embed`, `a-embed`, `avatar-embed`). Vite
- also strips it via a `transformIndexHtml` hook (`vite.config.js` ~line 515).
-- **Web manifest** — [public/site.webmanifest](../../public/site.webmanifest) (name,
- icons `pwa-192`/`pwa-512` any+maskable, `display: standalone`, theme `#050505`).
-- **Offline fallback** — existing example at [public/cz/offline/index.html](../../public/cz/offline)
- (pattern to generalize for the main app).
-- **Embed surfaces** — [public/embed.js](../../public/embed.js),
- [public/embed/v1.js](../../public/embed/v1.js); the `<agent-3d>` element in
- [src/element.js](../../src/element.js).
-- **Agent-activity sources for push** — agent/wallet/launch events in [api/](../../api)
- (find the activity/feed handlers under `api/_lib/feed.js` and friends).
-
-## Do this
-
-1. **Verify SW correctness with a real build.** `npm run build`, serve `dist/`, and in
- DevTools → Application confirm the SW registers on the main app, `autoUpdate` activates
- the new SW, and there's no stale-asset trap (cached JS/CSS update on deploy). HTML must
- not be precached (it's intentionally excluded) — pages always come from network.
-2. **Confirm embeds never register a SW.** Inspect built embed HTML (`widget.html`,
- `embed.html`, `*-embed`) for the absence of the `vite-plugin-pwa:register-sw` script;
- load an embed inside a third-party iframe and confirm no SW is installed for the origin.
- This is a hard correctness/privacy requirement — keep the strip step working.
-3. **Install experience.** Validate `site.webmanifest` against Lighthouse PWA criteria:
- icons resolve (192/512, any + maskable), `start_url`, scope, `display`. Add a tasteful,
- dismissible "Install three.ws" prompt using the `beforeinstallprompt` event (no nag
- loop; respect dismissal). Test install on desktop Chrome and Android.
-4. **Real offline fallback.** Generalize the `public/cz/offline` pattern into an offline
- page for the main app: when navigation fails offline, show a branded offline screen with
- what's cached/available, not a browser error. Wire it correctly given `navigateFallback`
- is currently `null` — choose the right workbox strategy without breaking the network-first
- HTML rule.
-5. **Web push for agent activity.** Implement push end-to-end: VAPID keys from env, a
- real subscribe flow (permission prompt only on user intent, never on load), a
- `PushSubscription` persisted to a real table, and an `api/` send path that fires on real
- agent-activity events (e.g. agent acted, launch update, trade filled). No fake/test pushes
- shipped.
-6. **Notification UX + controls.** Notifications deep-link to the relevant surface, are
- throttled/de-duped, and the user can manage/disable them in settings. Respect denied
- permission gracefully.
-7. **Audit cache scope.** Confirm runtime caching (if any) is scoped so it can't serve a
- user another user's data, and that signed-in/API responses aren't cached as static.
-8. Run `npm run build`, the SW/embed checks above, relevant tests, add a
- `data/changelog.json` entry (tag `feature`/`improvement`) for install + notifications,
- and `npm run build:pages`.
-
-## Must-not
-
-- Do not register a service worker from any embed surface — the strip step must keep working.
-- Do not precache HTML or cache authenticated/API responses as static assets.
-- Do not request notification permission on page load — only on explicit user intent.
-- Do not ship fake/test push notifications or a stubbed subscribe endpoint.
-- Do not reference any coin other than `$THREE` in notification or offline copy.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Built SW registers + auto-updates on the main app with no stale-asset trap; HTML
- stays network-first.
-- [ ] Embed surfaces register no SW; verified inside a third-party iframe; strip step intact.
-- [ ] Manifest passes Lighthouse PWA install criteria; dismissible install prompt works on
- desktop + Android without nagging.
-- [ ] Offline navigation shows a branded offline fallback, not a browser error.
-- [ ] Web push works end-to-end (VAPID, user-intent subscribe, persisted subscription, real
- agent-activity trigger); notifications deep-link and are manageable.
-- [ ] No cross-user or stale API data served from cache.
-- [ ] `npm run build` clean; tests pass; changelog updated; `npm run build:pages` clean.
diff --git a/prompts/production-1b/43-brand-press-social-proof.md b/prompts/production-1b/43-brand-press-social-proof.md
deleted file mode 100644
index 20dd87d24..000000000
--- a/prompts/production-1b/43-brand-press-social-proof.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# 43 — Brand, press & social proof
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context.
-
-## Why this matters for $1B
-
-Trust is the conversion multiplier. A first-time visitor decides in seconds whether
-three.ws is a serious company or a side project — and the signals that decide it are
-brand consistency, real press coverage, and visible social proof. three.ws has genuine
-coverage (Business Insider, IBM partnership, Yahoo Finance, Crunchbase, Vogue, KuCoin
-listing) and partner logos already in the repo, but they're scattered in the footer and
-a `/news` feed instead of working as a coherent credibility story. Surfacing them well
-turns existing assets into acquisition leverage.
-
-## Mission
-
-Lock brand consistency across the platform (logo, OG images, voice), build a real press
-page that surfaces the existing coverage, and weave testimonials/case studies and trust
-signals into the high-intent surfaces.
-
-## Map (trust but verify — files move)
-
-- **Brand mark** — [public/brand.js](../../public/brand.js) (universal top-left brand
- chip; opt-out via `data-no-brand-mark`), logos in [public/](../../public)
- (`logo.png`, `favicon.svg`, `favicon.ico`, `pwa-192x192.png`, `pwa-512x512.png`).
-- **Partner / featured logos** — [public/featured-logos/](../../public/featured-logos)
- (`anthropic.svg`, `coinbase.svg`, `solana.svg`, `googlecloud.svg`,
- `alibabacloud.svg`, `coinmarketcap.svg`, `hackernoon.svg`), plus
- [public/ibm-partner-logo.png](../../public/ibm-partner-logo.png).
-- **Existing press links** — [public/footer.html](../../public/footer.html) (Business
- Insider, IBM community, Yahoo Finance, Crunchbase, Vogue, KuCoin, TradingView),
- echoed in [public/features.json](../../public/features.json).
-- **News / announcements** — [public/news/](../../public/news) (~107 items),
- [public/news/index.html](../../public/news/index.html) ("News & Announcements"),
- build via `npm run build:news`; [public/launch-week.html](../../public/launch-week.html).
-- **Default OG image** — [public/og-image.png](../../public/og-image.png),
- [public/ibm-og.png](../../public/ibm-og.png); per-surface OG endpoints `api/*-og.js`
- (see prompt 38).
-- **Voice / brand copy** — [public/llms.txt](../../public/llms.txt) and home copy in
- [pages/home.html](../../pages/home.html) (the canonical brand description).
-
-## Do this
-
-1. **Brand consistency audit.** Walk the main pages and confirm `brand.js` (or a native
- header) puts the same logo, same wordmark casing ("three.ws"), and same theme color
- on every standalone surface. Fix any page with a stray/old logo treatment or missing
- mark. Confirm favicon + PWA icons are consistent.
-2. **OG image consistency.** Verify every shareable page has an `og:image` (default
- `og-image.png` or its per-surface `*-og.js` card) with consistent brand framing —
- same logo placement, type, and color. No page should fall back to a broken or
- off-brand preview when pasted into a social platform.
-3. **Build a real press page.** Create `/press` (a static page under `public/`, routed in
- `vercel.json` like `/news`) that surfaces the existing coverage as a credible
- "as seen in" wall: outlet logos linking to the real articles already in the footer,
- plus the IBM partnership and the news feed. Pull from real data
- (`public/features.json` / footer links / `public/news/`) — no invented quotes or
- fabricated outlets.
-4. **"As seen in" trust strip on high-intent surfaces.** Add a tasteful logo strip
- (using `public/featured-logos/` + real press outlets) to the home page and pricing
- page, linking through to the press page. Real partners/coverage only.
-5. **Testimonials / case studies.** Surface real social proof — genuine user creations,
- real quotes, or verifiable usage stats from platform data (e.g. agents created,
- launches, embeds). Build a testimonials/case-study section sourced from real records;
- do not write fake testimonials or attribute quotes to people who didn't say them.
-6. **Trust signals throughout.** Place credibility cues where decisions happen: security
- note near wallet/payment, "open source / MIT" near SDKs/docs, partner logos near the
- integration story, real counts near the marketplace. Each must link to something real.
-7. **Voice consistency.** Align headline/CTA copy with the canonical brand description
- ("The 3D agent layer of the internet …" from the manifest/`llms.txt`). Remove
- off-brand or contradictory taglines.
-8. Verify all new images via `npm run check:images`, run `npm run audit:pages` and
- `npm run seo:meta`, add a `data/changelog.json` entry (tag `feature`) for the press
- page + trust strip, and `npm run build:pages`.
-
-## Must-not
-
-- Do not fabricate press coverage, partner relationships, testimonials, or stats — only
- surface what's real and verifiable from the repo/platform data.
-- Do not reference any coin other than `$THREE` in brand, press, or social-proof copy.
-- Do not break the `brand.js` chromeless opt-out for embeds/iframes.
-- Do not ship off-brand or broken OG images; every shareable page previews correctly.
-- No placeholder logos, "logo here" boxes, or lorem-ipsum testimonials.
-
-## Acceptance (all true before claiming done)
-
-- [ ] Logo, wordmark casing, theme color, favicon, and PWA icons are consistent across all
- main standalone pages.
-- [ ] Every shareable page has a consistent, on-brand `og:image` that previews correctly.
-- [ ] A real `/press` page surfaces the existing coverage (real outlets → real articles)
- and is routed + linked from the footer/nav.
-- [ ] An "as seen in" trust strip appears on home + pricing using real partner/press
- logos, linking to the press page.
-- [ ] Testimonials/case-study section sourced from real data — no fabricated quotes/stats.
-- [ ] Trust signals (security, OSS, partners, real counts) placed at decision points, each
- linking to something real.
-- [ ] `check:images`, `audit:pages`, `seo:meta` clean; changelog updated; `build:pages` clean.
diff --git a/prompts/production-1b/44-launch-readiness-review.md b/prompts/production-1b/44-launch-readiness-review.md
deleted file mode 100644
index bceb79d99..000000000
--- a/prompts/production-1b/44-launch-readiness-review.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# 44 — Launch-readiness review (final gate)
-
-> Part of the three.ws "Production → $1B" program. Run in a fresh chat. Read
-> `/CLAUDE.md` first (its rules override everything) and `prompts/production-1b/00-README.md`
-> for shared context. **This is the last prompt in the program — the go/no-go gate.**
-
-## Why this matters for $1B
-
-Everything in prompts `01`–`43` is only real if it survives a single, ruthless,
-end-to-end review. A platform aiming at $1B cannot launch on vibes: it launches when
-every audit is green, the full test suite passes, security review is clean, and the
-`/CLAUDE.md` Definition of Done is verifiably true across every surface. This gate exists
-to catch the one red that would otherwise become the incident, the chargeback, or the
-front-page screenshot. Its job is to **block launch** — not to bless it by default.
-
-## Mission
-
-Run every audit, the full test suite, and a security review across the whole platform;
-verify the Definition of Done on every surface; produce a single scorecard; and return a
-go/no-go that is **no-go on any red**.
-
-## Map (trust but verify — files move)
-
-- **The coverage map** — prompts [01](../../prompts/production-1b) through
- [43](../../prompts/production-1b) in [prompts/production-1b/](../../prompts/production-1b).
- Each prompt's **Acceptance** section is a checklist this gate re-verifies at a spot-check
- level; treat them as the requirements traceability matrix.
-- **Audit scripts** (in [package.json](../../package.json)) — `audit:deploy`,
- `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`, `check:images`, `seo:meta`,
- `check:dist`, `check-api-not-bundled` (in [scripts/](../../scripts)).
-- **Verify / smoke** — `verify`, `verify:solana`, `verify:onchain`, `verify:ibm`,
- `verify:zauth`, `smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`, `snapshot`.
-- **Tests** — `npm test` (`vitest run && playwright test`), `test:all`, `test:gate`,
- `lint`, `typecheck`; CI at [.github/workflows/ci.yml](../../.github/workflows/ci.yml)
- (jobs: lint, test, guards, typecheck).
-- **Definition of Done + operating rules** — [/CLAUDE.md](../../CLAUDE.md).
-- **Changelog integrity** — [data/changelog.json](../../data/changelog.json) →
- `npm run build:pages` → [public/changelog.json](../../public/changelog.json),
- [public/changelog.xml](../../public/changelog.xml), [CHANGELOG.md](../../CHANGELOG.md).
-
-## Do this
-
-1. **Run the full audit battery and capture results.** Execute and record pass/fail +
- key output for each: `npm run lint`, `npm run typecheck`, `npm test`, `npm run audit:deploy`,
- `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`, `check:images`, `seo:meta`,
- `check:dist`. Do not summarize away failures — every red is a launch blocker until fixed
- or explicitly waived with a stated reason and owner.
-2. **Run the on-chain / integration verifiers.** `npm run verify`, `verify:solana`,
- `verify:onchain`, `smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`. These touch real
- chains/services — record real results, never assume green.
-3. **Run a security review** (`/security-review`) over the platform's exposed surface:
- authz, input validation, SSRF, secrets/env hygiene, rate limiting, moderation gates,
- and payment/wallet flows. Cross-check against prompts `05`, `07`, `08`, `31`, `39`.
- Any high/critical finding is an automatic no-go.
-4. **Build a clean production artifact.** `npm run build`; then `check:dist` and verify no
- `api/*.js` source got bundle-overwritten (`head -1` for `__defProp`/`createRequire`, per
- `/CLAUDE.md`). A poisoned `api/` diff is a no-go.
-5. **Verify the Definition of Done across surfaces.** For each top product surface (Forge,
- Marketplace, Agent Studio, Wallet/x402, Walk/Page-Agent, Scene/Animation Studio,
- Character Studio, Pump/Oracle/$THREE, MCP, SDK, Worlds): spot-check the `/CLAUDE.md` DoD
- — reachable, no console errors, real API calls, every state designed, hover/focus,
- empty/error states, mobile. Note any surface that fails.
-6. **Spot-check the Phase 4 growth & compliance prompts (33–43)** specifically: onboarding
- funnel, conversion, pricing, analytics, docs accuracy, virality/attribution, moderation
- gates, legal/privacy + disclaimers, i18n lint, PWA/SW + embed-strip, brand/press. Each
- must meet its own Acceptance; record gaps.
-7. **$THREE-only sweep.** Grep the repo (source, copy, fixtures, docs, OG, tests, commit
- messages staged) for any non-`$THREE` coin reference; the contract address must be
- `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump` where present. Any other coin is an
- automatic no-go and must be removed.
-8. **Changelog + freshness.** Confirm every user-visible change from this program has a
- `data/changelog.json` entry; run `npm run build:pages` and confirm it validates and
- regenerates `CHANGELOG.md` + public changelog feeds cleanly.
-9. **Produce the scorecard and verdict.** Emit a single scorecard: one row per area
- (Phase 0–4 + each audit + security + DoD), each marked GREEN / YELLOW / RED with a
- one-line reason and, for non-green, the blocking item and owner. End with an explicit
- **GO** or **NO-GO**. NO-GO if *any* row is RED.
-
-## Must-not
-
-- Do not declare GO with any RED row, any failing audit/test, or any
- high/critical security finding — no exceptions, no "we'll fix it after launch."
-- Do not skip a flaky or slow audit/test — re-run it; investigate the cause; record the
- real result. A skipped check is treated as RED.
-- Do not mask or summarize away a failure to make the scorecard look green.
-- Do not run `npm run changelog:push` as part of the gate (that's post-deploy).
-- Do not introduce new features here — this is verification only; fix blockers, don't gold-plate.
-- Do not reference any coin other than `$THREE`; flag any that exists as a blocker.
-
-## Acceptance (all true before claiming done — i.e., before a GO)
-
-- [ ] `lint`, `typecheck`, `npm test` (vitest + playwright), and all `audit:*` +
- `check:images` + `seo:meta` + `check:dist` pass; results recorded.
-- [ ] All `verify*` and `smoke:*` integration/on-chain checks pass with recorded real output.
-- [ ] `/security-review` complete with zero high/critical findings open.
-- [ ] Clean production build; no bundle-overwritten `api/*.js`.
-- [ ] `/CLAUDE.md` Definition of Done spot-verified on every top product surface.
-- [ ] Phase 4 prompts (33–43) each meet their Acceptance; gaps recorded and resolved.
-- [ ] $THREE-only sweep clean (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); no other coin.
-- [ ] Changelog complete and `npm run build:pages` validates/regenerates cleanly.
-- [ ] A scorecard exists (one row per area, GREEN/YELLOW/RED + reason/owner) with an
- explicit **GO / NO-GO** verdict; verdict is **GO only if every row is GREEN**.
diff --git a/prompts/production-1b/A01-buyback-engine-provable.md b/prompts/production-1b/A01-buyback-engine-provable.md
deleted file mode 100644
index 1413e92df..000000000
--- a/prompts/production-1b/A01-buyback-engine-provable.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# A01 — $THREE buyback engine: scheduled, on-chain, audited, public proof
-
-> Phase A · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The headline promise on the $THREE token page is "50% of all platform revenue buys
-$THREE on the open market and routes it to the treasury — on-chain, verifiable." Today
-that is wired but not *proven*: the public stats endpoint already reports buyback runs,
-but the execution path is opt-in and there is no scheduled job that actually runs buys,
-logs them, and exposes a verifiable, on-chain receipt trail. A $1B token economy lives or
-dies on this being true and auditable. Make it real, automatic, and provable.
-
-## Where this lives (real files)
-- `api/_lib/token/buyback.js` — market-buy engine (Jupiter swap), `buybackStats()` public summary, spend caps/slippage, signer load.
-- `api/_lib/token/config.js` — split policies (treasury/rewards), commit bps, fail-closed wallet guards.
-- `api/three-token/[action].js` — `GET /stats` returns `buyback` summary; `three_buyback_runs` table is referenced here.
-- `api/cron/[name].js` — Vercel cron dispatcher with constant-time secret auth (add the new cron here or as its own file).
-- `api/_lib/migrations/` — add a migration for the audit table if not present.
-- `vercel.json` — cron schedule registration.
-
-## Current state & gaps
-- `buybackStats()` aggregates from `three_buyback_runs` but no scheduled job writes to it on a cadence.
-- Execution is gated behind `isEnabled()` + signer presence; when off it's a silent no-op with no operator signal.
-- No public, per-run verifiable trail (Solscan tx per buy) beyond what `buybackStats()` can show.
-- "Revenue earned so far" is currently $0 — confirm the revenue source (`agent_revenue_events`) is the real, complete ledger and that the commitment math is correct.
-
-## Build this
-1. **Scheduled buyback cron** (`api/cron/three-buyback.js` or a `[name].js` branch): runs every 6–12h. Computes `committed = revenue_since_last_run × commit_bps`, fetches a Jupiter quote (USDC→$THREE), submits + confirms the swap on mainnet, routes bought $THREE to the treasury, and writes a row to `three_buyback_runs` (usdc_spent, three_bought, price, tx signature, slippage, status, ran_at). Register it in `vercel.json`.
-2. **Idempotency & caps:** never double-spend the same revenue window (cursor/high-water mark in DB); enforce per-run and daily USD caps and max slippage; on quote/slippage failure, record a `skipped` run with reason — never a silent exit.
-3. **Resilience:** use the existing Solana RPC failover (`api/_lib/solana/`); retry with backoff; alert ops (`api/_lib/alerts.js`) on hard failure; record partial fills correctly.
-4. **Public proof endpoint:** ensure `GET /api/three-token/stats` (and/or a dedicated `GET /api/three-token/buybacks`) returns: total revenue, committed, deployed on-chain, $THREE bought, run count, and the last N runs each with a Solscan tx link. The token page already renders `recent_runs` — make sure the shape matches and links resolve.
-5. **Dry-run safety:** when the signer/env is unset (dev/preview), the cron computes and logs a *plan* (no on-chain send) and records nothing destructive — exactly like a real run minus the transaction.
-
-## Out of scope
-- Changing the commitment percentage or token split policy (governance decision).
-- The rewards/reflections distribution (that is **A02**).
-
-## Definition of done
-- [ ] Cron is registered, runs on schedule, and on a funded staging/preview signer executes a real buy you can open on Solscan.
-- [ ] Every run (success, skipped, failed) is persisted with a reason; no silent exits.
-- [ ] `buybackStats()` / the public endpoint reflects real runs with working Solscan links; the token page "Programmatic buybacks" panel shows them.
-- [ ] Caps, slippage, and idempotency are enforced and unit-tested (`tests/`); RPC failover + alerting covered.
-- [ ] Dry-run mode proven safe with the signer unset.
-- [ ] Changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Trigger the cron locally with the cron secret; confirm a row in `three_buyback_runs` and a `plan` in dry-run.
-- `curl https://three.ws/api/three-token/stats` (or your preview) and confirm the `buyback` block is populated and links resolve.
-- `npx vitest run` green, including new buyback tests.
diff --git a/prompts/production-1b/A02-reflections-distribution.md b/prompts/production-1b/A02-reflections-distribution.md
deleted file mode 100644
index 6a791fde4..000000000
--- a/prompts/production-1b/A02-reflections-distribution.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# A02 — $THREE reflections/rewards: complete on-chain distribution + receipts
-
-> Phase A · Depends on: A04 (snapshot freshness) ideally first · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-"Every paid action reflects $THREE back to holders pro-rata — deflation-free yield, no
-burn" is a core reason to hold. The pro-rata math exists and a distribution cron exists,
-but it computes a *plan* and does not reliably execute the on-chain transfers or record
-receipts. Holders need to see real SOL/$THREE land in their wallets with a verifiable tx.
-Finish the execution path and make every distribution auditable.
-
-## Where this lives (real files)
-- `api/cron/rewards-distribute.js` — reflections loop; currently produces a payout plan, dust-floor filtering, DRY-run when distributor key unset.
-- `api/_lib/token/rewards.js` — pure pro-rata math (pool → per-holder amounts).
-- `api/_lib/coin/three-holders.js`, `api/_lib/coin/payouts.js`, `api/_lib/coin/treasury.js` — holder balances + payout helpers.
-- `api/_lib/token/config.js` — `REVENUE_SHARE_POOL_PCT`, rewards wallet guards.
-- `api/_lib/migrations/` — add `three_rewards_distributions` if absent.
-
-## Current state & gaps
-- The execute branch loads the distributor key but does not complete batched on-chain transfers + confirmation.
-- No durable `three_rewards_distributions` record (cycle, holder count, total paid, per-batch tx signatures, status).
-- No public read for "last reflection, amount, when, tx" to back the holder-rewards claim.
-- Risk of fan-out DDoS if transfers are sent serially per holder without batching.
-
-## Build this
-1. **Complete execution:** in `rewards-distribute.js`, when the distributor secret is set, build batched SPL transfers to holder ATAs (chunked, with compute-budget priority fees), submit, confirm, and handle partial/failed batches with retry. Use the existing RPC failover.
-2. **Receipts:** write a `three_rewards_distributions` row per cycle (snapshot age used, eligible holders, total_pool_usd, total_paid, asset, batch tx signatures[], status, started_at/finished_at). Make it idempotent per cycle so a re-run resumes rather than double-pays.
-3. **Eligibility & dust:** enforce the min-payout dust floor and the holder min-USD floor already in code; exclude the treasury/LP/AMM pool wallets from payouts (the AMM vault is a top "holder" — never reflect to it).
-4. **Public proof:** add `GET /api/three-token/reflections` (or extend `/stats`) returning last cycle + recent cycles with Solscan links and 7d/30d totals. Wire it into the token page and the holder leaderboard.
-5. **Dry-run parity:** with the secret unset, log a full plan and persist nothing destructive.
-
-## Out of scope
-- The buyback engine (**A01**).
-- Changing the pool percentage (governance).
-
-## Definition of done
-- [ ] On a funded preview distributor, a cycle executes real batched transfers you can verify on Solscan, with a `three_rewards_distributions` receipt.
-- [ ] AMM/treasury wallets excluded; dust floors enforced; idempotent re-run resumes safely.
-- [ ] Public reflections endpoint populated and surfaced on the token page + holder leaderboard.
-- [ ] Unit tests for pro-rata math, exclusion, batching, idempotency; `npx vitest run` green.
-- [ ] Changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Run the cron in dry-run; confirm the plan and zero writes.
-- Run against a funded preview wallet with 2–3 test holders; confirm transfers land + receipt row.
-- `curl …/api/three-token/reflections` returns real, link-resolving data.
diff --git a/prompts/production-1b/A03-tier-gating-enforced.md b/prompts/production-1b/A03-tier-gating-enforced.md
deleted file mode 100644
index 83f59d1ae..000000000
--- a/prompts/production-1b/A03-tier-gating-enforced.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# A03 — Hold-to-access tiers enforced across every paid endpoint
-
-> Phase A · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-"Hold $THREE to unlock fee discounts, higher quotas, and pro perks." The tier ladder is
-computed correctly, but the discount and rate multipliers are only *applied* on some
-surfaces (forge). If a Gold holder still pays full price on most paid endpoints, the
-single biggest reason to accumulate $THREE is hollow. Enforce tiers everywhere money or
-quota is spent, and make the benefit visible.
-
-## Where this lives (real files)
-- `api/_lib/three-tier.js` — 5-tier ladder (Member→Bronze→Silver→Gold→Genesis), USD-value gating, fee discount bps + rate multipliers.
-- `api/_lib/forge-tiers.js` — reads tier for forge (the one surface that honors it today).
-- `api/_lib/holder-pass.js` — HMAC tier pass for gated worlds.
-- `api/x402/*.js` — ~27 paid endpoints using a `paidEndpoint()` helper; most do **not** apply tier discounts.
-- `api/_lib/rate-limit.js` — per-user/per-IP limiters whose thresholds should scale by tier.
-
-## Current state & gaps
-- Tier discount/multiplier computed in `three-tier.js` but applied inconsistently; only forge reads `forge-tiers.js`.
-- No single chokepoint: each paid endpoint prices independently, so discounts drift.
-- Rate-limit quotas don't scale by tier, so "higher quotas" is unproven.
-- No user-facing "your tier saved you $X" feedback or upgrade nudge.
-
-## Build this
-1. **Single pricing chokepoint:** add a helper (e.g. `api/_lib/token/apply-tier-pricing.js`) that, given a wallet + base price + base quota, returns the tier-adjusted price and quota. Route every `api/x402/*` endpoint and `paidEndpoint()` through it so discounts are computed in exactly one place.
-2. **Audit & wire all paid endpoints:** enumerate every paid surface (`api/x402/*.js`, forge, cosmetics, marketplace sales, mint-to-mesh, tutor, skill-call, vanity, etc.). For each, fetch the caller's tier and apply the discount before quoting. List any endpoint that intentionally has no discount and say why.
-3. **Tier-scaled quotas:** make the relevant `rate-limit.js` buckets multiply their threshold by the tier's rate multiplier so higher tiers genuinely get higher quotas. Return the effective quota in response headers.
-4. **Make it visible:** in the payment/checkout UI and forge, show "Tier: Gold — 20% off (you saved $X)" and, when a user is close to the next tier, a "hold N more $THREE to reach Silver" nudge linking to the swap.
-5. **Server-trust:** tier must be resolved server-side from on-chain balance (never trusted from the client).
-
-## Out of scope
-- The buyback (**A01**) and reflections (**A02**).
-- Designing new tiers or thresholds (governance).
-
-## Definition of done
-- [ ] Every paid endpoint routes pricing through the single chokepoint; an audit list shows each endpoint's discount status.
-- [ ] A test proves a Bronze/Silver/Gold holder is charged the correctly reduced price on ≥3 representative endpoints, and Member pays full.
-- [ ] Tier-scaled quotas applied to the key limiter buckets, with effective quota in headers.
-- [ ] UI shows tier savings + an upgrade nudge near a tier boundary.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Unit test: same endpoint, four tiers, assert four prices.
-- Hit a paid endpoint as a known-tier wallet; confirm the charged amount and headers.
diff --git a/prompts/production-1b/A04-holder-snapshot-freshness.md b/prompts/production-1b/A04-holder-snapshot-freshness.md
deleted file mode 100644
index 6eff83164..000000000
--- a/prompts/production-1b/A04-holder-snapshot-freshness.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# A04 — Holder snapshot freshness, reconciliation & alerting
-
-> Phase A · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Holder counts, tiers, reflections eligibility, the leaderboard, and the OG share card all
-read from one $THREE holder snapshot. If that snapshot goes stale (Helius/DAS rate-limited
-or the cron stalls), every downstream number silently drifts and reflections could pay the
-wrong set. Make the snapshot self-healing, observable, and never silently stale.
-
-## Where this lives (real files)
-- `api/_lib/coin/three-holders.js` — cached read/write layer; `threeHolderBalances()`, `threeHolderCount()`, `readThreeHolderSnapshot()` (30-min staleness gate), cold-fallback scan with cross-instance lock.
-- `api/cron/three-holders-snapshot.js` — the 5-minute refresh cron (single DAS scan).
-- `api/_lib/coin/holders.js` — full Helius DAS walk.
-- `api/three-token/[action].js` — `/stats` (holders) and `/leaderboard` consume the snapshot.
-
-## Current state & gaps
-- A single DAS scan per cron tick; if it fails or is throttled, the snapshot stales with no alert.
-- Public reads fall back to a cold scan (expensive) but nothing signals that the snapshot is degraded.
-- No public freshness signal (age of snapshot) and no operator alert past the 30-min gate.
-- Reconciliation between `holder_count` (meta) and actual ranked rows is assumed, not verified.
-
-## Build this
-1. **Resilient cron:** wrap the DAS scan in retry-with-backoff; on a zero/short result, refuse to overwrite a good snapshot (the code already guards the wipe — keep and test it) and alert ops.
-2. **Freshness signal:** add `GET /api/three-token/holder-snapshot-status` returning snapshot age, holder_count, and `fresh|stale|cold`. Surface a subtle "holders as of Xm ago" on the leaderboard.
-3. **Alerting:** if the snapshot exceeds the staleness threshold (e.g. >30m) or the cron fails N times, fire an ops alert (`api/_lib/alerts.js`) once per incident with recovery announcement.
-4. **Reconciliation check:** a lightweight assertion (in the cron and a test) that `meta.holder_count` equals the count of rows with balance > 0, and that treasury/AMM/LP wallets are flagged so A02/A03 can exclude them.
-5. **Cost control:** confirm the cold-fallback stampede guard (cross-instance lock + in-process single-flight) holds under concurrent reads; add a test.
-
-## Out of scope
-- Reflections execution (**A02**) and tier logic (**A03**) — this only guarantees the data they read.
-
-## Definition of done
-- [ ] Snapshot cron retries, never wipes on a bad scan, and alerts on failure + recovery.
-- [ ] Freshness endpoint live; leaderboard shows snapshot age.
-- [ ] Reconciliation assertion passes; treasury/AMM wallets flagged for exclusion.
-- [ ] Stampede guard tested under concurrency; `npx vitest run` green.
-- [ ] Changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Simulate a failed scan (mock DAS error) → snapshot preserved + alert fired.
-- `curl …/api/three-token/holder-snapshot-status` returns a sane age + count.
diff --git a/prompts/production-1b/A05-token-config-validation-and-trust-dashboard.md b/prompts/production-1b/A05-token-config-validation-and-trust-dashboard.md
deleted file mode 100644
index 7ad094e28..000000000
--- a/prompts/production-1b/A05-token-config-validation-and-trust-dashboard.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# A05 — On-chain token-config validation + public token-economy & trust dashboard
-
-> Phase A · Depends on: A01, A02 (their data feeds the dashboard) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Two things compound trust in a $1B token: (1) the platform can *prove* it is configured to
-move funds to the right on-chain addresses, and (2) anyone can see the whole economy at a
-glance — supply, treasury, buybacks, reflections, holders, tiers — with on-chain links. A
-silent misconfiguration (wrong mint/treasury) would route real money to the wrong place;
-a great public dashboard turns the economy into marketing.
-
-## Where this lives (real files)
-- `api/_lib/token/config.js` — mint, decimals, treasury, rewards, burn wallets from env; fail-closed guards.
-- `api/three-token/[action].js` — existing `/stats`, `/leaderboard`, `/burns`, `/activity`.
-- `pages/three-token.html` + `src/three-token-page.js` — public token page.
-- `pages/` + `data/pages.json` — add a `/three-token/proof` or `/three/trust` page if warranted.
-
-## Current state & gaps
-- Token config is env-only; no runtime check that env matches the real on-chain mint/treasury.
-- The "Programmatic buybacks" panel exists but there's no single, comprehensive economy view.
-- Holders, buybacks, reflections, tiers, burns live across endpoints with no unified proof surface.
-
-## Build this
-1. **Startup/boot validation:** add `validateTokenConfig()` that fetches the live mint (supply, decimals) and verifies it matches `TOKEN_MINT`/decimals; verifies the treasury & rewards wallets exist and (optionally) that recent transfers land there. Run it in a boot/health path and fail loudly on divergence. Add a test that pins the expected mint = `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-2. **Unified economy endpoint:** `GET /api/three-token/economy` returning on-chain supply + circulating, treasury address + balance, rewards pool balance, last buyback (amount, tx, when) + 7d/30d totals, last reflection + 7d/30d totals, holder count + tier distribution, total burned. All numbers link to Solscan.
-3. **Public trust dashboard:** a polished page (live 3D optional, reuse existing widgets) that renders the economy endpoint: every claim on the token page backed by a clickable on-chain receipt. Designed loading/empty/error states. Mobile-first.
-4. **Tier distribution:** show how many holders sit in each tier and the $THREE needed to climb — doubles as an upgrade funnel.
-5. **No other coin** anywhere (CLAUDE.md). Only `$THREE`.
-
-## Out of scope
-- Building the buyback/reflection *execution* (A01/A02) — this consumes their outputs.
-
-## Definition of done
-- [ ] `validateTokenConfig()` runs at boot/health, fails on mismatch, and a test pins the canonical mint.
-- [ ] `/api/three-token/economy` returns real, link-resolving figures.
-- [ ] Trust dashboard page is live, reachable from the token page + nav, with all states designed and responsive.
-- [ ] `npx vitest run` green; `npm run build:pages` passes (new page → changelog auto-entry); committed + pushed to both remotes.
-
-## Verify
-- Temporarily set a wrong treasury env locally → boot/health fails clearly; restore.
-- Open the trust page in a browser; click receipts → they resolve on Solscan.
diff --git a/prompts/production-1b/A06-treasury-custody-hardening.md b/prompts/production-1b/A06-treasury-custody-hardening.md
deleted file mode 100644
index 106daa717..000000000
--- a/prompts/production-1b/A06-treasury-custody-hardening.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# A06 — Treasury/buyback custody hardening (vault + approval gate + audit)
-
-> Phase A · Depends on: A01, A02 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The buyback and reflections signers are the keys to real money. Today they load from an
-env var as a raw secret — a single compromised env leaks the ability to drain the
-treasury. Before this economy scales, harden custody so that even a leaked key cannot move
-funds without an independent approval, and every signing event is audited.
-
-## Where this lives (real files)
-- `api/_lib/token/buyback.js` — `loadBuybackSigner()` / keypair-from-env.
-- `api/cron/rewards-distribute.js` — distributor key load.
-- `api/_lib/agent-wallet.js`, `api/_lib/avatar-wallet.js` — existing custodial-key decryption patterns to mirror.
-- `api/_lib/env.js` — centralized secret access.
-- `api/_lib/alerts.js`, `api/_lib/audit.js` (if present) — alerting/audit hooks.
-
-## Current state & gaps
-- Signer secret is a base64 env var; no rotation, no HSM/vault, no independent approval, no signing audit trail.
-- A compromised deploy env = unilateral spend authority over treasury operations.
-
-## Build this
-1. **Vaulted secret:** move signer secrets out of plain env into an encrypted-at-rest path consistent with `agent-wallet.js`/`avatar-wallet.js` (decrypt only in memory at sign time). Document that the raw secret must live in a vault (Vercel encrypted env at minimum; KMS/secrets-manager preferred), never in `.env` committed anywhere.
-2. **Approval gate:** require an independent approval before any on-chain spend above a configurable threshold — e.g. a multisig/squads approval address, or a second signer, or a per-run approved-amount record that the cron checks before sending. A leaked single key alone must not be able to spend.
-3. **Spend policy:** enforce per-run, daily, and monthly USD ceilings server-side; reject and alert on anything over policy.
-4. **Signing audit log:** every buyback/reflection signature writes an audit record (who/what/amount/tx/policy-decision/approver) that is queryable; alert on any spend outside policy.
-5. **Rotation runbook:** document how to rotate signer keys without downtime, and how to revoke a compromised key immediately (kill switch env that hard-disables spends).
-
-## Out of scope
-- The execution logic itself (A01/A02) — this wraps it in custody controls.
-
-## Definition of done
-- [ ] Signer secrets are vaulted/encrypted, decrypted only at sign time; no raw key in plain env or repo.
-- [ ] An approval gate + spend ceilings block any spend that lacks approval or exceeds policy, with a test proving a leaked-key-alone spend is rejected.
-- [ ] Every signing event is audited and queryable; out-of-policy attempts alert ops.
-- [ ] A kill switch hard-disables spends; rotation runbook written in `docs/`.
-- [ ] `npx vitest run` green; changelog entry (security tag); committed + pushed to both remotes.
-
-## Verify
-- Attempt a spend above the ceiling / without approval → rejected + alert.
-- Flip the kill switch → all spends refuse; audit records the refusal.
diff --git a/prompts/production-1b/A07-x402-pricing-and-catalog.md b/prompts/production-1b/A07-x402-pricing-and-catalog.md
deleted file mode 100644
index 5a8314d92..000000000
--- a/prompts/production-1b/A07-x402-pricing-and-catalog.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# A07 — x402 pricing: single source of truth + discoverable service catalog
-
-> Phase A · Depends on: none (pairs with A03) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-three.ws sells ~27 paid endpoints to agents over x402, plus paid MCP tools. But prices are
-hardcoded per endpoint in two places (web + MCP), and a caller discovering a service via
-the Bazaar can't see the price or rate budget until they call it. For agents to *shop* for
-services — the network-effect that grows GMV — pricing must be one source of truth and the
-catalog must be browsable by price and quota.
-
-## Where this lives (real files)
-- `api/x402/*.js` — ~27 paid endpoints using `paidEndpoint()` (prices embedded in code).
-- `mcp-server/src/` — MCP tools that embed their own prices.
-- `api/_lib/x402/bazaar-client.js` — multi-facilitator discovery (PayAI + CDP), normalizes v1/v2.
-- `api/_lib/x402/access-control.js` — subscriber bypass, tier limits, API-key auth.
-- `api/_lib/migrations/2026-06-19-x402_merchant.sql` — service registry + pricing metadata.
-
-## Current state & gaps
-- Prices duplicated across web endpoints and MCP tools; changing one risks drift.
-- No queryable catalog with price + rate-limit metadata; Bazaar gives name+schema only.
-- No `x-x402-price` style metadata on schemas for price-range browsing.
-
-## Build this
-1. **Single price config:** create one source of truth (e.g. `api/_lib/x402/prices.config.js` or the `marketplace_services` table) holding `{ service, price_usd, asset_mint, rate_per_min, rate_per_month, min_charge_usd }`. Refactor every `api/x402/*` endpoint and every MCP tool to read price from it. Keep a `pricing_version` for backward-compat.
-2. **Service catalog endpoint:** `GET /api/x402/service-catalog` returning every paid service with live price, asset, quota, and schema link — queryable by price range and category. Include tier-adjusted price hints (ties into A03).
-3. **Schema price metadata:** emit the price in each endpoint's 402 challenge and discovery schema (x402 v2 extension) so a Bazaar consumer sees the price without calling.
-4. **MCP/web parity test:** a test that asserts a given service's price is identical across the web endpoint and the MCP tool (no drift).
-5. **Catalog UI:** a simple, polished `/bazaar`-adjacent view (or extend the existing bazaar surface) that lists three.ws's own paid services with price + "try it" — designed empty/error/loading states.
-
-## Out of scope
-- Per-wallet metering and usage headers (**A08**).
-- Facilitator failover (**A09**).
-
-## Definition of done
-- [ ] All paid prices come from one config; a test proves web↔MCP parity.
-- [ ] `/api/x402/service-catalog` returns real, queryable pricing; 402 challenges carry price metadata.
-- [ ] Catalog UI lists services with price + try-it and all states designed.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Change a price in the config → both the web endpoint quote and the MCP tool reflect it.
-- `curl …/api/x402/service-catalog` returns priced, link-resolving services.
diff --git a/prompts/production-1b/A08-x402-metering-and-usage.md b/prompts/production-1b/A08-x402-metering-and-usage.md
deleted file mode 100644
index a31211e2b..000000000
--- a/prompts/production-1b/A08-x402-metering-and-usage.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# A08 — x402 per-wallet metering, rate-limit headers & usage endpoint
-
-> Phase A · Depends on: A07 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Paid endpoints today share coarse quotas but don't meter usage per paying wallet. That
-means a single caller can exhaust an expensive pipeline (forge, mesh), there's no
-`x-ratelimit-*` feedback for well-behaved agents, and a wallet can't see what it spent.
-Metering is how you protect capacity, price fairly, and give agents the predictability
-that makes them build on you.
-
-## Where this lives (real files)
-- `api/_lib/x402/access-control.js` — subscriber bypass, tier-based limits, API-key auth (extend here).
-- `api/_lib/x402/audit-log.js` — settlement ledger (per-settlement records exist).
-- `api/_lib/rate-limit.js` — Redis sliding-window limiters.
-- `api/x402/*.js` — paid endpoints to instrument.
-- `api/_lib/migrations/` — add `agent_x402_usage` if a durable rollup is needed.
-
-## Current state & gaps
-- No per-wallet calls/min, calls/day, or spend/month meter.
-- No `x-ratelimit-limit/remaining/reset` headers on paid responses.
-- No "your usage this month" read for a wallet.
-
-## Build this
-1. **Per-wallet meter:** in `access-control.js`, track calls and USD spend per wallet per minute/day/month (Redis counters; roll up to `agent_x402_usage` for durability). Tie the per-minute/day ceilings to tier (from A03).
-2. **Standard headers:** return `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset`, and a `x-x402-spend-month` header on every paid response so agents can self-throttle.
-3. **Usage endpoint:** `GET /api/x402/usage` (auth or signed by the wallet) returning calls + spend this minute/day/month and remaining quota per service.
-4. **Min-charge / dust guard:** enforce a per-service `min_charge_usd` (from A07's config) so sub-cent endpoints can't be hammered for free; add per-IP limits on the cheapest routes.
-5. **Graceful 429:** when metered out, return a clean 429 with `Retry-After` and a body explaining the limit + upgrade path (tier), never a generic error.
-
-## Out of scope
-- Pricing config (**A07**) and facilitator failover (**A09**).
-
-## Definition of done
-- [ ] Per-wallet metering enforced with tier-scaled ceilings; `agent_x402_usage` rollup persisted.
-- [ ] All paid responses carry `x-ratelimit-*` + spend headers; 429s are clean with `Retry-After`.
-- [ ] `/api/x402/usage` returns accurate per-wallet figures.
-- [ ] Min-charge + per-IP guard on cheap endpoints; tests cover meter math + 429 path.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Hammer a paid endpoint past the limit → 429 + `Retry-After` + headers decrement correctly.
-- `curl …/api/x402/usage` reflects the calls just made.
diff --git a/prompts/production-1b/A09-x402-facilitator-failover.md b/prompts/production-1b/A09-x402-facilitator-failover.md
deleted file mode 100644
index e7bc98d9d..000000000
--- a/prompts/production-1b/A09-x402-facilitator-failover.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# A09 — x402 facilitator failover + self-hosted fallback + admin health/metrics
-
-> Phase A · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Every paid call settles through an external x402 facilitator. Today there's a facilitator
-list but no failover: if the primary (PayAI) is down, settlements 5xx and revenue stops.
-Add ordered failover, a self-hosted fallback so three.ws never fully depends on a third
-party, and the health/metrics to see settlement reliability.
-
-## Where this lives (real files)
-- `api/_lib/x402/bazaar-client.js` — `DEFAULT_FACILITATORS` list, discovery, schema normalization.
-- `api/_lib/x402/a2a-server.js` / `a2a-client.js` — payment verify/settle.
-- `api/_lib/x402/audit-log.js` — settlement ledger.
-- `api/x402/*.js` — paid endpoints.
-
-## Current state & gaps
-- `verifyPayment()`/settlement targets a single facilitator with no fallback.
-- No facilitator health check; a facilitator outage looks like a platform outage.
-- No self-hosted `/verify` `/settle` `/supported` path as a last resort.
-
-## Build this
-1. **Ordered failover:** in the verify/settle path, try facilitators in priority order with a bounded timeout each; on failure, fall through to the next and log which failed. Never block revenue on one provider.
-2. **Self-hosted facilitator fallback:** deploy a minimal in-repo `/api/x402/facilitator/{verify,settle,supported}` that can verify + settle the `exact` scheme on Solana mainnet directly via our RPC, used as the final fallback. Guard it behind the same caps/audit as everything else.
-3. **Health + metrics:** `GET /api/admin/x402-health` (auth) checks every configured facilitator's `/supported`; `GET /api/admin/x402-metrics` shows settlement success rate, volume (daily/weekly/monthly), top endpoints, top payers, and facilitator error counts.
-4. **Alerting:** if settlement success rate drops below a threshold or a facilitator is down, alert ops once per incident.
-5. **Idempotency preserved:** failover must not double-settle — reuse the existing `idempotency-cache.js` keyed on payment identifier across providers.
-
-## Out of scope
-- Pricing (**A07**) and metering (**A08**).
-
-## Definition of done
-- [ ] Settlement fails over across facilitators and finally to the self-hosted path; proven by forcing the primary to fail.
-- [ ] Self-hosted facilitator verifies + settles a real Solana `exact` payment.
-- [ ] `/api/admin/x402-health` + `/api/admin/x402-metrics` return real data; low-success alert fires.
-- [ ] Idempotency holds across failover (no double-settle) — tested.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Point the primary facilitator at a dead URL → settlements still succeed via fallback; health shows the primary down.
diff --git a/prompts/production-1b/A10-a2a-dispute-and-reputation.md b/prompts/production-1b/A10-a2a-dispute-and-reputation.md
deleted file mode 100644
index 1faab897c..000000000
--- a/prompts/production-1b/A10-a2a-dispute-and-reputation.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# A10 — Agent-to-agent payments: dispute/refund + on-chain reputation
-
-> Phase A · Depends on: A07–A09 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Agents paying agents is the flywheel of an agent economy. Right now an agent can be paid,
-do the work badly (or not at all), and the buyer has no recourse and the seller no
-reputation cost. Without trust, agents won't transact at scale. Add an optional dispute
-window with refunds and tie settlement outcomes to on-chain reputation (ERC-8004) so good
-actors compound and bad actors are priced out.
-
-## Where this lives (real files)
-- `api/_lib/x402/a2a-server.js` / `a2a-client.js` — A2A payment verify/settle, delegation.
-- `api/_lib/x402/audit-log.js` — settlement ledger.
-- `contracts/` + `agent-protocol-sdk/` — ERC-8004 identity/reputation, agent-invocation program.
-- `mcp__3d-agent-local__agent_reputation` (MCP) — existing reputation read surface.
-
-## Current state & gaps
-- A2A settlement verifies payment but records no outcome and offers no dispute/refund.
-- No link between settlement quality and the ERC-8004 ReputationRegistry.
-
-## Build this
-1. **Dispute window:** add an optional, per-service `disputePeriod` (e.g. 24h). The buyer can open `POST /api/x402/a2a-dispute` with evidence; if upheld (rule or human/automated check), refund from the seller's escrowed/holdback balance.
-2. **Hold-back/escrow:** for disputable services, hold a configurable share of the payment until the dispute window closes, then release to the seller. Never let funds be both refundable and already spent.
-3. **Reputation integration:** on settlement complete (and on dispute outcome), write a reputation signal to the ERC-8004 ReputationRegistry (via `agent-protocol-sdk`/`contracts`) — successful, disputed, refunded. Surface the score on agent profiles (ties into B09).
-4. **Buyer protection UX:** the A2A client + any UI shows the seller's reputation before paying and the dispute path after.
-5. **Abuse guards:** rate-limit disputes per buyer; penalize frivolous disputes; require evidence.
-
-## Out of scope
-- Pricing/metering/failover (A07–A09).
-- Designing the reputation scoring formula beyond success/dispute/refund signals.
-
-## Definition of done
-- [ ] Disputable services hold back funds and honor a working dispute → refund path.
-- [ ] Settlement + dispute outcomes write real reputation signals on-chain; profiles show the score.
-- [ ] Dispute abuse guards in place; tests cover happy path, refund, frivolous-dispute rejection.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Run a paid A2A call, open a dispute, see the refund + reputation decrement; run a clean call, see reputation increment.
diff --git a/prompts/production-1b/A11-inline-402-pay-modal.md b/prompts/production-1b/A11-inline-402-pay-modal.md
deleted file mode 100644
index 9037f65cb..000000000
--- a/prompts/production-1b/A11-inline-402-pay-modal.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# A11 — Inline "Payment Required" (402) pay modal everywhere
-
-> Phase A · Depends on: A07 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-When a human (not an agent) hits a paid action, the experience must be a one-tap pay — not
-a dead 402 or a redirect. A frictionless inline checkout is the difference between a curious
-visitor and a paying user. Wire a single, reusable "Payment Required" modal that any surface
-can invoke, backed by the real x402 flow and the Jupiter/USDC rails already in the app.
-
-## Where this lives (real files)
-- `x402-payment-modal/`, `x402-modal-sdk/` — existing payment-modal SDK/UI.
-- `src/payment-modal.js` — in-app skill-purchase modal (wallet connect, USDC balance, settle).
-- `src/swap-jupiter.js` — swap/funding flow (top-up if balance is short).
-- `api/x402/*.js` + `api/_lib/x402/` — 402 challenge + settlement.
-- Surfaces that gate on payment: forge high tiers, marketplace skills, cosmetics, mint-to-mesh, etc.
-
-## Current state & gaps
-- `payment-modal.js` exists but isn't a universal, drop-in handler for any 402; some surfaces redirect or error.
-- Insufficient-balance flows aren't consistently wired to the funding/swap path across wallets.
-
-## Build this
-1. **Universal handler:** a single `openPaymentRequired({ challenge | endpoint, onPaid })` that: reads the 402 challenge (price from A07), connects the wallet, checks USDC balance, settles, and resolves with the unlocked result. Reuse `payment-modal.js`/`x402-modal-sdk`.
-2. **Top-up path:** if the balance is short, route into `swap-jupiter.js`/the fund flow, then resume the payment — no dead end.
-3. **Tier-aware price:** show the tier-adjusted price (A03) and any "hold more $THREE to save" nudge.
-4. **All states designed:** connecting, quoting, insufficient funds (with top-up), confirming, success (with receipt/Solscan link), error (retry / switch wallet). Accessible + mobile.
-5. **Adopt everywhere:** replace ad-hoc 402 handling on every paid human-facing surface with this handler. Audit and list the surfaces converted.
-
-## Out of scope
-- The agent (machine) payment path — that's the raw x402 + SDK, not this modal.
-
-## Definition of done
-- [ ] One reusable handler powers 402 checkout across all paid human surfaces (audit list provided).
-- [ ] Insufficient balance flows seamlessly into top-up and resumes the purchase.
-- [ ] Every state designed, accessible, responsive; success shows a verifiable receipt.
-- [ ] Works on Phantom + Solflare; `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Trigger a paid action with an empty wallet → top-up → pay → unlock, all inline.
-- Repeat on mobile width and with the keyboard only.
diff --git a/prompts/production-1b/B01-token-page-production-pass.md b/prompts/production-1b/B01-token-page-production-pass.md
deleted file mode 100644
index 47f06d6a0..000000000
--- a/prompts/production-1b/B01-token-page-production-pass.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# B01 — $THREE token page production pass
-
-> Phase B · Depends on: A01, A02, A05 (their data enriches it) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-`/three-token` is the single most important conversion page on the platform — it's where a
-visitor decides to buy and hold $THREE. It must be flawless: live, honest, fast, and
-screenshot-worthy. A recent fix made the graduated bonding-curve panel, holders, and the
-live DEX trade tape work; this pass takes the whole page to a world-class bar.
-
-## Where this lives (real files)
-- `pages/three-token.html` + `src/three-token-page.js` — the page.
-- `src/widgets/bonding-curve.js` — graduated/bonding curve widget.
-- `src/pump/three-token-data.js` — shared $THREE data store.
-- `api/three-token/[action].js` — `/stats`, `/leaderboard`, `/burns`, `/activity`.
-- `api/pump/dex-trades.js` — live DEX trade feed (graduated coin).
-- `src/swap-jupiter.js` — buy flow.
-
-## Current state & gaps
-- Core data now renders, but: loading states are thin; the buyback panel needs A01's real run data + Solscan links; the live tape should reconnect cleanly; mobile polish and microinteractions can go further.
-- The "Why hold" pillars should each deep-link to live proof (buybacks, reflections, tiers, economy dashboard from A05).
-
-## Build this
-1. **Every state designed:** skeletons for header stats, curve, tape, and buyback panel; recoverable error states with a real retry; empty states that tell the user what's next.
-2. **Live integrity:** the DEX trade tape polls/streams reliably with reconnect + "Live/Reconnecting" status; header price/mcap/volume/holders refresh without layout shift; numbers never show `NaN`/`$0` when real data exists.
-3. **Proof links:** buyback panel shows real runs (A01) with Solscan links; "Why hold" pillars link to the economy/trust dashboard (A05), reflections, and tiers.
-4. **Buy conversion:** prominent, fast buy via `swap-jupiter.js` with tier-aware messaging; copy-CA microinteraction; "you'd be holder #N" social proof from the leaderboard.
-5. **Performance & a11y:** lazy-load heavy widgets, debounce, `prefers-reduced-motion` respected; semantic landmarks, ARIA, keyboard, focus rings; perfect at 320/768/1440.
-6. **SEO/OG:** accurate title/description, dynamic OG image with live price/mcap.
-
-## Out of scope
-- Building buyback/reflection execution (A01/A02) — consume their outputs.
-
-## Definition of done
-- [ ] All states designed; no console errors/warnings; no layout shift on data arrival.
-- [ ] Live tape reconnects; header refreshes cleanly; buy flow works end-to-end on desktop + mobile.
-- [ ] Proof links resolve to live on-chain receipts; "Why hold" pillars all link somewhere real.
-- [ ] Lighthouse: a11y ≥95, perf ≥90 on mobile; `npx vitest run` green.
-- [ ] Changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Exercise the page in a real browser (desktop + 320px); Network tab shows real calls; click every link.
diff --git a/prompts/production-1b/B02-onboarding-wizard.md b/prompts/production-1b/B02-onboarding-wizard.md
deleted file mode 100644
index 8682505f9..000000000
--- a/prompts/production-1b/B02-onboarding-wizard.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# B02 — Onboarding / Get Started wizard production pass
-
-> Phase B · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-`/start` is the funnel: avatar → name/brain → skills → deploy → earn. Every drop-off here
-is a lost user and lost lifetime revenue. Make the wizard bulletproof, fast, and
-confidence-inspiring so a first-time visitor reaches a deployed, earning agent without
-hitting a single dead end.
-
-## Where this lives (real files)
-- `src/start.js` (~836 lines) — the 5-step wizard; persists to sessionStorage.
-- `src/create-agent.js` — the fuller create flow (reconcile shared steps).
-- Avatar sources: `src/forge.js`, scan, gallery; identity/deploy: `api/_lib/onchain-deploy.js`.
-- Auth: `src/wallet-auth.js`; payment: `src/payment-modal.js`.
-
-## Current state & gaps
-- Thin loading states (only ~1), avatar upload/generation errors not explicitly handled, no skill-selection validation, no pre-deploy wallet check, no post-deploy next-step.
-
-## Build this
-1. **Resilient steps:** every step has loading/empty/error states; avatar generation/upload failures offer retry or an alternate source; skill selection validates dependencies/conflicts.
-2. **Guard the deploy:** require a connected wallet (or guest-to-wallet upgrade) before the deploy step; show exactly what deploy costs and what the user gets.
-3. **Resumable:** persist progress (already sessionStorage) and let a returning user resume; never lose entered data on reload or error.
-4. **Post-deploy success:** a designed success state with the live agent link, embed snippet, "list on marketplace," and "fund/earn" next steps — turn completion into the next action.
-5. **Instrumentation:** fire funnel events at each step (entered/completed/abandoned) so drop-off is measurable (ties into G06).
-6. **A11y + mobile:** keyboard-navigable steps, focus management on step change, perfect at 320px.
-
-## Out of scope
-- Rebuilding the avatar generator (B05) or auth (B06) — wire to them.
-
-## Definition of done
-- [ ] Every step has all states; no path can dead-end; reload/resume preserves state.
-- [ ] Deploy is gated on wallet + clear cost; success state offers real next actions.
-- [ ] Funnel events fire; a11y + mobile verified; no console errors.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Complete the wizard end-to-end as a brand-new user on desktop + 320px; deploy a real agent; abandon mid-way and resume.
diff --git a/prompts/production-1b/B03-payment-and-swap.md b/prompts/production-1b/B03-payment-and-swap.md
deleted file mode 100644
index f6b2a7542..000000000
--- a/prompts/production-1b/B03-payment-and-swap.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# B03 — Payment modal + Jupiter swap production pass
-
-> Phase B · Depends on: A11 (shared modal) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-These two flows handle real money: the skill/asset payment modal and the token swap.
-Any rough edge here is a direct revenue leak and a trust hit. Harden both to bank-grade
-reliability and clarity across wallets, networks, and failure modes.
-
-## Where this lives (real files)
-- `src/payment-modal.js` (~728 lines) — skill purchase, wallet connect, USDC balance, settle.
-- `src/swap-jupiter.js` (~962 lines) — one-click swap (USDC ↔ assets), multi-chain.
-- `api/x402/` + `api/_lib/x402/` — settlement.
-- `src/wallet-auth.js` — wallet/session.
-
-## Current state & gaps
-- Payment: wallet-connect errors are generic; no retry UI; insufficient-funds flow not validated across all wallets; no timeout handling for a hung payment.
-- Swap: network-switch errors not surfaced; quote timeout/refresh missing; cross-chain bridge failures can show a blank state; slippage warnings missing on volatile pairs.
-
-## Build this
-1. **Payment modal:** specific, recoverable errors (network vs balance vs rejected); explicit retry / switch-wallet; insufficient-funds → top-up; bounded timeout with a clear "still pending / cancel" state; success shows a verifiable receipt.
-2. **Swap:** quote freshness with auto + manual refresh and a countdown; explicit network-switch handling; bridge/cross-chain failures surface a real error + retry, never a blank; slippage + price-impact warnings; min-received shown.
-3. **Wallet matrix:** verified on Phantom + Solflare (and document any wallet-specific quirks); graceful path when no wallet is installed.
-4. **A11y + mobile:** focus trap, ESC to close, keyboard operable, amount entry usable at 320px.
-5. **Telemetry:** record payment/swap attempts + outcomes (success/fail/reason) for G06.
-
-## Out of scope
-- The universal 402 handler structure (A11) — this hardens the modal internals it reuses.
-
-## Definition of done
-- [ ] Every error is specific + recoverable; timeouts handled; receipts verifiable.
-- [ ] Swap shows fresh quotes, slippage/impact, min-received; bridge failures handled.
-- [ ] Verified on Phantom + Solflare, desktop + 320px, keyboard-only.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Pay with: empty balance, rejected signature, network mismatch, and success — each shows the right state.
-- Swap a volatile pair: see slippage warning + min-received; force a stale quote → refresh works.
diff --git a/prompts/production-1b/B04-marketplace.md b/prompts/production-1b/B04-marketplace.md
deleted file mode 100644
index 346d8c309..000000000
--- a/prompts/production-1b/B04-marketplace.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# B04 — Marketplace + detail + creator profiles production pass
-
-> Phase B · Depends on: B03 (payment) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The marketplace is where supply (agents, skills, avatars) meets demand and where GMV — and
-the platform's 50%-to-buyback revenue — is generated. It's already large and capable; this
-pass closes the gaps that cost conversions and makes browsing → buying frictionless.
-
-## Where this lives (real files)
-- `src/marketplace.js` (~8.4k lines) + `src/marketplace-detail.js` — browse/search, fork, buy skills, creator profiles, live chat preview, ratings.
-- `src/marketplace-analytics.js` (~197 lines) — stats (under-built).
-- `src/payment-modal.js` — purchase.
-- `api/` marketplace endpoints + `api/_lib/skill-license-onchain.js` — skill licenses.
-
-## Current state & gaps
-- Detail avatar can stay on an emoji placeholder if render fails; live chat preview (SSE) drops silently with no reconnect; creator-profile modal lacks a skeleton; mobile sidebar may not fully render <600px; skill-purchase → agent-chat handoff unverified; rating freshness/weighting undocumented.
-- Analytics surface is thin (no clear chart lib, no "last updated," mobile axis overlap, generic error).
-
-## Build this
-1. **Detail integrity:** guarantee the 3D avatar renders or shows a designed fallback (never a stuck emoji); live chat preview reconnects with backoff + status; creator modal has a skeleton.
-2. **Buy → use loop:** after purchasing a skill, the buyer lands in the agent with the skill active; show it in their collection (`/collection`). Verify the on-chain skill-license path end-to-end.
-3. **Search/sort/filter:** URL-encode state so back/forward and sharing work; designed empty state for no results; pagination/infinite scroll without layout shift.
-4. **Analytics rebuild:** real charts with a named lib, "updated Xm ago," CSV export, mobile-legible axes, and a fallback to cached history on API failure.
-5. **Mobile + a11y:** sidebar/hamburger works <600px; cards keyboard-navigable; ratings accessible.
-
-## Out of scope
-- The payment modal internals (B03) — reuse them.
-
-## Definition of done
-- [ ] Detail avatar never stuck on placeholder; chat preview reconnects; creator modal skeleton.
-- [ ] Purchase → skill active in agent → visible in collection, verified on-chain.
-- [ ] Search/sort/filter state in the URL; empty state designed; no layout shift.
-- [ ] Analytics shows real charts + last-updated + export, mobile-legible.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Buy a skill end-to-end; confirm it's usable + in `/collection`; share a filtered URL and reopen it.
diff --git a/prompts/production-1b/B05-forge-end-to-end.md b/prompts/production-1b/B05-forge-end-to-end.md
deleted file mode 100644
index 1a738e34c..000000000
--- a/prompts/production-1b/B05-forge-end-to-end.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# B05 — Forge (text/image → 3D) end-to-end production pass
-
-> Phase B · Depends on: D01 (pipeline) ideally · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Forge is the platform's "wow" — text/photos → a real 3D model — and a primary paid surface
-(quality tiers). The magic only converts if it's reliable and honest about progress,
-failures, and cost. Take the whole generate → reveal → refine → pay loop to production.
-
-## Where this lives (real files)
-- `src/forge.js` (~2.5k lines) + `src/forge-pay.js`, `src/forge-enhance.js`, `src/forge-prompt-studio.js`, `src/forge-optimize.js`, `src/forge-reveal.js`, `src/forge-ar.js`.
-- `api/forge.js`, `api/x402/forge.js`, `api/_lib/forge-health.js`, `api/_lib/forge-tiers.js`.
-- Generation workers: `workers/model-*`, `workers/trellis`, etc.; free lane: NVIDIA NIM (TRELLIS).
-
-## Current state & gaps
-- 5-min poll can time out silently; engine failures don't say which engine or why; high-tier payment integration (`forge-pay.js`) handoff unclear; sketch-mode availability depends on a catalog health check with no clear fallback; multi-view fusion doesn't show which views were used; free-tier rate limits aren't surfaced; AR/download not validated on mobile.
-
-## Build this
-1. **Honest progress:** real per-stage progress; on timeout, a "taking longer than usual — keep waiting / retry / try another engine" state, never a silent stall.
-2. **Engine transparency + fallback:** show the active engine + health; on failure, name it and auto-fall-back across the engine chain (free NIM/TRELLIS primary), surfacing what happened.
-3. **Paid tiers wired:** Pro/High generation routes cleanly through `forge-pay.js` + the 402 modal (A11), tier discount applied (A03); show cost before charging; receipt after.
-4. **Quotas surfaced:** show remaining free generations and the upgrade path when the free lane is exhausted.
-5. **Result actions:** reliable download (GLB), AR (WebXR/Quick Look) tested on mobile, save-to-account, list-on-marketplace, and "rig + animate" handoff (D01).
-6. **All states + a11y + mobile:** loading/empty/error designed; keyboard + screen-reader labels; usable at 320px.
-
-## Out of scope
-- The generation worker internals/pipeline reliability (**D01**) — wire to and surface them.
-
-## Definition of done
-- [ ] No silent timeouts; engine failures are explained and fall back; sketch/multi-view degrade gracefully.
-- [ ] Paid tiers charge correctly (tier discount applied) with cost preview + receipt; free quota shown.
-- [ ] Download + AR + save + list all work, verified on mobile.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Generate free + paid; force an engine failure → fallback + message; test AR + download on a phone.
diff --git a/prompts/production-1b/B06-auth-and-session.md b/prompts/production-1b/B06-auth-and-session.md
deleted file mode 100644
index 92150cc84..000000000
--- a/prompts/production-1b/B06-auth-and-session.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# B06 — Auth (sign-in/up, session, wallet) production pass
-
-> Phase B · Depends on: none (foundational) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Auth is the foundation under every paid action and saved asset. Confusing sign-in, silent
-session expiry, or wallet mismatches quietly destroy conversion and trust. Make the entire
-identity layer obvious, resilient, and secure across email, social, and wallet.
-
-## Where this lives (real files)
-- `src/wallet-auth.js`, `pages/login.html` (+ register flow).
-- `api/_lib/auth.js` — OAuth/JWT, refresh tokens, session rotation, CSRF, API keys, Privy.
-- `api/_lib/agent-wallet.js` — custodial wallet binding.
-
-## Current state & gaps
-- Session timeout / expiry handling not surfaced to the user; "remember me" persistence unclear; social-login + wallet-connect error messaging basic; no clear re-auth on session/wallet mismatch.
-
-## Build this
-1. **Clear flows:** designed states for email, GitHub/social, and wallet sign-in + sign-up; specific errors (wrong creds, unverified email, popup blocked, wallet rejected) with recovery.
-2. **Session lifecycle:** on expiry, a non-destructive "your session expired — sign in to continue" prompt that resumes the in-progress action; honor refresh-token rotation; "remember me" with a documented, secure persistence.
-3. **Wallet ↔ account binding:** handle the case where the connected wallet differs from the signed-in account (prompt to switch/link, never silently act); make linking/unlinking wallets clear.
-4. **Email verification + reset:** working verify + password-reset with sensible link expiry and duplicate-email handling.
-5. **Security:** preserve CSRF + HttpOnly cookies; never expose tokens to JS; rate-limit auth attempts; (optionally) bind session to coarse device/IP signal with mobile tolerance.
-6. **A11y + mobile:** labels, focus, keyboard, 320px.
-
-## Out of scope
-- Deep token-binding/replay hardening (that's **G05/E08**) beyond the basics here.
-
-## Definition of done
-- [ ] All sign-in/up paths work with specific, recoverable errors; verification + reset work.
-- [ ] Session expiry prompts and resumes the user's action; wallet/account mismatch handled explicitly.
-- [ ] Auth attempts rate-limited; tokens never exposed; a11y + mobile verified.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Sign in via each method; let a session expire mid-action and confirm resume; connect a wallet that differs from the account.
diff --git a/prompts/production-1b/B07-dashboard-hub.md b/prompts/production-1b/B07-dashboard-hub.md
deleted file mode 100644
index 70ad00068..000000000
--- a/prompts/production-1b/B07-dashboard-hub.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# B07 — Dashboard hub + account + analytics + API keys production pass
-
-> Phase B · Depends on: B06 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The dashboard is where a user manages agents, avatars, payments, API keys, MCP servers,
-and monetization — the cockpit that turns a casual user into a power user and a payer.
-Make every panel real, actionable, and consistent.
-
-## Where this lives (real files)
-- `src/dashboard/` — dashboard shell + panels (account, analytics, API keys, MCP, monetization, billing).
-- `pages/dashboard*.html`, `data/pages.json` — routes incl. `/dashboard/three-token`, `/dashboard/holders`, `/dashboard/account`, `/dashboard/analytics`.
-- `api/` — keys, usage, billing, MCP registration endpoints.
-
-## Current state & gaps
-- Multi-tab/state sync unclear; API-key rotation UX; billing/usage export; MCP server registration wizard; mobile nested-tab navigation.
-
-## Build this
-1. **Every panel complete:** agents/avatars list with real actions (edit, delete-with-confirm, archive); each panel has loading/empty/error/populated states and a helpful empty state that drives the next action.
-2. **API keys:** create/rotate/revoke with clear one-time-reveal, scopes, last-used, and copy affordance; never re-expose a secret.
-3. **Analytics:** real API-call volume + x402 spend + per-agent breakdowns, with date range, CSV export, and "updated Xm ago."
-4. **Monetization/billing:** show earnings (from skills/x402/reflections), payout history with Solscan links, and pricing controls; everything reconciles with the on-chain ledger.
-5. **MCP registration:** a guided flow to register/list MCP servers tied to the account.
-6. **Consistency + mobile + a11y:** shared layout/tokens; nested tabs navigable on mobile; keyboard + focus management.
-
-## Out of scope
-- The token economy dashboard (A05) — link to it.
-
-## Definition of done
-- [ ] Every panel has all states + real actions; destructive actions confirm.
-- [ ] API keys rotate safely; analytics export works; billing reconciles with on-chain data.
-- [ ] MCP registration works; mobile nav + a11y verified; no console errors.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Rotate an API key and confirm the old one stops working; export analytics CSV; register an MCP server; navigate every tab on mobile.
diff --git a/prompts/production-1b/B08-agent-studio.md b/prompts/production-1b/B08-agent-studio.md
deleted file mode 100644
index 7cd719e51..000000000
--- a/prompts/production-1b/B08-agent-studio.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# B08 — Agent Studio (brain/memory/body/money/skills) production pass
-
-> Phase B · Depends on: B06 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Agent Studio is where users invest effort into their agents — the deeper the investment,
-the higher the retention and the more they spend. It's a sophisticated multi-tab editor;
-this pass closes the reliability gaps (concurrent edits, optimistic rollback, offline) that
-erode trust in a tool people rely on.
-
-## Where this lives (real files)
-- `src/studio/studio-shell.js`, `src/studio/agent-studio-store.js` — shell + store (debounced PUT, optimistic UI, live preview).
-- `src/studio/brain/`, `src/studio/memory/`, `src/studio/body/`, `src/studio/money/`, `src/studio/skills/` — sub-studios.
-- `api/` agent update endpoints; `src/agent-presence.js` — live avatar presence.
-
-## Current state & gaps
-- Concurrent edits across tabs = last-write-wins with no conflict signal; optimistic rollback on PUT failure can flicker; sub-studio state is isolated so avatar updates can lag; offline/edit-queue behavior unclear.
-
-## Build this
-1. **Conflict handling:** detect a concurrent edit (version/updated_at check) and prompt to reload/merge instead of silently clobbering; show "saved / saving / failed" status clearly.
-2. **Robust optimistic UI:** on PUT failure, roll back cleanly without flicker and surface a retry; never leave the UI showing an unsaved value as saved.
-3. **Shared live preview:** brain/memory/body/money/skills changes reflect in the shared 3D preview promptly; presence updates don't flicker on large edits.
-4. **Offline/queue:** detect offline, queue edits, and reconcile on reconnect (or clearly block with a message) — no lost work.
-5. **Each sub-studio complete:** brain (LLM + prompt), memory (CRUD with the memory model), body (avatar + outfit), money (wallet + pricing), skills (install/configure/remove) each have all states and validate input.
-6. **A11y + mobile:** tabs and editors keyboard-navigable; usable on tablet.
-
-## Out of scope
-- The avatar pipeline (D01) and payment internals (B03) — wire to them.
-
-## Definition of done
-- [ ] Concurrent edits are detected and never silently clobber; save status always accurate.
-- [ ] Optimistic updates roll back cleanly; offline edits queue + reconcile or block clearly.
-- [ ] Live preview reflects every sub-studio; each sub-studio has all states + validation.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Edit the same agent in two tabs → conflict surfaced; kill the network mid-edit → queued/blocked, no data loss; change body → preview updates.
diff --git a/prompts/production-1b/B09-agent-profile-and-embed.md b/prompts/production-1b/B09-agent-profile-and-embed.md
deleted file mode 100644
index 4d4782dbe..000000000
--- a/prompts/production-1b/B09-agent-profile-and-embed.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# B09 — Agent profile pages + embeddable widget production pass
-
-> Phase B · Depends on: A10 (reputation) optional · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Agent profiles are the platform's shareable unit — the link that spreads on social, the
-embed that lives on other sites. Every profile is a billboard and a storefront. Make them
-load fast, render the 3D agent flawlessly, convert to chat/buy, and embed anywhere.
-
-## Where this lives (real files)
-- `src/agent-detail.js` (~2.1k lines), `src/agent-home.js`, `src/agent-detail-market.js`, `src/agent-embed-modal.js`.
-- `avatar-sdk/` (`<agent-3d>` web component), `page-agent-sdk/`.
-- OG: `api/agent-og.js`, `api/a-og.js`; identity: `contracts/`, ERC-8004/Solana badges.
-
-## Current state & gaps
-- On-chain identity badges load async and can show a placeholder; embed code needs cross-browser verification; fork semantics (does it copy memory/skills?) undocumented; private-agent access shows ambiguous 404 vs no-access.
-
-## Build this
-1. **Flawless render:** the 3D agent loads with a skeleton then renders, or a designed fallback — never a stuck placeholder; identity badges resolve without layout shift.
-2. **Convert:** prominent chat + buy/fork CTAs; show reputation (A10) and launch history; "powered by three.ws" embed builder that produces a working snippet, tested on a real third-party page.
-3. **Fork/remix clarity:** state exactly what a fork copies (body/brain/skills/memory) and complete the flow end-to-end.
-4. **Access control:** private agents return a clear "no access / sign in" state, not a bare 404; public ones are crawlable.
-5. **Dynamic OG:** per-agent OG image (avatar + name + stats) so shares look great.
-6. **Perf + a11y + mobile:** lazy-load 3D, `prefers-reduced-motion`, semantic structure, 320px.
-
-## Out of scope
-- Reputation scoring (A10) — display it.
-
-## Definition of done
-- [ ] 3D render + badges never stick on placeholder; embed snippet works on an external page across Chrome/Safari/Firefox.
-- [ ] Chat/buy/fork CTAs work; fork copies the documented set; private access state is clear.
-- [ ] Dynamic OG renders; Lighthouse a11y ≥95; mobile verified.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Open a profile, chat, fork; paste the embed on a scratch HTML page and confirm it loads; share the URL and check the OG preview.
diff --git a/prompts/production-1b/B10-launch-and-launches-feed.md b/prompts/production-1b/B10-launch-and-launches-feed.md
deleted file mode 100644
index f53d6639e..000000000
--- a/prompts/production-1b/B10-launch-and-launches-feed.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# B10 — Launch-a-coin + launches feed production pass
-
-> Phase B · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Agents launching coins through three.ws — and the public feed of those launches — is both
-a revenue surface and a core product loop. The feed is the proof that the platform is alive.
-Make launching reliable and the feed beautiful, accurate, and never empty-looking.
-
-## Where this lives (real files)
-- `src/launches.js` (~907 lines) — live feed of agent-launched coins; `/api/pump/launches` over `pump_agent_mints`.
-- Launch flow: `api/pump/*`, vanity mint (`scripts/pump-vanity-grind.mjs`, vanity grinder), `api/x402/pump-launch.js`.
-- `src/pump/three-token-data.js` for shared market data.
-
-## Current state & gaps
-- Launches feed has **no empty state**; market data streams after registry rows so cards layout-shift; identicon fallback unclear; marquee built from page 1 (breaks if empty); cursor-light effect won't work on mobile; 60s refresh may prepend stale items.
-- The launch flow (vanity mint, deploy, redirect) needs a confirmed-success path with no race.
-
-## Build this
-1. **Feed states:** designed empty state ("no launches yet — be the first") and error/loading skeletons; reserve card sizes so streaming market data never shifts layout.
-2. **Launch flow:** progress through vanity-mint → deploy → confirm; guarantee the success state links to the live coin (and the in-platform coin world if applicable) with no redirect race; handle failure with a clear retry.
-3. **Compliance:** these are platform launch records (allowed per CLAUDE.md's launch-directory exception) — render them as records, never hardcode/recommend any non-$THREE mint; `$THREE` remains the only coin promoted.
-4. **Polish:** identicon fallback always renders; marquee handles empty/short pages; disable cursor-light on touch; refresh merges without duplicates or stale prepends.
-5. **A11y + mobile + perf:** keyboard-navigable cards, lazy-loaded media, 320px.
-
-## Out of scope
-- The pump.fun launcher's generic mint input (leave coin-agnostic per CLAUDE.md).
-
-## Definition of done
-- [ ] Feed has empty/error/loading states; zero layout shift on market-data arrival.
-- [ ] Launch flow confirms success with a working coin link and no race; failures recover.
-- [ ] Compliance respected ($THREE only promoted); marquee/identicon/refresh robust.
-- [ ] Mobile + a11y verified; `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Load the feed with zero results (mock) → empty state; launch a coin on a preview and confirm the success link; watch a refresh cycle for shifts/dupes.
diff --git a/prompts/production-1b/C01-oracle-and-arm.md b/prompts/production-1b/C01-oracle-and-arm.md
deleted file mode 100644
index 05a3c087e..000000000
--- a/prompts/production-1b/C01-oracle-and-arm.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# C01 — Oracle conviction engine + Arm automation production pass
-
-> Phase C · Depends on: B03 (payment), B06 (auth) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The Oracle (AI conviction scoring for pump.fun launches) and "Arm" (let an agent trade on
-that conviction automatically) are flagship intelligence features and a retention magnet
-for traders. Arm in particular moves real money with thin instrumentation today — that's a
-risk. Harden both to production and make the automation trustworthy.
-
-## Where this lives (real files)
-- `src/oracle.js` (~1.7k lines) — conviction score (pedigree/structure/narrative/momentum), watchlists, wallet leaderboard, force graph.
-- `src/arm.js` (~333 lines) — configure agent trading (min conviction, sizing, caps, filters, Telegram alerts, simulate vs live).
-- `workers/oracle/` — settle/agent/score loops; `api/cron/oracle-*`.
-- `src/activity.js` — live feed of agent actions (pair with **C02**).
-
-## Current state & gaps
-- Oracle: graph failures show a generic message with no retry; wallet leaderboard has no pagination; force-graph load timeout unhandled.
-- Arm: **under-instrumented for what it does** — only ~2 catch blocks for money-moving config; no loading states; wallet state not validated before enabling live trading; cap validation, Telegram health, and simulate→live safeguards unclear.
-
-## Build this
-1. **Arm safety first:** validate wallet + balance before enabling live mode; enforce + validate position/daily/open caps server-side; require a successful simulation (or explicit acknowledgement) before going live; a prominent live-vs-simulate indicator and a kill switch.
-2. **Arm reliability:** loading/empty/error states for agent load + config save; verify the Telegram alert path actually delivers (health check) before promising alerts; record every automated trade with reasoning for the activity feed.
-3. **Oracle resilience:** graph/score failures auto-retry with backoff + a manual retry; force-graph has a skeleton + timeout fallback; wallet leaderboard paginates; score methodology is explained in-UI (build trust).
-4. **Honesty:** never imply a score is a recommendation to buy a non-$THREE coin — present it as analytics/intelligence (CLAUDE.md: $THREE is the only coin promoted; coin records/analytics are a product feature, not endorsement).
-5. **A11y + mobile + perf:** keyboard, focus, lazy-load the graph, 320px.
-
-## Out of scope
-- The activity feed surface itself (**C02**) — emit to it.
-
-## Definition of done
-- [ ] Arm cannot enable live trading without a valid wallet + caps + simulation/ack; kill switch works; every auto-trade is logged with reasoning.
-- [ ] Telegram alerts verified deliverable; Arm has all states.
-- [ ] Oracle graph/leaderboard resilient (retry, pagination, skeleton); methodology explained.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Try to arm live with no wallet/over-cap → blocked with a clear reason; run a simulation; trigger a test alert and confirm delivery; fail the graph fetch → retry works.
diff --git a/prompts/production-1b/C02-activity-trending-feed-community.md b/prompts/production-1b/C02-activity-trending-feed-community.md
deleted file mode 100644
index 2b1a2ddb3..000000000
--- a/prompts/production-1b/C02-activity-trending-feed-community.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# C02 — Activity + Trending + Feed + Community production pass
-
-> Phase C · Depends on: C01 (emits activity) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-These are the "the platform is alive" surfaces — live agent actions, what's hot, what your
-network is doing, who's building. Vibrant, honest, real-time social proof drives sessions
-and word-of-mouth. Make them real-time, accurate, and never look dead.
-
-## Where this lives (real files)
-- `src/activity.js` — live feed of autonomous agent actions (Oracle conviction), filterable by tier/mode, with outcomes.
-- `src/trending.js` — top agents (by activity) + top Oracle coins (24h/7d/all-time).
-- `src/feed.js` — activity from followed people/agents.
-- `src/community.js` — featured creators/builds/conversations.
-- Backing endpoints under `api/` (verify each exists and returns real data).
-
-## Current state & gaps
-- Some of these modules are thin or unverified; data freshness, follow/unfollow persistence, time-window switching (loses scroll), and activity-weighting definitions need to be real and documented.
-
-## Build this
-1. **Activity feed:** real-time stream (SSE/poll) of agent actions with outcome tracking; filters by tier/mode; designed empty/error states; reconnect with status; each item links to the agent and (where applicable) the on-chain tx.
-2. **Trending:** real ranking with a documented metric; window switches (24h/7d/all) preserve scroll; "updated Xm ago"; empty/loading states.
-3. **Feed:** durable follow/unfollow; chronological + (optional) ranked; mute/block; mobile-legible long content.
-4. **Community:** real featured content (not hardcoded); curation source documented; links resolve.
-5. **Honesty + compliance:** coins shown are records/analytics; $THREE remains the only promoted coin.
-6. **A11y + mobile + perf:** keyboard, lazy media, 320px.
-
-## Out of scope
-- Oracle/Arm internals (**C01**).
-
-## Definition of done
-- [ ] Activity streams in real time with reconnect + outcomes; trending ranks by a documented metric and preserves scroll across windows.
-- [ ] Follow/unfollow persists; community shows real featured content; all links resolve.
-- [ ] All states designed; no module shows hardcoded/sample data; mobile + a11y verified.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Watch the activity feed update live; follow an agent and confirm it appears in your feed after reload; switch trending windows without losing place.
diff --git a/prompts/production-1b/C03-leaderboards-smartmoney-radar.md b/prompts/production-1b/C03-leaderboards-smartmoney-radar.md
deleted file mode 100644
index a3c5753f0..000000000
--- a/prompts/production-1b/C03-leaderboards-smartmoney-radar.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# C03 — Leaderboards + Smart Money + Radar production pass
-
-> Phase C · Depends on: A04 (holder snapshot) for holder board · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Provable track records (trader P&L), proven-money signals (smart money), risk intelligence
-(radar), and the $THREE holder leaderboard are credibility surfaces — they make the
-platform feel like a serious financial product. Make every number defensible and every
-board fast and fair.
-
-## Where this lives (real files)
-- Trader: `src/leaderboard.js` / `src/kol/*`; on-chain P&L attestation `api/cron/trader-score-attest.js`.
-- Walk: `src/walk-leaderboard.js`.
-- Holders: `api/three-token/[action].js` `/leaderboard` + `api/_lib/coin/three-holders.js`.
-- Smart money: `src/smart-money.js` + `api/cron/smart-money-*`.
-- Radar: `src/radar.js` (bundle vs organic, wallet concentration, dev behavior, risk flags).
-
-## Current state & gaps
-- Data freshness, pagination for large boards, and methodology docs are inconsistent; P&L/score formulas undocumented; radar risk flags lack explanations + confidence; holder board should exclude treasury/AMM/LP wallets (from A04).
-
-## Build this
-1. **Methodology transparency:** document and surface how each metric is computed (P&L realized/unrealized, win rate, conviction, reputation, risk flags) with confidence where relevant — credibility comes from being checkable.
-2. **Performance:** paginate/virtualize large boards; "updated Xm ago"; cache with sane TTL; no jank at thousands of rows.
-3. **Holder board:** exclude treasury/AMM/LP wallets (flagged in A04); show % of supply, tier, and rank; link wallets to Solscan.
-4. **Radar:** every risk flag has a plain-language explanation + confidence; never present as buy/sell advice for any non-$THREE coin (analytics only).
-5. **Anti-gaming:** basic cheat detection (e.g. teleport detection on walk, wash-trade hints on trader) noted where feasible.
-6. **A11y + mobile:** sortable tables keyboard-operable; legible at 320px.
-
-## Out of scope
-- Copy-trading execution (treat as a separate flow if present) beyond linking to it.
-
-## Definition of done
-- [ ] Each board documents + surfaces its methodology; large boards paginate without jank.
-- [ ] Holder board excludes treasury/AMM/LP and links to Solscan; radar flags explained + confidence.
-- [ ] All boards have freshness + all states; mobile + a11y verified.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Open each board; confirm methodology is visible, holder board excludes the AMM vault, and large boards scroll smoothly.
diff --git a/prompts/production-1b/C04-galleries-and-discovery.md b/prompts/production-1b/C04-galleries-and-discovery.md
deleted file mode 100644
index 70bbd51c1..000000000
--- a/prompts/production-1b/C04-galleries-and-discovery.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# C04 — Galleries (avatars, animations, agent discovery) production pass
-
-> Phase C · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Discovery surfaces — the agent directory, avatar gallery, animation gallery — are how users
-find what to use, fork, and buy. Rich, fast, filterable galleries with great 3D previews
-turn browsing into creating and buying.
-
-## Where this lives (real files)
-- `src/agents-directory.js` (~619 lines) — agent discovery with on-chain identity badges.
-- Avatar gallery + animation library (`src/animation-library.js` ~745 lines) and their pages in `data/pages.json`.
-- `avatar-sdk/` viewer for 3D previews.
-
-## Current state & gaps
-- Badges load async (placeholder flash); search/sort state not URL-encoded (back button loses filters); pagination for large sets; mobile grid performance; avatar download permissions unclear; animation compatibility (humanoid-only) not enforced; preview load times for large assets.
-
-## Build this
-1. **Fast 3D previews:** lazy-load and virtualize grids; thumbnail/poster first, full 3D on interaction; skeletons; never block scroll on model loads.
-2. **Filter/sort/search in the URL:** shareable, back-button-safe; designed empty state for no results.
-3. **Identity badges:** resolve without layout shift; skeleton instead of placeholder flash.
-4. **Permissions & compatibility:** clarify + enforce avatar download permissions; warn/guard when applying a non-humanoid-compatible animation (ties to the universal rig rules in CLAUDE.md).
-5. **Apply/use loop:** "apply animation to my avatar" with an avatar picker; "use this avatar" handoff to studio/create.
-6. **A11y + mobile + perf:** keyboard-navigable cards, contrast, 320px, smooth at 1000+ items.
-
-## Out of scope
-- The avatar generation/rig pipeline (**D01**) — link to it.
-
-## Definition of done
-- [ ] Grids are fast + virtualized with skeletons; filter/search/sort live in the URL; empty state designed.
-- [ ] Badges resolve without flash; download permissions + animation compatibility enforced.
-- [ ] Apply/use handoffs work; mobile + a11y verified; smooth at 1000+ items.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Filter a gallery, copy the URL, reopen → same filters; apply an animation to an avatar; scroll 1000+ items without jank.
diff --git a/prompts/production-1b/D01-avatar-pipeline-reliability.md b/prompts/production-1b/D01-avatar-pipeline-reliability.md
deleted file mode 100644
index cbf030d21..000000000
--- a/prompts/production-1b/D01-avatar-pipeline-reliability.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# D01 — Avatar pipeline reliability (forge → auto-rig → animate) hardening
-
-> Phase D · Depends on: none (foundational for B05, C04, D2–D4) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The whole 3D product rests on one pipeline: generate a mesh → auto-rig it → retarget the
-animation library onto it → render it everywhere. CLAUDE.md mandates universal animation
-(no rig allowlist). When any stage silently fails, avatars T-pose, animations break, and
-the magic dies. Make the pipeline observably reliable end-to-end.
-
-## Where this lives (real files)
-- `src/glb-canonicalize.js` — maps diverse rig bone names (Mixamo, Avaturn, Unreal, VRM/VRoid, Daz, MakeHuman, Blender `.L`, etc.) to the canonical set.
-- `src/animation-retarget.js` — retargets idle/walk onto canonicalized rigs; `AnimationManager.supportsCanonicalClips()` gate.
-- `tests/glb-canonicalize.test.js` — bone-mapping coverage.
-- `api/_lib/auto-rig.js`, `api/cron/auto-rig-sweep.js` — auto-rig + backfill sweep.
-- Workers: `workers/unirig`, `workers/model-*`, `workers/remesh`, `workers/rembg`, etc.
-
-## Current state & gaps
-- New skeleton conventions can slip through to a bind-pose T-pose instead of falling back to the default rig; auto-rig failures need clear surfacing + retry; the auto-rig sweep should backfill static avatars; `auto-rig.js` fetches user URLs without SSRF validation (overlaps E08).
-
-## Build this
-1. **No silent T-pose:** guarantee a rig that genuinely can't be skeleton-driven falls back to the default rig via `supportsCanonicalClips()` — never a bind-pose T-pose. Add a diagnostic that flags any avatar rendering un-animated.
-2. **Bone-map coverage:** add a fixture-backed test for every supported convention in `glb-canonicalize.js`; when a new convention appears, the path to add a mapping (+ test case) is documented and easy.
-3. **Auto-rig reliability:** surface rig job status (queued/running/failed) to the user with retry; the sweep cron backfills un-rigged static avatars and reports counts; alert on sustained failures.
-4. **Worker health:** each generation/rig worker reports health; failures propagate to `forge-health.js` + ops, not just local logs.
-5. **SSRF guard:** validate every user-supplied model URL (https only, no localhost/private ranges) before fetch (coordinate with **E08**).
-6. **Golden tests:** a small set of real GLBs across conventions retarget correctly (legs included) in CI.
-
-## Out of scope
-- The Forge UI (**B05**) — this is the pipeline beneath it.
-
-## Definition of done
-- [ ] No avatar ever T-poses: unsupported rigs fall back to the default rig, proven by a test + a runtime diagnostic.
-- [ ] Every bone convention in `glb-canonicalize.js` has a test case; golden GLBs retarget correctly in CI.
-- [ ] Auto-rig status + retry surfaced; sweep backfills + reports; worker health propagates to ops.
-- [ ] User model URLs SSRF-validated; `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Feed avatars from ≥3 rig conventions → all animate (legs included); feed a non-humanoid prop → default-rig fallback, not T-pose; fail a rig job → status + retry shown.
diff --git a/prompts/production-1b/D02-walk-companion-and-playground.md b/prompts/production-1b/D02-walk-companion-and-playground.md
deleted file mode 100644
index 27e98fbc8..000000000
--- a/prompts/production-1b/D02-walk-companion-and-playground.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# D02 — Walk companion + playground + leaderboard + embed production pass
-
-> Phase D · Depends on: D01 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The walk companion is a viral embed — a 3D avatar that strolls across any website, with a
-global distance leaderboard and a full playground. It's top-of-funnel reach: every embed is
-a billboard. Make it rock-solid, reconnect reliably, and look great on any host and device.
-
-## Where this lives (real files)
-- `src/walk.js` (~5k lines), `src/walk-playground.js`, `src/walk-embed-preview.js`, `src/walk-leaderboard.js`, `src/walk-net.js` (networking).
-- `walk-sdk/` → `@three-ws/walk`; `/walk`, `/temporary`, `/walk-leaderboard` routes.
-
-## Current state & gaps
-- AR passthrough camera-permission denial not clearly handled; `walk-net.js` reconnects only once then stalls; leaderboard sort/pagination state not URL-encoded; mobile joystick sizing not responsive; embed iframe can fail silently if a host blocks third-party frames; Chrome-extension install/permissions undocumented.
-
-## Build this
-1. **Resilient networking:** reconnect with exponential backoff (not single-attempt); clear "live/reconnecting/offline" status; no stuck state.
-2. **AR + controls:** camera-permission denial → designed fallback (non-AR mode); responsive joystick sized to viewport/orientation; touch + keyboard parity.
-3. **Embed robustness:** detect blocked-iframe/CORS and show a fallback message + link; document required embed headers; verify on a real third-party page.
-4. **Leaderboard:** URL-encode sort/pagination; document the distance/time scoring; basic cheat detection (teleport); freshness + all states.
-5. **Cross-surface avatar:** uses the same pipeline as D01 (no T-pose); diverse avatar picker works.
-6. **Perf + a11y + mobile:** steady frame rate, `prefers-reduced-motion`, keyboard, 320px.
-
-## Out of scope
-- The avatar pipeline internals (**D01**).
-
-## Definition of done
-- [ ] Reconnect is resilient with clear status; AR denial + blocked-embed have designed fallbacks.
-- [ ] Leaderboard state in URL with documented scoring + cheat guard; joystick responsive.
-- [ ] Embed verified on an external site; `@three-ws/walk` builds; mobile + a11y verified.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Embed on a scratch site (and one that blocks frames → fallback); kill the network mid-walk → reconnects; deny camera → non-AR fallback; play on a phone.
diff --git a/prompts/production-1b/D03-irl-and-play-worlds.md b/prompts/production-1b/D03-irl-and-play-worlds.md
deleted file mode 100644
index 3973111f0..000000000
--- a/prompts/production-1b/D03-irl-and-play-worlds.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# D03 — IRL (AR placement) + Play (coin worlds, multiplayer) production pass
-
-> Phase D · Depends on: D01 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-IRL (place 3D agents in your real environment via AR) and Play (a deterministic 3D world
-per coin where holders gather, chat, and trade) are the differentiated, shareable
-experiences that make three.ws more than a tool. They're also the hardest to make
-reliable. Get them to a stable, joinable, no-crash baseline.
-
-## Where this lives (real files)
-- `src/irl.js` — AR passthrough, joystick, tap-to-place, location-aware nearby agents; `api/cron/irl-reap.js` (expiry).
-- `src/game/boot-avatar.js`, `src/game/coincommunities.js`, `src/game/ambient-crowd.js` — coin worlds.
-- `multiplayer/` (`@three-ws/multiplayer`) — position sync, presence; `api/cron/world-health.js`.
-
-## Current state & gaps
-- IRL: GPS/compass permission denial handling, placed-agent persistence (local vs server), privacy mode (nearby-only visibility), compass-less device fallback.
-- Play: world-generation determinism (seed), multiplayer position-sync reliability, chat delivery under low bandwidth, in-world trade latency, mobile frame rate, exit/save state.
-
-## Build this
-1. **IRL permissions + fallback:** graceful handling when GPS/compass denied or absent (heading from GPS, or a manual-orient fallback); placed agents persist with a documented strategy; privacy mode keeps placements nearby-only.
-2. **Play determinism:** same seed → same world, verified; reserve a clear loading state while the world boots.
-3. **Multiplayer stability:** reliable presence + position sync with interpolation; reconnect on drop; cap concurrent entities for frame rate; `world-health.js` reports degradation.
-4. **In-world economy:** chat delivery with a queue indicator on slow links; trades route through the real path with clear pending/success/fail; $THREE-only promotion rules respected (coin worlds render records, not endorsements).
-5. **Exit/save:** state persists or is explicitly ephemeral (told to the user); no silent data loss.
-6. **Mobile perf:** target ≥30fps on mid-range mobile; reduce draw calls; `prefers-reduced-motion`.
-
-## Out of scope
-- The avatar pipeline (**D01**); deep netcode rewrites beyond reliable sync + reconnect.
-
-## Definition of done
-- [ ] IRL handles denied/absent sensors with a usable fallback; placements persist per the documented strategy; privacy honored.
-- [ ] Play worlds are deterministic; multiplayer syncs reliably with reconnect; degradation reported.
-- [ ] In-world chat + trades work with clear states; exit/save behavior is explicit; ≥30fps on mid mobile.
-- [ ] `npx vitest run` green; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Enter a coin world twice with the same seed → identical; join from two devices → see each other; deny compass in IRL → fallback; throttle network → chat queue + reconnect.
diff --git a/prompts/production-1b/D04-creator-tools.md b/prompts/production-1b/D04-creator-tools.md
deleted file mode 100644
index 4bbb61ada..000000000
--- a/prompts/production-1b/D04-creator-tools.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# D04 — Creator tools (Scene Studio, Compose, Pose, Voice, Scan) production pass
-
-> Phase D · Depends on: D01 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The creator tools — Scene Studio (3D scene editor), Compose (attach items to avatars), Pose
-(animation studio), Voice (voice cloning), Scan (selfie → rigged avatar) — are what turn
-consumers into creators, and creators into sellers. Each is powerful but uneven. Bring them
-to a dependable, no-lost-work, monetizable baseline.
-
-## Where this lives (real files)
-- `src/scene-studio/` (`/scene`, vendored three.js editor), Compose (`/compose`), Pose (`/pose`), Voice (`/voice`), Scan (`/scan`) — confirm exact module paths via `data/pages.json`.
-- `avatar-sdk/`, `character-studio/` for shared 3D; `api/` for save/monetize.
-
-## Current state & gaps
-- Scene Studio: no autosave (unsaved-work loss), unclear lighting bake vs real-time, no scene-size limits, no mobile path.
-- Compose: item-to-bone attachment can be wrong, scale constraints, outfit save/load, export formats.
-- Pose: IK convergence errors, timeline scrubbing perf, GLB export validity, monetization not integrated, no mobile posing.
-- Voice: recording-quality validation, cloning confidence, privacy/storage policy, cross-agent assignment persistence.
-- Scan: camera-permission failures, lighting requirements, face-detection retry, rigging-failure detection, mobile camera API compatibility.
-
-## Build this
-For each tool (do them as sub-tasks, all must reach the bar):
-1. **No lost work:** autosave/recover where a user invests effort (Scene, Pose, Compose).
-2. **Validated output:** exports produce valid GLB/clip JSON (integrity-checked); attachments map to correct bones; rigging/scan failures are detected and explained with retry.
-3. **All states + limits:** loading/empty/error states; enforced size/time/quality limits surfaced to the user.
-4. **Monetize:** Pose/Compose/Voice outputs can be saved + listed for sale through the real payment path (A11/B03), $THREE economics applied.
-5. **Privacy:** Voice/Scan document where recordings/images are stored and how to delete; honor it.
-6. **Mobile + a11y:** at minimum a usable mobile path or a clear "best on desktop" with graceful degradation; keyboard + labels.
-
-## Out of scope
-- The shared avatar pipeline (**D01**) and payment internals (**B03**) — reuse them.
-
-## Definition of done
-- [ ] Each tool: no lost work, valid validated exports, all states, enforced+surfaced limits.
-- [ ] Monetization wired for sellable outputs; privacy policy honored for Voice/Scan.
-- [ ] Mobile path or graceful degradation; a11y verified; `npx vitest run` green.
-- [ ] Changelog entry; committed + pushed to both remotes.
-
-## Verify
-- In each tool: invest work → reload → recovered; export → load the file back successfully; (Pose/Voice) list an output for sale and buy it; (Scan) deny camera → clear fallback.
diff --git a/prompts/production-1b/E01-structured-logging-and-tracing.md b/prompts/production-1b/E01-structured-logging-and-tracing.md
deleted file mode 100644
index 0ad0abfe8..000000000
--- a/prompts/production-1b/E01-structured-logging-and-tracing.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# E01 — Structured logging + request correlation + tracing
-
-> Phase E · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-At $1B scale you cannot debug what you cannot see. Today logs are unstructured `console.*`
-strings with no request correlation, and metrics cover only payments. Add structured,
-correlated logging and lightweight tracing so any incident is diagnosable in minutes.
-
-## Where this lives (real files)
-- `api/_lib/http.js` — `wrap()` request envelope (inject correlation here), `serverError()`.
-- `api/_lib/sentry.js` — error envelope; `api/_lib/axiom.js` — business metrics ingest (payments only today).
-- 160+ scattered `console.*` call sites across `api/_lib/`.
-
-## Build this
-1. **Correlation IDs:** generate a request ID in `wrap()`, propagate it through async work (AsyncLocalStorage), and include it in every log line + error + the client-facing error ref.
-2. **Structured logger:** a `api/_lib/structured-log.js` emitting JSON `{ ts, level, request_id, user_id, route, msg, ...fields }`; replace hot-path `console.*` with it (keep it cheap/fire-and-forget). Ship to Axiom.
-3. **Span timing:** instrument the expensive operations (DB query, Solana RPC, LLM call, external API) with start/stop spans tagged by request ID, so a slow request shows where time went.
-4. **Cost fields:** attach per-request cost signals where known (RPC units, LLM tokens, x402 spend) for later budgeting (G06/E07).
-5. **No secret leakage:** reuse the existing `redactUrl()`/redaction so logs never carry keys, seeds, or coordinates.
-
-## Out of scope
-- The error dashboard + alerting (**E02**) — this produces the data it visualizes.
-
-## Definition of done
-- [ ] Every request carries a correlation ID through logs + errors + client ref.
-- [ ] Structured JSON logs ship to Axiom; hot paths use the new logger; no secrets in logs.
-- [ ] Key operations are span-timed; a slow request is attributable to a stage.
-- [ ] `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Make a request; find its single correlation ID across the request log, a span, and (force one) an error.
diff --git a/prompts/production-1b/E02-error-telemetry-and-alerting.md b/prompts/production-1b/E02-error-telemetry-and-alerting.md
deleted file mode 100644
index c873a2497..000000000
--- a/prompts/production-1b/E02-error-telemetry-and-alerting.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# E02 — Error telemetry dashboard + tiered alerting & escalation
-
-> Phase E · Depends on: E01 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Errors are captured to Sentry and alerts go to Telegram, but there's no aggregation, no
-severity, and no escalation — so a money-path failure looks the same as a cosmetic one and
-can go unnoticed. Build the visibility and alerting that lets the team catch and triage
-incidents before users do.
-
-## Where this lives (real files)
-- `api/_lib/sentry.js` — fire-and-forget error envelope.
-- `api/_lib/alerts.js` — Telegram ops alerts (dedup by signature, recovery announce).
-- `api/_lib/axiom.js` — metrics ingest.
-- `api/cron/` — health crons (forge-smoke, uptime-check, world-health, quota-check).
-
-## Build this
-1. **Error aggregation:** emit structured error events (code, route, domain: payment|render|infra|auth) to Axiom alongside Sentry, so you can query "429s yesterday by route" and "payment errors this hour."
-2. **Severity tiers:** classify alerts (critical = money/auth/RPC down; warning = degraded; info). Critical alerts page louder (and are ready to wire to PagerDuty/Slack via an env-configurable sink, not Telegram-only).
-3. **Spike detection:** alert when a route's error rate exceeds a baseline (e.g. >Nσ or > threshold), not just on single failures; dedup + auto-recover messages (reuse `alerts.js`).
-4. **Dashboards:** define the Axiom queries/dashboards for error rate by route, p95 latency, RPC provider health, payment success rate, Redis quota burn.
-5. **SLO doc:** write the target SLOs (error rate <0.5%, p95 <2s, payment success >99.5%) in `docs/` and tie alerts to them.
-
-## Out of scope
-- Producing the structured logs (**E01**) — this consumes them.
-
-## Definition of done
-- [ ] Structured error events queryable by route + domain; severity tiers implemented with an env-configurable critical sink.
-- [ ] Spike-based alerts fire (not just single errors), with dedup + recovery.
-- [ ] Dashboards + SLO doc exist; a forced money-path error triggers a critical alert.
-- [ ] `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Force a burst of errors on one route → spike alert (critical) fires once + recovers; confirm the Axiom query shows them.
diff --git a/prompts/production-1b/E03-health-and-status-page.md b/prompts/production-1b/E03-health-and-status-page.md
deleted file mode 100644
index 46ef89acb..000000000
--- a/prompts/production-1b/E03-health-and-status-page.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# E03 — Health/readiness endpoint + dependency checks + public status page
-
-> Phase E · Depends on: E01 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-There's no single endpoint that says "is the platform healthy?" and no public status page.
-A health endpoint enables fast detection + uptime monitoring; a public status page builds
-the trust a financial platform needs. Build both.
-
-## Where this lives (real files)
-- `api/_lib/forge-health.js` — aggregates generation/limiter/LLM/Redis/world signals.
-- `api/cron/uptime-check.js`, `api/cron/world-health.js` — existing checks.
-- `api/_lib/db.js`, `api/_lib/redis.js`, `api/_lib/solana/connection.js` — dependencies to probe.
-
-## Build this
-1. **Liveness:** `GET /api/health` returns 200 fast with a basic "process up" + cheap DB/cache ping.
-2. **Readiness:** `GET /api/health?deep=1` (auth/limited) checks real dependencies — DB, Redis (+ quota headroom), Solana RPC (failover state), LLM providers, x402 facilitators, generation workers — and returns per-dependency status + the overall verdict.
-3. **Degraded signal:** surface a `degraded_features` list (e.g. "buyback paused", "Redis fail-open") that the client (`/api/config`) can read to soften the UI instead of erroring.
-4. **Public status page:** a polished page rendering current + recent uptime per major subsystem (generation, payments, RPC, worlds), backed by the readiness data and uptime crons. Designed states; mobile.
-5. **Uptime hooks:** make the health endpoint consumable by an external uptime monitor.
-
-## Out of scope
-- Alerting (**E02**) — link health into it.
-
-## Definition of done
-- [ ] `/api/health` (liveness) + deep readiness with per-dependency status exist and are accurate.
-- [ ] `degraded_features` surfaced and consumed by the client to degrade gracefully.
-- [ ] Public status page live, reachable from the footer, with real subsystem status + history.
-- [ ] `npx vitest run` green; `npm run build:pages` passes; changelog entry; committed + pushed to both remotes.
-
-## Verify
-- Take a dependency down locally (e.g. bad Redis URL) → readiness flags it + `degraded_features` populates + status page reflects it.
diff --git a/prompts/production-1b/E04-circuit-breakers-and-retry.md b/prompts/production-1b/E04-circuit-breakers-and-retry.md
deleted file mode 100644
index 4c74c9866..000000000
--- a/prompts/production-1b/E04-circuit-breakers-and-retry.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# E04 — Circuit breakers + adaptive retry for all external dependencies
-
-> Phase E · Depends on: none (the memory note: a `cockatiel` resilience helper may already exist) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-The platform depends on many external services (Solana RPC, Helius DAS, market-data APIs,
-LLM providers, x402 facilitators). Failover exists for RPC and LLMs, but retries are fixed,
-there's no circuit breaker, and a thundering herd on recovery can re-knock-over a dependency.
-Standardize resilient calls so one flaky provider can't cascade.
-
-## Where this lives (real files)
-- `api/_lib/solana/rpc-fallback.js` — RPC failover (good model to generalize).
-- `api/_lib/chat-models.js` + `api/_lib/provider-health.js` — LLM provider chain + cooldowns.
-- `api/_lib/aggregator.js`, `api/_lib/balances.js`, `api/_lib/market/token-market.js` — market data fallback.
-- `api/_lib/db-retry.js` — fixed [150,400]ms backoff.
-- Check for an existing vetted resilience helper (e.g. `cockatiel`) before hand-rolling — prefer adopting it.
-
-## Build this
-1. **Shared resilience helper:** a single wrapper offering timeout + exponential backoff with jitter + circuit breaker (closed/open/half-open). Prefer wrapping a vetted library over hand-rolling. Additive — don't refactor working failover; apply to new/unprotected call sites first.
-2. **Apply to high-value calls:** Helius DAS (high-credit, currently unprotected), market-data sources, x402 facilitator verify/settle, and any external fetch lacking a breaker.
-3. **Adaptive retry:** replace fixed db-retry backoff with exponential + jitter; bound total retry budget per call so retries can't blow the function timeout.
-4. **Breaker observability:** when a breaker opens, log it (E01) + reflect it in `degraded_features` (E03) and metrics (E02).
-5. **No thundering herd:** half-open probes one request before fully closing; jitter spreads recovery.
-
-## Out of scope
-- Existing RPC/LLM failover internals — generalize the pattern around them, don't rewrite.
-
-## Definition of done
-- [ ] A shared, tested resilience wrapper (preferably library-backed) is applied to the previously-unprotected external calls (Helius DAS, market data, facilitators).
-- [ ] db-retry uses exponential backoff + jitter with a bounded budget.
-- [ ] Open breakers are logged + surfaced in degraded_features + metrics.
-- [ ] `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Point a wrapped dependency at a failing URL → breaker opens, requests fail fast + degrade, then half-open recovers when it's back.
diff --git a/prompts/production-1b/E05-redis-quota-and-degradation.md b/prompts/production-1b/E05-redis-quota-and-degradation.md
deleted file mode 100644
index 9fbd16276..000000000
--- a/prompts/production-1b/E05-redis-quota-and-degradation.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# E05 — Redis quota: proactive monitoring + degraded-feature signaling
-
-> Phase E · Depends on: E02, E03 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Rate limiting, idempotency, caching, and locks all lean on Upstash Redis, which has a hard
-daily command ceiling. A June 2026 incident showed quota exhaustion can degrade critical
-limiters platform-wide. Make quota burn proactively visible and make degradation graceful
-and intentional rather than a surprise.
-
-## Where this lives (real files)
-- `api/_lib/redis.js` — singleton client; `api/_lib/redis-usage.js` — quota burn tracking (reactive).
-- `api/_lib/rate-limit.js` — 360+ limiters (fail-closed for money/auth, fail-open for reads), `local: true` for high-frequency reads.
-- `api/cron/quota-check.js` — quota monitoring cron.
-- `api/_lib/cache.js` — cache + in-flight coalescing + Redis fallback.
-
-## Build this
-1. **Proactive thresholds:** alert at 50/70/85% of the daily ceiling (not just at exhaustion), via E02's tiered alerting; project burn rate to estimate time-to-exhaustion.
-2. **Command-cost reduction:** audit the hottest limiters/caches; expand `local: true` for non-critical high-frequency reads; coalesce/raise TTLs where safe; batch where possible — drive structural burn down.
-3. **Graceful degradation:** when approaching the ceiling, automatically shed non-critical Redis usage (serve more from in-memory, relax non-critical limiters) while keeping money/auth limiters fail-closed; reflect this in `degraded_features` (E03).
-4. **Client hint:** surface quota pressure on `/api/config` so the UI can soften polling/retries during a crunch.
-5. **Runbook:** document what to do at each threshold and how raising the ceiling vs shedding load trades off.
-
-## Out of scope
-- Replacing Redis or the limiter design — optimize + protect what's there.
-
-## Definition of done
-- [ ] Proactive alerts at graduated thresholds with a time-to-exhaustion estimate.
-- [ ] Measured reduction in command burn on the hottest paths (document before/after).
-- [ ] Automatic, intentional degradation keeps money/auth safe; reflected in degraded_features + client hint.
-- [ ] Runbook written; `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Simulate high burn (lower the threshold locally) → graduated alerts + degradation engage; money/auth limiters stay fail-closed.
diff --git a/prompts/production-1b/E06-migrations-and-schema.md b/prompts/production-1b/E06-migrations-and-schema.md
deleted file mode 100644
index a41d316fd..000000000
--- a/prompts/production-1b/E06-migrations-and-schema.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# E06 — Migrations: remove CREATE TABLE from handlers, add versioning & rollback
-
-> Phase E · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Several handlers create their tables lazily (`CREATE TABLE IF NOT EXISTS` at request time) —
-a race condition, a hidden schema dependency, and a DDL-on-the-hot-path anti-pattern. And
-there's no record of which migrations have run. Make schema management explicit, versioned,
-and safe.
-
-## Where this lives (real files)
-- Lazy `CREATE TABLE` in handlers/libs: `api/_lib/agent-embeddings.js`, `api/_lib/diorama-store.js`, `api/_lib/onchain-deploy.js`, `api/_lib/coin/three-holders.js` (and audit for more).
-- `api/_lib/migrations/` — SQL migration files (timestamped).
-- `scripts/run-migrations.js` / `apply-migrations.mjs` — runner.
-
-## Build this
-1. **Migration versioning:** add a `schema_migrations` table that records applied migrations; make the runner idempotent (skip already-applied) and ordered.
-2. **Move DDL into migrations:** convert every in-handler `CREATE TABLE/INDEX IF NOT EXISTS` into a real migration; the handler assumes the table exists. Keep behavior identical.
-3. **Readiness check:** a startup/readiness assertion (ties to E03) that required tables exist; fail loud if a migration is pending in production.
-4. **Rollback strategy:** for each migration, document or provide a down/rollback path (or an explicit "forward-only, here's the compensating migration" note).
-5. **Pre-deploy gate:** wire migration application into the deploy/CI flow (E10) so schema is applied before traffic.
-
-## Out of scope
-- Read replicas + partitioning (**E09**).
-
-## Definition of done
-- [ ] No handler runs DDL at request time; all such tables have real migrations.
-- [ ] `schema_migrations` tracks applied migrations; runner is idempotent + ordered.
-- [ ] Readiness check fails on pending migrations; rollback/compensation documented.
-- [ ] `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Drop a dev table, run the runner twice → created once, second run is a no-op; confirm no handler recreates tables.
diff --git a/prompts/production-1b/E07-cron-and-worker-health.md b/prompts/production-1b/E07-cron-and-worker-health.md
deleted file mode 100644
index e1abae9d3..000000000
--- a/prompts/production-1b/E07-cron-and-worker-health.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# E07 — Cron + worker health: execution history, SLA, dashboard
-
-> Phase E · Depends on: E02 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-~20 crons and ~18 worker pipelines run the platform's background work — buybacks,
-reflections, holder snapshots, oracle scoring, smart-money rollups, auto-rig sweeps. If one
-silently stops, the failure is invisible until a user notices. Make every scheduled job
-observable, with history and "didn't run" detection.
-
-## Where this lives (real files)
-- `api/cron/` — `[name].js` dispatcher + ~20 jobs (forge-smoke, three-holders-snapshot, rewards-distribute, oracle-*, smart-money-*, auto-rig-sweep, quota-check, relayer-balance-check, etc.).
-- `workers/` — oracle, agent-sniper, model-*, avatar-reconstruction, unirig, etc.
-- `vercel.json` — cron schedules.
-
-## Build this
-1. **Execution ledger:** a `cron_executions` table recording each run (job, started/finished, status, summary, error). Wrap the cron dispatcher so every job auto-records — no per-cron boilerplate.
-2. **Missed-run detection:** know each job's expected cadence; alert (E02) if a job hasn't run within ~1.5× its interval ("buyback cron hasn't run in 18h").
-3. **Worker health:** workers report heartbeat/health + errors to a shared place (DB or metrics) so a dead worker is visible; failures propagate to ops, not just local logs.
-4. **Dashboard:** an admin view (or extend the status page E03) showing each job's last run, status, and 7-day history.
-5. **Money-job priority:** buyback/reflection/holder-snapshot/relayer-balance crons are treated as critical (loud alerts on failure or miss).
-
-## Out of scope
-- The job logic itself (covered in A01/A02/A04/D01).
-
-## Definition of done
-- [ ] Every cron auto-records to `cron_executions`; missed-run detection alerts on critical jobs.
-- [ ] Workers report health; a dead worker is detectable + alerts.
-- [ ] Dashboard shows last run + 7-day history per job; `npx vitest run` green.
-- [ ] Changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Disable a critical cron's schedule → missed-run alert fires after the window; kill a worker → health flags it.
diff --git a/prompts/production-1b/E08-ssrf-and-input-hardening.md b/prompts/production-1b/E08-ssrf-and-input-hardening.md
deleted file mode 100644
index 195887553..000000000
--- a/prompts/production-1b/E08-ssrf-and-input-hardening.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# E08 — SSRF + input sanitization + secret-scanning hardening
-
-> Phase E · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-User-supplied URLs are fetched server-side without validation (an SSRF vector that can probe
-cloud metadata / internal services), user content isn't centrally sanitized, and there's no
-CI guard against committed secrets. Close these before they become an incident.
-
-## Where this lives (real files)
-- `api/_lib/auto-rig.js` (`fetchGlbBuffer(url)` — fetches a user URL with no host validation), and similar fetch-user-URL sites (`bake`, avatar import, etc.).
-- `api/_lib/validate.js` — Zod schemas (extend with URL guards).
-- `api/_lib/http.js` — `redactUrl()` (good; extend coverage).
-- User-content surfaces: agent names/descriptions, avatar metadata.
-
-## Build this
-1. **SSRF guard:** a shared `assertSafeFetchUrl(url)` (https only; reject localhost, `169.254.*`, `10.*`, `172.16–31.*`, `192.168.*`, `.internal`, link-local, and non-public hosts; optional per-feature allowlist). Apply to every server-side fetch of a user-supplied URL, starting with `auto-rig.js`. Add tests with malicious inputs.
-2. **Content sanitization:** centralize sanitization of user-generated text (names, descriptions) used in HTML/OG/embeds to prevent injection; ensure escaping at every render boundary.
-3. **Upload validation:** enforce content-type + size + (where feasible) structural validation on uploaded GLBs/images, rejecting malformed files early.
-4. **Secret scanning in CI:** add a CI step (e.g. gitleaks/trufflehog) that fails on committed secrets; document remediation. Pairs with **E10**.
-5. **Secrets hygiene:** confirm no secret is logged (reuse redaction) and that the watch traps in CLAUDE.md (esbuild bundle overwrite, foreign-history pulls) are not reintroducing secrets.
-
-## Out of scope
-- Custody/key handling (**A06**) and auth/session hardening (**B06/G05**).
-
-## Definition of done
-- [ ] All server-side fetches of user URLs go through the SSRF guard; malicious inputs are rejected (tested).
-- [ ] User text is sanitized/escaped at every HTML/OG/embed boundary; uploads validated.
-- [ ] CI fails on committed secrets; no secret appears in logs.
-- [ ] `npx vitest run` green; changelog entry (security); committed + pushed to both remotes.
-
-## Verify
-- Call the rig/import path with `http://169.254.169.254/...` → rejected; run the secret scanner on the repo → clean; inject `<script>` into an agent name → escaped everywhere it renders.
diff --git a/prompts/production-1b/E09-data-layer-scaling.md b/prompts/production-1b/E09-data-layer-scaling.md
deleted file mode 100644
index 8997a1d8d..000000000
--- a/prompts/production-1b/E09-data-layer-scaling.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# E09 — Data layer: read-replica routing, partitioning, backup/restore drills
-
-> Phase E · Depends on: E06 · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Postgres (Neon) is a single point of failure: all reads hit the primary, high-growth tables
-grow unbounded, leaderboards recompute on every request, and there's no proven restore path.
-Make the data layer ready to scale and recoverable.
-
-## Where this lives (real files)
-- `api/_lib/db.js` — single Neon `DATABASE_URL`, HTTP driver; `api/_lib/db-retry.js`.
-- High-write tables: `agent_actions`, `agent_revenue_events`, world events, x402 settlements.
-- Hot read aggregations: leaderboards, holder stats, analytics.
-
-## Build this
-1. **Read-replica routing:** route heavy, non-critical reads (leaderboards, profiles, analytics) to a Neon read replica when configured, with fall-back to primary if the replica lags > threshold. Keep money/consistency-critical reads on primary.
-2. **Materialize hot aggregates:** precompute leaderboard/stat aggregates (materialized views or a rollup table refreshed by cron) so hot reads don't recompute over the whole table each request.
-3. **Partition/retention:** for unbounded tables, add time-partitioning or a retention/archival policy so they don't degrade over time; index review on the hottest queries.
-4. **Backup/restore drill:** document RTO/RPO; add a periodic job (or runbook) that restores a backup to a scratch DB and runs smoke checks; alert if the last backup is stale.
-5. **Connection discipline:** confirm the singleton HTTP driver usage avoids connection blowups under serverless fan-out.
-
-## Out of scope
-- Migration mechanics (**E06**) — build on it.
-
-## Definition of done
-- [ ] Heavy reads route to a replica (when configured) with lag-aware fallback; money reads stay on primary.
-- [ ] Hot aggregates are materialized/rolled up; hottest queries indexed.
-- [ ] Unbounded tables have partitioning/retention; backup/restore drill documented + a stale-backup alert exists.
-- [ ] `npx vitest run` green; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- With a replica configured, confirm leaderboard reads hit it and fall back when lagged; run the restore drill to a scratch DB.
diff --git a/prompts/production-1b/E10-ci-cd-and-test-gate.md b/prompts/production-1b/E10-ci-cd-and-test-gate.md
deleted file mode 100644
index d5b34bc11..000000000
--- a/prompts/production-1b/E10-ci-cd-and-test-gate.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# E10 — CI/CD: test gate, e2e on money paths, publish automation
-
-> Phase E · Depends on: E06 (migrations in deploy), E08 (secret scan) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-A platform that ships continuously needs a gate that makes "main is always deployable" true.
-Today tests exist (463) but the gate, e2e coverage of money paths, preview verification, and
-package publish automation need to be locked in so quality scales with velocity.
-
-## Where this lives (real files)
-- `package.json` scripts: `test` (vitest + playwright), `test:core`, `test:gate`, `test:e2e`, `verify`, `build`, `build:vercel`.
-- `tests/` (vitest) + Playwright e2e; `scripts/test-gate.mjs`, `scripts/audit-*.mjs`.
-- Workspaces in `package.json` (SDKs/MCP packages to publish).
-
-## Build this
-1. **PR gate:** a CI workflow that runs `vitest run`, the relevant Playwright e2e, `prettier --check`, page-index/empty-handler audits, and a build — failing the PR on any break. Make it fast (shard/parallelize) so it doesn't slow the team.
-2. **Money-path e2e:** Playwright flows for the critical journeys — buy $THREE (swap), pay for a skill (402 modal), forge → result, sign-in, deploy an agent. These must pass on every PR (mock external chains where needed, but exercise the real UI wiring).
-3. **Secret scan + dep audit:** wire E08's secret scanner and an `npm audit`/dependency check into CI.
-4. **Preview verification:** on each PR, deploy a Vercel preview and smoke-test key endpoints (health, token stats, a paid 402 challenge) against it.
-5. **Publish automation:** a tag-triggered workflow that builds + tests + publishes the `@three-ws/*` packages (ties to F02), with provenance and changelogs.
-6. **Branch protection:** require the gate green before merge to `main`; keep pushes mirrored to both remotes per CLAUDE.md.
-
-## Out of scope
-- Writing the SDK tests themselves (**F02**) — this runs them.
-
-## Definition of done
-- [ ] PR gate runs tests + lint + audits + build and blocks on failure; it's fast enough to not bottleneck.
-- [ ] Money-path Playwright e2e run in CI and pass; preview smoke-tests run per PR.
-- [ ] Secret scan + dep audit in CI; tag-triggered publish workflow works for at least one package.
-- [ ] `npx vitest run` green locally; changelog entry (infra); committed + pushed to both remotes.
-
-## Verify
-- Open a PR with a deliberately failing test → gate blocks; tag a package release → it publishes via CI.
diff --git a/prompts/production-1b/F01-developer-guide-and-examples.md b/prompts/production-1b/F01-developer-guide-and-examples.md
deleted file mode 100644
index 40d86d092..000000000
--- a/prompts/production-1b/F01-developer-guide-and-examples.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# F01 — Unified developer guide + runnable examples + quickstarts
-
-> Phase F · Depends on: none · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-three.ws ships ~13 SDKs + ~7 MCP servers — a genuine developer platform — but a developer
-today must do "README archaeology" across 20 packages to ship anything. Network effects come
-from frictionless adoption. Build the single front door + runnable examples that turn a
-curious dev into an integrated one in 15 minutes.
-
-## Where this lives (real files)
-- SDKs: `sdk/` (`@three-ws/sdk`), `solana-agent-sdk/`, `agent-payments-sdk/`, `agent-protocol-sdk/`, `avatar-sdk/`, `walk-sdk/`, `page-agent-sdk/`, `tour-sdk/`.
-- MCP: `mcp-server/`, `packages/*-mcp/`.
-- `STRUCTURE.md` (surface map), `README.md`, `examples/`.
-
-## Build this
-1. **Developer guide:** `docs/DEVELOPER_GUIDE.md` — an overview of every SDK/MCP + when to use which, a quick-start matrix (EVM vs Solana vs MCP vs avatar embed), architecture + flow diagrams ("agent pays with $THREE", "image → rigged avatar", "embed a 3D agent"), and links into each package.
-2. **Runnable examples:** under `examples/`, create self-contained projects that run with `npm install && npm run dev`:
- - `agent-basic` — init + mount an agent panel
- - `agent-avatar` — embed `<agent-3d>`, play an animation
- - `agent-payments` — invoke a paid skill via x402
- - `agent-solana-identity` — SIWS + on-chain agent registration
- - `mcp-client` — call three.ws MCP tools programmatically
-3. **Quickstarts in READMEs:** each SDK README opens with a copy-paste 30-second quickstart that actually works.
-4. **CONTRIBUTING + onboarding:** `CONTRIBUTING.md` (fork/branch/commit/test/release flow) and a "build order" note so a fresh clone builds first try.
-5. **Discoverable:** link the guide + examples from `README.md`, the site's developer/docs page, and `llms.txt`.
-
-## Out of scope
-- SDK test coverage + release automation (**F02**) and MCP reconciliation (**F03**).
-
-## Definition of done
-- [ ] `docs/DEVELOPER_GUIDE.md` covers every SDK/MCP with a quick-start matrix + diagrams.
-- [ ] All 5 examples run clean with `npm install && npm run dev` against real services (free lanes where possible).
-- [ ] Every SDK README has a working 30-second quickstart; CONTRIBUTING + build order documented + linked.
-- [ ] `npx vitest run` green; changelog entry (docs/sdk); committed + pushed to both remotes.
-
-## Verify
-- From a clean checkout, follow the guide to run each example to a working result.
diff --git a/prompts/production-1b/F02-sdk-tests-versioning-release.md b/prompts/production-1b/F02-sdk-tests-versioning-release.md
deleted file mode 100644
index 00711dfff..000000000
--- a/prompts/production-1b/F02-sdk-tests-versioning-release.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# F02 — SDK tests + versioning + release automation + changelogs
-
-> Phase F · Depends on: E10 (CI) · Parallel-safe: yes
-> Run in a fresh chat in `/workspaces/three.ws`. Read [CLAUDE.md](../../CLAUDE.md) first.
-
-## Mission
-Published SDKs are a promise to other developers. Today test coverage is uneven, there's no
-semver policy, no release automation, and no per-package changelog — so consumers can't trust
-upgrades. Make the `@three-ws/*` packages dependable to build on.
-
-## Where this lives (real files)
-- `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/` (fork, v3.x, has `FORK_NOTES.md`), `agent-protocol-sdk/`, `avatar-sdk/`, `walk-sdk/`, `page-agent-sdk/`, `tour-sdk/`, `mcp-server/`, `packages/*`.
-- Root `package.json` workspaces; `scripts/` build helpers.
-
-## Build this
-1. **Test every SDK:** each package gets meaningful unit tests (mock RPC/EVM at the boundary) + at least one integration test; add a `test:all` script that runs every workspace's tests. Prioritize the money + identity SDKs (`agent-payments-sdk`, `solana-agent-sdk`, `sdk`, `mcp-server`).
-2. **Semver policy:** `VERSIONING.md` at root defining semver rules + a Node `engines` field per package; a `MIGRATION.md` template for major bumps. Document the `agent-payments-sdk` fork's relationship to upstream + how to rebase.
-3. **Changelogs:** a `CHANGELOG.md` per published package (Conventional Commits / changesets if feasible), so every version explains what changed.
-4. **Release automation:** tag-triggered build+test+publish (wire into E10), with npm provenance; a `release` helper script; verify each package's `package.json` (name, version, files, exports, types) is publish-correct.
-5. **pump-fun migration guide:** `docs/MIGRATION_FROM_PUMPFUN.md` for users moving off `@pump-fun/agent-payments-sdk`.
-
-## Out of scope
-- Writing the developer guide/examples (**F01**) and MCP reconciliation (**F03**).
-
-## Definition of done
-- [ ] Every published SDK has unit + ≥1 integration test; `test:all` runs them green.
-- [ ] `VERSIONING.md` + per-package `engines`; per-package `CHANGELOG.md`; pump-fun migration guide written.
-- [ ] Tag-triggered publish works (provenance) for the priority packages; package.json metadata verified.
-- [ ] `npx vitest run` green; changelog entry (sdk); committed + pushed to both remotes.
-
-## Verify
-- `npm run test:all` green; cut a patch release of one SDK via tag → it publishes with a changelog.
diff --git a/prompts/production-campaign/00-README-orchestration.md b/prompts/production-campaign/00-README-orchestration.md
deleted file mode 100644
index b299ee195..000000000
--- a/prompts/production-campaign/00-README-orchestration.md
+++ /dev/null
@@ -1,138 +0,0 @@
-# three.ws — Production Campaign to $1B (Orchestration Index)
-
-This directory is a **campaign**, not a feature. Its single goal: take three.ws from
-"impressive and mostly built" to **100% production-ready, proper, and professional** —
-the quality, reliability, and depth a platform needs to be credibly worth **$1B**.
-
-Each `.md` here is a **self-contained task prompt**. Paste one into its own fresh agent
-chat. The agent works in this shared worktree, follows `CLAUDE.md` exactly, ships the
-work end-to-end, verifies it for real, then **deletes its own prompt file**. When a track
-directory contains only its `00-README.md`, that track is done. When every track is done,
-the campaign is done.
-
-> **This is not a greenfield build.** three.ws already ships 125+ pages, 100+ API
-> endpoints, SDKs, MCP servers, workers, on-chain contracts, and payment rails. These
-> prompts **harden, complete, and connect what exists** — they do not rewrite it. Read
-> before you write. Reuse before you build. Delete dead paths. Every prompt assumes the
-> agent first reads `CLAUDE.md`, `STRUCTURE.md`, and `00b-the-bar.md`.
-
-> **Concurrency note.** Multiple agents run in this worktree simultaneously. There may be
-> a parallel hardening checklist under `prompts/road-to-1b/`; this campaign is the broader,
-> structured complement (7 tracks across reliability, growth, surfaces, monetization,
-> ecosystem, infra, and trust). The two are compatible — neither owns the other's files.
-
----
-
-## The $1B thesis (read this — every agent internalizes it)
-
-A platform is worth $1B when it is **trusted with money, used daily, and built upon by
-others**. That decomposes into exactly the things this campaign hardens:
-
-1. **Trust** — nobody pays an agent, mints a coin, or wires a wallet through software that
- throws unhandled errors, loses funds on an edge case, or 500s under load. Reliability,
- payment correctness, and security are the *foundation of valuation*, not chores.
-2. **Activation & retention** — value the first-time visitor reaches in 60 seconds, and a
- reason to come back tomorrow. A platform nobody activates on is worth its liquidation value.
-3. **Monetization depth** — real revenue surfaces: $THREE holder value, x402 paid rails,
- marketplace economics, billing. Revenue × multiple = valuation.
-4. **Distribution & network effects** — SEO, virality, an SDK/MCP ecosystem others build on.
- The platform that other products depend on is the one that compounds.
-5. **Polish that signals seriousness** — every state designed, every surface screenshot-worthy,
- accessible, fast, branded. Polish is how trust is *communicated* before it is earned.
-
-If a piece of work doesn't advance one of these five, it isn't on the path to $1B. If it
-advances several, do it first.
-
-**The bar:** Vercel / Linear / Stripe / Figma. If you wouldn't screenshot it and put it in
-your portfolio, it isn't done. See `00b-the-bar.md` for the concrete, measurable definition.
-
----
-
-## How to run the campaign
-
-Each prompt is independent enough to run in its own chat, but the tracks have a natural
-priority. **Run Track A (Reliability) first and keep it green** — every other track ships
-on top of a foundation that must not wobble. Then fan out B–G in parallel; within a track,
-the lower numbers are usually prerequisites for the higher ones (noted per file).
-
-```
-A — Reliability, Observability & Trust ← foundation. Do first. Never regress.
- │
- ├── B — Activation, Growth & Distribution (turn visitors into users)
- ├── C — Surface Completeness (every page to the bar)
- ├── D — Monetization & $THREE Economy (turn users into revenue)
- ├── E — Developer Ecosystem & SDKs (turn users into builders)
- ├── F — Scale & Infrastructure (hold up under success)
- └── G — Trust, Compliance, Access & Brand (be safe, legal, universal)
-```
-
-Concurrent agents share this worktree. **Stage explicit paths only — never `git add -A`.**
-Re-check `git status` and `git diff --staged` immediately before any commit. Each prompt
-declares a file-ownership lane; stay in it. Shared files (`data/changelog.json`,
-`data/pages.json`) are **append-only** — never reformat them.
-
----
-
-## Track index
-
-| Track | Directory | Prompts | What "done" buys us |
-|---|---|---|---|
-| **A** | [`A-reliability/`](A-reliability/) | A1–A7 | A platform that does not lose money, data, or uptime. The trust foundation. |
-| **B** | [`B-growth/`](B-growth/) | B1–B6 | Visitors activate and come back. SEO, virality, analytics, lifecycle. |
-| **C** | [`C-surfaces/`](C-surfaces/) | C1–C6 | All 125+ pages finished to the screenshot bar — every state, mobile, a11y. |
-| **D** | [`D-monetization/`](D-monetization/) | D1–D4 | Real revenue: $THREE value, billing, x402 rails, marketplace economics. |
-| **E** | [`E-ecosystem/`](E-ecosystem/) | E1–E4 | Others build on us: SDKs, MCP servers, docs, templates — network effects. |
-| **F** | [`F-infra/`](F-infra/) | F1–F3 | It holds up under success: data layer, workers, CI/CD, deploy safety. |
-| **G** | [`G-trust/`](G-trust/) | G1–G4 | Safe, legal, accessible, on-brand everywhere. |
-
-Each track directory has its own `00-README.md` with the per-track run order and the
-file-ownership map for that track's prompts. Total: **34 task prompts** + 2 framing docs.
-
----
-
-## Global definition of done (every prompt inherits this — in addition to its own)
-
-A task is **not** done until ALL of these hold. This is `CLAUDE.md`'s definition of done,
-restated as the campaign's non-negotiable floor:
-
-- [ ] Code written, wired into the UI/flow, and **reachable** by a real user via navigation.
-- [ ] **No mocks, fake data, placeholders, TODOs, stubs, or `setTimeout` fake-loading.** Real
- APIs, real endpoints, real data. Missing credential → find it in `.env` / `vercel env`.
-- [ ] **The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never
- name, hardcode, or recommend any other token anywhere. (Runtime-supplied mints in
- user-launch directories are the only mechanical exception — see `CLAUDE.md`.)
-- [ ] **Every state designed:** loading (skeletons > spinners), empty (tells the user what to
- do next), error (actionable recovery), populated, overflow. Tested at 320 / 768 / 1440px.
-- [ ] Every interactive element has hover, active, and focus states. Keyboard-navigable.
- `prefers-reduced-motion` respected.
-- [ ] **Design tokens only** (`public/tokens.css` / `DESIGN-TOKENS.md`) — no hardcoded colors,
- spacing, or fonts.
-- [ ] Verified for real: `npm run dev` (port 3000), exercised in a browser, **zero console
- errors/warnings from your code**, network tab shows real calls returning real data.
-- [ ] Existing tests pass (`npm test`); new logic has new tests. Money/auth/3D paths covered.
-- [ ] **Changelog:** user-visible change → append a holder-readable entry to
- `data/changelog.json` (tags: feature, improvement, fix, sdk, infra, docs, security).
- Internal-only chores get no entry. Run `npm run build:pages` to validate it.
-- [ ] `git diff` self-reviewed — every changed line justified. Stage explicit paths only.
-- [ ] Watch the two repo traps: `npx vercel build` overwrites `api/*.js` with bundles
- (check `head -1` for `__defProp`/`createRequire` before committing an `api/` diff);
- and **never** `git pull`/`fetch`/`merge` from the `threeD` mirror.
-
-If you cannot verify a step, **say so explicitly**. Do not claim done.
-
----
-
-## The self-improvement pass (do this before deleting your prompt)
-
-After the task is complete and verified, run `CLAUDE.md`'s five-point self-review (lazy /
-user / integration / edge-case / pride). Find the **single biggest remaining quality gap**
-in what you touched, fix it, then:
-
-1. Append your changelog entry (if user-visible).
-2. `rm` your own prompt file.
-3. Report — in two or three sentences — what you shipped, what you verified, and any seam or
- follow-up the next agent should know about.
-
-A silo is a failure. The best work in this campaign **wires surfaces together** — observability
-that feeds the status page, analytics that feeds retention, a paid endpoint that appears in the
-marketplace and the docs. Find the connections. Wire them.
diff --git a/prompts/production-campaign/00b-the-bar.md b/prompts/production-campaign/00b-the-bar.md
deleted file mode 100644
index 572944e6d..000000000
--- a/prompts/production-campaign/00b-the-bar.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# The Bar — what "production-ready" and "$1B" mean concretely
-
-Every agent in this campaign reads this before starting. "Make it good" is not a spec.
-This is the spec. These are the measurable thresholds that separate a demo from a platform
-worth a billion dollars. When your task is done, it clears these bars — or it isn't done.
-
----
-
-## 1. Reliability bars (Track A is the gate for all of these)
-
-- **No unhandled rejections, no uncaught exceptions** reach the user. Every network call,
- every wallet/RPC interaction, every payment has an error boundary that produces an
- *actionable* state — never a blank screen, a spinner that spins forever, or a raw stack trace.
-- **No money is ever lost or double-spent.** Payment, mint, send, and trade paths are
- idempotent, retry-safe, and confirm on-chain before claiming success. A failed transaction
- surfaces a clear "this did not go through, your funds are safe" state.
-- **Graceful degradation, always.** When an upstream is down (a 3D engine, an RPC, an LLM,
- pump.fun), the surface degrades to a useful state with a real retry — exactly the failure
- we already see on Forge ("free engines all busy"). That state must offer a path forward
- (switch engine, queue, notify-me), not a dead end.
-- **Observability is total.** Every error is captured (Sentry/Axiom — already wired in
- `api/_lib/sentry.js`, `api/_lib/axiom.js`, `api/client-errors.js`), every paid call is
- traced, every worker reports health. If it can fail silently today, it can't after.
-
-## 2. Performance bars
-
-- **Largest Contentful Paint < 2.5s, CLS < 0.1, INP < 200ms** on a mid-tier mobile over 4G,
- on every primary surface. `.lighthouserc.json` already exists — wire it into CI and hold it.
-- **3D loads progressively.** No surface blocks on a multi-MB GLB. Lazy-load Three.js and
- heavy modules, show a real loading skeleton, draco/meshopt-compress assets, dispose GPU
- resources on unmount. 60fps on the avatar presence; no jank on scroll.
-- **No layout shift, no FOUC.** Theme boots before paint (`inject-theme-boot.mjs` exists).
- Fonts and tokens resolve before content renders.
-
-## 3. Polish bars (the "screenshot test")
-
-For every surface, all five states are deliberately designed and reachable:
-- **Loading** — skeleton screens that match the populated layout, not a centered spinner.
-- **Empty** — explains what this is and gives the user the next action (a button, an example,
- a prompt idea). Never a blank void or the word "No data."
-- **Error** — names what went wrong in plain language and gives a real recovery action.
-- **Populated** — the design tokens, spacing rhythm, and typography are consistent with the
- rest of the platform. Microinteractions (hover, active, focus, state-change transitions).
-- **Overflow** — 0, 1, 1000 items; a 200-character name; a wallet with $0 and one with $10M.
-
-Plus: keyboard-navigable, screen-reader-labelled, `prefers-reduced-motion` honored, contrast
-≥ WCAG AA, responsive at 320 / 768 / 1440px. **If you would not screenshot it and post it,
-raise it before moving on.**
-
-## 4. Trust & correctness bars
-
-- **The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Zero
- references to any other token anywhere — code, copy, tests, fixtures, metadata. (Runtime
- user-launch directories are the sole mechanical exception per `CLAUDE.md`.)
-- **No secrets in the client.** Every API key lives server-side behind a proxy. Grep the
- built client bundle for key patterns as part of done.
-- **Inputs are validated at the boundary** and trusted internally. Rate-limited where
- abusable (`@upstash/ratelimit` is available). CSRF-protected where state-changing
- (`api/csrf-token.js` exists).
-- **Honest UI.** No fake progress bars, no `setTimeout` loaders, no sample arrays shipped to
- production, no "coming soon" buttons that look live. If it renders, it works.
-
-## 5. Growth & monetization bars
-
-- **Activation is measured.** Every primary surface emits real analytics events
- (`src/acquisition-analytics.js` exists) into a funnel you can read. "We think users like
- it" is not data.
-- **The first-run path reaches value in under 60 seconds** with no signup wall before the
- first "wow" (the Forge free lane, the walk companion, a sample agent).
-- **Every shareable moment has an OG card and a share action.** A generated model, a trade
- win, an agent profile — each produces a link that unfurls beautifully (many `*-og.js`
- endpoints already exist; make them universal and gorgeous).
-- **$THREE holding unlocks visible, consistent value** across every surface that gates on it
- (we already gate Forge "High quality" on holders) — same tiering, same upgrade path,
- everywhere. Revenue surfaces (billing, x402 paid endpoints, marketplace fees) actually
- charge, actually settle, actually reconcile.
-
-## 6. Ecosystem bars
-
-- **An outside developer can go from zero to a working integration in 10 minutes** using the
- published docs and an SDK, without reading our source.
-- **Every SDK and MCP server has:** a real README with a copy-paste quickstart, typed
- surfaces, a runnable example, semantic versioning, and a smoke test in CI
- (`audit:mcp`, `smoke:mcp`, `test:mcp` already exist — they must pass and be enforced).
-
----
-
-## How to use this doc
-
-When you pick up a prompt, map its task to the bars above and treat the relevant ones as
-acceptance criteria. In your completion report, state which bars you cleared and how you
-verified each (the number, the screenshot, the trace, the passing test). "Looks good" is
-not verification. A measured threshold is.
-
-The accumulation of these decisions — every state designed, every error caught, every
-millisecond shaved, every surface shareable — *is* the difference between a project and a
-billion-dollar platform. There is no single feature that gets us there. There is only the
-bar, held on every surface, every time.
diff --git a/prompts/production-campaign/A-reliability/00-README.md b/prompts/production-campaign/A-reliability/00-README.md
deleted file mode 100644
index 4776850b6..000000000
--- a/prompts/production-campaign/A-reliability/00-README.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Track A — Reliability, Observability & Trust
-
-This is the foundation every other track ships on. A platform is worth $1B when it is
-**trusted with money, used daily, and built upon by others** — and all three collapse the
-moment software loses funds, 500s under load, or fails silently. Track A makes that
-impossible. Run it first; keep it green; never let B–G regress it.
-
-Read `prompts/production-campaign/00-README-orchestration.md` and `00b-the-bar.md` first —
-the global definition of done and the reliability/performance bars there are inherited by
-every prompt below. This README only adds the track-local run order and the file-ownership
-map that lets the seven prompts run in parallel without colliding.
-
-> **This is hardening, not greenfield.** three.ws already ships `api/_lib/sentry.js`,
-> `_lib/axiom.js`, `_lib/http.js` (the `wrap()` boundary used by ~91 of 100 handlers),
-> `_lib/resilience.js` (cockatiel), `_lib/rate-limit.js` (@upstash/ratelimit),
-> `api/client-errors.js`, `api/csrf-token.js`, a `pages/status.html`, `.lighthouserc.json`,
-> `scripts/test-gate.mjs`, and `.github/workflows/ci.yml`. The gaps are **coverage and
-> enforcement**: observability reaches only a handful of handlers and zero workers, ~42
-> routes are unrate-limited, ~77 are unvalidated, the resilience helper has one call site,
-> and CI gates lint+vitest but not the test gate, Lighthouse, or playwright. Extend what
-> exists. Do not rewrite working code.
-
----
-
-## The seven prompts
-
-| ID | Mission (one line) | Run order / depends on |
-|---|---|---|
-| **A1** | Wire Sentry + Axiom + trace/request IDs across **every** `api/*.js` handler and every worker; alert on error-rate spikes; readable error dashboard. Make silent failure impossible. | **First.** Foundation for A2–A7's verification. No deps. |
-| **A2** | One error-envelope shape, zod validation, `@upstash/ratelimit`, and idempotency keys across the ~100 `api/*.js` endpoints. | After A1 (so new boundaries emit traces). |
-| **A3** | Audit every money path (x402 checkout, agent-wallet custody/sends, USDC, billing, mint): idempotency, on-chain confirm before success, "your funds are safe" failed state, no double-spend. | After A1 + A2 (envelope + traces in place). |
-| **A4** | Auth, CSRF, secret hygiene (grep the built bundle), per-endpoint authorization, abuse prevention, security headers/CSP. | After A2 (shares the boundary helpers). |
-| **A5** | Raise vitest+playwright coverage on money/auth/3D paths, kill flakes, enforce `test:gate` in CI. | After A2/A3/A4 land the code it must cover. |
-| **A6** | Lighthouse CI as a gate, hold Core Web Vitals budgets, lazy-load Three.js, compress GLBs, mobile perf. | Parallel with A1–A5 (own lane). |
-| **A7** | Circuit breakers (cockatiel), upstream fallback (RPC/3D/LLM/pump.fun), health checks, `/status` page, and fix the Forge "free engines all busy" dead-end into a graceful path. | After A1 (health feeds observability + status). |
-
-**Recommended order:** A1 → (A2 ∥ A6) → (A3 ∥ A4 ∥ A7) → A5. A1 lands the telemetry every
-other prompt verifies against; A5 is last because it must cover the code A2–A4 ship.
-
----
-
-## File-ownership map (run in parallel without colliding)
-
-Each prompt owns a lane. Where two prompts must touch a shared file, the **owner** is named;
-the other prompt extends additively and never reformats. `data/changelog.json` and
-`data/pages.json` are append-only for everyone.
-
-| Prompt | Owns (primary write lane) | May read / extend additively (not owner) |
-|---|---|---|
-| **A1** | `api/_lib/sentry.js`, `api/_lib/axiom.js`, `api/_lib/alerts.js`, `api/client-errors.js`, worker telemetry shims, `docs/ops/observability.md` (new) | `api/_lib/http.js` `wrap()` (coordinate with A2) |
-| **A2** | `api/_lib/http.js`, `api/_lib/validate.js`, `api/_lib/rate-limit.js`, per-handler validation/limits in `api/*.js`, `docs/API_AUDIT.md` | error-envelope shape consumed by A3/A4 |
-| **A3** | `api/x402-checkout.js`, `api/_lib/agent-wallet.js`, `api/_lib/x402-*.js`, `api/_lib/subscription-billing.js`, `src/agent-wallet/`, money-path tests | idempotency keys from A2; envelope from A2 |
-| **A4** | `api/csrf-token.js`, `api/_lib/csrf.js`, `api/_lib/auth.js`, `src/auth/`, security headers in `api/_lib/http.js` (coordinate with A2), `docs/security/` | per-endpoint authz wired into A2's boundary |
-| **A5** | `vitest.config.js`, `playwright.config.js`, `scripts/test-gate.mjs`, `tests/**`, `.github/workflows/ci.yml` (test jobs) | covers code from A2/A3/A4 |
-| **A6** | `.lighthouserc.json`, `.github/workflows/ci.yml` (lighthouse job), `scripts/optimize-glb.mjs`, `scripts/compress-glbs.mjs`, lazy-load wiring in `src/` 3D entry points | shares `ci.yml` with A5 — append jobs, don't reformat |
-| **A7** | `api/_lib/resilience.js`, `api/_lib/forge-health.js`, `api/_lib/provider-health.js`, `api/forge.js` + `src/forge.js` busy path, `pages/status.html`, `api/health*.js` | health events flow into A1's telemetry |
-
-**Shared-file protocol:** `api/_lib/http.js` is touched by A1 (telemetry inside `wrap()`),
-A2 (envelope/validation/limits), and A4 (headers/CSP). A2 owns its structure; A1 and A4 add
-named helpers and call them — no reformatting, stage explicit hunks, re-read `git diff
---staged` before commit. `ci.yml` is shared by A5 (test jobs) and A6 (lighthouse job): each
-appends a job, neither rewrites the file.
-
-When this directory contains only this `00-README.md`, Track A is done.
diff --git a/prompts/production-campaign/A-reliability/A1-observability-backbone.md b/prompts/production-campaign/A-reliability/A1-observability-backbone.md
deleted file mode 100644
index a428da34e..000000000
--- a/prompts/production-campaign/A-reliability/A1-observability-backbone.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# A1 — Observability Backbone
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none —
-this is the first prompt in Track A; every other prompt verifies its work against the telemetry
-you land here.
-
-## Why this matters for $1B
-A platform trusted with money cannot fail silently. The day an x402 settlement or an
-agent-wallet send fails and nobody is paged is the day trust dies — and you only find out from
-an angry holder, not a dashboard. "Observability is total" is a $1B reliability bar
-(`00b-the-bar.md` §1): every error captured, every paid call traced, every worker reporting
-health. Right now that bar is half-met, and the half that's missing is where money moves.
-
-## Current state (read before you write)
-- `api/_lib/http.js` exports `wrap(handler)` — the boundary ~91 of 100 `api/*.js` handlers
- already use. It calls `captureException(err, { ref, url, method })` on a thrown error and
- stamps a `ref`. That `ref` is the seam to build on.
-- `api/_lib/sentry.js` exports `captureException` / `captureMessage` (Sentry guarded by
- `SENTRY_DSN`). `api/_lib/axiom.js` exports `axiomEnabled()`, `ingestEvent(fields)`,
- `recordPaymentMetric(...)`. `api/_lib/alerts.js` exports `sendOpsAlert(title, detail, opts)`.
-- `api/client-errors.js` ingests browser errors from `public/error-reporter.js` and logs one
- structured `[client-error]` line; it forwards to Sentry when configured.
-- **The gap (measured):** only 3 handlers import sentry directly, **0 import axiom**, and no
- worker (`workers/agent-sniper`, `workers/deploy`, `workers/model-*`, `workers/avatar-*`)
- emits structured telemetry. There is no per-request **trace/request ID** propagated into
- logs, no **error-rate spike** alert, and no single **readable error view**. Silent failure
- is still possible. Verify these counts yourself with grep before writing.
-
-## Your mission
-### 1. Make `wrap()` the universal trace + telemetry boundary
-In `api/_lib/http.js`, extend `wrap()` (additively — do not change its signature or break the
-existing `ref`) to: derive a **request ID** (reuse an inbound `x-request-id` / Vercel
-`x-vercel-id` if present, else generate one), set it on the response header, and thread it
-through every `captureException` context **and** an `ingestEvent` call to Axiom on both success
-(sampled) and failure (always) with `{ route, method, status, durationMs, requestId, ref }`.
-Every handler that already uses `wrap()` inherits this for free — that's the leverage. Audit the
-~9 handlers NOT using `wrap()` and either wrap them or justify each in `docs/ops/observability.md`.
-
-### 2. Structured logging with trace IDs, one shape
-Add a tiny structured logger to `api/_lib/axiom.js` (or a new `api/_lib/log.js` it re-exports)
-that emits one JSON line per event — `{ ts, level, route, requestId, msg, ...fields }` — to
-stdout (so Vercel log drains capture it) AND to Axiom when enabled. Replace ad-hoc
-`console.log`/`console.error` on money/auth paths with it. Make `requestId` flow from `wrap()`
-into handlers (attach to `req` or pass via context) so a single request is traceable end to end.
-
-### 3. Bring workers into the same telemetry plane
-Workers run outside the `api/` boundary and are currently dark. Add a shared worker telemetry
-shim (mirror the axiom/sentry helpers — reuse, don't fork) so every worker in `workers/*`
-reports: start, completion, failure (with Sentry capture), and a **heartbeat/health** signal.
-Wire it into each worker's main loop / job handler. A worker that dies must page, not vanish.
-
-### 4. Alert on error-rate spikes — not just single errors
-`sendOpsAlert` fires per-error today. Add rate-aware alerting: when a route's error rate or a
-worker's failure count crosses a threshold over a short window, fire **one** deduped ops alert
-(reuse the existing dedupe in `_lib/alerts.js`/`sentry.js`; don't double-page). Money/auth
-routes get a tighter threshold than read endpoints. Document thresholds in `docs/ops/`.
-
-### 5. A readable error dashboard / surface
-Engineers and the status page both need a human view. Provide a real, reachable surface — a
-queryable Axiom dashboard config committed to the repo **and** a small authenticated internal
-read endpoint (or extend an existing ops/admin surface) that summarizes recent error counts by
-route, top error refs, and worker health. No raw stack traces to unauthenticated users. Wire
-its health summary so A7's `/status` page can consume it (the seam between A1 and A7).
-
-### 6. Verify the wiring is live, not theoretical
-Trigger a real error on a non-money route and confirm: a Sentry event with the `requestId`, an
-Axiom event for the same request, the response carrying the request-ID header, and (by forcing
-a burst) exactly one spike alert. Capture the trace IDs in your completion report.
-
-## Definition of done
-Clears `00b-the-bar.md` §1 "Observability is total": **every** `api/*.js` handler emits a traced
-success/failure event with a propagated request ID; **every** worker reports start/finish/fail +
-heartbeat; error-rate spikes page once (deduped); a readable, auth-gated error/health surface
-exists and feeds A7's status page. No `console.log` left on money/auth paths. Real triggered
-error produces a correlated Sentry + Axiom + header trail (IDs in the report). Inherits the global
-definition of done in `00-README-orchestration.md`. If `SENTRY_DSN`/`AXIOM_*` are absent locally,
-say so and verify the code paths/no-op guards instead of claiming live capture.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only
-(`public/tokens.css`) for any UI. Stage explicit paths only (never `git add -A`); re-check
-`git diff --staged` before commit. Own the telemetry lane — `api/_lib/sentry.js`,
-`_lib/axiom.js`, `_lib/alerts.js`, `api/client-errors.js`, worker shims, `docs/ops/`. You touch
-`_lib/http.js` `wrap()` additively; A2 owns that file's structure — coordinate, add named
-helpers, don't reformat. Extend the existing helpers; don't rewrite them.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. sample-rate control, or a
-PII scrub on logged fields tied to A4's hygiene). Append a `data/changelog.json` entry (tag:
-`infra`) — holders care that the platform watches itself. Then delete this prompt file
-(`prompts/production-campaign/A-reliability/A1-observability-backbone.md`) and report what you
-shipped, the verification trace IDs, and the health-summary seam you left for A7.
diff --git a/prompts/production-campaign/A-reliability/A2-api-hardening.md b/prompts/production-campaign/A-reliability/A2-api-hardening.md
deleted file mode 100644
index fc03a6558..000000000
--- a/prompts/production-campaign/A-reliability/A2-api-hardening.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# A2 — API Hardening
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** A1
-(so the new boundaries you harden emit traces and request IDs).
-
-## Why this matters for $1B
-Every public endpoint is attack surface and trust surface at once. An unvalidated body that
-500s, a mutating route that double-charges on a retry, or a rate-free endpoint that lets one
-client exhaust an upstream — each one breaks the "trusted with money, used daily" promise.
-`00b-the-bar.md` §4 is explicit: "Inputs are validated at the boundary and trusted internally.
-Rate-limited where abusable. CSRF-protected where state-changing." This prompt makes that true
-across all ~100 endpoints with **one** consistent shape so the platform behaves predictably
-under load and abuse.
-
-## Current state (read before you write)
-- `api/_lib/http.js` is the shared boundary: `wrap()`, `json()`, `error()`, `serverError()`,
- `validationError()`, `rateLimited()`, `readJson()`, `method()`, `cors()`. Error responses
- already force `no-store` and set `x-content-type-options`/`x-frame-options`. This is your base.
-- `api/_lib/rate-limit.js` wraps `@upstash/ratelimit` (`limits`, `clientIp`). `api/_lib/validate.js`
- exists. `zod@^3` is a dependency.
-- **The gap (measured — verify with grep):** of 100 `api/*.js` handlers, only ~58 import
- rate-limit and only ~23 use zod/validate. Mutating routes lack **idempotency keys**. The
- error response shape is *mostly* consistent but not enforced — different handlers return
- different bodies. There is no single documented envelope contract.
-
-## Your mission
-### 1. Define and enforce ONE error-envelope shape
-Pin the canonical error body in `api/_lib/http.js` (extend `error()`/`validationError()`/
-`serverError()` so they're the only way to emit an error) — e.g.
-`{ ok: false, error: { code, message, requestId, ref?, fields? } }` — carrying A1's `requestId`.
-Document it once in `docs/API_AUDIT.md`. Migrate handlers returning ad-hoc error bodies to the
-helpers. Success responses stay as-is unless trivially normalizable; do not churn working reads.
-
-### 2. Validate input at every boundary with zod
-For every handler that reads a body, query, or path params, add a zod schema and parse at the
-top, returning `validationError()` (with field-level detail) on failure. Centralize reusable
-schemas in `api/_lib/validate.js`. Internal code then trusts its inputs — no defensive
-re-checking downstream. Prioritize: mutating routes, money routes, anything taking a wallet
-address / mint / amount. Cover the ~77 currently-unvalidated handlers; track progress in
-`docs/API_AUDIT.md`.
-
-### 3. Rate-limit every abusable route
-Apply `@upstash/ratelimit` via `_lib/rate-limit.js` to the ~42 routes that lack it. Tier the
-limits: generous on cheap reads, tight on expensive/abusable ones (generation, LLM proxies,
-mint, send, anything that spends an upstream's quota or money). On limit, return the consistent
-`rateLimited()` envelope with a `Retry-After`. Use `clientIp` + (for authed routes) the
-identity as the key. If Redis is unavailable, fail **open** for reads and **closed** for
-money/auth routes — never crash.
-
-### 4. Idempotency keys on every mutating route
-Add idempotency to POST/PUT/PATCH/DELETE handlers that create or change state. Accept an
-`Idempotency-Key` header (and/or derive a deterministic key from the operation); store
-key→result in Redis with a TTL; on a repeat key, return the stored result instead of re-running.
-This is the boundary contract; A3 will rely on it for the money paths specifically — so make the
-helper reusable and money-path-grade. Build a small `idempotent(handler, keyFn)` helper alongside
-`wrap()` and document it.
-
-### 5. Error boundaries at every network/input edge
-Audit handlers for un-awaited promises, unguarded `JSON.parse`, and upstream calls without
-try/catch. Every network/input boundary must produce an actionable envelope, never a raw 500 or
-hung request. Internal logic (post-validation) trusts itself — don't over-wrap pure functions.
-
-### 6. Produce the audit ledger
-Update `docs/API_AUDIT.md` into a real per-endpoint matrix: validated ✓, rate-limited ✓,
-idempotent ✓ (or N/A for reads), auth-gated (defer detail to A4), envelope ✓. This is the
-checklist A5 turns into tests and A4 cross-checks for authz.
-
-## Definition of done
-Clears `00b-the-bar.md` §4: all ~100 handlers validate input at the boundary, every abusable
-route is rate-limited with a `Retry-After`, every mutating route is idempotent and retry-safe,
-and **one** error-envelope shape is enforced through `http.js` helpers carrying A1's requestId.
-`docs/API_AUDIT.md` is a complete, accurate matrix. A retried mutating request returns the same
-result, not a duplicate. Inherits the global definition of done in `00-README-orchestration.md`.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only for any
-UI. Stage explicit paths only (never `git add -A`); re-check `git diff --staged` before commit.
-**You own `api/_lib/http.js`'s structure**, `_lib/validate.js`, `_lib/rate-limit.js`, the
-per-handler validation/limits, and `docs/API_AUDIT.md`. A1 adds telemetry inside `wrap()` and A4
-adds headers/CSP — accept their additive helpers; don't undo them. Extend; don't rewrite working
-handlers' success paths.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a body-size cap or a
-content-type guard applied platform-wide via the boundary). Append a `data/changelog.json` entry
-(tag: `improvement` or `security`) only if user-visible (e.g. clearer error messages). Then delete
-this prompt file (`prompts/production-campaign/A-reliability/A2-api-hardening.md`) and report the
-envelope shape, the idempotency helper signature (A3 depends on it), and any route you left
-deliberately un-limited and why.
diff --git a/prompts/production-campaign/A-reliability/A3-payment-correctness.md b/prompts/production-campaign/A-reliability/A3-payment-correctness.md
deleted file mode 100644
index 04d96d5b8..000000000
--- a/prompts/production-campaign/A-reliability/A3-payment-correctness.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# A3 — Payment Correctness
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** A1
-(traces on money paths) and A2 (the idempotency helper + error envelope you'll reuse).
-
-## Why this matters for $1B
-This is **the** trust foundation. A platform that loses funds once is worth zero forever — no
-feature, no growth, no polish recovers from "it took my money and gave me nothing." `00b-the-bar.md`
-§1 states it plainly: "No money is ever lost or double-spent. Payment, mint, send, and trade paths
-are idempotent, retry-safe, and confirm on-chain before claiming success. A failed transaction
-surfaces a clear 'this did not go through, your funds are safe' state." Every dollar that flows
-through three.ws flows through the paths you audit here.
-
-## Current state (read before you write)
-- **x402 checkout:** `api/x402-checkout.js` already builds Solana/EVM payment transactions, uses
- `createAssociatedTokenAccountIdempotentInstruction` (idempotent ATA), and has retry/confirm
- logic ("confirm and prompts a clean retry, never a double charge"). `api/_lib/x402-solana-confirm.js`,
- `_lib/x402-spending-ledger.js`, `_lib/x402-spending-cap.js`, `_lib/evm-payment-verify.js`,
- `_lib/x402-errors.js` (the `X402Error` type) are the supporting cast.
-- **Agent-wallet custody/sends:** `api/_lib/agent-wallet.js`, `_lib/agent-spend-policy.js`,
- `_lib/solana-transfer.js`, `_lib/evm-transfer.js`, `src/agent-wallet/ownership.js`. Existing
- guard tests: `tests/agent-custody-guards.test.js`.
-- **Billing / subscriptions:** `api/_lib/subscription-billing.js`, `_lib/subscription-checkout.js`,
- `_lib/subscription-pricing.js`. Existing: `tests/billing.test.js`.
-- **Mint / launch:** `api/pump-launch.js`, `_lib/pump-platform-fee.js`, `_lib/onchain-deploy.js`,
- `_lib/payout.js`, `_lib/royalty.js`, `_lib/fee.js`.
-- **The gap:** correctness is strong in places (x402 checkout) and unproven elsewhere. There is no
- single audit guaranteeing **every** money path: (a) is idempotent under retry, (b) confirms
- on-chain before reporting success, (c) has a designed failed/refund state, (d) cannot
- double-spend. Verify each path's current behavior by reading it — do not assume.
-
-## Your mission
-### 1. Enumerate every money path, then audit each against four invariants
-Build the inventory (x402 checkout + paid-endpoint settlement, agent-wallet sends, USDC
-transfers, subscription billing, mint/launch fees, payouts/royalties, copy-trade execution, any
-`*-spending-*` ledger write). For each, verify and fix: **(a) Idempotency** — a retried request
-with the same idempotency key (A2's helper) never moves funds twice; **(b) Confirm-before-success**
-— success is reported only after on-chain confirmation (reuse `x402-solana-confirm.js` /
-`evm-payment-verify.js` patterns), never on broadcast; **(c) Failed/refund state**; **(d)
-No double-spend** under concurrent requests (Redis lock / atomic ledger write).
-
-### 2. "Your funds are safe" failure state — everywhere money moves
-Every money path's failure must produce the exact reassurance pattern from the bar: a clear,
-designed state that says *this did not go through, your funds are safe*, with a real retry. No
-ambiguous "error" toast on a payment, no spinner that spins after a broadcast, no silent
-swallow. Wire this in both the API envelope (A2 shape) and the UI surfaces that call these paths
-(Forge high-quality unlock, x402 checkout, agent send, billing). Distinguish "broadcast failed
-(funds untouched)" from "broadcast succeeded, confirmation pending" — they need different copy.
-
-### 3. On-chain confirmation gate on every send/mint
-No path reports success on a signature alone. Each must poll/confirm to the right commitment
-('confirmed'/'finalized' as appropriate) within a budget, then verify the on-chain effect (token
-received, ATA funded, fee paid) before flipping state to success. On timeout, return a "pending —
-we'll confirm" state, never a false success. Record the signature so a later reconciliation can
-resolve pending → success/failed.
-
-### 4. Atomic ledgers and concurrency safety
-The spending ledger and any balance/cap accounting must be atomic — concurrent requests on the
-same wallet cannot both pass a cap check and both spend. Use Redis atomic ops / a per-wallet lock.
-Reconcile pending entries (a sweep that confirms or fails stuck signatures) so the ledger never
-drifts from chain truth.
-
-### 5. Reconciliation + alerting on money anomalies
-Wire money-path failures and anomalies (a confirm timeout, a ledger mismatch, a refund) into A1's
-telemetry with `recordPaymentMetric(...)` and a tighter ops-alert threshold. A stuck or failed
-payment must page. Add a reconciliation routine (endpoint or worker) that resolves pending
-signatures and flags drift.
-
-### 6. Prove it with tests
-Extend `tests/agent-custody-guards.test.js` and `tests/billing.test.js` and add money-path specs:
-double-submit returns one effect; broadcast-then-confirm-fail yields the "funds safe" state;
-concurrent cap checks can't both pass; a pending signature reconciles correctly. These feed A5's
-gate — make them offline-safe so `scripts/test-gate.mjs` can include them.
-
-## Definition of done
-Clears `00b-the-bar.md` §1 money clause for **every** path in the inventory: idempotent,
-retry-safe, confirm-on-chain-before-success, no double-spend, and a designed "your funds are safe"
-failure state in both API and UI. Atomic ledger; reconciliation resolves pending. Money anomalies
-page via A1. New tests cover double-submit, confirm-failure, and concurrency, and run in the gate.
-Inherits the global definition of done in `00-README-orchestration.md`. Where you cannot exercise a
-live mainnet path locally, verify the logic and tests and say so — never claim a live settlement you
-didn't observe.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — **and no real third-party mints in tests/fixtures**;
-use `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) or a clearly-synthetic placeholder.
-`$THREE` is the only coin. Stage explicit paths only (never `git add -A`); re-check `git diff
---staged` before commit (watch the `npx vercel build` trap that bundles `api/*.js` — check `head -1`
-for `__defProp`). **You own the money paths**: `api/x402-checkout.js`, `_lib/agent-wallet.js`,
-`_lib/x402-*`, `_lib/subscription-billing.js`, `src/agent-wallet/`, money-path tests. Reuse A2's
-idempotency helper and A1's payment metrics; don't fork them. Extend the strong existing logic; don't
-rewrite working confirm code.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. the pending-signature
-reconciliation sweep, or a per-wallet daily-spend safety ceiling). Append a `data/changelog.json`
-entry (tag: `security` or `fix`) — "your funds are safe" guarantees are exactly what holders want to
-read. Then delete this prompt file
-(`prompts/production-campaign/A-reliability/A3-payment-correctness.md`) and report the money-path
-inventory, which invariants each path already met vs. you fixed, and any path needing live-mainnet
-verification you couldn't do locally.
diff --git a/prompts/production-campaign/A-reliability/A4-security-hardening.md b/prompts/production-campaign/A-reliability/A4-security-hardening.md
deleted file mode 100644
index b9ea31ec1..000000000
--- a/prompts/production-campaign/A-reliability/A4-security-hardening.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# A4 — Security Hardening
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** A2
-(shares the `http.js` boundary where authz and headers attach).
-
-## Why this matters for $1B
-Trust is the whole valuation thesis, and security is its hard edge. One leaked server key in the
-client bundle, one endpoint that lets user A move user B's funds, one CSRF hole on a state-changing
-route — any of these is a single-incident, reputation-ending event for a platform that holds money
-and wallets. `00b-the-bar.md` §4: "No secrets in the client. Every API key lives server-side behind
-a proxy. Grep the built client bundle for key patterns as part of done." This prompt makes the
-attack surface boring.
-
-## Current state (read before you write)
-- `api/_lib/http.js` already sets `x-content-type-options: nosniff`, `x-frame-options: DENY`,
- `referrer-policy: strict-origin-when-cross-origin` on responses — a base to build CSP and the
- rest on. `api/csrf-token.js` + `api/_lib/csrf.js` exist. `api/_lib/auth.js`, `_lib/account-auth.js`,
- `_lib/siwe.js`, `_lib/siws.js`, `_lib/siwx-server.js`, `_lib/zauth.js`, `_lib/privy.js`,
- `_lib/saml.js` cover auth; `src/auth/` (email-auth, walletconnect-bridge) the client side.
-- `api/_lib/ssrf-guard.js` / `_lib/ssrf.js`, `_lib/secret-box.js`, `_lib/pii.js`,
- `_lib/moderation.js`, `_lib/granite-guardian.js` exist. Security docs: `docs/security/SECURITY_AUDIT.md`,
- `SECURITY_REMEDIATION.md`.
-- **The gap:** CSRF and auth helpers exist but aren't provably applied on **every** state-changing
- and money/auth route; there is no committed proof that **no server secret reaches the client
- bundle**; there is no platform-wide **CSP**; per-endpoint **authorization** (does this identity own
- this resource?) is uneven. Read the helpers and the route list — verify, don't assume.
-
-## Your mission
-### 1. Grep the BUILT bundle for secrets — and gate it
-Build the client (read how the repo builds; do **not** run `npx vercel build`, which corrupts
-`api/*.js` — use the documented `vite`/`build:*` path) and grep the output for key patterns
-(`sk-`, `SENTRY_DSN` if private, RPC keys, Privy/Helius/Birdeye/ElevenLabs/OpenAI/Anthropic keys,
-`PRIVATE_KEY`, JWT secrets, `process.env.*` leaks). Any hit is a leaked secret — move it behind a
-server proxy. Add a committed scanner (a script A5 wires into CI) that fails the build on a future
-leak. This is a hard gate, not advisory.
-
-### 2. CSRF on every state-changing route
-Confirm `api/csrf-token.js` issues and `_lib/csrf.js` verifies a token, then enforce verification on
-**every** POST/PUT/PATCH/DELETE that isn't a signature-authenticated API (where the wallet signature
-is the CSRF defense). Cross-check against A2's `docs/API_AUDIT.md` matrix — add a "CSRF ✓" column.
-No state-changing browser route may be unprotected.
-
-### 3. Per-endpoint authorization — ownership checks everywhere
-Validation (A2) proves the input is well-formed; authorization proves *this caller may do this*. Audit
-every endpoint that reads or mutates a user-owned resource (wallet, agent, build, billing, world,
-launch) and add an ownership/role check: the authenticated identity must own (or be permitted on) the
-target. An IDOR — user A reading/moving user B's wallet by changing an ID — must be impossible. Use the
-existing auth/identity helpers; centralize a `requireOwner`/`requireAuth` guard so it's consistent.
-
-### 4. Security headers + a real CSP
-Extend the `http.js` header block (additively — A2 owns the file's structure) and the HTML/static
-layer with a real Content-Security-Policy (script/style/connect/img/font sources scoped to what the
-app actually loads — no blanket `unsafe-inline` for scripts where avoidable), plus `Strict-Transport-Security`,
-`Permissions-Policy`, and `Cross-Origin-Opener/Resource-Policy` where appropriate. Test that the CSP
-doesn't break Three.js, wallet SDKs, or the existing pages — tighten iteratively, don't ship a CSP
-that white-screens a surface.
-
-### 5. Abuse prevention + secret hygiene
-Layer on top of A2's rate limits: bot/abuse heuristics on the expensive, money-adjacent, and
-auth-bruteforceable routes (login, mint, send, generation). Confirm secrets are read only via
-`_lib/env.js`/`_lib/secret-box.js` server-side, never logged (coordinate with A1 so logged fields are
-scrubbed of PII/secrets), and rotated-friendly. Verify SSRF guards cover every server-side fetch of a
-user-supplied URL.
-
-### 6. Update the security audit ledger
-Turn `docs/security/SECURITY_AUDIT.md` into a current, accurate map: bundle-secret scan result, CSRF
-coverage, authz coverage, CSP policy, abuse controls, SSRF coverage, open items with owners. This is
-the document an external auditor (and Track G) reads.
-
-## Definition of done
-Clears `00b-the-bar.md` §4 security clauses: a committed scan proves **zero** server secrets in the
-client bundle and gates future leaks; CSRF enforced on every state-changing browser route; an ownership
-check on every user-owned-resource endpoint (no IDOR); a real CSP + security headers live without
-breaking any surface; abuse controls on auth/money/generation routes; SSRF guarded on every user-URL
-fetch. `docs/security/SECURITY_AUDIT.md` reflects reality. Inherits the global definition of done in
-`00-README-orchestration.md`.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only for any UI.
-Stage explicit paths only (never `git add -A`); re-check `git diff --staged` before commit. **Do NOT
-run `npx vercel build`** (it bundles `api/*.js` — `head -1` check before any `api/` commit). You own
-`api/csrf-token.js`, `_lib/csrf.js`, `_lib/auth.js`, `src/auth/`, the header/CSP block in `http.js`
-(additive — A2 owns structure), and `docs/security/`. Reuse existing auth/SSRF/secret helpers; don't
-rewrite working auth flows.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a CSP report-only collector that
-feeds A1, or auth-bruteforce lockout). Append a `data/changelog.json` entry (tag: `security`) — visible
-trust signals matter to holders. Then delete this prompt file
-(`prompts/production-campaign/A-reliability/A4-security-hardening.md`) and report the bundle-scan result,
-the CSP policy shipped, any route you found unauthorized and fixed, and the scanner seam A5 should gate.
diff --git a/prompts/production-campaign/A-reliability/A5-test-coverage-ci-gate.md b/prompts/production-campaign/A-reliability/A5-test-coverage-ci-gate.md
deleted file mode 100644
index 91084ba47..000000000
--- a/prompts/production-campaign/A-reliability/A5-test-coverage-ci-gate.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# A5 — Test Coverage & CI Gate
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** A2,
-A3, A4 (their new code is what you must cover; their audit ledgers are your test checklists).
-
-## Why this matters for $1B
-Reliability that isn't enforced by CI is reliability that regresses on the next deploy. A1–A4 can
-make the platform correct today; only a green, enforced gate keeps it correct tomorrow. The $1B
-distinction is a platform where a money/auth/3D regression **cannot ship** — the build fails first.
-A flaky suite is as bad as no suite: it trains everyone to ignore red, and then a real failure slips
-through. This prompt turns the test surface into a trustworthy gate.
-
-## Current state (read before you write)
-- 219 specs under `tests/` (`*.test.js`). `vitest.config.js` and `playwright.config.js` configure
- unit + browser tests; `npm test` drives a real browser via Playwright and includes specs that need
- live DB/RPC credentials.
-- `scripts/test-gate.mjs` runs a **curated, offline-safe subset** ("money-path confirmation handling,
- the HTTP cache/error boundary, custody spend guards, payment verification") so a regression in those
- FAILS THE DEPLOY. Its header explicitly invites adding new money/auth invariant tests.
-- `.github/workflows/ci.yml` runs: Lint (`eslint`), Unit tests (`vitest run`), Source guards
- (`check-api-not-bundled`, `check:images`, `build:pages`), Typecheck (advisory). **It does NOT run
- `scripts/test-gate.mjs`, Playwright, or coverage thresholds.**
-- **The gap:** coverage on money/auth/3D paths is unmeasured; flakes are unaddressed; the curated gate
- exists but isn't enforced in CI as the merge-blocking checkpoint; there are no coverage budgets.
-
-## Your mission
-### 1. Measure coverage, then raise it on the paths that matter
-Turn on vitest coverage (v8/istanbul) and read the real numbers. Set **enforced** thresholds — not a
-blanket global, but a meaningful floor on the critical lanes: money paths (A3's inventory),
-auth/authz (A4), and the 3D pipeline (`src/glb-canonicalize.js`, `src/animation-retarget.js`,
-forge/avatar flows). Write the missing tests to clear the floor. Cover the A2 boundary helpers
-(envelope, validation, idempotency, rate-limit) and the A4 guards (CSRF, ownership, bundle-secret
-scan) directly.
-
-### 2. Make the money/auth/3D specs gate-grade and offline-safe
-Extend `scripts/test-gate.mjs` to include the new A3/A4 invariant tests (double-submit idempotency,
-confirm-failure "funds safe", concurrent cap, IDOR/authz rejection) — keeping every gate test
-green-offline (no live DB/RPC/browser), per its own header rule. The gate is the fast, deterministic
-checkpoint; the heavy suite stays in `npm test`.
-
-### 3. Eliminate flakes — root-cause, don't retry-paper-over
-Find the flaky specs (run the suite repeatedly; look for time/order/network nondeterminism). Fix the
-cause: fake timers for time-dependent logic, deterministic seeds, awaited async, isolated state,
-stable Playwright selectors (`getByRole`/test-ids, not brittle CSS) and proper auto-waiting instead of
-arbitrary `waitForTimeout`. A test that's green 100/100 runs or it's deleted/fixed — no `retry: 3`
-masking real instability on money/auth paths.
-
-### 4. Enforce `test:gate` (and Playwright) in CI
-Wire `scripts/test-gate.mjs` into `.github/workflows/ci.yml` as a **required**, merge-blocking job.
-Add a Playwright job for the critical e2e flows (first-run Forge free lane, wallet connect, an x402
-checkout dry path, the status page) — run it headless with the right browser deps, artifact traces on
-failure. Append jobs additively; **A6 also edits `ci.yml`** for Lighthouse — coordinate, don't reformat
-the file, stage explicit hunks.
-
-### 5. Cover the new code from A2/A3/A4 explicitly
-Walk A2's `docs/API_AUDIT.md` and A4's `docs/security/SECURITY_AUDIT.md` as checklists: each
-"validated/rate-limited/idempotent/CSRF/authz ✓" claim should have a test that proves it. Where a claim
-has no test, write one or correct the ledger. The audit and the tests must agree.
-
-### 6. Document the testing contract
-Add/refresh a short `docs/ops/testing.md` (or extend an existing testing doc): what runs in the gate
-vs. the full suite, how to add a gate-grade test, the coverage floors and where they're enforced, how
-to debug a Playwright trace. So the next contributor keeps the gate green by default.
-
-## Definition of done
-The critical lanes (money, auth, 3D) meet an **enforced** coverage floor; A2/A3/A4's new logic has
-direct tests that match their audit ledgers; flakes are root-caused (no retry-masking on money/auth);
-`scripts/test-gate.mjs` and a Playwright critical-path job are **required, merge-blocking** in
-`ci.yml`; the testing contract is documented. `00b-the-bar.md`'s "existing tests pass; new logic has
-new tests; money/auth/3D paths covered" is enforced by machinery, not goodwill. Inherits the global
-definition of done in `00-README-orchestration.md`. Note explicitly which specs need live credentials
-and therefore live in the heavy suite, not the gate.
-
-## Operating rules (override defaults)
-No mocks of **our own** money/RPC logic — test the real code paths with offline-safe inputs; **no real
-third-party mints in fixtures** (use `$THREE` or a synthetic placeholder). `$THREE` is the only coin.
-Stage explicit paths only (never `git add -A`); re-check `git diff --staged` before commit. You own
-`vitest.config.js`, `playwright.config.js`, `scripts/test-gate.mjs`, `tests/**`, and the test jobs in
-`.github/workflows/ci.yml` (shared with A6 — append, don't reformat). Don't weaken a threshold to pass;
-fix the code or write the test.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. coverage trend artifact, or a
-mutation-test smoke on the money path). No changelog entry unless something user-visible changed (CI is
-an internal chore) — but if a flaky-bug fix changed real behavior, log it (tag: `fix`). Then delete this
-prompt file (`prompts/production-campaign/A-reliability/A5-test-coverage-ci-gate.md`) and report the
-coverage numbers before/after, the gate job names now blocking merge, and any flake you quarantined with
-a follow-up needed.
diff --git a/prompts/production-campaign/A-reliability/A6-performance-web-vitals.md b/prompts/production-campaign/A-reliability/A6-performance-web-vitals.md
deleted file mode 100644
index eb68635bb..000000000
--- a/prompts/production-campaign/A-reliability/A6-performance-web-vitals.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# A6 — Performance & Web Vitals
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none —
-this prompt owns its own lane and can run in parallel with A1–A5 (it shares only `ci.yml` with A5;
-coordinate there).
-
-## Why this matters for $1B
-Performance is trust the user feels before they read a word. A 3D platform that ships a multi-MB GLB
-on the critical path, janks on scroll, or shifts layout under the user's cursor reads as a prototype,
-not a $1B product. `00b-the-bar.md` §2 sets the hard numbers: **LCP < 2.5s, CLS < 0.1, INP < 200ms on
-a mid-tier mobile over 4G, on every primary surface**; 3D loads progressively; no FOUC. Speed is also
-growth — every 100ms of LCP is activation lost. This prompt makes the numbers real and keeps them real.
-
-## Current state (read before you write)
-- `.lighthouserc.json` already exists. `scripts/optimize-glb.mjs` and `scripts/compress-glbs.mjs`
- exist for asset compression. `inject-theme-boot.mjs` boots the theme before paint (the status page
- and others already inline the theme-boot script — no-flash is partly solved).
-- `.github/workflows/ci.yml` runs lint/vitest/source-guards/typecheck but **does not run Lighthouse**.
-- Three.js powers the 3D surfaces (Forge, avatar presence, viewers). It's heavy; verify how/where it's
- imported and whether it's on the critical path of pages that don't need it immediately.
-- **The gap:** Core Web Vitals are not measured or budgeted in CI; `.lighthouserc.json` is unenforced;
- GLB compression isn't proven applied to shipped assets; Three.js lazy-loading and GPU disposal are
- inconsistent. Read the actual import graph and asset sizes before optimizing — measure first.
-
-## Your mission
-### 1. Wire Lighthouse CI as an enforced gate with real budgets
-Flesh out `.lighthouserc.json` with assertions that enforce the §2 budgets (LCP < 2.5s, CLS < 0.1,
-INP < 200ms — plus TBT/total-byte-weight guards) on the **primary surfaces** (home, Forge, an agent
-profile, the marketplace, the status page). Add a Lighthouse job to `.github/workflows/ci.yml` that runs
-on a mobile/4G throttle profile and **fails the build** when a budget regresses. Append the job
-additively — **A5 also edits `ci.yml`** (test jobs); coordinate, don't reformat, stage explicit hunks.
-
-### 2. Lazy-load Three.js and every heavy module off the critical path
-Trace the Three.js import graph. Any surface that doesn't render 3D above the fold must not pay for
-Three.js in its initial bundle — dynamic-`import()` it on demand behind a real loading skeleton (not a
-spinner, not a `setTimeout` fake). Same for other heavy deps (wallet SDKs, charting). Verify in the
-network tab that the 3D chunk loads only when a 3D surface is actually entered.
-
-### 3. Compress GLBs and load them progressively
-Run `scripts/optimize-glb.mjs` / `scripts/compress-glbs.mjs` over the shipped GLB assets (draco/meshopt)
-and confirm the size drop. No surface blocks on a multi-MB model: stream/lazy-load the GLB with a
-skeleton that matches the final layout, and **dispose GPU resources on unmount** (geometries, materials,
-textures, renderer) so navigating away doesn't leak memory or tank the next surface's frame rate.
-Target 60fps on the avatar presence and no jank on scroll.
-
-### 4. Kill layout shift and FOUC on every primary surface
-Confirm theme/tokens/fonts resolve before content paints (build on `inject-theme-boot.mjs`); reserve
-space for async content (images, 3D canvases, lists) with explicit dimensions/aspect-ratios so nothing
-shifts; preload the critical font; set `font-display` sensibly. CLS < 0.1 means the page doesn't move
-under the user — verify with the Lighthouse trace, not by eye.
-
-### 5. Mobile performance pass
-Test the budgets on a mid-tier mobile profile at 320px and 768px. Debounce input handlers, paginate long
-lists, use `transform`/`will-change` for animations (and honor `prefers-reduced-motion`), avoid main-
-thread-blocking work during interaction (INP). Defer non-critical third-party scripts. The first-run
-path (`00b-the-bar.md` §5: value in < 60s) must be fast on a phone, not just a laptop.
-
-### 6. Prove the numbers and hold them
-Run Lighthouse on each primary surface before/after and record the LCP/CLS/INP deltas in your report.
-The CI gate then holds them: a future PR that regresses a budget fails. Document the budgets and how to
-read a failing Lighthouse run in `docs/ops/`.
-
-## Definition of done
-Clears `00b-the-bar.md` §2: every primary surface meets LCP < 2.5s, CLS < 0.1, INP < 200ms on a
-mobile/4G profile, enforced by a **merge-blocking** Lighthouse CI job; Three.js and heavy modules are
-lazy-loaded behind real skeletons; shipped GLBs are draco/meshopt-compressed with progressive load and
-GPU disposal; no FOUC or layout shift on primary surfaces; mobile is fast at 320/768px. Before/after
-numbers in the report. Inherits the global definition of done in `00-README-orchestration.md`.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — **no `setTimeout` fake-loading or fake progress bars**;
-real async with real skeletons only. `$THREE` is the only coin. Design tokens only (`public/tokens.css`)
-for any skeleton/loading UI. Stage explicit paths only (never `git add -A`); re-check `git diff --staged`
-before commit (watch the `npx vercel build` `api/*.js` bundling trap if you build). You own
-`.lighthouserc.json`, the Lighthouse job in `ci.yml` (shared with A5 — append, don't reformat), the GLB
-scripts, and the lazy-load wiring in `src/` 3D entry points. Don't rewrite working render code — extend
-its loading/disposal.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a route-level prefetch of the 3D
-chunk on hover, or an OG-image perf win). Append a `data/changelog.json` entry (tag: `improvement`) —
-"the app got faster" is user-visible. Then delete this prompt file
-(`prompts/production-campaign/A-reliability/A6-performance-web-vitals.md`) and report the before/after
-Web Vitals per surface, the GLB size reductions, and any surface that can't yet hold a budget and why.
diff --git a/prompts/production-campaign/A-reliability/A7-resilience-degradation-status.md b/prompts/production-campaign/A-reliability/A7-resilience-degradation-status.md
deleted file mode 100644
index 0ae023709..000000000
--- a/prompts/production-campaign/A-reliability/A7-resilience-degradation-status.md
+++ /dev/null
@@ -1,97 +0,0 @@
-# A7 — Resilience, Graceful Degradation & Status
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** A1
-(your health signals and circuit-breaker state feed its telemetry and the status page).
-
-## Why this matters for $1B
-Upstreams fail — RPCs throttle, 3D engines saturate, LLM proxies time out, pump.fun hiccups. A $1B
-platform never lets an upstream's bad day become the user's dead end. `00b-the-bar.md` §1: "Graceful
-degradation, always. When an upstream is down… the surface degrades to a useful state with a real retry
-— exactly the failure we already see on Forge ('free engines all busy'). That state must offer a path
-forward (switch engine, queue, notify-me), not a dead end." Resilience plus an honest status page is how
-trust survives the inevitable outage.
-
-## Current state (read before you write)
-- `api/_lib/resilience.js` is a real cockatiel wrapper (circuit breaker + timeout, one breaker per
- upstream, memoized per lambda instance) — but **only ~1 call site uses it**. The pattern is built;
- adoption is the gap.
-- `api/_lib/forge-health.js` already probes 3D backends and reports `ok/degraded/down/byok/unconfigured`
- (it was built because two outages hid behind a `configured:true` flag). `api/_lib/provider-health.js`,
- `_lib/llm-health.js`, `_lib/sse-poll-breaker.js`, `_lib/db-retry.js` exist.
-- `api/forge.js` already returns a designed `provider_busy` error ("The free 3D Spaces are all busy or
- warming up right now. Try again in a moment, or pick another engine.") and has `status: 'queued'`
- paths. `src/forge.js` surfaces busy lanes (`busy right now: …`). **But the free-lane busy case is a
- near-dead-end for the user** — the copy suggests switching engines without making it a one-click path,
- and there's no queue or notify-me.
-- `pages/status.html` exists (status page shell with OG/theme-boot). It needs to render **real** live
- health, not a static placeholder.
-- **The gap:** raw external call sites lack breakers/fallbacks; the status page isn't wired to real
- health; the Forge free-lane busy state forwards the user poorly. Verify each by reading before writing.
-
-## Your mission
-### 1. Put every external call behind a circuit breaker + timeout + fallback
-Adopt `api/_lib/resilience.js` at every raw upstream call site that doesn't already have a guard: Solana
-RPC, Birdeye/Helius, the 3D engines, LLM proxies, pump.fun. Each gets a breaker (named per upstream), a
-timeout, and a **real fallback** — a secondary RPC, an alternate 3D engine, a cached/last-known value, or
-a designed degraded response. Never a hung request, never an unguarded throw. Where a fallback genuinely
-can't exist, fail fast into a designed "try again" envelope (A2 shape) — not a 30s hang.
-
-### 2. Fix the Forge "free engines all busy" dead-end into a real path forward
-This is the flagship fix. When the free lane is saturated, the user must get a **one-click** path, not a
-sentence telling them to do something manual: (a) **switch engine** — surface the next available healthy
-engine (from `forge-health.js`) as a button that retries on it immediately; (b) **queue** — let the user
-join a queue and get notified/auto-started when capacity frees (real backend state, not a fake timer);
-(c) **notify-me** — capture intent and ping when the free lane recovers. Wire `forge-health.js` so the UI
-knows which engines are actually `ok` right now and never offers a `down` one. Design the busy state to
-the screenshot bar — it should feel like the product caring, not breaking.
-
-### 3. Health checks for every dependency
-Stand up real health checks: each upstream (RPC, 3D engines via `forge-health.js`, LLM via `llm-health.js`,
-DB, Redis, pump.fun) and each worker (consume A1's worker heartbeats) reports `ok/degraded/down` with a
-reason. Centralize into one health aggregator endpoint that the status page and A1's dashboard both read.
-Probes must be cheap and never spend vendor money (follow `forge-health.js`'s zero-cost probe pattern).
-
-### 4. Make `/status` a real, live status page
-Wire `pages/status.html` to the health aggregator: live component status (platform, API, x402 paid rails,
-3D engines, RPC, workers), current incident banner if any, and the 90-day uptime history its own meta
-already promises. Design every state (all-green, partial-degradation, major-outage) to the bar — clear,
-honest, branded, accessible, responsive at 320/768/1440px. No fake "all systems operational" when a probe
-says otherwise. This is the public face of trust during an outage.
-
-### 5. Degrade every user-facing surface gracefully
-For each surface that depends on a flaky upstream (Forge, avatar presence, trade/quote, agent chat, pump
-feeds), ensure the breaker-open / fallback path renders a **useful** state with a real retry, not a blank
-void or a spinner that never resolves — per A2's envelope and `00b-the-bar.md` §3 error-state bar. The
-user always knows what happened and what to do next.
-
-### 6. Surface resilience health into observability
-Feed breaker state transitions (open/half-open/closed), fallback activations, and degradations into A1's
-telemetry and ops alerts — a breaker that opens on a money/RPC upstream should page. The status page,
-A1's dashboard, and the alerts all read one source of truth.
-
-## Definition of done
-Clears `00b-the-bar.md` §1 degradation clause: every external call has a breaker + timeout + real
-fallback; the Forge "free engines all busy" case is a one-click switch/queue/notify-me path (no dead
-end); a live `/status` page renders real component health with all three states designed; every flaky-
-upstream surface degrades to a useful retry; breaker/degradation events feed A1's telemetry and page on
-money/RPC. Inherits the global definition of done in `00-README-orchestration.md`. Where you can't induce a
-real upstream outage locally, force the breaker open in a test and verify the fallback + status render.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — **no `setTimeout` fake progress** for the queue; real
-backend queue state only. `$THREE` is the only coin. Design tokens only (`public/tokens.css`) for the
-status page and busy/degraded states. Stage explicit paths only (never `git add -A`); re-check `git diff
---staged` before commit (watch the `npx vercel build` `api/*.js` bundling trap). You own
-`api/_lib/resilience.js`, `_lib/forge-health.js`, `_lib/provider-health.js`, the busy path in `api/forge.js`
-+ `src/forge.js`, `pages/status.html`, and the health endpoint(s). Health events flow into A1 — reuse its
-helpers, don't fork. Extend the existing breaker/health/queue logic; don't rewrite working probes.
-
-## When finished
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. an incident-history log behind the
-status page, or auto-failover ranking of RPCs by recent latency). Append a `data/changelog.json` entry
-(tag: `improvement` or `feature`) — a real status page and a fixed Forge busy flow are very visible. Then
-delete this prompt file
-(`prompts/production-campaign/A-reliability/A7-resilience-degradation-status.md`) and report which call
-sites you put behind breakers, how the Forge busy path now resolves, and the health-source seam shared
-with A1's dashboard.
diff --git a/prompts/production-campaign/B-growth/00-README.md b/prompts/production-campaign/B-growth/00-README.md
deleted file mode 100644
index 3d2b2bb33..000000000
--- a/prompts/production-campaign/B-growth/00-README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Track B — Activation, Growth & Distribution
-
-**Goal: turn visitors into users who come back.** three.ws is impressive and mostly
-built — 125+ pages, 100+ endpoints, SDKs, MCP servers, payment rails. What it lacks is
-the growth machinery that compounds: a first run that reaches value in under 60 seconds,
-SEO that makes every page discoverable, analytics that prove activation, share loops that
-turn each forged model and trade win into a new visitor, lifecycle messaging that earns a
-second session, and a landing page that converts. A platform nobody activates on is worth
-its liquidation value. This track builds the funnel — acquisition → activation → retention
-→ revenue — and instruments every stage so "we think users like it" becomes a number.
-
-Read `CLAUDE.md`, `STRUCTURE.md`, `prompts/production-campaign/00-README-orchestration.md`,
-and `prompts/production-campaign/00b-the-bar.md` before any prompt here. Every prompt
-inherits the global definition of done; each adds its own.
-
-## The six prompts
-
-| ID | Mission (one line) | Run order |
-|---|---|---|
-| **B1** | First-run flow to real value in <60s, no signup wall before the first "wow" — built on the feature-tour, activation measured. | First (unblocks B3, B6) |
-| **B2** | SEO + structured data across all 125+ pages: canonical, sitemap, JSON-LD, OG, llms.txt — inject scripts wired into the build and held. | First (independent) |
-| **B3** | Clean event taxonomy + funnel instrumentation on every primary surface, readable in a dashboard. Extends `src/acquisition-analytics.js`. | After B1 |
-| **B4** | Every shareable moment → a gorgeous universal OG card + one-tap share + a referral loop. Built on `api/*-og.js` and `@vercel/og`. | After B3 (uses events) |
-| **B5** | Lifecycle email, notifications, changelog→Telegram, re-engagement digests, win-back — honest opt-in/opt-out. | After B3 |
-| **B6** | Conversion-optimize home/landing: value prop, social proof, CTA hierarchy, above-the-fold wow — measured. | Last (consumes B1–B4) |
-
-**Run order in one line:** B1 + B2 in parallel first → then B3 → then B4 + B5 in parallel
-→ then B6 last (it depends on the activation path, the funnel, the share cards, and the
-press strip all existing). Each is independent enough to run in its own chat; the
-dependencies above are about *quality of result*, not hard blocks.
-
-## File-ownership map (parallel-safe lanes)
-
-Stage explicit paths only — never `git add -A`. Shared files (`data/changelog.json`,
-`data/pages.json`) are **append-only**; never reformat them. If two prompts run at once,
-these lanes do not collide:
-
-| Prompt | Owns (edit freely) | Touches lightly (append/wire only) |
-|---|---|---|
-| **B1** | `src/feature-tour/*`, `pages/start.html`, `src/start.js`, `pages/home.html` (first-run trigger only) | `src/acquisition-analytics.js` (emit activation events) |
-| **B2** | `scripts/inject-seo-meta.mjs`, `scripts/inject-blog-seo.mjs`, `scripts/build-page-index.mjs`, `docs/llms.txt`, `docs/llms-full.txt`, `public/llms.txt`, `vercel.json`/`vite.config.js` (sitemap wiring) | `package.json` scripts (build wiring), per-page `<head>` via injectors |
-| **B3** | `src/acquisition-analytics.js`, `src/analytics.js`, a new analytics dashboard page | per-surface `data-cta`/event hooks (additive attributes only) |
-| **B4** | `api/agent-og.js`, `api/avatar-og.js`, `api/feature-og.js`, `api/a-og.js`, `api/app-og.js`, `api/*-share.js`, `api/agent-oembed.js`, share UI components, `src/dashboard-next/pages/referrals.js`, `src/dashboard-next/referral-claim.js` | shared OG render helper under `api/_lib/` |
-| **B5** | `api/_lib/email.js`, `api/newsletter-subscribe.js`, `scripts/changelog-telegram.mjs`, `api/alerts/*`, `src/notifications.js`, new digest/win-back cron(s) under `api/cron/` | email-preference UI in account settings |
-| **B6** | `pages/home.html` (full landing), home hero/CTA/social-proof CSS+markup | consumes B1's first-run trigger, B3's events, B4's share cards |
-
-`pages/home.html` is touched by B1 (trigger wire), B6 (full conversion pass), and B3
-(event hooks). Coordinate: **B6 owns home.html's layout/markup**; B1 adds only the
-first-run entry hook; B3 adds only `data-cta`/event attributes. Re-check `git diff --staged`
-before committing.
-
-When this directory contains only this `00-README.md`, Track B is done.
diff --git a/prompts/production-campaign/B-growth/B1-onboarding-activation.md b/prompts/production-campaign/B-growth/B1-onboarding-activation.md
deleted file mode 100644
index 428bf79f3..000000000
--- a/prompts/production-campaign/B-growth/B1-onboarding-activation.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# B1 — Onboarding & Activation: real value in under 60 seconds
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-Activation is the hinge of the entire valuation. A visitor who reaches a "wow" in their first
-minute — a textured 3D model they typed into existence, a walk companion strolling their
-screen, an agent that talks back — becomes a user; one who hits a signup wall first becomes a
-bounce. The bar (`00b-the-bar.md` §5) is explicit: **first-run path to value in under 60
-seconds with no signup wall before the first wow.** Every other growth surface — SEO, share
-loops, lifecycle email — is wasted spend if the moment a visitor arrives is a dead end. This
-prompt makes the front door convert.
-
-## Current state (read before you write)
-- `src/feature-tour/` is a complete guided-tour engine: `index.js` (`createFeatureTour()`),
- `director.js`, `narrator.js`, `guide-avatar.js`, `controls.js`, `free-roam.js`,
- `chapters.js`, `curriculum.js`, `spotlight.js`. It exists but is not wired as a first-run
- activation flow — it's a tour, not an onboarding funnel with a measured outcome.
-- `pages/start.html` + `src/start.js` are the intended entry surface. Read them: see what they
- currently render and whether they route a brand-new visitor to a value moment.
-- `docs/onboarding/ONBOARDING-PLAN-2026-06-19.md` is the product plan — read it and honor the
- intent; do not contradict it without reason.
-- Free value lanes that need NO signup: the **Forge free lane** (NVIDIA NIM / TRELLIS
- text→3D — grep for the free engine path; the MCP `forge_free` tool proves it's free), the
- **walk companion** (`walk-sdk/`, `src/walk-companion.js`), and a **sample agent** profile.
-- The gap: no single, deliberate, measured first-run that picks one of these, gets a true
- first-time visitor to the "wow" with zero auth, then *earns* the signup ask afterward.
-
-## Your mission
-### 1. Design the <60s first-run path on `pages/start.html` / `src/start.js`
-Detect a first-time visitor (no session, no `localStorage` activation flag). Present one
-crisp choice or a smart default that leads to the fastest real wow: **a Forge free-lane
-prompt box** ("Type anything → get a 3D model") is the strongest default. Pre-fill an
-example prompt so a click — not typing — can trigger it. The path must hit real value (a
-real GLB from the free engine, a real companion on screen) **before any auth**. No mock, no
-canned asset — the actual free pipeline.
-
-### 2. Drive it with the existing feature-tour, don't rebuild it
-Use `createFeatureTour()` / `director.js` / `narrator.js` / `spotlight.js` to choreograph the
-moment — spotlight the prompt box, narrate the one instruction, celebrate the result. Extend
-the tour engine where it lacks an "activation outcome" concept; do not fork it. The guide
-avatar (`guide-avatar.js`) should feel alive, not scripted. Respect `prefers-reduced-motion`.
-
-### 3. Hold the signup wall until after the wow
-No login, wallet-connect, or email gate before the first delivered value. After the wow,
-present the upgrade ask in context ("Save this model / Forge in high quality with $THREE /
-Create an account to keep your gallery") — the ask is *earned*, tied to a concrete next
-benefit, and dismissible. Never a modal that blocks the value the user just saw.
-
-### 4. Make it resumable and honest about failure
-Persist activation progress so a refresh or a return visit doesn't restart the wow. If the
-free engine is busy (the real "free engines all busy" state from `00b-the-bar.md` §1), the
-flow degrades to a real alternative — switch to the walk companion wow, queue, or notify-me —
-never a dead end or a fake spinner.
-
-### 5. Measure activation
-Emit real funnel events at each step (first-run shown → wow attempted → wow delivered →
-signup ask shown → converted) via `src/acquisition-analytics.js` (it already exports
-`trackLandingView`, `wireCtaTracking`, and routes through `src/analytics.js`'s
-`trackFunnelStep('activation', …)`). Use the existing `ANALYTICS_EVENTS`/`FUNNELS` taxonomy;
-add the few activation steps it's missing. This is the data B3 reads — wire it cleanly, don't
-invent a parallel system.
-
-### 6. Wire the entry points
-The first-run path must be reachable: a new visitor landing on `pages/home.html` or
-`pages/start.html` enters it without hunting. Add only the minimal first-run trigger to
-`home.html` (B6 owns its full layout — coordinate, append a hook, don't restyle it).
-
-## Definition of done
-Maps to `00b-the-bar.md` §5 (activation measured, <60s to value, no pre-wow signup wall) and
-§3 (every state designed). Specifically: a real first-time visitor reaches genuine value
-(real GLB or real companion) in **under 60 seconds, no auth**, verified with a stopwatch in a
-fresh incognito session; the busy/error path offers a real way forward; activation funnel
-events fire into the existing taxonomy and are visible in the network tab; resumable across
-refresh; loading/empty/error/celebrate states all designed and on-token; keyboard- and
-screen-reader-navigable. **Also inherits the global definition of done in
-`00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. No `setTimeout` fake-loading — the free engine is
-real async. `$THREE` is the only coin. Design tokens only. Stage explicit paths only (never
-`git add -A`); re-check `git diff --staged` before commit. Own the onboarding/feature-tour
-lane; extend the existing tour engine and analytics module, don't rewrite them.
-
-## When finished
-Run the five self-review checks (lazy / user / integration / edge-case / pride). Ship one
-improvement — e.g. a second example prompt that showcases a different model type, or a
-"share your first model" hook that hands off cleanly to B4. Append a `data/changelog.json`
-entry (user-visible: tag `feature`). Then delete this prompt file
-(`prompts/production-campaign/B-growth/B1-onboarding-activation.md`) and report what you
-shipped, the measured time-to-wow, and the activation events you emitted (the seam B3 builds on).
diff --git a/prompts/production-campaign/B-growth/B2-seo-structured-data.md b/prompts/production-campaign/B-growth/B2-seo-structured-data.md
deleted file mode 100644
index cdd5bdbee..000000000
--- a/prompts/production-campaign/B-growth/B2-seo-structured-data.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# B2 — SEO & Structured Data across all 125+ pages
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-Distribution is one of the five pillars (`00-README-orchestration.md`). A platform with 125+
-genuinely useful surfaces that search engines and AI crawlers can't parse is invisible — it
-compounds nothing. Correct metadata, canonical URLs, a complete sitemap, and JSON-LD
-structured data are how Google, Bing, and increasingly the LLM crawlers (which `llms.txt`
-exists to serve) understand what three.ws *is* and rank/cite it. This is the cheapest, highest-
-leverage growth work in the campaign: it makes every other page you've already built
-discoverable, shareable, and machine-readable — permanently.
-
-## Current state (read before you write)
-- `scripts/inject-seo-meta.mjs`, `scripts/inject-blog-seo.mjs`, and
- `scripts/build-page-index.mjs` already exist and are **already wired into `prebuild`** in
- `package.json` (`inject-blog-seo --write` → `build-page-index` → `audit-page-index --strict`
- → `inject-seo-meta --write`). There's also a `seo:meta` script. Read all three scripts and
- the `prebuild` chain before changing anything — the wiring exists; your job is to make the
- *output complete and correct on every page*, not to re-architect the pipeline.
-- `data/pages.json` is the page registry that feeds the index and changelog. `docs/llms.txt`,
- `docs/llms-full.txt`, and `public/llms.txt` exist — confirm they're current and served.
-- Per-page OG: many `api/*-og.js` endpoints render dynamic cards (B4 owns those). Static pages
- need correct static OG tags from the injector.
-- The gap to audit: which of the 125+ pages are *missing* canonical URLs, unique
- title/description, OG/Twitter tags, or JSON-LD? Is the sitemap complete and submitted? Is
- `audit-page-index --strict` actually catching omissions, or passing pages with empty meta?
-
-## Your mission
-### 1. Audit coverage across all pages
-Run `node scripts/build-page-index.mjs` and `node scripts/audit-page-index.mjs --strict`; read
-`data/pages.json` against the actual files in `pages/`. Produce the real list of pages missing
-canonical, unique title (<60 chars), description (<160 chars), OG image, or structured data.
-Generalize if a script name differs — find the actual injector.
-
-### 2. Make `inject-seo-meta.mjs` emit complete, correct metadata for every page
-Each page gets: a unique `<title>` and meta description, a `<link rel="canonical">` to the
-production URL, full Open Graph (`og:title`, `og:description`, `og:image`, `og:url`,
-`og:type`) and Twitter Card tags, and `theme-color`. Derive from `data/pages.json` where
-possible — no hand-maintained per-page duplication. Default OG image must be on-brand; dynamic
-pages defer to B4's `api/*-og.js` endpoints (wire the URL, coordinate, don't reimplement).
-
-### 3. Add JSON-LD structured data
-Emit appropriate `schema.org` JSON-LD per page type: `WebSite` + `SearchAction` on home,
-`SoftwareApplication`/`Product` on product surfaces, `Article`/`BlogPosting` on blog (extend
-`inject-blog-seo.mjs`), `BreadcrumbList` on nested pages, `Organization` site-wide. Validate
-the shape — malformed JSON-LD is worse than none.
-
-### 4. Generate and serve a complete sitemap + robots
-Build `sitemap.xml` from `data/pages.json` (every public page, real `lastmod`, sensible
-`priority`/`changefreq`) and a correct `robots.txt` pointing at it. Wire generation into the
-build (alongside `build-page-index`), not a manual step. Confirm both are served at the root
-in production (check `vercel.json` rewrites).
-
-### 5. Keep `llms.txt` / `llms-full.txt` accurate and built
-These tell AI crawlers what three.ws offers. Make `docs/llms.txt`, `docs/llms-full.txt`, and
-`public/llms.txt` consistent and regenerated from the page registry (not hand-edited and
-stale). Cover the real product surfaces from `STRUCTURE.md`. `$THREE` is the only coin named.
-
-### 6. Hold it in the build (regression-proof)
-Strengthen `audit-page-index --strict` (or its sibling) to **fail the build** on any public
-page missing canonical, title, description, or OG image — so future pages can't ship SEO-
-broken. This is the "wire the inject scripts into the build and hold them" deliverable.
-
-## Definition of done
-Maps to the distribution pillar and §3 polish (no FOUC from injected tags). Specifically:
-every public page has a unique canonical, title, description, OG + Twitter tags, and valid
-JSON-LD (spot-check 5+ across types in Google's Rich Results Test mentally / via the validator
-shape); `sitemap.xml` + `robots.txt` are complete, built, and served; `llms.txt` files are
-regenerated and accurate; the build **fails** if a page ships without required meta; no
-console errors; the injected `<head>` causes no layout shift. **Also inherits the global
-definition of done in `00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs. `$THREE` is the only coin — scrub any other token from
-meta, JSON-LD, sitemap, llms.txt. Design tokens for any visible default-OG art. **Watch the
-`api/*.js` bundle trap** (`__defProp`/`createRequire` in `head -1`) if you touch any endpoint.
-Stage explicit paths only (never `git add -A`); re-check `git diff --staged` before commit.
-Own the SEO/build-script lane; extend the existing injectors and page-index pipeline, don't
-replace them.
-
-## When finished
-Run the five self-review checks. Ship one improvement — e.g. `hreflang` readiness, a
-`SearchAction` that actually resolves to the site search, or an OG-image fallback chain.
-Append a `data/changelog.json` entry if user-visible (tag `improvement`/`infra`). Then delete
-this prompt file (`prompts/production-campaign/B-growth/B2-seo-structured-data.md`) and report
-the before/after coverage numbers, the build gate you added, and any page type still needing a
-bespoke JSON-LD schema (seam for C-surfaces).
diff --git a/prompts/production-campaign/B-growth/B3-analytics-funnel.md b/prompts/production-campaign/B-growth/B3-analytics-funnel.md
deleted file mode 100644
index 02e09550d..000000000
--- a/prompts/production-campaign/B-growth/B3-analytics-funnel.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# B3 — Analytics & Funnel Instrumentation
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-B1 (it emits the activation events this funnel reads — runs better after, not hard-blocked).
-
-## Why this matters for $1B
-"We think users like it" is not data, and you cannot raise a billion-dollar valuation on a
-vibe. The bar (`00b-the-bar.md` §5) is unambiguous: **every primary surface emits real
-analytics events into a funnel you can read.** Without it, every other growth decision in this
-track — which onboarding wins, which share card converts, which lifecycle email earns a return
-— is a guess. This prompt builds the one clean taxonomy that turns three.ws's behavior into
-measurable acquisition → activation → retention → revenue, and a dashboard that makes it
-legible. It's the instrument panel the whole campaign flies by.
-
-## Current state (read before you write)
-- `src/acquisition-analytics.js` exists and exports `trackLandingView()` (fires
- `LANDING_VIEWED` as the first activation step), `wireCtaTracking()` (delegated `data-cta`
- click capture → `CTA_CLICKED`), and `initAcquisitionAnalytics()`. It imports `track`,
- `ANALYTICS_EVENTS`, `FUNNELS`, and `trackFunnelStep` from `src/analytics.js` — **read that
- module**: it's the core event bus and taxonomy. Do NOT fork either; extend them.
-- `src/app.js` has a view beacon (grep "view beacon for analytics" ~line 1262) — understand
- what's already fired and from where, so you don't double-count or invent a parallel path.
-- The gap: the taxonomy is partial (a couple of events, one funnel). There is no end-to-end
- acquisition→activation→retention→revenue funnel covering Forge, walk, agents, marketplace,
- x402 pay, and $THREE surfaces, and no dashboard to read it.
-
-## Your mission
-### 1. Define one clean event taxonomy (extend `ANALYTICS_EVENTS` / `FUNNELS`)
-In `src/analytics.js`, formalize a small, consistent, namespaced event set across four funnel
-stages — **acquisition** (landing viewed, referral arrived, share clicked-through),
-**activation** (first-run shown, wow delivered, account created), **retention** (returned,
-session N, gallery revisited), **revenue** (checkout started, $THREE-gated upgrade,
-x402 paid, mint/launch). Names are documentation: `forge.free.generate.succeeded`, not
-`event7`. Define the `FUNNELS` map so each stage's ordered steps are explicit and queryable.
-
-### 2. Instrument every primary surface — additively
-Add event emission on Forge (free + high-quality), the walk companion, agent profiles, the
-marketplace, x402 checkout, and the $THREE-gated upgrades. Prefer the existing `data-cta`
-attribute pattern (`wireCtaTracking` already delegates) so most CTAs are captured by markup,
-not bespoke handlers. For surfaces lacking it, add `data-cta`/`data-funnel-step` attributes —
-**additive only**, no behavior change. Coordinate with B1 (activation events) and B6 (home
-CTAs): use the same taxonomy, don't define a second one.
-
-### 3. Confirm the event sink is real (no fake telemetry)
-Trace where `track()` actually sends — a real beacon/endpoint (Axiom is already wired server-
-side per `00b-the-bar.md` §1; there may be a client `/api/` collector). If events are
-currently swallowed, wire a real, batched, `sendBeacon`-based sink to a real endpoint. No
-`console.log` analytics, no dropped events. Respect Do-Not-Track and any consent gate
-(coordinate with G-trust if a consent banner exists).
-
-### 4. Build a funnel dashboard surface
-Create a real dashboard page (fit it into `src/dashboard-next/` to match the existing pattern,
-or a dedicated `/analytics` page) that reads aggregated funnel data from a real query endpoint
-and renders the four-stage funnel with conversion rates, drop-off, and a time range. Every
-state designed: loading (skeleton), empty ("no events yet — here's how events flow in"), error
-(actionable), populated (on-token charts). This is what makes the data *readable*, per the bar.
-
-### 5. Make it privacy-honest and resilient
-Boundary-handle the sink (network failure must never break a user surface — fire-and-forget,
-buffered). No PII in events. Sampling/rate-limit if volume warrants. Document the taxonomy
-inline so the next agent emits correctly.
-
-## Definition of done
-Maps to `00b-the-bar.md` §5 (activation measured, funnel readable) and §4 (honest UI, inputs
-validated). Specifically: a single coherent taxonomy in `src/analytics.js` covering all four
-funnel stages; every primary surface emits real events visible in the network tab going to a
-real sink; a dashboard renders the acquisition→activation→retention→revenue funnel with real
-conversion numbers and all five states; DNT/consent respected; no double-counting with the
-existing `app.js` beacon; no console errors. **Also inherits the global definition of done in
-`00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs — no fabricated funnel numbers in the dashboard, real
-aggregates only. `$THREE` is the only coin. Design tokens only for the dashboard. Stage
-explicit paths only (never `git add -A`); re-check `git diff --staged` before commit. Own the
-analytics lane (`src/analytics.js`, `src/acquisition-analytics.js`, the dashboard page);
-extend the existing modules, never fork them — adding `data-cta` attributes to other surfaces
-is additive and in-lane.
-
-## When finished
-Run the five self-review checks. Ship one improvement — e.g. a per-surface conversion sparkline
-on the dashboard, or a shareable "this week's activation rate" tile. Append a
-`data/changelog.json` entry if the dashboard is user-visible (tag `feature`/`infra`). Then
-delete this prompt file (`prompts/production-campaign/B-growth/B3-analytics-funnel.md`) and
-report the taxonomy you shipped, which surfaces are instrumented, and the dashboard URL — the
-seam B4, B5, and B6 measure their work against.
diff --git a/prompts/production-campaign/B-growth/B4-virality-share-loops.md b/prompts/production-campaign/B-growth/B4-virality-share-loops.md
deleted file mode 100644
index 419114862..000000000
--- a/prompts/production-campaign/B-growth/B4-virality-share-loops.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# B4 — Virality, Share Loops & Referrals
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-B3 (share/referral events feed the funnel — run after, not hard-blocked).
-
-## Why this matters for $1B
-Network effects are the difference between linear growth and a compounding curve
-(`00-README-orchestration.md` pillar 4). The cheapest acquisition channel is a user showing
-off what they made. The bar (`00b-the-bar.md` §5): **every shareable moment has an OG card
-and a share action — a generated model, a trade win, an agent profile — each a link that
-unfurls beautifully.** three.ws already has the raw materials (a fleet of `*-og.js` endpoints,
-`@vercel/og`, share endpoints, a referrals page) but they're not unified into a gorgeous,
-universal, one-tap loop that closes back into activation. This prompt turns every proud moment
-into a new visitor.
-
-## Current state (read before you write)
-- OG endpoints already exist: `api/agent-og.js`, `api/avatar-og.js`, `api/feature-og.js`,
- `api/a-og.js`, `api/app-og.js` — and `@vercel/og` is a dependency (`package.json`). They use
- a `wrap()` handler pattern (read `api/agent-og.js`). Quality and design consistency across
- them is uneven — your job is to make them universal and screenshot-worthy.
-- Share endpoints exist: `api/agent-share.js`, `api/forge-share.js`, `api/oracle-share.js`,
- `api/trader-share.js`, plus `api/agent-oembed.js` (oEmbed for rich embeds). Read them — share
- routing exists in pieces; it's not one cohesive, on-brand action everywhere.
-- A referral surface already exists: `src/dashboard-next/pages/referrals.js` and
- `src/dashboard-next/referral-claim.js`. Read both — extend, don't rebuild.
-- The gap: no shared OG render system (each endpoint reinvents layout), no one-tap share on
- every shareable surface, and the referral loop isn't wired to attribute new activations.
-
-## Your mission
-### 1. Build one gorgeous, universal OG render system
-Extract a shared `@vercel/og` layout helper into `api/_lib/` (brand frame, $THREE-consistent
-palette from design tokens, three.ws logo, dynamic title/subtitle/art slot, model thumbnail or
-avatar render). Refactor `agent-og.js`, `avatar-og.js`, `feature-og.js`, `a-og.js`,
-`app-og.js` to use it so every card is unmistakably three.ws and pixel-clean at 1200×630.
-Handle overflow (200-char names), missing art (on-brand fallback), and edge data — never a
-broken or empty card. Cards must render fast (cache headers) and never 500.
-
-### 2. Add a one-tap share action to every shareable moment
-A reusable share control (Web Share API where available, copy-link + X/Telegram/Farcaster
-fallback) on: a forged model (post-Forge, ties to B1's wow), a trade win (trader surface),
-an agent profile, and a launched coin's record. Each share produces a real link whose `<head>`
-points at the right `*-og.js` card and oEmbed (`agent-oembed.js`) so it unfurls everywhere
-(X, Discord, Telegram, iMessage, Slack). Verify the unfurl shape, not just that the image 200s.
-
-### 3. Close the referral loop
-Extend `src/dashboard-next/pages/referrals.js` + `referral-claim.js`: every signed-in user gets
-a real referral link; sharing a model/profile/win carries that referral param; an arriving
-referee is attributed on activation (account create / first paid action). Surface real referral
-stats (clicks → activations → rewards) — no fabricated counts. Define the reward honestly
-(coordinate with D-monetization for any $THREE-denominated incentive; never invent another
-token).
-
-### 4. Wire share + referral events into the funnel
-Emit B3's taxonomy events: `share.clicked`, `share.completed`, `referral.link.created`,
-`referral.arrived`, `referral.activated`. This makes virality measurable — k-factor becomes a
-number on B3's dashboard, not a hope.
-
-### 5. Make sharing irresistible, not an afterthought
-The share affordance appears at the peak emotional moment (model delivered, win banked), is
-one tap, previews the actual card before sending, and confirms with delight. Hover/active/focus
-states, reduced-motion honored, keyboard-reachable. The card is the product's billboard —
-treat it like one.
-
-## Definition of done
-Maps to `00b-the-bar.md` §5 (every shareable moment → gorgeous OG card + share action) and §3
-(screenshot test). Specifically: all five OG endpoints render through one shared, on-brand
-helper and unfurl correctly on X/Discord/Telegram (verified); a one-tap share exists on
-forged-model, trade-win, agent-profile, and launch surfaces with working fallbacks; the
-referral link attributes real arrivals to activation with honest stats; share/referral events
-flow into B3's funnel; OG endpoints cache, never 500, and handle overflow/missing art; no
-console errors. **Also inherits the global definition of done in
-`00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs — no fake referral counts, no canned share preview.
-`$THREE` is the only coin in any card, copy, reward, or metadata. Design tokens only for OG
-art and share UI. **Watch the `api/*.js` bundle trap** — check `head -1` of every edited
-endpoint for `__defProp`/`createRequire` before committing; recover with
-`git restore -- api/ public/`. Stage explicit paths only (never `git add -A`); re-check
-`git diff --staged` before commit. Own the OG/share/referral lane; extend the existing
-endpoints and referral pages, don't replace them.
-
-## When finished
-Run the five self-review checks. Ship one improvement — e.g. an animated/looping OG variant for
-platforms that support it, or a "remix this model" deep link that drops the referee straight
-into B1's first-run with the original prompt. Append a `data/changelog.json` entry (tag
-`feature`). Then delete this prompt file
-(`prompts/production-campaign/B-growth/B4-virality-share-loops.md`) and report the unified OG
-system, the surfaces that now share in one tap, the referral attribution path, and the
-k-factor events — the seam B6 uses for social proof.
diff --git a/prompts/production-campaign/B-growth/B5-retention-lifecycle.md b/prompts/production-campaign/B-growth/B5-retention-lifecycle.md
deleted file mode 100644
index 21d6da6ff..000000000
--- a/prompts/production-campaign/B-growth/B5-retention-lifecycle.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# B5 — Retention & Lifecycle Messaging
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-B3 (lifecycle triggers fire on funnel events — run after, not hard-blocked).
-
-## Why this matters for $1B
-Activation gets a user in the door once; **retention is what a valuation is built on** — daily
-use and a reason to come back tomorrow (`00-README-orchestration.md` pillar 2). A platform with
-great activation and zero lifecycle messaging leaks every cohort it acquires. The machinery is
-already here — Resend is a dependency, transactional email exists, the changelog→Telegram push
-exists, notifications and pump alerts exist — but it isn't orchestrated into a coherent
-lifecycle that welcomes, re-engages, digests, and wins back, *honestly opted into*. This prompt
-turns one-time visitors into a returning, compounding user base.
-
-## Current state (read before you write)
-- `api/_lib/email.js` is real transactional email via **Resend** (`process.env.RESEND_API_KEY`),
- fire-and-forget, with `buildPayload()` and render helpers already written: `renderWelcome`,
- `renderVerify`, `renderPasswordReset`, `renderSubscriptionConfirm`, `renderPurchaseReceipt`,
- `renderSaleNotification`. Read it — extend this module's render set; don't reinvent sending.
-- `api/newsletter-subscribe.js` uses Resend audiences (`RESEND_AUDIENCE_ID`) — the opt-in
- subscribe path exists. Confirm there's an honest unsubscribe path; build one if missing.
-- `scripts/changelog-telegram.mjs` (`npm run changelog:push`) posts new `data/changelog.json`
- entries to the holders' Telegram channel — the changelog→Telegram loop exists; verify it's
- reliable and idempotent (no double-posts).
-- `src/notifications.js` and `api/alerts/` (`rules.js`, `rules/[id].js`, evaluated by a
- pumpfun-monitor cron) are the in-app/pump notification system. Read them — the eventing and
- cron pattern you'll reuse for digests lives here.
-- The gap: no welcome/onboarding-nudge sequence, no re-engagement digest, no win-back for
- dormant users, and opt-in/opt-out preferences aren't centralized or honest everywhere.
-
-## Your mission
-### 1. Build the lifecycle email sequence on `api/_lib/email.js`
-Add render helpers + triggered sends for the real moments: **welcome** (post-signup — extend
-`renderWelcome` into a true day-0 nudge toward the next action), **activation nudge** (signed
-up but hasn't forged/walked), **re-engagement digest** (what's new in your gallery, $THREE
-updates, launches), and **win-back** (dormant N days). Each email is on-brand, plain-text +
-HTML, single clear CTA, and links to a real surface. Reuse the existing Resend send path — no
-new mailer.
-
-### 2. Trigger off real funnel state, not a schedule alone
-Wire triggers to B3's funnel events where event-driven (welcome on `account.created`,
-activation nudge on "signed up, no wow after X"), and a cron under `api/cron/` (match the
-pumpfun-monitor cron pattern in `api/alerts/`) for time-based digests/win-back that query real
-user state. No blasting — segment by real behavior. Idempotent: a user never gets the same
-lifecycle email twice.
-
-### 3. Unify in-app notifications with the lifecycle
-`src/notifications.js` should surface the same lifecycle moments in-app (new launch, sale,
-digest-worthy events) so messaging is consistent across channels. Reuse `api/alerts/` rules
-where a user has configured them; don't duplicate the alert engine.
-
-### 4. Harden the changelog→Telegram push
-Make `scripts/changelog-telegram.mjs` bulletproof: idempotent (track what's posted, never
-double-send), `--dry-run` honored, and gracefully skips when `TELEGRAM_BOT_TOKEN` /
-`TELEGRAM_CHANGELOG_CHAT_ID` are absent. This is a holder-facing retention channel — it must
-not spam or miss.
-
-### 5. Honest opt-in / opt-out everywhere
-A real preference center (extend account settings) for: lifecycle email, product digests,
-in-app notifications, Telegram. Every email has a working one-click unsubscribe (List-
-Unsubscribe header + link) wired to Resend audiences. Default to the minimum honest set; never
-opt a user in silently. Respect the preference on every send — verify the gate.
-
-## Definition of done
-Maps to pillar 2 (retention) and §4 (honest UI). Specifically: welcome, activation-nudge,
-digest, and win-back emails send via the existing Resend path, triggered by real state, fully
-idempotent, with working unsubscribe; a preference center honors opt-out on every channel;
-in-app notifications mirror lifecycle moments without duplicating the alert engine; the
-changelog→Telegram push is idempotent and credential-safe; no email/notification fires against
-a user who opted out (verified); no secrets client-side; no console errors. **Also inherits the
-global definition of done in `00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs — real Resend sends, real user-state queries, no canned
-recipient lists. `$THREE` is the only coin named in any email, digest, push, or notification.
-Design tokens (or the email's existing template tokens) for all rendered mail. **Watch the
-`api/*.js` bundle trap** on edited endpoints/crons. Stage explicit paths only (never
-`git add -A`); re-check `git diff --staged` before commit. Own the lifecycle/notifications
-lane; extend `api/_lib/email.js`, `src/notifications.js`, `api/alerts/`, and the Telegram
-script — don't fork them.
-
-## When finished
-Run the five self-review checks. Ship one improvement — e.g. a "your first model, one week
-later" win-back that re-uses B4's OG card, or a digest that surfaces the user's own funnel
-progress from B3. Append a `data/changelog.json` entry if user-visible (tag `feature`). Then
-delete this prompt file (`prompts/production-campaign/B-growth/B5-retention-lifecycle.md`) and
-report the lifecycle sequence, the trigger sources, the preference center, and the idempotency
-guarantees — note any send that still needs a real cohort to validate (seam for the next agent).
diff --git a/prompts/production-campaign/B-growth/B6-home-landing-conversion.md b/prompts/production-campaign/B-growth/B6-home-landing-conversion.md
deleted file mode 100644
index 8c803e866..000000000
--- a/prompts/production-campaign/B-growth/B6-home-landing-conversion.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# B6 — Home & Landing Conversion
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-B1 (the first-run path the hero CTA drops into), B3 (the events that measure conversion),
-B4 (the share cards / social proof). Run **last** in Track B — it consumes the others.
-
-## Why this matters for $1B
-The home page is the single most-trafficked surface and the one that decides whether a visitor
-becomes a user or a bounce. Polish that signals seriousness (`00-README-orchestration.md`
-pillar 5) is communicated here first: a sharp value prop, credible social proof, a clear CTA
-hierarchy, and an above-the-fold "wow" are how trust is established *before* it's earned. A
-landing page that buries what three.ws does, or asks for signup before showing value, wastes
-every dollar of acquisition the rest of this track generates. This prompt makes the front door
-convert at the bar of Vercel / Linear / Stripe.
-
-## Current state (read before you write)
-- `pages/home.html` is the landing surface and already contains a **press/partner strip**
- (grep `press-strip` / `press-logo` — the markup and styles exist around line 294+). That's
- real social proof to feature, not invent.
-- `public/features.json` is the feature registry (large — the source of truth for what to
- showcase). `data/pages.json` is the page registry. The hero/value-prop today — read it and
- judge honestly against the bar: is the value prop sharp in five words? Is there an above-the-
- fold wow? Is the CTA hierarchy clear or a wall of equal-weight buttons?
-- B1 ships the first-run path the primary CTA must drop into; B3 ships the event taxonomy
- conversion is measured with; B4 ships the share cards and referral proof. Build on them.
-- The gap: the landing isn't conversion-optimized — value prop, above-fold wow, CTA hierarchy,
- and measured social proof need a deliberate pass.
-
-## Your mission
-### 1. Sharpen the value proposition above the fold
-One sentence a stranger understands in three seconds: what three.ws is and the one thing it
-lets them do *right now*. Supporting subhead, then the primary CTA. No jargon, no coin-pitch
-in the hero — the value is the product. Real, on-token typography and spacing rhythm.
-
-### 2. Make the above-the-fold a live "wow", not a static screenshot
-Per `00b-the-bar.md` §2/§3: a real, progressively-loaded 3D moment — a rigged avatar idling,
-or a rotating freshly-forged model — that loads behind a real skeleton, lazy-loads Three.js,
-hits 60fps, disposes GPU resources, and never blocks LCP (< 2.5s, CLS < 0.1). The wow must be
-real (an actual GLB/companion), never a video of a feature that then 404s.
-
-### 3. Build a clear CTA hierarchy that drops into B1's first-run
-One unmistakable primary CTA ("Forge a 3D model free" / "Type anything → get a model") wired to
-B1's <60s first-run path — no signup wall before the wow. Secondary CTAs (explore agents, walk
-companion, docs) are visibly subordinate. Every CTA carries B3's `data-cta`/funnel attributes
-so conversion is measured. No dead or "coming soon" buttons.
-
-### 4. Feature real social proof
-Elevate the existing press/partner strip (don't fabricate logos — use what's already there).
-Add credible, real proof: live counts (models forged, agents created, $THREE-gated unlocks)
-pulled from real endpoints with honest empty/loading states — never hardcoded vanity numbers.
-Surface a real shared model or agent card from B4's OG system as living proof of the product.
-
-### 5. Tell the product story down the page
-Below the fold, a tight, scannable walk through the real surfaces (Forge, walk companion,
-agents, marketplace, $THREE) sourced from `public/features.json` — each with a real
-screenshot/3D snippet and a working link to the actual surface. Every link goes somewhere real;
-every section earns its scroll. Mobile-first at 320 / 768 / 1440px.
-
-### 6. Measure conversion end-to-end
-Emit B3's funnel events: `landing.viewed` (exists), hero CTA clicked, scroll-depth milestones,
-section CTA clicks, first-run entered. The home page's conversion rate must be a number on B3's
-dashboard — verify the events fire in the network tab.
-
-## Definition of done
-Maps to `00b-the-bar.md` §2 (LCP < 2.5s, CLS < 0.1, progressive 3D, no FOUC), §3 (screenshot
-test, all states, responsive, a11y), and §5 (no pre-wow signup wall, conversion measured).
-Specifically: a sharp above-the-fold value prop + live 3D wow that hits the performance bars
-(measured in Lighthouse mentally / via `.lighthouserc.json`); a clear CTA hierarchy whose
-primary action enters B1's first-run with no signup gate; real, honest social proof (existing
-press strip + live counts with designed empty/loading states); every section link resolves;
-conversion events flow to B3; keyboard/screen-reader/reduced-motion clean; no console errors.
-**Also inherits the global definition of done in `00-README-orchestration.md`.**
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs — no fabricated counts, no fake testimonial, no canned
-hero video, no `setTimeout` wow. `$THREE` is the only coin referenced anywhere on the page.
-Design tokens only — no hardcoded colors/spacing/fonts. Stage explicit paths only (never
-`git add -A`); re-check `git diff --staged` before commit. **You own `pages/home.html`'s
-layout and markup** — coordinate with B1 (it added only a first-run trigger hook) and B3 (it
-added only `data-cta` attributes); preserve their hooks, restyle freely around them. Extend the
-existing home surface; don't replace the whole page wholesale.
-
-## When finished
-Run the five self-review checks. Ship one improvement — e.g. an A/B-ready hero variant flag
-wired to B3, or a "made on three.ws" live gallery rail fed by B4's share records. Append a
-`data/changelog.json` entry (tag `improvement`/`feature`). Then delete this prompt file
-(`prompts/production-campaign/B-growth/B6-home-landing-conversion.md`) and report the value
-prop, the measured LCP/CLS, the CTA→first-run wiring, the real social proof you surfaced, and
-the conversion events — the last seam that closes Track B's funnel loop.
diff --git a/prompts/production-campaign/C-surfaces/00-README.md b/prompts/production-campaign/C-surfaces/00-README.md
deleted file mode 100644
index 3ac79f35b..000000000
--- a/prompts/production-campaign/C-surfaces/00-README.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# Track C — Surface Completeness
-
-**Goal:** take every page in three.ws to the **screenshot bar** in `00b-the-bar.md` §3.
-For each surface, all five states are deliberately designed and reachable — **loading**
-(skeletons, not spinners), **empty** (names the surface + offers the next action),
-**error** (plain-language cause + real recovery), **populated** (token-consistent, with
-microinteractions), **overflow** (0 / 1 / 1000 items, 200-char names, $0 and $10M wallets) —
-plus responsive at **320 / 768 / 1440px**, full **a11y** (keyboard, screen-reader labels,
-`prefers-reduced-motion`, contrast ≥ WCAG AA), **dead-path elimination** (every button works,
-every link goes somewhere), and **design tokens only** (`public/tokens.css` — no hardcoded
-colors/spacing/fonts).
-
-This is the **polish pillar** of the $1B thesis: polish is how trust is *communicated*
-before it is earned. A surface with an undesigned empty state, a spinner that spins forever,
-or a button that does nothing is a trust leak on a platform that asks people to wire wallets
-and mint coins. We close every one of those leaks, surface by surface.
-
-> **Not a rewrite.** These pages ship today. Read each before you touch it, reuse its
-> existing modules and API calls, and *finish* what's there — its missing states, its broken
-> paths, its mobile and a11y gaps. Don't re-architect a working page to add a skeleton.
-
-## The six prompts and the page groups they own
-
-| Prompt | Owns (page group) | Real files (representative) |
-|---|---|---|
-| **C1** | Creation tools | `pages/forge.html`, `avatar-studio.html`, `agent-studio.html`, `create-agent.html`, `create-character.html`, `create-selfie.html`, `create.html`, `animations.html`, `mocap-studio.html` |
-| **C2** | Discover / browse | `pages/trending.html`, `marketplace.html`, `marketplace-analytics.html`, `animations.html`, `agents/index.html`, `worlds.html`, `collection.html`, `constellation.html`, `communities.html`, `galaxy.html`, `directory` (all-pages) |
-| **C3** | Launch & trading | `pages/launch.html`, `launchpad.html`, `coin-intel.html`, `trader.html`, `leaderboard.html`, `live.html`, `claim-wallet.html`, `play/arena.html`, `radar.html`, `oracle.html`, `arm.html`, `public/strategy-lab.html`, `watchlist.html`, `activity.html`, `pump-visualizer.html`, `launches.html`, `bulk-launch.html`, `autopilot.html`, `smart-money.html`, `dashboard-next/sniper.html` |
-| **C4** | Agent & wallet | `pages/agent-wallet.html`, `dashboard-next/index.html`, `dashboard-next/account.html`, `dashboard-next/agents.html`, `agent-detail.html`, `agent-edit.html`, `agent-economy.html`, `agent-exchange.html`, `agent-trade.html` |
-| **C5** | Worlds / clash / social | `pages/clash.html`, `worlds.html`, `city.html`, `club.html`, `community.html`, `communities.html`, `bounties.html`, `bounty.html` |
-| **C6** | Learn / chat / pay | `docs/index.html`, `pages/tutorials.html`, `tutorial.html`, `chat/index.html`, `pay/index.html`, `avatar-sdk.html`, `glossary.html`, `what-is.html`, `ar.html` |
-
-## Run order
-
-Prerequisite: **Track A (Reliability)** should be green first — C surfaces render the
-error/degradation states that A's boundaries produce. Within Track C the six prompts own
-**disjoint page sets**, so they run **fully in parallel** — no ordering between them. Each
-extends the shared nav (`public/nav.js` / `public/nav.css`) and tokens (`public/tokens.css`)
-but **must not rewrite** them; if a shared token is missing, add it, don't restyle the world.
-
-Each agent stages **explicit paths only** (never `git add -A`), re-checks `git diff --staged`
-before committing (the `api/*.js` esbuild-bundle trap in `00-README-orchestration.md` applies),
-and **deletes its own prompt file** when done. When this directory holds only `00-README.md`,
-Track C is complete.
diff --git a/prompts/production-campaign/C-surfaces/C1-create-forge-surfaces.md b/prompts/production-campaign/C-surfaces/C1-create-forge-surfaces.md
deleted file mode 100644
index 102b6a3b8..000000000
--- a/prompts/production-campaign/C-surfaces/C1-create-forge-surfaces.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# C1 — Creation-tool surfaces to the bar (Forge, studios, create flows)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none
-(Track A reliability should be green so the degradation states you render are real).
-
-## Why this matters for $1B
-
-Creation is the **first "wow"** — the 60-second activation moment in the $1B thesis. A
-first-time visitor's entire impression of three.ws is formed at the Forge prompt box and the
-avatar studio. If generation hangs on a spinner, dead-ends on "all engines busy," or shows a
-blank canvas with no guidance, we lose the activation before value is ever reached. Every
-creation surface must turn waiting into anticipation and failure into a path forward.
-
-## Surfaces in scope (the real pages)
-
-- **Forge (text→3D):** `pages/forge.html` → `src/forge.js` (+ `forge-prompt-studio.js`,
- `forge-reveal.js`, `forge-refine.js`, `forge-pay.js`, `forge-dropzone.js`) →
- `api/forge.js`, `api/forge-creation.js`, `api/forge-gallery.js`
-- **Avatar Studio:** `pages/avatar-studio.html` → `src/avatar-studio.js` (+ `-colorpicker`,
- `-optimize`, `-utils`); demo: `pages/avatar-studio-demo.html` → `src/avatar-studio-demo.js`
-- **Agent Studio:** `pages/agent-studio.html`
-- **Create Agent / Character / Selfie:** `pages/create-agent.html` → `src/create-agent.js`;
- `pages/create-character.html`; `pages/create-selfie.html`; the create flow
- `pages/create.html` → `src/create.js` (+ `create-prompt.js`, `create-review.js`)
-- **Animation tooling:** `pages/animations.html` → `src/animations-gallery.js`,
- `src/animation-library.js`; mocap: `pages/mocap-studio.html`
-- Data/MCP: `api/forge.js` (free NVIDIA NIM / TRELLIS lane + paid engines), the free
- `forge_free` MCP tool, `api/forge-gameready.js`, `api/forge-optimize.js`,
- `api/forge-stylize.js`.
-
-## Current state (read before you write)
-
-The Forge backend already returns a **designed degradation** when the free Spaces are
-saturated — `api/forge.js:1042` returns *"The free 3D Spaces are all busy or warming up
-right now. Try again in a moment, or pick another engine."* and `:1285` returns a retry hint.
-Sub-tools throw busy errors with a seconds estimate (`forge-gameready.js:394`,
-`forge-optimize.js:294`, `forge-stylize.js:129`). **The gap is the front end:** verify the UI
-turns that JSON into a *real* designed state — a retry-with-countdown, an engine switcher, and
-a "notify me / queue" path — not a thrown error string in a toast or, worse, a spinner that
-never resolves. Audit each studio for: undesigned empty canvas, generation progress that is
-honest (real queue/inference status, never `setTimeout` fake bars), and mobile usability of
-the prompt box and 3D viewport.
-
-## Your mission
-
-### 1. Audit every surface for the five states (loading / empty / error / overflow / populated)
-For each page: **loading** uses a skeleton or honest queued/running status from the real API
-(no fake progress); **empty** (no prompt yet / empty gallery) names the tool and offers a
-starter prompt, an example, or a "surprise me"; **error** speaks plainly with a real action;
-**overflow** handles a 500-char prompt, a 0-item gallery, a 1000-model gallery, a giant GLB.
-
-### 2. Fix the Forge "free engines all busy" dead-end into a designed degradation
-This is the named failure in `00b-the-bar.md` §1. When `api/forge.js` returns the busy/down
-payload, the page must render a **path forward**, not a dead end:
-- a **retry with a live countdown** (use the seconds the API supplies, not a guess),
-- an **engine switcher** (the paid lanes exist — surface them with their $THREE/x402 cost),
-- a **"notify me / queue"** affordance so the user isn't forced to babysit the page.
-Wire it to the real response shape; no mocked queue. Carry the same treatment to the
-gameready/optimize/stylize busy errors so a sub-step never throws a raw string.
-
-### 3. Mobile, a11y, and microinteractions
-Make the prompt box, controls, and 3D viewport usable at **320 / 768 / 1440px** (no overflow,
-tappable targets ≥ 44px). The viewport canvas gets an ARIA label and a keyboard-reachable
-control set; generation status is announced via `aria-live`. Honor `prefers-reduced-motion`
-on the reveal animation. Every button/slider gets hover, active, and focus states.
-
-### 4. Dead-path elimination + design tokens
-Every CTA on these pages must do something real (generate, export, pay, share, open in
-studio). Replace any hardcoded color/spacing/font with a `public/tokens.css` token. If a
-control looks live but isn't wired, wire it or remove it.
-
-### 5. Honest 3D loading
-The viewport must not block on a multi-MB GLB: lazy-load Three.js, show a real loading
-skeleton, dispose GPU resources on unmount/regeneration. No jank, no FOUC.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (all five states designed + reachable, responsive, a11y) and §1
-(graceful degradation with a real path forward on Forge). Inherits the **global definition of
-done** in `00-README-orchestration.md`: real APIs only, `$THREE` the only coin, tokens only,
-verified in a browser at `npm run dev` with zero console errors from your code and real
-network calls, existing tests pass. State which bars you cleared and how you verified each.
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays / `setTimeout` fake
-progress. `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin —
-generic runtime-supplied mints excepted per `CLAUDE.md`. Design tokens only
-(`public/tokens.css`) — no hardcoded colors/spacing/fonts. Stage explicit paths only (never
-`git add -A`); re-check `git diff --staged` and `head -1` of any `api/*.js` you touch for the
-`__defProp` bundle trap. Own **only the pages listed here**; extend the shared nav/tokens,
-never rewrite them.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks (lazy / user / integration / edge-case / pride).
-Ship one improvement beyond the checklist (e.g. a starter-prompt gallery on the empty Forge
-canvas, or a "remix this model" path from the gallery into the studio). Append a
-holder-readable `data/changelog.json` entry if the change is user-visible
-(`npm run build:pages` to validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C1-create-forge-surfaces.md`) and report what you
-shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/C-surfaces/C2-discover-surfaces.md b/prompts/production-campaign/C-surfaces/C2-discover-surfaces.md
deleted file mode 100644
index e1895e65c..000000000
--- a/prompts/production-campaign/C-surfaces/C2-discover-surfaces.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# C2 — Discover / browse surfaces to the bar
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-
-Discovery is how a visitor finds the thing worth coming back for — the trending model, the
-agent to hire, the world to explore. These are the most-linked, most-screenshotted surfaces
-on the platform; a half-empty grid, an "undefined" card, or a list with no sort/filter reads
-as a dead marketplace, and a dead marketplace has its **liquidation value**, not a $1B one.
-Discovery surfaces are also where network effects live: every card must link to the profile,
-the launch, the studio it represents. A grid that doesn't go anywhere is decoration.
-
-## Surfaces in scope (the real pages)
-
-- **Trending:** `pages/trending.html` → `src/trending*` → `api/explore.js`,
- `api/discover-detail.js`
-- **Marketplace:** `pages/marketplace.html` → `src/marketplace.js`, `marketplace-lobby.js`,
- `marketplace-detail.js`; analytics: `pages/marketplace-analytics.html` →
- `src/marketplace-analytics.js`
-- **Avatar / animation galleries:** `pages/animations.html` → `src/animations-gallery.js`,
- `src/animation-library.js`; avatar browsing lives in the marketplace/collection grids
-- **Agents index:** `/agents` → `public/agents/index.html` (and `agents/index.html`)
-- **Worlds:** `pages/worlds.html` → `src/worlds*`
-- **All-pages directory:** `/directory` (`/all-pages` → 308) — the page that enumerates every
- surface; confirm the live route in `vercel.json` and the file it serves
-- **Collection:** `pages/collection.html` → `src/collection.js`
-- **Constellation:** `pages/constellation.html` → `src/constellation/*`
-- **Communities (browse):** `pages/communities.html` → `src/community/*`
-- **Galaxy (3D discovery):** `pages/galaxy.html`
-- Data sources: `api/explore.js`, `api/discover-detail.js`, the marketplace/collection feeds.
-
-## Current state (read before you write)
-
-These pages fetch real feeds. The gaps to find: **empty states** that show a blank grid or
-"No results" instead of a designed empty state with a next action (a CTA to create, a sample,
-a cleared-filter button); **loading** that pops in instead of skeleton cards matching the
-grid; **error** that fails silently when `api/explore.js` / `api/discover-detail.js` errors;
-**overflow** — pagination/infinite-scroll for 1000+ items, truncation for 200-char names,
-graceful handling of missing thumbnails. Also audit: do all cards link somewhere real
-(profile / launch / studio)? Is there sort/filter, and does it persist in the URL?
-
-## Your mission
-
-### 1. Audit every surface for the five states
-**Loading** = skeleton cards in the real grid shape (not a centered spinner). **Empty** =
-explains the surface and gives the next action (create one, see an example, clear the filter).
-**Error** = names the failure (feed down) and offers retry. **Populated** = token-consistent
-cards with hover/focus. **Overflow** = pagination or virtualized infinite scroll for large
-sets; name/number truncation; missing-image fallback. Verify against real `api/explore.js`
-and `api/discover-detail.js` responses, including the empty and error responses.
-
-### 2. Eliminate dead cards and add sort/filter where missing
-Every card links to its real detail/profile/launch destination — no card that goes nowhere.
-Where a discovery grid lacks sorting or filtering (per the "if your list lacks sorting, add
-it" rule in `CLAUDE.md`), add it and reflect it in the URL so it's shareable and back-button
-safe. Cross-wire: trending cards → agent profile / launch detail; marketplace → studio remix.
-
-### 3. Mobile, a11y, microinteractions
-Grids reflow cleanly at **320 / 768 / 1440px** (no horizontal scroll, no clipped cards).
-Cards are keyboard-focusable with visible focus rings and screen-reader labels; filter
-controls are labelled. Honor `prefers-reduced-motion` on card enter/hover transitions. Every
-interactive element gets hover, active, and focus states.
-
-### 4. Design tokens + performance
-Replace hardcoded colors/spacing/fonts with `public/tokens.css` tokens. Lazy-load images
-(and the 3D galaxy/constellation Three.js modules), debounce the filter/search input,
-paginate or virtualize long lists. No layout shift as cards load.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (five states, responsive, a11y) and §2 (no layout shift, lazy 3D).
-Inherits the **global definition of done** in `00-README-orchestration.md`: real feeds only,
-`$THREE` the only coin, tokens only, verified in a browser at `npm run dev` with zero console
-errors from your code and real network calls, existing tests pass. State which bars you
-cleared and how you verified each (the empty response, the 1000-item scroll, the screenshot).
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays. `$THREE`
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin — runtime user-launch feeds
-(the launch directory, agent launch history) render user-launched mints and are the sole
-mechanical exception per `CLAUDE.md`; never hardcode or recommend a non-`$THREE` mint. Design
-tokens only (`public/tokens.css`). Stage explicit paths only (never `git add -A`); check
-`head -1` of any `api/*.js` you touch for the `__defProp` bundle trap. Own **only the pages
-listed here**; extend, don't rewrite, the shared nav/tokens.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. URL-persisted filters,
-a "trending this week" facet, or an empty-state that seeds a starter search). Append a
-holder-readable `data/changelog.json` entry if user-visible (`npm run build:pages` to
-validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C2-discover-surfaces.md`) and report what you
-shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/C-surfaces/C3-launch-trading-surfaces.md b/prompts/production-campaign/C-surfaces/C3-launch-trading-surfaces.md
deleted file mode 100644
index 56be162dc..000000000
--- a/prompts/production-campaign/C-surfaces/C3-launch-trading-surfaces.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# C3 — Launch & trading surfaces to the bar
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-Track A reliability green (these surfaces show money/RPC/feed states it produces).
-
-## Why this matters for $1B
-
-These are the **money surfaces** — where users launch coins, read intel, follow traders, and
-watch live trades. Trust is won or lost here: nobody launches a coin or follows a strategy
-through software that 500s on an empty feed, shows a chart with no data and no explanation, or
-leaves a "Launch" button that looks live but does nothing. Per the $1B thesis, a platform is
-worth $1B when it is **trusted with money** — and trust on a trading surface is communicated
-by every state being honest: real prices, real feed status, real "this didn't go through,
-your funds are safe" recovery. Polish here is not cosmetic; it's the difference between a
-tool people wire wallets to and one they bounce from.
-
-## Surfaces in scope (the real pages)
-
-- **Launch a coin:** `pages/launch.html` → `src/launch*`; detail `pages/launch-detail.html` →
- `src/launch-detail.js`; feed `pages/launches.html` → `src/launches.js`;
- `pages/bulk-launch.html`, `pages/autopilot.html` → `src/autopilot.js`
-- **Launchpad studio:** `pages/launchpad.html`; launch-week `pages/three-ws-launch-week.html`
-- **Coin intel / oracle / radar:** `pages/coin-intel.html`; `pages/oracle.html` →
- `src/oracle-graph.js`, `src/ibm-oracle.js`; `pages/radar.html` (coin radar)
-- **Trader leaderboard / live trades:** `pages/trader.html`; `pages/leaderboard.html`;
- `pages/trades.html`; live feed `pages/live.html`, `pages/three-live.html`,
- `pages/pump-live.html`; `pages/smart-money.html`
-- **Sniper arena:** `pages/play/arena.html`; sniper dashboard
- `pages/dashboard-next/sniper.html` (`/dashboard/sniper`) → `api/sniper/*`
-- **Strategy lab / watchlist / activity:** `public/strategy-lab.html` (`/strategy-lab`);
- `pages/watchlist.html`; `pages/activity.html`
-- **Claim wallet:** `pages/claim-wallet.html`
-- **3D visualizer:** `pages/pump-visualizer.html`; `pages/scan.html`; `pages/arm.html` →
- `src/arm.js` (`/oracle/arm`)
-- Data sources: `api/coin/*`, `api/sniper/*`, `api/oracle-share`, pump.fun feed, Solana RPC.
-
-## Current state (read before you write)
-
-These surfaces stream real data (pump.fun feed, Solana RPC, `api/coin/*`, `api/sniper/*`).
-The gaps to find: **live feeds with no empty/connecting/disconnected state** (a blank list
-while a websocket warms, no "reconnecting…" on drop); **charts that render nothing on no-data
-without saying so**; **error states that swallow an RPC/feed failure** instead of offering
-retry; **launch/claim CTAs whose pending/success/failure states aren't all designed** (this is
-the money path — a failed tx must show "did not go through, funds safe"). Audit **overflow**:
-a leaderboard of 1000 traders, a $0 and a $10M position, a 200-char coin name, a feed firehose.
-
-## Your mission
-
-### 1. Audit every surface for the five states — money paths included
-**Loading** = skeleton rows/charts and honest connection status (no fake tickers). **Empty** =
-a quiet, branded empty feed that explains what will appear and how to start (launch, add to
-watchlist, follow a trader). **Error** = names the failure (feed down, RPC error, tx rejected)
-and offers retry; money actions show an explicit safe-funds recovery state. **Populated** =
-token-consistent rows/cards with microinteractions. **Overflow** = pagination/virtualization
-for huge leaderboards and feeds, number/name truncation, extreme-value formatting ($0 → $10M).
-
-### 2. Make live feeds honest and reconnecting
-Live/trades/sniper streams must show connecting → live → reconnecting states from the **real**
-socket/SSE status — never a frozen list that looks live. On drop, auto-retry with a visible
-indicator. No `setTimeout` fake ticks.
-
-### 3. Launch & claim CTA state machines
-Every launch / bulk-launch / claim button has a full designed state machine wired to the real
-API: idle → submitting → on-chain pending → confirmed (with the link) → failed (safe-funds
-recovery). No button that looks live but no-ops. Confirm on-chain before claiming success.
-
-### 4. Mobile, a11y, microinteractions
-Charts, tables, and the 3D visualizer are usable at **320 / 768 / 1440px** (tables scroll or
-reflow; the visualizer lazy-loads Three.js with a skeleton). Tables/feeds are
-keyboard-navigable and screen-reader-labelled; live regions use `aria-live="polite"`. Honor
-`prefers-reduced-motion`. Hover/active/focus on every control.
-
-### 5. Dead-path elimination + design tokens
-Every CTA does something real (launch, follow, add to watchlist, open detail, claim). Replace
-hardcoded colors/spacing/fonts with `public/tokens.css` tokens. Wire cross-links: a coin in
-the feed → coin-intel; a trader → their leaderboard profile; a launch → its 3D visualizer.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (five states, responsive, a11y), §1 (money paths idempotent with
-honest failure states), §2 (lazy 3D, no jank on the feed firehose). Inherits the **global
-definition of done** in `00-README-orchestration.md`: real APIs only, `$THREE` the only coin
-the platform promotes, tokens only, verified in a browser at `npm run dev` with zero console
-errors from your code and real network calls, existing tests pass (money/feed paths covered).
-State which bars you cleared and how you verified each.
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays / fake tickers. `$THREE`
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin the platform promotes; the
-launch directory, coin-intel for a user-supplied mint, and agent launch history render
-runtime user-launched mints and are the sole mechanical exception per `CLAUDE.md` — never
-hardcode, market, or recommend a non-`$THREE` mint in source or copy. Design tokens only
-(`public/tokens.css`). Stage explicit paths only (never `git add -A`); check `head -1` of any
-`api/*.js` you touch for the `__defProp` bundle trap. Own **only the pages listed here**;
-extend, don't rewrite, the shared nav/tokens.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a connection-quality
-badge on live feeds, a $0/$10M-safe number formatter shared across tables, or a "copy this
-trader's strategy" path into strategy-lab). Append a holder-readable `data/changelog.json`
-entry if user-visible (`npm run build:pages` to validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C3-launch-trading-surfaces.md`) and report what you
-shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/C-surfaces/C4-agent-wallet-surfaces.md b/prompts/production-campaign/C-surfaces/C4-agent-wallet-surfaces.md
deleted file mode 100644
index 321c8e682..000000000
--- a/prompts/production-campaign/C-surfaces/C4-agent-wallet-surfaces.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# C4 — Agent & wallet surfaces to the bar
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:**
-Track A reliability green (wallet/RPC error states it produces render here).
-
-## Why this matters for $1B
-
-This is the **logged-in home** — the wallet, the dashboard, the agents a user owns and earns
-from. It's the surface a returning user sees daily, so it carries the **retention** and
-**trust-with-money** pillars at once. A dashboard that shows a blank balance while RPC warms,
-an agent list that's empty with no "create your first agent" path, or an edit form that loses
-work on a network blip will quietly bleed the daily-active users a $1B valuation is built on.
-The logged-in surface must feel as considered as the marketing pages — more, because this is
-where money actually moves.
-
-## Surfaces in scope (the real pages)
-
-- **Agent wallet:** `pages/agent-wallet.html` → `src/agent-wallet.js`, `src/agent-wallet/`,
- `src/agent-wallet-hub/`; chat variant `pages/avatar-wallet-chat.html`
-- **Dashboard:** `pages/dashboard-next/index.html` (`/dashboard`) → `src/dashboard/`,
- `src/dashboard-next/`; tabs: `dashboard-next/portfolio.html`, `holders.html`,
- `referrals.html`, `monetize.html`, `analytics.html` (audit the dashboard shell + its tabs)
-- **Account:** `pages/dashboard-next/account.html` (`/dashboard/account`)
-- **My agents:** `pages/dashboard-next/agents.html` (`/dashboard/agents`)
-- **Agent detail / edit:** `pages/agent-detail.html` → `src/agent-detail.js`,
- `src/agent-detail-market.js`; `pages/agent-edit.html`
-- **Agent economy / exchange / trade:** `pages/agent-economy.html` → `src/agent-economy.js`;
- `pages/agent-exchange.html` → `src/agent-exchange.js`; `pages/agent-trade.html` →
- `src/agent-trade.js`
-- Data sources: `api/agents/*` (solana register/card/reputation/skills),
- `api/agents/[id]/*`, wallet/balance endpoints, `api/discover-detail.js`.
-
-## Current state (read before you write)
-
-These pages render real wallet balances, agent metadata, and economy data. The gaps to find:
-**balance/portfolio loading** that shows `0` or blank before RPC resolves (must skeleton, then
-show real value); **empty agent list** with no onboarding path ("create your first agent");
-**edit forms** with no dirty-state guard, no inline validation, and no save-failure recovery;
-**error states** that swallow an RPC/API failure. Audit **overflow**: a wallet with $0 and one
-with $10M, an agent with a 200-char name, a portfolio of 1000 holdings, an account with no
-connected wallet at all.
-
-## Your mission
-
-### 1. Audit every surface for the five states — auth-aware
-**Loading** = skeletons for balance, portfolio, agent cards (no flash of `0`). **Empty** =
-designed onboarding: no agents → "create your first agent" with a CTA into the studio; no
-wallet → a clear connect/claim path. **Error** = names the failure (RPC down, save failed) and
-recovers. **Populated** = token-consistent, with microinteractions. **Overflow** = $0/$10M
-formatting, long names, big portfolios, the not-signed-in state on every gated surface.
-
-### 2. Harden the edit/account forms
-`agent-edit` and `account` get real inline validation at the boundary, a dirty-state guard
-(warn before navigating away from unsaved edits), an honest saving → saved → failed state
-machine wired to the real API, and a save-failure path that preserves the user's input. No
-silent loss of work.
-
-### 3. Wallet & economy correctness in the UI
-Balances, P&L, and economy numbers format correctly across the full range ($0 → $10M),
-show their source-freshness, and never display a stale value as live. The not-signed-in state
-on every gated surface routes to auth, not a blank page.
-
-### 4. Mobile, a11y, microinteractions
-Dashboard, wallet, and detail layouts work at **320 / 768 / 1440px** (cards stack, tables
-reflow or scroll). Forms and tab navigation are fully keyboard-operable with labelled inputs
-and visible focus rings; balance updates announced via `aria-live`. Honor
-`prefers-reduced-motion`. Hover/active/focus on every control.
-
-### 5. Dead-path elimination + design tokens
-Every dashboard tab, agent CTA, and wallet action does something real. Replace hardcoded
-colors/spacing/fonts with `public/tokens.css` tokens. Wire cross-links: an owned agent →
-its public profile/detail; the economy → the exchange/trade surface; account → claim/SNS.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (five states, responsive, a11y), §1 (no fund-related action
-without an honest failure state), §4 (inputs validated at the boundary). Inherits the
-**global definition of done** in `00-README-orchestration.md`: real APIs only, `$THREE` the
-only coin, tokens only, verified in a browser at `npm run dev` (signed-in and signed-out) with
-zero console errors from your code and real network calls, existing tests pass (auth/wallet
-paths covered). State which bars you cleared and how you verified each.
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays. `$THREE`
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin — agent launch history and
-the economy render runtime user-launched mints and are the sole mechanical exception per
-`CLAUDE.md`. Design tokens only (`public/tokens.css`). Stage explicit paths only (never
-`git add -A`); check `head -1` of any `api/*.js` you touch for the `__defProp` bundle trap.
-Own **only the pages listed here**; extend, don't rewrite, the shared nav/tokens.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a dirty-state guard
-shared by all forms, a unified $0/$10M number formatter, or a one-click "create your first
-agent" empty state on `/dashboard/agents`). Append a holder-readable `data/changelog.json`
-entry if user-visible (`npm run build:pages` to validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C4-agent-wallet-surfaces.md`) and report what you
-shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/C-surfaces/C5-worlds-clash-social-surfaces.md b/prompts/production-campaign/C-surfaces/C5-worlds-clash-social-surfaces.md
deleted file mode 100644
index 58dd0648e..000000000
--- a/prompts/production-campaign/C-surfaces/C5-worlds-clash-social-surfaces.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# C5 — Worlds, clash & social surfaces to the bar
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none
-(Track A reliability green so live/multiplayer error states render real).
-
-## Why this matters for $1B
-
-Worlds, clash, the club, and communities are the **come-back-tomorrow** surfaces — the social
-and real-time layer that turns a one-time generation into a habit. These are the most
-heavily-3D, most live pages on the platform, so they carry both the **retention** pillar and
-the hardest **performance** bars: a world that drops frames, a club that loads on a multi-MB
-GLB with no skeleton, or a clash with no "waiting for players" state reads as broken, and a
-broken social surface kills the network effect a $1B platform compounds on. These are also the
-most shareable moments — every one must screenshot well and unfurl with an OG card.
-
-## Surfaces in scope (the real pages)
-
-- **Coin clash:** `pages/clash.html` → `src/clash.js`, `src/clash.css` → `api/clash/*`
-- **Worlds:** `pages/worlds.html` → `src/worlds*`
-- **City:** `pages/city.html` → `src/city/`
-- **Club (3D venue):** `pages/club.html` → `src/club.js`, `src/club-venue.js`,
- `club-crowd.js`, `club-camera.js`, `club-audio.js`, `club-entrance.js`, `club-gate.js`,
- `club-sequence.js`, `club-perf.js` → `api/club/*`
-- **Community / communities:** `pages/community.html`, `pages/communities.html` →
- `src/community/` → `api/community/*`
-- **Bounties:** `pages/bounties.html` → `src/bounties.js`; detail `pages/bounty.html`
-- Data sources: `api/clash/*`, `api/club/*`, `api/community/*`, and the live/multiplayer
- signaling these surfaces use.
-
-## Current state (read before you write)
-
-These are real-time 3D surfaces backed by `api/clash/*`, `api/club/*`, `api/community/*`.
-The gaps to find: **3D scenes that block on asset load** with no progressive skeleton; **live
-states** (waiting for opponents, empty club, lobby filling) that show nothing instead of a
-designed "waiting" state; **error/disconnect** handling when signaling or an upstream drops;
-**empty communities/bounties** lists with no "start one / be the first" path. The club's perf
-module (`src/club-perf.js`) exists — confirm it actually holds frame rate and degrades quality
-gracefully on weak devices rather than janking. Audit **overflow**: a clash with 0 vs many
-entrants, a bounty list of 1000, a 200-char community name, a packed vs empty venue.
-
-## Your mission
-
-### 1. Audit every surface for the five states — real-time aware
-**Loading** = progressive 3D load with a real skeleton/loading scene, never a frozen black
-canvas. **Empty** = designed "waiting for players / empty venue / no bounties yet" states that
-explain what happens next and offer an action (invite, start a bounty, enter the club).
-**Error** = names a disconnect/upstream failure and offers reconnect/retry. **Populated** =
-token-consistent HUD/overlays with microinteractions. **Overflow** = 0/1/1000 entrants,
-bounties, community members; long names; full vs empty venue.
-
-### 2. Make the 3D load honestly and hold frame rate
-Lazy-load Three.js and scene assets, show a real loading skeleton/scene, draco/meshopt where
-applicable, and **dispose GPU resources on exit/scene-change**. Verify `club-perf.js` actually
-degrades quality on weak hardware to hold ~60fps; no jank on the avatar/crowd presence.
-
-### 3. Real-time connection states
-Clash and club show connecting → connected → reconnecting from the **real** signaling status,
-with a visible reconnect path on drop. No frozen lobby that looks live. No `setTimeout`-faked
-"finding opponent" — wire it to the real matchmaking/feed.
-
-### 4. Mobile, a11y, microinteractions
-2D overlays/HUD/lists usable at **320 / 768 / 1440px**; the 3D canvas degrades gracefully or
-offers a 2D fallback on low-power mobile. Overlays are keyboard-reachable and
-screen-reader-labelled; the 3D canvas has an ARIA label and a non-3D way to read state. Honor
-`prefers-reduced-motion` (calm the camera/crowd motion). Hover/active/focus on every control.
-
-### 5. Dead-path elimination + design tokens + shareability
-Every CTA (enter clash, join club, claim bounty, open community) does something real. Replace
-hardcoded colors/spacing/fonts with `public/tokens.css` tokens. Ensure each shareable moment
-(a clash result, a bounty, a community) has a working share action / OG card and links to its
-detail. Wire cross-links: a community → its members' agent profiles; a bounty → the agent
-that can fulfill it.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (five states, responsive, a11y), §2 (progressive 3D, 60fps, GPU
-disposal, no FOUC). Inherits the **global definition of done** in
-`00-README-orchestration.md`: real APIs only, `$THREE` the only coin, tokens only, verified in
-a browser at `npm run dev` with zero console errors from your code and real network calls,
-existing tests pass. State which bars you cleared and how you verified each (the frame rate,
-the disconnect recovery, the empty-venue screenshot).
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays / faked matchmaking.
-`$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin — clash/community
-surfaces that render user-launched coins use the runtime user-launch exception per `CLAUDE.md`;
-never hardcode or recommend a non-`$THREE` mint. Design tokens only (`public/tokens.css`).
-Stage explicit paths only (never `git add -A`); check `head -1` of any `api/*.js` you touch
-for the `__defProp` bundle trap. Own **only the pages listed here**; extend, don't rewrite,
-the shared nav/tokens.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. a shared 3D-scene
-loading skeleton, a low-power 2D fallback for the club, or a "be the first" empty state on
-communities/bounties). Append a holder-readable `data/changelog.json` entry if user-visible
-(`npm run build:pages` to validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C5-worlds-clash-social-surfaces.md`) and report what
-you shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/C-surfaces/C6-learn-chat-pay-surfaces.md b/prompts/production-campaign/C-surfaces/C6-learn-chat-pay-surfaces.md
deleted file mode 100644
index f07d2a892..000000000
--- a/prompts/production-campaign/C-surfaces/C6-learn-chat-pay-surfaces.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# C6 — Learn, chat & pay surfaces to the bar
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-
-Docs, tutorials, the glossary, and "what is three.ws" are the **onboarding and ecosystem**
-surfaces — the pages that turn a curious visitor into a user and a user into a builder. Per
-the $1B thesis, an outside developer must go from zero to a working integration in 10 minutes
-using these pages; a docs surface with a dead anchor, a broken copy-button, or no search reads
-as an abandoned project. Chat is the conversational front door (the talking page guide, the
-avatar chat); pay is a **money surface** where x402/$THREE payments settle — a payment page
-with an undesigned pending/failed state is a trust leak on the most sensitive interaction
-there is. These pages must be the most polished on the platform, because they set expectations
-for everything else.
-
-## Surfaces in scope (the real pages)
-
-- **Docs:** `/docs` → `docs/index.html` (and the docs sub-pages it links) — the developer
- reference and quickstart
-- **Tutorials:** `pages/tutorials.html`; single tutorial `pages/tutorial.html`
-- **Chat:** `/chat` → `chat/index.html` → `api/chat.js` (and `api/chat/proxy.js`,
- `api/brain/chat.js`); avatar chat `pages/avatar-wallet-chat.html`
-- **Pay:** `/pay` → `public/pay/index.html` → x402 / payment endpoints
- (`api/x402-checkout`, `public/x402.js`, `public/x402-pay-core.js`)
-- **Avatar SDK page:** `pages/avatar-sdk.html` — the SDK landing/quickstart
-- **Glossary:** `pages/glossary.html` → `src/glossary/`
-- **What is three.ws:** `pages/what-is.html`
-- **AR:** `pages/ar.html` → `src/forge-ar.js` (AR view-in-space surface)
-- Data sources: `api/chat.js`, the x402/payment endpoints, the docs/tutorial content.
-
-## Current state (read before you write)
-
-Docs/tutorials/glossary/what-is are largely static content; chat and pay are live. The gaps to
-find: **docs/tutorials** missing on-page search, a working copy-to-clipboard on every code
-block, anchor links that all resolve, a "you're on the latest" freshness signal, and a
-designed 404/empty for a missing doc; **chat** missing a streaming-response state, an empty
-"start the conversation" state, a typing indicator from the **real** stream (no `setTimeout`
-fake typing), and an error/retry on a failed `api/chat.js` call; **pay** missing a full
-payment state machine (idle → awaiting signature → settling → settled → failed-with-recovery)
-and an honest "did not go through, funds safe" state. Audit **overflow**: a 200-message chat,
-a doc page with a huge code block, a glossary of 1000 terms, a payment for $0.000001 vs a
-large amount.
-
-## Your mission
-
-### 1. Audit every surface for the five states
-**Loading** = skeleton for docs/chat history; honest streaming status for chat; real awaiting
-state for pay. **Empty** = "start the conversation" for chat, a "search the docs / popular
-guides" for an empty docs landing, a designed "nothing here yet" for a missing tutorial.
-**Error** = chat/pay failures named in plain language with retry; a designed docs 404.
-**Populated** = token-consistent typography and code styling with microinteractions.
-**Overflow** = long chats, huge code blocks, big glossaries, tiny-to-large payment amounts.
-
-### 2. Make docs and tutorials a 10-minute on-ramp
-Every code block has a working copy button; every anchor/cross-link resolves (no dead
-fragments); add on-page search/filter to the glossary and docs if absent; surface a clear
-quickstart path from the avatar-sdk page into the docs. This maps to `00b-the-bar.md` §6 —
-zero-to-integration in 10 minutes.
-
-### 3. Chat: honest streaming and recovery
-Wire the chat UI to the **real** `api/chat.js` stream — a real typing/streaming indicator,
-token-by-token render where supported, an empty starter state with example prompts, and an
-error/retry on stream failure. No faked typing, no spinner that never resolves.
-
-### 4. Pay: a complete, honest payment state machine
-The pay surface gets a full state machine on the **real** x402/payment flow: idle → awaiting
-signature → settling → settled (with receipt/link) → failed (with a "funds safe, here's what
-happened" recovery). Confirm settlement before claiming success. `$THREE` and x402 USDC are
-the only payment rails referenced.
-
-### 5. Mobile, a11y, microinteractions, tokens
-All four surfaces work at **320 / 768 / 1440px** (docs nav collapses, code blocks scroll, chat
-composer stays reachable above the keyboard). Full keyboard nav, labelled inputs, `aria-live`
-for chat/pay status, focus management on the chat composer, contrast ≥ WCAG AA. Honor
-`prefers-reduced-motion`. Replace hardcoded colors/spacing/fonts with `public/tokens.css`
-tokens; every interactive element gets hover, active, and focus states.
-
-## Definition of done
-
-Clears `00b-the-bar.md` §3 (five states, responsive, a11y), §6 (10-minute on-ramp from docs),
-§1 (pay path idempotent with honest failure recovery). Inherits the **global definition of
-done** in `00-README-orchestration.md`: real APIs only, `$THREE` the only coin, tokens only,
-verified in a browser at `npm run dev` with zero console errors from your code and real
-network calls (real chat stream, real payment flow), existing tests pass (the
-`x402-checkout` tests included). State which bars you cleared and how you verified each.
-
-## Operating rules (override defaults)
-
-No mocks / fake data / placeholders / TODOs / stubs / sample arrays / faked typing or progress.
-`$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) is the only coin — never name another
-token in docs, glossary, copy, or examples; x402 USDC is a payment rail, not a promoted coin.
-Design tokens only (`public/tokens.css`). Stage explicit paths only (never `git add -A`); check
-`head -1` of any `api/*.js` you touch for the `__defProp` bundle trap (the `api/x402-checkout`
-and `public/x402*.js` files are live — review their diffs carefully). Own **only the pages
-listed here**; extend, don't rewrite, the shared nav/tokens.
-
-## When finished
-
-Run `CLAUDE.md`'s five self-review checks. Ship one improvement (e.g. on-page docs search, a
-shared copy-button component, or example prompts on the empty chat state). Append a
-holder-readable `data/changelog.json` entry if user-visible (`npm run build:pages` to
-validate). Then delete this prompt file
-(`prompts/production-campaign/C-surfaces/C6-learn-chat-pay-surfaces.md`) and report what you
-shipped, which bars you cleared and how you verified them, and any seam for the next agent.
diff --git a/prompts/production-campaign/D-monetization/00-README.md b/prompts/production-campaign/D-monetization/00-README.md
deleted file mode 100644
index 14bbe9980..000000000
--- a/prompts/production-campaign/D-monetization/00-README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# Track D — Monetization & $THREE Economy
-
-**Goal:** turn users into **real, reconciled revenue**. Not pricing pages that don't bill,
-not paid endpoints that don't settle, not "holder perks" that mean nothing on the page next
-door. Every dollar this track touches is quoted to the user, charged on a real rail, settled
-on-chain or through a real processor, and **reconciled** against a ledger you can audit. The
-$1B thesis pillar this owns is *monetization depth*: revenue × multiple = valuation, and a
-multiple only exists when the revenue is real and the books balance.
-
-The platform already has the bones: holder tiers (`api/_lib/three-tier.js`,
-`three-access.js`), a fee module (`api/_lib/fee.js`, `marketplace-platform-fee.js`), royalty
-ledger (`api/_lib/royalty.js`), payouts (`api/_lib/payout.js`, `api/billing/`), an x402
-catalog at `/.well-known/x402.json` (`api/wk.js`), and ~28 paid endpoints under `api/x402/`.
-This track **completes and connects** them — it does not rewrite the payment plumbing.
-
-**The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). It appears
-nowhere as a recommendation outside that one address; no other token appears anywhere — code,
-copy, tests, fixtures. Runtime user-launch mints are the sole mechanical exception (CLAUDE.md).
-
----
-
-## Prompts
-
-| # | File | Mission (one line) |
-|---|---|---|
-| **D1** | `D1-three-holder-value-system.md` | One $THREE-holder value system — balance → tier → perks → upgrade path — applied identically on every gating surface. Foundational. |
-| **D2** | `D2-billing-pricing-metering.md` | Real billing: a pricing surface, usage metering, invoices/receipts, and the AWS Marketplace metering + entitlement path. Real charges, real reconciliation. |
-| **D3** | `D3-x402-paid-endpoints-network.md` | Complete and verify the x402 paid-endpoint network + discovery indexing (CDP Bazaar / x402scan / 402index). Every paid endpoint quotes price, settles USDC, is discoverable. |
-| **D4** | `D4-marketplace-economics.md` | Marketplace economics: platform fees, creator royalties, payment splits (@0xsplits/splits-sdk), creator payouts, on-chain skill licenses. Trustless where possible. |
-
-## Run order
-
-```
-D1 (holder value system) ← FOUNDATIONAL. Run first.
- │ one helper, one tier ladder, one upgrade UX — everything else gates and prices off it
- ├── D2 (billing / pricing / metering) ← consumes D1 tier discounts in the priced ledger
- ├── D3 (x402 paid network + discovery) ← consumes D1 tier discounts at quote time
- └── D4 (marketplace economics) ← consumes D1 tiers for creator perks; D2 ledger for payouts
-```
-
-D1 is the gate: it establishes the single tier ladder, the single balance/tier helper, and
-the single upgrade UX that D2's pricing, D3's quotes, and D4's creator perks all reference.
-Run D1 to completion first. D2–D4 may then run in parallel; each reads D1's contracts, never
-forks its own copy of "what does holding $THREE get you."
-
-## File-ownership map
-
-Stage explicit paths only — never `git add -A`. Shared files (`data/changelog.json`) are
-append-only. Lanes:
-
-| Prompt | Owns (edit freely) | Reads / extends (do not rewrite) |
-|---|---|---|
-| **D1** | `api/_lib/three-tier.js`, `three-access.js`, `three-gate.js`, a shared client gate module under `public/`, the `/account`-tier surface | `forge-tiers.js`, `holder-pass.js`, `balances.js` |
-| **D2** | `api/billing/*`, a pricing page under `pages/`, `api/aws-marketplace/*`, a metering/entitlement lib in `api/_lib/` | `api/_lib/fee.js`, `api/config.js`, D1's tier helper |
-| **D3** | `api/x402/*`, `api/wk.js`, `.well-known/x402.json` build path, `scripts/verify-x402-discovery.mjs`, a registration script | `public/x402*.js`, `api/x402-checkout.js`, D1's tier helper |
-| **D4** | `api/_lib/royalty.js`, `payout.js`, `marketplace-platform-fee.js`, a splits lib in `api/_lib/`, `contracts/skill-license/*`, `api/_lib/skill-license-onchain.js`, `api/creators/*` | D1's tier helper, D2's ledger |
-
-When this directory contains only `00-README.md`, Track D is done.
diff --git a/prompts/production-campaign/E-ecosystem/00-README.md b/prompts/production-campaign/E-ecosystem/00-README.md
deleted file mode 100644
index eb528c029..000000000
--- a/prompts/production-campaign/E-ecosystem/00-README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Track E — Developer Ecosystem & SDKs
-
-**Goal: others build on us.** A platform is worth $1B when third parties depend on it.
-This track turns three.ws's published SDKs, MCP servers, docs, and examples into a surface
-an *outside* developer can take from zero to a working integration in **under 10 minutes** —
-without reading our source, without a support thread, without a single broken link. That is
-the network-effects pillar of the $1B thesis (`00-README-orchestration.md` §4): the product
-others build on is the one that compounds.
-
-Read `CLAUDE.md`, `STRUCTURE.md`, and `00b-the-bar.md` (the **Ecosystem bars**, §6) before
-picking up any prompt here. STRUCTURE.md is the map of every SDK/MCP package and is the
-source of truth for which package name maps to which directory.
-
-## The 4 prompts
-
-| # | File | Mission | Run order |
-|---|---|---|---|
-| **E1** | [`E1-sdk-production-polish.md`](E1-sdk-production-polish.md) | Bring the 5 published SDKs (`avatar-sdk`, `walk-sdk`, `page-agent-sdk`, `tour-sdk`, `agent-payments-sdk`) to production DX: copy-paste README quickstart, typed surfaces, a runnable example, semver + per-package `CHANGELOG.md`, and a CI smoke test. | Anytime (foundation for E3/E4) |
-| **E2** | [`E2-mcp-servers-production.md`](E2-mcp-servers-production.md) | Bring every MCP server (`mcp-server`, `mcp-bridge`, and the 6 `packages/*` MCP servers) to production: enforce `audit:mcp` / `smoke:mcp` / `test:mcp` in CI, document every tool with example calls, validate all `server*.json` manifests. | Anytime (parallel to E1) |
-| **E3** | [`E3-docs-api-reference.md`](E3-docs-api-reference.md) | Complete the docs site + API reference: every public endpoint and SDK surface documented, quickstarts that actually run, a live status link, real `llms.txt` / `llms-full.txt` (today both are empty placeholders), working search. | After E1 + E2 land (consumes their surfaces); can start early on layout/search |
-| **E4** | [`E4-examples-templates-starters.md`](E4-examples-templates-starters.md) | A copy-paste library of runnable examples, embeds, and starter templates: `examples/*`, `coach-leo`, `multiplayer`, framework starters (React/Next/vanilla — none exist yet), and the `<agent-3d>` / `<page-agent>` / `<agent-presence>` web components. | After E1 (links the SDKs); parallel-safe with E3 |
-
-**Recommended order:** E1 ∥ E2 first (independent, each owns its package dirs), then E3 and E4
-in parallel (both consume E1/E2 outputs but own disjoint trees). None block the others hard —
-the table's "run order" is for maximum link-integrity, not a strict gate.
-
-## File-ownership map (disjoint — parallel-safe)
-
-| Prompt | Owns (edit freely) | Must not touch |
-|---|---|---|
-| **E1** | `avatar-sdk/`, `walk-sdk/`, `page-agent-sdk/`, `tour-sdk/`, `agent-payments-sdk/` (READMEs, `types/`, `examples/`, `package.json`, new `CHANGELOG.md`), `scripts/publish-packages.mjs` (read-only ref) | `packages/*-mcp/`, `mcp-server/`, `mcp-bridge/`, `docs/`, `examples/` (top-level) |
-| **E2** | `mcp-server/`, `mcp-bridge/`, `packages/avatar-agent-mcp/`, `packages/pumpfun-mcp/`, `packages/ibm-watsonx-mcp/`, `packages/ibm-x402-mcp/`, `packages/three-token-mcp/`, `packages/threews-avatar-mcp/`, root `server*.json`, `scripts/audit-mcp-manifests.mjs` / `smoke-mcp-remotes.mjs` / `test-mcp-all.mjs` | SDK dirs, `docs/`, `examples/` |
-| **E3** | `docs/` (`api-reference.md`, `index.html`, `quick-start.md`, `llms.txt`, `llms-full.txt`, `api/`, search assets) | SDK source, MCP source, `examples/` |
-| **E4** | `examples/`, `examples/coach-leo/`, `multiplayer/`, new framework-starter dirs under `examples/`, web-component embed pages | SDK/MCP `src/`, `docs/` |
-
-**Shared, append-only (any prompt):** `.github/workflows/ci.yml` (E1 + E2 both add jobs —
-add a *new named job*, never rewrite existing ones), `data/changelog.json` (append one entry,
-never reformat), `package.json` root `scripts` (add, never remove). Coordinate via distinct
-job/script names. Stage explicit paths only — never `git add -A`.
-
-When this directory contains only this `00-README.md`, Track E is done.
diff --git a/prompts/production-campaign/E-ecosystem/E1-sdk-production-polish.md b/prompts/production-campaign/E-ecosystem/E1-sdk-production-polish.md
deleted file mode 100644
index da8d4b239..000000000
--- a/prompts/production-campaign/E-ecosystem/E1-sdk-production-polish.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# E1 — SDK Production Polish
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-The five published SDKs are the front door for every external developer who builds *on*
-three.ws instead of just visiting it — the network-effects pillar (`00-README-orchestration.md`
-§4). A dev who installs `@three-ws/avatar`, copies the README, and has a rendered agent in
-their app inside ten minutes becomes a distribution channel we didn't pay for. A dev who hits
-an untyped surface, a stale README, or an example that throws on line one churns and tells
-their team we're not serious. Production DX on these five packages is the cheapest growth we
-own.
-
-## Current state (read before you write)
-Inspect each SDK dir — `STRUCTURE.md` §npm-workspaces maps the names:
-- `avatar-sdk/` → `@three-ws/avatar` v0.2.0 — `<agent-3d>` web component + React subpath; has
- `README.md`, `types/index.d.ts`, `build.mjs`. **No CHANGELOG, no test/example npm scripts.**
-- `walk-sdk/` → `@three-ws/walk` v0.1.0 — corner companion + playground. Has README + types.
- **No CHANGELOG.**
-- `page-agent-sdk/` → `@three-ws/page-agent` v0.1.0 — `<page-agent>` page narrator. Best-off
- today: has `test/`, `examples/` (index/headless/react/custom-avatar), `PUBLISHING.md`,
- `CONTRIBUTING.md`. **No CHANGELOG.** Use it as the reference bar for the others.
-- `tour-sdk/` → `@three-ws/tour` v0.1.0 — has `test/` (vitest), `examples/curriculum.example.json`,
- `bin/`, `curriculum.schema.json`. **No copy-paste README quickstart, no CHANGELOG.**
-- `agent-payments-sdk/` → `@three-ws/agent-payments` v3.2.0 — TS, has `docs/` (api/events/pdas/x402),
- `typecheck`, jest `test`. **No CHANGELOG; README quickstart not verified runnable.**
-
-The gap is uniform: there is **no `CHANGELOG.md` in any of the five**, README quickstarts are
-not all copy-paste-runnable, typed surfaces are inconsistent, and none has a CI smoke test that
-proves the published entrypoint imports. `scripts/publish-packages.mjs` exists (read it to learn
-the publish flow and version-bump expectations — do not change publish behavior).
-
-## Your mission
-### 1. Copy-paste quickstart in every README (the 10-minute test)
-For each of the five, the README's first scrollful must take a stranger from `npm i` to a
-working result with **one block they can paste verbatim**. Real install, real import path
-(verify against the `exports` map in each `package.json`), real minimal usage that renders/runs.
-For `avatar-sdk` show both the `<agent-3d>` web-component path and the React subpath. For
-`page-agent-sdk` the `<page-agent>` drop-in. No pseudo-code, no `// ...your code here`. Every
-endpoint or key the example needs is named and sourced from env (never inline a secret).
-
-### 2. Typed, documented public surface
-Audit each package's `types/` (or generated `.d.ts` for `agent-payments-sdk`) against what the
-README and `exports` actually expose. Every public export typed; every option object documented
-with TSDoc on the type. For `agent-payments-sdk` keep `npm run typecheck` green. No `any` on a
-public boundary that can be tightened. Don't rewrite implementations — type and document the
-surface that already ships.
-
-### 3. One runnable example per SDK
-Each SDK gets at least one example a dev can actually run (extend `page-agent-sdk/examples/` and
-`tour-sdk/examples/` as the pattern). `avatar-sdk` and `walk-sdk` have none — add an
-`examples/index.html` (or `.jsx`) that imports the built entrypoint and produces a visible
-result against **real** three.ws endpoints. Wire an `npm run example` (or documented open
-instruction) so it's discoverable. Examples use real APIs and real keys via env — no mocks.
-
-### 4. Semver + per-package CHANGELOG.md
-Add a `CHANGELOG.md` (Keep-a-Changelog format) to each of the five, seeded from git history of
-that dir and the current published version. Confirm each `version` in `package.json` follows
-semver and matches what's on npm (or the next intended bump). Document the version + compat
-matrix (peer `three` / `react` ranges already declared) in the README.
-
-### 5. CI smoke test that proves the entrypoint imports
-Add a `smoke` (or `test`) npm script to any SDK lacking one that, at minimum, imports the built
-entrypoint and asserts the documented public exports exist (web-component registration,
-factory fn, React export). Then add a **new named job** to `.github/workflows/ci.yml`
-(e.g. `sdk-smoke`) that builds and smoke-tests all five on PRs. Add a new named job — do not
-rewrite existing jobs (E2 also touches this file; coordinate by job name).
-
-### 6. Tighten the seam to docs/examples
-The published surface you document here is consumed by E3 (docs) and E4 (examples). Make import
-paths, export names, and quickstart copy **identical** to what those tracks will reference —
-note any package whose README quickstart you couldn't verify runnable so E4 can build a real
-example against it.
-
-## Definition of done
-Clears `00b-the-bar.md` §6 (Ecosystem): an outside dev goes zero→working integration in 10
-minutes from each README alone; every SDK has a copy-paste quickstart, typed public surface, a
-runnable example, semver + CHANGELOG, and a CI smoke test that passes and is enforced. Inherits
-the **global definition of done** in `00-README-orchestration.md` (no mocks, `$THREE`-only,
-explicit-path staging, existing tests pass, self-reviewed diff). Verify each quickstart by
-actually running it; state in your report which package's quickstart you ran and the result.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin — if any SDK README,
-example, or fixture references another token, remove it. Stage explicit paths only (never
-`git add -A`). Own the five SDK dirs (`avatar-sdk/`, `walk-sdk/`, `page-agent-sdk/`,
-`tour-sdk/`, `agent-payments-sdk/`) and a new CI job; **extend the existing packages, don't
-rewrite them** — type and document the shipping surface, don't redesign APIs. Keep examples
-real (real three.ws endpoints, real keys via env). Do not change `scripts/publish-packages.mjs`
-behavior; read it only to align versions/changelogs. Don't touch MCP dirs, `docs/`, or
-top-level `examples/` (E2/E3/E4 own those).
-
-## When finished
-Run CLAUDE.md's five self-review checks (lazy / user / integration / edge-case / pride). Ship
-one improvement beyond the checklist (e.g. a compat matrix, a `npm create`-able starter hook, an
-OG-able example screenshot). Append a `data/changelog.json` entry (tag: `sdk`) — holder-readable,
-e.g. "Production-ready SDK quickstarts: install to working integration in under 10 minutes."
-Run `npm run build:pages` to validate it. Then delete this prompt file
-(`prompts/production-campaign/E-ecosystem/E1-sdk-production-polish.md`) and report what you
-shipped, which quickstart you ran to verify the 10-minute claim, and any seam E3/E4 need.
diff --git a/prompts/production-campaign/E-ecosystem/E2-mcp-servers-production.md b/prompts/production-campaign/E-ecosystem/E2-mcp-servers-production.md
deleted file mode 100644
index f74ed2776..000000000
--- a/prompts/production-campaign/E-ecosystem/E2-mcp-servers-production.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# E2 — MCP Servers Production
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none
-(runs parallel to E1).
-
-## Why this matters for $1B
-MCP is how every agent runtime — Claude, Cursor, and the long tail of agent frameworks — reaches
-three.ws's capabilities (avatar forging, pump.fun launches, $THREE tools, x402 payments) without
-human glue. An MCP server that registers cleanly, exposes documented tools, and passes a live
-smoke test turns three.ws into infrastructure other agents *call*, which is the deepest form of
-the network-effects pillar (`00-README-orchestration.md` §4): we become a dependency, not a
-destination. A broken manifest or an undocumented tool means an agent silently can't use us.
-
-## Current state (read before you write)
-Eight MCP surfaces ship (names ↔ dirs per `STRUCTURE.md`):
-- `mcp-server/` → `@three-ws/mcp-server` v1.2.0 — primary surface; has `server.json`. Paid tools
- (x402) per the MCP server instructions; `forge_free` is the one free tool.
-- `mcp-bridge/` → `@three-ws/mcp-bridge` v1.0.0 — has `tests/` + `npm run test:smoke`.
-- `packages/avatar-agent-mcp/` → `@three-ws/avatar-agent` v1.2.0 — avatar tools; has `test/`,
- `npm run inspect`.
-- `packages/pumpfun-mcp/` → `@three-ws/pumpfun-mcp` — pump.fun launch tools.
-- `packages/ibm-watsonx-mcp/` → `@three-ws/ibm-watsonx-mcp` — watsonx.ai.
-- `packages/ibm-x402-mcp/` → `@three-ws/ibm-x402-mcp` — IBM x402; has `CATALOG.md`, `SUPPORT.md`.
-- `packages/three-token-mcp/` → `@three-ws/three-token-mcp` — $THREE token tools.
-- `packages/threews-avatar-mcp/` → `@three-ws/threews-avatar-mcp` — three.ws avatar ops; has `app/`.
-
-The gate scripts already exist and are wired as root npm scripts:
-`audit:mcp` → `scripts/audit-mcp-manifests.mjs`, `smoke:mcp` → `scripts/smoke-mcp-remotes.mjs`,
-`test:mcp` → `scripts/test-mcp-all.mjs`. Root MCP manifests live at the repo root:
-`server.json`, `server-3d.json`, `server-agent.json`, `server-bazaar.json`, `server-ibm.json`,
-`server-pumpfun.json`. Publish flow: `scripts/publish-mcp-servers.mjs` (`npm run publish:mcp`).
-**The gap: these gates are NOT enforced in `.github/workflows/ci.yml`** (grep confirms no CI job
-runs them), per-tool docs are uneven, and not every `server*.json` is verified valid against the
-audit. Read the three scripts before changing anything — extend, don't reimplement them.
-
-## Your mission
-### 1. Make `audit:mcp` green for every manifest
-Run `node scripts/audit-mcp-manifests.mjs` and fix every failure it reports across all
-`server*.json` (root) and each package's `server.json`. Manifests must be valid, complete, and
-consistent with each package's actual tool surface (name, version, description, tool list). Fix
-the manifests/packages — do not weaken the audit to pass.
-
-### 2. Make `smoke:mcp` and `test:mcp` green
-Run `node scripts/smoke-mcp-remotes.mjs` and `node scripts/test-mcp-all.mjs`. Every server must
-start, register, and respond to a tools/list (and a representative tools/call where the script
-exercises it) without throwing. Honor the paid-vs-free model: `forge_free` runs without payment;
-paid tools must return a well-formed `PaymentRequired` structuredContent when no x402 payload is
-present (per the MCP server instructions) — that is correct behavior, not a failure. Fix real
-breakage; keep `mcp-bridge`'s existing `test:smoke` passing too.
-
-### 3. Document every tool with example calls
-Each MCP server's `README.md` lists every tool it exposes with: purpose, input schema (params +
-types), an **example call** (the JSON arguments a client would send), and the shape of the
-result. State price for paid tools and "free" for `forge_free`. Match `ibm-x402-mcp/CATALOG.md`
-as the documentation bar; bring the thinner READMEs up to it. Tools must be discoverable from the
-README without reading `src/`.
-
-### 4. Enforce the gates in CI
-Add a **new named job** to `.github/workflows/ci.yml` (e.g. `mcp-gates`) that runs `npm run
-audit:mcp`, `npm run test:mcp`, and the smoke check appropriate for CI (`smoke:mcp` if it can run
-hermetically; otherwise gate the live-network parts behind a secret/env guard and still run the
-audit + test unconditionally) on every PR. Add a new named job — do not rewrite existing jobs
-(E1 also edits this file; coordinate by job name). The gates must actually fail the build on a
-bad manifest or a broken server.
-
-### 5. Verify the publish path and version hygiene
-Read `scripts/publish-mcp-servers.mjs`; confirm each package's `version` is semver-correct and
-the manifest version matches `package.json`. Run `npm run publish:mcp:dry` mentally/where safe to
-confirm no package is mis-staged. Do not actually publish.
-
-### 6. Wire one cross-surface connection
-The documented tool catalog you produce is consumed by E3 (docs API reference) and the AWS/Bazaar
-listings. Ensure the tool names + descriptions in `server*.json`, each README, and any
-`CATALOG.md` are **identical** so the docs site and discovery indexes render one consistent
-catalog. Note any naming drift you reconciled for E3.
-
-## Definition of done
-Clears `00b-the-bar.md` §6: `audit:mcp` / `smoke:mcp` / `test:mcp` all pass **and are enforced
-in CI**; every MCP server has a README documenting every tool with example calls; every
-`server*.json` manifest is valid. Inherits the **global definition of done** in
-`00-README-orchestration.md` (no mocks, `$THREE`-only, explicit-path staging, existing tests
-pass, self-reviewed diff). In your report, paste the final pass output of the three gate scripts
-and name the CI job you added.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin — `three-token-mcp` and
-every other server reference only `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`);
-runtime-supplied mints in pump.fun launch tooling are the sole mechanical exception (CLAUDE.md).
-Stage explicit paths only (never `git add -A`). Own the MCP dirs (`mcp-server/`, `mcp-bridge/`,
-`packages/*-mcp/`), the root `server*.json` manifests, and the audit/smoke/test MCP scripts;
-**extend the existing servers and gate scripts, don't rewrite them.** Keep tools real (real RPC,
-real x402, real model proxies via env). Do not actually publish. Don't touch SDK dirs, `docs/`,
-or `examples/` (E1/E3/E4 own those).
-
-## When finished
-Run CLAUDE.md's five self-review checks. Ship one improvement (e.g. a generated tool-index that
-the docs can import, or a manifest-consistency assertion added to `audit-mcp-manifests.mjs`).
-Append a `data/changelog.json` entry (tag: `sdk` or `infra`) — holder-readable, e.g. "Every MCP
-server now passes audit + smoke + test gates in CI, with every tool documented." Run `npm run
-build:pages` to validate it. Then delete this prompt file
-(`prompts/production-campaign/E-ecosystem/E2-mcp-servers-production.md`) and report the gate
-output, the CI job name, and any tool-catalog seam E3 needs.
diff --git a/prompts/production-campaign/E-ecosystem/E3-docs-api-reference.md b/prompts/production-campaign/E-ecosystem/E3-docs-api-reference.md
deleted file mode 100644
index b6b18b1e2..000000000
--- a/prompts/production-campaign/E-ecosystem/E3-docs-api-reference.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# E3 — Docs Site & API Reference
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** E1
-(SDK surfaces) and E2 (MCP tool catalog) — you document what they finalize. You can start on
-layout, search, and the endpoint inventory before they land.
-
-## Why this matters for $1B
-Docs are the product surface that converts a curious developer into an integrated one. The
-ecosystem bar (`00b-the-bar.md` §6) is explicit: an outside dev reaches a working integration in
-**10 minutes from the published docs alone, without reading our source.** Every quickstart that
-runs, every endpoint that's documented, every link that resolves is a developer we keep. Docs are
-also how LLM agents learn us: `llms.txt` / `llms-full.txt` are how Claude/Cursor ingest the
-platform — and **both files are currently empty placeholders** (literally the strings "Placeholder
-for llms.txt" / "Placeholder for llms-full.txt"). That is a hole in the network-effects pillar.
-
-## Current state (read before you write)
-- `docs/` is rich but uneven: `index.html` (has a real `#search-input` / `.sidebar-search` UI —
- verify it actually filters), `api-reference.md`, `quick-start.md`, `api/forge-x402.md`,
- `embedding.md`, `architecture.md`, `authentication.md`, and many topic pages.
-- `docs/llms.txt` and `docs/llms-full.txt` are **0-line placeholders** — must be generated for
- real (curated index + full corpus, per the llms.txt convention).
-- The public endpoints live in `api/` (100+ Vercel functions) and the SDK surfaces are finalized
- by E1; the MCP tool catalog by E2. `docs/API_AUDIT.md` and `docs/ALL.md` exist — read them to
- find the gaps rather than re-auditing from scratch.
-- There is a real status surface to link (the campaign's Track A wires Sentry/Axiom + a status
- page); find the canonical status URL/page and link it, don't invent one.
-
-The gap: not every public endpoint and SDK/MCP surface is in the reference, some quickstarts are
-not verified runnable, `llms.txt`/`llms-full.txt` are empty, and search/status need to actually
-work.
-
-## Your mission
-### 1. Complete the API reference — every public endpoint
-Inventory the public `api/` endpoints (use `docs/API_AUDIT.md` + a grep of `api/` for exported
-handlers; exclude internal `api/_lib`). For each public endpoint document: method, path, auth
-(link `authentication.md`), request params/body, response shape, error codes, and a real
-`curl`/fetch example. Fold into `docs/api-reference.md` (or `docs/api/`) with consistent
-structure. Paid x402 endpoints document the 402 challenge + payment flow (extend the pattern in
-`docs/api/forge-x402.md`).
-
-### 2. Document every SDK and MCP surface (from E1/E2)
-Pull the finalized SDK quickstarts (`@three-ws/avatar`, `/walk`, `/page-agent`, `/tour`,
-`/agent-payments`) and the MCP tool catalog into the docs so they live in one navigable place —
-import path, minimal usage, link to the package README. Keep names/imports **identical** to E1's
-READMEs and E2's `server*.json` (single source of truth — if you find drift, fix the docs to
-match the package, and flag it). Every MCP tool listed with its example call.
-
-### 3. Quickstarts that actually run
-Take `docs/quick-start.md` and every embedded quickstart and **run them**. The first developer
-path must reach a visible result in under 10 minutes with copy-paste blocks — web-component embed,
-SDK install, one API call. No pseudo-code, no dead import paths. Fix anything that doesn't run;
-state which you executed.
-
-### 4. Generate real `llms.txt` and `llms-full.txt`
-Replace both placeholders. `llms.txt` = a curated, link-bearing index of the docs (the llms.txt
-convention: title, summary, sectioned links to the canonical pages). `llms-full.txt` = the full
-text corpus an agent can ingest. **Generate them from the docs tree with a script** (add e.g.
-`scripts/build-llms-txt.mjs` + an `npm run build:llms` and wire it so it stays current — not a
-one-time hand-write). Keep `$THREE` the only coin referenced anywhere in the corpus.
-
-### 5. Working search + a live status link
-Make `docs/index.html` search actually filter the doc set (client-side index over the page
-corpus is fine; debounce input, keyboard-navigable results, empty state when no match — all five
-states per `00b-the-bar.md` §3). Add a visible, working link to the platform **status page**
-(the real one from Track A) in the docs chrome. No dead links anywhere — verify every internal
-link resolves.
-
-### 6. Polish the docs to the screenshot bar
-The docs site itself is a primary surface: design tokens only (`public/tokens.css` /
-`DESIGN-TOKENS.md`), responsive 320/768/1440, dark/light parity, code blocks with copy buttons,
-loading/empty/error states for search, `prefers-reduced-motion` honored. It should be
-screenshot-worthy — Stripe/Vercel docs are the bar.
-
-## Definition of done
-Clears `00b-the-bar.md` §6 (10-min integration from docs alone) and §3 (every state designed):
-every public endpoint and SDK/MCP surface documented; quickstarts verified runnable; `llms.txt` +
-`llms-full.txt` generated and non-empty; search works; a live status link resolves; zero dead
-links. Inherits the **global definition of done** in `00-README-orchestration.md` (no mocks,
-`$THREE`-only, tokens only, every state, explicit-path staging, self-reviewed diff). Verify by
-running the quickstarts and exercising search in a browser; report which quickstarts you ran.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — and that explicitly includes the `llms.txt`
-placeholders, which must become real generated content. `$THREE` is the only coin in every doc
-and the llms corpus. Stage explicit paths only (never `git add -A`). Own `docs/` (and a new
-`scripts/build-llms-txt.mjs`); **extend the existing docs site, don't rebuild it** — reuse the
-current `index.html` shell, nav, and tokens. Keep examples real (real endpoints, real keys via
-env). Don't touch SDK/MCP source or `examples/` (E1/E2/E4 own those) — document them, link to
-their READMEs.
-
-## When finished
-Run CLAUDE.md's five self-review checks. Ship one improvement (e.g. a "copy as curl" button, an
-auto-generated endpoint index, or per-page "edit on GitHub" links). Append a `data/changelog.json`
-entry (tag: `docs`) — holder-readable, e.g. "New docs: every API endpoint and SDK documented,
-runnable quickstarts, and machine-readable llms.txt for agents." Run `npm run build:pages` to
-validate it. Then delete this prompt file
-(`prompts/production-campaign/E-ecosystem/E3-docs-api-reference.md`) and report what you shipped,
-which quickstarts you ran, and any doc gap E4's examples should fill.
diff --git a/prompts/production-campaign/E-ecosystem/E4-examples-templates-starters.md b/prompts/production-campaign/E-ecosystem/E4-examples-templates-starters.md
deleted file mode 100644
index 1c8b297b1..000000000
--- a/prompts/production-campaign/E-ecosystem/E4-examples-templates-starters.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# E4 — Examples, Templates & Starters
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`,
-`STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** E1
-(the SDK quickstarts your examples import). Parallel-safe with E3.
-
-## Why this matters for $1B
-The shortest path from "interested" to "integrated" is a working example a developer can copy.
-The ecosystem bar (`00b-the-bar.md` §6) is a 10-minute integration — examples and starters are
-how a dev clears it without thinking. A `npx create`-style starter, an embeddable web component,
-a `two-agents` demo that just runs: each is a template thousands of devs fork, every fork a node
-in the network-effects graph (`00-README-orchestration.md` §4). Today the examples exist but
-there are **no framework starters at all** (no React/Next/vanilla scaffold under `examples/`),
-which is the most-requested on-ramp.
-
-## Current state (read before you write)
-`examples/` already holds: `embed-test.html`, `web-component.html`, `two-agents.html`,
-`minimal.html`, `agent-presence.html`, `bare-avatar.html`, `one-line-demo.html`,
-`three-concierge.html`, `widget-rpc.html`, `pump-fun-agent/`, `three-concierge/`, `skills/`,
-`agenc-task-roundtrip/`, `metamask-agent-wallet/`, and `coach-leo/` (`SKILL.md`,
-`instructions.md`, `manifest.json`). `multiplayer/` is a deployable demo (Dockerfile, fly.toml,
-Cloud Run script). The web components ship from the SDKs: `<agent-3d>` (`avatar-sdk/src`),
-`<page-agent>` (`page-agent-sdk/src/element.js` / `page-agent.js`), `<agent-presence>`
-(referenced by `examples/agent-presence.html` — verify the registration source).
-
-The gaps: not every example is verified runnable against current SDK builds; there is **no
-framework starter** (React, Next, or vanilla scaffold) a dev can clone-and-run; the web-component
-embed pages aren't a single coherent "embed in 3 lines" story; and `examples/README.md` may not
-index everything with a one-line "what/how to run" each.
-
-## Your mission
-### 1. Make every existing example actually run
-Open each file in `examples/` and run it against the **current** SDK builds and real three.ws
-endpoints. Fix dead import paths, stale API shapes, and anything that throws in console. Each of
-`embed-test`, `web-component`, `two-agents`, `minimal`, `agent-presence`, `bare-avatar`,
-`one-line-demo` must load with zero console errors and produce a visible result. Verify
-`coach-leo/` (`manifest.json` valid, instructions current) and that `multiplayer/` still
-builds/starts per its README.
-
-### 2. The three web-component embeds, perfected
-Make `<agent-3d>`, `<page-agent>`, and `<agent-presence>` each have a canonical, copy-paste
-3-line embed page that a dev can paste into any HTML and have working. Keep the registration
-source in the SDKs (E1 owns that) — here you build the *embed examples* that import the published
-script. Show real attributes/config, real avatar/agent IDs, all five states visible where
-relevant (loading skeleton, empty, error, populated). These are the screenshots that get shared.
-
-### 3. Framework starters (none exist — build them)
-Create runnable starter templates under `examples/` (e.g. `examples/starters/react`,
-`.../next`, `.../vanilla`). Each: a real, installable scaffold (`package.json`, README with
-`npm i && npm run dev`) that renders a three.ws agent via the appropriate SDK subpath
-(`@three-ws/avatar` React export for React/Next, the web component for vanilla). They must
-actually start and render against real endpoints — these are the "10-minute integration" proof.
-Wire env for any keys; never inline secrets.
-
-### 4. A coherent example index
-Rewrite `examples/README.md` as the front door: a table of every example + starter with one line
-("what it shows" + "how to run"), grouped (web components / starters / full demos / agent skills).
-Link each to the SDK it uses (E1's READMEs) and to the docs (E3). Every entry's run command
-verified. Empty/edge note where a key is required.
-
-### 5. Two-agents + multiplayer as the "wow" demos
-Polish `two-agents.html` and `multiplayer/` into the flagship "this is what you can build" demos —
-two agents conversing, presence in a shared space — against real backends. Make them
-screenshot-worthy and linkable (an OG-able landing). These are what a skeptic sees to believe the
-platform is real.
-
-### 6. Wire examples into the platform
-Examples shouldn't be an island: ensure the docs (E3) and any "Examples" nav surface link here,
-and that each example links back to its SDK README and a "deploy this" path where one exists
-(`multiplayer/` has deploy scripts). A dev should be able to go example → SDK → docs → deployed
-without a dead end.
-
-## Definition of done
-Clears `00b-the-bar.md` §6 (copy-paste to working integration in 10 min) and §3 (every state
-designed, screenshot test): every example runs with zero console errors; the three web components
-have canonical 3-line embeds; React/Next/vanilla starters exist and start; `examples/README.md`
-indexes everything with verified run commands. Inherits the **global definition of done** in
-`00-README-orchestration.md` (no mocks, `$THREE`-only, tokens where UI, every state,
-explicit-path staging, self-reviewed diff). Verify by running each example/starter; report which
-you ran and any that need a key you couldn't source.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — examples hit **real** three.ws endpoints with real
-keys via env, never sample arrays or fake responses. `$THREE` is the only coin referenced in any
-example, demo, or starter (runtime-supplied mints in the pump.fun example are the sole mechanical
-exception per CLAUDE.md). Stage explicit paths only (never `git add -A`). Own `examples/`,
-`examples/coach-leo/`, `multiplayer/`, and new `examples/starters/*`; **import the published SDKs,
-don't fork or vendor their source** — if an example needs an SDK change, note it for E1, don't
-edit SDK `src/` here. Don't touch SDK/MCP source or `docs/` (E1/E2/E3 own those).
-
-## When finished
-Run CLAUDE.md's five self-review checks. Ship one improvement (e.g. a one-click CodeSandbox/StackBlitz
-link per starter, or an OG card for the two-agents demo). Append a `data/changelog.json` entry
-(tag: `sdk` or `docs`) — holder-readable, e.g. "New starter templates (React, Next, vanilla) and
-runnable examples — embed a live three.ws agent in three lines." Run `npm run build:pages` to
-validate it. Then delete this prompt file
-(`prompts/production-campaign/E-ecosystem/E4-examples-templates-starters.md`) and report what you
-shipped, which examples/starters you ran, and any SDK seam E1 still needs to close.
diff --git a/prompts/production-campaign/F-infra/00-README.md b/prompts/production-campaign/F-infra/00-README.md
deleted file mode 100644
index 03119d5c8..000000000
--- a/prompts/production-campaign/F-infra/00-README.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Track F — Scale & Infrastructure
-
-**Goal: it holds up under success.** Activation, monetization, and ecosystem work (Tracks B–E) only matter if the platform doesn't fold the day the traffic arrives. This track hardens the three layers that fail silently and catastrophically at scale: the **data layer** (Neon Postgres, Upstash Redis, R2/CDN), the **workers** (oracle, agent-sniper, the Forge GPU generation chain + QStash), and the **deploy path** (CI/CD gates, the `api/*.js` bundle footgun, preview deploys, rollback). When this track is done, a viral spike is a non-event: indexed reads stay under budget, the Redis quota stays bounded, no worker dies on a bad signal or loses a job, the "free engines all busy" state queues instead of dead-ends, and no known production footgun can ship twice.
-
-This is **hardening, not greenfield.** The data clients, migration runner, limiter set, QStash adapter, model workers, and most CI scripts already exist (`api/_lib/db.js`, `apply-migrations.mjs`, `rate-limit.js`, `qstash.js`, `workers/*`, `scripts/audit-*`). These prompts make them atomic, bounded, observable, and gated — they do not rewrite them.
-
-## Prompts
-
-| # | File | Mission | Run order |
-|---|------|---------|-----------|
-| **F1** | `F1-data-layer.md` | Atomic + reversible Neon migrations (`db:migrate` + `--verify`), hot-table indexes & a written query-perf budget, serverless connection-pooling correctness, Redis caching/rate-limit hardening (singleton, critical-bucket fail-closed), R2/CDN + CORS as code (`set-r2-cors.mjs`, `api/cdn-object.js`). | **First** — F2 & F3 build on its DB/Redis/QStash hardening and want its `--verify` + guard in CI. |
-| **F2** | `F2-workers-reliability.md` | Crash-safe oracle & agent-sniper (drain, heartbeat, idempotent money paths), QStash retries/backoff/**dead-letter**, model-* + post-process worker health & concurrency budgets, and turning Forge's "free engines all busy" into a durable **queue + ETA + notify-me**. | After F1 (shares infra). Can overlap. |
-| **F3** | `F3-cicd-deploy-safety.md` | Promote unenforced audits (`test:gate`, `audit:pages/handlers/mcp/deploy`, `check:dist`, lighthouse) into real CI merge gates, lock the `api/*.js` bundle-overwrite trap, preview deploys + `audit:deploy` per PR, and a one-command rollback runbook for web + workers + data. | Last — gates the work F1 & F2 land; wants their checks wired in. |
-
-Run **F1 → F2 → F3**; F2 and F3 can begin once F1's shared-infra changes are understood. Each prompt deletes itself when complete; when only this `00-README.md` remains, Track F is done.
-
-## File-ownership map
-
-Concurrent agents share this worktree — **stage explicit paths only, never `git add -A`.** Each prompt owns a lane:
-
-- **F1 — data layer:** `scripts/apply-migrations.mjs`, new forward migrations in `api/_lib/migrations/`, `api/_lib/{db,redis,cache,rate-limit,r2}.js`, `api/cdn-object.js`, `scripts/set-r2-cors.mjs`, `cors.json`, `scripts/migrate-redis.mjs`, query-budget + pooling docs in `docs/ops/`.
-- **F2 — workers & Forge pipeline:** `workers/*` (oracle, agent-sniper, model-*, remesh/texture/segment/rembg/stylize/unirig, avatar-pipeline-controller), `workers/deploy/`, `scripts/deploy-sniper.mjs`, `api/_lib/qstash.js` + QStash receiver endpoints, `api/forge.js` + `api/_lib/forge-tiers.js` backpressure, `src/forge.js` queue UI.
-- **F3 — CI/CD & deploy safety:** `.github/workflows/ci.yml`, `scripts/{audit-*,check-*,test-gate,build-vercel,check-api-not-bundled}.mjs`, `vercel.json` deploy config, `.lighthouserc.json` wiring, `docs/deployment.md`, `docs/ops/` runbooks.
-
-Shared, append-only files (`data/changelog.json`, `data/pages.json`) are never reformatted — only appended. The two repo traps apply to every prompt here: `npx vercel build` overwrites `api/*.js` with esbuild bundles (check `head -1` for `__defProp`/`createRequire` before committing an `api/` diff; recover with `git restore -- api/ public/`), and **never** `git pull`/`fetch`/`merge` from the `threeD` mirror. `$THREE` is the only coin.
diff --git a/prompts/production-campaign/F-infra/F1-data-layer.md b/prompts/production-campaign/F-infra/F1-data-layer.md
deleted file mode 100644
index 3d7679164..000000000
--- a/prompts/production-campaign/F-infra/F1-data-layer.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# F1 — Production Data Layer (Postgres · Redis · R2/CDN)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none.
-
-## Why this matters for $1B
-The data layer is where trust lives. Neon holds every payment intent, mint, and custodial balance; Upstash Redis is the only thing standing between a viral spike and an unbounded GPU/LLM bill (the June 2026 500k/mo Upstash blowout and the cost-limiter fail-closed posture both already live in this repo); R2 + the first-party CDN serve every GLB and thumbnail. At $1B scale a single missing index turns a 30ms read into a 3s table scan, an unbounded Redis fan-out drains the quota and 503s the whole site, and a botched migration with no rollback path corrupts the ledger. This task makes the data layer hold under success — fast, bounded, and recoverable.
-
-## Current state (read before you write)
-- **Migrations:** `scripts/apply-migrations.mjs` (`npm run db:migrate` → `--apply`) is already safe-by-default: dry-run unless `--apply`, tracks `schema_migrations` (filename + sha256 + applied_at), and **refuses on hash drift**. 190+ `.sql` files live in `api/_lib/migrations/`. It runs each file via the websocket `Pool` (multi-statement), records the hash, and is idempotent. Gap: no per-migration transaction wrapping, no documented rollback companion, no index/perf review of recent migrations, no CI guard that pending migrations parse.
-- **Postgres client:** `api/_lib/db.js` — lazy `neon()` HTTP client with a composable-fragment Proxy + `sqlValues()` bulk-insert helper and NUL stripping. HTTP driver, no long-lived pool on the hot path.
-- **Redis:** `api/_lib/redis.js` — single shared `getRedis()` singleton (returns `null` when unconfigured); `api/_lib/cache.js`; `api/_lib/rate-limit.js` — a large, resilient limiter set (critical buckets fail **closed** in prod, cheap read buckets are `local:` per-instance to spare quota). `scripts/migrate-redis.mjs` exists. `docs/ops/redis.md` documents the quota story.
-- **R2/CDN:** `api/cdn-object.js` (`/cdn/<key>` → S3 stream, `s-maxage` CDN cache, key validation), `scripts/set-r2-cors.mjs` (idempotent `PutBucketCors`, accepts `S3_*` or `R2_*` env, wildcard preview origins), `cors.json`, `api/_lib/r2.js`.
-
-## Your mission
-### 1. Make migrations transactional + reversible without rewriting the runner
-Wrap each migration apply in `scripts/apply-migrations.mjs` in a single Postgres transaction (`BEGIN`/`COMMIT`, `ROLLBACK` on error) so a multi-statement file that fails halfway leaves the schema clean instead of half-applied — only record the `schema_migrations` row inside the committed transaction. Add a `--verify` mode that parses + EXPLAINs pending migrations against the live DB **in a rolled-back transaction** (no writes) so CI and operators can confirm a migration is sound before `--apply`. Document the rollback convention: every destructive migration (`drop`, `alter … drop column`, type narrowing) ships with a paired `*.down.sql` or a documented roll-forward, and the runner surfaces which pending files are destructive. Do not break the existing drift-refusal or dry-run-default behavior.
-
-### 2. Index + query-budget audit of the hot tables
-Identify the highest-traffic read paths (payments/`payment_intents`, `pump_trades`, `usage_events`, `agents`/`avatars` lists, `three_holder_snapshot`, oracle/sniper tables). For each, confirm the columns in every `WHERE`/`ORDER BY`/`JOIN` are indexed; add the missing indexes as a **new** forward migration in `api/_lib/migrations/` (use `CREATE INDEX CONCURRENTLY` where the table is large and live — note that `CONCURRENTLY` cannot run inside a transaction, so gate it so step 1's wrapper skips wrapping those files). Establish a written **query performance budget** in `docs/ops/` (e.g. p95 < 50ms for indexed reads, no unbounded `SELECT *` on growth tables, every list endpoint paginated) and check current offenders against it.
-
-### 3. Connection pooling correctness for serverless
-Audit how `api/_lib/db.js` is used under Vercel fan-out: the Neon HTTP driver is right for short serverless calls, but any long-lived/batch path (cron, migrations, workers) must use the websocket `Pool` and **close it**. Confirm no endpoint leaks a `Pool`, and that the migration runner's `pool.end()` in `finally` survives the new transaction logic. Document when to reach for HTTP `sql` vs pooled `Pool` in `docs/ops/`.
-
-### 4. Redis caching + rate-limit hardening
-Audit `api/_lib/cache.js` and `getRedis()` callers: every cache read must have a TTL, a documented invalidation trigger, and a graceful path when `getRedis()` returns `null` (degrade, never throw). Confirm no module constructs its own `new Redis()` (the singleton exists precisely to stop the quota blowout — grep for it). Spot-check `api/_lib/rate-limit.js`: every new money/GPU/LLM-spend bucket must be `critical: true` (fail closed in prod without Redis), every high-frequency side-effect-free read should be `local:`. Add a CI/audit guard that flags a `new Redis(` outside the singleton and a critical-looking bucket missing `critical`.
-
-### 5. R2/CDN + CORS as code
-Verify `scripts/set-r2-cors.mjs` is the single source of truth for bucket CORS and that `cors.json` matches the live policy; wire a documented "apply CORS" step into the deploy/ops runbook (`docs/ops/` or `docs/deployment.md`) so a new R2 token or preview origin never silently breaks uploads/previews. Confirm `api/cdn-object.js` sets correct `s-maxage`/`Cache-Control` and `Content-Type` for GLB/USDZ/poster types, validates keys (no traversal), and streams (never buffers) large objects. Add cache-header coverage to its test if absent.
-
-### 6. Verify it for real
-Run `npm run db:migrate` (dry-run) and the new `--verify` against a real DATABASE_URL if available (`.env.local` / `vercel env pull`); if creds are absent locally, say so explicitly and prove the logic with tests. Run `npm test` for the data-layer suites. Exercise a `/cdn/<key>` fetch and confirm CORS headers in the network tab.
-
-## Definition of done
-Inherits the **global definition of done** in `00-README-orchestration.md`. Plus, mapped to `00b-the-bar.md`:
-- **Reliability bar:** migrations are atomic + reversible; a half-applied file is impossible; drift refusal intact. No Redis-absent path throws — cost buckets fail closed, read buckets degrade. R2/CORS is reproducible from code, not dashboard memory.
-- **Performance bar:** every hot read path is index-backed and inside the documented query budget; no unbounded scans on growth tables; the CDN absorbs repeat GLB reads.
-- New logic has tests (migration transaction/verify, cache TTL/degrade, CORS headers); `npm test` green. Every claim verified against a real DB or explicitly flagged as un-runnable locally with the reason.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only where UI is touched (this track is mostly infra). Stage explicit paths only (never `git add -A`). Watch the `api/*.js` bundle-overwrite trap (check `head -1` of any changed `api/` file for `__defProp`/`createRequire` before committing). Never pull/fetch/merge from the `threeD` mirror. Own the **data layer** (migrations runner, `api/_lib/db.js`/`redis.js`/`cache.js`/`rate-limit.js`/`r2.js`, `api/cdn-object.js`, R2/CORS scripts, new index migrations, `docs/ops/`) — extend existing infra, do not rewrite it. New migrations are forward-only and append to `api/_lib/migrations/`.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Ship one improvement (e.g. a `db:migrate --verify` CI step, or an EXPLAIN-driven index you found). Append a `data/changelog.json` entry if user-visible (tag: `infra`). Then delete this prompt file (`prompts/production-campaign/F-infra/F1-data-layer.md`) and report what you shipped + any seam for the next agent (F2 workers depend on the same DB/Redis/QStash infra; F3 will want your `--verify` step in CI).
diff --git a/prompts/production-campaign/F-infra/F2-workers-reliability.md b/prompts/production-campaign/F-infra/F2-workers-reliability.md
deleted file mode 100644
index 4002ea1ff..000000000
--- a/prompts/production-campaign/F-infra/F2-workers-reliability.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# F2 — Bulletproof Workers & the Forge Pipeline
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** F1 (shares the same DB/Redis/QStash infra) is helpful but not blocking.
-
-## Why this matters for $1B
-The workers are where the platform meets real money and real GPUs. `workers/oracle` and `workers/agent-sniper` act on live signals from custodial wallets — a crash mid-trade, a missed heartbeat, or a runaway loop is lost or double-spent funds. The `model-*` generation workers (TRELLIS, Hunyuan3D, TripoSG, TripoSR, text2motion) plus the post-processing chain (remesh, texture, segment, rembg, stylize, unirig) are the Forge product — the first-run "wow." Today that wow already degrades to a designed *"free engines all busy"* / *"provider busy, try again"* state (see `api/forge.js`), which is honest but a dead-ish end. A $1B platform turns backpressure into a queue with a real ETA and a notify-me, never a spinning void or a lost job. This task makes every worker crash-safe, observable, concurrency-bounded, and retry/dead-letter-backed.
-
-## Current state (read before you write)
-- **QStash adapter:** `api/_lib/qstash.js` — `qstashEnabled()`, `publishJob({ url, body, delaySeconds, retries=3, deduplicationId })`, `verifyQstashSignature()` (current + next signing key rotation). Used for work exceeding Vercel's exec cap. Gap: no dead-letter capture, no per-job-type retry/backoff policy, thin caller coverage.
-- **Long-lived workers (NOT Vercel):** `workers/oracle/` (index.js + score/agent/settle self-scheduling loops, SIGINT/SIGTERM drain, `unhandledRejection` logged; `ORACLE_MODE=simulate|live`, `ORACLE_GLOBAL_KILL`) and `workers/agent-sniper/` (index.js, `heartbeat.js`, `error-tracker.js`, `config.js`, simulate-by-default). Deployed to Cloud Run via `scripts/deploy-sniper.mjs` (minScale=maxScale=1, verifies a fresh heartbeat post-deploy) and `workers/deploy/`.
-- **GPU model workers (Cloud Run, Python):** `workers/model-trellis|model-hunyuan3d|model-triposg|model-triposr|model-text2motion/` and `workers/remesh|texture|segment|rembg|stylize|unirig/`. Each is a FastAPI-ish service: `POST /infer → 202 {task_id, status:"queued"}`, `GET /tasks/:id`, `GET /health → {ok, model, gpu_available}`, honors `MAX_CONCURRENT` (default 1), bearer `API_KEY`, `worker_security.py`. Orchestrated by `workers/avatar-pipeline-controller/`.
-- **Forge backpressure today:** `api/forge.js` already returns designed busy states (`provider_busy`, "free 3D Spaces are all busy or warming up", "rigger is busy", paid-limit → "free engines stay open"). Tier gating in `api/_lib/forge-tiers.js`. The gap is no durable queue + ETA + notify-me when *every* free engine is busy — the job evaporates and the user must hand-retry.
-
-## Your mission
-### 1. Crash-safety + observability on oracle and agent-sniper
-Audit the loops in `workers/oracle/` and `workers/agent-sniper/`: every iteration must be wrapped so a single bad signal/trade can't kill the process or wedge the loop; `unhandledRejection`/`uncaughtException` must log to the existing error tracker (sniper has `error-tracker.js`) **and** the platform's Sentry/Axiom path, never just `console`. Confirm graceful SIGTERM drain finishes the in-flight trade (or marks it abandoned safely) before exit. Verify the heartbeat (`heartbeat.js`) is fresh-checked on deploy and surfaced somewhere readable (status page / `/api` health) so a silently-dead worker is detectable. Confirm `*_MODE=simulate` and the global-kill switch genuinely block all real spend.
-
-### 2. Retries, backoff, and a dead-letter path on QStash
-Extend `api/_lib/qstash.js` callers (and the receiver endpoints) into a real reliability layer: per-job-type retry counts + exponential backoff (QStash supports this via publish options), idempotent handlers keyed on `deduplicationId` so a re-delivered job never double-acts (double-mint, double-charge), and a **dead-letter capture** — when a job exhausts retries, persist it (Neon table or Redis) with its payload + error so it's inspectable and replayable instead of silently dropped. Every receiver verifies the signature (`verifyQstashSignature`) before doing work. Add a tiny operator path to list/replay dead-lettered jobs.
-
-### 3. Health + concurrency budgets across the model-* and post-process workers
-Confirm every GPU worker honors `MAX_CONCURRENT` and rejects (or queues) over-budget `/infer` with a clear status the controller can read — never an OOM/crash. Standardize `GET /health` to report `{ok, model, gpu_available, in_flight, queue_depth}` so the controller and the Forge backpressure logic (mission 4) can route around a saturated engine. Audit `workers/avatar-pipeline-controller/` for: per-stage timeouts, retry on transient 5xx with backoff, and a hard cap so a stuck stage can't pin a job forever. Bearer-auth (`worker_security.py`) and signature checks must be enforced on every worker, not just some.
-
-### 4. Turn "free engines all busy" into a real queue with ETA + notify-me
-This is the product win. When `api/forge.js` hits the all-busy state across every free engine, instead of dead-ending: enqueue the job durably (QStash + a Neon `forge_*` jobs row — reuse `forge_seed_jobs`/`forge_creations`-style tables if they fit), return a real position/ETA to the UI, and offer **notify-me** (resolve via the existing notifications path when the GLB is ready). The existing designed busy copy stays as the immediate state, but it now backs onto a queue that actually completes the job and surfaces it — no lost work, no infinite spinner. Wire the populated/queued/failed states honestly (real status polling, no `setTimeout` fake progress). Holders' raised free-lane ceilings (already in `rate-limit.js` via tiered buckets) must reflect in queue priority/ETA consistently.
-
-### 5. Verify it for real
-Run the worker(s) locally in `simulate` mode where possible and exercise a job end-to-end; for GPU workers (Cloud Run) verify the `/health` contract and concurrency rejection with a local stub of the contract only if no GPU is reachable — say so explicitly. Drive the Forge all-busy path in a browser against `npm run dev`, confirm the queue/ETA/notify-me states render with real polling and zero console errors, and confirm a queued job actually completes and notifies. Run `npm test` (worker + forge suites).
-
-## Definition of done
-Inherits the **global definition of done** in `00-README-orchestration.md`. Plus, mapped to `00b-the-bar.md`:
-- **Reliability bar:** no unhandled rejection/exception kills a worker or reaches a user; every money-moving worker action is idempotent and retry-safe; a failed job dead-letters (inspectable + replayable), never silently drops; `simulate`/global-kill provably block real spend.
-- **Graceful degradation bar:** the Forge "free engines all busy" state offers a real path forward (queue + ETA + notify-me) that completes the job — exactly the failure the bar names by example. Every worker reports health + concurrency so the system routes around saturation.
-- All five Forge states (loading skeleton, empty, error w/ recovery, populated, queued/overflow) designed and reachable; real status polling, no fake progress. `npm test` green; new logic (idempotency, dead-letter, queue) covered.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only where the Forge UI is touched (`public/tokens.css`/`DESIGN-TOKENS.md`). Stage explicit paths only (never `git add -A`). Watch the `api/*.js` bundle-overwrite trap (check `head -1` of any changed `api/` file for `__defProp`/`createRequire`; `api/forge.js` is in scope). Never pull/fetch/merge from the `threeD` mirror. Own the **workers + Forge pipeline reliability** (`workers/*`, `workers/avatar-pipeline-controller/`, `api/_lib/qstash.js`, QStash receiver endpoints, `api/forge.js` + `api/_lib/forge-tiers.js` backpressure, `src/forge.js` queue UI, deploy scripts under `scripts/deploy-sniper.mjs`/`workers/deploy/`) — extend existing infra, do not rewrite it.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Ship one improvement (e.g. a worker health tile on the status page, or replayable dead-letter listing). Append a `data/changelog.json` entry — the Forge queue/notify-me is user-visible (tag: `infra`, or `improvement` for the queue UX). Then delete this prompt file (`prompts/production-campaign/F-infra/F2-workers-reliability.md`) and report what you shipped + any seam for the next agent (F3 will want worker health + the dead-letter check wired into CI/deploy gates; the status page is the natural home for worker health).
diff --git a/prompts/production-campaign/F-infra/F3-cicd-deploy-safety.md b/prompts/production-campaign/F-infra/F3-cicd-deploy-safety.md
deleted file mode 100644
index 3fad60ebe..000000000
--- a/prompts/production-campaign/F-infra/F3-cicd-deploy-safety.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# F3 — Harden CI/CD & Deploy Safety
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** F1 (its `db:migrate --verify` and Redis-singleton guard want a CI home) and F2 (worker health / dead-letter checks want a gate) — coordinate, but F3 can land independently.
-
-## Why this matters for $1B
-CI/CD is the platform's immune system. Real money rides on this code, so every merge to `main` auto-deploys to Vercel — which means a broken build, a leaked secret, a regressed Lighthouse score, or the documented `npx vercel build` footgun (it overwrites `api/*.js` source with esbuild bundles) ships straight to production. This repo has already taken production down: 465 consecutive 500s for 90 minutes on 2026-06-11 from a committed symlink + an unresolvable peer-dep import — exactly what `scripts/audit-deploy-artifacts.mjs` now catches. A $1B platform never has a class of failure it can ship twice: every known footgun becomes a CI gate, every deploy is preview-verified, and there is always a one-command rollback. This task turns the existing checks-that-exist-but-aren't-enforced into real merge gates and a safe deploy path.
-
-## Current state (read before you write)
-- **CI:** `.github/workflows/ci.yml` — four jobs on PR + push to `main`: `lint` (eslint, errors only), `test` (`npx vitest run`), `guards` (`scripts/check-api-not-bundled.mjs`, `npm run check:images`, `npm run build:pages`), `typecheck` (advisory, `continue-on-error: true`). Real but thin — many production guards exist as npm scripts and are **not** wired into CI.
-- **Available-but-unenforced scripts** (in `package.json`): `test:gate` (`scripts/test-gate.mjs`), `audit:pages` (`scripts/audit-page-index.mjs`), `audit:handlers` (`scripts/audit-empty-handlers.mjs`), `audit:mcp` (`scripts/audit-mcp-manifests.mjs`), `audit:deploy` (`scripts/audit-deploy-artifacts.mjs` — symlink + peer-dep + phantom-import preflight), `check:dist` (`scripts/check-dist.mjs` — verifies `dist/agent-3d/*` SDK build + version match), `smoke:onchain`, `smoke:mcp`, `test:mcp`. `.lighthouserc.json` exists (LCP/CLS/INP budgets per `00b-the-bar.md`) but is not run in CI.
-- **The bundle trap:** `scripts/check-api-not-bundled.mjs` already runs in CI and fails if `npx vercel build` clobbered an `api/*.js` source file with an esbuild bundle (`__defProp`/`createRequire` on line 1). Keep and strengthen it; the build orchestrator is `scripts/build-vercel.mjs`.
-- **Deploy:** Vercel via `vercel.json`; `scripts/build-vercel.mjs` (hash-cached, parallel sub-builds). Workers deploy separately (`scripts/deploy-sniper.mjs`, `workers/deploy/`). `docs/deployment.md` + `docs/ops/` document ops.
-
-## Your mission
-### 1. Promote the audits into real merge gates
-Expand `.github/workflows/ci.yml` so the existing-but-unenforced scripts become required checks. Add jobs (or steps in `guards`) for `test:gate`, `audit:pages`, `audit:handlers`, `audit:mcp`, `audit:deploy`, and `check:dist`. Run them in parallel where independent; cache `npm ci` (already `cache: npm`). Each must fail the build on a real regression — no `continue-on-error` on a money/correctness check. Keep `typecheck` advisory until its backlog is burned down (note the path to flip it). Where F1 added a migration `--verify` and a Redis-singleton/critical-bucket guard, wire those in too.
-
-### 2. Make the bundle-overwrite trap un-shippable
-`scripts/check-api-not-bundled.mjs` guards committed `api/*.js`. Strengthen the guard end-to-end: confirm it scans **every** `api/**/*.js` (including nested dirs like `api/_lib`, `api/coin`, `api/club`), catches `__defProp`/`createRequire`/`esbuild` banner signatures, and runs both in CI and (ideally) as a pre-commit-style local check documented in `docs/deployment.md`. Confirm `scripts/build-vercel.mjs` / `vercel.json` never write esbuild output back over source in the committed tree. Document the recovery (`git restore -- api/ public/`) prominently in the deploy runbook so an agent who trips it self-recovers in one command.
-
-### 3. Lighthouse / Core Web Vitals gate
-Wire `.lighthouserc.json` into CI as a real (initially advisory-then-enforced) job against the primary surfaces, holding the `00b-the-bar.md` budgets (LCP < 2.5s, CLS < 0.1, INP < 200ms). Run it against a preview deploy URL (mission 4) or a local `npm run dev`/`vite preview` build. Start advisory if current scores aren't green, but record the baseline and the gap so the next surfaces agent (Track C) can close it; flip to enforced for any surface already in budget.
-
-### 4. Preview deploys + `audit:deploy` artifacts on every PR
-Ensure every PR gets a Vercel **preview deploy** (Vercel's GitHub integration or a workflow that runs `vercel build`/`deploy --prebuilt`) so changes are verified on a real URL before merge, never first-seen in production. Run `audit:deploy` (`scripts/audit-deploy-artifacts.mjs`) as a hard gate — it catches the exact 2026-06-11 class (committed symlinks, unresolvable peer-deps, phantom imports) in seconds. Surface the preview URL + the artifact audit result on the PR. Confirm the smoke checks (`smoke:onchain`, `smoke:mcp`) run against the preview or a safe target, not production money paths.
-
-### 5. A documented, one-command rollback path
-There must be a safe, fast rollback for both halves of the system: Vercel (instant promote of the previous good deployment — document the `vercel rollback`/promote-previous flow and how to find the last-green SHA) and the Cloud Run workers (`scripts/deploy-sniper.mjs --skip-build` redeploys the current image; document redeploying a prior revision). Write this into `docs/deployment.md` / `docs/ops/` as a runbook: how to detect a bad deploy (the heartbeat/health from F2, the 500-rate), how to roll back each surface, and how to confirm recovery. The DB rollback convention from F1 (forward-only + paired down-migrations) is referenced here as the data half of rollback.
-
-### 6. Verify it for real
-Run the full CI suite locally (`npm run lint`, `npx vitest run`, `npm run test:gate`, `npm run audit:pages`, `npm run audit:handlers`, `npm run audit:mcp`, `npm run audit:deploy`, `npm run check:dist`, `npm run build:pages`) and confirm each passes or surface the real failure. Deliberately introduce a fake bundled `api/*.js` and a committed symlink in a scratch branch (then revert) to prove the guards fire. Confirm the workflow YAML is valid and the new jobs are wired as required checks. Never run `npx vercel build` against the working tree without checking `head -1` of changed `api/` files afterward.
-
-## Definition of done
-Inherits the **global definition of done** in `00-README-orchestration.md`. Plus, mapped to `00b-the-bar.md`:
-- **Reliability bar:** every documented production footgun (bundle overwrite, committed symlink, peer-dep/phantom import, empty handler, broken page index, MCP manifest drift, missing SDK dist) is a CI gate that fails the build — the 2026-06-11 class cannot ship again. Every merge is preview-verified; there is a one-command rollback for web + workers + data, written down.
-- **Performance bar:** Lighthouse/CWV budgets are run in CI with a recorded baseline and an enforced floor on in-budget surfaces.
-- CI is green on `main`; the new gates demonstrably fire on the failure they guard (proven, not assumed). `npm test` and all wired audits pass.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. Design tokens only where UI is touched (this track is infra/CI). Stage explicit paths only (never `git add -A`). **Critically watch the `api/*.js` bundle-overwrite trap** — this prompt touches the build; check `head -1` of any changed `api/` file for `__defProp`/`createRequire` and `git restore -- api/ public/` if tripped. Never pull/fetch/merge from the `threeD` mirror. Own **CI/CD + deploy safety** (`.github/workflows/ci.yml`, the `scripts/audit-*`/`check-*`/`test-gate`/`build-vercel` scripts, `vercel.json` deploy config, `.lighthouserc.json` wiring, `docs/deployment.md`, `docs/ops/` runbooks) — extend existing infra, do not rewrite it. Do not commit or push unless the user asks.
-
-## When finished
-Self-review (CLAUDE.md's five checks). Ship one improvement (e.g. the rollback runbook, or a PR comment that posts the preview URL + audit results). Append a `data/changelog.json` entry only if user-visible (CI hardening is usually internal — skip silently if so; the rollback runbook in `docs/` may warrant a `docs`/`infra` entry). Then delete this prompt file (`prompts/production-campaign/F-infra/F3-cicd-deploy-safety.md`) and report what you shipped + which gates now enforce + any seam (e.g. Lighthouse left advisory for Track C, a worker-health check F2 should feed in).
diff --git a/prompts/production-campaign/G-trust/00-README.md b/prompts/production-campaign/G-trust/00-README.md
deleted file mode 100644
index 171e3b87d..000000000
--- a/prompts/production-campaign/G-trust/00-README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Track G — Trust, Compliance, Access & Brand
-
-**Goal:** make three.ws **safe, legal, accessible, and on-brand everywhere.** A platform
-worth $1B is trusted with money, lawful to operate globally, usable by everyone, and visually
-one product on every screen. This track hardens the four pillars that a regulator, an
-acquirer, an app-store reviewer, or a first-time international user checks *before* they
-trust us with anything: real legal pages + content moderation, WCAG 2.2 AA accessibility,
-production internationalization, and an enforced design system. These are not chores — they
-are the trust floor under everything Tracks A–F build.
-
-Read `prompts/production-campaign/00-README-orchestration.md` (the $1B thesis + global
-definition of done) and `00b-the-bar.md` (the measurable bars) before starting any prompt
-here. Each prompt is self-contained: paste it into a fresh agent chat, ship it end-to-end,
-verify for real, append a changelog entry if user-visible, then delete the prompt file. When
-this directory contains only this `00-README.md`, Track G is done.
-
----
-
-## The four prompts
-
-| # | File | Mission | Key surfaces it owns |
-|---|------|---------|----------------------|
-| **G1** | [`G1-legal-moderation-abuse.md`](G1-legal-moderation-abuse.md) | Ship the platform Privacy Policy + Terms (footer already links them, they 404 today); extend moderation beyond anon-chat to Forge prompts, generated avatars/images, and agent profiles; build report + takedown + an admin queue; close rate-limit gaps and instrument the audit log. | `pages/legal/*`, `api/report.js`, `api/admin/reports.js`, `api/_lib/moderation.js`, `api/_lib/audit.js`, `api/_lib/rate-limit.js` |
-| **G2** | [`G2-accessibility-audit.md`](G2-accessibility-audit.md) | A real WCAG 2.2 AA audit: semantic HTML, landmarks, keyboard nav, focus management, ARIA on 3D/canvas controls, screen-reader labels, `prefers-reduced-motion`, contrast ≥ AA. Wire an axe check into CI. | `public/nav.js`/`public/nav.css`, `src/**` canvas surfaces, `.github/workflows/ci.yml` |
-| **G3** | [`G3-i18n-completeness.md`](G3-i18n-completeness.md) | Finish i18n: annotate + extract all surfaces, build all 11 configured locales via the real Groq pipeline, mount the locale switcher everywhere, make RTL correct, centralize `Intl` number/date/currency formatting, add an i18n lint gate. | `public/locales/*`, `src/i18n.js`, `src/format-intl.js`, `scripts/i18n-*.mjs`, `.i18nrc.json`, `.github/workflows/ci.yml` |
-| **G4** | [`G4-brand-design-system.md`](G4-brand-design-system.md) | Enforce the design system: eliminate hardcoded colors/spacing/fonts in favor of `public/tokens.css`, kill reintroduced legacy palettes (`--mk-*` … `--t-*`), unify buttons/cards/badges/skeletons, add a lint/audit that fails on token violations. | `public/tokens.css`, `public/style.css`, `scripts/verify-b09-tokens.mjs`, stylelint config, `.github/workflows/ci.yml` |
-
----
-
-## Run order
-
-All four can run in parallel — they own distinct lanes. The natural priority:
-
-1. **G1 first** — the legal pages are a live broken promise (the footer links 404) and
- moderation is the highest-trust gap. Foundational.
-2. **G2 and G3 in parallel** — independent surfaces (a11y vs. localization), no shared files
- beyond the shared nav and the CI workflow.
-3. **G4 last (or re-run at the end)** — it is the **enforcement backstop**. G2's contrast
- fixes and any other track's CSS must land in tokens; running G4's lint after the others
- catches regressions they introduced. If run early, re-run `lint:tokens` once the track
- finishes.
-
-**Shared-file coordination:** G2, G3, and G4 each add a job to
-`.github/workflows/ci.yml` (`a11y`, the i18n lint, `tokens`) — append, never reformat the
-file. G2 (contrast) and G4 (tokens) must agree: **every contrast fix is a token choice, not a
-new hardcoded color.** G1, G3, and the switcher styling all consume `public/tokens.css` — none
-of them introduce raw values.
-
----
-
-## File-ownership map
-
-| Path | Owner |
-|------|-------|
-| `pages/legal/privacy.html`, `pages/legal/tos.html` | G1 |
-| `api/report.js`, `api/admin/reports.js`, new `content_reports` migration | G1 |
-| `api/_lib/moderation.js` (extend), `api/_lib/audit.js` (instrument), `api/_lib/rate-limit.js` (apply) | G1 |
-| `public/nav.js` / `public/nav.css` — landmarks, skip-link, focus order | G2 (a11y) + G3 (mount switcher) — coordinate |
-| `src/**` canvas/3D controls — ARIA, keyboard equivalents, `aria-live` | G2 |
-| `npm run test:a11y` + `a11y` CI job | G2 |
-| `public/locales/*.json`, `public/locales/manifest.json` | G3 |
-| `src/i18n.js`, `src/format-intl.js`, `scripts/i18n-*.mjs`, `.i18nrc.json` | G3 |
-| i18n lint CI job | G3 |
-| `public/tokens.css`, `public/style.css` — tokenization, no legacy palettes | G4 |
-| `scripts/verify-b09-tokens.mjs` (broaden), stylelint config, `npm run lint:tokens`, `tokens` CI job | G4 |
-| `data/changelog.json` | append-only, all four (never reformat) |
-| `.github/workflows/ci.yml` | append-only, G2/G3/G4 (one job each) |
-
-**Done buys us:** a platform that is lawful to run globally, safe for user-generated content,
-usable by keyboard-only and screen-reader users in 11 languages including RTL, and visually
-one product on every surface — the trust and universality a $1B platform is held to.
diff --git a/prompts/production-campaign/G-trust/G1-legal-moderation-abuse.md b/prompts/production-campaign/G-trust/G1-legal-moderation-abuse.md
deleted file mode 100644
index d99bac19b..000000000
--- a/prompts/production-campaign/G-trust/G1-legal-moderation-abuse.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# G1 — Legal pages, content moderation, abuse prevention & takedown
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none (foundational for Track G; coordinate with G4 on token-only styling).
-
-## Why this matters for $1B
-A platform that takes money, hosts user prompts, and publishes AI-generated avatars/images cannot be trusted — or sold, or legally operated in the EU/US — without real terms, a privacy policy, and content moderation that actually blocks harmful material. The footer already promises `/legal/privacy` and `/legal/tos` (see `public/nav-data.js` → `DRAWER_LEGAL`), but those pages 404. Every regulator, acquirer, and app store reviewer checks these first. This is the trust floor: legitimate, defensible, safe.
-
-## Current state (read before you write)
-- **Legal pages are linked but missing.** `public/nav-data.js` lines ~252–254 link `/legal/privacy` and `/legal/tos`. `ls pages/` shows only `extension-privacy.html`, `extension-terms.html`, `irl-privacy.html` — there is **no platform-wide Privacy Policy or Terms of Use**. The footer links dead-end.
-- **Moderation exists but only for anonymous chat.** `api/_lib/moderation.js` is a fail-open NVIDIA NemoGuard content-safety pre-filter wired into `api/chat.js`, `api/chat/proxy.js`, `api/widgets/[id]/[action].js` only. **Forge prompts** (`api/forge.js`, `src/forge-prompt-studio.js`), **generated avatars/images**, and **agent profiles** have no moderation gate. `api/forge.js` mentions provider-side image moderation but runs no first-party text/asset safety pass.
-- **Audit log exists.** `api/_lib/audit.js` (`logAudit({ userId, action, resourceId, meta, req })`) writes to the `audit_log` table; `api/audit-log.js` serves it (JSON + CSV) to `/dashboard-next/account`. Migrations under `api/_lib/migrations/2026-05-*-audit-log*.sql`. It is under-instrumented — money/auth/moderation events should all land here.
-- **Rate limiting exists.** `api/_lib/rate-limit.js` (`limits`, `rateLimited` via `@upstash/ratelimit`). Audit which abusable endpoints actually apply it.
-- **No report/takedown path.** No `api/report*` endpoint, no admin moderation queue. `api/admin/` has revenue/withdrawals/users but no abuse surface.
-
-## Your mission
-### 1. Ship the Privacy Policy and Terms of Use pages
-Create `pages/legal/privacy.html` and `pages/legal/tos.html` (match the route in `DRAWER_LEGAL`; if the router needs a `pages/legal/` entry in `data/pages.json`, add it). Write real, accurate, plain-language legal copy covering: data collected (wallet addresses, prompts, generated assets, analytics), processors actually used (Solana RPC, OpenAI/Anthropic/NVIDIA worker proxies, Vercel, Upstash, Sentry/Axiom), retention (audit log 365d, generated-asset storage), cookie/local-storage usage, user rights (access/export/deletion — wire to the real audit-log CSV export and any account-delete path), and contact/DPO. Terms must cover acceptable use, prohibited content (the exact categories moderation enforces), IP ownership of generated assets, $THREE is the only token referenced, no investment advice, liability, and DMCA/takedown. Use **design tokens only** (`public/tokens.css`) and the shared nav/footer — these pages must clear the polish bar (TOC, last-updated date, anchor links, all five states are trivially "populated" but typography/spacing must match the platform).
-
-### 2. Extend moderation to Forge prompts, generated assets, and agent profiles
-Generalize `api/_lib/moderation.js` (or add a sibling `api/_lib/content-moderation.js` that reuses its NemoGuard call) so every user-generated-content boundary runs a real safety pass: Forge text prompts before generation (`api/forge.js`, `src/forge-prompt-studio.js`), generated **image/avatar** outputs (image-safety classifier on the NVIDIA NIM lane already in use), and agent-profile free-text fields. For signed-in attributable surfaces this can **fail-closed on a confident "unsafe" verdict** (unlike anon chat's fail-open) — refuse with a clear, non-judgmental message and a path forward. Every refusal calls `logAudit({ action: 'moderation.block', ... })`. No mocks — real classifier calls with real timeouts and graceful degradation.
-
-### 3. Build report + takedown
-Add `api/report.js` (signed-in or captcha-gated POST: `{ targetType, targetId, reason, detail }`) that writes to a `content_reports` table (new migration in `api/_lib/migrations/`), rate-limited via `api/_lib/rate-limit.js`, audit-logged. Surface a "Report" affordance on user-generated surfaces (Forge gallery items, agent profiles) — accessible button, tokenized styling, confirmation state. Add an admin moderation queue under `api/admin/reports.js` (reuse the existing admin auth pattern in `api/admin/`) that lists open reports and lets an admin resolve/take down, writing the takedown to the audit log and flipping a visibility flag on the target.
-
-### 4. Close abuse / rate-limit gaps and instrument the audit log
-Sweep the abusable, money- and compute-touching endpoints (Forge generation, mint/launch, x402 checkout, auth, report) and ensure each applies `rateLimited`/`limits` with sane per-identity budgets. Add `logAudit` calls to the security-relevant events that aren't yet covered: login/logout, withdrawal, mint/launch, moderation block, report filed, takedown. Confirm the existing `/dashboard-next/account` action-log panel renders the new event types correctly (label them human-readably).
-
-### 5. Verify end-to-end
-`npm run dev`, walk: footer → privacy/tos render with no console errors; a known-harmful Forge prompt is refused and audit-logged; a report submits and appears in the admin queue; a takedown hides the target and logs. Confirm existing tests pass (`npm test`); add a unit test for the moderation classifier's verdict parsing and the report endpoint's validation/rate-limit boundary.
-
-## Definition of done
-Clears 00b's **trust & correctness bars** (inputs validated at the boundary, rate-limited where abusable, honest UI) and **polish bars** (legal pages screenshot-worthy, every state designed). Inherits the global definition of done in `00-README-orchestration.md`: real APIs (no mocked classifier), `$THREE` only, design tokens only, zero console errors, existing + new tests pass, changelog entry, explicit-path staging. Footer legal links resolve; no dead path remains. Moderation refusals and takedowns are all auditable.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin — the legal copy and prohibited-content list reference no other token. Design tokens only (`public/tokens.css`); no hardcoded colors/spacing/fonts on the new pages or report UI. Stage explicit paths only (never `git add -A`). Own the legal-pages + moderation + report/takedown + audit-instrumentation lane; extend `api/_lib/moderation.js`, `api/_lib/audit.js`, and `api/_lib/rate-limit.js` — do not rewrite them.
-
-## When finished
-Run the self-review (CLAUDE.md's five checks). Ship one improvement (e.g. a per-user "your reports" status, or a cookie-consent banner wired to analytics opt-out). Append a `data/changelog.json` entry (tag: `security`) — holder-readable ("Added our Privacy Policy and Terms, content moderation on generated assets, and a report/takedown flow"). Then delete this prompt file (`prompts/production-campaign/G-trust/G1-legal-moderation-abuse.md`) and report what you shipped + the seam for the next agent (e.g. which surfaces still lack a Report button, or any moderation category needing tuning).
diff --git a/prompts/production-campaign/G-trust/G2-accessibility-audit.md b/prompts/production-campaign/G-trust/G2-accessibility-audit.md
deleted file mode 100644
index d2024e87c..000000000
--- a/prompts/production-campaign/G-trust/G2-accessibility-audit.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# G2 — WCAG 2.2 AA accessibility audit across all surfaces
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, and `prompts/production-campaign/00b-the-bar.md` first. **Prerequisites:** none (runs in parallel; coordinate with G4 — contrast fixes must use `public/tokens.css`, not new hardcoded colors).
-
-## Why this matters for $1B
-A billion-dollar platform serves everyone — including keyboard-only, screen-reader, low-vision, and motion-sensitive users — and it is legally required to (ADA, EAA, Section 508). `00b-the-bar.md` already lists "keyboard-navigable, screen-reader-labelled, `prefers-reduced-motion` honored, contrast ≥ WCAG AA" as part of the polish bar on **every** surface. We have a 3D-heavy product (canvas controls are the hardest a11y problem there is) and 125+ pages. An automated gate plus a real manual pass is the only way to hold this bar as the surface area grows.
-
-## Current state (read before you write)
-- **No a11y tooling in CI.** `.github/workflows/ci.yml` runs lint, vitest, source guards, typecheck — no axe, no pa11y, no Lighthouse a11y. `.lighthouserc.json` exists but isn't wired into CI either.
-- **`prefers-reduced-motion` is partially adopted.** `grep -rl "prefers-reduced-motion" public/*.css` shows ~10 stylesheets honor it (`home.css`, `features.css`, `auth.css`, `galaxy.css`, …) — but coverage is inconsistent and the 3D scenes/animations are the highest-risk omission.
-- **3D/canvas controls are the core gap.** `src/` Three.js surfaces (avatar presence, Forge viewer, feature-tour, scene-studio) expose orbit/zoom/pose controls on `<canvas>` with no ARIA, no keyboard equivalents, no screen-reader description of what the canvas shows.
-- **Design tokens exist for contrast.** `public/tokens.css` defines the ink/surface palette (`--ink`, `--ink-dim`, `--ink-faint`, surfaces). Contrast failures must be fixed by adjusting/choosing the right **token**, never by hardcoding a hex (that's G4's lane — stay aligned).
-- Shared chrome lives in `public/nav.js` / `public/nav.css` (skip-link, focus order, drawer) — fixes there propagate everywhere.
-
-## Your mission
-### 1. Wire an automated axe check into CI
-Add `@axe-core/cli` or `@axe-core/playwright` (we already run Playwright — `npm run test:e2e`) as a real a11y test that loads the primary surfaces (home, marketplace, Forge, dashboard-next, an agent profile, a legal page) at 1440px and 375px and asserts **zero serious/critical violations**. Add an `a11y` job to `.github/workflows/ci.yml` that runs it on every PR and **fails on regressions**. Add an `npm run test:a11y` script. Use real page loads (`npm run dev` / preview server) — no static snapshots.
-
-### 2. Fix semantic structure, landmarks, and keyboard navigation
-Sweep the shared chrome first (`public/nav.js`, `public/nav.css`): one `<h1>` per page, correct heading order, landmark roles (`<nav>`, `<main>`, `<footer>`), a working **skip-to-content** link, logical tab order, and visible focus indicators on every interactive element (use the token-based focus ring; never `outline: none` without a replacement). Then fix the per-page violations axe surfaces. Every link goes somewhere, every button is reachable and operable by keyboard (Enter/Space), modals/drawers trap focus and restore it on close, and `Esc` closes overlays.
-
-### 3. Make the 3D/canvas controls accessible
-This is the headline. For each interactive `<canvas>` surface in `src/` (avatar presence, Forge viewer, scene controls): add an accessible name + `role`/`aria-label` describing what's rendered, provide **keyboard-operable equivalents** for orbit/zoom/reset (arrow keys / +/- / a reset button) exposed as real buttons with ARIA, announce meaningful state changes via an `aria-live` region (e.g. "Avatar loaded", "Generating…"), and ensure a non-canvas fallback/description so a screen-reader user understands the content. Respect `prefers-reduced-motion` on the auto-rotate/idle animations.
-
-### 4. Complete `prefers-reduced-motion` and contrast coverage
-Extend reduced-motion handling to every animated surface (especially 3D auto-rotate, galaxy/particle backgrounds, marquees, skeleton shimmer) so motion-sensitive users get a still, usable experience — consolidate into a shared rule where possible. Run a contrast audit against WCAG 2.2 AA (4.5:1 body, 3:1 large/UI components, plus the 2.2 additions: focus-not-obscured, target-size ≥ 24px, dragging alternatives); fix every failure by selecting the correct **token** (coordinate with G4) and bumping focus-ring/target sizes where needed.
-
-### 5. Add ARIA to dynamic states and verify with a real screen reader
-Ensure loading/empty/error/toast states announce to assistive tech (`aria-live`, `role="status"`/`role="alert"`), form fields have associated `<label>`s and `aria-describedby` for errors, and images/icons have alt text or `aria-hidden` as appropriate. Verify the primary flows end-to-end with keyboard-only and VoiceOver/NVDA: visitor lands → tabs to Forge → generates → result is announced. Document the manual pass results.
-
-## Definition of done
-Clears 00b's **polish bar**'s explicit a11y clause on every audited surface (keyboard-navigable, screen-reader-labelled, reduced-motion honored, contrast ≥ AA) and adds the missing automated gate. Inherits the global definition of done in `00-README-orchestration.md`: real page loads (no mocks), `$THREE` only, design tokens only (contrast fixes via tokens), zero new console errors, existing + new tests pass, the new `a11y` CI job is green and enforced. Axe reports zero serious/critical on the primary surfaces; 3D controls are fully keyboard-operable.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. **Design tokens only** (`public/tokens.css`) — every contrast/focus fix references a token, never a new hardcoded color (G4 enforces this platform-wide). Stage explicit paths only (never `git add -A`). Own the a11y lane (axe CI job, ARIA, keyboard nav, reduced-motion, focus management); extend `public/nav.js`/`public/nav.css` and the `src/` canvas surfaces — do not rewrite them or fork their styling.
-
-## When finished
-Run the self-review (CLAUDE.md's five checks). Ship one improvement (e.g. a global "reduce motion" user toggle persisted to local storage, or a keyboard-shortcut help overlay). Append a `data/changelog.json` entry (tag: `improvement`) — holder-readable ("Full keyboard navigation, screen-reader labels on 3D controls, and an automated accessibility check on every release"). Then delete this prompt file (`prompts/production-campaign/G-trust/G2-accessibility-audit.md`) and report what you shipped + the seam for the next agent (which surfaces still trip axe, any 3D control needing deeper work).
diff --git a/prompts/production-campaign/G-trust/G3-i18n-completeness.md b/prompts/production-campaign/G-trust/G3-i18n-completeness.md
deleted file mode 100644
index e4c1ebb9b..000000000
--- a/prompts/production-campaign/G-trust/G3-i18n-completeness.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# G3 — Internationalization to production: full coverage, RTL, locale-aware formatting, lint gate
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, `prompts/production-campaign/00b-the-bar.md`, and `docs/i18n.md` first. **Prerequisites:** none (parallel; G4 owns tokens — the locale switcher must use them).
-
-## Why this matters for $1B
-A platform worth $1B is used worldwide. The audience is crypto-native developers and creators across every market; copy that only renders in English caps the addressable market and signals a regional product, not a global one. The i18n pipeline already exists and is architecturally sound (the LobeHub static-catalog model) — but it's only **partially built out**: two locales actually ship, RTL is wired but untested, and most pages aren't annotated. Finishing this turns a scaffold into real global reach.
-
-## Current state (read before you write)
-- **Pipeline exists and is well-designed.** `.i18nrc.json` configures the entry catalog (`public/locales/en.json`), 10 target locales (`es, zh-CN, ja, ko, fr, de, pt-BR, ar, hi, ru`), RTL locales (`ar, he, fa, ur`), the Groq LLM provider, and a `doNotTranslate` glossary that already protects `$THREE`, the contract address, `x402`, `Solana`, `USDC`, brand terms. `scripts/i18n-extract.mjs` derives the catalog from `data-i18n` annotated HTML; `scripts/i18n-translate.mjs` translates incrementally; `scripts/i18n-translate.mjs --lint` (`npm run i18n:lint`) checks. `docs/i18n.md` documents the whole flow.
-- **Runtime is built.** `src/i18n.js` exports `setLocale` / `getLocale` / `initI18n` / `translate` / `t`, swaps the DOM at runtime, sets `document.documentElement.dir = 'rtl'|'ltr'` from the manifest, fires an `i18n:change` event, and registers a `<lang-switcher>` web component that self-hides on single-language deploys.
-- **But coverage is thin.** `public/locales/` contains only `en.json`, `es.json`, `manifest.json` — the manifest lists just `en` + `es`. The 10 configured target locales aren't built. Most of the 125+ HTML pages aren't `data-i18n`-annotated, so they render English-only regardless of locale.
-- **No i18n gate in CI.** `.github/workflows/ci.yml` doesn't run `i18n:lint`. Drift (missing keys, stale translations, un-annotated copy) goes uncaught.
-- **Locale-aware formatting is not centralized.** Numbers, dates, currency (USDC amounts, $THREE balances, timestamps) are formatted ad hoc, not via `Intl` keyed to the active locale.
-
-## Your mission
-### 1. Annotate the remaining surfaces and extract a complete catalog
-Sweep the user-facing pages under `pages/**` and `public/**` (the `htmlExtract.entry` globs in `.i18nrc.json`) and add `data-i18n` / `data-i18n-html` / `data-i18n-attr` annotations to user-visible copy per `docs/i18n.md` — including `<title>`/`<meta>` for SEO per locale. Run `npm run i18n:extract` to regenerate `public/locales/en.json`. Do **not** annotate code identifiers, addresses, or glossary terms; rely on `doNotTranslate`.
-
-### 2. Build all configured locales for real
-Run `npm run i18n:translate` (Groq provider — locate `GROQ_API_KEY` in `.env`/`vercel env`; the script must use the real LLM, no stub catalogs) to produce `public/locales/{es,zh-CN,ja,ko,fr,de,pt-BR,ar,hi,ru}.json`. Update `public/locales/manifest.json` so the switcher lists every built locale with the correct `dir`. Spot-check that the glossary held ($THREE etc. untranslated) and that RTL locales carry `dir: "rtl"`.
-
-### 3. Surface a polished locale switcher everywhere
-Ensure the `<lang-switcher>` from `src/i18n.js` is mounted in the shared nav/footer (`public/nav.js`) so it's reachable on every page, and that `initI18n()` runs on boot before paint to avoid an English flash. Style it with **design tokens only** (`public/tokens.css`). It must be keyboard-accessible and screen-reader-labelled (coordinate with G2), persist the chosen locale, and respect the browser's `Accept-Language` on first visit.
-
-### 4. Make RTL real
-With Arabic now built, audit the platform in `dir="rtl"`: logical CSS properties (`margin-inline`, `padding-inline`, `inset-inline`) instead of left/right where direction matters, mirrored icons/chevrons, correct text alignment, and nav/drawer/layout that don't break. Fix the RTL-specific breakages in the shared chrome and primary surfaces. The page must look intentional in Arabic, not like flipped English.
-
-### 5. Centralize locale-aware formatting + add the lint gate
-Add a small formatting helper (e.g. `src/format-intl.js`) wrapping `Intl.NumberFormat` / `Intl.DateTimeFormat` keyed to `getLocale()`, and route user-visible numbers, dates, relative times, and currency (USDC, $THREE balances) through it so they format correctly per market (decimal/grouping separators, date order). Then add an **i18n lint job** to `.github/workflows/ci.yml` running `npm run i18n:lint` — failing the build on missing/stale keys or un-annotated regressions — so the catalog can't drift.
-
-### 6. Verify
-`npm run dev`, switch through several locales including Arabic: copy swaps with no English flash, no console errors, RTL layout holds, numbers/dates/currency format per locale, the switcher is keyboard-operable. Confirm existing tests pass; the pure helpers in `src/i18n.js` are already test-friendly — add tests for the new `Intl` formatter and any new resolve logic.
-
-## Definition of done
-Clears 00b's **polish bar** (universal, screenshot-worthy in every locale incl. RTL) and the global definition of done in `00-README-orchestration.md`: real LLM translation (no stub catalogs), `$THREE` only and untranslated, design tokens only on the switcher, zero console errors, existing + new tests pass, the new i18n CI gate green and enforced. All 11 locales build, the switcher is on every page, RTL is correct, and formatting is locale-aware.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs — translations come from the real Groq pipeline, not hand-typed filler. `$THREE` (and the contract address) is the only coin and stays in `doNotTranslate`, untranslated in every locale. Design tokens only (`public/tokens.css`) for the switcher. Stage explicit paths only (never `git add -A`) — the generated `public/locales/*.json` are append/regenerate outputs, commit them deliberately. Own the i18n lane; extend `src/i18n.js`, the i18n scripts, and `.i18nrc.json` — do not rewrite the pipeline.
-
-## When finished
-Run the self-review (CLAUDE.md's five checks). Ship one improvement (e.g. per-locale OG/meta so shared links unfurl in the reader's language, or a `hreflang` set in `<head>` for SEO). Append a `data/changelog.json` entry (tag: `improvement`) — holder-readable ("three.ws now speaks 11 languages, including right-to-left, with a built-in language switcher"). Then delete this prompt file (`prompts/production-campaign/G-trust/G3-i18n-completeness.md`) and report what you shipped + the seam for the next agent (any surfaces still un-annotated, locales needing copy review).
diff --git a/prompts/production-campaign/G-trust/G4-brand-design-system.md b/prompts/production-campaign/G-trust/G4-brand-design-system.md
deleted file mode 100644
index f22f73ffe..000000000
--- a/prompts/production-campaign/G-trust/G4-brand-design-system.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# G4 — Enforce the design system everywhere (tokens-only, no legacy palettes, token lint gate)
-
-You are a senior engineer + product thinker building **three.ws**. Read `CLAUDE.md`, `STRUCTURE.md`, `prompts/production-campaign/00b-the-bar.md`, and `DESIGN-TOKENS.md` (the spec) first. **Prerequisites:** none — but this track is the **enforcement backstop** for G2 (contrast fixes) and the whole campaign. Run it late enough to catch others' regressions, or re-run the lint at the end.
-
-## Why this matters for $1B
-Brand consistency is how trust is *communicated before it is earned* (00b's polish pillar). Vercel, Linear, and Stripe feel like one product on every screen because every color, space, and font flows from one vocabulary. three.ws already did the hard migration — `DESIGN-TOKENS.md` records that **eight legacy per-surface palettes** (`--mk-*`, `--pd-*`, `--ibm-*`, `--gx-*`, `--ho-*`, `--saas-*`, `--sdk-*`, `--t-*`) were removed in B02 — but with concurrent agents shipping daily, hardcoded hexes and forked palettes creep back in. Without an automated gate, the system erodes one PR at a time. This track makes the design system *enforceable*, not aspirational.
-
-## Current state (read before you write)
-- **The token system is canonical and documented.** `public/tokens.css` is the single source of truth (ink, surface, stroke, accent, `--space-*` on a φ=1.618 scale, radius, shadow, blur, motion). `public/style.css` `@import`s it then layers component tokens (buttons, cards, badges, skeleton); `public/nav.css` `@import`s it too, so every page is covered via `/style.css` or the shared nav. `DESIGN-TOKENS.md` is the full vocabulary + migration guidance; `docs/btn-pill-migration.md` documents the pill-button migration.
-- **`--nxt-*` (app shell) and `--nv-*` (nav) are intentional alias layers** that resolve *to* the canonical tokens via `var(--surface-1, …)`. Keep them as aliases — do **not** fork them into standalone palettes.
-- **A token verifier exists but isn't a gate.** `scripts/verify-b09-tokens.mjs` launches puppeteer, loads a few pages (home, marketplace, dashboard-next, pump-dashboard), and flags off-scale radii/spacing — but it covers only 4 pages, isn't an `npm` script, and isn't in `.github/workflows/ci.yml`. So drift goes unmeasured.
-- **No CSS lint for hardcoded values.** `eslint.config.js` lints JS only; there's no stylelint catching raw hexes/rgba/px-spacing in CSS, and nothing catching reintroduced `--mk-*`/`--pd-*`/legacy-namespace declarations.
-- **Component consistency is uneven.** Buttons/cards/badges/skeletons are tokenized in `style.css`, but per-surface CSS files may redefine them or hardcode values.
-
-## Your mission
-### 1. Sweep and eliminate hardcoded colors, spacing, and fonts
-Grep the first-party CSS (`public/**/*.css`, any `src/**` inline styles, `pages/**` `<style>` blocks) for raw `#hex` / `rgb()/rgba()` / hardcoded `px` spacing / literal `font-family` stacks that a token already expresses, and replace each with the correct `var(--token)` from `public/tokens.css`. Where a value genuinely has no token (rare), add it to `tokens.css` as a named primitive and reference it — never leave a magic number. Preserve intentional exceptions (vendored libs already ignored in `eslint.config.js`, true one-off media-query thresholds) and document them.
-
-### 2. Kill any reintroduced legacy palettes
-Search for the eight removed namespaces (`--mk-*`, `--pd-*`, `--ibm-*`, `--gx-*`, `--ho-*`, `--saas-*`, `--sdk-*`, `--t-*`) and any other forked per-surface palette. Replace each declaration with the canonical token (or, for a legitimately distinct brand accent like IBM Carbon at `/ibm/*`, express it as a small theme layer that **remaps** tokens per `tokens.css`'s guidance — never a standalone set). Confirm `--nxt-*`/`--nv-*` remain thin aliases, not forks.
-
-### 3. Normalize buttons, cards, badges, and skeletons
-Ensure every button uses the canonical pill-button classes (`docs/btn-pill-migration.md`), every card/badge/skeleton uses the component tokens layered in `style.css`, and no per-surface file redefines them with hardcoded values. Loading skeletons must match the populated layout and use the token-based shimmer (respecting `prefers-reduced-motion` — coordinate with G2). The result: a button on `/forge` is visually identical to one on `/marketplace`.
-
-### 4. Build the token lint gate
-Add a real, fast lint that **fails the build on token violations**: configure **stylelint** with a custom rule set (or extend `scripts/verify-b09-tokens.mjs` into a static-analysis pass that doesn't need a browser) that flags raw hex/rgba in first-party CSS, off-scale spacing/radius literals, and any legacy-namespace (`--mk-*` etc.) declaration. Expose it as `npm run lint:tokens`. Broaden `verify-b09-tokens.mjs` to cover the primary surfaces (not just 4). Add a `tokens` job to `.github/workflows/ci.yml` that runs the lint on every PR. The gate must catch a reintroduced hardcoded color and a forked palette.
-
-### 5. Verify
-`npm run dev`, visually diff the touched surfaces at 320/768/1440px — nothing shifted, everything is on-brand, buttons/cards/badges/skeletons are consistent. `npm run lint:tokens` passes on a clean tree and fails on a deliberately-injected raw hex (then revert it). Confirm existing tests pass (`npm test`) and the new CI job is green.
-
-## Definition of done
-Clears 00b's **polish bar** (consistent tokens, spacing rhythm, typography; every surface on-brand and screenshot-worthy) and makes it *enforceable*. Inherits the global definition of done in `00-README-orchestration.md`: `$THREE` only, **design tokens only** (this track defines that bar for the platform), zero console errors, zero visual regressions, existing tests pass, the new `tokens` CI gate green and enforced. No first-party hardcoded color/spacing/font remains where a token exists; no legacy palette is reintroduced.
-
-## Operating rules (override defaults)
-No mocks/fake data/placeholders/TODOs/stubs. `$THREE` is the only coin. **Design tokens only** (`public/tokens.css`) — this track ENFORCES that everywhere; the only new raw values allowed are net-new named primitives added *to* `tokens.css`. Stage explicit paths only (never `git add -A`) — and per CLAUDE.md, watch the `npx vercel build` trap that overwrites `api/*.js`/`public/*` with bundles before committing. Own the design-system-enforcement lane; extend `tokens.css`, `style.css`, `scripts/verify-b09-tokens.mjs`, and `eslint.config.js`/stylelint config — do not rewrite the token vocabulary or rename the canonical prefix.
-
-## When finished
-Run the self-review (CLAUDE.md's five checks). Ship one improvement (e.g. a `/design-tokens` living style-guide page rendering the vocabulary from `tokens.css`, or a pre-commit hook running `lint:tokens`). Append a `data/changelog.json` entry only if user-visible (tag: `improvement` or `docs`) — a pure-CI lint addition is an internal chore and gets **no** entry; a visible style-guide page or unified components do. Then delete this prompt file (`prompts/production-campaign/G-trust/G4-brand-design-system.md`) and report what you shipped + the seam for the next agent (any surface still carrying hardcoded values you couldn't tokenize, or a missing primitive).
diff --git a/prompts/production-grade/00-README-orchestration.md b/prompts/production-grade/00-README-orchestration.md
deleted file mode 100644
index c2b5031e8..000000000
--- a/prompts/production-grade/00-README-orchestration.md
+++ /dev/null
@@ -1,208 +0,0 @@
-# Program: Road to $1B — production-grade three.ws
-
-> **Read this file in full before starting any task in this folder.** Every numbered
-> prompt (`01-*` … `20-*`) assumes the context below and does not repeat it. One agent
-> chat per task file. When a task is truly done (including the self-improve pass and a
-> changelog entry), the agent **deletes its own prompt file**. Leave this README until
-> the whole program is complete.
-
-## Why this program exists
-
-three.ws is already a real, broad, working platform — the 2026-06-18 audit
-([docs/audit/2026-06-18-codebase-audit.md](../../docs/audit/2026-06-18-codebase-audit.md))
-found it "in strong, production-ready shape," with only hardening and consistency work
-outstanding. This program is the gap between "strong and working" and **a product that
-could credibly carry a billion-dollar valuation**: one that activates new users on first
-visit, spreads itself, converts to revenue, never falls over, pays its creators visibly,
-and reads as a real company to users, partners, and enterprise buyers.
-
-Each task below was derived from a grounded survey of the actual codebase. The file paths
-are real. The gaps are real. None of these are greenfield — every task is "this exists,
-here's where it falls short of the bar, raise it." That's the work.
-
-**The bar:** would a senior engineer demo this without apologizing? Would a degen who
-trades for a living switch to three.ws because of it? Would someone screenshot it? If not,
-it isn't done.
-
-## The literal seed of this program
-
-This program started from one request: the Forge engine picker lists its two free 3D
-lanes by vendor — `nvidia: 'NVIDIA'` and `huggingface: 'Hunyuan3D'` in
-[src/forge.js](../../src/forge.js) (`ENGINE_LABELS`, ~line 180), each rendered with a
-`FREE` pill — and they should instead read as **three.ws's own** house engines, not a
-vendor billboard. That relabel is the first concrete deliverable of task `20`. It's small;
-it's also the spirit of the whole program — every surface should sell three.ws, not the
-infrastructure underneath it.
-
-## Hard rules (from [CLAUDE.md](../../CLAUDE.md) — non-negotiable, repeated so you don't skip them)
-
-- **No mocks. No fake data. No placeholders. No sample arrays. No `setTimeout` fake
- loading.** Every number on screen and in every response traces to a real API, real RPC,
- real chain call, or real DB row. If a value is `0`, render a real `0`.
-- **No TODOs, no stubs, no `throw new Error("not implemented")`, no commented-out code.**
- If you write it, finish it and wire it end-to-end so a real user/agent can reach it.
-- **No errors without solutions.** Find the root cause, ship the correct fix with a real
- fallback. Lazy error propagation is not engineering.
-- **The only coin is `$THREE`** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never
- name, hardcode, link, or recommend any other token anywhere — code, copy, tests,
- fixtures, commits, or conversation. The only exceptions are runtime-supplied mints (a
- user sniping an arbitrary launch; the `/launches` feed rendering platform launch
- records). Never hardcode or promote a specific non-$THREE mint. Tests use the $THREE CA
- or a synthetic placeholder (`THREEsynthetic1111…`).
-- **Every state is designed:** loading (skeletons via [src/shared/state-kit.js](../../src/shared/state-kit.js),
- not spinners), empty (tell the user what to do next), error (actionable + retry),
- populated, overflow.
-- **Accessibility is not optional:** semantic HTML, ARIA on interactive elements, keyboard
- nav, focus rings, contrast, `prefers-reduced-motion`.
-- **Match the design system.** Tokens live in [public/tokens.css](../../public/tokens.css).
- Never hardcode hex/px when a token exists.
-
-## Design system (use these, never invent values)
-
-Source of truth: [public/tokens.css](../../public/tokens.css), imported globally.
-Monochrome glass on near-black: `--bg-0`, surfaces `--surface-1/2/3`,
-`--stroke`/`--stroke-strong`, `--accent`, text `--ink`/`--ink-dim`/`--ink-bright`/`--ink-faint`,
-`--success`/`--danger`/`--warn`. Type: `--font-display` (Space Grotesk), `--font-body`
-(Inter), `--font-mono` (JetBrains Mono — all addresses/amounts). Spacing: phi scale
-`--space-*`. Radii `--radius-*`. Shadows `--shadow-*`. Blur `--blur-*`. Motion
-`--duration-*`/`--ease-standard`. Shared UI states come from
-[src/shared/state-kit.js](../../src/shared/state-kit.js); nav from
-[public/nav.js](../../public/nav.js)/[public/nav-data.js](../../public/nav-data.js).
-
-## Repo orientation (read before exploring)
-
-- [STRUCTURE.md](../../STRUCTURE.md) maps every product surface to its directory. Read it
- first — there are 60+ top-level dirs.
-- Frontend: vanilla JS modules + Vite (`npm run dev`, port 3000). Pages in `pages/` +
- `src/`, static in `public/`.
-- Backend: Vercel functions in `api/`, Cloudflare workers in `workers/`. Shared backend
- libs in `api/_lib/`.
-- Data/DB: Neon via [api/_lib/db.js](../../api/_lib/db.js); migrations in
- `api/_lib/migrations/` applied with `npm run db:migrate` (dry-run by default).
-- 3D: Three.js + glTF/GLB. Avatar animation is universal (no rig allowlist) — see CLAUDE.md.
-
-## Working rules for THIS repo (traps that have bitten agents here)
-
-- **Concurrent agents share this worktree.** Others commit on `main` while you work.
- **Stage explicit paths only** (`git add path/to/file`) — never `git add -A`/`git add .`.
- Re-run `git status` + `git diff --staged` right before committing. Expect files you
- didn't write to appear; don't stage them.
-- **`npx vercel build` overwrites `api/*.js` in place** with esbuild bundles. If a large
- `api/` diff shows `__defProp`/`createRequire` at the top of a file, recover with
- `git restore -- api/ public/`. Prefer not to run it.
-- **Two remotes.** `threews` (canonical) and `threeD` (push-only mirror). **Never pull,
- fetch, or merge from `threeD`.** Pull only from `threews`. Push to BOTH when asked.
-- **Do not commit or push unless the user explicitly asks.** Leave clean, reviewed work.
-- Run `npm run dev` and exercise UI work in a real browser. No console errors/warnings
- from your code. Confirm real API calls in the Network tab.
-- Tests: `npm test` (vitest + playwright), `npm run test:core` (vitest, single worker).
- Verify the runner works in your environment; **write real vitest/playwright tests
- regardless** — CI runs them.
-
-## Changelog (every user-visible change)
-
-Append an entry to [data/changelog.json](../../data/changelog.json): date, holder-readable
-title + summary (plain language, no commit jargon), tags from
-`feature|improvement|fix|sdk|infra|docs|security`. Run `npm run build:pages` to validate
-and regenerate. Do **not** run `changelog:push`. Internal-only chores (CI, refactors with
-no visible effect) get no entry.
-
-## Definition of done (per task)
-
-1. Code written, wired into the UI/API/SDK, reachable by a real user/agent across **all**
- relevant surfaces — no dead paths.
-2. UI exercised in a real browser via `npm run dev`. No console errors/warnings.
-3. Network tab shows real API calls returning real data.
-4. Every interactive element has hover/active/focus states; every state
- (loading/empty/error/populated/overflow) designed.
-5. Logged-out / signed-in / owner / visitor states correct where relevant.
-6. Real tests written; `npm test` passes. Changelog entry added. `git diff` self-reviewed —
- every changed line justified.
-7. You would proudly demo this to a room of senior engineers **and** to a room of degens.
-
-## Then: improve, then delete this task
-
-After meeting the DoD, run the CLAUDE.md self-review protocol (lazy check, user check,
-integration check, edge-case check — 0/1/1000 items, very long names, network failure
-mid-op, expired session — pride check). Find the single biggest weakness and fix it now.
-Then ask: does what you built unlock something adjacent? Wire that connection.
-
-**Finally, when the task is complete (and committed, if the user asked), delete your own
-prompt file** so the board reflects reality. Leave this README in place.
-
-## Tracks & task index
-
-Six tracks. Tasks within a track are mostly independent and can run in parallel chats;
-note the few dependencies. There is no hard global ordering, but the suggested sequencing
-front-loads activation/growth (revenue-facing) and reliability (won't-fall-over), since
-those gate everything else.
-
-### Track A — Activation & onboarding (turn first visits into first success)
-- `01-first-run-and-feature-tour.md` — auto-launch the feature tour for new visitors;
- build/repair the `/start` wizard; wire onboarding to real progress.
-- `02-funding-and-free-to-paid-upsell.md` — "get USDC" funding step + quota-hit
- instrumentation and upgrade CTAs before any 403.
-
-### Track B — Virality & distribution (make the product spread)
-- `03-dynamic-og-and-social-proof.md` — per-agent/per-coin/per-avatar OG images, share
- buttons in detail heroes, real social-proof counts on cards.
-- `04-referral-program-surfaced.md` — surface the existing referral engine: share card,
- leaderboard, `ref=` propagation, incentive copy.
-- `05-programmatic-seo.md` — crawlable/prerendered agent, skill, and marketplace pages +
- structured data + high-intent content.
-
-### Track C — Revenue & creator economy (prove creators earn)
-- `06-creator-dashboard.md` — self-serve creator UI: price editor, live earnings, payout
- history, analytics.
-- `07-skill-reviews-and-revenue-attribution.md` — ship the reviews/ratings system (schema
- exists) and the full purchase→revenue→payout analytics funnel.
-- `08-checkout-completion-and-unified-pricing.md` — complete checkout (EVM, receipts,
- retry, abandonment tracking) + one coherent pricing surface.
-
-### Track D — Reliability & hardening (a $1B platform does not fall over)
-- `09-resilience-external-calls.md` — wrap every external call (Solana RPC, pump.fun,
- forge providers, x402 facilitator, LLMs) in timeout + retry + circuit breaker.
-- `10-payments-integrity.md` — idempotency everywhere, settlement reconciliation, refund
- path, queryable audit log.
-- `11-rate-limit-and-abuse-caps.md` — per-principal spend caps and global concurrency
- ceilings on every expensive endpoint.
-- `12-observability-and-status.md` — structured logging + request tracing + server-side
- Sentry + secret scrubbing + a `/api/status` that probes live dependencies.
-- `13-cron-hardening.md` — distributed locks, run-history/last-success, failure alerting,
- surfaced in status.
-
-### Track E — Engineering excellence (ship safely, stay fast)
-- `14-e2e-tests-and-ci-gate.md` — Playwright E2E for checkout/signup/forge/avatar; move
- E2E into the CI merge gate; add coverage reporting.
-- `15-ci-security-and-quality-gates.md` — dependency/vuln scanning, blocking typecheck,
- bundle-size budget.
-- `16-performance-and-assets.md` — lazy-load heavy GLBs, move the 200MB+ animation set to
- CDN out of git, add Core Web Vitals monitoring.
-
-### Track F — Trust, legal, docs & polish (read as a real company)
-- `17-company-and-brand-surfaces.md` — About/team/careers/press-kit/brand assets.
-- `18-compliance-and-trust-pages.md` — cookie consent, accessibility statement,
- disclosure/bug-bounty, incident history.
-- `19-i18n-activation.md` — run the translation pipeline for all configured locales, add a
- language switcher, RTL support.
-- `20-design-system-and-a11y-polish.md` — **relabel the free Forge lanes (the seed task)**,
- tokenize stray hex/px, keyboard-navigable 3D viewers, modal focus management.
-
-### Suggested sequencing
-
-1. **First wave (revenue + safety, run in parallel):** `01`, `03`, `09`, `11`, `14`.
-2. **Second wave:** `02`, `04`, `06`, `10`, `12`, `15`.
-3. **Third wave:** `05`, `07`, `08`, `13`, `16`.
-4. **Fourth wave (credibility + polish):** `17`, `18`, `19`, `20`.
-
-Dependencies are called out inside each file. Coordinate only on shared modules
-(`src/shared/*`, `api/_lib/*`, [src/analytics.js](../../src/analytics.js),
-[public/tokens.css](../../public/tokens.css)).
-
-## The invention bar (read twice)
-
-Table stakes are the floor, not the goal. The ceiling is what is **only possible because
-three.ws welds a funded, self-custodial wallet to a rigged, talking, ownable 3D agent**.
-When a task offers a choice between "what every SaaS has" and "what only we can do," build
-ours. Every feature should answer "why can only three.ws do this?" — if the answer is
-"anyone could," raise it until someone would switch platforms for it.
diff --git a/prompts/production-grade/01-first-run-and-feature-tour.md b/prompts/production-grade/01-first-run-and-feature-tour.md
deleted file mode 100644
index b6460e294..000000000
--- a/prompts/production-grade/01-first-run-and-feature-tour.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Task 01 — First-run activation: auto-launch the tour + repair the `/start` wizard
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. Inherit every
-> rule there. This task is in **Track A — Activation**. It has no hard dependencies and
-> should land early; other Track A/B work links to the onboarding entry points you finish.
-
-## The thesis
-
-Activation is the single highest-leverage lever on valuation: a platform that turns first
-visits into first success compounds; one that drops new users on a blank page does not.
-three.ws already built most of the machinery — it just doesn't fire for the people who
-need it.
-
-## What exists today (read these before touching anything)
-
-- **Feature tour** — [src/feature-tour/](../../src/feature-tour/) (director, narrator,
- guide-avatar, free-roam, controls; recently added). Wired to `/tour?track=quick|full`
- and `?tour=start|1|0`, state in `sessionStorage`. It is **not** auto-offered to
- first-time visitors anywhere — you reach it only via a deep link or nav.
-- **Getting-started checklist** — [public/getting-started.js](../../public/getting-started.js):
- floating checklist (create → brain → embed core + optional on-chain/monetize), milestones
- in `localStorage`, skippable welcome modal.
-- **Dashboard onboarding panel** — [src/dashboard-next/pages/home.js](../../src/dashboard-next/pages/home.js):
- reconciles progress with server data.
-- **Onboarding plan of record** — [docs/onboarding/ONBOARDING-PLAN-2026-06-19.md](../../docs/onboarding/ONBOARDING-PLAN-2026-06-19.md):
- read it; it defines the intended phases. Honor it.
-- **`/start` wizard** — listed in [data/pages.json](../../data/pages.json) as a "5-step
- onboarding wizard" but **the page does not exist** (`pages/start.html` is missing). This
- is a documented-but-dead route: a conversion blocker and an `audit:pages` liability.
-
-## The gap
-
-1. New visitors are never offered the tour or a guided path — the machinery sits idle.
-2. `/start` is advertised but 404s / is unbuilt. Either build the real wizard or remove the
- route from the manifest — no dead advertised paths. **Build it** (it's the better first
- step than dropping a cold user into `/forge` or `/create`).
-3. The tour, the getting-started checklist, and the dashboard panel track progress in three
- different stores and don't agree. Onboarding state should be one source of truth.
-
-## What to build
-
-1. **First-run offer.** On a first-ever visit (no returning-visitor marker), show a tasteful,
- dismissible prompt to take the guided tour / start the wizard — on the home page and/or
- via [public/nav.js](../../public/nav.js). Respect `prefers-reduced-motion`. Never nag: one
- offer, remembered if dismissed or completed. Don't show it to returning/known users.
-2. **Build the real `/start` wizard** (`pages/start.html` + its module). Five real steps that
- end in a real first success (e.g. create-or-pick an avatar → connect a brain → generate or
- embed → optional on-chain/monetize). Each step does real work via the existing
- create/forge/brain/embed APIs — no fake progress. Designed empty/loading/error states per
- step; back/skip; resumable. Reuse the feature-tour and getting-started infrastructure
- rather than forking a third system.
-3. **Unify onboarding progress** into one source of truth (prefer the server-backed model the
- dashboard already reconciles against), and have the checklist, the wizard, and the
- dashboard panel all read/write it. Completing a step anywhere advances it everywhere.
-4. **Instrument it.** Fire the real activation funnel events through
- [src/analytics.js](../../src/analytics.js) (it already defines an activation funnel —
- `LANDING_VIEWED` → … → `AGENT_CREATED`). Add the wizard's per-step start/complete/skip
- events so drop-off is measurable. No new analytics vendor; use what's wired.
-
-## Definition of done
-
-Everything in the README DoD, plus:
-- A brand-new visitor (fresh browser profile) is offered a path and can complete a real first
- success without dead ends.
-- `/start` exists, passes `npm run audit:pages` (route ↔ manifest parity), is reachable from
- nav and the first-run offer, and is fully responsive (320 / 768 / 1440).
-- Onboarding progress is consistent across the checklist, the wizard, and the dashboard.
-- Activation + per-step events fire (verify in the Network tab / analytics debug).
-- Changelog entry (`feature`). Then run the self-review and improve the weakest step.
-
-Delete this file when done.
diff --git a/prompts/production-grade/02-funding-and-free-to-paid-upsell.md b/prompts/production-grade/02-funding-and-free-to-paid-upsell.md
deleted file mode 100644
index f20070569..000000000
--- a/prompts/production-grade/02-funding-and-free-to-paid-upsell.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# Task 02 — Funding on-ramp + free-to-paid upsell (close the money gap)
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track A —
-> Activation.** Pairs naturally with `08` (checkout) and `06`/`07` (creator revenue), but
-> stands alone. Touches `src/analytics.js` and the paywall paths — coordinate on those.
-
-## The thesis
-
-Users hit a wall the moment money is required: free Forge/skill quotas run out, or an x402
-call needs USDC the user doesn't have, and the product just… 403s. There's no "here's how to
-get USDC" and no "upgrade to keep going." Every silent rejection there is lost revenue and a
-lost user. A $1B funnel makes the paid step feel like the natural next move, not a brick wall.
-
-## What exists today (read first)
-
-- **Pricing tiers / holder discounts** — [api/_lib/three-tier.js](../../api/_lib/three-tier.js)
- (Member/Bronze/Silver/Gold/Genesis, 0–30% discount; free-quota multipliers), and Forge tier
- prices in [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js).
-- **Checkout** — [api/x402-checkout.js](../../api/x402-checkout.js) prepares/encodes Solana
- transactions only (no EVM, no receipt, no retry — that's task `08`).
-- **Wallet skills** — the harness exposes `fund`, `send-usdc`, `trade`, `authenticate-wallet`
- skills; the platform has agent custodial wallets ([api/_lib/agent-wallet.js](../../api/_lib/agent-wallet.js))
- and on-ramp touchpoints. Find the existing funding/on-ramp code before adding any.
-- **Analytics** — [src/analytics.js](../../src/analytics.js) has an activation funnel and a
- `$THREE` purchase funnel but **no** `QUOTA_EXCEEDED` / `UPGRADE_PROMPTED` /
- `PAYMENT_INITIATED` events. Quota walls are currently invisible to analytics.
-- **The onboarding plan** explicitly lists "close the funding gap" as Phase 2
- ([docs/onboarding/ONBOARDING-PLAN-2026-06-19.md](../../docs/onboarding/ONBOARDING-PLAN-2026-06-19.md)).
-
-## The gap
-
-1. No in-product "get USDC" path at the moment a user needs it.
-2. Free→paid transition is a hard 403 with no upgrade CTA, no "buy 10 generations," no holder
- benefit shown ("hold $THREE for up to 10× free quota").
-3. Quota hits and upgrade prompts aren't instrumented, so the biggest revenue leak is unmeasured.
-
-## What to build
-
-1. **Funding step at the point of need.** When a paid action lacks funds, show a real,
- inline funding flow (reuse the existing on-ramp / `fund` path — do not invent a fake one).
- Show real balance, real required amount, real options. Designed loading/error/success.
-2. **Upgrade / upsell surface before any 403.** When a free quota is about to be (or just
- was) exhausted, surface an actionable CTA: the relevant price, what a purchase unlocks, and
- the holder benefit from [three-tier.js](../../api/_lib/three-tier.js) (real tier, real
- multiplier — never a fake number). Link to the pricing surface (`08`) and to `$THREE`.
- This must appear on the real quota-gated paths (Forge generation, skill unlock, any
- metered x402 lane) — audit which endpoints return quota 403s and cover them.
-3. **Instrument the wall.** Add `QUOTA_EXCEEDED`, `UPGRADE_PROMPTED`, `UPGRADE_CLICKED`,
- `FUNDING_STARTED`, `FUNDING_SUCCEEDED`, `PAYMENT_INITIATED` to
- [src/analytics.js](../../src/analytics.js) and fire them at the real moments. No new vendor.
-4. **Holder-aware copy.** A $THREE holder hitting a wall sees their actual multiplier and the
- next tier's benefit — turning the wall into a reason to hold more, not a dead end.
-
-## Hard rules specific to this task
-
-- **$THREE is the only coin** anywhere in funding/upsell copy and links. USDC is settlement
- plumbing (fine); never name or link any other token. Holder benefits reference $THREE only.
-- Every amount, balance, quota, and multiplier is **real** (live balance / DB quota / tier
- lookup). No fabricated "$1,234" anywhere.
-
-## Definition of done
-
-README DoD, plus: a user with zero USDC can reach a working funding flow from a paywall; a
-user out of free quota sees a real, accurate upgrade CTA before being blocked; the new
-analytics events fire (verify in Network/analytics debug); holder vs non-holder copy both
-correct. Changelog (`feature`). Self-review, then improve the weakest moment in the flow.
-
-Delete this file when done.
diff --git a/prompts/production-grade/03-dynamic-og-and-social-proof.md b/prompts/production-grade/03-dynamic-og-and-social-proof.md
deleted file mode 100644
index ba94439b9..000000000
--- a/prompts/production-grade/03-dynamic-og-and-social-proof.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# Task 03 — Dynamic OG images + share buttons + real social proof
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track B —
-> Virality.** Independent; lands early. Coordinate with `04` (referral) on the share UI and
-> with `05` (SEO) on the OG/meta endpoints.
-
-## The thesis
-
-three.ws is intrinsically shareable — a rigged, talking 3D agent is a screenshot waiting to
-happen — but right now every agent and every coin shares the **same static `og-image.png`**.
-A link to your agent on X looks identical to everyone else's. That kills the single cheapest
-growth loop a platform like this has. Fix the share surface and the product spreads itself.
-
-## What exists today (read first)
-
-- **Static OG only on detail pages.** [pages/agent-detail.html](../../pages/agent-detail.html)
- (~line 16) and [pages/launch-detail.html](../../pages/launch-detail.html) (~line 20) both
- fall back to the generic `og-image.png`.
-- **A page-OG generator exists but only for static pages** — `/api/page-og` (used by the home
- page). There is no per-agent / per-coin / per-avatar OG route.
-- **Share panel exists** — [src/share-panel.js](../../src/share-panel.js): link / iframe /
- web-component snippets, QR via [src/erc8004/qr.js](../../src/erc8004/qr.js), proper
- `role="dialog"` + focus management. It's good — but it's a modal you have to go find; there
- are no share buttons in the detail-page heroes.
-- **No social proof on cards.** Marketplace ([src/marketplace.js](../../src/marketplace.js)),
- launches ([pages/launches.html](../../pages/launches.html)), gallery
- ([pages/gallery.html](../../pages/gallery.html)) show no follower/holder/view/like counts and
- no "trending" badges, even though the underlying feeds have the data.
-
-## What to build
-
-1. **Dynamic OG image routes.** Build real OG-image endpoints for agents, coins/launches, and
- gallery avatars (mirror the `/api/page-og` approach — server-rendered image with the
- agent's avatar render or coin logo, name/symbol, and a real stat or two). Wire
- `agent-detail.html` and `launch-detail.html` (and the avatar/gallery detail) to emit
- per-entity `og:image`, `og:title`, `og:description`, and Twitter card tags. Validate the
- cards render in a real share preview.
-2. **Share buttons in the hero.** Put a direct share affordance (copy link + X/Twitter intent,
- plus "embed") in the detail-page hero — not buried in a modal. Reuse
- [src/share-panel.js](../../src/share-panel.js); don't reimplement it. Keyboard + focus +
- ARIA correct.
-3. **Real social proof on cards and heroes.** Add the genuine signals the feeds already carry:
- holder count / market cap on coin cards, followers / chats / views on agent cards, likes /
- downloads on avatars, and a "🔥 trending" treatment for high-activity items (drive it from
- real activity data — e.g. [api/trending.js](../../api/trending.js), not a hardcoded list).
- Every number is real; if a count is 0, show a real 0 or omit gracefully.
-4. **Referral-aware links (coordinate with `04`).** Shared links from a signed-in user should
- carry their `ref=` code so a share is also a referral. Build the share side here; `04` owns
- the attribution. Don't double-implement — agree on the param.
-
-## Hard rules specific to this task
-
-- **$THREE only** in any token-related share/OG copy. Coin/launch OG images render whatever
- mint the launch record references at runtime (allowed — platform launch directory), but
- never hardcode or promote a specific non-$THREE mint in templates or copy.
-- OG endpoints must handle the missing/edge entity (deleted agent, no avatar yet, long
- name/emoji) without producing a broken image — design the fallback.
-
-## Definition of done
-
-README DoD, plus: pasting an agent URL and a coin URL into a link-preview tool shows distinct,
-correct, good-looking cards; share buttons work from the hero with keyboard; cards show real
-counts and trending treatment; shared links from a logged-in user carry `ref=`. OG routes
-have tests for the edge entities. Changelog (`feature`). Self-review, then improve the
-weakest card state.
-
-Delete this file when done.
diff --git a/prompts/production-grade/04-referral-program-surfaced.md b/prompts/production-grade/04-referral-program-surfaced.md
deleted file mode 100644
index 56b91b4bd..000000000
--- a/prompts/production-grade/04-referral-program-surfaced.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Task 04 — Surface the referral program (the growth loop that's already built)
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track B —
-> Virality.** The backend is done; this is almost entirely the missing front end + a couple
-> of incentive hooks. Coordinate with `03` on `ref=` propagation in shared links.
-
-## The thesis
-
-three.ws has a complete, real referral engine — and **zero UI for it**. Users have a referral
-code they can't see, earnings they can't watch accrue, and a leaderboard position nobody shows
-them. This is a fully built growth loop sitting behind a missing button. Surfacing it is one
-of the highest ROI tasks in the program: no new backend, pure activation of an existing asset.
-
-## What exists today (read first — it's real, don't rebuild it)
-
-- **Referral engine** — [api/_lib/referrals.js](../../api/_lib/referrals.js): every signup gets
- a collision-safe `referral_code`; `getMembershipCard()` returns the code, referred-user
- count, lifetime earnings, and a score; commission (default 5%, `REFERRAL_COMMISSION_BPS`) is
- credited on confirmed purchase via [api/_lib/purchase-confirm.js](../../api/_lib/purchase-confirm.js)
- (`creditReferralCommission`). Position is a 1-based signup ordinal today.
-- **It's data-only.** There is no copy-to-clipboard share card, no leaderboard UI, no
- "earn per signup" messaging, no `ref=` propagation into agent/share URLs, no funnel step.
-
-## What to build
-
-1. **Referral hub / share card.** A real surface (in the dashboard/account area and reachable
- from nav) that shows the user's actual code, their share link, lifetime earnings, referred
- count, and rank — all from `getMembershipCard()`. One-tap copy and a share affordance
- (reuse [src/share-panel.js](../../src/share-panel.js)). Designed empty state ("you haven't
- referred anyone yet — here's your link").
-2. **`ref=` propagation.** When a signed-in user shares an agent/coin/page (coordinate with
- `03`), embed their referral code. On landing, capture `ref=` → attribute on signup through
- the existing referral plumbing. Don't bypass the server logic in `referrals.js`.
-3. **A public referral leaderboard.** Turn the existing score/position into a real, shareable
- leaderboard surface (top referrers, the viewer's own rank highlighted). Real data only.
- This doubles as social proof and an SEO/landing surface (coordinate with `05`).
-4. **Incentive copy + one real reward hook.** Add honest "earn X% on every purchase you refer"
- messaging where it belongs (referral hub, maybe a homepage strip). Then wire **one** real,
- non-fake incentive milestone (e.g. refer N confirmed signups → a real, server-granted perk
- such as bonus free-generation quota via the existing quota system). It must grant a real
- benefit through real backend state — no cosmetic-only "badge" that does nothing.
-5. **Funnel events.** Add referral events to [src/analytics.js](../../src/analytics.js)
- (`REFERRAL_VIEWED`, `REFERRAL_COPIED`, `REFERRAL_LANDED`, `REFERRAL_SIGNUP`) at the real
- moments.
-
-## Hard rules specific to this task
-
-- Earnings, counts, rank, and rewards are **real** (from `referrals.js` / DB) — never fabricated.
-- Don't change the backend invariants in `referrals.js`/`purchase-confirm.js`; surface them.
-- **$THREE only** in any token-denominated reward/earning copy. USDC settlement is fine.
-
-## Definition of done
-
-README DoD, plus: a user can find, read, copy, and share their referral link; a `ref=` landing
-attributes correctly through the real engine; the leaderboard renders real data with the
-viewer highlighted; the one incentive milestone grants a real server-side benefit; events fire.
-Tests for `ref=` capture/attribution. Changelog (`feature`). Self-review, then improve the
-weakest moment (likely the empty state or the share preview).
-
-Delete this file when done.
diff --git a/prompts/production-grade/05-programmatic-seo.md b/prompts/production-grade/05-programmatic-seo.md
deleted file mode 100644
index ca608a41d..000000000
--- a/prompts/production-grade/05-programmatic-seo.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# Task 05 — Programmatic SEO: make every agent, skill, and coin crawlable
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track B —
-> Virality.** Coordinate with `03` (OG/meta endpoints) and `04` (leaderboard as a landing
-> surface). Independent otherwise.
-
-## The thesis
-
-The platform's growth surface area is its user-generated content — thousands of agents,
-skills, launches, avatars. Today almost none of it is crawlable: agent pages render
-client-side, marketplace listings have no structured data, and there are no high-intent
-content/landing pages. A $1B consumer platform earns a large share of acquisition from
-organic search; right now that channel is near zero. This task turns UGC into an indexable,
-compounding acquisition engine.
-
-## What exists today (read first)
-
-- **Static-page SEO only.** [scripts/inject-seo-meta.mjs](../../scripts/inject-seo-meta.mjs)
- backfills title/description/OG/JSON-LD onto **static** pages from
- [data/pages.json](../../data/pages.json). It does nothing for dynamic entity pages.
-- **Blog + changelog feeds exist** — `blog/` (auto-generated from `.md`),
- `public/changelog.{json,xml}`, sitemap via [vercel.json](../../vercel.json) routes.
-- **Discovery manifests exist** — `public/.well-known/openapi.yaml`, `agent-card.json`,
- `ai-plugin.json`, etc.
-- **The gap:** agent profiles (`/agents/:id` / `/agent/:id`), skill listings, and
- launch/coin pages are client-rendered with generic meta and no structured data; there's no
- programmatic SEO sweep, no entity sitemaps, and no high-intent content/tutorial landing pages
- to rank for "3D AI agent", "monetize an AI skill", "launch an agent token", etc.
-
-## What to build
-
-1. **Crawlable entity pages.** Ensure agent, skill, and launch/coin detail pages serve real,
- entity-specific `<title>`, meta description, canonical URL, OG/Twitter tags (reuse the
- dynamic OG endpoints from `03`), and **JSON-LD structured data** appropriate to the type
- (e.g. `Product`/`Offer` with real price + rating for skills once `07` ships reviews;
- `Person`/`CreativeWork` for agents). If pages are client-rendered, add server-rendered
- meta/SSR or prerendering for crawlers so the head is correct without a JS execution — pick
- the approach that fits the existing Vercel setup and document it. No cloaking: served
- content must match what users see.
-2. **Entity sitemaps.** Generate and serve sitemaps (or a sitemap index) covering live agents,
- public skills, and launches, refreshed on a sane cadence (a build step and/or cron). Wire
- into `robots.txt` / [vercel.json](../../vercel.json).
-3. **High-intent content/landing pages.** Add a small set of genuinely useful, real-content
- pages targeting high-intent queries (e.g. "make your first 3D AI agent", "monetize a skill
- with x402", "launch an agent token"). Real content, internal links to the product, correct
- meta — extend the existing blog/static pipeline; don't bolt on a new CMS.
-4. **Structured data for the catalog.** Add the marketplace/skill structured data and a
- machine-readable catalog where it helps discovery, consistent with the existing
- `.well-known` manifests.
-
-## Hard rules specific to this task
-
-- **No doorway/spam pages, no keyword-stuffed thin content.** Every generated/landing page
- must be genuinely useful and accurate, or it hurts the domain. Quality over volume.
-- **$THREE only** in token copy. Coin pages render runtime launch-record mints (allowed); never
- hardcode/promote a specific non-$THREE mint in templates or content.
-- Don't regress `npm run audit:pages` (route ↔ manifest parity) — register new routes in
- [data/pages.json](../../data/pages.json).
-
-## Definition of done
-
-README DoD, plus: an agent page, a skill page, and a coin page each return correct
-entity-specific head + valid JSON-LD (validate with a structured-data testing tool); sitemaps
-list live entities and are referenced from robots/sitemap config; the new content pages are
-live, useful, internally linked, and pass `audit:pages`. Changelog (`improvement`/`docs`).
-Self-review, then improve the weakest entity type's metadata.
-
-Delete this file when done.
diff --git a/prompts/production-grade/07-skill-reviews-and-revenue-attribution.md b/prompts/production-grade/07-skill-reviews-and-revenue-attribution.md
deleted file mode 100644
index 664773641..000000000
--- a/prompts/production-grade/07-skill-reviews-and-revenue-attribution.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Task 07 — Skill reviews/ratings + end-to-end revenue attribution
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track C —
-> Revenue.** Two tightly related halves: a trust signal (reviews) and a measurement spine
-> (attribution). Coordinate with `06` (creator dashboard consumes both) and `05` (reviews
-> feed SEO structured data).
-
-## The thesis
-
-A marketplace without reviews can't build buyer trust, and a business that can't trace
-"who spent what on whose skill, referred by whom" can't optimize pricing, discounts, payouts,
-or acquisition. Both are foundational to a $1B marketplace. The reviews **schema already
-exists** — the handlers and UI don't. Attribution events are **half-defined** — the revenue
-half is missing. Finish both.
-
-## What exists today (read first)
-
-- **Reviews schema, no handlers/UI.** A migration exists
- (`api/_lib/migrations/…skill_reviews.sql`) but there are no review endpoints and no review
- UI. Buyers cannot rate skills; creators get no feedback loop.
-- **Analytics stops at activation.** [src/analytics.js](../../src/analytics.js) defines an
- activation funnel and a `$THREE` purchase funnel, but there is **no** buyer-revenue funnel:
- no `SKILL_SEARCHED` / `SKILL_VIEWED` / `PAYMENT_INITIATED` / `PAYMENT_CONFIRMED` /
- `SKILL_UNLOCKED`, and no chained attribution to creator + referrer.
-- **Purchase confirmation is real** — [api/_lib/purchase-confirm.js](../../api/_lib/purchase-confirm.js)
- already credits referral commission on confirmed purchase; that's the join point for
- attribution.
-
-## What to build
-
-### A. Reviews & ratings
-1. **Endpoints**: create/read/update/delete a review (rating + text) for a skill, gated to
- buyers who actually purchased it (verify against purchase records). Aggregate rating per
- skill. Abuse controls (one review per buyer per skill; rate-limited; moderation hook).
-2. **UI**: show aggregate rating + reviews on skill/marketplace pages; let eligible buyers
- leave/edit a review; surface a creator-facing view of their reviews in the `06` dashboard.
- Designed empty/loading/error states; ARIA on the rating control; keyboard operable.
-3. **Structured data**: expose aggregate rating for `05`'s `Product`/`Offer` JSON-LD.
-
-### B. Revenue attribution funnel
-4. **Events**: add the buyer-revenue funnel to [src/analytics.js](../../src/analytics.js)
- (`SKILL_SEARCHED`, `SKILL_VIEWED`, `PAYMENT_INITIATED`, `PAYMENT_CONFIRMED`,
- `SKILL_UNLOCKED`) and fire them at the real moments in the marketplace + checkout paths.
-5. **Attribution chain**: at confirmed purchase
- ([purchase-confirm.js](../../api/_lib/purchase-confirm.js)), record the full chain — buyer →
- skill → creator → referrer → amount/net/fees — so the question "what % of signups buy within
- 7 days, and which channel/referrer drove it" is answerable. Persist it in a queryable shape
- (real table; reuse existing revenue/royalty tables where possible). No PII beyond what's
- already stored; respect the privacy policy.
-
-## Hard rules specific to this task
-
-- Reviews are **real and earned** — only genuine purchasers can review; never seed fake
- reviews or ratings, ever (that violates the no-fake-data rule and is fraud).
-- Attribution is **real** — derived from real purchase/referral rows, not synthesized.
-- **$THREE only** in token copy. USDC settlement amounts are fine.
-
-## Definition of done
-
-README DoD, plus: a real buyer can review a purchased skill and a non-buyer cannot; aggregate
-ratings render and feed JSON-LD; the buyer-revenue funnel events fire end-to-end; a confirmed
-purchase writes a complete attribution row that the `06` dashboard can read. Tests for the
-buyer-only review gate and the attribution write. Changelog (`feature`). Self-review, then
-improve the weakest state (likely the review empty/first-review prompt).
-
-Delete this file when done.
diff --git a/prompts/production-grade/08-checkout-completion-and-unified-pricing.md b/prompts/production-grade/08-checkout-completion-and-unified-pricing.md
deleted file mode 100644
index 593f6c18e..000000000
--- a/prompts/production-grade/08-checkout-completion-and-unified-pricing.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# Task 08 — Complete checkout (EVM, receipts, retry) + one coherent pricing surface
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track C —
-> Revenue.** Pairs with `02` (funding/upsell), `06`/`07` (creator/attribution). Touches the
-> x402 payment path — coordinate with `10` (payments integrity) so you don't conflict on
-> idempotency/settlement.
-
-## The thesis
-
-Checkout is where intent becomes revenue, and three.ws's is half-built: Solana-only, no
-receipt, no failed-payment recovery, no abandonment signal. Meanwhile pricing is scattered
-across three subsystems with no single place a buyer (or a finance team) can understand what
-things cost. A $1B business has a frictionless, recoverable checkout and one legible price
-surface. Build both.
-
-## What exists today (read first)
-
-- **Checkout prep** — [api/x402-checkout.js](../../api/x402-checkout.js): prepares/encodes
- **Solana** transactions only. No EVM path, no email receipt, no retry-on-failure, no
- abandonment tracking. (There's a prepare test:
- [tests/x402-checkout-prepare.test.js](../../tests/x402-checkout-prepare.test.js).)
-- **x402 paid endpoints + checkout core** — [public/x402.js](../../public/x402.js),
- [public/x402-pay-core.js](../../public/x402-pay-core.js), [api/_lib/x402.js](../../api/_lib/x402.js)
- and `api/_lib/x402/*`.
-- **Pricing is fragmented:** Forge tiers in [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js)
- (USDC atomics), skill pricing in [api/_lib/skill-pricing-rules.js](../../api/_lib/skill-pricing-rules.js)
- / `agent_skill_prices`, subscriptions in [api/subscriptions.js](../../api/subscriptions.js),
- holder discounts in [api/_lib/three-tier.js](../../api/_lib/three-tier.js). The public
- `pages/pricing.html` only describes seat tiers, not per-API/skill pricing.
-- **Email framework exists** — [api/_lib/email.js](../../api/_lib/email.js) (Resend) already
- sends referral/verification mail; reuse it for receipts.
-
-## What to build
-
-1. **EVM checkout path.** Add Base/EVM payment support alongside Solana in the checkout flow
- (the platform already supports EVM payout wallets and x402 on Base — wire the buyer side).
- Real transaction prep/verify/settle; no stub.
-2. **Receipts.** On confirmed payment, send a real email receipt via
- [email.js](../../api/_lib/email.js) and persist a retrievable receipt record (buyer can view
- past purchases). Real amounts, real tx links.
-3. **Failed-payment recovery.** Detect failed/expired/abandoned payment attempts and offer a
- real retry path; don't leave the buyer stranded on an error. Coordinate idempotency with
- `10` so a retry can't double-charge.
-4. **Abandonment tracking.** Emit `CHECKOUT_STARTED` / `CHECKOUT_ABANDONED` /
- `CHECKOUT_COMPLETED` to [src/analytics.js](../../src/analytics.js) so cart abandonment is
- measurable (it currently isn't).
-5. **One pricing surface.** Build a single, accurate pricing page/section that reflects the
- **real** numbers from all four pricing subsystems (Forge tiers, skill pricing, subscriptions,
- holder discounts) — computed, not hand-copied, so it can't drift. Show the buyer their actual
- $THREE-holder discount when signed in.
-
-## Hard rules specific to this task
-
-- Money is real: amounts, fees, discounts, balances all from real config/chain/DB.
-- **$THREE only** in token copy. USDC is settlement plumbing — fine to name as the currency.
-- Don't weaken the x402 verify/settle ordering or idempotency — align with `10`.
-
-## Definition of done
-
-README DoD, plus: a buyer can complete a real purchase on **both** Solana and EVM, receives a
-real receipt, can recover a failed attempt without double-charging, and the pricing surface
-shows accurate computed prices including the holder discount; abandonment events fire. Tests
-extend [tests/x402-checkout-prepare.test.js](../../tests/x402-checkout-prepare.test.js) to cover
-EVM prep + the retry/idempotency guard. Changelog (`feature`). Self-review, then improve the
-weakest path (likely the failure/retry UX).
-
-Delete this file when done.
diff --git a/prompts/production-grade/09-resilience-external-calls.md b/prompts/production-grade/09-resilience-external-calls.md
deleted file mode 100644
index 103f54f4f..000000000
--- a/prompts/production-grade/09-resilience-external-calls.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# Task 09 — Resilience sweep: no naked external call anywhere
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track D —
-> Reliability.** High priority, lands early. Coordinate with `10` (payments) on the
-> facilitator path and `12` (observability) on how failures are logged.
-
-## The thesis
-
-A platform whose handlers hang for 60s when Helius is slow, or 500 when a facilitator blips,
-is not a $1B platform — it's a platform one upstream incident away from looking broken. The
-repo already has the right primitive (`resilience.js`, cockatiel) but **<2% of call sites use
-it**. Most `fetch`/RPC calls to Solana, pump.fun, forge providers, the x402 facilitator, and
-the LLMs are naked: no timeout, no retry, no circuit breaker. Close that systematically.
-
-## What exists today (read first — reuse, don't reinvent)
-
-- **Resilience helper** — [api/_lib/resilience.js](../../api/_lib/resilience.js): `withBreaker()`
- and friends (cockatiel). Adopted in only a handful of places (e.g.
- [api/cron/forge-seed-cron.js](../../api/cron/forge-seed-cron.js) circuit state,
- provider-health cooldown). This is the pattern to spread. (User memory: cockatiel is the
- sanctioned resilience helper; prefer vetted OSS, additive.)
-- **Naked upstreams to fix** (non-exhaustive — audit for the rest):
- - Solana RPC via the shared connection in [api/pump/[action].js](../../api/pump/[action].js),
- [api/pump/launch-agent.js](../../api/pump/launch-agent.js) — no AbortSignal timeout.
- - Forge providers (Replicate/NVIDIA/HF) in [api/forge.js](../../api/forge.js) — submit + poll
- with no timeout/breaker; polling has no backoff.
- - x402 facilitator verify/settle in [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js) — no
- timeout, no fallback when the facilitator is down.
- - Image fetch/decode in [api/_lib/forge-image-validate.js](../../api/_lib/forge-image-validate.js)
- — no AbortSignal; a never-closing socket hangs the handler.
- - LLM fallover in [api/chat.js](../../api/chat.js) / [api/_lib/chat-models.js](../../api/_lib/chat-models.js)
- — retries immediately on 429 instead of backing off.
- - Redis-backed caches/limiters ([api/_lib/cache.js](../../api/_lib/cache.js),
- [api/_lib/x402/idempotency-cache.js](../../api/_lib/x402/idempotency-cache.js)) — no timeout
- on Redis ops; cache.js swallows errors silently (masking outages).
-
-## What to build
-
-1. **A single resilient-fetch wrapper** (extend [resilience.js](../../api/_lib/resilience.js))
- that every outbound call routes through: explicit per-call **timeout** (AbortSignal),
- bounded **retry with backoff** on transient (429/5xx/network) errors only, and a **circuit
- breaker** per upstream so a dead dependency fails fast instead of hanging. Sensible
- per-upstream defaults; overridable.
-2. **Migrate the high-value call sites** above (and the rest you find — grep for `fetch(` and
- raw RPC usage in `api/` and `workers/`) onto it. Each external call must have a timeout and
- a real fallback or a clean, fast error — never an indefinite hang and never a silent swallow.
-3. **Stop silent degradation.** [cache.js](../../api/_lib/cache.js) and the limiter fallback
- must still degrade gracefully **but** surface the degradation (a metric/log via `12`), so a
- Redis outage is visible instead of masked.
-4. **Bound the cost paths.** Forge provider polling gets backoff; the facilitator path degrades
- sensibly (coordinate with `10`).
-
-## Hard rules specific to this task
-
-- **No errors without solutions** (CLAUDE.md): every wrapped call has a defined behavior on
- timeout/open-circuit — a real fallback, a cached value, or a clean typed error the caller
- handles. Never a bare throw that 500s the user.
-- Don't change business logic or response shapes — this is a reliability layer, transparent to
- callers on the happy path.
-- Be careful not to retry **non-idempotent** operations blindly (payments, launches) — retry
- only where safe; coordinate with `10`/`11`.
-
-## Definition of done
-
-README DoD, plus: the high-value upstreams are wrapped with timeout + breaker + bounded retry;
-a forced upstream failure (simulate a slow/500 dependency in a test) fails fast with the
-defined fallback instead of hanging; cache/limiter degradation emits a signal. Vitest covers
-the wrapper (timeout fires, breaker opens, retry backs off, non-idempotent calls aren't
-retried). Changelog (`infra`/`improvement`). Self-review, then extend the sweep to the next
-batch of naked calls you found.
-
-Delete this file when done.
diff --git a/prompts/production-grade/10-payments-integrity.md b/prompts/production-grade/10-payments-integrity.md
deleted file mode 100644
index 6c04e7e48..000000000
--- a/prompts/production-grade/10-payments-integrity.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Task 10 — Payments integrity: idempotency, reconciliation, refunds, audit
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track D —
-> Reliability.** The most consequential reliability task — it's real money. Coordinate with
-> `08` (checkout), `09` (facilitator resilience), `11` (caps).
-
-## The thesis
-
-Nothing erodes trust — or a valuation — faster than charging someone twice, or charging them
-and not delivering. three.ws's x402 stack is solid but has integrity gaps: idempotency is
-opt-in per endpoint and missing on several, settlement can fail after verify succeeds with no
-reconciliation, there's no refund path when a paid generation fails, and the audit log can't
-be queried by transaction. A $1B payments surface closes every one of these.
-
-## What exists today (read first)
-
-- **Paid-endpoint core** — [api/_lib/x402-paid-endpoint.js](../../api/_lib/x402-paid-endpoint.js):
- supports a payment-identifier (idempotency) extension, but it's **optional per endpoint**.
- `api/x402/forge.js` and `api/x402/pump-launch.js` use it; **`api/x402/vanity.js` and
- `api/x402/dance-tip.js` do not** — a timeout between verify and settle can double-charge.
-- **Verify/settle** — [api/_lib/x402-spec.js](../../api/_lib/x402-spec.js): `verifyPayment()` /
- `settlePayment()` call the facilitator; if settle fails after verify succeeds, the handler
- 500s while the buyer may be charged — and there's **no reconciliation job**.
-- **Idempotency cache** — [api/_lib/x402/idempotency-cache.js](../../api/_lib/x402/idempotency-cache.js):
- no lock, so two concurrent requests with the same paymentId can both miss and settle twice.
-- **Audit log** — [api/_lib/x402/audit-log.js](../../api/_lib/x402/audit-log.js): stores events
- but offers no query-by-transaction API, so reconciliation is manual.
-
-## What to build
-
-1. **Idempotency everywhere.** Make the payment-identifier path **mandatory** for every paid
- endpoint (verify → settle keyed on a stable payment id). Add it to the endpoints missing it
- (`vanity`, `dance-tip`, and any others you find). A retried request returns the original
- result, never a second charge.
-2. **Concurrency-safe settlement.** Add a real lock (Redis SETNX/lease or equivalent) around
- settle keyed by payment id so parallel requests can't both settle. Handle lock
- acquisition/expiry cleanly.
-3. **Settlement reconciliation job.** A cron (under `api/cron/`, hardened per `13`) that finds
- payments stuck in "verified-but-not-settled" (or settled-but-not-fulfilled) and resolves
- them — completes settlement, fulfills, or flags for refund. Idempotent and observable (`12`).
-4. **Refund / credit-back path.** When a paid action fails *after* settlement (provider 5xx,
- RPC error), trigger a real refund or platform credit-back through a defined mechanism — not
- manual ops. Record it in the ledger and notify the buyer
- ([api/_lib/notify.js](../../api/_lib/notify.js) / email).
-5. **Queryable audit.** Add an owner/admin endpoint to query settlement/audit events by
- transaction id and by buyer, so any charge can be traced end-to-end.
-
-## Hard rules specific to this task
-
-- **Real funds, real chain.** Every verify/settle/refund hits the real facilitator/chain. No
- simulated settlement, no fake refund. Test with synthetic placeholders, never a real
- third-party mint (**$THREE** CA or `THREEsynthetic1111…` only).
-- Preserve the verify→grind/generate→settle ordering where the endpoint depends on it.
-- Don't retry settlement in a way that can double-settle — that's the whole point; coordinate
- with `09`'s retry policy (settlement is non-idempotent unless keyed + locked).
-
-## Definition of done
-
-README DoD, plus: every paid endpoint enforces idempotency (a replayed payment returns the
-original result, no second charge); concurrent same-id settles are serialized; the
-reconciliation cron resolves stuck payments; a post-settlement failure produces a real refund
-+ buyer notification; audit is queryable by tx. Vitest covers double-charge prevention, the
-concurrency lock, and the reconciliation logic. Changelog (`security`/`fix`). Self-review,
-then harden the next-weakest payment path.
-
-Delete this file when done.
diff --git a/prompts/production-grade/11-rate-limit-and-abuse-caps.md b/prompts/production-grade/11-rate-limit-and-abuse-caps.md
deleted file mode 100644
index 1c1d74098..000000000
--- a/prompts/production-grade/11-rate-limit-and-abuse-caps.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Task 11 — Per-principal spend caps + global concurrency ceilings
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track D —
-> Reliability.** Protects platform margin and prevents abuse. Coordinate with `09` (resilience)
-> and `12` (so cap hits are observable).
-
-## The thesis
-
-Several of the most expensive operations on the platform — paid 3D generation, premium LLM
-chat, token launches, vanity grinding — are throttled per-IP but **not capped per principal or
-globally**. An authenticated user (or a botnet spread across IPs) can run up real platform cost
-with no ceiling: $9/min of Claude tokens, hundreds of paid generations across 10 IPs, unbounded
-launches from a compromised agent. A $1B platform protects its unit economics by construction.
-
-## What exists today (read first)
-
-- **Rate limiter** — [api/_lib/rate-limit.js](../../api/_lib/rate-limit.js): per-IP/per-route
- buckets (e.g. `chatUser` 40/min, forge per-user/hr, vanity publish 12/10m). Real and used —
- but it's request-count throttling, not **spend** or **global concurrency** control, and it
- doesn't differentiate cost per model/provider.
-- **Forge scaling** — [api/_lib/forge-scale.js](../../api/_lib/forge-scale.js): per-provider +
- per-user slots, but **no global ceiling** on total concurrent paid Replicate/NVIDIA jobs.
-- **Cost-bearing endpoints lacking principal/global caps:**
- [api/chat.js](../../api/chat.js) (no per-model spend cap — Claude/GPT cost ~10× free Groq),
- [api/x402/pump-launch.js](../../api/x402/pump-launch.js) and
- [api/pump/launch-agent.js](../../api/pump/launch-agent.js) (no per-agent daily launch
- ceiling), [api/forge.js](../../api/forge.js) (no global generation concurrency cap),
- vanity grind ([api/x402/vanity.js](../../api/x402/vanity.js), grind queue depth unbounded).
-
-## What to build
-
-1. **Per-principal spend/usage caps.** Add a real, configurable per-user (and per-agent where
- relevant) ceiling on expensive operations over a rolling window — denominated in cost, not
- just request count. Premium-LLM chat, paid generation, launches, and grinding each get a
- sane cap with a clear, actionable 429/upgrade response (coordinate the upgrade CTA with
- `02`). Caps must be **cost-aware**: a Claude call counts more than a free-Groq call.
-2. **Global concurrency ceilings.** Add a platform-wide cap on total concurrent
- cost-bearing jobs (paid forge generations, grind workers) so a coordinated surge can't blow
- the budget. Excess requests queue or get a clean "busy, try shortly" with a retry hint —
- never silently dropped, never unbounded.
-3. **Per-agent launch ceiling.** Cap token launches per agent/day so a compromised custodial
- agent can't spam launches. Real ceiling, real enforcement, real audit entry on hit.
-4. **Make limits observable.** Emit a metric/log on every cap hit (via `12`) and a real signal
- when a global ceiling is saturated (input to `12`'s status + alerting).
-
-## Hard rules specific to this task
-
-- Caps protect cost **without** breaking legitimate power users: tune to real provider pricing,
- give holders their real higher quota ([three-tier.js](../../api/_lib/three-tier.js)), and
- always return an actionable response (why blocked, when to retry, how to upgrade).
-- **$THREE only** in any upgrade/quota copy.
-- Don't double-charge or lose work when a request is queued/throttled — coordinate with `10`.
-
-## Definition of done
-
-README DoD, plus: each expensive endpoint enforces a per-principal cost-aware cap with an
-actionable response; a global concurrency ceiling bounds total paid jobs; per-agent launch
-ceiling enforced; every cap hit is observable; holder quotas honored. Vitest covers cap
-enforcement (per-principal, global, per-agent) and the cost-weighting. Changelog
-(`infra`/`security`). Self-review, then close the next-weakest unbounded cost path.
-
-Delete this file when done.
diff --git a/prompts/production-grade/12-observability-and-status.md b/prompts/production-grade/12-observability-and-status.md
deleted file mode 100644
index 9b6aeebbf..000000000
--- a/prompts/production-grade/12-observability-and-status.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# Task 12 — Observability: tracing, server-side Sentry, secret scrubbing, live status
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track D —
-> Reliability.** Foundational — `09`/`10`/`11`/`13` all emit into what you build here.
-> Lands early so the other Track D tasks have somewhere to report.
-
-## The thesis
-
-You can't operate a $1B platform you can't see. Today errors are mostly `console.log`, there's
-no request tracing across the Vercel→upstream boundary, server-side exceptions in functions
-largely aren't captured, secrets can leak into logs, and `/api/status` reports green even when a
-core dependency is down. This task makes the platform observable and its health honest.
-
-## What exists today (read first)
-
-- **Sentry, thinly wired** — [api/_lib/sentry.js](../../api/_lib/sentry.js) (fire-and-forget,
- no retry, no URL scrubbing); only ~27 `captureException` calls across ~360 handlers, mostly
- on the client ([api/client-errors.js](../../api/client-errors.js)). Server exceptions in
- functions are largely uncaptured.
-- **Logging is unstructured** — `console.*` throughout `api/` and `workers/`; no request id /
- trace id propagation in [api/_lib/http.js](../../api/_lib/http.js).
-- **Secret-leak risk** — [api/_lib/http.js](../../api/_lib/http.js) logs raw `err.message` on
- 5xx (RPC URLs often embed API keys); redaction (`SENSITIVE_QUERY_KEYS`) misses `api-key`,
- `sig`, `auth`, etc.
-- **Status is shallow** — [api/status.js](../../api/status.js) returns cached cron-probe data
- and does **not** check live deps (Redis limiter, LLM providers via
- [api/_lib/llm-health.js](../../api/_lib/llm-health.js), Solana RPC). Forge/LLM health
- ([api/_lib/forge-health.js](../../api/_lib/forge-health.js)) exists but isn't reflected.
- Status page UI: [pages/status.html](../../pages/status.html).
-
-## What to build
-
-1. **Structured logging + request tracing.** A small structured logger (level, message,
- context, request id, route) used across handlers via [http.js](../../api/_lib/http.js).
- Generate/propagate a request/trace id (`x-request-id`) through inbound handling and outbound
- calls (tie into `09`'s wrapper) so a single request can be followed end to end.
-2. **Real server-side error capture.** Route handler exceptions through
- [sentry.js](../../api/_lib/sentry.js) (or equivalent) with request/trace context, at the
- `http.js` boundary so coverage is uniform — not 27 ad-hoc call sites. Add retry so a dropped
- Sentry POST doesn't lose the event silently.
-3. **Secret scrubbing.** Scrub secrets from everything logged or sent to Sentry: redact
- credentials in URLs (RPC keys), expand the sensitive-key list (`api-key`, `sig`, `auth`,
- `token`, authorization headers), and never serialize a keypair/secret. Add a test that a
- known-secret-shaped string never reaches a log/Sentry payload.
-4. **Honest live status.** Make [api/status.js](../../api/status.js) probe **live**
- dependencies — limiter/Redis reachability, LLM provider health
- ([llm-health.js](../../api/_lib/llm-health.js)), forge backend health
- ([forge-health.js](../../api/_lib/forge-health.js)), Solana RPC — and reflect degraded
- states (not just hard down). Surface per-component status on
- [pages/status.html](../../pages/status.html) with designed states. Include cron
- freshness (from `13`) so "rewards-distribute last ran 6h ago" is visible.
-5. **Metrics sink for the other tasks.** Provide the lightweight metric/log hook that `09`
- (degradation), `11` (cap hits), `13` (cron outcomes) emit into.
-
-## Hard rules specific to this task
-
-- **Never log or transmit a secret.** This is a security task as much as an ops one — the
- scrubbing test is mandatory.
-- Observability must not add meaningful latency or block the request path (fire-and-forget with
- bounded cost; degrade silently if the sink is down — but record that it degraded).
-
-## Definition of done
-
-README DoD, plus: a request can be traced by id through handler + upstreams; handler exceptions
-reach Sentry with context; the secret-scrubbing test passes (no secret in any log/payload);
-`/api/status` reflects real live-dependency and cron-freshness state and the status page shows
-per-component health with designed states. Vitest covers scrubbing + the status aggregation
-logic. Changelog (`infra`/`security`). Self-review, then widen logging coverage to the next
-subsystem.
-
-Delete this file when done.
diff --git a/prompts/production-grade/13-cron-hardening.md b/prompts/production-grade/13-cron-hardening.md
deleted file mode 100644
index ebc9aebdb..000000000
--- a/prompts/production-grade/13-cron-hardening.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Task 13 — Cron hardening: locks, run history, failure alerting
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track D —
-> Reliability.** Depends on `12` (emits run outcomes + freshness into status). The
-> reconciliation cron from `10` and the asset/seed crons all benefit.
-
-## The thesis
-
-Background jobs are where silent failures live. three.ws runs real crons — rewards
-distribution, forge seeding, oracle ticks, uptime checks — but they can double-run (no
-distributed lock), fail silently (inconsistent error handling), and never record when they last
-succeeded (so staleness is invisible). A $1B platform's automated money/asset jobs are
-locked, observable, alerting, and auditable.
-
-## What exists today (read first)
-
-- **Cron dispatcher** — [api/cron/[name].js](../../api/cron/[name].js): dynamic dispatch;
- per-cron error handling is inconsistent (some `captureException`, most `console.error`).
-- **No concurrency lock** — [api/cron/forge-seed-cron.js](../../api/cron/forge-seed-cron.js)
- runs per-minute; if a run exceeds 60s, Vercel can spawn a second instance that races DB state.
-- **No run history** — nothing records each cron's last-success time, so `/api/status` can't
- report staleness and a stalled `rewards-distribute` goes unnoticed for hours.
-- **Uptime check is narrow** — [api/cron/uptime-check.js](../../api/cron/uptime-check.js) probes
- ~5 hardcoded public paths; new critical endpoints (e.g. paid flows) aren't monitored, and
- it's GET-only (no signed/payment flow coverage).
-- **Shared secret** — a single `CRON_SECRET` ([api/_lib/env.js](../../api/_lib/env.js)) guards
- all crons.
-
-## What to build
-
-1. **Distributed lock per cron.** A real lease/lock (Redis SETNX with TTL or equivalent) so a
- given cron has at most one active run; a slow run blocks the next tick instead of racing.
- Release on completion; auto-expire on crash.
-2. **Run-history / last-success tracking.** Record every cron run (name, start, end, outcome,
- duration, error) to a real table. Expose last-success + last-error so `12`'s `/api/status`
- can show freshness ("X last ran N min ago"). Add queue-depth visibility where a cron drains a
- work table (e.g. forge seed jobs) so backups are detectable.
-3. **Uniform failure handling + alerting.** Standardize cron error handling (every cron
- captures to Sentry via `12` and emits a run-history failure row), and alert on
- failure/staleness/queue-backup through the existing ops channel (the uptime check already
- pages Telegram on failure — reuse that path; don't add a new vendor).
-4. **Broaden synthetic monitoring.** Extend [uptime-check.js](../../api/cron/uptime-check.js) to
- cover the critical endpoints that matter now (including a safe synthetic check of a paid/
- signed path where feasible) instead of the 5 hardcoded public GETs.
-5. **(If low-risk) per-cron secrets.** Move toward per-cron secrets or signed invocation so a
- single leaked secret can't trigger every cron. Keep it simple; don't break existing schedules.
-
-## Hard rules specific to this task
-
-- **Idempotent crons.** Locking + run-history must not cause a missed run to silently skip
- money/asset work — a lock that can't be acquired this tick should be picked up next tick, not
- dropped. Money jobs (rewards, reconciliation from `10`) must never double-pay.
-- Don't change cron schedules or break the dispatcher contract; harden in place.
-
-## Definition of done
-
-README DoD, plus: each cron holds a lock (a forced overlap doesn't double-run); run history
-records every execution with outcome; `/api/status` shows real cron freshness; failures/
-staleness/queue-backups alert through the existing channel; synthetic monitoring covers the
-real critical paths. Vitest covers the lock (no double-run) and the run-history write.
-Changelog (`infra`). Self-review, then harden the next-weakest job.
-
-Delete this file when done.
diff --git a/prompts/production-grade/14-e2e-tests-and-ci-gate.md b/prompts/production-grade/14-e2e-tests-and-ci-gate.md
deleted file mode 100644
index a450941a1..000000000
--- a/prompts/production-grade/14-e2e-tests-and-ci-gate.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Task 14 — E2E tests for the money paths + put Playwright in the merge gate
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track E —
-> Engineering excellence.** Lands early; it's the safety net every other task ships behind.
-> Coordinate with `08`/`10` (checkout/payments specs) so E2E covers the real flow.
-
-## The thesis
-
-The critical flows that *make the money* — checkout/x402 payment, signup/auth, Forge
-generation, avatar creation — have thin or no end-to-end coverage, and Playwright **isn't in
-the CI merge gate** (it's manual-only). That means a regression in checkout can ship green. A
-$1B platform gates its revenue paths behind automated browser tests that block merge.
-
-## What exists today (read first)
-
-- **Unit tests are solid** — ~219 vitest files; Forge, avatar, wallet, on-chain parity covered
- ([tests/](../../tests/)).
-- **E2E is thin** — [playwright.config.js](../../playwright.config.js) runs ~10 specs in
- [tests/e2e/](../../tests/e2e/) (e.g. `coin-buy-trade.spec.js`, `nav-auth.spec.js`). There is
- **no** end-to-end test for the main x402 checkout/payment modal, the full signup/identity
- flow, the Forge text→3D happy path, or avatar creation.
-- **CI doesn't gate E2E** — [.github/workflows/ci.yml](../../.github/workflows/ci.yml) runs
- lint/vitest/build but `npm run test:e2e` is not in the merge gate.
-- **No coverage reporting** — [vitest.config.js](../../vitest.config.js) has no coverage config;
- the tested % of API handlers is unknown.
-
-## What to build
-
-1. **E2E specs for the critical flows** (real browser, real app via `npm run dev`, against real
- or properly-seeded test data — no mocked happy paths that hide breakage):
- - **Checkout / x402 payment** — the full pay flow (coordinate with `08`/`10`): quote →
- pay → confirm → unlock/receipt, including the failure/retry branch.
- - **Signup / auth** — complete the identity flow (extend
- [tests/e2e/nav-auth.spec.js](../../tests/e2e/nav-auth.spec.js)): email/SIWS/SIWE/OAuth
- callback chain through to a signed-in session.
- - **Forge text→3D** — prompt → generate → result rendered (free lane), with the empty/error
- states asserted.
- - **Avatar creation** — create/upload → rigged → reachable agent page.
-2. **Put Playwright in the CI gate.** Add an E2E job to
- [.github/workflows/ci.yml](../../.github/workflows/ci.yml) that runs the specs on PR and
- **blocks merge** on failure. Make it reliable (seeded data, retries on genuine flake only,
- sensible timeouts) — a flaky gate gets ignored, which is worse than none.
-3. **Coverage reporting.** Add coverage (c8/v8) to [vitest.config.js](../../vitest.config.js),
- report it in CI, and set a floor on **changed** files so new code can't ship untested.
- Don't retrofit a giant global threshold that blocks unrelated work — gate the diff.
-
-## Hard rules specific to this task
-
-- **Real flows, real assertions.** E2E that stubs the thing it claims to test is worse than no
- test. Use real endpoints / seeded test fixtures; if a flow needs test funds, use a synthetic
- placeholder (**$THREE** CA or `THREEsynthetic1111…`), never a real third-party mint.
-- The gate must be **trustworthy**: if it's flaky, fix the flake or quarantine the spec
- explicitly with a tracked reason — never `continue-on-error` the whole job to make it pass.
-
-## Definition of done
-
-README DoD, plus: the four critical flows have passing E2E specs (including a failure branch
-for checkout); the E2E job runs on PR and blocks merge; coverage is reported and a changed-files
-floor is enforced; the gate is green and not flaky over repeated runs. Changelog
-(`infra`/`improvement` — or omit if you judge it internal-only per CLAUDE.md). Self-review,
-then add the next-most-valuable E2E flow you noticed was uncovered.
-
-Delete this file when done.
diff --git a/prompts/production-grade/15-ci-security-and-quality-gates.md b/prompts/production-grade/15-ci-security-and-quality-gates.md
deleted file mode 100644
index 9de6e0276..000000000
--- a/prompts/production-grade/15-ci-security-and-quality-gates.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Task 15 — CI hardening: dependency scanning, blocking typecheck, bundle budget
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track E —
-> Engineering excellence.** Independent of `14` but completes the CI story. Mostly CI/config
-> work — much of it may be internal-only (no changelog entry) per CLAUDE.md.
-
-## The thesis
-
-A $1B platform doesn't merge unvetted dependencies, ship type-unsafe contract changes, or let
-multi-megabyte bundles slip in silently. three.ws's CI is good but has three holes: no
-dependency/vulnerability scanning, typecheck is advisory (`continue-on-error`), and the bundle
-size limit is a warning, not a gate. Close them.
-
-## What exists today (read first)
-
-- **CI** — [.github/workflows/ci.yml](../../.github/workflows/ci.yml): lint, vitest, source
- guards, build check. Typecheck runs with `continue-on-error: true` (~line 78) — advisory only.
-- **No dependency scanning** — no `.github/dependabot.yml`, no `npm audit` gate, no SBOM. With
- ~20 workspaces and 100+ direct deps, transitive CVEs can ship unnoticed.
-- **Bundle limit is a warning** — [vite.config.js](../../vite.config.js)
- `chunkSizeWarningLimit: 1000` (~line 219) warns but never fails; multi-MB chunks ship silently.
-- **Typecheck setup** — `npm run typecheck` (`tsc -p jsconfig.json`) passes today (0 errors per
- the audit), so flipping it to blocking is low-risk and locks in the win.
-
-## What to build
-
-1. **Dependency / vulnerability scanning in CI.** Add Dependabot (`.github/dependabot.yml`) for
- the npm workspaces (grouped, sensible cadence) **and** a CI step that runs `npm audit` (or an
- equivalent scanner) and fails on high/critical advisories. Tune the severity threshold so the
- gate is meaningful but not noise — document any allowlisted advisory with a reason.
-2. **Make typecheck blocking.** Flip the typecheck job off `continue-on-error` in
- [ci.yml](../../.github/workflows/ci.yml) now that it's clean, so a type regression blocks
- merge. If flipping surfaces latent errors, fix them (don't re-disable). Consider adding
- `@ts-check` to high-value `api/` handlers incrementally to widen real coverage — but don't
- boil the ocean; the gate is the win.
-3. **Bundle-size budget gate.** Turn the bundle limit into a real gate: fail CI when a chunk
- exceeds a budget you set from current real sizes (with a little headroom), so regressions are
- caught. Keep heavy-but-intentional chunks (three.js, solana) within explicit, documented
- budgets rather than an undifferentiated global number.
-4. **Wire the existing audit scripts into the gate.** The repo already has
- `audit:handlers`/`audit:pages`/`audit:mcp`/`audit:deploy` — ensure the ones that should block
- merge actually run in CI (audit which are gated vs manual; close the gaps).
-
-## Hard rules specific to this task
-
-- **Gates must be trustworthy, not theatrical.** A scanner that always fails on irrelevant
- advisories gets bypassed. Set thresholds a real team would keep green, and document
- exceptions.
-- Don't break existing green CI for unrelated PRs. Roll out blocking gates in a way that's
- immediately passing on `main` (fix-forward, not disable).
-
-## Definition of done
-
-README DoD adapted for infra: Dependabot configured; an `npm audit` (or equivalent) gate fails
-on high/critical; typecheck is blocking and green; a bundle-size budget gate is in place and
-green; the appropriate `audit:*` scripts run in CI. Demonstrate each gate catches a planted
-regression (then revert the plant). Changelog only if user-visible (likely omit — internal).
-Self-review, then tighten the weakest gate.
-
-Delete this file when done.
diff --git a/prompts/production-grade/16-performance-and-assets.md b/prompts/production-grade/16-performance-and-assets.md
deleted file mode 100644
index f23e27131..000000000
--- a/prompts/production-grade/16-performance-and-assets.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# Task 16 — Performance: lazy-load heavy GLBs, move the animation set to CDN, watch CWV
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track E —
-> Engineering excellence.** Independent. Touches the asset pipeline and Vite config — be
-> careful not to break the build (read the `npx vercel build` trap in the README).
-
-## The thesis
-
-A 3D platform lives or dies on load performance: a homepage that blocks first paint on
-multi-megabyte avatar decodes, and a 200MB+ animation set committed to git and shipped on every
-deploy, are exactly the things that tank Core Web Vitals and bounce mobile users. Speed is a
-feature — and at $1B scale, a ranked one. Make the heavy stuff lazy and off the critical path.
-
-## What exists today (read first)
-
-- **Optimization tooling exists** — [scripts/compress-glbs.mjs](../../scripts/compress-glbs.mjs)
- / [scripts/optimize-glb.mjs](../../scripts/optimize-glb.mjs) (WebP texture compression);
- Vite prebundles three.js, defers the Draco loader, and splits chunks
- ([vite.config.js](../../vite.config.js)).
-- **But the heavy assets aren't managed for first paint:**
- - Avatar GLBs are 160KB–3.2MB each in [public/avatars/](../../public/avatars/) and are loaded
- eagerly by avatar pickers (`/start`, `/create`) — decode blocks first paint.
- - The animation set in [public/animations/](../../public/animations/) is **~200MB committed to
- git**, redownloaded every deploy, with no clear per-page loading story.
- - [vite.config.js](../../vite.config.js) `chunkSizeWarningLimit` only warns (gate is `15`).
- - No global Core Web Vitals monitoring (there's an IRL-only perf budget,
- [src/irl/perf-budget.js](../../src/irl/perf-budget.js)).
-
-## What to build
-
-1. **Lazy-load heavy GLBs off the critical path.** Avatar pickers and 3D scenes should show a
- lightweight placeholder (poster/thumbnail or a tiny proxy) and defer the full GLB decode
- until needed/visible (intersection-based, on-demand). First paint must not wait on a 3MB
- model. Keep the universal animation system intact (CLAUDE.md — no rig allowlist).
-2. **Get the animation set off git and onto the CDN.** Move [public/animations/](../../public/animations/)
- (the ~200MB built GLB clips) to R2/CDN delivery (the repo already proxies R2 — see the
- `/r2-proxy` config in [vite.config.js](../../vite.config.js)), reference them by CDN URL,
- load per-page only what's used, and stop committing the binaries (gitignore + a documented
- `build:animations` → upload step). Don't break the animation pipeline
- ([scripts/build-animations.mjs](../../scripts/build-animations.mjs),
- [docs/3d-asset-pipeline.md](../../docs/3d-asset-pipeline.md)) — update it.
-3. **Ensure assets are compressed.** Run/verify the GLB compression pipeline covers the shipped
- avatars; flag any uncompressed outliers. Set correct long-cache headers for immutable
- hashed assets ([vercel.json](../../vercel.json)).
-4. **Core Web Vitals monitoring.** Add lightweight, global CWV (LCP/INP/CLS) reporting (e.g.
- `web-vitals` → the analytics sink) so regressions are measurable. Wire a real budget/alert
- so a bad deploy is visible.
-
-## Hard rules specific to this task
-
-- **Don't regress correctness for speed.** Avatars and animations must still load and play
- everywhere they do today — lazy means deferred, not dropped. Test the pickers and key 3D
- surfaces in a real browser.
-- Mind the build traps: don't let `npx vercel build` clobber `api/*.js`; verify the production
- build (`npm run build`) still succeeds and the moved assets resolve.
-- Moving 200MB of git history is sensitive — remove the binaries from future commits and CDN
- them; do **not** rewrite published history without explicit user sign-off.
-
-## Definition of done
-
-README DoD, plus: avatar pickers and 3D pages show a placeholder and defer heavy decode (first
-paint no longer blocked — verify with a throttled profile); the animation set loads from CDN
-and is no longer committed; assets are compressed with correct cache headers; CWV reporting is
-live with a budget. Tests/build verify assets still resolve and play. Changelog
-(`improvement`/`infra`). Self-review, then optimize the next-heaviest surface.
-
-Delete this file when done.
diff --git a/prompts/production-grade/17-company-and-brand-surfaces.md b/prompts/production-grade/17-company-and-brand-surfaces.md
deleted file mode 100644
index d761beb90..000000000
--- a/prompts/production-grade/17-company-and-brand-surfaces.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Task 17 — Company surfaces: About, team, careers, press/brand kit
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track F —
-> Credibility.** Independent. This is the cheapest credibility you can buy and it's entirely
-> missing today.
-
-## The thesis
-
-Enterprise buyers, partners, press, and serious users all ask the same silent question: "Is
-this a real company or a weekend project?" three.ws has world-class legal/docs/security
-surfaces but **no About page, no team, no careers, no press/brand kit** — the basic signals
-of legitimacy. A $1B company looks like a company. Build that surface.
-
-## What exists today (read first)
-
-- **Strong legal/docs/security already** — `public/legal/*`, `docs/*`,
- `public/.well-known/security.txt`, [pages/support.html](../../pages/support.html),
- [pages/status.html](../../pages/status.html). Reuse their layout/tone.
-- **Company identity is basically absent** — only footer links
- ([public/footer.html](../../public/footer.html)) and the README. There is **no** `/about`,
- `/team`, `/careers`, or `/press`. Press mentions exist (Business Insider, IBM, Yahoo Finance,
- Crunchbase, Vogue) but only as scattered footer links.
-- Nav/manifest: register any new page in [data/pages.json](../../data/pages.json) so
- `npm run audit:pages` passes, and link it from [public/nav-data.js](../../public/nav-data.js)
- / [public/footer.html](../../public/footer.html).
-
-## What to build
-
-Real, on-brand pages (match the design system and the existing page chrome):
-
-1. **About / company** (`/about`) — the mission ("Give your AI a body."), what three.ws is, how
- it works at a glance, the real traction signals that exist (press logos linking to the real
- articles, on-chain/ecosystem facts that are true). No invented metrics — only real, citable
- facts. If a number isn't real, don't print it.
-2. **Team** (`/team` or a section of `/about`) — the people behind it, to whatever degree the
- user is comfortable making public. Build the page and layout; where specific bios/photos
- aren't provided, leave a clearly-structured, easily-fillable section rather than inventing
- names. (Ask nothing — build the structure; the user can populate.)
-3. **Careers** (`/careers`) — even a simple "we're building the body layer for AI agents,
- here's how to reach us / roles we want" page signals growth. Wire to the real contact channel
- ([pages/support.html](../../pages/support.html) emails).
-4. **Press / brand kit** (`/press`) — logo assets (the real three.ws marks), color palette
- (straight from [public/tokens.css](../../public/tokens.css)), the one-liner, boilerplate
- description, and press contact. Make assets downloadable. Consolidate the existing press
- mentions here.
-
-## Hard rules specific to this task
-
-- **No fabricated facts.** Don't invent funding, user counts, customer logos, awards, or team
- members. Use only what's real and citable; structure the rest for the user to fill. Inventing
- company facts is the same violation as fake data.
-- **$THREE only** if tokens are mentioned at all.
-- Every page: responsive, accessible, designed empty/edge states, real links (no dead `#`).
-
-## Definition of done
-
-README DoD, plus: `/about`, `/team`, `/careers`, `/press` are live, on-brand, responsive,
-accessible, linked from nav + footer, and pass `npm run audit:pages`; brand assets download;
-press mentions consolidated; zero invented facts. Changelog (`docs`/`feature`). Self-review,
-then improve the weakest page (likely About's traction section or the brand kit completeness).
-
-Delete this file when done.
diff --git a/prompts/production-grade/18-compliance-and-trust-pages.md b/prompts/production-grade/18-compliance-and-trust-pages.md
deleted file mode 100644
index 8ee37cb86..000000000
--- a/prompts/production-grade/18-compliance-and-trust-pages.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Task 18 — Compliance & trust: cookie consent, a11y statement, disclosure, incident history
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track F —
-> Credibility.** Independent. These are the trust surfaces enterprise/partners and EU users
-> check for — present individually small, collectively the difference between "credible" and
-> "hobby."
-
-## The thesis
-
-three.ws already has real legal, security, and status surfaces — better than most startups.
-The remaining gaps are the specific trust artifacts buyers and regulators look for: a GDPR
-cookie-consent path, a published accessibility commitment, a responsible-disclosure/bug-bounty
-policy, and a persistent incident history. Each is small; together they signal a platform that
-takes trust seriously enough to scale.
-
-## What exists today (read first)
-
-- **Privacy/ToS/EULA are real** — `public/legal/{privacy,tos,eula,aws-marketplace-eula}.html`
- (privacy already documents cookies + GDPR rights, but there's **no consent UI** and **no
- standalone cookie policy**).
-- **Security is real** — `public/.well-known/security.txt` (RFC 9116),
- [docs/security.md](../../docs/security.md) — but there's **no public responsible-disclosure /
- bug-bounty page** linked for users, and **no compliance posture** (SOC2 status/roadmap).
-- **Status is real-time** — [pages/status.html](../../pages/status.html) (live, 90-day uptime)
- — but there's **no persistent incident history / postmortem archive**.
-- **A11y is strong in code** (per the changelog) but there's **no public accessibility
- statement** (`/accessibility`) and no a11y feedback channel.
-
-## What to build
-
-1. **Cookie consent (GDPR).** A real, accessible consent banner/preference UI for non-essential
- cookies/analytics, honoring the choice (don't load non-essential tracking before consent in
- relevant regions). Plus a standalone `/legal/cookies` page (or a clearly-linked section)
- listing the real cookies the privacy policy already documents. Consent state persists and is
- revocable.
-2. **Accessibility statement** (`/accessibility`) — the real WCAG target (state the level
- honestly given the code's current state — don't over-claim), the commitment, known
- limitations, and a dedicated feedback channel ([pages/support.html](../../pages/support.html)
- emails). Link from footer.
-3. **Responsible disclosure / security policy page** — a public page describing how to report a
- vulnerability, scope, safe-harbor language, and response SLA, consistent with
- `security.txt`. If the user wants a bug bounty, structure it; otherwise a clear coordinated-
- disclosure policy. Link from `security.txt`, `/security` (if present), and footer.
-4. **Incident history / status archive.** Persist past incidents (date, impact, resolution,
- postmortem link) and surface them on [pages/status.html](../../pages/status.html) so the
- status page has memory, not just a live light. Real incidents only — start the log; don't
- invent past ones. Coordinate with `12`/`13` (they produce the real signal).
-
-## Hard rules specific to this task
-
-- **Honest claims only.** Don't claim SOC2 you don't have, a WCAG level you don't meet, or
- incidents that didn't happen. State the real posture and the roadmap. False compliance claims
- are worse than absent ones.
-- Accessible and responsive themselves (a cookie banner that traps keyboard focus or fails
- contrast is self-defeating).
-
-## Definition of done
-
-README DoD, plus: a working, accessible, revocable cookie-consent flow + cookies page;
-`/accessibility` live with an honest WCAG claim + feedback channel; a public disclosure/security
-policy linked from `security.txt` and footer; an incident-history section on the status page
-backed by real data. All pass `npm run audit:pages` and are linked from footer. Changelog
-(`security`/`docs`). Self-review, then strengthen the weakest claim's accuracy/clarity.
-
-Delete this file when done.
diff --git a/prompts/production-grade/19-i18n-activation.md b/prompts/production-grade/19-i18n-activation.md
deleted file mode 100644
index 0a55a528c..000000000
--- a/prompts/production-grade/19-i18n-activation.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# Task 19 — Internationalization: activate the pipeline that's already built
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track F —
-> Credibility / reach.** Independent. Like the referral task, this is a built-but-dormant
-> asset — activating it unlocks global reach for near-zero net-new infrastructure.
-
-## The thesis
-
-A $1B consumer platform is multilingual. three.ws has a real, production-grade i18n
-pipeline — extraction, translation, glossary lock, build gates — but it's only run for **2 of
-10 configured locales** and ~20 strings (homepage hero only). There's no language switcher and
-no RTL support. The machinery exists; it's just turned off for the world outside English.
-
-## What exists today (read first — it's real)
-
-- **Pipeline** — [scripts/i18n-extract.mjs](../../scripts/i18n-extract.mjs) +
- [scripts/i18n-translate.mjs](../../scripts/i18n-translate.mjs) (`npm run i18n`,
- `i18n:extract`, `i18n:translate`, `i18n:lint`). Config in [.i18nrc.json](../../.i18nrc.json):
- 10 target locales (`es, zh-CN, ja, ko, fr, de, pt-BR, ar, hi, ru`), Groq with a Gemini
- fallback for CJK/Arabic/Hindi, and a **glossary lock** that preserves `$THREE`, `x402`,
- `USDC`, `Solana`, `MCP`, `Forge`, etc. byte-for-byte.
-- **Runtime** — [public/i18n.js](../../public/i18n.js) swaps strings via `data-i18n` attributes.
-- **Coverage today** — [public/locales/](../../public/locales/): only `en.json` (~19 keys) +
- `es.json`; `manifest.json` declares only `en`/`es`. RTL locales are configured but no layout
- support exists. **No language switcher UI.**
-
-## What to build
-
-1. **Widen string extraction.** Annotate the high-traffic surfaces (home, nav/footer, forge,
- marketplace, pricing, onboarding, the new Track F pages) with `data-i18n` so
- `i18n:extract` captures the real user-facing copy — not just the hero. Keep the glossary
- terms locked. Don't translate code, addresses, or token names.
-2. **Run the translation pipeline for all configured locales.** Generate real translations for
- the 10 locales via the existing `i18n:translate` flow, pass `i18n:lint` and the build gates,
- and update `manifest.json`. Real translations only — the pipeline produces them; never
- hand-fake a locale.
-3. **Language switcher UI.** Add an accessible language selector (nav and/or footer) that swaps
- locale via [public/i18n.js](../../public/i18n.js), persists the choice, and respects the
- browser's `Accept-Language` on first visit. Designed, keyboard-operable, ARIA-correct.
-4. **RTL support.** For `ar` (and any other RTL locale enabled), add real `dir="rtl"` layout
- support — logical CSS properties, mirrored components — so the RTL experience isn't broken.
- Verify a few key pages actually read correctly RTL.
-5. **Keep it maintainable.** Wire extraction/translation into the build or a cron so new copy
- doesn't silently fall back to English forever (coordinate cadence with `13`). Document the
- workflow for future contributors.
-
-## Hard rules specific to this task
-
-- **Glossary terms stay byte-for-byte** ($THREE, x402, USDC, Solana, MCP, Forge, pump.fun,
- GLB, glTF, WebGL, Three.js, ERC-8004, Granite). Never translate or alter them.
-- **$THREE only** — translations must not introduce any other coin name.
-- Don't ship a half-translated page that mixes languages mid-sentence — gate on `i18n:lint`.
-
-## Definition of done
-
-README DoD, plus: the high-traffic surfaces are extracted and translated across the configured
-locales (passing `i18n:lint` + build gates, `manifest.json` updated); an accessible language
-switcher works and persists; RTL renders correctly on key pages; glossary terms preserved; a
-documented path keeps new copy translated. Changelog (`feature`/`improvement`). Self-review,
-then extend coverage to the next set of surfaces.
-
-Delete this file when done.
diff --git a/prompts/production-grade/20-design-system-and-a11y-polish.md b/prompts/production-grade/20-design-system-and-a11y-polish.md
deleted file mode 100644
index 674ceadb4..000000000
--- a/prompts/production-grade/20-design-system-and-a11y-polish.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# Task 20 — Brand the free lanes (the seed task) + design-system & a11y polish sweep
-
-> Read [00-README-orchestration.md](./00-README-orchestration.md) first. **Track F —
-> Polish.** This is where the program started. Independent of the others; great as a final
-> consistency pass once other surfaces have landed (or anytime — the relabel is standalone).
-
-## The thesis
-
-A $1B product is consistent and accessible to the pixel. three.ws is close — there's a real
-token system and broad ARIA coverage — but vendor names leak into the UI, stray hex/px bypass
-the tokens, 3D viewers aren't keyboard-navigable, and some modals don't manage focus. This task
-is the craftsmanship sweep: small fixes, large cumulative effect. **It begins with the literal
-request that kicked off this whole program.**
-
-## Part 1 — Relabel the free Forge lanes (the seed task; do this first)
-
-Today the Forge engine picker labels its two free lanes by **vendor**:
-[src/forge.js](../../src/forge.js) `ENGINE_LABELS` (~line 180) maps `nvidia: 'NVIDIA'` and
-`huggingface: 'Hunyuan3D'`, each rendered with a `FREE` pill → the buttons read "NVIDIA FREE"
-and "Hunyuan3D FREE". These are three.ws's own house free engines (one is the text→3D lane, the
-default for draft/standard; the other is the photo→3D / high-tier lane) — they should read as
-**three.ws's**, not a vendor billboard.
-
-- **Rename both to three.ws-native labels** that (a) are distinct from each other (the code
- deliberately avoids two lanes both reading "Free" — see the `ENGINE_FREE_PILL` comment around
- [src/forge.js:173](../../src/forge.js#L173)), and (b) communicate the lane's role. The
- natural differentiator is input modality: the `nvidia` lane is text→3D, the `huggingface`
- lane is photo→3D. Pick clean house names (e.g. by input — "Prompt" / "Photo" — or a house
- brand pairing); keep them short enough for the picker button. Use your product judgment;
- match the existing label tone (`'Fast'`, `'Meshy'`, etc.).
-- **Keep the underlying engine truth in the tooltip/`title`/`aria-label`**, not the button face
- — the picker already builds `title`/`aria-label` from the backend `label`/`blurb`
- ([src/forge.js:466-472](../../src/forge.js#L466-L472)). The honest "free TRELLIS on NVIDIA
- NIM / Hunyuan3D on community GPUs" detail can stay in the hover text; the **button** shows the
- three.ws name + FREE pill.
-- **Sweep the sibling surfaces** so they agree: the showcase map in
- [src/forge-showcase.js](../../src/forge-showcase.js) (line ~18, where `nvidia: 'Free'`), and
- the user-facing copy in [pages/forge.html](../../pages/forge.html) (~line 3304: "Free uses
- NVIDIA-hosted generation…"). Don't touch the backend ids/keys in
- [api/_lib/forge-tiers.js](../../api/_lib/forge-tiers.js) (`nvidia`/`huggingface` are routing
- ids) — only the **user-facing labels**. Vendor names may remain in code comments and backend
- blurbs; the goal is the **UI** reads as three.ws.
-
-## Part 2 — Design-system polish sweep
-
-Replace stray hardcoded values with tokens from [public/tokens.css](../../public/tokens.css):
-- Inline px/hex in [src/forge-pay.js](../../src/forge-pay.js) (`.fpay-modal width:min(420px…)`,
- `.fpay-x`), [src/walk.js](../../src/walk.js) (inline `max-width:420px` etc.),
- [src/avatar-page.js](../../src/avatar-page.js) (`width:480px;height:480px`),
- [src/trades.js](../../src/trades.js) (48px chips), [src/first-meet.js](../../src/first-meet.js).
-- JS breakpoints hardcoded in px — [src/marketplace-detail.js](../../src/marketplace-detail.js)
- (`max-width: 880px`) and [src/walk.js](../../src/walk.js) (`max-width: 640px`): route through a
- shared breakpoint constant/token so they can't drift from CSS.
-- Custom skeleton vars in [src/agent-detail.css](../../src/agent-detail.css) that duplicate
- `--surface-*` — fold onto the tokens.
-Don't churn working code for its own sake; fix the genuine inconsistencies, keep diffs tight.
-
-## Part 3 — Accessibility polish
-
-- **Keyboard-navigable 3D viewers.** The Three.js scenes (viewer, [pages/pose.html](../../pages/pose.html),
- [pages/scene.html](../../pages/scene.html), avatar studio) require a mouse to rotate/pan/zoom.
- Add documented keyboard controls + visible focus + an accessible-name for the canvas region.
-- **Modal focus management.** Audit modals (Brain multi-LLM, others) for focus trap + restore on
- close; [src/share-panel.js](../../src/share-panel.js) already does this well — match it.
-- **Icon-only buttons** in Brain/Scene/Pose studios need `aria-label`s.
-- **Color-only state** (e.g. activity win/loss/open pills) needs a text/icon companion for
- non-color perception and contrast.
-
-## Hard rules specific to this task
-
-- **$THREE only** anywhere copy changes touch tokens.
-- The free-lane relabel must not change routing/behavior — labels only. Verify both free lanes
- still select, still show the FREE pill, still gate text-vs-photo input exactly as before.
-- Keep the design-system sweep additive and consistent; don't introduce new ad-hoc values while
- removing old ones.
-
-## Definition of done
-
-README DoD, plus: the two free Forge lanes read as three.ws house engines (distinct names, FREE
-pill, vendor truth only in tooltip) across forge.js, forge-showcase.js, and forge.html, with no
-behavior change; the listed hardcoded px/hex are tokenized and JS breakpoints centralized; 3D
-viewers are keyboard-operable with focus; audited modals trap/restore focus; icon buttons
-labelled; color-only states fixed. Exercise the Forge picker and a 3D viewer in a real browser.
-Update [tests/glb-canonicalize.test.js] only if relevant; add/extend tests where you changed
-logic. Changelog (`improvement`). Self-review, then fix the next inconsistency you spot.
-
-Delete this file when done.
diff --git a/prompts/production-hardening/00-INDEX.md b/prompts/production-hardening/00-INDEX.md
deleted file mode 100644
index 793af20bf..000000000
--- a/prompts/production-hardening/00-INDEX.md
+++ /dev/null
@@ -1,118 +0,0 @@
-# Production-Hardening Program — Prompt Library
-
-A **sequenced set of execution prompts** that take three.ws from "impressive platform" to
-"ship-grade, scalable, trustworthy $1B platform." Each file is a complete brief meant to be
-pasted into a **fresh Claude Code chat in this repo**, run to completion, reviewed, and shipped.
-
-Every prompt is grounded in a real audit of this codebase (100 API endpoints, 125 pages,
-456+ tests, ~20 workers, a dozen published SDKs/MCP servers). The file paths cited inside each
-prompt are real starting points.
-
-> **Scope of this library:** *hardening, reliability, security, scale, trust, and developer
-> experience* — the work that turns a great product into a bankable platform. For **new feature
-> ideas**, see the sibling directories (`prompts/monetization`, `prompts/agent-wallets`,
-> `prompts/moonshots`, `prompts/road-to-1b`, …). This set is deliberately complementary, not a
-> replacement.
-
----
-
-## How to run each prompt
-
-1. Open a **new chat** in this repo. (CLAUDE.md auto-loads, so the operating rules already apply.)
-2. Paste the **entire** prompt file as your first message.
-3. Let it finish, review `git diff`, then commit and push **both** remotes (`threeD` + `threews`).
-4. Tick the box below and move on.
-
-One prompt ≈ one focused PR. Where a prompt is marked **Parallel-safe**, you can run it in its own
-chat alongside others in the same phase. Concurrent agents share this worktree, so every prompt
-already instructs: stage explicit paths, never `git add -A`, re-check `git status` before committing.
-
----
-
-## Guardrails every prompt inherits (from CLAUDE.md)
-
-- **$THREE is the only coin** — `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other token, anywhere.
-- **No mocks / fake data / placeholders / TODOs / stubs.** Finished, real implementations only.
-- **Push BOTH remotes.** Never pull or fetch from `threeD`.
-- **Changelog** every user-visible change in `data/changelog.json`, then `npm run build:pages`.
-- **Watch the deploy trap**: `npx vercel build` overwrites `api/*.js` with esbuild bundles — never commit those.
-
----
-
-## The program (tracker)
-
-### Phase 0 — Test confidence & release gate *(do first — everything depends on it)*
-- [ ] [01 · Expand the deploy release gate + harden CI](01-release-gate-and-ci.md)
-- [ ] [02 · Test the money path (x402, settlement, payments)](02-tests-payments-x402.md)
-- [ ] [03 · Test the product core (forge, avatar, auto-rig)](03-tests-forge-avatar.md)
-- [ ] [04 · E2E coverage for critical user journeys](04-e2e-critical-flows.md)
-- [ ] [05 · Load, chaos, a11y & visual-regression test infra](05-test-infra-load-chaos-a11y.md)
-
-### Phase 1 — Reliability & error handling
-- [ ] [06 · Eliminate silent failures (empty catch / fire-and-forget)](06-error-handling-sweep.md)
-- [ ] [07 · Fetch `.ok` guards + universal input validation](07-fetch-guards-input-validation.md)
-- [ ] [08 · Unify circuit breakers on cockatiel](08-circuit-breakers-cockatiel.md)
-- [ ] [09 · Graceful degradation for auth & payments](09-graceful-degradation.md)
-
-### Phase 2 — Money safety *(highest blast radius)*
-- [ ] [10 · Settlement↔delivery atomicity + refund path](10-settlement-delivery-refund.md)
-- [ ] [11 · Idempotency for external x402 flows](11-x402-external-idempotency.md)
-- [ ] [12 · Enforce agent spend policy (no silent platform-wallet fallback)](12-agent-spend-policy.md)
-- [ ] [13 · $THREE gating: fail-closed + tier caching](13-three-gate-fail-closed.md)
-- [ ] [14 · Payment reconciliation ledger + ops alerts](14-payment-reconciliation.md)
-
-### Phase 3 — Security hardening
-- [ ] [15 · Remediate vulnerable dependencies (axios et al.)](15-dependency-vuln-remediation.md)
-- [ ] [16 · Startup secret validation + key-rotation safety](16-secrets-startup-validation.md)
-- [ ] [17 · Rate-limit coverage audit across all endpoints](17-rate-limit-coverage.md)
-- [ ] [18 · Global CSP + security headers](18-csp-security-headers.md)
-- [ ] [19 · Pre-launch security review & pentest prep](19-security-review-pentest.md)
-
-### Phase 4 — Frontend excellence
-- [ ] [20 · Unify every list/feed on the shared state-kit](20-state-kit-unification.md)
-- [ ] [21 · WCAG 2.2 AA accessibility pass](21-accessibility-wcag.md)
-- [ ] [22 · Performance: code-split, lazy 3D, Lighthouse ≥90](22-performance-code-split.md)
-- [ ] [23 · Responsive at 320 / 768 / 1440 across all surfaces](23-responsive-audit.md)
-- [ ] [24 · Dead-path & broken-link CI gate](24-dead-path-link-gate.md)
-- [ ] [25 · Server-side Forge thumbnails](25-forge-server-thumbnails.md)
-
-### Phase 5 — Observability & operations
-- [ ] [26 · Structured logging + request correlation/tracing](26-logging-tracing.md)
-- [ ] [27 · Metrics, dashboards & SLOs](27-metrics-dashboards-slos.md)
-- [ ] [28 · Deploy safety: auto-rollback + isolated staging](28-deploy-safety-rollback.md)
-- [ ] [29 · Data backup/DR runbook + migration gating](29-backup-dr-migrations.md)
-- [ ] [30 · Async job queue for heavy generation](30-async-job-queue.md)
-- [ ] [31 · Worker autoscaling & one-command deploy](31-worker-autoscaling.md)
-
-### Phase 6 — Developer ecosystem (SDK / MCP)
-- [ ] [32 · Per-package CHANGELOGs + SDK unit tests](32-sdk-changelogs-tests.md)
-- [ ] [33 · Unify the publish pipeline](33-publish-pipeline.md)
-- [ ] [34 · Generated API-reference docs site](34-api-reference-docs.md)
-- [ ] [35 · "Build on three.ws with MCP + x402" integration guide](35-mcp-x402-integration-guide.md)
-- [ ] [36 · CI that proves the examples still work](36-examples-ci.md)
-
-### Phase 7 — Growth, trust & launch
-- [ ] [37 · SEO, structured data & agent-discovery surfaces](37-seo-discovery.md)
-- [ ] [38 · First-run onboarding + product docs](38-onboarding-docs.md)
-- [ ] [39 · Legal, trust & compliance surfaces](39-legal-trust-compliance.md)
-- [ ] [40 · Public status page + incident runbooks](40-status-incident-runbooks.md)
-- [ ] [41 · Final polish pass + launch-readiness checklist](41-launch-readiness.md)
-
----
-
-## Sequencing
-
-```
-Phase 0 → Phase 1 → Phase 2 → Phase 3 ┐
- ├─► Phase 7 (launch)
-Phase 4 ───────────────────────────────┤
-Phase 5 ───────────────────────────────┤
-Phase 6 ───────────────────────────────┘
-```
-
-Phases 0–3 are the critical chain — a payment bug or a silent failure is existential. Once Phase 0
-gives you a trustworthy gate, Phases 4/5/6 run as parallel tracks. Phase 7 is the final mile.
-
-**Whole-program done:** every box ticked · `npm run test:all` green · clean `audit:web` / `audit:links`
-/ `check:images` · Lighthouse ≥90 on the top 10 pages · zero criticals in the security review ·
-dashboards live · a rehearsed, tested rollback.
diff --git a/prompts/production-hardening/01-release-gate-and-ci.md b/prompts/production-hardening/01-release-gate-and-ci.md
deleted file mode 100644
index 28a1038f5..000000000
--- a/prompts/production-hardening/01-release-gate-and-ci.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# 01 · Expand the deploy release gate + harden CI
-
-> **Phase 0 — Test confidence** · **Depends on:** none · **Parallel-safe:** no (foundation) · **Effort:** M
-
-## Mission
-Today the pre-deploy gate (`scripts/test-gate.mjs`) runs **7 files / ~73 assertions**, while
-`.vercelignore` strips all but those 7 files from the deploy. A regression in any of the ~90
-untested-on-deploy endpoints — including most of the money path — can ship silently. Turn the
-gate into a real safety net and make CI enforce it. Nothing else in this program is trustworthy
-until a green gate actually means "safe to deploy."
-
-## Context (read first)
-- `CLAUDE.md` + `STRUCTURE.md`.
-- `scripts/test-gate.mjs` — the curated critical-path gate (`GATE_TESTS` list).
-- `.vercelignore` — re-includes only the gate files into the deploy bundle. **Keep it in lockstep with the gate.**
-- `.github/workflows/*.yml` — current CI (lint + full vitest + guards; typecheck is advisory only).
-- `package.json` scripts: `test`, `test:core`, `test:gate`, `test:e2e`, `typecheck`, `lint`.
-
-## Current state (from audit)
-- Gate covers: `solana-confirm`, `http-cache-control`, `agent-custody-guards`, `agent-wallet-vanity`, `api/x402` (manifest/verify), `three-token-leaderboard`, `healthz`.
-- **Not in the gate:** `x402-pay`, `x402-checkout`, `x402-merchant`, `x402-status`, agent A2A payment routes, all forge endpoints, wallet deposit/withdraw/pay, avatar create/render, `solana-rpc`.
-- Typecheck (`tsc -p jsconfig.json`) runs advisory-only; ESLint warns but doesn't block. No flake detection.
-- Drift risk: a gate test file can be deleted without `.vercelignore` noticing → deploy silently loses coverage.
-
-## Build this
-1. **Grow `GATE_TESTS`** to a production tier (~30–40 files) covering money path, core features, auth/access, and reliability. Coordinate with prompts 02–04 — they create the tests this gate will reference. Add only tests that are deterministic and offline-safe (no live DB/RPC/Redis).
-2. **Lockstep `.vercelignore`**: write a single source of truth (e.g. the `GATE_TESTS` array) and have `.vercelignore` generated/validated from it. Add `scripts/test-gate.mjs --audit` that fails if a gate-listed file is missing OR a gate file isn't re-included in `.vercelignore`.
-3. **Harden CI** (`.github/workflows`): on PR run `lint` (blocking), `typecheck` (blocking — flip from advisory), `vitest run`, and `test:gate`. On the deploy path, run `test:gate` as a required check. Cache npm + node_modules for speed.
-4. **Flake detection**: add an opt-in CI job that re-runs the gate N times (e.g. 3×) nightly and reports any non-deterministic failures.
-5. **Coverage visibility**: emit a one-line summary (files, assertions, duration) and a coverage delta comment is *not* required, but `npm run test:gate` must print exactly what it guards.
-
-## Files likely in play
-`scripts/test-gate.mjs`, `.vercelignore`, `.github/workflows/ci.yml` (+ a new nightly workflow), `package.json` (scripts), `jsconfig.json` / `tsconfig` if typecheck needs fixes to go blocking.
-
-## Out of scope
-Writing the endpoint tests themselves (that's prompts 02–04). Here you build the *gate machinery* and wire whichever tests already exist; leave TODO-free placeholders out — only reference tests that exist.
-
-## Definition of done
-- [ ] `npm run test:gate` runs the expanded set, green, and prints what it covers.
-- [ ] `npm run test:gate -- --audit` fails loudly on gate/`.vercelignore` drift; passes now.
-- [ ] CI blocks merge on lint + typecheck + vitest + gate; config committed.
-- [ ] Typecheck is clean and blocking (fix real type errors; don't suppress).
-- [ ] Nightly flake job committed.
-- [ ] Changelog: infra-only → **no** changelog entry (internal).
-- [ ] `git diff` reviewed; explicit paths staged.
-
-## Guardrails
-Follow CLAUDE.md. Don't weaken the gate to make it pass — fix the underlying test/type issues. Push both remotes when done.
diff --git a/prompts/production-hardening/02-tests-payments-x402.md b/prompts/production-hardening/02-tests-payments-x402.md
deleted file mode 100644
index 2caac1b64..000000000
--- a/prompts/production-hardening/02-tests-payments-x402.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 02 · Test the money path (x402, settlement, payments)
-
-> **Phase 0 — Test confidence** · **Depends on:** 01 (gate machinery) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Money endpoints are the highest-risk, least-tested surface: 4 of 5 x402 payment endpoints have
-zero tests, and none are in the deploy gate. Write deterministic, offline-safe unit/integration
-tests that lock down payment correctness — happy path **and** the failure modes that lose or
-double-charge money — then add them to the gate (prompt 01).
-
-## Context (read first)
-- `CLAUDE.md` (note: **$THREE is the only coin**; use the real CA or a synthetic `THREEsynthetic…` placeholder in fixtures — never a real third-party mint).
-- Payment surface: `api/x402-pay.js`, `api/x402-checkout.js`, `api/x402-checkout-record.js`, `api/x402-merchant.js`, `api/x402-status.js`.
-- Libs: `api/_lib/x402-spec.js` (facilitator), `api/_lib/x402-solana-confirm.js` (static tx decode), `api/_lib/evm-payment-verify.js`, `api/_lib/x402/idempotency-cache.js`, `api/_lib/x402-bsc-direct.js`, `api/_lib/solana/connection.js` (RPC failover).
-- Existing patterns: `tests/api/x402.test.js`, `tests/solana-confirm.test.js`, `tests/agent-custody-guards.test.js`. Match their style (route-layer fixtures, real `Transaction` objects, deterministic — not client rewrites).
-
-## What to cover (write tests for)
-1. **x402-pay prepare/confirm** — valid payment → 200 + correct credit; missing/invalid payment payload → 402 with proper `accepts`; underpaid amount → reject; wrong recipient → reject; wrong mint → reject.
-2. **Settlement vs delivery** — assert the *intended* ordering and that a post-settlement failure is detectable (this test will tighten once prompt 10 lands; encode the expected contract now).
-3. **Idempotency** — same payment signature submitted twice credits once (internal Solana path via `idempotency-cache.js`); checkout double-record blocked by the unique `(sku_id, tx_signature)` index (`x402-checkout-record.js`).
-4. **Solana static decode** — `x402-solana-confirm.js`: a signed SPL-Token transfer is validated **without** RPC; malformed/short tx → reject; transfer to wrong owner → reject.
-5. **EVM verify** — `evm-payment-verify.js`: correct Transfer event/amount/confirmations passes; spoofed/insufficient → reject.
-6. **RPC failover** — `solana/connection.js`: provider rotation + cooldown behavior under simulated endpoint failure (mock at the transport boundary only, not the verification logic).
-7. **x402-checkout ATA probe** — `ataExists()` failing open is *intentional + idempotent*; assert the extra create-ATA instruction is idempotent and amounts/recipients are unchanged.
-
-## Files likely in play
-`tests/api/x402-pay.test.js` (new), `tests/api/x402-checkout.test.js` (new — extend existing `tests/x402-checkout-prepare.test.js` if present), `tests/api/x402-settlement.test.js` (new), `tests/api/evm-payment-verify.test.js` (new), `tests/api/solana-rpc-failover.test.js` (new). Add the deterministic ones to `GATE_TESTS`.
-
-## Definition of done
-- [ ] New tests pass under `vitest run`; deterministic across 3 reruns.
-- [ ] Money-path happy + failure cases covered per the list above.
-- [ ] Deterministic tests added to `scripts/test-gate.mjs` + `.vercelignore` (re-run `--audit`).
-- [ ] No real third-party token addresses in fixtures; $THREE CA or synthetic placeholders only.
-- [ ] No mocks of the verification logic itself — only the network transport boundary.
-- [ ] Changelog: internal test work → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. If a test reveals a real money bug, **note it clearly in your final summary** and (if quick + safe) fix it; otherwise the dedicated Phase-2 prompt will. Push both remotes.
diff --git a/prompts/production-hardening/03-tests-forge-avatar.md b/prompts/production-hardening/03-tests-forge-avatar.md
deleted file mode 100644
index 72513afc0..000000000
--- a/prompts/production-hardening/03-tests-forge-avatar.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 03 · Test the product core (forge, avatar, auto-rig)
-
-> **Phase 0 — Test confidence** · **Depends on:** 01 · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-The Forge (text/photo → 3D) and avatar creation/auto-rig pipeline are the product. Several forge
-endpoints and core `src/` modules ship without dedicated tests. Lock down generation cost caps,
-provider failover, asset delivery, the avatar create→rig path, and the bone-name canonicalization
-that the whole animation system depends on.
-
-## Context (read first)
-- `CLAUDE.md` — note the **"avatar animation is universal — no rig allowlist"** rule and the canonicalization contract.
-- Forge endpoints: `api/forge.js`, `api/forge-creation.js`, `api/forge-enhance.js`, `api/forge-gameready.js`, `api/forge-gallery.js`, and the engine lanes (nvidia/trellis/meshy/tripo/hunyuan3d/triposg).
-- Store: `api/_lib/forge-store.js` (`listShowcase`, `listCreations`, `setPreview`).
-- Avatar/animation: `src/glb-canonicalize.js` + `tests/glb-canonicalize.test.js` (extend), `src/animation-retarget.js`, `AnimationManager.supportsCanonicalClips()`, `api/avatars.js`, `api/avatar-render.js`, MCP `rig_mesh` / `forge_avatar` paths.
-- Showcase client logic: `src/forge-showcase.js` (thumbnail fallback chain).
-
-## What to cover (write tests for)
-1. **Forge cost cap & gating** — generation respects the free/holder/paid tiers; a request over quota is rejected cleanly; $THREE-holder free lane works (server-verified).
-2. **Provider failover** — when the primary engine lane errors, the chain falls back per the documented order and surfaces a real error if all fail (no fake success).
-3. **Asset delivery & store** — `forge-store.listShowcase` ordering (preview-first, recency tiebreak), `done + glb_url` filter, `rejected` exclusion; `setPreview` only sets when null and only by the creating client.
-4. **Gallery API** — `api/forge-gallery.js` scope=community vs client scope; `enabled:false` when store unconfigured; dedupe/limit behavior.
-5. **GLB canonicalization** — extend `tests/glb-canonicalize.test.js` with every skeleton convention named in CLAUDE.md (Mixamo, Avaturn, Unreal, VRM/VRoid, VRM 1.0, Daz/Genesis, MakeHuman, Blender `.L`, simple `shoulderL`). A genuinely non-humanoid rig falls back to default (gate), never a T-pose.
-6. **Avatar create→rig** — `api/avatars.js` POST validation + the auto-rig-on-create path; humanoid gate behavior.
-7. **Showcase thumbnail fallback** — `src/forge-showcase.js`: Plan A/B/C/D selection logic given preview/glb presence (pure-logic assertions; DOM via jsdom).
-
-## Files likely in play
-`tests/api/forge-critical-path.test.js` (new), `tests/api/forge-gallery.test.js` (extend), `tests/glb-canonicalize.test.js` (extend), `tests/api/avatar-creation.test.js` (new), `tests/src/forge-showcase.test.js` (new). Add deterministic ones to the gate.
-
-## Definition of done
-- [ ] New/extended tests pass; deterministic across reruns.
-- [ ] Every CLAUDE.md skeleton convention has a canonicalization test case.
-- [ ] Cost cap, provider failover, and store ordering all asserted.
-- [ ] Deterministic tests added to `GATE_TESTS` + `.vercelignore` (`--audit` clean).
-- [ ] Changelog: internal → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Use synthetic GLB fixtures or existing test assets — never fabricate "passing" generation results. If a test exposes a real pipeline bug, fix it or flag it explicitly. Push both remotes.
diff --git a/prompts/production-hardening/04-e2e-critical-flows.md b/prompts/production-hardening/04-e2e-critical-flows.md
deleted file mode 100644
index dfcb28e8f..000000000
--- a/prompts/production-hardening/04-e2e-critical-flows.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 04 · E2E coverage for critical user journeys
-
-> **Phase 0 — Test confidence** · **Depends on:** 01 · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Playwright today has ~10 specs with high fidelity but thin breadth, and 4 are quarantined
-(`.skip`) because they need live DB/Redis/WebSocket. Cover the journeys that *make money or make
-users stay* end-to-end, and unquarantine the skipped specs by giving them deterministic synthetic
-backends instead of live dependencies.
-
-## Context (read first)
-- `CLAUDE.md`; `playwright.config.*`; `tests/e2e/*.spec.*`.
-- Tested today: launch-token-flow, coin-buy-trade, create-agent-avatar, nav-auth.
-- Quarantined (`.skip`): club (needs Redis), avatar-edit (needs WebSocket server), gallery-picker (needs live DB), galaxy (needs IBM agent discovery).
-- Fidelity pattern in use: real Solana `Transaction` objects, real modal code, **route-layer** deterministic responses (not client rewrites). Keep that pattern.
-
-## Build this
-1. **New journeys** (add specs):
- - **Forge generation** — enter prompt → Generate (free lane) → model appears in viewer → download/share affordances work.
- - **x402 checkout → confirm → delivery** — full paid path with route-layer-deterministic payment + settlement; assert the artifact/credit is delivered.
- - **Avatar create → personalize → use** — create, edit, and land it somewhere it's consumed (profile/walk).
- - **Wallet connect → balance → gated action** — connect, read balance, attempt a $THREE-gated action.
-2. **Unquarantine the 4 skips** by introducing deterministic fakes at the *infrastructure boundary only* (a synthetic Redis/WebSocket/DB stub the test owns) — never by mocking the product logic under test. If a flow truly cannot be made deterministic in CI, document precisely why in the spec and keep it in a separate `@manual` project, not silently skipped.
-3. **CI wiring** — ensure `npm run test:e2e` runs the deterministic specs headless in CI; heavy/manual ones are a separate, non-blocking project.
-
-## Files likely in play
-`tests/e2e/forge-generate.spec.*` (new), `tests/e2e/x402-checkout.spec.*` (new), `tests/e2e/avatar-lifecycle.spec.*` (new), `tests/e2e/wallet-gating.spec.*` (new), the 4 quarantined specs, `playwright.config.*`, `.github/workflows`.
-
-## Definition of done
-- [ ] New specs pass headless, deterministically (3 reruns).
-- [ ] Previously-skipped specs either run green with synthetic backends or are moved to a clearly-labeled `@manual` project with a documented reason (no silent `.skip`).
-- [ ] `npm run test:e2e` green in CI config.
-- [ ] No product logic mocked — only infra boundaries.
-- [ ] Changelog: internal → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Use the real CA or synthetic placeholders for any token in fixtures. Keep route-layer determinism; don't rewrite client code to make tests pass. Push both remotes.
diff --git a/prompts/production-hardening/05-test-infra-load-chaos-a11y.md b/prompts/production-hardening/05-test-infra-load-chaos-a11y.md
deleted file mode 100644
index 5153fc0da..000000000
--- a/prompts/production-hardening/05-test-infra-load-chaos-a11y.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 05 · Load, chaos, a11y & visual-regression test infra
-
-> **Phase 0 — Test confidence** · **Depends on:** 01–04 · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-A $1B platform proves it survives load, failure, and regressions — not just that the happy path
-passes. Stand up the four test types the suite is missing today: **load/soak**, **chaos/resilience**,
-**accessibility**, and **visual regression**. These run out-of-band (nightly / pre-GA), not on every PR.
-
-## Context (read first)
-- `CLAUDE.md`; existing partial perf tests (`tests/*club-perf*`, `*club-venue-load*`).
-- Heaviest request paths: forge generation (300s `maxDuration` in `vercel.json`), x402-pay, agent create, avatar render.
-- Dependencies already present you can lean on: `@playwright/test`, `fast-check` (property tests), `cockatiel` (for chaos injection of breakers).
-
-## Build this
-1. **Load/soak** — a script (`scripts/loadtest-*.mjs` or k6/autocannon if you add it as a devDep) that drives sustained RPS against forge-creation, x402-pay, and agent-create, recording p50/p95/p99 latency, error rate, and DB connection-pool behavior. Define target SLOs (e.g. p95 < Xs at N RPS) and fail the run if breached.
-2. **Chaos/resilience** — tests that inject failure at boundaries (RPC down, DB timeout, Redis unavailable, payment facilitator slow) and assert graceful degradation, not 500 storms. Pair with Phase 1/5 work (breakers, fallbacks).
-3. **Accessibility** — wire `@axe-core/playwright` (add devDep) into a Playwright project that scans the top ~15 pages and fails on serious/critical violations. This becomes the gate for prompt 21.
-4. **Visual regression** — Playwright screenshot baselines for the top pages + key components (forge card, marketplace grid, dashboard). Tolerant diffing; baselines committed; a `--update-snapshots` path documented.
-5. **Property tests** — use `fast-check` on at least the canonicalization / pricing / parsing logic where input space is large.
-
-## Files likely in play
-`scripts/loadtest-forge.mjs` / `loadtest-x402.mjs` (new), `tests/chaos/*.test.js` (new), `tests/a11y/axe.spec.*` (new), `tests/visual/*.spec.*` (new + baselines), `package.json` (new devDeps + `test:load`, `test:chaos`, `test:a11y`, `test:visual` scripts), nightly `.github/workflows`.
-
-## Definition of done
-- [ ] Each of the four suites runs locally and in a nightly CI job; documented in `tests/README.md`.
-- [ ] Load run prints latency percentiles + error rate and enforces SLO thresholds.
-- [ ] Chaos suite asserts degradation (no unhandled 500s) for RPC/DB/Redis/facilitator outages.
-- [ ] axe suite is green on the top pages (or filed issues for what it flags → feeds prompt 21).
-- [ ] Visual baselines committed; diff job runs in CI.
-- [ ] Changelog: internal → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Don't point load tests at production money endpoints with real funds — use a test/staging target or deterministic local server. Push both remotes.
diff --git a/prompts/production-hardening/06-error-handling-sweep.md b/prompts/production-hardening/06-error-handling-sweep.md
deleted file mode 100644
index 80160bcc1..000000000
--- a/prompts/production-hardening/06-error-handling-sweep.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 06 · Eliminate silent failures (empty catch / fire-and-forget)
-
-> **Phase 1 — Reliability** · **Depends on:** none (pairs with 26) · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-The audit found **138 files with empty catch blocks** and **70+ `.catch(() => {})` fire-and-forget**
-chains across `api/`. Critical background work — receipt emails, payment cleanup, resource teardown,
-cache invalidation — fails invisibly. CLAUDE.md forbids lazy error propagation. Replace silent
-swallows with logged-and-alerted handling via a shared helper, so every failure is at least *seen*.
-
-## Context (read first)
-- `CLAUDE.md` hard rule #9 ("No errors without solutions"); errors handled at boundaries.
-- Existing infra: `api/_lib/sentry.js` (`captureException`), `sendOpsAlert`, the `wrap()` boundary in `api/_lib/http.js` (used by ~512 handlers), `scripts/audit-empty-handlers.mjs` (`npm run audit:handlers`).
-- Confirmed offenders: `api/agents.js:353,363` (`pingIndexNow().catch(()=>{})`), `api/forge.js:1315` (`releaseForgePayment().catch(()=>{})` — payment cleanup hidden), `api/payments/evm/[action].js:126` (receipt email loss), `api/pump-fun-mcp.js:518,577,606,612` (swallowed metadata/price/teardown), 16+ `Promise.all` that fail-whole on one rejection (`api/sitemap.js:57`).
-
-## Build this
-1. **A shared background-task helper** — e.g. `api/_lib/background.js` exporting `fireAndLog(promise, { op, context })` that awaits where appropriate or attaches a `.catch` that calls `captureException` + a debug log (and `sendOpsAlert` for the ones that matter: payments, emails, settlement cleanup). One canonical way to do "non-critical but observable."
-2. **Sweep `api/`** replacing bare `catch {}` / `.catch(() => {})` with either: (a) real recovery, (b) `fireAndLog(...)`, or (c) a deliberate, commented `// best-effort: <why>` *only* where truly inconsequential. No silent swallow survives without justification.
-3. **Fix fail-whole `Promise.all`** — convert to `Promise.allSettled` with sane per-item defaults where one failure shouldn't 500 the whole response (sitemap, home-stats, status, aggregations).
-4. **Tighten `galaxy.js`-style `readJson().catch(() => ({}))`** that silently proceeds with empty input → validate or 400 (overlaps with prompt 07; do the obvious ones here).
-5. **Extend `scripts/audit-empty-handlers.mjs`** to flag new bare empty catches / fire-and-forget without the helper, and add it to CI so the regression can't return.
-
-## Files likely in play
-`api/_lib/background.js` (new), the offender files above + the broader sweep across `api/`, `scripts/audit-empty-handlers.mjs`, `.github/workflows`.
-
-## Definition of done
-- [ ] `npm run audit:handlers` (extended) passes and is wired into CI.
-- [ ] Every payment/email/settlement background task is observable (logged + alerted).
-- [ ] No fail-whole `Promise.all` on multi-source read endpoints.
-- [ ] Existing tests pass; add a small test for `fireAndLog` behavior.
-- [ ] Changelog: mostly internal; if any user-visible reliability fix results (e.g. receipts that were silently dropping now send), add a **fix** entry.
-
-## Guardrails
-Follow CLAUDE.md. Don't introduce noisy logging in hot read paths — alert only on what matters. Stage explicit paths (large sweep across shared files; re-check `git status`). Push both remotes.
diff --git a/prompts/production-hardening/07-fetch-guards-input-validation.md b/prompts/production-hardening/07-fetch-guards-input-validation.md
deleted file mode 100644
index e9f7ed6cc..000000000
--- a/prompts/production-hardening/07-fetch-guards-input-validation.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 07 · Fetch `.ok` guards + universal input validation
-
-> **Phase 1 — Reliability** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-Two systemic gaps from the audit: (1) **20+ `await res.json()` calls without a prior `if (!res.ok)`
-guard** — an upstream 4xx/5xx throws a confusing `JSON.parse` error instead of a clean failure; and
-(2) **public read endpoints trust raw query params** while POST bodies are well-validated with zod.
-Close both so every external response and every inbound request is validated at the boundary.
-
-## Context (read first)
-- `CLAUDE.md` ("Errors handled at boundaries (network, user input)").
-- Validation infra: `zod` (dependency), `api/_lib/validate.js` (existing schemas), `readJson(req)` helper.
-- Confirmed unguarded fetches: `api/play-og.js:74`, `api/pump/curve.js:45`, `api/agent-wallet-bridge.js:126`.
-- Confirmed weak param handling: `api/galaxy.js:179` (`readJson().catch(() => ({}))` → empty query proceeds), `api/explore-item.js:23` (`kind` unparsed), `api/play-og.js:199` (`coin` empty-string accepted).
-
-## Build this
-1. **A safe fetch-JSON helper** — `api/_lib/fetch-json.js` exporting something like `fetchJson(url, opts)` that: respects existing SSRF guards (`api/_lib/ssrf.js` / `guardedFetch`), checks `res.ok`, and throws a structured error with status + a snippet of the body on failure. Replace the raw `await res.json()` sites with it.
-2. **Query/param validation** — add zod schemas for query params on read endpoints (mirror the POST-body pattern). Validate at entry; return a clean 400 on bad input; never let `undefined`/empty silently flow downstream.
-3. **`readJson` fallback discipline** — anywhere `readJson().catch(() => ({}))` is used, validate the parsed body with a schema and 400 on failure instead of proceeding with an empty object.
-4. **A lint guard** — add a check (ESLint rule or a `scripts/audit-*.mjs`) that flags `await <x>.json()` not preceded by an `.ok` check / not going through `fetchJson`, and `readJson(` without a nearby `.parse(`. Wire into CI so it can't regress.
-
-## Files likely in play
-`api/_lib/fetch-json.js` (new), the unguarded-fetch + weak-param files above, broader `api/` sweep, `api/_lib/validate.js` (new query schemas), `.eslintrc`/`scripts/audit-*.mjs`, `.github/workflows`.
-
-## Definition of done
-- [ ] No raw `await res.json()` without `.ok`/`fetchJson` in `api/`; lint guard enforces it.
-- [ ] Read endpoints validate query params with zod and return clean 400s.
-- [ ] No `readJson().catch(() => ({}))` proceeding on empty/invalid input.
-- [ ] Tests: add cases for malformed input → 400 and upstream-error → structured failure.
-- [ ] Changelog: internal hardening → **no** entry (unless a user-visible error message improves).
-
-## Guardrails
-Follow CLAUDE.md. Keep using `guardedFetch`/SSRF protections — do **not** route new fetches through `axios` (see prompt 15). Push both remotes.
diff --git a/prompts/production-hardening/08-circuit-breakers-cockatiel.md b/prompts/production-hardening/08-circuit-breakers-cockatiel.md
deleted file mode 100644
index ebe6f308f..000000000
--- a/prompts/production-hardening/08-circuit-breakers-cockatiel.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 08 · Unify circuit breakers on cockatiel
-
-> **Phase 1 — Reliability** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-`cockatiel` is already a dependency (and a saved team preference — see memory "Prefer vetted OSS,
-additive"), yet each subsystem reinvents its own ad-hoc cooldown/breaker logic (`api/feed-stream.js`
-`breakerUntil` + 5-min cooldown, forge's own breaker, `solana/connection.js` per-provider cooldown).
-Consolidate on a shared cockatiel-based resilience layer so external-dependency failures are handled
-consistently and one flaky provider can't take down unrelated features.
-
-## Context (read first)
-- `CLAUDE.md`; memory note: adopt vetted OSS, **additive** — wrap new/unprotected call sites, don't rip out working code mid-flight.
-- `cockatiel` docs (retry, circuit breaker, timeout, bulkhead, fallback policies).
-- Existing ad-hoc breakers: `api/feed-stream.js`, the forge generation breaker, `api/_lib/solana/connection.js` (well-implemented failover — wrap, don't break it).
-
-## Build this
-1. **A shared resilience module** — `api/_lib/resilience.js` exposing named policies built on cockatiel: e.g. `rpcPolicy`, `facilitatorPolicy`, `upstreamApiPolicy`, each a composed retry + timeout + circuit-breaker (+ fallback) tuned per dependency class. Include a small in-memory breaker-state registry so health is inspectable.
-2. **Adopt additively** — route currently-unprotected external calls (per prompt 07's `fetchJson`, LLM proxies, image fetches, facilitator calls) through the appropriate policy. Migrate the ad-hoc breakers to the shared one **only where it's a clean swap**; leave the solid `solana/connection.js` failover intact but expose its breaker state to the registry.
-3. **Surface breaker state** — a tiny read path (used later by the status page, prompt 40) listing each breaker's open/half-open/closed state and last error.
-4. **Tests** — cover open→half-open→closed transitions and fallback behavior (pairs with the chaos suite, prompt 05).
-
-## Files likely in play
-`api/_lib/resilience.js` (new), `api/feed-stream.js`, forge generation path, LLM/image proxy call sites, `api/_lib/x402-spec.js` (facilitator calls), `api/_lib/solana/connection.js` (registry hook), tests.
-
-## Definition of done
-- [ ] One shared cockatiel-based policy module; named policies per dependency class.
-- [ ] Previously-unprotected external calls now wrapped; no behavior regressions.
-- [ ] Breaker states inspectable via a single read path.
-- [ ] Tests cover breaker transitions + fallbacks; chaos suite (05) exercises them.
-- [ ] Changelog: internal reliability → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md and the "additive" preference — don't refactor working failover into a regression. Keep timeouts conservative so you don't add latency to hot paths. Push both remotes.
diff --git a/prompts/production-hardening/09-graceful-degradation.md b/prompts/production-hardening/09-graceful-degradation.md
deleted file mode 100644
index 2d508e48e..000000000
--- a/prompts/production-hardening/09-graceful-degradation.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 09 · Graceful degradation for auth & payments when deps are down
-
-> **Phase 1 — Reliability** · **Depends on:** 08 (shared breakers) · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-The audit found critical paths with no explicit fallback: if the DB is down, **login 500s**; if
-Upstash Redis is down, **every `/api/x402/*` endpoint exits with code 1** on cold start. Define and
-implement deliberate degradation behavior for the paths users cannot live without — fail *safe and
-legibly*, never with a raw 500 or a silent fail-open on money.
-
-## Context (read first)
-- `CLAUDE.md` hard rule #9.
-- `api/healthz.js` (already catches DB errors → liveness fallback), `api/status.js` (warming-up state).
-- Auth: `api/_lib/auth.js`, `csrf.js`. Payments: `api/_lib/x402/*`, Redis requirement (`@upstash/redis`, `@upstash/ratelimit`) — note USE-15: x402 exits on missing Redis.
-- Resilience layer from prompt 08.
-
-## Build this
-1. **Auth degradation** — when the DB/session store is briefly unavailable: distinguish "can't verify → 503 with Retry-After + clear message" from a hard 500. Never grant access on failure. Consider a short read-through cache for session validation so transient blips don't log everyone out.
-2. **Payments + Redis** — x402 needs Redis for idempotency; do **not** fail-open (that risks double-spend). Instead: fail-*closed* with a clean 503 and a precise operator message, and add a startup/health signal that flags missing Redis loudly (pairs with prompt 16). If a safe degraded mode exists (e.g. DB-backed idempotency fallback), implement it explicitly and test it.
-3. **Standard degraded response** — a shared helper for 503 + `Retry-After` + structured body, used consistently so clients (and the status page) can react.
-4. **Decision matrix** — document, in `docs/`, for each critical dependency (DB, Redis, RPC, facilitator, S3/R2): what degrades, how, and what the user sees. This is the contract the chaos suite (05) verifies.
-
-## Files likely in play
-`api/_lib/auth.js`, `api/_lib/x402/*`, `api/_lib/http.js` (503 helper), `api/healthz.js`/`status.js`, `docs/degradation-matrix.md` (new), tests + chaos cases.
-
-## Definition of done
-- [ ] DB-down → auth returns 503 w/ Retry-After (not 500); never fail-open.
-- [ ] Redis-down → x402 fails closed cleanly (or a tested DB-backed fallback), never silent-exit or double-spend.
-- [ ] Degradation matrix doc committed; chaos suite asserts each row.
-- [ ] Tests pass; no fail-open on money paths.
-- [ ] Changelog: if users now see a clean "temporarily unavailable" instead of a broken page → **fix** entry.
-
-## Guardrails
-Follow CLAUDE.md. **Fail-closed on anything touching money or access.** Push both remotes.
diff --git a/prompts/production-hardening/10-settlement-delivery-refund.md b/prompts/production-hardening/10-settlement-delivery-refund.md
deleted file mode 100644
index 112ba519a..000000000
--- a/prompts/production-hardening/10-settlement-delivery-refund.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 10 · Settlement↔delivery atomicity + refund path
-
-> **Phase 2 — Money safety** · **Depends on:** 02 (tests), 14 (ledger — can land together) · **Parallel-safe:** no (core money logic) · **Effort:** L
-
-## Mission
-**Highest-priority money bug.** In `api/x402-pay.js`, settlement happens *after* MCP dispatch: if a
-tool executes but fails before returning a result, the **payment is confirmed but no service is
-delivered**, and there is **no refund path**. At volume this is unreconciled customer loss. Make
-pay→deliver atomic-enough that every confirmed payment either delivers or refunds, and every
-exception is recorded for reconciliation.
-
-## Context (read first)
-- `CLAUDE.md` ($THREE only; no shortcuts on money).
-- `api/x402-pay.js` (~lines 790–832 settle-vs-dispatch ordering; lines 541–680 `runExternalFlow`).
-- `api/_lib/x402-spec.js` (`settlePayment`, facilitator), `api/_lib/x402/idempotency-cache.js`.
-- Reconciliation ledger from prompt 14 (build the table contract together if running them in sequence).
-
-## Build this
-1. **Order of operations** — settle only after the deliverable is secured, OR capture-then-settle: verify payment authorization → execute/deliver → settle. Where the deliverable can fail after an irreversible settlement, you MUST have a refund.
-2. **Refund path** — implement `refundPayment(...)` for each rail (Solana SPL transfer back; EVM/BSC equivalent) that returns funds to the payer and records the refund. Trigger it automatically when delivery fails after settlement.
-3. **Failed-delivery record** — write every "paid but not delivered (yet)" event to a durable table (`x402_failed_deliveries`: tx, sku, payer, amount, reason, refunded_at). This is the source of truth for ops + the ledger (prompt 14).
-4. **Idempotent retries** — a delivery that times out but later succeeds must not double-charge or double-deliver; reconcile via the idempotency cache + the failed-delivery table.
-5. **Tests** — simulate: dispatch throws after settle → refund issued + recorded; refund itself fails → flagged for manual reconciliation + alert; happy path unaffected. Add to gate.
-
-## Files likely in play
-`api/x402-pay.js`, `api/_lib/x402-spec.js`, `api/_lib/x402/refund.js` (new), `api/_lib/migrations/*_x402_failed_deliveries.sql` (new), `api/_lib/x402/idempotency-cache.js`, tests.
-
-## Definition of done
-- [ ] Every confirmed payment provably delivers or refunds; no settle-then-silently-fail path remains.
-- [ ] `x402_failed_deliveries` table + migration; populated on failure, cleared on refund/redelivery.
-- [ ] Refund implemented and tested per rail; refund failure alerts (via prompt 06 helper).
-- [ ] Tests cover the loss scenario + idempotent retry; added to `GATE_TESTS`.
-- [ ] Changelog: **fix** entry (user-visible trust: "payments that don't deliver are now auto-refunded").
-
-## Guardrails
-Follow CLAUDE.md. This is real money — be conservative, fail-closed, and over-record. Use $THREE CA or synthetic placeholders in tests. Push both remotes.
diff --git a/prompts/production-hardening/11-x402-external-idempotency.md b/prompts/production-hardening/11-x402-external-idempotency.md
deleted file mode 100644
index a6f07f74b..000000000
--- a/prompts/production-hardening/11-x402-external-idempotency.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 11 · Idempotency for external x402 flows
-
-> **Phase 2 — Money safety** · **Depends on:** 10 · **Parallel-safe:** no (money logic) · **Effort:** M
-
-## Mission
-The internal Solana flow uses an idempotency cache, but `runExternalFlow` in `api/x402-pay.js`
-**bypasses it entirely**. A network timeout mid-response on an external paid call can cause a
-**double-charge** on retry. Bring external x402 flows under the same idempotency guarantee.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/x402-pay.js` `runExternalFlow` (~lines 541–680; the code already logs "status could not be confirmed" ~617–621 but offers no replay protection).
-- `api/_lib/x402/idempotency-cache.js` (the existing internal guard — generalize it).
-- Redis requirement + the fail-closed posture from prompt 09.
-
-## Build this
-1. **Idempotency key for external flows** — derive a stable key (payer + payTo + amount + asset + request fingerprint, or an explicit client-supplied `Idempotency-Key`). Before signing/sending, check the cache; on a confirmed prior result, return it instead of re-paying.
-2. **Two-phase record** — mark "in-flight" before send, "settled"/"failed" after. A retry that finds "in-flight" must not re-send; it reconciles (poll/confirm) the original.
-3. **Confirmation-after-timeout** — when send times out, attempt to confirm the original on-chain/with the facilitator before ever retrying; only retry if provably not landed.
-4. **Generalize the cache** — refactor `idempotency-cache.js` so both internal and external flows share one implementation and one store (Redis-backed, with the prompt-09 fail-closed behavior).
-5. **Tests** — same key twice → one charge; timeout-then-retry → reconcile, not double-send; concurrent duplicate requests → one settles. Add to gate.
-
-## Files likely in play
-`api/x402-pay.js`, `api/_lib/x402/idempotency-cache.js`, `api/_lib/x402/refund.js` (from prompt 10, for reconciliation), tests.
-
-## Definition of done
-- [ ] `runExternalFlow` is idempotent; duplicate/retried external payments charge exactly once.
-- [ ] Timeout path reconciles before any retry; no blind re-send.
-- [ ] One shared idempotency implementation for internal + external.
-- [ ] Tests cover duplicate, timeout-retry, and concurrent-duplicate; added to `GATE_TESTS`.
-- [ ] Changelog: **fix** entry (trust: "no more double-charges on flaky networks").
-
-## Guardrails
-Follow CLAUDE.md. Fail-closed if the idempotency store is unavailable (don't pay without it). $THREE/synthetic only in fixtures. Push both remotes.
diff --git a/prompts/production-hardening/12-agent-spend-policy.md b/prompts/production-hardening/12-agent-spend-policy.md
deleted file mode 100644
index c14997fdc..000000000
--- a/prompts/production-hardening/12-agent-spend-policy.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 12 · Enforce agent spend policy (no silent platform-wallet fallback)
-
-> **Phase 2 — Money safety** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-In `api/x402-pay.js`, `resolvePayerRouting` **warns but allows** a fallback to the shared platform
-wallet (`X402_AGENT_SOLANA_SECRET_BASE58`) when a call is missing `agentId` — bypassing per-agent
-spend policy. A regression that drops `agentId` would spend platform funds *unmetered* until someone
-reads the logs. Make the policy enforced, not advisory, and add a hard daily ceiling as a backstop.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/x402-pay.js` (~lines 1084–1106 `resolvePayerRouting`; line ~1100 `log.warn('platform_wallet_fallback')`).
-- Spend policy + guards: `api/_lib/agent-spend-policy.js`, `agent-custody-guards.js`, `agent-trade-guards.js` (and `tests/agent-custody-guards.test.js`).
-
-## Build this
-1. **Reject, don't warn** — an agent payment call missing `agentId` (or with an `agentId` that can't be resolved to a funded, policy-bound wallet) returns **403** with a clear error. The shared platform wallet is used only for explicitly platform-initiated operations, never as an implicit fallback for agent calls.
-2. **Per-agent caps enforced server-side** — ensure every spend path runs through `agent-spend-policy` (per-tx + rolling daily/period caps). No code path spends agent funds without a policy check.
-3. **Global backstop** — a per-SKU and per-wallet daily ceiling (config-driven) that halts runaway spend from a bug even if per-agent policy is somehow bypassed; breach → block + ops alert (prompt 06 helper).
-4. **Audit trail** — record every spend decision (allowed/blocked + reason) for reconciliation (prompt 14).
-5. **Tests** — missing `agentId` → 403; over-cap → blocked; platform op still works; daily ceiling halts a simulated runaway. Add to gate.
-
-## Files likely in play
-`api/x402-pay.js`, `api/_lib/agent-spend-policy.js`, `api/_lib/agent-custody-guards.js`, config for ceilings, tests.
-
-## Definition of done
-- [ ] No silent platform-wallet fallback; missing/unresolvable `agentId` → 403.
-- [ ] Every agent spend passes a server-side policy check.
-- [ ] Global per-SKU/per-wallet daily ceiling enforced; breach alerts.
-- [ ] Spend decisions recorded for audit.
-- [ ] Tests cover all four; added to `GATE_TESTS`.
-- [ ] Changelog: internal money-safety → optional **security**/**fix** entry if user-observable.
-
-## Guardrails
-Follow CLAUDE.md. Fail-closed. Don't loosen guards to make a flow work — fix the caller to pass `agentId`. Push both remotes.
diff --git a/prompts/production-hardening/13-three-gate-fail-closed.md b/prompts/production-hardening/13-three-gate-fail-closed.md
deleted file mode 100644
index 605c78a7a..000000000
--- a/prompts/production-hardening/13-three-gate-fail-closed.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 13 · $THREE gating: fail-closed + tier caching
-
-> **Phase 2 — Money safety** · **Depends on:** 08 (breakers) · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-$THREE holder gating is server-verified (good), but `api/_lib/three-access.js` **degrades to the
-Member tier on any RPC failure** ("never throws — degrades to the Member floor"). When RPC is
-flaky, gated benefits leak to non-holders. Decide and implement the correct posture: cache verified
-tiers so transient RPC blips don't drop real holders, and fail-*closed* (not open) for paid/elevated
-gates while keeping a graceful experience for read-only surfaces.
-
-## Context (read first)
-- `CLAUDE.md` — **$THREE is the only coin**, CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-- `api/_lib/three-gate.js` (`checkThreeBalance`), `api/_lib/three-access.js` (~lines 165–174 fail-open degrade), `public/x402.js` (~213–231 client balance reads — display only, never authority).
-- Memory: "Solana is the platform-wide default network."
-- RPC failover (`api/_lib/solana/connection.js`) + resilience layer (prompt 08).
-
-## Build this
-1. **Tier cache** — cache a wallet's verified $THREE tier (Redis, TTL ~1h with jittered refresh) so a momentary RPC failure reuses the last *known-good* tier instead of dropping to Member. Cache only *successful* reads.
-2. **Fail-closed for elevation** — for anything that grants paid features, free generation beyond the public allotment, or spend benefits: on an uncached RPC failure, **deny the elevated grant** (treat as unverified) rather than silently granting Member-or-above benefits that cost money. Make the distinction explicit in `three-access.js`.
-3. **Graceful read surfaces** — purely cosmetic/read-only gating may degrade softly, but must not unlock anything monetizable.
-4. **Client is never authority** — confirm `public/x402.js` balance reads are display-only and every grant is server-checked. Remove any path where the client value influences access.
-5. **Tests** — RPC down + warm cache → real tier preserved; RPC down + cold cache → elevated denied, read-only soft-degrades; client-supplied balance never elevates. Add to gate.
-
-## Files likely in play
-`api/_lib/three-access.js`, `api/_lib/three-gate.js`, tier cache module (Redis), `public/x402.js` (audit), tests.
-
-## Definition of done
-- [ ] Verified tiers cached; transient RPC failures don't drop real holders.
-- [ ] Elevated/monetizable grants fail-closed on uncached RPC failure.
-- [ ] No client-supplied balance can elevate access.
-- [ ] Tests cover warm-cache, cold-cache, and client-spoof cases; added to `GATE_TESTS`.
-- [ ] Changelog: **security**/**fix** entry ("$THREE benefits no longer leak during RPC hiccups").
-
-## Guardrails
-Follow CLAUDE.md. $THREE is the only coin — never reference another token in code, tests, or copy. Fail-closed on money. Push both remotes.
diff --git a/prompts/production-hardening/14-payment-reconciliation.md b/prompts/production-hardening/14-payment-reconciliation.md
deleted file mode 100644
index 3d0d47f5f..000000000
--- a/prompts/production-hardening/14-payment-reconciliation.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 14 · Payment reconciliation ledger + ops alerts
-
-> **Phase 2 — Money safety** · **Depends on:** 10, 12 (share the table contracts) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-There is **no reconciliation** between on-chain payment state and the DB, no refund audit, and no
-early-warning on repeated settlement failures. A $1B platform must be able to answer, at any moment:
-"who paid, what did they get, what's owed, and what's stuck?" Build a durable payment ledger plus a
-reconciliation job and fraud/anomaly alerts.
-
-## Context (read first)
-- `CLAUDE.md`.
-- Payment write paths: `api/x402-pay.js`, `api/x402-checkout-record.js` (unique `(sku_id, tx_signature)`), `api/_lib/x402-spec.js`, `api/_lib/x402-bsc-direct.js` (replay guard), `api/pump/[action].js`.
-- Metrics sink already present: `api/_lib/axiom.js` (payment metrics). Ops alerts: `sendOpsAlert` + prompt 06 helper.
-- The `x402_failed_deliveries` table from prompt 10.
-
-## Build this
-1. **Unified ledger** — a `payments_ledger` table capturing every money event (charge, settle, refund, failed-delivery, payout) with: rail, payer, payTo, amount, asset, tx ref, sku/agent, status, timestamps. All payment paths write to it (single helper, not scattered inserts).
-2. **Reconciliation job** — a cron/worker that compares ledger entries to on-chain/facilitator truth: flags settled-but-not-delivered, delivered-but-not-settled, refunds owed, and orphaned txs. Emits a daily reconciliation report.
-3. **Anomaly alerts** — real-time alert on: repeated settlement failures from one payer (fraud signal), refund spikes, daily-ceiling breaches (prompt 12), and any ledger row stuck > N minutes.
-4. **Ops surface** — a minimal authenticated read (admin-gated, see `requireAdmin`) that lists open/stuck items for manual resolution; feeds the status/ops view.
-5. **Tests** — ledger writes on each event; reconciliation correctly flags each mismatch class; alert fires on the fraud pattern.
-
-## Files likely in play
-`api/_lib/payments-ledger.js` (new), `api/_lib/migrations/*_payments_ledger.sql` (new), a reconciliation worker/cron (`workers/` or a scheduled function), `api/_lib/axiom.js` (metric hooks), admin read endpoint, tests.
-
-## Definition of done
-- [ ] Every money event writes to one ledger via one helper.
-- [ ] Reconciliation job flags all mismatch classes + emits a daily report.
-- [ ] Anomaly alerts wired (fraud, refund spike, stuck rows, ceiling breach).
-- [ ] Admin-gated ops read of open items.
-- [ ] Tests cover writes, reconciliation, and an alert path.
-- [ ] Changelog: internal/ops → **no** entry (unless an admin-visible page is added → **feature**).
-
-## Guardrails
-Follow CLAUDE.md. Admin endpoints must use `requireAdmin`. $THREE/synthetic only in fixtures. Don't log full secrets/keys in the ledger. Push both remotes.
diff --git a/prompts/production-hardening/15-dependency-vuln-remediation.md b/prompts/production-hardening/15-dependency-vuln-remediation.md
deleted file mode 100644
index 37ae4942f..000000000
--- a/prompts/production-hardening/15-dependency-vuln-remediation.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 15 · Remediate vulnerable dependencies (axios et al.)
-
-> **Phase 3 — Security** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-`npm audit` surfaces high-severity issues — most notably **axios** (multiple CVEs incl. SSRF bypass,
-prototype pollution, credential leakage). Given this codebase fetches user-supplied/remote URLs in
-several paths, a vulnerable HTTP client is a direct SSRF/abuse risk *even with* the custom SSRF guard.
-Patch or eliminate the risky deps and put a recurring audit in CI so they can't creep back.
-
-## Context (read first)
-- `CLAUDE.md`; memory: "Prefer vetted OSS, additive."
-- SSRF defense: `api/_lib/ssrf.js` / `guardedFetch` (DNS-pin, private-IP blocklist) — the source of truth; native `fetch`/`undici` go through it.
-- Flagged by audit: `axios` (14+ CVEs), `@opentelemetry/core` (<2.8.0 unbounded memory), `@libp2p/kad-dht` (<16.2.6 disk exhaustion, via helia), `@ai-sdk/provider-utils` (via `qwen-ai-provider`, no fix).
-
-## Build this
-1. **Inventory** — run `npm audit` (and `npm ls axios` etc.) and list exactly where each flagged dep is used, transitive vs direct.
-2. **axios** — upgrade to the latest patched line; better, **migrate first-party axios usage to `guardedFetch`/native fetch** so all outbound HTTP goes through the SSRF guard. Where a transitive dep pins old axios, override via `package.json` `overrides`.
-3. **Other flagged deps** — bump `@opentelemetry/core` ≥2.8.0 and `@libp2p/kad-dht`/`helia` to patched versions (via `overrides` if transitive). For `qwen-ai-provider` (no fix): assess whether it's actually used; if not, remove it; if yes, sandbox/limit its exposure and document the residual risk.
-4. **CI guard** — add `npm audit --audit-level=high` (or `better-npm-audit` with a tracked allowlist for accepted/unfixable items) to CI; document any accepted exceptions with rationale + review date.
-5. **Verify** — full test suite + `npm run build` succeed after upgrades; no runtime regressions in payment/forge/image-fetch paths.
-
-## Files likely in play
-`package.json` (deps + `overrides`), `package-lock.json`, first-party axios call sites → `guardedFetch`, `.github/workflows`, a short `docs/security/dependency-policy.md`.
-
-## Definition of done
-- [ ] `npm audit --audit-level=high` clean (or every remaining item explicitly accepted + documented).
-- [ ] No first-party outbound HTTP bypasses the SSRF guard.
-- [ ] CI fails on new high/critical advisories.
-- [ ] Full test suite + build green post-upgrade.
-- [ ] Changelog: **security** entry ("hardened dependencies / patched known vulnerabilities").
-
-## Guardrails
-Follow CLAUDE.md. Don't blanket-bump majors blindly — verify each upgrade against the suite. Keep the lockfile consistent (the repo uses workspaces; mind `npm ci`). Push both remotes.
diff --git a/prompts/production-hardening/16-secrets-startup-validation.md b/prompts/production-hardening/16-secrets-startup-validation.md
deleted file mode 100644
index 9a73d4700..000000000
--- a/prompts/production-hardening/16-secrets-startup-validation.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 16 · Startup secret validation + key-rotation safety
-
-> **Phase 3 — Security** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-`.env.example` documents 90–100+ secrets, but nothing validates them at boot. Worst case from the
-audit: when `WALLET_ENCRYPTION_KEY` is unset it **falls back to `JWT_SECRET`** — so a `JWT_SECRET`
-compromise = all custodial wallets compromised. And a missing `UPSTASH_*`/`JWT_SECRET` fails late,
-mid-request. Add a fail-fast config validator and make key rotation safe by construction.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `.env.example` (the full required-vars list — treat as the schema source).
-- `api/_lib/agent-wallet.js` (the WALLET_ENCRYPTION_KEY→JWT_SECRET fallback), `api/_lib/sentry.js` (silently null on bad DSN), Redis requirement (USE-15).
-- Key-rotation notes already in `.env.example` (append-to-keyset, never remove mid-rotation).
-
-## Build this
-1. **Config schema** — a zod (or equivalent) schema in `api/_lib/config.js` describing every env var: name, required-in-prod?, format, and grouping (db, redis, payments, llm, storage, observability, naming). One typed accessor used everywhere instead of raw `process.env`.
-2. **Fail-fast validation** — a startup/health check that, in production, **refuses to serve** (or loudly fails health) if any *critical* secret (`DATABASE_URL`, `JWT_SECRET`, `WALLET_ENCRYPTION_KEY`, x402 facilitator keys, `UPSTASH_*`) is unset/malformed. Non-critical missing vars degrade the related feature with a clear log, not a crash.
-3. **Kill the dangerous fallback** — `WALLET_ENCRYPTION_KEY` must be **required and distinct** from `JWT_SECRET` in prod; the implicit fallback is removed (or hard-errors) in production. Document the migration for any existing data encrypted under the old key.
-4. **Rotation safety** — support a key *set* (current + previous) for `JWT_SECRET` and `WALLET_ENCRYPTION_KEY` so rotation never breaks live sessions/wallets; add a tiny tool/check that warns if a key in active use is about to be removed.
-5. **Tests** — missing critical secret → health fails; malformed value → rejected; wallet encryption refuses JWT_SECRET fallback in prod; rotation keyset decrypts old + new.
-
-## Files likely in play
-`api/_lib/config.js` (new), `api/healthz.js`/`status.js` (surface validation), `api/_lib/agent-wallet.js`, `.env.example` (annotate critical vs optional), tests, `docs/security/secrets.md`.
-
-## Definition of done
-- [ ] One typed config accessor; raw `process.env` reads removed from app code (or minimized + justified).
-- [ ] Prod fails fast on any missing critical secret; non-critical degrade cleanly.
-- [ ] `WALLET_ENCRYPTION_KEY` required + distinct in prod; JWT_SECRET fallback gone.
-- [ ] Key-set rotation supported + documented; tests cover old+new decrypt.
-- [ ] Changelog: **security** entry.
-
-## Guardrails
-Follow CLAUDE.md. Never print secret values in logs or errors. Coordinate with prompt 09 (Redis fail-closed). Push both remotes.
diff --git a/prompts/production-hardening/17-rate-limit-coverage.md b/prompts/production-hardening/17-rate-limit-coverage.md
deleted file mode 100644
index 26efb2324..000000000
--- a/prompts/production-hardening/17-rate-limit-coverage.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 17 · Rate-limit coverage audit across all endpoints
-
-> **Phase 3 — Security** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-Rate limiting exists and is well-built (`api/_lib/rate-limit.js`, Upstash sliding window, fails
-closed in prod), but there's **no audit that every abuse-prone endpoint actually applies it**. A
-single unlimited generation/mint/payment endpoint is a cost-and-abuse hole. Produce a coverage map,
-close the gaps, and add a guard that flags any new endpoint shipping without an explicit limit decision.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/_lib/rate-limit.js` (`limits.*`, `clientIp`), `api/_lib/http.js` (`rateLimited`).
-- Known-covered: paid `x402/*`, forge (global breaker), payments. Unmapped: many read endpoints (some intentionally).
-- All ~100 handlers live in `api/`.
-
-## Build this
-1. **Coverage map** — a script (`scripts/audit-rate-limits.mjs`) that statically lists every endpoint and whether it calls a limiter, classifying each as: money/settlement, generation/compute, mint/launch, auth, write, or read. Output a table.
-2. **Close gaps** — add appropriate buckets to any abuse-prone endpoint missing one: generation/compute (cost), mint/launch (`api/pump/*`), auth (brute-force), and write endpoints. Tune limits per class (per-IP and, where applicable, per-wallet/per-agent).
-3. **Explicit opt-out** — endpoints that *intentionally* skip limiting (public caches, health) must declare it (a marker/comment the audit recognizes) so "no limit" is always a decision, never an oversight.
-4. **CI guard** — the audit script fails CI if any non-opted-out endpoint lacks a limiter.
-5. **Tests** — representative endpoints return 429 with correct headers past threshold; opted-out ones don't; limiter fails closed when Redis is down (coordinate with prompt 09).
-
-## Files likely in play
-`scripts/audit-rate-limits.mjs` (new), gap endpoints across `api/`, `api/_lib/rate-limit.js` (new buckets if needed), `.github/workflows`, tests.
-
-## Definition of done
-- [ ] Coverage map generated; every endpoint classified.
-- [ ] All abuse-prone endpoints rate-limited with class-appropriate buckets.
-- [ ] Intentional opt-outs explicitly marked.
-- [ ] CI fails on an unmarked, unlimited endpoint.
-- [ ] Tests cover 429 behavior + fail-closed.
-- [ ] Changelog: **security** entry if user-observable (e.g. clearer 429s), else internal.
-
-## Guardrails
-Follow CLAUDE.md. Don't rate-limit so aggressively that legitimate agent traffic breaks — tune per class. Push both remotes.
diff --git a/prompts/production-hardening/18-csp-security-headers.md b/prompts/production-hardening/18-csp-security-headers.md
deleted file mode 100644
index e7b882cf5..000000000
--- a/prompts/production-hardening/18-csp-security-headers.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 18 · Global CSP + security headers
-
-> **Phase 3 — Security** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-Baseline security headers are set (`x-content-type-options`, `x-frame-options: DENY`,
-`referrer-policy`), but **Content-Security-Policy appears only on `artifact.js`, not globally**. For
-a platform handling wallets and payments, a site-wide CSP (plus the rest of the modern header set)
-is table stakes against XSS and clickjacking. Roll out a strict, tested CSP everywhere without
-breaking the 3D viewers, wallet adapters, or embeds.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/_lib/http.js` (header helpers; current CORS + base headers ~lines 236–290), `api/artifact.js` (has a CSP line — generalize it), `vercel.json` (static asset headers).
-- Third-party surfaces that must keep working: `model-viewer`, Three.js (WASM/workers), Solana/EVM wallet adapters, livekit/colyseus, `@vercel/og`, embed scripts, the chat app.
-
-## Build this
-1. **Inventory sources** — enumerate what pages legitimately load (scripts, styles, fonts, images, `connect-src` for RPC/API/facilitator/CDN, `worker-src`/`wasm-unsafe-eval` for Three.js, `frame-src` for embeds).
-2. **Author a strict CSP** — default-deny, explicit allowlists, `frame-ancestors` to control embedding (the SDK embeds need framing — scope it, don't blanket-allow). Avoid `unsafe-inline` for scripts; use nonces/hashes for any inline. Set `object-src 'none'`, `base-uri 'self'`.
-3. **Apply globally** — both dynamic responses (`api/_lib/http.js` for HTML) and static assets (`vercel.json` headers), with per-surface overrides where embeds need looser `frame-ancestors`.
-4. **Round out headers** — `Strict-Transport-Security`, `Permissions-Policy` (lock down camera/mic/geo except where the selfie/AR features need them), `Cross-Origin-Opener-Policy`/`-Resource-Policy` as compatible.
-5. **Report-only first** — ship `Content-Security-Policy-Report-Only` with a report sink, verify zero legit breakage across the top pages + viewers + wallet flows, then flip to enforcing. Add a Playwright check that the top pages load with no CSP violations.
-
-## Files likely in play
-`api/_lib/http.js`, `vercel.json`, `api/artifact.js` (consolidate), a CSP source-of-truth module, a CSP-violation report endpoint, Playwright check.
-
-## Definition of done
-- [ ] Strict CSP enforced site-wide; embeds/viewers/wallet flows verified working.
-- [ ] Full modern header set present on HTML + static responses.
-- [ ] Report-only soak done; zero legit violations before enforcing.
-- [ ] Playwright asserts no CSP violations on the top pages.
-- [ ] Changelog: **security** entry.
-
-## Guardrails
-Follow CLAUDE.md. Test 3D viewers, wallet connect, and embeds explicitly — these break first under CSP. Don't weaken to `unsafe-inline` to "make it work"; use nonces. Push both remotes.
diff --git a/prompts/production-hardening/19-security-review-pentest.md b/prompts/production-hardening/19-security-review-pentest.md
deleted file mode 100644
index cd2e95036..000000000
--- a/prompts/production-hardening/19-security-review-pentest.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 19 · Pre-launch security review & pentest prep
-
-> **Phase 3 — Security** · **Depends on:** 15–18 · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Tie off Phase 3 with a structured, documented security review of the whole platform and prepare the
-artifacts an external pentest/audit firm will need. A $1B platform must be able to *show* its security
-posture, not just claim it. This prompt is authorized defensive review of the team's own code.
-
-## Context (read first)
-- `CLAUDE.md`; the `/security-review` skill (run it on the current diff/branch).
-- Prior findings to confirm-fixed: axios/deps (15), secret validation (16), rate limits (17), CSP (18), $THREE fail-closed (13), spend policy (12), idempotency (10/11).
-- Strong-already areas to verify still hold: parametrized SQL (`api/_lib/db.js`), SSRF guard (`api/_lib/ssrf.js`), admin gating (`requireAdmin`), CSRF (`api/_lib/csrf.js`), CORS allowlist (`api/_lib/http.js`).
-
-## Build this
-1. **Run the security-review skill** across the branch and triage every finding (fix or formally accept with rationale).
-2. **Threat model doc** — `docs/security/threat-model.md`: trust boundaries, assets (custodial keys, payments, user data, $THREE gating), attacker profiles, and the mitigations for each (STRIDE-style is fine). Cover the wallet custody model explicitly.
-3. **Auth/authorization matrix** — table of every endpoint × required auth/role; verify against code (catches missing `requireAdmin`/auth). Generate it from a script so it stays current.
-4. **Secrets & key management doc** — how secrets are stored, rotated (prompt 16), and what the blast radius of each compromise is.
-5. **Pentest readiness pack** — scope doc, test accounts/env, architecture diagram, known-accepted risks, and a responsible-disclosure / `security.txt` (`/.well-known/security.txt`) with a contact.
-6. **Dependency & SBOM** — generate an SBOM (e.g. `npm sbom` / CycloneDX) and commit the policy for keeping it fresh.
-
-## Files likely in play
-`docs/security/threat-model.md`, `docs/security/auth-matrix.md` (+ generator script), `docs/security/secrets.md` (from 16), `public/.well-known/security.txt`, SBOM output + script, fixes for any review findings.
-
-## Definition of done
-- [ ] security-review skill run; all findings fixed or documented-accepted.
-- [ ] Threat model + auth matrix + secrets docs committed; auth matrix is script-generated.
-- [ ] `security.txt` published with a disclosure contact.
-- [ ] SBOM generated + refresh policy documented.
-- [ ] Zero open criticals/highs (or each explicitly risk-accepted with an owner + date).
-- [ ] Changelog: **security** entry ("completed pre-launch security review").
-
-## Guardrails
-Follow CLAUDE.md. Report only — do not build exploit tooling. Don't paste real secrets into docs. Push both remotes.
diff --git a/prompts/production-hardening/20-state-kit-unification.md b/prompts/production-hardening/20-state-kit-unification.md
deleted file mode 100644
index 669aa7940..000000000
--- a/prompts/production-hardening/20-state-kit-unification.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 20 · Unify every list/feed on the shared state-kit
-
-> **Phase 4 — Frontend excellence** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-CLAUDE.md mandates that *every* state is designed (loading/empty/error/populated/overflow). The audit
-found only ~⅓ of major list surfaces use the shared `src/shared/state-kit.js`; others either
-re-implement states ad-hoc (`launches.js`, `radar.js`, `oracle.js`) or have **no states at all**
-(`/activity`, `/coin-intel`, `/trending`, `/feed`, `/animations`, gallery picker). Make state-kit the
-single, mandatory path so no surface ever shows a blank void or a bare spinner.
-
-## Context (read first)
-- `CLAUDE.md` UI/UX standards + Definition of Done.
-- `src/shared/state-kit.js` (`skeletonHTML`, `emptyStateHTML`, `errorStateHTML`, `ensureStateKitStyles`).
-- Compliant examples to mirror: `src/forge-showcase.js`, marketplace, agent-detail, dashboard-next pages.
-- Non-compliant: `/activity`, `/coin-intel`, `/trending`, `/feed`, `/animations`, `gallery-picker`; ad-hoc: `launches.js`, `radar.js`, `oracle.js`.
-
-## Build this
-1. **Migrate the ad-hoc surfaces** (`launches.js`, `radar.js`, `oracle.js`) to state-kit so empty/error/loading look consistent platform-wide; delete the bespoke `renderEmpty/renderError` duplicates.
-2. **Add states to the bare surfaces** (`/activity`, `/coin-intel`, `/trending`, `/feed`, `/animations`, gallery picker): skeleton on load, helpful empty state (tells the user what to do next + a CTA), actionable error state (what failed + a retry).
-3. **Overflow/long-content states** — long names, huge counts, 0 vs 1 vs 1000 items all render gracefully (truncation, pagination hooks).
-4. **Make it enforceable** — a lightweight contract (e.g. every feed render goes through a `renderList({container, state, items, empty, error})` wrapper) and an audit/test that flags a list-rendering module not using state-kit.
-5. **Verify in the browser** — `npm run dev`, exercise each surface's empty/error/loading by forcing the conditions; no blank screens, no console errors.
-
-## Files likely in play
-`src/shared/state-kit.js` (extend if needed), `src/launches.js`, `src/radar.js`, `src/oracle.js`, `src/activity*.js`, `src/coin-intel*.js`, `src/trending*.js`, `src/feed*.js`, `src/animations-gallery.js`, `src/gallery-picker*.js`, an audit script + test.
-
-## Definition of done
-- [ ] Every list/feed surface uses state-kit; no ad-hoc duplicates remain.
-- [ ] Loading (skeleton, not spinner), empty (helpful + CTA), error (actionable + retry) designed for each.
-- [ ] 0/1/many + long-content cases verified.
-- [ ] Audit/test flags non-compliant list modules; wired to CI.
-- [ ] Verified in a real browser; no console errors/warnings.
-- [ ] Changelog: **improvement** entry ("consistent, helpful empty/loading/error states across the app").
-
-## Guardrails
-Follow CLAUDE.md. No mocked data to "show" populated states — wire real fetches. Push both remotes.
diff --git a/prompts/production-hardening/21-accessibility-wcag.md b/prompts/production-hardening/21-accessibility-wcag.md
deleted file mode 100644
index a131c421a..000000000
--- a/prompts/production-hardening/21-accessibility-wcag.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 21 · WCAG 2.2 AA accessibility pass
-
-> **Phase 4 — Frontend excellence** · **Depends on:** 05 (axe infra helps) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-CLAUDE.md says accessibility is not optional, but the audit expects axe/Lighthouse to flag missing
-icon-button labels, inconsistent focus indicators, low-contrast dim text (`rgba(...,0.45/0.55)` on
-dark), heading-hierarchy gaps, and unlabeled dynamic images. Bring the platform to **WCAG 2.2 AA**
-and keep it there with an automated gate.
-
-## Context (read first)
-- `CLAUDE.md` accessibility standards.
-- `public/buttons.css` (`:focus-visible` defined but not universally applied), the dim-text tokens, icon buttons in `launches.js`/`radar.js`/`oracle.js`.
-- axe-core/Playwright infra from prompt 05 (build it here if 05 hasn't run).
-
-## Build this
-1. **Icon/interactive labels** — every icon-only button/link/chip/tab gets an `aria-label` (or visible text). Sweep `pages/` + `src/` for unlabeled interactive elements.
-2. **Focus visibility** — a consistent, visible `:focus-visible` ring on *all* interactive elements (buttons, links, chips, toggles, custom widgets). No `outline:none` without a replacement.
-3. **Contrast** — raise dim text/icon tokens to meet AA (4.5:1 body, 3:1 large/UI). Fix the `rgba(...,0.45/0.55)`-on-dark offenders centrally via tokens, not per-component.
-4. **Semantics & landmarks** — proper heading hierarchy (no skips), `<nav>`/`<main>`/`<header>` landmarks, lists as lists, dialogs with `role="dialog"` + focus trap + ESC, `aria-live` for async updates (toasts, feed inserts).
-5. **Keyboard nav** — every flow operable without a mouse: modals trap+restore focus, dropdowns/menus arrow-navigable, the forge/marketplace/dashboard fully keyboard-usable. Add a skip-to-content link.
-6. **Dynamic images** — meaningful `alt` (or `aria-hidden` if purely decorative) on avatar/coin/model thumbnails.
-7. **Gate it** — axe (prompt 05) green on the top ~15 pages at serious/critical; wire to CI.
-
-## Files likely in play
-Design tokens (CSS variables for text/contrast + focus ring), `public/buttons.css`, the offender modules, modal/dropdown components, `pages/*` landmark fixes, axe Playwright spec + CI.
-
-## Definition of done
-- [ ] axe: zero serious/critical violations on the top pages; CI-gated.
-- [ ] All interactive elements labeled + keyboard-operable with visible focus.
-- [ ] Contrast meets AA via tokens.
-- [ ] Modals/menus/toasts have correct roles, focus management, and `aria-live`.
-- [ ] Manually verified with keyboard-only + a screen reader on a key flow (forge or checkout).
-- [ ] Changelog: **improvement** entry ("accessibility: WCAG 2.2 AA across the platform").
-
-## Guardrails
-Follow CLAUDE.md. Don't bolt on ARIA where native HTML suffices — semantic elements first. Push both remotes.
diff --git a/prompts/production-hardening/22-performance-code-split.md b/prompts/production-hardening/22-performance-code-split.md
deleted file mode 100644
index 8267928cd..000000000
--- a/prompts/production-hardening/22-performance-code-split.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 22 · Performance: code-split, lazy 3D, Lighthouse ≥90
-
-> **Phase 4 — Frontend excellence** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Several JS modules are huge and not split (`marketplace.js` ~313KB, `irl.js` ~317KB, `walk.js`
-~178KB, `agent-edit.js` ~105KB), and heavy Three.js/`model-viewer` usage loads on the critical path
-even for grid pages. That tanks LCP/FID on mobile. Code-split per surface, lazy-load 3D only when a
-viewer mounts, and get the top pages to **Lighthouse ≥90 / Core Web Vitals green**.
-
-## Context (read first)
-- `CLAUDE.md` ("Performance by default": lazy-load heavy modules, debounce input, paginate, `transform`/`will-change` for animation).
-- `vite.config.js` (existing manualChunks: `three-core`, `three-addons`, `solana`, `ethers`).
-- Heavy modules above; PWA setup (`vite-plugin-pwa`, workbox).
-- Image lazy audit: `scripts/audit-image-loading.mjs` (`npm run check:images`).
-
-## Build this
-1. **Lazy 3D** — dynamically `import()` Three.js addons (`GLTFLoader`, `OrbitControls`, controls) and `model-viewer` only when a viewer is actually mounted (intersection/interaction), not at module top-level. Grid/list pages must render and be interactive before any 3D loads.
-2. **Per-surface code-split** — break the giant modules so each route loads only what it needs; push detail-only/editor-only code behind dynamic imports. Verify chunk graph in the build output.
-3. **List performance** — paginate or virtualize unbounded lists (marketplace, gallery, feeds); debounce search inputs; cap initial render.
-4. **CLS/LCP hygiene** — explicit `width`/`height` or `aspect-ratio` on all grid images (kills layout shift); `decoding="async"` + `loading="lazy"` off-fold (extend `check:images` to enforce both); preconnect/preload the true LCP resource per top page.
-5. **Measure + gate** — run Lighthouse (CI via `@lhci/cli` or Playwright traces) on the top ~10 pages; commit budgets (LCP, TBT, CLS, bundle size) and fail CI on regression.
-
-## Files likely in play
-`vite.config.js` (chunking), the heavy `src/*.js` modules (dynamic imports), grid/list renderers (pagination/virtualization + image sizing), `scripts/audit-image-loading.mjs`, Lighthouse CI config + budgets, `.github/workflows`.
-
-## Definition of done
-- [ ] No page loads Three.js/`model-viewer` before first paint unless it shows 3D above the fold.
-- [ ] Giant modules split; per-route bundle sizes meaningfully reduced (report before/after).
-- [ ] Lists paginated/virtualized; search debounced.
-- [ ] All grid images have dimensions/`aspect-ratio` + `decoding=async`; `check:images` enforces it.
-- [ ] Lighthouse ≥90 (perf) on the top 10 pages; budgets gate CI.
-- [ ] Changelog: **improvement** entry ("faster loads: code-splitting + lazy 3D").
-
-## Guardrails
-Follow CLAUDE.md. Don't break the viewers/PWA/offline behavior while splitting — verify in a real browser. Push both remotes.
diff --git a/prompts/production-hardening/23-responsive-audit.md b/prompts/production-hardening/23-responsive-audit.md
deleted file mode 100644
index bb874a741..000000000
--- a/prompts/production-hardening/23-responsive-audit.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 23 · Responsive at 320 / 768 / 1440 across all surfaces
-
-> **Phase 4 — Frontend excellence** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-CLAUDE.md requires every surface to work at 320 / 768 / 1440. The audit found responsive coverage is
-inconsistent — largely a single `768px` breakpoint, fixed-width spots, and untested edges (320px
-overflow, 1440px sprawl). Make every primary surface genuinely responsive and add a check so it stays
-that way.
-
-## Context (read first)
-- `CLAUDE.md` ("Responsive by default": relative units, flex/grid over fixed widths).
-- Existing media queries cluster at `max-width: 768px`; some dashboard/marketplace components have fixed max-widths.
-- Recent mobile work landed in the changelog (tour, walk companion) — match that quality bar.
-
-## Build this
-1. **Breakpoint tokens** — establish a small, documented set of breakpoints (e.g. 480 / 768 / 1024 / 1440) as CSS variables/utility classes; use them consistently instead of one-off `768px`.
-2. **Fix 320px** — no horizontal scroll, no clipped controls, tap targets ≥44px, readable type, composers/modals usable. Sweep the primary surfaces: forge, marketplace, gallery, dashboard, agent detail, launches, wallet/checkout.
-3. **Fix 1440px+** — content doesn't sprawl into unreadable line lengths or leave awkward voids; use max-widths + centered gutters where appropriate (mirror the recent forge full-width work).
-4. **Touch vs hover** — hover-only affordances have a touch equivalent; no functionality hidden behind `:hover` on touch devices.
-5. **Automated check** — a Playwright responsive spec that loads the top surfaces at 320/768/1440 and asserts no horizontal overflow + key elements visible; wire to CI. (Pairs with visual regression, prompt 05.)
-
-## Files likely in play
-Global CSS tokens + layout CSS across `pages/*` and `src/*`, the primary surface stylesheets, a Playwright responsive spec, `.github/workflows`.
-
-## Definition of done
-- [ ] Documented breakpoint tokens used consistently.
-- [ ] Every primary surface verified at 320/768/1440 — no overflow, no clipping, usable controls.
-- [ ] Touch equivalents for all hover affordances.
-- [ ] Responsive Playwright spec green in CI.
-- [ ] Verified in a real browser at all three widths.
-- [ ] Changelog: **improvement** entry ("responsive polish across phones, tablets, and wide screens").
-
-## Guardrails
-Follow CLAUDE.md. Test the 3D viewers and modals at 320px specifically — they break first. Push both remotes.
diff --git a/prompts/production-hardening/24-dead-path-link-gate.md b/prompts/production-hardening/24-dead-path-link-gate.md
deleted file mode 100644
index 02249ae01..000000000
--- a/prompts/production-hardening/24-dead-path-link-gate.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 24 · Dead-path & broken-link CI gate
-
-> **Phase 4 — Frontend excellence** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-CLAUDE.md: "If a button exists, it must work. If a link exists, it must go somewhere." Audit tooling
-exists (`page-audit.mjs`, a link auditor, `audit-empty-handlers.mjs`) but isn't gating CI. Find and
-fix every dead link, no-op button, and unreachable state across 125 pages, then lock it with a CI gate
-so dead paths can't ship again.
-
-## Context (read first)
-- `CLAUDE.md` ("Eliminate dead paths").
-- `npm run audit:web` (`scripts/page-audit.mjs`), the link auditor (`scripts/audit-links.mjs` if present), `npm run audit:handlers` (`scripts/audit-empty-handlers.mjs`), `npm run audit:pages` (`scripts/audit-page-index.mjs`).
-- 125 pages in `pages/`, nav config, and `data/pages.json`.
-
-## Build this
-1. **Run the auditors** and produce a consolidated report of: 404-ing internal links, external links that are dead, buttons/`data-action`s with no handler, modals that can't close, routes referenced but missing, nav entries pointing nowhere.
-2. **Fix every finding** — wire the handler, fix the href, add the missing page, or remove the dead affordance. No "exists but does nothing" survives.
-3. **Handler-binding check** — extend `audit-empty-handlers.mjs` (or add a check) so every `data-action="X"` has a bound listener and every declared route resolves.
-4. **CI gate** — add `audit:web` + link audit + handler audit to CI (strict), so a new dead path fails the build. Archive the report as a CI artifact.
-5. **Verify** — spot-check the highest-traffic pages in a real browser; click everything.
-
-## Files likely in play
-`scripts/page-audit.mjs`, `scripts/audit-links.mjs`, `scripts/audit-empty-handlers.mjs` (extend), nav/route config, the offending `pages/*` + `src/*`, `.github/workflows`.
-
-## Definition of done
-- [ ] Zero dead internal links, dead external links, or no-op buttons across the site.
-- [ ] Every `data-action` has a handler; every referenced route resolves.
-- [ ] `audit:web` + link + handler audits gate CI (strict); report archived.
-- [ ] Top pages clicked-through in a browser — everything works.
-- [ ] Changelog: **fix** entry if user-visible broken links were repaired.
-
-## Guardrails
-Follow CLAUDE.md. Removing an affordance is a last resort — prefer wiring it to where it should go. Push both remotes.
diff --git a/prompts/production-hardening/25-forge-server-thumbnails.md b/prompts/production-hardening/25-forge-server-thumbnails.md
deleted file mode 100644
index 9e7852945..000000000
--- a/prompts/production-hardening/25-forge-server-thumbnails.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 25 · Server-side Forge thumbnails
-
-> **Phase 4 — Frontend excellence** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-Geometry-first Forge lanes (nvidia/trellis/replicate) produce a GLB but **no `preview_image_url`**,
-so the "Fresh from the Forge" gallery falls back to client-side GLB frame capture — fragile, slow
-(megabytes per card), and a frequent source of blank/odd thumbnails. Generate a real thumbnail
-**server-side** at creation time so every creation has a stored preview, and the client never has to
-render a GLB just to show a card.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/_lib/forge-store.js` (`setPreview`, `preview_image_url`, `listShowcase` orders preview-first).
-- `src/forge-showcase.js` (the Plan A→D client fallback chain — keep as a *last* resort, not the norm).
-- Worker fleet that already does GLB/render work: `workers/` (e.g. `stylize`, `texture`, `remesh`, `model-*`). `sharp` and `@gltf-transform/*` are dependencies. There's an auto-rig sweep cron precedent (recent commit) for backfilling.
-
-## Build this
-1. **Render-on-create** — when a generation finishes and has a GLB but no preview, render a thumbnail server-side (headless GLB→image: a worker using a GL/offscreen renderer, or the existing render worker if one fits) and store it to R2/S3, then `setPreview`.
-2. **Backfill sweep** — a cron/worker (mirror the auto-rig sweep) that finds `done` creations with `glb_url` and null `preview_image_url` and backfills thumbnails, oldest-visible-first.
-3. **Consistent framing** — neutral lighting, auto-framed camera, square output, reasonable resolution (e.g. 512²), webp. Deterministic enough that thumbnails look uniform across the gallery.
-4. **Client simplification** — with previews now populated, `src/forge-showcase.js` should hit Plan A (stored image) for the vast majority; keep the GLB-capture/gradient fallback only for the rare missing case.
-5. **Tests** — store path sets preview correctly; backfill selects the right rows; gallery now serves previews; client fallback still works when a preview is genuinely absent.
-
-## Files likely in play
-A thumbnail render worker (`workers/forge-thumbnail/` or reuse an existing render worker), `api/_lib/forge-store.js`, the forge-completion path, a backfill cron, `src/forge-showcase.js` (simplify), tests.
-
-## Definition of done
-- [ ] New finished creations get a stored server-side `preview_image_url`.
-- [ ] Backfill sweep populates previews for existing preview-less creations.
-- [ ] Gallery cards render from stored previews (no GLB download needed for thumbnails).
-- [ ] Client GLB-capture path remains only as a genuine last resort.
-- [ ] Tests cover create-render, backfill, and gallery serving.
-- [ ] Changelog: **improvement** entry ("Forge gallery thumbnails are crisp and instant").
-
-## Guardrails
-Follow CLAUDE.md. No fake/placeholder thumbnails — render the real model. Mind worker cost/scale (coordinate with prompts 30/31). Push both remotes.
diff --git a/prompts/production-hardening/26-logging-tracing.md b/prompts/production-hardening/26-logging-tracing.md
deleted file mode 100644
index f18ea6c07..000000000
--- a/prompts/production-hardening/26-logging-tracing.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 26 · Structured logging + request correlation/tracing
-
-> **Phase 5 — Observability & ops** · **Depends on:** none (enables 27) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-The platform is **minimally observable**: Sentry is wired exception-only (a custom HTTP envelope to
-avoid the heavy OTel SDK that nearly broke the Vercel build), logging is scattered `console.log`, and
-there are **no correlation IDs or tracing**. The team can't answer "did forge success rate drop?" or
-trace a failing payment across services. Add structured, correlated logging end-to-end — lightweight
-enough to keep the deploy fast.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/_lib/sentry.js` (custom envelope — keep lightweight; do NOT pull the full `@sentry/node` OTel tree that broke the build), `api/_lib/axiom.js` (payments metrics sink), `api/_lib/http.js` (`wrap()` boundary — the natural place to inject).
-- Workers in `workers/` need the same correlation propagated.
-
-## Build this
-1. **Correlation IDs** — generate/propagate a request ID at the `wrap()` boundary (accept inbound `x-request-id`, generate if absent, echo in the response header). Thread it through to downstream fetches (forward the header) and into worker invocations.
-2. **Structured logger** — a tiny `api/_lib/log.js` emitting JSON lines (`{ ts, level, op, requestId, agentId?, durationMs?, ...ctx }`). Replace ad-hoc `console.log` in hot/important paths. No PII or secrets in logs.
-3. **Request summary log** — one structured line per request at the boundary (method, route, status, duration, requestId) so latency/error rates are derivable from logs.
-4. **Trace key flows** — emit span-like start/end events (with the correlation ID) for the multi-step flows: forge generation, x402 pay→settle→deliver, avatar create→rig. Stay lightweight (no full OTel SDK) — Axiom/structured-logs are the backend.
-5. **Sentry context** — attach requestId + op + (non-PII) context to exceptions so an error links back to its request and trace.
-
-## Files likely in play
-`api/_lib/log.js` (new), `api/_lib/http.js` (`wrap()` injection), `api/_lib/sentry.js` (context), `api/_lib/axiom.js` (correlation), downstream fetch helper (`fetch-json.js` from prompt 07), workers, the key-flow files.
-
-## Definition of done
-- [ ] Every request has a correlation ID, echoed in headers and propagated downstream + to workers.
-- [ ] Structured JSON logs replace ad-hoc console logging in important paths; no secrets/PII.
-- [ ] One request-summary line per request (status + duration) → enables metrics (prompt 27).
-- [ ] Key flows emit correlated span events; exceptions carry request context.
-- [ ] No meaningful build-time/deploy-size regression (don't pull the heavy OTel SDK).
-- [ ] Changelog: internal/ops → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Keep it lightweight — the previous heavy-SDK approach nearly broke deploys. Never log secrets, keys, or full payment payloads. Push both remotes.
diff --git a/prompts/production-hardening/27-metrics-dashboards-slos.md b/prompts/production-hardening/27-metrics-dashboards-slos.md
deleted file mode 100644
index 50e1ac63c..000000000
--- a/prompts/production-hardening/27-metrics-dashboards-slos.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 27 · Metrics, dashboards & SLOs
-
-> **Phase 5 — Observability & ops** · **Depends on:** 26 · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Today Axiom records only payment metrics, optionally. There's no per-endpoint latency, no error
-budgets, no SLA tracking — so a degradation is invisible until users complain. Build the metrics,
-dashboards, SLOs, and alerts that let the team see platform health at a glance and get paged before
-customers notice.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `api/_lib/axiom.js` (existing sink), the structured request-summary logs from prompt 26, `api/status.js`/`healthz.js`.
-- Critical user-facing metrics: forge generation success rate + latency by engine, x402 settlement success rate + latency by rail, avatar create/rig success, RPC latency by provider, error rate by endpoint.
-
-## Build this
-1. **Emit metrics** — from the request-summary + key-flow events (prompt 26), record: request count, latency percentiles (p50/p95/p99), error rate per endpoint; plus domain metrics (forge success% by engine, payment settle% by rail, refund rate, breaker state from prompt 08).
-2. **Dashboards** — build Axiom (or chosen backend) dashboards: platform overview, forge health, payments health, RPC/dependency health. Commit the dashboard definitions/queries to the repo (`infra/dashboards/`) so they're versioned.
-3. **SLOs + error budgets** — define SLOs (e.g. forge success ≥99%, payment settle ≥99.9%, API p95 < Xms, availability target) and track burn rate.
-4. **Alerts** — page/notify on SLO breach, error-rate spikes, forge/payment success drops, breaker-open storms, reconciliation backlog (prompt 14). Route to the team channel; document thresholds.
-5. **Synthetic checks** — a periodic synthetic that exercises forge (free lane) + a read path and alerts if the user-visible flow breaks, independent of internal metrics.
-
-## Files likely in play
-`api/_lib/metrics.js` (new, on top of axiom + logs), `infra/dashboards/*` (new, versioned defs), alert config, a synthetic-check worker/cron, `docs/ops/slos.md`.
-
-## Definition of done
-- [ ] Per-endpoint latency + error-rate metrics flowing; domain metrics (forge/payments/RPC) live.
-- [ ] Versioned dashboards in-repo; rendering real data.
-- [ ] SLOs + error budgets defined and tracked.
-- [ ] Alerts fire on breach/spike/success-drop, routed to the team.
-- [ ] Synthetic user-flow check running + alerting.
-- [ ] Changelog: internal/ops → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Keep metric emission async/fire-and-log (use the prompt-06 helper) so telemetry never slows or breaks a request. Push both remotes.
diff --git a/prompts/production-hardening/28-deploy-safety-rollback.md b/prompts/production-hardening/28-deploy-safety-rollback.md
deleted file mode 100644
index 7f2b0c3b0..000000000
--- a/prompts/production-hardening/28-deploy-safety-rollback.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 28 · Deploy safety: auto-rollback + isolated staging
-
-> **Phase 5 — Observability & ops** · **Depends on:** 26/27 (health signal) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Deploys are fragile: no automatic rollback on a bad ship, and **preview branches share the SAME
-Postgres/Redis/x402 accounts as prod** — a feature branch can corrupt production data. Add an
-isolated staging environment and a post-deploy health gate that auto-rolls-back a bad release.
-
-## Context (read first)
-- `CLAUDE.md` + the **`npx vercel build` overwrites `api/*.js`** trap (and `scripts/audit-deploy-artifacts.mjs`, `check-dist.mjs`, `build-vercel.mjs`).
-- `vercel.json`, deploy scripts, `api/healthz.js`/`status.js`.
-- Workers deploy is scattered (`gcloud builds submit` per service — see `workers/README.md`); coordinate with prompt 31.
-
-## Build this
-1. **Isolated preview/staging** — give non-prod deploys their own Postgres (separate DB/branch — Neon branching), Redis namespace, and x402 test config, so no preview can read/write prod data or move real funds. Wire env separation in `vercel.json`/project settings; document it.
-2. **Post-deploy health gate** — after a prod deploy, poll `/api/healthz` (+ key synthetic from prompt 27) for ~5 min; if it doesn't reach healthy, **automatically `vercel rollback`** and alert. Script it (`scripts/post-deploy-verify.mjs`) and run it in the deploy pipeline.
-3. **Artifact safety in CI** — enforce `audit:deploy` + a check that committed `api/*.js` are source (no `__defProp`/`createRequire` bundles) on every PR, so the bundling trap can never reach main.
-4. **Rollback runbook** — document the exact manual rollback steps as a fallback, with who/when.
-5. **Release notes hook** — on successful prod deploy, run `changelog:push` (already exists) so holders get updates automatically.
-
-## Files likely in play
-`vercel.json`, `scripts/post-deploy-verify.mjs` (new), `scripts/audit-deploy-artifacts.mjs` (CI wiring), deploy workflow, `docs/ops/deploy-runbook.md`, env/project config docs.
-
-## Definition of done
-- [ ] Preview/staging fully isolated from prod data + funds; verified.
-- [ ] Post-deploy health gate auto-rolls-back on failure; tested with a deliberately-bad canary.
-- [ ] CI blocks bundled `api/*.js` and runs `audit:deploy`.
-- [ ] Rollback runbook committed.
-- [ ] Successful deploy triggers changelog push.
-- [ ] Changelog: internal/ops → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Test rollback before relying on it. Never point a preview deploy at prod credentials. Push both remotes.
diff --git a/prompts/production-hardening/29-backup-dr-migrations.md b/prompts/production-hardening/29-backup-dr-migrations.md
deleted file mode 100644
index 888aada1a..000000000
--- a/prompts/production-hardening/29-backup-dr-migrations.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 29 · Data backup/DR runbook + migration gating
-
-> **Phase 5 — Observability & ops** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-The DB (Neon/postgres) has 180+ migrations but **no documented, tested backup/restore** and
-migrations are applied manually with no pre-deploy gate. A $1B platform must be able to recover from
-data loss on demand and never deploy code ahead of its schema. Establish DR and migration discipline.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `scripts/apply-migrations.mjs` (`db:migrate`, `db:status`; dry-run default, hash-tracked in `schema_migrations`), `api/_lib/migrations/*`.
-- `@neondatabase/serverless`; Neon supports branching + point-in-time recovery.
-- Asset storage: R2/S3 (`apply:r2-cors`); Redis (Upstash) is cache/idempotency (define what's recoverable vs ephemeral).
-
-## Build this
-1. **Backup strategy** — document and (where scriptable) automate: Neon PITR/snapshot cadence, R2/S3 versioning for generated assets, and what Redis state is reconstructable vs must-not-lose (idempotency/ledger live in Postgres, not Redis).
-2. **Tested restore runbook** — `docs/ops/dr-runbook.md`: step-by-step restore to a temp Neon branch, validate schema + row counts + a smoke query, and a target RTO/RPO. **Actually perform the restore once** and record the result.
-3. **Migration gating** — add `db:status` to CI: fail the deploy if there are pending migrations not applied to the target environment (no code-ahead-of-schema). Document the apply order relative to deploy.
-4. **Migration safety** — guidelines + a check for backward-compatible (expand/contract) migrations so a rollback (prompt 28) doesn't hit a schema it can't read. Flag destructive migrations for explicit review.
-5. **Restore drill cadence** — schedule a periodic DR drill (`/schedule` or a cron) so the runbook stays real.
-
-## Files likely in play
-`docs/ops/dr-runbook.md` (new), `scripts/apply-migrations.mjs` (CI status gate + safety checks), backup automation script, `.github/workflows`, migration-authoring guidelines doc.
-
-## Definition of done
-- [ ] Backup strategy documented + automated where possible (DB, assets).
-- [ ] DR runbook written **and a restore actually performed + recorded**; RTO/RPO stated.
-- [ ] CI fails on pending/unapplied migrations for the target env.
-- [ ] Expand/contract migration guidelines + destructive-migration flagging in place.
-- [ ] DR drill scheduled.
-- [ ] Changelog: internal/ops → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Never run a destructive migration without a verified fresh backup. Don't restore over prod during a drill — use a temp branch. Push both remotes.
diff --git a/prompts/production-hardening/30-async-job-queue.md b/prompts/production-hardening/30-async-job-queue.md
deleted file mode 100644
index 2cb0ad3bb..000000000
--- a/prompts/production-hardening/30-async-job-queue.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 30 · Async job queue for heavy generation
-
-> **Phase 5 — Observability & ops** · **Depends on:** 26 (correlation) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-Forge generation runs **synchronously** in the request path with a 300s `maxDuration`. A traffic spike
-monopolizes 300-second serverless slots, burns cost, and risks timeouts — it won't scale to platform
-volume. Move heavy generation to an async job queue: enqueue and return immediately, process on
-workers, deliver via polling/stream. Make generation elastic and observable.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `vercel.json` forge `maxDuration` (~300s), `api/forge*.js`, the `workers/` model fleet (trellis/hunyuan3d/triposg/etc.).
-- Queue infra already in deps: `@upstash/qstash` (and Redis). Prefer it over adding a new broker.
-- Forge store (`api/_lib/forge-store.js`) already tracks creation status (`done`, `glb_url`) — extend with queued/processing/failed.
-
-## Build this
-1. **Enqueue endpoint** — `POST /api/forge` (or a new `/api/forge/jobs`) validates + bills/authorizes, creates a creation row in `queued`, enqueues a QStash job, and returns **202** with `{ job_id }` immediately. No synchronous GLB work in the request.
-2. **Worker processing** — a worker consumes the queue, runs the engine chain (with the resilience policies from prompt 08), updates status (`processing`→`done`/`failed`), stores the GLB + server-side thumbnail (prompt 25), and records metrics.
-3. **Status + delivery** — `GET /api/forge/jobs/:id` returns status/progress and the result when ready; optionally an SSE/stream for live progress. Update the client to enqueue → poll/stream → render (real progress, **not** a fake progress bar — CLAUDE.md forbids that).
-4. **Failure + refund** — a failed job surfaces a real error and, if it was paid, triggers the refund path (prompt 10). Retries are bounded and idempotent.
-5. **Backpressure** — queue depth metric + alert (prompt 27); a sane max in-flight per user/agent so one actor can't starve the queue.
-
-## Files likely in play
-`api/forge.js` → enqueue, `api/forge/jobs/[id].js` (new), a forge worker consumer, `api/_lib/forge-store.js` (status states), the forge client module, metrics + alerts, tests.
-
-## Definition of done
-- [ ] Forge requests enqueue + return 202 instantly; no synchronous 300s generation in the request path.
-- [ ] Worker processes jobs, updates status, stores GLB + thumbnail, records metrics.
-- [ ] Client shows **real** progress (poll/stream), then the result; failures show real errors.
-- [ ] Paid job failure → refund (prompt 10); retries bounded + idempotent.
-- [ ] Queue-depth metric + backpressure cap + alert.
-- [ ] Tests cover enqueue, process, deliver, fail+refund.
-- [ ] Changelog: **improvement** entry ("Forge generation is now queued — faster, more reliable under load").
-
-## Guardrails
-Follow CLAUDE.md. No fake progress/`setTimeout` loaders — real job status only. Keep the free-lane UX snappy. Push both remotes.
diff --git a/prompts/production-hardening/31-worker-autoscaling.md b/prompts/production-hardening/31-worker-autoscaling.md
deleted file mode 100644
index ea19bcfb2..000000000
--- a/prompts/production-hardening/31-worker-autoscaling.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 31 · Worker autoscaling & one-command deploy
-
-> **Phase 5 — Observability & ops** · **Depends on:** 30 (queue) · **Parallel-safe:** yes · **Effort:** L
-
-## Mission
-~20 workers (model inference, texture, remesh, rembg, segment, stylize, avatar-pipeline-controller,
-oracle, sniper, etc.) are each provisioned individually and deployed by hand (`gcloud builds submit`
-per service). Single-instance services bottleneck under load, and the scattered deploy is error-prone.
-Make the worker fleet autoscaling, observable, and deployable with one command.
-
-## Context (read first)
-- `CLAUDE.md`.
-- `workers/` (each subdir is a service), `workers/README.md` (current scattered deploy), `scripts/deploy-sniper.mjs` (a one-service precedent).
-- The job queue from prompt 30 (workers should scale on queue depth).
-- Correlation/metrics from prompts 26/27 (workers must emit both).
-
-## Build this
-1. **Autoscaling** — configure each compute-heavy service (Cloud Run or equivalent) with min/max instances + concurrency tuned to its workload; scale on queue depth/CPU. Eliminate single-instance bottlenecks (avatar-pipeline-controller, texture, remesh, model-*).
-2. **One-command deploy** — a `scripts/deploy-workers.mjs` (mirroring `deploy-sniper.mjs`) that builds + deploys all (or a named subset of) workers with consistent config, health checks, and version stamping. Document in `workers/README.md`.
-3. **Worker health + observability** — every worker exposes a health endpoint and emits the structured logs + metrics (prompts 26/27): processed count, failures, latency, queue lag. Dead/stuck workers alert.
-4. **Resource limits + cost guardrails** — per-service CPU/mem limits and max-instances caps so a runaway can't blow the budget; document expected cost envelope.
-5. **Graceful failure** — a worker crash/restart must not lose in-flight jobs (queue redelivery from prompt 30); document the at-least-once semantics + idempotency expectation.
-
-## Files likely in play
-Per-service deploy config (Cloud Run YAML/Dockerfiles in `workers/*`), `scripts/deploy-workers.mjs` (new), `workers/README.md`, health/metrics wiring per worker, alert config.
-
-## Definition of done
-- [ ] Heavy workers autoscale on load; no single-instance bottlenecks remain.
-- [ ] `scripts/deploy-workers.mjs` deploys all/subset with one command + health checks.
-- [ ] Every worker emits health, logs, and metrics; stuck/dead workers alert.
-- [ ] Resource caps + cost envelope documented.
-- [ ] In-flight jobs survive worker restarts (idempotent redelivery).
-- [ ] Changelog: internal/ops → **no** entry.
-
-## Guardrails
-Follow CLAUDE.md. Don't set max-instances so high it risks runaway cost — cap it. Verify autoscaling with the load suite (prompt 05). Push both remotes.
diff --git a/prompts/production-hardening/32-sdk-changelogs-tests.md b/prompts/production-hardening/32-sdk-changelogs-tests.md
deleted file mode 100644
index 9ef0d8e99..000000000
--- a/prompts/production-hardening/32-sdk-changelogs-tests.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# 32 · Per-package CHANGELOGs + SDK unit tests
-
-> **Phase 6 — Developer ecosystem** · **Depends on:** none · **Parallel-safe:** yes · **Effort:** M
-
-## Mission
-External devs are how a platform compounds to $1B, but the published SDKs are inconsistent: only ~2 of
-13 packages have a CHANGELOG, and several (`avatar-sdk`, `walk-sdk`, `mcp-server`) have **no unit
-tests**. Treat the SDKs as a product family: every published package gets release history and a test
-suite so external developers can trust and verify it.
-
-## Context (read first)
-- `CLAUDE.md`; `STRUCTURE.md` (surface→package map).
-- Published packages: `@three-ws/{avatar,walk,page-agent,sdk,solana-agent,agent-payments,agent-protocol-sdk,mcp-server,mcp-bridge,agent-ui,x402-modal-sdk}` + `packages/*` + `tour-sdk`.
-- Test-script precedents: `page-agent-sdk` (`npm test`), `solana-agent-sdk` (jest), `agent-protocol-sdk` (`node --test`). Missing: `avatar-sdk`, `walk-sdk`, `mcp-server`.
-- Monorepo `CHANGELOG.md` is rich, but per-package history is absent.
-
-## Build this
-1. **Per-package CHANGELOG** — add `CHANGELOG.md` to every published package (Keep a Changelog format), seeded with current version + recent notable changes. Add a `prepublishOnly`/release step that requires the CHANGELOG be updated for a version bump.
-2. **SDK unit tests** — add a real `test` script + meaningful tests to the packages that lack them (start with `avatar-sdk`, `walk-sdk`, `mcp-server`): public API surface, error paths, type-level smoke (import + invoke). No trivial assert-true tests.
-3. **Consistent package metadata** — verify each `package.json`: `types`, `exports`/subpaths, `files` allowlist, `repository`, `license`, `engines`, and `sideEffects` where relevant. Fix divergence.
-4. **Test the published shape** — a check that imports each package via its public entry (as an external consumer would) and exercises a basic call, catching broken `exports` maps.
-5. **CI** — run all SDK test suites in CI; block publish if a package's tests fail or its CHANGELOG wasn't updated for a version change.
-
-## Files likely in play
-`CHANGELOG.md` in each published package, `package.json` (`test`, metadata) per package, new test files in `avatar-sdk`/`walk-sdk`/`mcp-server` (and any other gap), `.github/workflows`, the publish scripts.
-
-## Definition of done
-- [ ] Every published package has a CHANGELOG + a passing test suite.
-- [ ] Package metadata consistent + correct (types/exports/files/repository/license).
-- [ ] Published-shape import test passes for each package.
-- [ ] CI runs SDK tests + enforces CHANGELOG-on-bump.
-- [ ] Changelog (platform): **sdk** entry ("SDKs now ship tests + per-package release notes").
-
-## Guardrails
-Follow CLAUDE.md. $THREE only in any SDK example/fixture. Don't publish from this prompt — just make them publish-ready (publishing is prompt 33). Push both remotes.
diff --git a/prompts/production-readiness/00-README.md b/prompts/production-readiness/00-README.md
deleted file mode 100644
index 5d42a9191..000000000
--- a/prompts/production-readiness/00-README.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# three.ws — Production-Readiness Track (Road to $1B)
-
-A complete, self-contained catalog of engineering + product-surface hardening prompts.
-Each `NN-*.md` file is written to be **pasted into a fresh chat** at `/workspaces/three.ws`
-and executed end-to-end by a senior agent with **no prior context**. Together they take
-the platform from "works on a good day" to "fundable, demo-able to a room of senior
-engineers, ready to scale."
-
-> **Relationship to `prompts/road-to-1b/`:** that directory is the growth / monetization /
-> conversion track (funding upsell, referrals, programmatic SEO, creator dashboard,
-> checkout, studio/agent/marketplace surfaces). **This** directory is the
-> engineering-readiness track: audits, cross-cutting hardening, every product surface,
-> payments/on-chain safety, infra/ops, and the launch gate. They complement each other —
-> run both. Where topics overlap (observability, rate-limiting, SEO), treat the more
-> specific prompt as authoritative and don't redo work already shipped.
-
----
-
-## How to use
-1. Open a **new chat** in this repo (`/workspaces/three.ws`).
-2. Paste the **full contents** of one prompt file. Nothing else is needed — each file is standalone.
-3. Let the agent map → execute → verify → report. Review the `git diff`.
-4. Commit + push when satisfied: `git push threeD main && git push threews main`.
-5. Move to the next prompt. Mark it done in the tracker below.
-
-Many prompts within a phase run in parallel in **separate chats** — but every agent shares
-**one worktree**, so each must stage explicit paths only (never `git add -A`) and re-check
-`git status` before committing.
-
----
-
-## Phases
-- **Phase 1 — Audit & baseline** (`01`–`04`): find every gap first. These produce issue lists later phases consume. **Run first.**
-- **Phase 2 — Cross-cutting hardening** (`05`–`20`): secrets, errors, security, rate limits, resilience, observability, caching, tests, CI, a11y, responsive, performance, design system.
-- **Phase 3 — Product surfaces** (`21`–`34`): harden each surface end-to-end — every state designed, every path reachable.
-- **Phase 4 — Payments / on-chain / agent economy** (`35`–`44`): x402, wallets, pump.fun, $THREE gating, MCP, SDKs, contracts, money safety.
-- **Phase 5 — Infra & ops** (`45`–`50`): migrations, load, status page, DR, key rotation, crons.
-- **Phase 6 — Growth, SEO, GTM & launch** (`51`–`60`): SEO, i18n, analytics, legal, PWA, email, homepage, docs, pricing, launch gate.
-
-**Recommended order:** Phase 1 → (Phase 2 ∥ Phase 3) → Phase 4 → Phase 5 → Phase 6.
-`60-final-launch-checklist.md` is the gate — run it last and let nothing through that fails it.
-
----
-
-## Operating rules (non-negotiable — every prompt repeats a short form of these)
-- **Read `CLAUDE.md` + `STRUCTURE.md` first.** CLAUDE.md overrides defaults. STRUCTURE.md maps every surface to its directory.
-- **No mocks, fake data, placeholders, TODOs, stub functions, or `throw new Error("not implemented")`.** Real APIs, real endpoints, real implementations only. Errors handled at boundaries; internal code trusts itself.
-- **`$THREE` is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference, name, hardcode, import, render, or recommend any other token anywhere (code, copy, tests, fixtures, commits). If you find another coin referenced, remove it like a leaked secret. The only exceptions are runtime-supplied mints in coin-agnostic plumbing and the platform's own launch directories.
-- **Concurrent agents share this worktree.** Stage explicit paths only (never `git add -A`/`git add .`); re-check `git status` and `git diff --staged` immediately before committing.
-- **esbuild trap:** `npx vercel build` overwrites `api/*.js` with bundles. Never commit an `api/*.js` whose first line starts with `__defProp`/`createRequire`. Recover with `git restore -- api/ public/`.
-- **Changelog:** every user-visible change → an entry in `data/changelog.json` (date, holder-readable title + summary, tags), then `npm run build:pages`. Internal-only chores get no entry.
-- **Push to BOTH remotes** when asked: `git push threeD main` **and** `git push threews main`. **Never** pull/fetch/merge from `threeD` (push-only mirror); pulls come from `threews` only.
-- **Definition of done** = CLAUDE.md's checklist: wired + reachable, every state designed (loading/empty/error/populated/overflow), no console errors, real API calls, hover/active/focus states, `npm test` green, `git diff` self-reviewed.
-
----
-
-## Key facts every agent should know (verified 2026-06-21)
-- **Stack:** vanilla JS modules + Vite (`npm run dev`, port 3000) · Three.js + glTF/GLB · Vercel functions in `api/` · Cloudflare workers in `workers/`.
-- **Tests:** Vitest (`vitest run`) + Playwright (`tests/e2e/*.spec.js`). `npm test` runs both. `npm run test:gate` = critical money/auth subset. Config: `vitest.config.js`, `playwright.config.js`.
-- **CI:** `.github/workflows/ci.yml` — lint (eslint, new-errors-only), unit (vitest), source guards (`check-api-not-bundled.mjs`, `check:images`, `build:pages`), typecheck (advisory).
-- **API helpers:** `api/_lib/http.js` (`json`/`error`/`serverError`, security headers, no-store default), `api/_lib/env.js` (`req`/`opt`/`addr`/`pem` lazy getters), `api/_lib/db.js` (Neon serverless Postgres), `api/_lib/rate-limit.js` (Upstash Redis, fail-closed in prod), `api/_lib/sentry.js` (custom HTTP envelope), `api/_lib/secret-box.js` (AES-256-GCM).
-- **Health:** `api/healthz.js` → `GET /api/healthz`. Client error reporter: `public/error-reporter.js` → `POST /api/client-errors`.
-- **DB migrations:** `api/_lib/migrations/*.sql` (183 files), runner `scripts/apply-migrations.mjs` (`npm run db:migrate` / `db:status`), tracked in `schema_migrations`.
-- **Headers/routes:** `vercel.json` (HSTS, nosniff, referrer-policy, permissions-policy, CSP, per-route cache + frame-ancestors).
-- **Design tokens:** `public/tokens.css` (golden-ratio scale) + `:root` in `public/style.css`. Theme: `public/theme-switcher.js` (`twx_theme`). Mobile: `public/mobile.css`.
-- **i18n:** `.i18nrc.json` (Groq provider, 11 target locales), `public/locales/*.json`, `src/i18n.js`, `scripts/i18n-extract.mjs` + `i18n-translate.mjs`. Only `en` + `es` live so far.
-- **SEO:** `data/pages.json` (source of truth) → `scripts/build-page-index.mjs` → sitemap, `llms.txt`, changelog. Page route audit is strict: every public `.html` route must be in `data/pages.json` or `scripts/audit-page-index.mjs`'s IGNORE set.
-
----
-
-## Status tracker
-Mark each as you go.
-
-| # | Prompt | Phase | Status |
-|---|---|---|---|
-| 01 | production-readiness-audit | 1 | ☐ |
-| 02 | dead-paths-and-broken-links | 1 | ☐ |
-| 03 | console-errors-and-warnings | 1 | ☐ |
-| 04 | routing-redirects-and-404 | 1 | ☐ |
-| 05 | secrets-and-env-hygiene | 2 | ☐ |
-| 06 | error-handling-and-failsafes | 2 | ☐ |
-| 07 | security-hardening | 2 | ☐ |
-| 08 | rate-limiting-and-abuse | 2 | ☐ |
-| 09 | resilience-external-calls | 2 | ☐ |
-| 10 | observability-and-alerting | 2 | ☐ |
-| 11 | backend-caching-and-cdn | 2 | ☐ |
-| 12 | test-coverage-unit | 2 | ☐ |
-| 13 | e2e-critical-flows | 2 | ☐ |
-| 14 | ci-cd-gates | 2 | ☐ |
-| 15 | accessibility-wcag | 2 | ☐ |
-| 16 | mobile-responsiveness | 2 | ☐ |
-| 17 | performance-core-web-vitals | 2 | ☐ |
-| 18 | frontend-bundle-performance | 2 | ☐ |
-| 19 | 3d-asset-performance | 2 | ☐ |
-| 20 | design-system-consistency | 2 | ☐ |
-| 21 | forge-text-to-3d-pipeline | 3 | ☐ |
-| 22 | avatar-create-edit-rig | 3 | ☐ |
-| 23 | selfie-to-avatar | 3 | ☐ |
-| 24 | gallery-and-animations | 3 | ☐ |
-| 25 | scene-studio | 3 | ☐ |
-| 26 | dashboard | 3 | ☐ |
-| 27 | search-and-discovery | 3 | ☐ |
-| 28 | onboarding-create-wizard | 3 | ☐ |
-| 29 | feature-tour-and-demos | 3 | ☐ |
-| 30 | social-club-and-city | 3 | ☐ |
-| 31 | walk-and-irl | 3 | ☐ |
-| 32 | widget-studio-embed | 3 | ☐ |
-| 33 | agent-studio-and-brain | 3 | ☐ |
-| 34 | launches-feed-and-agent-profiles | 3 | ☐ |
-| 35 | x402-payments-hardening | 4 | ☐ |
-| 36 | wallet-connect-and-funding | 4 | ☐ |
-| 37 | pumpfun-launches | 4 | ☐ |
-| 38 | three-holder-gating | 4 | ☐ |
-| 39 | mcp-servers | 4 | ☐ |
-| 40 | published-sdks-and-docs | 4 | ☐ |
-| 41 | onchain-contracts | 4 | ☐ |
-| 42 | solana-base-parity | 4 | ☐ |
-| 43 | agent-to-agent-payments | 4 | ☐ |
-| 44 | money-safety-idempotency | 4 | ☐ |
-| 45 | database-migrations-and-integrity | 5 | ☐ |
-| 46 | load-and-stress-testing | 5 | ☐ |
-| 47 | uptime-health-and-status-page | 5 | ☐ |
-| 48 | backup-and-disaster-recovery | 5 | ☐ |
-| 49 | secrets-rotation-and-key-management | 5 | ☐ |
-| 50 | cron-and-worker-hardening | 5 | ☐ |
-| 51 | seo-and-structured-data | 6 | ☐ |
-| 52 | i18n-completeness | 6 | ☐ |
-| 53 | analytics-and-funnels | 6 | ☐ |
-| 54 | legal-compliance-and-consent | 6 | ☐ |
-| 55 | pwa-and-offline | 6 | ☐ |
-| 56 | notifications-and-email | 6 | ☐ |
-| 57 | homepage-and-conversion | 6 | ☐ |
-| 58 | docs-completeness | 6 | ☐ |
-| 59 | pricing-and-packaging | 6 | ☐ |
-| 60 | final-launch-checklist | 6 | ☐ |
diff --git a/prompts/production-readiness/01-production-readiness-audit.md b/prompts/production-readiness/01-production-readiness-audit.md
deleted file mode 100644
index 7f47990cc..000000000
--- a/prompts/production-readiness/01-production-readiness-audit.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# 01 — Production-readiness audit (baseline)
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 1 · Audit & baseline
-**Owns:** read-only audit — produces `docs/internal/audit/` reports, edits nothing in `src/`/`api/`.
-**Pairs with:** every later prompt consumes this output.
-
-## Why this matters for $1B
-You cannot harden what you cannot see. A fundable platform starts with an honest,
-written inventory of every gap. This audit is the map the entire Road-to-$1B effort
-navigates by — it converts "the app feels rough" into a prioritized, assignable list.
-
-## Mission
-Produce a complete, severity-ranked inventory of production gaps across the codebase
-and write it to `docs/internal/audit/`. **Find and document — do not fix here.** Each
-finding must name the exact file/route and map to the prompt that will fix it.
-
-## Map — real anchors
-- `STRUCTURE.md` — surface→directory map. Start here.
-- `data/pages.json` — every public route (source of truth for what ships).
-- `vercel.json` — routes, headers, crons. `api/` (961 functions), `src/` (810 modules), `pages/` (168 HTML).
-- `scripts/audit-pages.mjs`, `scripts/audit-handlers.mjs`, `scripts/page-audit.mjs`, `scripts/check-images.mjs` — existing audits to run.
-
-## Do this
-1. Run every existing audit and capture output: `npm run audit:pages`, `npm run audit:handlers`, `npm run check:images`, `npm run audit:web`, `npm run audit:deploy`. Record failures.
-2. **Stub/mock/TODO sweep:** grep the codebase for `TODO`, `FIXME`, `not implemented`, `throw new Error('not`, `setTimeout(` fake-loading, `const sample`, `mockData`, `placeholder`, commented-out code blocks. List every hit with file:line. (CLAUDE.md forbids all of these.)
-3. **Empty-handler sweep:** find `api/` functions that return nothing, 501, or a hardcoded shape instead of real data.
-4. **Surface completeness:** walk `STRUCTURE.md`'s surface list; for each, confirm the page loads, has real data, and every CTA/link resolves. Note half-wired surfaces.
-5. **Designed-states gap:** for the top 20 routes by importance, note which lack a designed loading / empty / error state.
-6. **Coin compliance:** grep for any token reference that is not `$THREE` / CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump` (exclude runtime-supplied mints + platform launch directories). Flag each as a hard blocker.
-7. Write `docs/internal/audit/README.md` (exec summary + counts) and one file per category (`stubs.md`, `dead-paths.md`, `designed-states.md`, `coin-compliance.md`, `handlers.md`). Each finding: `file:line` · severity (blocker/high/med/low) · which prompt (`NN`) fixes it.
-
-## Must-not
-- Do not fix anything here except trivially-safe deletions of dead code you are 100% sure about — this prompt's value is the written inventory.
-- Do not under-report. A short audit of a 60-surface platform is a failed audit.
-
-## Definition of done
-- [ ] `docs/internal/audit/` exists with an exec summary + per-category reports, every finding tagged with file:line, severity, and owning prompt number.
-- [ ] All existing `npm run audit:*` results captured (pass/fail + output).
-- [ ] Coin-compliance section is exhaustive (every non-`$THREE` reference, or "none found").
-- [ ] Counts roll up in the README (e.g. "47 stubs, 12 dead paths, 9 undesigned error states").
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/02-dead-paths-and-broken-links.md b/prompts/production-readiness/02-dead-paths-and-broken-links.md
deleted file mode 100644
index 139925232..000000000
--- a/prompts/production-readiness/02-dead-paths-and-broken-links.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# 02 — Dead paths & broken links
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 1 · Audit & baseline
-**Owns:** navigation, `<a href>`/`<link>`, in-app router targets, CTA buttons across `pages/` + `src/`.
-**Depends on:** `01` (audit). **Pairs with:** `04` (routing/404).
-
-## Why this matters for $1B
-Every dead link is a visitor hitting a wall — and a signal to investors that nobody is
-minding the store. CLAUDE.md is explicit: "If a button exists, it must work. If a link
-exists, it must go somewhere." A platform that wants a $1B valuation cannot have a single
-404 reachable from its own UI.
-
-## Mission
-Find every broken/dead navigation path and **fix it** — either wire it to the real
-destination or remove the element. Zero dead ends reachable from the UI.
-
-## Map — real anchors
-- Nav/header/footer components in `src/` (search for the shared nav module and `public/style.css` nav classes).
-- `data/pages.json` — the canonical list of real routes; any link not resolving to one of these (or a real API/asset) is suspect.
-- `vercel.json` routes — source→dest mappings and redirects.
-- `scripts/page-audit.mjs` / `npm run audit:web` — existing link/route checks.
-
-## Do this
-1. Extract every internal `href`, `window.location` assignment, router `navigate()` target, and CTA click handler destination across `pages/` and `src/`.
-2. Cross-check each against `data/pages.json` + `vercel.json` routes + real assets. Anything resolving to a missing page, a `#` placeholder, or `javascript:void(0)` with no handler is a finding.
-3. **Fix each:** wire the link to the correct real destination, OR remove the element if the destination genuinely doesn't exist yet (don't leave a dead button). Prefer wiring — most "dead" links point at surfaces that DO exist under a different path.
-4. Check the inverse: real, valuable pages in `data/pages.json` that **nothing links to** (orphans). Add navigation to reach them (CLAUDE.md: "If a state exists, there must be a way to reach it").
-5. Verify external links open correctly and use `rel="noopener"` where `target="_blank"`.
-6. Run the app (`npm run dev`) and click through the primary nav + footer + top 10 surfaces to confirm no console 404s on navigation.
-
-## Must-not
-- Do not "fix" a dead link by pointing it at the homepage as a catch-all. Find the real target or remove it.
-- Do not add a link to a page that isn't production-ready just to clear an orphan — harden the page first or leave it unlinked with a note.
-
-## Definition of done
-- [ ] Every internal link/CTA resolves to a real, working destination (verified in browser).
-- [ ] No orphan production pages reachable only by typing the URL — each has a nav path.
-- [ ] `target="_blank"` links carry `rel="noopener"`.
-- [ ] `npm run audit:web` passes; no navigation 404s in console during a click-through.
-- [ ] `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/03-console-errors-and-warnings.md b/prompts/production-readiness/03-console-errors-and-warnings.md
deleted file mode 100644
index 529b32a98..000000000
--- a/prompts/production-readiness/03-console-errors-and-warnings.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# 03 — Console errors & warnings sweep
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 1 · Audit & baseline
-**Owns:** runtime console output across all surfaces; the client error reporter.
-**Depends on:** `01`. **Pairs with:** `10` (observability).
-
-## Why this matters for $1B
-The browser console is the platform's pulse. CLAUDE.md's definition of done requires
-"no console errors, no console warnings from your code." Every uncaught error is a
-visitor-facing bug waiting to happen and a degraded Core Web Vitals / reliability story.
-Clean consoles are table stakes for a serious product.
-
-## Map — real anchors
-- `public/error-reporter.js` — first-party reporter, `POST /api/client-errors`; already filters extension noise + ResizeObserver. Use it to find what's actually firing.
-- `api/client-errors.js` (or the handler behind `/api/client-errors`) — where client errors land.
-- `npm run dev` (port 3000) — exercise surfaces here.
-
-## Do this
-1. Start `npm run dev`. Open each of the top ~20 surfaces (home, forge, gallery, marketplace, dashboard, create flow, scene, club, city, walk, agent-studio, brain, etc. — see `STRUCTURE.md`).
-2. For each, capture **all** console errors/warnings and failed network requests. Categorize: real bug vs. third-party noise vs. expected-in-dev.
-3. **Fix every error and every warning originating from our code:** unhandled promise rejections, `404`/`500` on real assets/APIs, missing keys, deprecated API usage, hydration/render warnings, Three.js warnings (missing textures, NaN transforms, disposed-object access).
-4. For genuinely external noise (extensions, blocked trackers), confirm `public/error-reporter.js` already filters it; extend the filter only if a real new source appears.
-5. **Failed network requests:** every `4xx`/`5xx` on a request our code initiates is a finding — fix the call or the endpoint. No swallowed failures.
-6. Re-run the click-through; confirm zero of our errors/warnings remain.
-
-## Must-not
-- Do not silence errors with empty `catch {}` or by disabling logging — fix the root cause (CLAUDE.md: "No errors without solutions").
-- Do not suppress a warning you don't understand. Understand it, then fix it.
-
-## Definition of done
-- [ ] Top ~20 surfaces produce **zero** errors/warnings from our code in the console.
-- [ ] No failed network requests for assets/APIs our code initiates.
-- [ ] Any remaining console output is provably third-party and filtered by the reporter.
-- [ ] `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/04-routing-redirects-and-404.md b/prompts/production-readiness/04-routing-redirects-and-404.md
deleted file mode 100644
index f967a219f..000000000
--- a/prompts/production-readiness/04-routing-redirects-and-404.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 04 — Routing, redirects & 404/500 pages
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 1 · Audit & baseline
-**Owns:** `vercel.json` routes/redirects, the 404 + 500 error pages, the page-route audit.
-**Depends on:** `01`, `02`. **Pairs with:** `51` (SEO).
-
-## Why this matters for $1B
-Routing is the platform's plumbing. Broken redirects leak SEO equity, mis-scoped routes
-expose internal pages, and an undesigned 404 turns a recoverable wrong-turn into a bounce.
-The strict page-route audit (which already gates the Vercel build) is the contract: every
-public `.html` route is either documented or deliberately excluded.
-
-## Map — real anchors
-- `vercel.json` — all `routes` (src→dest), redirects, cache + frame headers.
-- `data/pages.json` — documented public routes (source of truth).
-- `scripts/audit-page-index.mjs` — strict audit; every auditable `.html` route must be in `data/pages.json` or its `IGNORE`/`IGNORE_PREFIXES` set. **This gates `npm run build:vercel`.**
-- The 404 page (search `public/` / `pages/` for `404.html`) and any 500/offline page (`public/cz/offline/index.html`).
-
-## Do this
-1. Run `node scripts/audit-page-index.mjs --strict`. Resolve every undocumented route: add real landing pages to `data/pages.json` (path, title, description, `added: YYYY-MM-DD`), or add genuine in-flow/noindex shells to the audit's IGNORE set **with a one-line justification comment** (match the existing style, e.g. `/avatar-studio`, `/avatar-edit`).
-2. Audit `vercel.json` redirects: confirm each points at a live destination, uses the correct status (301 permanent vs 302/307 temporary), and there are no redirect chains/loops.
-3. **404 page:** ensure it exists, is branded, explains what happened, and offers real next steps (search, home, popular surfaces) — not a blank "Not Found." Design loading/empty parity with the rest of the platform.
-4. **500 / error boundary:** ensure server/edge failures render a branded, actionable page (retry, status link, support), not a raw stack or Vercel default.
-5. Check `noindex` correctness: in-flow/editor shells (`robots: noindex`) must **not** be in `data/pages.json` (those feed the public sitemap) — they belong in the audit IGNORE set instead.
-6. Verify trailing-slash + case behavior is consistent (no duplicate-content routes).
-
-## Must-not
-- Do not add a `noindex` editor shell to `data/pages.json` — it would be sitemapped against its own directive. Use the audit IGNORE set.
-- Do not paper over an undocumented route by deleting it from `vercel.json` if the page is real and reachable — document it instead.
-
-## Definition of done
-- [ ] `node scripts/audit-page-index.mjs --strict` exits 0; `npm run build:vercel` passes the page-index step.
-- [ ] Every redirect resolves, with correct status codes, no chains/loops.
-- [ ] Branded, actionable 404 **and** 500/error pages exist and are reachable.
-- [ ] `noindex` shells are excluded from the sitemap (in IGNORE, not in `pages.json`).
-- [ ] `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/05-secrets-and-env-hygiene.md b/prompts/production-readiness/05-secrets-and-env-hygiene.md
deleted file mode 100644
index 8855da534..000000000
--- a/prompts/production-readiness/05-secrets-and-env-hygiene.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 05 — Secrets & env hygiene
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `api/_lib/env.js`, `.env.example`, secret reads across `api/`/`workers/`/`scripts/`, `api/_lib/secret-box.js`.
-**Pairs with:** `07` (security), `49` (key rotation).
-
-## Why this matters for $1B
-This platform custodies wallets and private keys (`AGENT_RELAYER_KEY`, `THREEWS_SOL_PARENT_SECRET_BASE58`, treasury wallets). A single leaked secret = drained funds = dead company. Investors run secret scanners on day one of diligence.
-
-## Map — real anchors
-- `api/_lib/env.js` — lazy getters `req()`/`opt()`/`addr()`/`pem()`; prod fail-closed guards (e.g. `MULTIPLAYER_SHARED_SECRET`, `AGENT_RELAYER_KEY`).
-- `api/_lib/secret-box.js` — AES-256-GCM for custodial secrets; `api/_lib/agent-wallet.js` uses it.
-- `.env.example` — documents ~150 vars. Must list every var the code reads.
-- `api/_lib/http.js` — already redacts lat/lng/token from logs before Sentry/alerts.
-
-## Do this
-1. **No committed secrets:** scan the full git working tree + history for leaked keys (private keys, API tokens, base58 secrets, connection strings). `git secrets` / `trufflehog`-style scan. Any real secret in history → rotate it and document in `49`.
-2. **Env completeness:** diff every `process.env.X` / `req('X')` / `opt('X')` read in `api/`, `workers/`, `scripts/` against `.env.example`. Add every missing var with a one-line description + example placeholder (never a real value).
-3. **Fail-closed in prod:** every secret that, if unset, would silently degrade security (signing keys, shared secrets, encryption keys) must throw in production when missing — extend the `env.js` guard pattern. Optional-with-fallback is only for genuinely optional features.
-4. **No secrets to client:** confirm no secret-bearing var is read in `src/` (client bundles). Only `VITE_`-prefixed public values may reach the browser. Grep `src/` for sensitive var names.
-5. **No secrets in logs:** audit `console.log`/error and alert payloads for secret leakage; extend the `http.js` redaction list as needed.
-6. **Encryption at rest:** confirm all custodial secrets (wallet keys) go through `secret-box.js` (per-record salt), never plaintext in DB.
-
-## Must-not
-- Never put a real secret value in `.env.example`, a test fixture, a comment, or a commit message.
-- Do not weaken a fail-closed guard to make local dev easier — use a documented dev default that is obviously non-production.
-
-## Definition of done
-- [ ] Secret scan over working tree + history is clean (or every hit rotated + documented).
-- [ ] `.env.example` lists every var the code reads, with placeholders only.
-- [ ] All security-critical secrets fail closed in prod when unset.
-- [ ] No secret reaches the client bundle; no secret appears in logs/alerts.
-- [ ] `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/06-error-handling-and-failsafes.md b/prompts/production-readiness/06-error-handling-and-failsafes.md
deleted file mode 100644
index 2332fbff8..000000000
--- a/prompts/production-readiness/06-error-handling-and-failsafes.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 06 — Error handling & failsafes
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** error boundaries across `api/` + `src/`; the shared HTTP error helpers; user-facing error states.
-**Depends on:** `01`, `03`. **Pairs with:** `09` (external-call resilience).
-
-## Why this matters for $1B
-CLAUDE.md: "No errors without solutions. There is always a correct answer — find it." A
-platform earns trust by failing gracefully: every failure is caught at a boundary, logged,
-and rendered to the user as something they can act on — never a blank screen, infinite
-spinner, or raw stack trace.
-
-## Map — real anchors
-- `api/_lib/http.js` — `json()` / `error(res, status, code, message, extra)` / `serverError()` (auto-captures to Sentry + sends ops alert). Standard `{ error, error_description, ...extra }` shape.
-- `api/_lib/sentry.js` — custom HTTP envelope (2.5s timeout so reporting never hangs).
-- `public/error-reporter.js` — client-side uncaught error + rejection capture.
-- Frontend surfaces in `src/` — each needs designed error UI.
-
-## Do this
-1. **Boundaries, not internals:** confirm errors are handled where the world is untrusted (network, user input, RPC, wallet, payment) and internal code trusts itself. Remove defensive noise inside trusted code; add real handling at the edges.
-2. **Every API handler:** wraps its logic so unexpected throws go through `serverError()` (logged + alerted) and return a clean `{ error, error_description }` with the right status — never a leaked stack or hung request. Validate inputs early and return 400 with a specific code.
-3. **Every async UI action:** has explicit `loading → success → error` handling. On failure, render a designed, **actionable** error (what failed + how to retry/recover), wired to real retry logic — not a toast that dead-ends.
-4. **Failsafe fallbacks:** for non-critical features (a feed that fails, a price that won't load), degrade gracefully with a real fallback path or a clear "couldn't load — retry" affordance. No white screens.
-5. **Promise rejections:** no unhandled rejections (verify via `03`'s console sweep). Every `.then()` has a `.catch`, every `await` is guarded where it can throw.
-6. **Idempotent retries:** where a user can retry a failed mutation, ensure retries are safe (see `44` for money paths).
-
-## Must-not
-- No empty `catch {}` swallowing. No `console.error` as the only handling for a user-facing failure.
-- No infinite spinners: every loading state has a timeout → error path.
-- Do not expose internal error detail (stack, SQL, secrets) to the client.
-
-## Definition of done
-- [ ] Every `api/` handler routes unexpected errors through `serverError()` and returns a clean shape with correct status.
-- [ ] Every async UI action has a designed, actionable error state wired to real retry.
-- [ ] No unhandled promise rejections; no infinite spinners; no leaked internals.
-- [ ] Regression tests cover the main failure paths; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/07-security-hardening.md b/prompts/production-readiness/07-security-hardening.md
deleted file mode 100644
index 3a2b67097..000000000
--- a/prompts/production-readiness/07-security-hardening.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 07 — Security hardening
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** authn/authz across `api/`, input validation, security headers in `vercel.json`, CORS, money-path invariants.
-**Depends on:** `05` (secrets), `06` (errors). **Pairs with:** `08` (rate limits), `44` (money safety).
-
-## Why this matters for $1B
-This platform custodies wallets and moves money (x402, $THREE, skill purchases, pump.fun). One authz bug = drained funds = dead company. Security is the difference between a fundable platform and a liability. Run a real review; fix what it finds.
-
-## Map — real anchors
-- Auth/ownership: agent identities have an immutable owner; only the owner may withdraw / set limits / rebrand. Money paths: `api/x402*`, `api/x402/*`, `api/payments/*`, `api/pump/*`, `api/_lib/agent-wallet.js`, `api/_lib/skill-license-onchain.js`.
-- `api/_lib/http.js` — already sets nosniff, frame-ancestors deny, strict CSP defaults on responses.
-- `vercel.json` — global CSP/HSTS/permissions-policy + per-route frame-ancestors. CSP currently allows `'unsafe-inline'`/`'unsafe-eval'` for scripts with a CDN allow-list.
-- `/security-review` skill — run it.
-
-## Do this
-1. Run the repo's `/security-review` over the current branch; triage findings by severity.
-2. **AuthZ on every mutating endpoint:** confirm the caller owns the resource before any write/withdraw/rebrand/spend. Audit `api/` for endpoints trusting a client-supplied `user_id`/`agent_id` without verifying the session. Fix every one.
-3. **Input validation at boundaries:** validate/normalize every body, query, and path param (length, type, range, address format, amount bounds). Reject early with 400. Close injection (SQL/NoSQL/command), path traversal, and SSRF (anywhere a URL is fetched on the user's behalf — forge image inputs, avatar URL import).
-4. **Money-path invariants:** amount sanity bounds; idempotency keys on transfers/mints (see `44`); replay protection on signed requests; **server-side price recomputation** — never trust client-sent amounts.
-5. **Security headers:** tighten CSP toward removing `'unsafe-inline'`/`'unsafe-eval'` where feasible (move inline handlers to modules); keep HSTS, nosniff, referrer-policy, permissions-policy. Confirm embed routes relax frame-ancestors **only** for intended embed surfaces.
-6. **CORS:** lock API CORS to known origins; never reflect arbitrary `Origin`.
-7. **Dependency audit:** `npm audit` + `npm audit --workspaces`; fix high/critical by upgrade; document any accepted advisory with rationale.
-8. Add regression tests for each fixed authz/validation hole.
-
-## Must-not
-- Never trust client-supplied identity, amount, or price.
-- Do not weaken CSP "to make something work" — fix the inline/eval cause.
-- Do not replay money-moving requests without idempotency.
-
-## Definition of done
-- [ ] `/security-review` findings resolved or risk-accepted with written rationale.
-- [ ] Every mutating endpoint verifies ownership/session server-side.
-- [ ] All inputs validated at the boundary; injection/traversal/SSRF closed.
-- [ ] Money paths: amount bounds + idempotency + server-side price recompute.
-- [ ] Headers tightened, CORS locked; `npm audit` clean of high/critical (or documented).
-- [ ] Regression tests added; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/08-rate-limiting-and-abuse.md b/prompts/production-readiness/08-rate-limiting-and-abuse.md
deleted file mode 100644
index d9a0fcf70..000000000
--- a/prompts/production-readiness/08-rate-limiting-and-abuse.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 08 — Rate limiting & abuse controls
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `api/_lib/rate-limit.js` and its call sites; abuse caps on expensive + money + write endpoints.
-**Depends on:** `07`. **Pairs with:** `09`, `35` (x402), `21` (forge).
-
-## Why this matters for $1B
-Every expensive endpoint (forge GPU, paid x402 verify, pump.fun launches, LLM proxies) is a budget bomb if unbounded — one abuser can run up a five-figure bill or DoS the service. Rate limiting is how the platform survives going viral.
-
-## Map — real anchors
-- `api/_lib/rate-limit.js` — Upstash Redis–backed (`@upstash/ratelimit`), in-memory fallback for dev/tests, **fail-closed in prod when Redis unset**. Existing limits: `FORGE_PAID_GLOBAL_HOURLY` (~600/h GPU circuit breaker), `X402_VERIFY_GLOBAL_PER_HOUR` (~12k/h). Returns 429 with `rate_limited` + `retry_after`.
-- ~20 handlers already import it (agent-skills, newsletter, forge-*, x402-pay, pump/safety).
-
-## Do this
-1. **Inventory expensive/abusable endpoints:** GPU/forge (`api/x402/forge*`, `api/forge*`), LLM proxies, image/3D generation, pump.fun launch/trade, wallet funding, vanity grinding, search, newsletter/signup, anything that writes to DB or spends money. List which already have limits and which don't.
-2. **Apply per-IP + per-user limits** to every endpoint on that list, using the existing `rate-limit.js` helper. Tune thresholds to real usage + cost ceilings; keep a **global circuit breaker** on the most expensive lanes (GPU, paid verify).
-3. **Graceful 429s:** ensure every limited endpoint returns the standard 429 with `retry_after`, and the **frontend renders it as a designed, friendly "slow down / try again in Ns" state** — not a generic error.
-4. **Abuse vectors beyond rate:** signup/email enumeration, content spam in user-generated surfaces (gallery, marketplace, club), referral fraud, free-tier farming. Add the right control (captcha challenge on suspicious patterns, dedupe, holder-gating where appropriate).
-5. **Confirm fail-closed:** in production, missing Redis must block (not silently allow unlimited). Verify the startup warning + behavior.
-6. Add tests that assert limits trigger and the 429 shape is correct.
-
-## Must-not
-- Do not leave any GPU/paid/money/write endpoint unbounded.
-- Do not fail open in production when the limiter backend is down.
-- Do not surface a raw 429 to users — design the throttle state.
-
-## Definition of done
-- [ ] Every expensive/money/write endpoint has per-IP + per-user limits; costliest lanes have a global breaker.
-- [ ] 429s carry `retry_after` and render as a friendly frontend state.
-- [ ] Limiter fails closed in prod; abuse vectors (enumeration, spam, referral fraud) addressed.
-- [ ] Tests cover limit-trigger + 429 shape; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/09-resilience-external-calls.md b/prompts/production-readiness/09-resilience-external-calls.md
deleted file mode 100644
index d225f807c..000000000
--- a/prompts/production-readiness/09-resilience-external-calls.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 09 — Resilience of external calls
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** every outbound call to a third party (Solana/EVM RPC, pump.fun, OpenAI/Anthropic proxies, NVIDIA NIM/Meshy/Tripo, Upstash, Neon, R2).
-**Depends on:** `06`. **Pairs with:** `10` (observability), `47` (status).
-
-## Why this matters for $1B
-The platform's uptime is a function of its weakest upstream. RPCs rate-limit, model
-providers 503, pump.fun hiccups. Without timeouts, retries, and failover, one slow
-dependency cascades into a platform-wide hang. Resilient external calls are what let the
-product stay up when the internet doesn't.
-
-## Map — real anchors
-- `api/_lib/solana/connection.js` — Solana RPC with fallback logic. `api/_lib/evm/rpc.js` — EVM fallback provider.
-- `api/_lib/pump.js`, `api/_lib/pump-quote.js` — pump.fun client.
-- Worker proxies for OpenAI/Anthropic in `workers/`. Forge engines (TRELLIS/NIM, Meshy, Tripo, Stability) behind `api/forge*` / `api/x402/forge*`.
-- **Memory:** prefer vetted OSS — there's a `cockatiel` resilience helper available; adopt it rather than hand-rolling retry/breaker logic. Add to new/unprotected call sites; don't refactor working code needlessly.
-
-## Do this
-1. **Inventory** every outbound third-party call across `api/` + `workers/`. For each note: timeout? retry? failover? circuit breaker? idempotency on retry?
-2. **Timeouts everywhere:** no unbounded `fetch`/RPC. Set per-call timeouts sized to the dependency. A hung upstream must never hang our function to its `maxDuration`.
-3. **Retry with backoff** on transient failures (429/5xx/network), with jitter and a cap. Use `cockatiel` (or the existing helper) for consistent retry + circuit-breaker policy. **Only retry idempotent operations** — never blindly retry a money move (coordinate with `44`).
-4. **Failover:** RPC and model providers should fail over to a secondary on persistent failure (extend the existing `connection.js`/`rpc.js` fallback pattern). Confirm the failover path itself is validated before use (don't forward an unvalidated RPC body — see commit `fa82d3c8a`).
-5. **Circuit breakers** on flaky upstreams so a dead provider sheds load fast instead of timing out every request.
-6. **Graceful degradation:** when a non-critical upstream is down, return a real fallback or a clear "temporarily unavailable" — never a 500 cascade.
-7. Add tests simulating upstream timeout / 5xx / failover.
-
-## Must-not
-- No unbounded external calls. No retry of non-idempotent money operations.
-- Do not forward an unvalidated upstream response body through failover.
-- Do not hand-roll a bespoke breaker if the vetted helper fits.
-
-## Definition of done
-- [ ] Every external call has a timeout; transient failures retry with backoff (idempotent only).
-- [ ] RPC + model providers fail over to a secondary; flaky upstreams have breakers.
-- [ ] Non-critical upstream failures degrade gracefully, not as 500s.
-- [ ] Tests cover timeout/5xx/failover; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/09-security-review.md b/prompts/production-readiness/09-security-review.md
deleted file mode 100644
index 7af2f4022..000000000
--- a/prompts/production-readiness/09-security-review.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# 09 — Security review: payments, wallets, contracts
-
-**Phase 2. [parallel-safe]** with 07–08, 10–11. Authorized internal security
-review of our own platform.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform with real money flows:
-Solana + x402 USDC payments, pump.fun launches, agent wallets, on-chain identity
-(`contracts/`, ERC-8004), skill-license NFTs, SNS pay-by-name. Read
-[CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**. There is a
-`/security-review` skill and `docs/audits/` — use them.
-
-## Objective
-
-A focused security review of every surface where value moves or trust is
-asserted, with each finding either fixed or filed with a concrete remediation.
-This is defensive review of our own code — not exploitation of third parties.
-
-## Why it matters
-
-A token platform is a target. One reentrancy bug in a contract, one missing
-signature check in a payment verifier, one replayable x402 receipt, one agent
-wallet that can be drained — any of these ends the company. Billion-dollar trust
-is earned by being provably hard to rob.
-
-## Instructions
-
-1. **Run the built-in review** on the current tree and capture output:
- - Invoke the `/security-review` skill (or `npm run` equivalent if wired).
- - `npm audit --omit=dev` for dependency CVEs; triage criticals.
-2. **Payments / x402** (`api/x402*`, `public/x402*.js`, `x402-buildout/`):
- - Verify payment receipts can't be replayed (nonce/expiry checked).
- - Verify the amount/asset/recipient in the signed payload match what the
- server charges — no client-trusted price.
- - Verify settlement is idempotent and that a failed settlement can't grant
- access. Confirm the facilitator/verifier responses are validated, not
- trusted blindly.
-3. **Wallets & custody** (`public/wallet/`, agent-wallet prompts, session keys):
- - Confirm private keys / seed material never touch the client or logs.
- - Review any server-side signing: least privilege, bounded amounts, no
- arbitrary-instruction signing from unvalidated input.
- - SIWE/session: nonce, domain binding, expiry, and that a session can't be
- replayed or fixated.
-4. **On-chain programs** (`contracts/`, Anchor + Foundry):
- - Review access control (who can mint/close/transfer), integer overflow,
- PDA/seed derivation, signer checks, and reentrancy where applicable.
- - Run the contract test suites; add tests for any unchecked authority.
-5. **Web app**: XSS in any place user content is rendered (agent names, chat,
- profiles) — confirm output is escaped/sanitized; CSP headers present;
- no `dangerouslySetInnerHTML`/`innerHTML` with untrusted input; SSRF in any
- server-side fetch that takes a user URL; open-redirect in auth callbacks.
-6. **Secrets**: cross-check with [07](07-secrets-and-env-hardening.md) — no key
- in client, no token in logs.
-7. **Write `docs/audits/security-review-YYYY-MM-DD.md`**: each finding with
- severity (crit/high/med/low), location, impact, and status (fixed | filed).
- Fix all crit/high in this task; file med/low with owners.
-
-## Definition of done
-
-- [ ] `/security-review` + `npm audit` run; results captured in the report.
-- [ ] x402 replay, amount-tampering, and idempotency checks verified or fixed.
-- [ ] No private key/seed reachable from client or logs (confirmed).
-- [ ] Contract access-control / signer / overflow review done; contract tests
- pass; new tests added for any gap found.
-- [ ] XSS / CSP / SSRF / open-redirect checks done on user-content surfaces.
-- [ ] `docs/audits/security-review-<today>.md` committed with severity-rated
- findings; all critical & high fixed.
-- [ ] Changelog: `security` entry for any user-relevant hardening (never disclose
- an unpatched vuln in the public changelog).
diff --git a/prompts/production-readiness/10-observability-and-alerting.md b/prompts/production-readiness/10-observability-and-alerting.md
deleted file mode 100644
index 403f30027..000000000
--- a/prompts/production-readiness/10-observability-and-alerting.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 10 — Observability & alerting
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `api/_lib/sentry.js`, server + client error capture, structured logging, ops alerts, `api/healthz.js`.
-**Depends on:** `06`. **Pairs with:** `09`, `47` (status page).
-
-## Why this matters for $1B
-You can't operate at scale blind. When money moves and avatars render for thousands of
-users, you need to know within seconds that something broke, where, and how badly. Good
-observability turns 3am outages into 3-minute fixes — and gives investors confidence the
-team can run the thing.
-
-## Map — real anchors
-- `api/_lib/sentry.js` — custom HTTP envelope (no `@sentry/node`, to avoid NFT bloat); `SENTRY_DSN` configures; fired by `serverError()` in `api/_lib/http.js`; 2.5s timeout.
-- `api/_lib/http.js` — redacts lat/lng/token before logs/Sentry.
-- `public/error-reporter.js` → `POST /api/client-errors` — batched client capture.
-- `api/healthz.js` → `GET /api/healthz` — uptime + sub-probe status (resend/x402/monitor/watches).
-
-## Do this
-1. **Structured server logs:** standardize log lines into a structured shape (level, route, request id, user/agent id where safe, latency, outcome) via a small helper in `api/_lib/`. Keep the existing redaction. Replace ad-hoc `console.log` on hot paths with it.
-2. **Error capture coverage:** confirm **every** `serverError()` path reports to Sentry and every unhandled client error reaches `/api/client-errors`. Add a request id that ties a client error to its server trace.
-3. **Money + auth events:** emit a durable audit log (DB-backed where it exists) for every payment, withdrawal, mint, gating decision, and authz denial — queryable after the fact (coordinate with x402 audit-log in `api/_lib/x402/`).
-4. **Alerting:** wire ops alerts (the existing alert path in `http.js`) for: payment failures, auth-denial spikes, upstream-failover events, rate-limit-breaker trips, healthz sub-probe failures. Route to a real channel (Telegram/Slack/email) using existing creds.
-5. **Health/metrics:** extend `api/healthz.js` to cover the dependencies that matter (DB, Redis, RPC, model providers) with cached sub-probes. Expose key counters (paid calls/hr, forge jobs, errors/min) for the status page (`47`).
-6. **Dashboards:** document where to watch (Vercel Observability + Sentry) in `docs/internal/runbook.md`; add a minimal runbook for the top 5 alerts.
-
-## Must-not
-- Do not log secrets, full wallet keys, or precise user location — keep the redaction.
-- Do not add a heavy SDK that bloats the serverless bundle — match the lightweight `sentry.js` approach.
-
-## Definition of done
-- [ ] Structured logging helper in use on hot/money/auth paths, with redaction intact.
-- [ ] Every server + client error is captured and correlatable via request id.
-- [ ] Durable audit log for payments/withdrawals/mints/gating/authz-denials.
-- [ ] Real alerts wired for the critical event classes, with a runbook.
-- [ ] `healthz` covers DB/Redis/RPC/model providers; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/11-backend-caching-and-cdn.md b/prompts/production-readiness/11-backend-caching-and-cdn.md
deleted file mode 100644
index f31c5282d..000000000
--- a/prompts/production-readiness/11-backend-caching-and-cdn.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 11 — Backend caching & CDN
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `Cache-Control` on API responses, `vercel.json` route caching, R2/Edge-config asset serving, read-path memoization.
-**Depends on:** `09`. **Pairs with:** `17` (web vitals), `51` (SEO).
-
-## Why this matters for $1B
-Caching is the cheapest performance and cost win available. Read-heavy public surfaces
-(gallery, launches, agent profiles, changelog) should be served from the edge, not
-recomputed per request. Right caching cuts RPC/DB bills, slashes latency, and lets the
-platform absorb a traffic spike instead of melting.
-
-## Map — real anchors
-- `api/_lib/http.js` — defaults to `no-store` unless a handler sets `Cache-Control`. Public reads should opt into `public, s-maxage=…`.
-- `vercel.json` — per-route cache headers already exist (e.g. `/embed/v1.js` 300s+CDN, `/changelog.json` 600s, `/widget-client.js` immutable) and R2 serving via `/api/cdn-object`.
-- Neon Postgres (`api/_lib/db.js`), Upstash Redis (`api/_lib/rate-limit.js` — reusable for caching).
-
-## Do this
-1. **Classify every GET endpoint:** public-cacheable (gallery, launches, agent profiles, leaderboards, prices, features), private (user dashboard), or never-cache (auth, payment state). Public reads should set `Cache-Control: public, s-maxage=… , stale-while-revalidate=…`; private reads `private`; money/auth `no-store`.
-2. **Edge-cache hot public reads** with `s-maxage` tuned to data freshness + `stale-while-revalidate` so the edge serves instantly while revalidating. Use SWR generously on slow-changing data.
-3. **Server-side memoization** for expensive repeated computations (e.g. $THREE balance — already 30s cached; pump quotes; on-chain reads) using Upstash with sensible TTLs and explicit invalidation on writes.
-4. **Static assets:** GLBs, textures, fonts, images served with long-lived immutable cache + content hashing; confirm R2/CDN path (`/api/cdn-object`) sets correct headers and compression.
-5. **Cache invalidation:** on every write that changes a cached read (new launch, profile edit, new avatar), invalidate or version the cache key — no stale-forever bugs.
-6. **Verify hit rates:** check response headers (`x-vercel-cache`, age) in the browser for the hot public routes; confirm HIT after warmup.
-
-## Must-not
-- Never cache authenticated or money/payment-state responses publicly.
-- Do not set immutable cache on content that changes without a hashed URL.
-- Do not cache an error response as if it were success.
-
-## Definition of done
-- [ ] Every GET endpoint classified and carries correct `Cache-Control` (public/private/no-store).
-- [ ] Hot public reads edge-cached with `s-maxage` + SWR; verified HIT in headers.
-- [ ] Expensive on-chain/DB reads memoized with TTL + write-invalidation.
-- [ ] Static 3D/image/font assets immutable + content-hashed via CDN.
-- [ ] No auth/money response cached publicly; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/12-test-coverage-unit.md b/prompts/production-readiness/12-test-coverage-unit.md
deleted file mode 100644
index 515435381..000000000
--- a/prompts/production-readiness/12-test-coverage-unit.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 12 — Unit & integration test coverage
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** Vitest suites under `tests/` + colocated `*.test.js`; `vitest.config.js`.
-**Depends on:** `01`. **Pairs with:** `13` (e2e), `14` (CI), `44` (money safety).
-
-## Why this matters for $1B
-Tests are how a small team ships fast without breaking money. The repo already has ~466
-test files and a `test:gate` for critical money/auth paths — the goal now is closing
-coverage gaps on the logic that, if wrong, loses funds or corrupts data. Coverage is a
-diligence checkbox; correctness on money paths is survival.
-
-## Map — real anchors
-- `npm test` → `vitest run` + `playwright test`. `npm run test:core` → `vitest run --maxWorkers=1`. `npm run test:gate` → `scripts/test-gate.mjs` (critical money/auth subset).
-- `vitest.config.js` — 120s timeout, forks capped at min(4, cpus-1), `@grpc/*` deduped.
-- Tests in `tests/*.test.js` + colocated (e.g. `api/_lib/coin/*.test.js`).
-
-## Do this
-1. **Coverage report:** run `vitest run --coverage` (add the coverage dep/config if missing). Identify the lowest-covered high-risk modules: `api/_lib/x402/*`, `api/_lib/agent-wallet.js`, `api/_lib/pump*.js`, `api/_lib/three-gate.js`/`require-three.js`, `api/_lib/secret-box.js`, `api/_lib/db.js`, retarget/canonicalize (`src/glb-canonicalize.js`, `src/animation-retarget.js`).
-2. **Pure-logic first:** add deterministic unit tests for pricing math, amount/units conversions, idempotency-key derivation, gating tier thresholds, bonding-curve quotes, address validation, and bone-name canonicalization (the CLAUDE.md rule: every new skeleton mapping gets a `tests/glb-canonicalize.test.js` case).
-3. **Boundary + error cases:** for each money/auth module, test the failure paths — invalid input, replay, insufficient balance, RPC failure, unauthorized caller — not just the happy path.
-4. **Integration tests** for handler flows that can run without live third parties (use the existing test seams; do **not** introduce mocks of real APIs into production code — keep test doubles in test files only).
-5. **Make `test:gate` comprehensive:** ensure the critical-path gate covers every money/auth invariant so CI blocks regressions there.
-6. **Flaky-test sweep:** find and fix nondeterminism (time, ordering, network). No `.skip`/`xfail` left without a written reason + removal condition.
-
-## Must-not
-- Do not add mocks/fakes into shipped `src/`/`api/` code — test doubles live in test files only (CLAUDE.md forbids mocks in production code).
-- Do not chase a coverage % by testing trivial getters; prioritize money/auth/data-integrity logic.
-- Do not leave skipped tests without a documented reason.
-
-## Definition of done
-- [ ] Coverage measured; high-risk money/auth/data modules meaningfully covered incl. failure paths.
-- [ ] New deterministic unit tests for pricing, idempotency, gating, quotes, address validation, canonicalization.
-- [ ] `test:gate` covers all critical money/auth invariants.
-- [ ] No flaky/skipped tests without a written reason; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/13-e2e-critical-flows.md b/prompts/production-readiness/13-e2e-critical-flows.md
deleted file mode 100644
index aa5f0b328..000000000
--- a/prompts/production-readiness/13-e2e-critical-flows.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# 13 — End-to-end tests for critical flows
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** Playwright suites under `tests/e2e/*.spec.js`; `playwright.config.js`.
-**Depends on:** `12`. **Pairs with:** `14` (CI), product-surface prompts `21`–`34`.
-
-## Why this matters for $1B
-Unit tests prove functions work; E2E proves the **product** works. The flows that make
-or break the company — create an avatar, launch a coin, pay via x402, embed a widget —
-must be guarded by browser tests that fail loudly when a refactor breaks the journey. This
-is how you ship daily without fear.
-
-## Map — real anchors
-- `npm run test:e2e` → `playwright test`. `playwright.config.js` — 120s timeout, 1 retry, dev server on port 3000, 180s cold-start budget.
-- Existing specs in `tests/e2e/` (e.g. `tests/e2e/avatar-edit.spec.js`).
-
-## Do this
-1. **Define the critical journeys** (the ones a $1B platform cannot ship broken):
- - Forge: prompt → generate (free lane) → preview → save/download.
- - Avatar: create/import → rig → customize → save → view in gallery.
- - Onboarding: the create wizard end-to-end → deployed embed snippet.
- - Marketplace: browse → open skill → purchase flow reaches checkout.
- - x402: hit a paid endpoint → 402 → payment modal renders → settle path (use test/sandbox where real settlement isn't safe, but exercise the real UI flow).
- - Embed/widget studio: configure → copy snippet → snippet renders an avatar on a test page.
- - Walk companion: loads and animates on a page.
-2. **Author Playwright specs** for each, asserting real DOM/network outcomes (not screenshots-only). Cover the designed loading/empty/error states too.
-3. **Stabilize:** use role/text selectors, explicit waits on real conditions (no arbitrary sleeps), and the existing cold-start budget. Make them deterministic.
-4. **Money flows:** exercise the full UI up to the irreversible step; assert the confirmation/guard UI. Don't move real mainnet funds in CI.
-5. **Wire into CI** (coordinate with `14`) so these run on PRs and block merge on failure.
-
-## Must-not
-- No mainnet money movement in CI; stop at the confirmation boundary or use a sandbox.
-- No arbitrary `waitForTimeout` as the primary sync — wait on real conditions.
-- Do not assert on brittle pixel screenshots for logic; assert behavior.
-
-## Definition of done
-- [ ] Playwright specs cover forge, avatar create→rig→save, onboarding, marketplace purchase entry, x402 modal, embed/widget, walk companion.
-- [ ] Specs assert real behavior incl. loading/empty/error states; deterministic, no arbitrary sleeps.
-- [ ] Money flows tested up to the irreversible boundary only.
-- [ ] Specs run green locally and are wired into CI; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/14-ci-cd-gates.md b/prompts/production-readiness/14-ci-cd-gates.md
deleted file mode 100644
index e10c61237..000000000
--- a/prompts/production-readiness/14-ci-cd-gates.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 14 — CI/CD gates
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `.github/workflows/*.yml`, build guards in `scripts/`, the Vercel build pipeline.
-**Depends on:** `12`, `13`. **Pairs with:** `04` (route audit), `45` (migrations).
-
-## Why this matters for $1B
-CI is the seatbelt that lets a team move fast. The deploy that triggered this whole effort
-failed because a strict route audit caught an undocumented page — that's the system
-working. The goal: make every class of regression (broken build, failing test, leaked
-bundle, undocumented route, accessibility break, money-path failure) impossible to merge.
-
-## Map — real anchors
-- `.github/workflows/ci.yml` — jobs: lint (eslint, new-errors-only), unit (vitest), source guards (`check-api-not-bundled.mjs`, `check:images`, `build:pages`), typecheck (advisory). Concurrency cancels in-flight runs per branch.
-- `scripts/build-vercel.mjs` — the multi-phase Vercel build; `scripts/audit-page-index.mjs --strict` gates it.
-- `scripts/check-api-not-bundled.mjs` — prevents esbuild bundles in `api/*.js`.
-
-## Do this
-1. **Make the gate complete.** Ensure CI blocks merge on: lint errors, unit test failures, `test:gate` (money/auth), the page-route audit (`audit:pages`), image-loading audit (`check:images`), handler audit (`audit:handlers`), and the api-not-bundled guard.
-2. **Add E2E to CI** (from `13`) on PRs — at least the smoke subset — with the dev-server + Playwright setup, retried once, and a sane timeout.
-3. **Typecheck:** decide whether to promote typecheck from advisory to blocking; if not yet clean, track the gap and gate net-new type errors only.
-4. **Build parity:** ensure CI runs the same `build:vercel` gates Vercel runs, so a green PR can't red the deploy. Catch the esbuild-bundle trap in CI (the guard exists — confirm it runs on the right paths).
-5. **Required checks + branch protection:** document which checks must pass; ensure the deploy only proceeds when CI is green.
-6. **Speed:** cache `node_modules`/build artifacts; keep PR feedback under ~10 min. Parallelize independent jobs.
-7. **Secret scanning in CI:** add a secret scan step (coordinate with `05`) so a leaked key fails the PR.
-
-## Must-not
-- Do not let a deploy proceed on a red gate to "unblock" a release — fix the cause.
-- Do not add flaky E2E that erodes trust in the gate; quarantine or fix flakes immediately.
-- Do not disable the api-not-bundled or route-audit guards.
-
-## Definition of done
-- [ ] CI blocks merge on lint, unit, test:gate, page/image/handler audits, api-not-bundled, secret scan.
-- [ ] E2E smoke runs on PRs and gates merge; CI build mirrors the Vercel gates.
-- [ ] Branch protection / required checks documented; deploy only on green.
-- [ ] PR feedback time is reasonable (caching + parallelism); `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/15-accessibility-wcag.md b/prompts/production-readiness/15-accessibility-wcag.md
deleted file mode 100644
index 204176517..000000000
--- a/prompts/production-readiness/15-accessibility-wcag.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 15 — Accessibility (WCAG 2.2 AA)
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** semantic HTML, ARIA, keyboard nav, focus management, contrast across `pages/` + `src/`.
-**Depends on:** `01`. **Pairs with:** `16` (responsive), `20` (design system).
-
-## Why this matters for $1B
-CLAUDE.md: "Accessibility is not optional." It's also enterprise procurement reality —
-AWS/IBM/Google-tier customers require it, and it's a legal exposure if absent. The repo
-already has ~2,500 ARIA usages; the goal is conformance, a CI gate, and a keyboard-only
-user who can do everything a mouse user can.
-
-## Map — real anchors
-- ~2,490 `aria-*`/`role=` usages across `pages/`. Design tokens (`public/tokens.css`, `:root` in `public/style.css`) carry contrast intent; theme via `public/theme-switcher.js` (dark default + light).
-- No a11y CI gate yet — add one.
-
-## Do this
-1. **Automated pass:** run `axe-core` (or `@axe-core/playwright`) across the top ~25 routes. Catalog violations by rule + severity.
-2. **Fix systematically:** semantic landmarks (`header`/`nav`/`main`/`footer`), heading order, labels on every form control, `alt` on meaningful images + `aria-hidden` on decorative, `aria-label`/`aria-labelledby` on icon buttons, `aria-live` on async status, correct roles on custom widgets.
-3. **Keyboard:** every interactive element reachable + operable by keyboard; visible focus ring everywhere (tokens already define `--focus-ring-*`); logical tab order; no keyboard traps; modals trap+restore focus; skip-to-content link.
-4. **Contrast:** verify text + UI contrast meets AA in **both** dark and light themes; fix token values that fail rather than one-off overrides.
-5. **Motion + 3D:** honor `prefers-reduced-motion` (pause/reduce avatar idle, transitions); provide text alternatives / controls for canvas-only 3D content where it conveys info.
-6. **CI gate:** add an automated a11y check (axe in Playwright) to the suite so regressions fail CI (coordinate with `14`).
-
-## Must-not
-- Do not add ARIA that lies about state, or ARIA where semantic HTML would do.
-- Do not fix contrast with per-element hacks — fix the design token.
-- Do not ship a focus style that's invisible on either theme.
-
-## Definition of done
-- [ ] axe across top ~25 routes: zero critical/serious violations.
-- [ ] Full keyboard operability + visible focus + skip link + modal focus management.
-- [ ] AA contrast in dark **and** light themes via tokens.
-- [ ] `prefers-reduced-motion` honored for 3D/animation.
-- [ ] a11y check wired into CI; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/16-mobile-responsiveness.md b/prompts/production-readiness/16-mobile-responsiveness.md
deleted file mode 100644
index f0e956771..000000000
--- a/prompts/production-readiness/16-mobile-responsiveness.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 16 — Mobile responsiveness
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** `public/mobile.css`, responsive layout across `pages/` + `src/`, touch interactions.
-**Depends on:** `01`. **Pairs with:** `15` (a11y), `20` (design system), `55` (PWA).
-
-## Why this matters for $1B
-A large share of crypto + consumer traffic is mobile. If forge, the gallery, the wallet
-flow, or a coin page is broken at 360px, half the audience bounces. CLAUDE.md: "Responsive
-by default. Test at 320px, 768px, and 1440px." Mobile parity is not a nice-to-have for a
-consumer platform aiming at $1B.
-
-## Map — real anchors
-- `public/mobile.css` (~442 lines) — breakpoints at 768/640/480/380/360px, `@media (hover:none) and (pointer:coarse)` touch rules, `@media (display-mode: standalone)` PWA tweaks.
-- `public/style.css` — fluid `clamp()` sizing + viewport units. `public/tokens.css` — spacing scale.
-
-## Do this
-1. **Audit every primary surface at 320 / 360 / 768 / 1024px** (and a real phone if possible): home, forge, gallery, marketplace, dashboard, create wizard, scene, club, city, walk, agent-studio, brain, coin/launch detail, wallet/funding, embed studio.
-2. **Fix layout breaks:** horizontal overflow, clipped content, overlapping elements, unreadable type, off-screen CTAs, fixed widths that don't fit. Prefer fluid units + the existing `clamp()` pattern; avoid new fixed pixel widths.
-3. **Touch targets:** ≥44px tap targets, adequate spacing, no hover-only affordances (provide tap equivalents). Honor the existing coarse-pointer media query.
-4. **3D on mobile:** canvas surfaces (forge preview, viewer, scene, walk, city) must be usable on touch — pinch/drag camera, sane default framing, lower asset/quality tier on low-power devices (coordinate with `19`). No locked-up scroll.
-5. **Forms + modals:** inputs don't get hidden by the soft keyboard; modals/sheets are full-height-friendly; payment + wallet flows work one-handed.
-6. **Safe areas + PWA:** respect `env(safe-area-inset-*)` on notched devices; verify the `standalone` display mode (coordinate with `55`).
-
-## Must-not
-- No horizontal scroll on any primary surface at 320px.
-- No hover-only interactions without a touch equivalent.
-- Do not ship a desktop-only 3D control scheme on touch surfaces.
-
-## Definition of done
-- [ ] Every primary surface clean at 320/360/768/1024px — no overflow, clipping, or off-screen CTAs.
-- [ ] Tap targets ≥44px; no hover-only affordances; coarse-pointer rules honored.
-- [ ] 3D/canvas surfaces usable + framed on touch, with a low-power quality tier.
-- [ ] Forms/modals/payment flows usable one-handed; safe-area insets respected.
-- [ ] `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/17-performance-core-web-vitals.md b/prompts/production-readiness/17-performance-core-web-vitals.md
deleted file mode 100644
index 2637e26c5..000000000
--- a/prompts/production-readiness/17-performance-core-web-vitals.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# 17 — Performance & Core Web Vitals
-
-> **Road to $1B · Production-Readiness track.** Paste this whole file into a fresh chat at `/workspaces/three.ws`. Read `CLAUDE.md` + `STRUCTURE.md` first — they override defaults.
-
-**Phase:** 2 · Cross-cutting hardening
-**Owns:** LCP / INP / CLS across public surfaces; loading strategy; the `page-audit` tooling.
-**Depends on:** `11` (caching). **Pairs with:** `18` (bundle), `19` (3D), `51` (SEO).
-
-## Why this matters for $1B
-Web Vitals are a ranking signal **and** a conversion signal — every 100ms of latency costs
-sign-ups. A 3D-heavy platform fights gravity here, which makes disciplined performance a
-competitive moat: if three.ws loads fast with avatars rendering, it wins where rivals jank.
-
-## Map — real anchors
-- `npm run audit:web` → `scripts/page-audit.mjs` (Lighthouse-style audits). `npm run check:images` enforces lazy-load attrs on `<img>`.
-- Fonts in `public/fonts/`, `public/style.css` (large), `public/mobile.css`. Vite build for `src/`.
-
-## Do this
-1. **Measure first:** run Lighthouse / `audit:web` on the top ~15 public routes (mobile + desktop). Record LCP, INP, CLS, TBT, TTFB. Target: LCP < 2.5s, INP < 200ms, CLS < 0.1 on mid-tier mobile.
-2. **LCP:** identify each page's LCP element; preload it; serve hero images as responsive `srcset` + modern formats (AVIF/WebP); inline critical CSS; ensure fast TTFB via edge caching (`11`).
-3. **CLS:** reserve space for images/embeds/3D canvases (explicit dimensions / aspect-ratio); avoid layout shift from late fonts (`font-display: swap` + preload) and injected banners.
-4. **INP/TBT:** defer non-critical JS; break up long tasks; lazy-load heavy modules (Three.js scenes, studios) on interaction/viewport; debounce input handlers (CLAUDE.md). Hydrate/init only what's visible.
-5. **Images:** confirm `check:images` passes — every `<img>` lazy-loaded with dimensions; convert heavy PNGs; use a CDN/transform where available.
-6. **Fonts:** subset + preload the critical font; `font-display: swap`; cut unused weights.
-7. **Re-measure** and confirm the targets on the key routes; record before/after in `docs/internal/perf.md`.
-
-## Must-not
-- Do not regress 3D fidelity to win a number — tier it instead (`19`), don't gut it.
-- Do not block first paint on non-critical JS or analytics.
-- Do not ship layout-shifting late content above the fold.
-
-## Definition of done
-- [ ] Top ~15 routes meet LCP<2.5s / INP<200ms / CLS<0.1 on mid-tier mobile (before/after recorded).
-- [ ] LCP preloaded + responsive modern-format images; critical CSS inlined.
-- [ ] Heavy JS deferred/lazy-loaded; long tasks broken up; inputs debounced.
-- [ ] `check:images` + `audit:web` pass; `npm test` green; `git diff` reviewed.
-
----
-**Non-negotiables (CLAUDE.md):** No mocks / fake data / TODOs / stubs — real APIs only. **`$THREE` is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) — never reference any other token anywhere. Concurrent agents share this worktree → **stage explicit paths** (never `git add -A`); re-check `git status`/`git diff --staged` before commit. Never commit `api/*.js` starting with `__defProp`/`createRequire` (esbuild trap → `git restore -- api/ public/`). User-visible change → `data/changelog.json` + `npm run build:pages`. Push to BOTH remotes (`threeD`, `threews`) when asked; never pull/fetch from `threeD`.
diff --git a/prompts/production-readiness/INDEX.md b/prompts/production-readiness/INDEX.md
deleted file mode 100644
index 7debf6227..000000000
--- a/prompts/production-readiness/INDEX.md
+++ /dev/null
@@ -1,169 +0,0 @@
-# three.ws → Production-Ready · Prompt Library
-
-A sequenced set of **self-contained prompts**. Run each one in a **fresh chat**. Each
-file is written so an agent with zero prior context can read it, orient itself in the
-repo, and ship the work end-to-end at the bar set by `CLAUDE.md`.
-
-This library is the plan to take three.ws from "technically strong on core paths" to
-**production-grade and category-leading** — the work that compounds into a credible
-$1B platform: reliability, security, a complete revenue engine, finished product
-surfaces, a growth/conversion funnel, developer experience, and the test/ops
-discipline that lets all of it scale.
-
----
-
-## How to use this
-
-1. Open a new chat in this repo.
-2. Paste the contents of one `Pxx-*.md` file (or say "run `prompts/production-readiness/Pxx-*.md`").
-3. The agent executes that one workstream to done, including tests and a changelog
- entry where user-visible.
-4. Commit/push when you're satisfied (the agent will not push unless you ask).
-
-Run roughly in priority order (P0 → P1 → P2). Within a priority, the `Depends on:`
-field tells you what must land first. Many P1/P2 prompts are independent and can run
-in parallel across separate chats.
-
----
-
-## The shape of every prompt
-
-Each file follows the same template so they're predictable to run:
-
-- **Header** — workstream, priority, effort, dependencies.
-- **Before you start** — fresh-chat orientation (read `CLAUDE.md` + `STRUCTURE.md`; the $THREE-only rule).
-- **Context** — what the system is and the exact files involved.
-- **Problem / opportunity** — the evidence-based gap.
-- **Mission** — what to ship.
-- **Scope** — in/out.
-- **Implementation guide** — concrete, file-by-file.
-- **Definition of done** — checklist aligned to `CLAUDE.md`.
-- **Verification** — how to prove it works.
-- **Guardrails** — the non-negotiables (no mocks, $THREE only, both remotes, etc.).
-
----
-
-## Workstreams
-
-### A · Backend reliability & observability (`api/`, `workers/`)
-| # | Prompt | Priority |
-|---|--------|----------|
-| P01 | Cron idempotency & money-moving safety | P0 |
-| P02 | x402 settlement reliability & stuck-payment recovery | P0 |
-| P03 | Forge backend availability probes & config validation | P0 |
-| P04 | Solana RPC circuit breaker & resilient fallback | P1 |
-| P05 | Rate-limit resilience under Redis outage + per-client x402 verify cap | P1 |
-| P06 | Idempotency-Key support on create/mutation endpoints | P1 |
-| P07 | Observability: metrics, tracing, real-time dashboards | P1 |
-| P08 | Database query observability & connection-pool monitoring | P1 |
-| P09 | Session security hardening | P1 |
-| P10 | Secrets rotation strategy & vault integration | P1 |
-
-### B · Security & compliance
-| # | Prompt | Priority |
-|---|--------|----------|
-| P11 | Dependency scanning in CI + fix `legacy-peer-deps` risk | P0 |
-| P12 | SAST + secret scanning in CI | P0 |
-| P13 | CSRF protection on state-changing endpoints | P0 |
-| P14 | CSP tightening (nonces, drop `unsafe-inline`/`unsafe-eval`) | P1 |
-| P15 | Threat model + external security-audit prep | P1 |
-| P16 | Privacy center, data export/delete, retention policy | P1 |
-| P17 | Legal: Terms, Privacy, Acceptable Use, Payment Terms | P1 |
-
-### C · Monetization completion (revenue engine)
-| # | Prompt | Priority |
-|---|--------|----------|
-| P18 | Subscriptions / time-pass settlement | P0 |
-| P19 | Agent revenue payouts + per-agent earnings ledger | P0 |
-| P20 | Enforce remaining $THREE tier perks | P1 |
-| P21 | Revenue analytics dashboards (per-endpoint / creator / agent) | P1 |
-| P22 | EVM x402 lane scale validation (Base Permit2, Arbitrum) | P0 |
-| P23 | Pricing page, plans & clear rate cards | P1 |
-| P24 | Referral revenue engine, end-to-end | P1 |
-
-### D · Product surface completion
-| # | Prompt | Priority |
-|---|--------|----------|
-| P25 | Marketplace reviews & ratings | P1 |
-| P26 | Inline chat integration (agent detail + marketplace) | P1 |
-| P27 | Scene Studio persistence + scene gallery | P1 |
-| P28 | Avatar gallery 3D previews | P1 |
-| P29 | Avatar rig fallback UX | P1 |
-| P30 | Dashboard analytics charts (real visualizations) | P1 |
-| P31 | Bounties, end-to-end (detail, submit, escrow) | P1 |
-| P32 | Dashboard x402 payment history | P1 |
-| P33 | Custom 404 + designed error pages | P1 |
-| P34 | Real-time leaderboards | P2 |
-| P35 | Agent skills preview modals | P2 |
-| P36 | Create-Agent wizard onboarding polish | P1 |
-
-### E · Growth, conversion & retention
-| # | Prompt | Priority |
-|---|--------|----------|
-| P37 | Role-based landing architecture | P1 |
-| P38 | Progressive / guest onboarding (try before signup) | P1 |
-| P39 | Public metrics dashboard (platform stats) | P1 |
-| P40 | Gamified leaderboards | P2 |
-| P41 | Viral share loops (create→share in one step) | P1 |
-| P42 | Social proof: testimonials & success metrics | P2 |
-| P43 | Competitive positioning / comparison page | P2 |
-| P44 | Empty-state & microinteraction polish pass | P1 |
-| P45 | Product-tour / video landing | P2 |
-| P46 | Notifications & retention hooks | P2 |
-
-### F · SEO, content & developer experience
-| # | Prompt | Priority |
-|---|--------|----------|
-| P47 | Developer portal / docs homepage | P1 |
-| P48 | Interactive OpenAPI explorer | P2 |
-| P49 | Blog index + content strategy | P2 |
-| P50 | SDK docs, per-package CHANGELOGs & examples | P1 |
-| P51 | SEO + structured-data audit & internal linking | P2 |
-| P52 | `llms.txt` + agent discoverability | P2 |
-
-### G · Testing, CI & quality
-| # | Prompt | Priority |
-|---|--------|----------|
-| P53 | API endpoint test-coverage expansion | P1 |
-| P54 | E2E coverage for revenue paths | P1 |
-| P55 | Load & stress testing harness | P2 |
-| P56 | Lighthouse in CI + perf budgets + RUM | P1 |
-| P57 | Typecheck as a hard gate | P2 |
-| P58 | Coverage instrumentation & thresholds | P2 |
-
-### H · On-chain & contracts
-| # | Prompt | Priority |
-|---|--------|----------|
-| P59 | Deploy AgentPayments (EVM) multi-chain + wire SDK | P0 |
-| P60 | Contract third-party audit prep | P1 |
-| P61 | Upgrade-authority migration to multisig/cold keys | P1 |
-
-### I · Ops, deploy & incident response
-| # | Prompt | Priority |
-|---|--------|----------|
-| P62 | Runbooks + incident response + on-call | P0 |
-| P63 | Canary/blue-green deploy + automated rollback | P1 |
-| P64 | DB migration versioning & safe rollback | P0 |
-| P65 | Uptime alerting & escalation | P1 |
-
----
-
-## Suggested first wave (the P0s)
-
-Land these before anything else — they de-risk money movement, security, and the
-ability to recover from incidents:
-
-`P01` `P02` `P03` `P11` `P12` `P13` `P18` `P19` `P22` `P59` `P62` `P64`
-
----
-
-## Non-negotiables baked into every prompt
-
-These come from `CLAUDE.md` and are restated in each file because each runs fresh:
-
-- **$THREE is the only coin.** CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never name, link, or recommend any other.
-- **No mocks, fake data, stubs, TODOs, or commented-out code.** Real APIs, real integrations, finished work.
-- **Every state designed** (loading/empty/error/populated), accessible, responsive.
-- **Changelog discipline** — user-visible changes get a `data/changelog.json` entry; `npm run build:pages` validates it.
-- **Two remotes** — push to both `threeD` and `threews`, only when asked. Never pull/fetch from `threeD`.
-- **Concurrent agents share this worktree** — stage explicit paths, re-check `git status` before committing.
diff --git a/prompts/production-readiness/P11-ci-dependency-scanning.md b/prompts/production-readiness/P11-ci-dependency-scanning.md
deleted file mode 100644
index dd063bbfe..000000000
--- a/prompts/production-readiness/P11-ci-dependency-scanning.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# P11 · CI dependency scanning + Dependabot + legacy-peer-deps de-risk
-
-> **Workstream:** Security & compliance · **Priority:** P0 · **Effort:** M · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map).
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, Cloudflare workers in `workers/`, tests via `vitest` + Playwright (`npm test`), CI in `.github/workflows/`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin.
-
-## Context
-- CI lives in a single file, `.github/workflows/ci.yml`. Jobs today: `lint` (`npx eslint .`), `test` (`npx vitest run`), `guards` (`node scripts/check-api-not-bundled.mjs`, `npm run check:images`, `npm run build:pages`), `typecheck` (`npm run typecheck`), `pages` (`npm run test:pages`), `e2e` (`npx playwright test`). All run `npm ci` on Node 24. There is **no** dependency vulnerability scan anywhere.
-- Repo root `.npmrc` contains exactly one line: `legacy-peer-deps=true`. This is load-bearing for the workspace install but dangerous — see below.
-- This is an npm-workspaces monorepo: 20 workspaces declared in `package.json` (`agent-payments-sdk`, `avatar-sdk`, `mcp-server`, `walk-sdk`, `tour-sdk`, `packages/*`, etc.). `package.json` `engines.node` = `24.x`.
-- A real prod outage on 2026-06-11 (465 consecutive 500s, 90 min of failed deploys) was partly caused by `legacy-peer-deps=true`: when `helius-sdk` 3.0 moved `@solana-program/stake` to peerDependencies, npm silently did not install it and every `/api/cron/*` died at module load with `ERR_MODULE_NOT_FOUND`. `scripts/audit-deploy-artifacts.mjs` is the **post-hoc** backstop (runs standalone, as phase 1 of `scripts/build-vercel.mjs`, and via `tests/deploy-artifacts.test.js`): it verifies every non-optional peerDependency in the prod lock tree resolves and every bare import in `api/**/*.js` is declared. There is no CI gate that runs it, and no scan that would have flagged a known-vuln dependency before it shipped.
-
-## Problem / opportunity
-Real money rides on this code (the CI header says so). A high/critical CVE in a transitive dependency would ship unflagged today, and `legacy-peer-deps=true` masks broken dependency trees until runtime. We need a gate that (a) fails the build on high/critical advisories, (b) keeps deps patched automatically, and (c) reduces the blast radius of `legacy-peer-deps`.
-
-## Mission
-Add a CI dependency-scan job that rejects high/critical vulnerabilities, add Dependabot config for npm + GitHub Actions, and add a CI gate that runs the existing `audit-deploy-artifacts.mjs` peer-dep check so legacy-peer-deps breakage is caught at PR time, not in prod.
-
-## Scope
-**In scope:** new `audit` job in `ci.yml`; `.github/dependabot.yml`; wiring `scripts/audit-deploy-artifacts.mjs` into CI; an allowlist mechanism for accepted/unfixable advisories.
-**Out of scope:** rewriting dependencies, removing `legacy-peer-deps` outright (document the path; don't break the install), container/Trivy image scanning (no Docker images shipped here).
-
-## Implementation guide
-1. **`audit` job in `.github/workflows/ci.yml`.** Mirror the existing job shape (checkout@v4, setup-node@v4 node 24 + `cache: npm`, `npm ci`). Add:
- - `npm audit --audit-level=high` against the production tree. Because workspaces + `legacy-peer-deps` make raw `npm audit` noisy, prefer a deterministic wrapper: add `scripts/audit-deps.mjs` that runs `npm audit --json --omit=dev`, parses `vulnerabilities`, and exits 1 only if any advisory severity is `high` or `critical` AND its module is not in an allowlist. Keep the allowlist in `scripts/audit-deps-allowlist.json` as `{ "<advisoryId-or-ghsa>": { "reason": "...", "expires": "YYYY-MM-DD" } }`; treat an expired entry as not-allowlisted (fail). Print a table of what passed/blocked. Reference how `scripts/audit-deploy-artifacts.mjs` already shells `npm`/`git` via `node:child_process` and reads the lockfile for the style to match.
- - Wire `npm run audit:deps` into `package.json` scripts next to the existing `audit:deploy`.
-2. **Run the existing peer-dep backstop in CI.** In the same `audit` job (or the `guards` job), add `- run: node scripts/audit-deploy-artifacts.mjs`. This is the check that would have caught the 2026-06-11 outage. Confirm it runs clean today first (`node scripts/audit-deploy-artifacts.mjs`) so you don't land a red gate; if it flags something real, fix the dep, don't disable the check.
-3. **`.github/dependabot.yml`.** Two `package-ecosystem` blocks:
- - `npm`, `directory: "/"`, weekly, grouped minor+patch into one PR (`groups:`), `open-pull-requests-limit: 5`, `versioning-strategy: increase`. Because this is a workspaces root, the single `/` entry covers all workspaces via the root lockfile. Ignore major bumps for the fragile pinned forks (`helius-sdk`, anything under `agent-payments-sdk`'s declared deps) so a surprise major can't auto-merge into the legacy-peer-deps tree.
- - `github-actions`, `directory: "/"`, weekly — keeps `actions/checkout`, `actions/setup-node`, `actions/cache` patched.
-4. **De-risk `legacy-peer-deps`.** Do NOT silently remove the `.npmrc` line — it will break `npm ci`. Instead: (a) add a comment to `.npmrc` explaining why it exists and the risk; (b) ensure `scripts/audit-deploy-artifacts.mjs` runs in CI (step 2) so the failure mode it guards is caught pre-merge; (c) in `docs/security.md` or a new `docs/dependency-policy.md`, document the path off legacy-peer-deps (audit which workspace forces it via `npm ls` / `npm install --no-legacy-peer-deps` dry run, list the offending peer conflicts) as a tracked follow-up. Picking the minimal real reduction (e.g. moving the flag from global to only the workspace that needs it, if feasible) is in scope; a full removal is not.
-5. **Permissions.** The new job needs only `contents: read` (already the workflow default). Do not add write scopes.
-
-## Definition of done
-- [ ] `ci.yml` has an `audit` job that fails on high/critical advisories (not in allowlist) and runs `audit-deploy-artifacts.mjs`.
-- [ ] `.github/dependabot.yml` covers npm (`/`) + github-actions, with majors ignored for the fragile forks.
-- [ ] `scripts/audit-deps.mjs` + allowlist exist; `npm run audit:deps` works locally and is green on the current tree.
-- [ ] `.npmrc` documented; dependency-policy doc records the legacy-peer-deps exit path.
-- [ ] Existing tests pass (`npm test`); new logic has new tests (a `tests/audit-deps.test.js` covering allowlist-honored, expired-entry-fails, high-blocks).
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages` (security work counts — tag `security`).
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `node scripts/audit-deps.mjs` → exits 0 on clean tree, exits 1 when you temporarily seed a fake high advisory id outside the allowlist.
-- `node scripts/audit-deploy-artifacts.mjs` → exits 0.
-- `npx vitest run tests/audit-deps.test.js` passes.
-- `actionlint .github/workflows/ci.yml` (or paste into GitHub's workflow editor) — no syntax errors; YAML parses.
-- Validate `dependabot.yml` against schema (e.g. open a PR and confirm GitHub renders no config error in the Insights → Dependency graph → Dependabot tab).
-
-## Guardrails
-- No mocks, fake data, stubs, `TODO`s, or commented-out code. Real APIs; handle errors at boundaries with working fallbacks.
-- Stage explicit paths only; concurrent agents share this worktree — re-check `git status` before committing.
-- Push only when asked, to BOTH remotes: `git push threeD main` && `git push threews main`. Never pull/fetch from `threeD`.
-- Never commit secrets. Watch the `npx vercel build` trap: never commit esbuild-bundled `api/*.js` (check `head -1` for `__defProp`).
diff --git a/prompts/production-readiness/P12-ci-sast-secrets-scanning.md b/prompts/production-readiness/P12-ci-sast-secrets-scanning.md
deleted file mode 100644
index 3add7f3b0..000000000
--- a/prompts/production-readiness/P12-ci-sast-secrets-scanning.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# P12 · CI SAST + secret scanning + pre-commit secret hook
-
-> **Workstream:** Security & compliance · **Priority:** P0 · **Effort:** M · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map).
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, Cloudflare workers in `workers/`, tests via `vitest` + Playwright (`npm test`), CI in `.github/workflows/`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin.
-
-## Context
-- CI is one file, `.github/workflows/ci.yml`, with jobs `lint`, `test`, `guards`, `typecheck`, `pages`, `e2e`. The `lint` job runs `npx eslint .` only. There is **no** SAST (no CodeQL, no `eslint-plugin-security`) and **no** secret scanning (no gitleaks/trufflehog) anywhere.
-- ESLint is flat-config (`eslint.config.js`, ESLint 10). It scopes first-party root JS and ignores vendored/generated trees (`character-studio/**`, `**/vendor/**`, `chat/**`, `agent-payments-sdk/**`, build output, minified bundles). Rules are mostly `warn` (the file documents a "warn-baseline, ratchet to error" strategy); high-value structural rules (`no-dupe-keys`, `no-func-assign`) are `error`. No security plugin is loaded.
-- `.githooks/pre-push` already exists (runs `npm run typecheck`; wired via `git config core.hooksPath .githooks`, set by `npm run setup`). There is no `pre-commit` hook. The hook respects `SKIP_HOOKS=1` and `--no-verify`.
-- This repo handles real secrets at runtime (`HELIUS_API_KEY`, `TELEGRAM_BOT_TOKEN`, `THREEWS_SOL_PARENT_SECRET_BASE58`, Privy/JWT signing keys, R2 creds). `api/_lib/http.js` already goes to lengths to keep keyed RPC URLs and device tokens out of logs — but nothing stops a key from being committed in source.
-
-## Problem / opportunity
-A committed secret or an injectable code pattern (e.g. unsanitized `child_process`, `eval`, prototype pollution, ReDoS) would ship undetected. SAST + secret scanning are table stakes for a platform moving real money. We add both to CI plus a local pre-commit secret hook so leaks are caught before they ever reach a remote.
-
-## Mission
-Add a SAST gate (GitHub CodeQL for JS/TS, plus `eslint-plugin-security` rules in the existing eslint flat config) and a secret-scanning gate (gitleaks) to CI, and add a `.githooks/pre-commit` hook that runs gitleaks on staged changes before commit.
-
-## Scope
-**In scope:** new CodeQL workflow; secret-scan job (gitleaks) in CI; `eslint-plugin-security` wired into `eslint.config.js` at warn-then-targeted-error; `gitleaks.toml` config; `.githooks/pre-commit`; updating `npm run setup` docs so the hook is active.
-**Out of scope:** rewriting flagged code en masse (fix only true positives you surface; allowlist documented false positives), rotating real secrets (separate ops task), container scanning.
-
-## Implementation guide
-1. **CodeQL workflow — `.github/workflows/codeql.yml`.** Use `github/codeql-action` (`init` → `autobuild`/manual → `analyze`) with `languages: javascript-typescript`. Trigger on `pull_request`, `push: branches: [main]`, and a weekly `schedule`. Permissions: `security-events: write`, `contents: read`, `actions: read`. Exclude vendored/generated paths via a `paths-ignore` in a `.github/codeql/codeql-config.yml` that mirrors the `ignores` list in `eslint.config.js` (`character-studio/**`, `**/vendor/**`, `**/dist/**`, `public/scene-studio/libs/**`, `**/*.min.js`, `data/_generated/**`, `src/solana/vanity/wasm/**`). Keep it a separate workflow file (CodeQL conventionally lives apart from `ci.yml`).
-2. **`eslint-plugin-security` in `eslint.config.js`.** Add the plugin to the existing flat-config array (it ships a flat preset: `pluginSecurity.configs.recommended`). Install it as a devDependency. Because the repo runs a warn-baseline, land its rules at `warn` first so the gate stays green, then promote the unambiguous, currently-clean ones to `error` (`security/detect-child-process` is high-signal given `audit-deploy-artifacts.mjs`/`check-api-not-bundled.mjs` shell out; `security/detect-non-literal-fs-filename` will be noisy — keep warn). Do not change the existing ignore globs.
-3. **Secret-scan job in `.github/workflows/ci.yml`.** Add a `secrets` job: checkout@v4 with `fetch-depth: 0` (gitleaks needs history for `--log-opts`), then `gitleaks/gitleaks-action@v2` (or pin a release and run the binary) over the full repo and the PR diff. Config in `.gitleaks.toml` at repo root: extend the default ruleset, add an `[allowlist]` for known-safe synthetic placeholders this repo uses on purpose — the `$THREE` CA (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) and clearly-synthetic test fixtures like `THREEsynthetic1111…` are public/non-secret and must not trip the scan; allowlist by path for fixture/test dirs and by regex for these tokens. Fail the job on any real finding.
-4. **`.githooks/pre-commit`.** Mirror the style of `.githooks/pre-push` (POSIX `sh`, `SKIP_HOOKS=1` + `--no-verify` bypass, clear failure message pointing at the fix). It should run `gitleaks protect --staged --config .gitleaks.toml` (scans only staged changes — fast, pre-commit-appropriate). If the `gitleaks` binary is absent locally, print a one-line install hint and exit 0 (don't block contributors who haven't installed it; CI is the hard gate). Ensure `npm run setup` / `scripts/setup-dev.mjs` still points `core.hooksPath` at `.githooks` (it already does for pre-push — confirm the new hook is picked up automatically since it's the same dir).
-5. **Triage.** Run all three locally first. For each true positive, fix it (move a key to env, sanitize a `child_process` arg). For each documented false positive, allowlist it narrowly with a `// eslint-disable-next-line security/... -- reason` or a scoped `.gitleaks.toml` allowlist entry — never blanket-disable.
-
-## Definition of done
-- [ ] `codeql.yml` runs CodeQL JS/TS on PR + push + weekly, scoped by `codeql-config.yml`.
-- [ ] `ci.yml` has a `secrets` job (gitleaks) that fails on real findings; `$THREE` CA + synthetic fixtures allowlisted.
-- [ ] `eslint-plugin-security` wired into `eslint.config.js`; gate stays green; `detect-child-process` at error and clean.
-- [ ] `.githooks/pre-commit` runs gitleaks on staged files, bypassable, degrades gracefully when binary missing.
-- [ ] Existing tests pass (`npm test`); any code fixed for true positives has/keeps tests.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages` (security work counts — tag `security`).
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `npx eslint .` → no new errors (security plugin loaded; check with a deliberate `child_process` test snippet that it flags, then remove it).
-- `gitleaks detect --config .gitleaks.toml --no-banner` → no findings; then add a fake `AKIA...` string to a scratch file and confirm it's caught, and confirm the `$THREE` CA does NOT trip it.
-- `gitleaks protect --staged` via the pre-commit hook: stage a fake secret → commit blocked; `SKIP_HOOKS=1 git commit` → bypasses.
-- Paste `codeql.yml` and the edited `ci.yml` through `actionlint` (or GitHub's editor) — valid.
-
-## Guardrails
-- No mocks, fake data, stubs, `TODO`s, or commented-out code. Real APIs; handle errors at boundaries with working fallbacks.
-- Stage explicit paths only; concurrent agents share this worktree — re-check `git status` before committing.
-- Push only when asked, to BOTH remotes: `git push threeD main` && `git push threews main`. Never pull/fetch from `threeD`.
-- Never commit secrets. Watch the `npx vercel build` trap: never commit esbuild-bundled `api/*.js` (check `head -1` for `__defProp`).
diff --git a/prompts/production-readiness/P13-csrf-protection.md b/prompts/production-readiness/P13-csrf-protection.md
deleted file mode 100644
index bf18b18ba..000000000
--- a/prompts/production-readiness/P13-csrf-protection.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# P13 · Enforce CSRF on all cookie-authenticated mutations
-
-> **Workstream:** Security & compliance · **Priority:** P0 · **Effort:** M · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map).
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, Cloudflare workers in `workers/`, tests via `vitest` + Playwright (`npm test`), CI in `.github/workflows/`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin.
-
-## Context
-- CSRF infrastructure already exists and is **partially** adopted:
- - `api/csrf-token.js` — `GET /api/csrf-token` issues a single-use token bound to the session/bearer user via `issueCsrf(userId)`.
- - `api/_lib/csrf.js` — `issueCsrf(userId)` (inserts into `csrf_tokens`, 1h TTL) and `requireCsrf(req, res, userId)` middleware. `requireCsrf` returns `true`/sends 403 + returns `false`. It exempts `Bearer ` requests, honors a `CSRF_DISABLED=1` escape hatch **only outside production** (`IS_PROD` from `VERCEL_ENV`/`NODE_ENV`), reads the token from `x-csrf-token`/`X-CSRF-Token`/`req.body._csrf`, and validates atomically via `DELETE ... RETURNING` (one-time use, user-scoped).
- - `api/_lib/auth.js` exposes `getSessionUser`, `authenticateBearer`/`extractBearer`, `isSameSiteOrigin`, plus `csrfTokenFor(req)` / `verifyCsrfToken(req, submitted)`. Cookies use the `__Host-` prefix (per `docs/security.md`).
- - `api/_lib/http.js` provides `wrap(handler)`, `cors(req, res, {methods, credentials})`, `method(req, res, [...])`, `error(res, status, code, msg)`, and sets `SameSite` cookies + `X-Frame-Options: DENY` defaults.
-- `requireCsrf` is already imported in ~85 handlers (e.g. `api/agents.js`, `api/subscriptions/*`, `api/auth/[action].js`, `api/keys/*`, `api/admin/*`, `api/x/*`, `api/marketplace/*`). **But adoption is inconsistent**: many cookie-authenticated mutating handlers do not import or call it, and there is no single enforcement point — each handler must remember to call `requireCsrf` after resolving the user, which is exactly the kind of manual wiring that rots.
-
-## Problem / opportunity
-State-changing endpoints currently lean on SameSite cookies + CORS as the primary CSRF defense, with per-handler `requireCsrf` calls bolted on inconsistently. SameSite is a good layer but not sufficient alone (older browsers, `Lax` GET edge cases, subdomain quirks). The token machinery exists and works — the gap is **uniform enforcement**: a reusable wrapper so every cookie-auth POST/PUT/PATCH/DELETE verifies a CSRF token, with bearer/x402 machine calls correctly exempt, and an audit proving no mutating cookie-auth route is missed.
-
-## Mission
-Provide a reusable enforcement wrapper that verifies a CSRF token on every cookie-authenticated state-changing request (POST/PUT/PATCH/DELETE), exempts bearer-token and x402 machine-to-machine calls, adopt it across all such handlers, and add a CI/test guard that fails if a new mutating cookie-auth handler ships without it.
-
-## Scope
-**In scope:** a reusable wrapper layered on the existing `requireCsrf`/`wrap`; consistent adoption across mutating handlers; client-side fetch helper that attaches `X-CSRF-Token`; a static guard test enumerating mutating handlers.
-**Out of scope:** rewriting `issueCsrf`/token storage (it works), changing cookie/session design, x402 payment-flow auth (bearer/payment-proof callers stay exempt by design).
-
-## Implementation guide
-1. **Reusable wrapper in `api/_lib/csrf.js`.** Add `withCsrf(handler)` (or extend `wrap`) that, for `POST`/`PUT`/`PATCH`/`DELETE`:
- - Resolves the caller once: `const session = await getSessionUser(req, res)`, `const bearer = session ? null : await authenticateBearer(extractBearer(req))`.
- - **Exempt** when the request is bearer/x402 machine auth: if `extractBearer(req)` returns a token (Authorization: Bearer) OR an x402 payment proof header is present (grep `x402`/`x-payment` handling in `api/x402-*.js` and `api/x/*` for the exact header names — match them), skip CSRF (the bearer token / payment proof is itself proof of intent and is not auto-attached by browsers). This preserves the existing `requireCsrf` Bearer exemption.
- - **Enforce** when the caller is cookie-session-authenticated: call `requireCsrf(req, res, session.id)`; if it returns `false` the wrapper returns (403 already sent).
- - Leaves `GET`/`HEAD`/`OPTIONS` untouched (CORS preflight + safe methods).
- - Keep the `CSRF_DISABLED=1`-only-outside-prod semantics already in `requireCsrf` — do not duplicate or weaken it.
- Compose cleanly with `wrap`: e.g. `export default wrap(withCsrf(async (req,res) => {...}))`, with `withCsrf` running after `cors()`/`method()` inside the handler, OR expose a `csrfGate(req,res)` helper handlers call right after they resolve the user. Pick the shape that requires the least churn given how the ~85 existing handlers already call `requireCsrf(req,res,userId)` post-auth, and keep that call signature working (don't break the 85 sites).
-2. **Adopt across mutating cookie-auth handlers.** Enumerate every `api/**/*.js` that (a) handles a mutating method and (b) authenticates via `getSessionUser` (cookie). Grep: `grep -rln "getSessionUser" api/ | xargs grep -l "POST\|PUT\|PATCH\|DELETE"`, then subtract the ones already calling `requireCsrf`. For each gap, add the gate. Read 2-3 already-correct handlers (`api/agents.js`, `api/subscriptions/index.js`, `api/keys/index.js`) and copy their exact pattern for consistency.
-3. **Client fetch helper.** Ensure the frontend attaches the token on mutations. Find the shared fetch wrapper (grep `public/` and `src/` for `csrf`, `X-CSRF-Token`, `/api/csrf-token`). If a helper exists, confirm it caches the token from `GET /api/csrf-token` and re-fetches on a 403 `csrf_invalid`/`csrf_missing` (single-use tokens expire on use — the client must refresh and retry once). If no such helper exists, add one and route mutating UI fetches through it. Design the retry so a user never sees a spurious CSRF failure on a valid action.
-4. **Static guard.** Add `tests/csrf-coverage.test.js`: statically scan `api/**/*.js`, build the set of handlers that (mutating method) ∧ (uses `getSessionUser`) ∧ (NOT bearer-only), and assert each calls the CSRF gate (`requireCsrf` or `withCsrf`/`csrfGate`). Allow a tiny documented allowlist (e.g. login/refresh endpoints that mint the first token, or webhook receivers verified by signature) with a `reason`. This is the gate that stops regressions.
-
-## Definition of done
-- [ ] `withCsrf`/`csrfGate` exists in `api/_lib/csrf.js`, exempts bearer + x402, enforces on cookie-auth mutations, preserves the prod-safe `CSRF_DISABLED` semantics.
-- [ ] Every mutating cookie-auth handler verifies CSRF; gaps closed; allowlist documented.
-- [ ] Client mutations send `X-CSRF-Token` and transparently refresh+retry once on a CSRF 403.
-- [ ] `tests/csrf-coverage.test.js` enumerates handlers and fails on an unguarded one.
-- [ ] Existing tests pass (`npm test`); the 85 existing `requireCsrf` call sites still work.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages` (security work counts — tag `security`).
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `npx vitest run tests/csrf-coverage.test.js` → green; temporarily strip a gate from one handler → test fails naming it.
-- Manual: `npm run dev`, sign in (cookie session), then `curl -X POST http://localhost:3000/api/<a-protected-route> --cookie "<session>"` WITHOUT `X-CSRF-Token` → 403 `csrf_missing`. With a token from `GET /api/csrf-token` → succeeds; replaying the same token → 403 `csrf_invalid` (single-use).
-- `curl -X POST ... -H "Authorization: Bearer <token>"` → NOT blocked by CSRF (bearer exemption intact).
-- Exercise a mutating UI action in the browser → Network tab shows `X-CSRF-Token` header, no console errors, and a transparent retry if a token expired.
-
-## Guardrails
-- No mocks, fake data, stubs, `TODO`s, or commented-out code. Real APIs; handle errors at boundaries with working fallbacks.
-- Stage explicit paths only; concurrent agents share this worktree — re-check `git status` before committing.
-- Push only when asked, to BOTH remotes: `git push threeD main` && `git push threews main`. Never pull/fetch from `threeD`.
-- Never commit secrets. Watch the `npx vercel build` trap: never commit esbuild-bundled `api/*.js` (check `head -1` for `__defProp`).
diff --git a/prompts/production-readiness/P14-csp-tightening-nonces.md b/prompts/production-readiness/P14-csp-tightening-nonces.md
deleted file mode 100644
index 8db8f8739..000000000
--- a/prompts/production-readiness/P14-csp-tightening-nonces.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# P14 · Tighten CSP to nonce/hash-based, kill unsafe-inline/unsafe-eval
-
-> **Workstream:** Security & compliance · **Priority:** P1 · **Effort:** L · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map).
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, Cloudflare workers in `workers/`, tests via `vitest` + Playwright (`npm test`), CI in `.github/workflows/`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin.
-
-## Context
-- CSP is set as response headers in `vercel.json` (the `headers` array). The main app policy (around line 207 and 221) is:
- `script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh https://ajax.googleapis.com https://s3.tradingview.com https://platform.twitter.com https://3d-agent.vercel.app https://three.ws; worker-src 'self' blob:; ... ; report-uri /api/client-errors`. Both `'unsafe-inline'` and `'unsafe-eval'` are present.
-- There are inline `<script>` tags in pages — notably the theme-boot no-flash snippet injected by `scripts/inject-theme-boot.mjs` (marker string `three.ws theme boot`, injected into `pages/*.html` during `prebuild`/`seo:meta`). Inline scripts are why `'unsafe-inline'` is currently required.
-- CSP violation reports already flow to `report-uri /api/client-errors`. `api/client-errors.js` already accepts a `csp` event type (`EVENT_TYPES` includes `'csp'`), validates/truncates the attacker-controllable payload, logs a structured `[client-error]` line, and forwards to Sentry. So the reporting pipeline for a report-only rollout exists.
-- Some routes already ship a tighter policy with no `script-src` at all (embed/iframe routes around lines 844+ use `frame-ancestors *; base-uri 'self'; object-src 'none'; report-uri /api/client-errors`).
-- `npm run test:pages` (`scripts/test-pages.mjs`) drives Chromium over every public route and fails on real console errors — a too-tight CSP that blocks a legit script will surface here.
-
-## Problem / opportunity
-`'unsafe-inline'` and `'unsafe-eval'` neutralize most of CSP's XSS protection: any injected `<script>` or `eval`'d string runs. Moving to a nonce/hash-based policy restores the protection. The blocker is inline scripts (theme-boot) and any `eval`-dependent third-party libs. We roll out safely: enumerate inline scripts and eval usage, switch to nonces/hashes, ship Report-Only first using the existing `/api/client-errors` pipeline, then enforce.
-
-## Mission
-Eliminate `'unsafe-inline'` (and, where feasible, `'unsafe-eval'`) from the main `script-src` by converting inline scripts to nonce- or hash-based, rolling out Report-Only first via `report-to`/`report-uri /api/client-errors`, then flipping to enforcing CSP once reports are clean.
-
-## Scope
-**In scope:** auditing every inline `<script>` and `eval`/`new Function` usage in shipped HTML/JS; nonce-or-hash strategy for the theme-boot and any other first-party inline scripts; a `Content-Security-Policy-Report-Only` rollout; tightening `vercel.json` script-src; verifying `/api/client-errors` ingests CSP reports.
-**Out of scope:** the relaxed embed/iframe route policies (they already omit script-src), rewriting third-party CDN libs, removing `'unsafe-eval'` if a load-bearing dependency genuinely needs it (document it instead and keep `'unsafe-eval'` scoped only where required).
-
-## Implementation guide
-1. **Audit inline scripts + eval.** `grep -rn "<script>" pages/ public/ | grep -v "src="` to list every inline script (theme-boot is the known one). `grep -rn "eval(\|new Function(" public/ src/ pages/` and check CDN libs (tradingview/twitter widgets are common `eval` users) to see whether `'unsafe-eval'` can be dropped or must stay scoped. Write the inventory into the PR description.
-2. **Pick the directive strategy.** Vercel static headers are per-route strings and can't inject a per-request nonce, so prefer **hashes** for the small, stable set of first-party inline scripts (the theme-boot snippet is deterministic — `inject-theme-boot.mjs` writes a fixed marker + body, so its SHA-256 is computable and stable). For routes served by an `api/` function that emits HTML, a per-request **nonce** is viable — but the theme-boot path is static, so hash is the right tool. Add `'sha256-<base64>'` entries to `script-src`. Have `scripts/inject-theme-boot.mjs` (or a new `scripts/compute-csp-hashes.mjs` run in `prebuild`) compute the hash of the exact inline body it injects and emit it where the CSP is assembled, so the hash never drifts from the script. Do NOT hand-maintain a hash that can silently go stale.
-3. **CSP assembly without drift.** `vercel.json` CSP strings are duplicated across routes. Rather than hand-edit each, consider generating the relevant `vercel.json` header blocks (or a shared CSP constant injected at build) so the script-src is defined once. If a generator is too invasive, at minimum centralize the allowed-origins + hash list in one place and document it. Keep the existing trusted CDN origins; only remove `'unsafe-inline'` and (if proven unused) `'unsafe-eval'`.
-4. **Report-Only rollout first.** Ship `Content-Security-Policy-Report-Only` with the *new tight* policy alongside the existing enforcing (looser) `Content-Security-Policy`. Point reports at the existing pipeline: add `report-to csp-endpoint` + a `Report-To` (or `Reporting-Endpoints`) header to `/api/client-errors`, keeping the legacy `report-uri /api/client-errors` for older browsers. Confirm `api/client-errors.js` accepts the `application/csp-report` / `application/reports+json` content types its `csp` event type implies — if it only parses `application/json`, extend `readBody`/`readJson` handling so real browser CSP reports aren't dropped at the boundary.
-5. **Observe, then enforce.** After the Report-Only policy is live and `[client-error]` CSP logs are clean for the public routes (verify via `npm run test:pages` driving Chromium + a manual sweep of high-traffic pages), flip the tight policy to the enforcing `Content-Security-Policy` and remove the now-redundant Report-Only (or keep Report-Only for the next tightening step). Never enforce a policy that hasn't first run clean in Report-Only.
-6. **Frame/object hardening pass (cheap win).** While in `vercel.json`, confirm the main policy keeps `object-src 'none'`, `base-uri 'self'`, and a sensible `frame-ancestors` — don't loosen these.
-
-## Definition of done
-- [ ] Inventory of inline scripts + eval usage documented; theme-boot converted to a build-computed hash (or nonce) — no `'unsafe-inline'` in the main `script-src`.
-- [ ] `'unsafe-eval'` removed from the main policy, OR retained only on the specific route(s) a documented dependency requires.
-- [ ] Report-Only rollout shipped first; CSP reports reach `/api/client-errors`; reports clean before enforcement flips.
-- [ ] Hash is generated from the actual injected script body (cannot drift); CSP defined in one place where practical.
-- [ ] Existing tests pass (`npm test`); `npm run test:pages` is green with the new policy (no blocked legit scripts).
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages` (security work counts — tag `security`).
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `npm run dev`, open the app, DevTools console shows **no** CSP violation errors on home/dashboard/pricing/legal routes.
-- Inject a test inline `<script>alert(1)</script>` into a page locally → blocked by enforced CSP (proves `'unsafe-inline'` is gone); remove it.
-- Trigger a real CSP violation (e.g. add a disallowed `<img src=evil>` script) and confirm a `csp` event lands as a `[client-error]` line via `/api/client-errors`.
-- `npm run test:pages` passes (Chromium over every public route, no new console errors).
-- `npm run build` / `prebuild` runs the theme-boot hash computation and the emitted hash matches the injected snippet (re-run twice → identical hash).
-
-## Guardrails
-- No mocks, fake data, stubs, `TODO`s, or commented-out code. Real APIs; handle errors at boundaries with working fallbacks.
-- Stage explicit paths only; concurrent agents share this worktree — re-check `git status` before committing.
-- Push only when asked, to BOTH remotes: `git push threeD main` && `git push threews main`. Never pull/fetch from `threeD`.
-- Never commit secrets. Watch the `npx vercel build` trap: never commit esbuild-bundled `api/*.js` (check `head -1` for `__defProp`).
diff --git a/prompts/production-readiness/P18-subscriptions-timepass-settlement.md b/prompts/production-readiness/P18-subscriptions-timepass-settlement.md
deleted file mode 100644
index d1a3e3801..000000000
--- a/prompts/production-readiness/P18-subscriptions-timepass-settlement.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# P18 · Subscriptions & Time-Pass Settlement
-
-> **Workstream:** Monetization (revenue engine) · **Priority:** P0 · **Effort:** L · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). Note the $THREE-only rule and the two coin-agnostic exceptions.
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, tests via `vitest` + Playwright (`npm test`), dev server `npm run dev`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-The skill marketplace already advertises three purchase shapes per listing but only one is fully wired:
-
-- `api/x402/skill-marketplace.js` — the Bazaar-cataloged listing endpoint. `rowToListing()` (line 103) surfaces `trial_uses`, `time_pass_hours`, and `time_pass_amount` columns from `agent_skill_prices`. **These terms are advertised but never enforced into a grant.**
-- `api/_lib/skill-access.js` — `hasSkillAccess(userId, agentId, skill)` is the single source of truth for "may this user run this skill". It already honors: a confirmed `skill_purchases` row (with `valid_until` time-pass expiry, lines 50-57), an agent-level `user_agent_subscriptions` flat sub, a `creator_subscriptions`→`subscription_plans.included_skills` tier sub, and a trial via `consumeTrialUse()`. The read path for time-passes exists; **the write/grant path that sets `valid_until` from `time_pass_hours` does not.**
-- `api/_lib/purchase-confirm.js` — confirms a skill/asset purchase, accrues the marketplace split + referral commission, and writes the `skill_purchases` row. This is where a confirmed payment becomes a grant.
-- `api/cron/[name].js` → `handleRunSubscriptions` (line 2598) charges EVM USDC recurring subs via `agent_subscriptions` + `agent_delegations` (Base/Sepolia EIP-7710 delegation rail). `handleProcessSubscriptions` (line 2951) charges `creator_subscriptions` priced in `subscription_plans.price_usd`, counting `subscription_payments` failures to flip to `past_due` after 3. Both crons exist; quota tracking on a granted pass does not.
-- `api/_lib/token/payments.js` — `verifyAndSettlePayment()` / `recordAllowancePayment()` settle into `token_payments` with UNIQUE(nonce) + UNIQUE(tx_signature) idempotency. `creatorEarnings()` reads the `seller` split leg back out. The marketplace split policy is `marketplace_sale` (90% seller / 5% treasury / 5% rewards) in `api/_lib/token/config.js`.
-- `vercel.json` schedules `run-distribute-payments` (`30 * * * *`), `expire-pending-purchases` (`*/5 * * * *`), etc. **There is no cron entry for `run-subscriptions` or `process-subscriptions`** — the handlers are reachable by dispatch but unscheduled.
-
-## Problem / opportunity
-A creator can set a 24h `time_pass_hours` + `time_pass_amount` on a listing, the marketplace advertises it, an agent pays it — and nothing grants a time-boxed window or tracks remaining quota. Time-pass terms are decorative. Recurring subscription handlers exist but aren't on a schedule, so renewals never fire in production. The hold-or-pay economy is half-built: the read side checks expiry the write side never sets.
-
-## Mission
-Make time-passes and recurring subscriptions real end to end: a paid time-pass becomes a `valid_until`-bounded grant with optional per-pass call quota; recurring subs charge, renew, and expire on a schedule; every grant and charge is idempotent and settles through the existing `token_payments` ledger.
-
-## Scope
-**In scope:** time-pass purchase→grant→quota; quota decrement at the skill-execution boundary; recurring `creator_subscriptions` + `agent_subscriptions` renewal/expiry on a cron schedule; idempotent settlement; changelog entry.
-**Out of scope:** new pricing UI redesign (a minimal "buy time-pass" affordance on the existing listing card is fine), new chains, EVM delegation rail changes beyond what `handleRunSubscriptions` already does.
-
-## Implementation guide
-1. **Schema (`api/_lib/migrations/<date>_timepass-quota.sql`).** Add to `skill_purchases` (if absent): `pass_kind` enum/text (`one_time` | `time_pass`), `calls_total int null`, `calls_used int not null default 0`. Add a partial UNIQUE index keyed on the settling payment reference (e.g. `token_payments` nonce or `skill_purchases.payment_ref`) so a replayed settlement can't mint two grants. Reuse the existing `valid_until`.
-2. **Grant on confirm (`api/_lib/purchase-confirm.js`).** When the confirmed listing row has `time_pass_hours > 0`, set `status='confirmed'`, `pass_kind='time_pass'`, `valid_until = now() + (time_pass_hours || ' hours')::interval`, and `calls_total` from a new optional `time_pass_calls` column (null = unlimited within the window). Keep the existing marketplace split + referral accrual. Make the grant write idempotent on the payment reference — re-running confirm for the same settled payment must not extend the window or reset quota.
-3. **Quota enforcement (`api/_lib/skill-access.js`).** In `hasSkillAccess`, when a confirmed `time_pass` grant is matched, also return `calls_remaining` (null = unlimited). Add `consumeTimePassUse(userId, agentId, skill)` mirroring `consumeTrialUse`: atomic `UPDATE … SET calls_used = calls_used + 1 WHERE status='confirmed' AND pass_kind='time_pass' AND valid_until > now() AND (calls_total IS NULL OR calls_used < calls_total) RETURNING calls_total - calls_used`. The skill-execution endpoints that already call `consumeTrialUse` on success must call this on a time-pass hit. Expiry is honored by the existing `valid_until` check; quota-exhausted returns `owned:false, reason:'pass_exhausted'`.
-4. **Settlement path.** A time-pass is a `marketplace_sale` priced at `time_pass_amount` atomics. Route it through the same quote→`verifyAndSettlePayment` path used for a one-time skill purchase (the existing `api/payments/purchase-skill.js` / `api/_lib/x402.js` flow), with `refType='time_pass'`, `refId=<purchase id>` so `creatorEarnings()` attributes it. Never invent a second settlement path.
-5. **Recurring renewal/expiry.** Confirm `handleProcessSubscriptions` advances `current_period_end` by the plan period on a successful charge and flips to `expired`/`past_due` correctly; add an explicit expiry sweep (`UPDATE creator_subscriptions SET status='expired' WHERE status IN ('active','past_due') AND current_period_end < now() - grace`). Add both jobs to `vercel.json` crons: `process-subscriptions` hourly (`5 * * * *`), `run-subscriptions` hourly (`15 * * * *`). Keep the `requireCron` constant-time secret check — never weaken it.
-6. **Frontend.** On the listing/skill card (dashboard skill view), when `time_pass_hours` is set show a "Buy <N>h pass — <amount> $THREE" action and, post-purchase, a live "expires in / N calls left" badge read from `hasSkillAccess`. Design loading, empty (no pass), active, and expired states.
-
-## Definition of done
-- [ ] Time-pass purchase grants a `valid_until` window + optional call quota; expiry and quota-exhaustion both deny with distinct reasons.
-- [ ] `process-subscriptions` + `run-subscriptions` are scheduled in `vercel.json` and renew/expire correctly.
-- [ ] Money paths covered by tests (verify, settle, split, idempotency); `npm test` passes.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages`.
-- [ ] `git diff` self-reviewed; revenue math validated.
-
-## Verification
-- `vitest run` a new `tests/skill-access-timepass.test.js`: grant a pass, assert `calls_remaining` counts down, assert deny after `valid_until` and after quota exhaustion, assert double-confirm of one settled payment yields one grant.
-- `curl` the marketplace listing → confirm `time_pass_hours`/`time_pass_amount` surface; drive a real `purchase-skill` → confirm flow on devnet and assert one `token_payments` row + one `skill_purchases` grant.
-- Invoke `/api/cron/process-subscriptions` with the cron bearer; assert a due sub advances its period and a 3-fail sub flips `past_due`.
-
-## Guardrails
-- No mocks/fake data. Real on-chain verification + settlement. Idempotent (no double-charge / double-payout).
-- $THREE only in copy; never hardcode a non-$THREE mint.
-- Stage explicit paths; re-check `git status` before commit. Push only when asked, to BOTH remotes (`threeD`, `threews`).
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`.
diff --git a/prompts/production-readiness/P19-agent-revenue-payouts-ledger.md b/prompts/production-readiness/P19-agent-revenue-payouts-ledger.md
deleted file mode 100644
index 10d281b59..000000000
--- a/prompts/production-readiness/P19-agent-revenue-payouts-ledger.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# P19 · Agent Revenue Ledger & Automated Payouts
-
-> **Workstream:** Monetization (revenue engine) · **Priority:** P0 · **Effort:** L · **Depends on:** P18
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). Note the $THREE-only rule and the two coin-agnostic exceptions.
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, tests via `vitest` + Playwright (`npm test`), dev server `npm run dev`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-A marketplace sale already routes 90% to the seller, but earnings live in two disconnected places and the per-agent rollup + automated payout are missing:
-
-- `api/_lib/token/config.js` — `SPLIT_POLICIES.marketplace_sale` = `seller 9000 / treasury 500 / rewards 500` bps. `applySplit()` distributes atomics with the remainder to the highest-bps leg (no dust). $THREE sales settle this way.
-- `api/_lib/token/payments.js` — `settlePayment()` writes `token_payments` with a `splits` jsonb array (`{role,bps,address,atomics}`), `ref_type`, `ref_id`, UNIQUE(nonce)+UNIQUE(tx_signature). `creatorEarnings({ sellerWallet })` already sums the `seller` leg across all sales via `splits @> [{role:'seller',address}]` jsonb containment — this is the $THREE-settled earnings read. It's a per-WALLET read with no per-AGENT attribution.
-- `api/_lib/agent-wallet.js` — `triggerSkillPayment()` is the EVM rail: it charges an agent for a paid skill, paying `marketplace_skills.price_per_call_usd` to the author's `user_wallets` primary EVM address via `delegatedSpend()`, recording in `agent_payments` (status pending→confirmed/failed). A separate, USD/wei-denominated revenue stream from the $THREE rail.
-- `api/agents/[id].js` dispatches `sub === 'wallet' && action === 'withdraw'` to the wallet handler; `api/agents/solana-wallet.js` owns the custodial Solana wallet (provision, balance, spend-limit-guarded withdraw via `agent-trade-guards.js`). `getOrCreateAgentSolanaWallet` / `ensureAgentWallet` provision custodial keys.
-- Existing payout plumbing to reuse, not reinvent: `api/cron/[name].js` → `handleProcessWithdrawals` (line 3191, also aliased `monetization-payouts`) already pulls `agent_withdrawals` rows (status `pending`→`processing`→`completed`), pages ops on rows stranded in `processing` >15m (no blind retry — double-pay risk), and sends via `transferSolanaUSDC` / `sendEvmUsdc`. `api/_lib/monetization.js`, `api/billing/withdrawals/`, `api/monetization/withdrawals.js`, and migration `20260621120000_revenue-integrity.sql` define the withdrawal model.
-
-## Problem / opportunity
-A seller's $THREE earnings are computable only per-wallet (`creatorEarnings`), but the product surface is the agent. There's no per-agent earnings rollup, no "this agent earned X this week" view, and no automated payout that sweeps an agent's accrued seller-leg balance to its owner. The EVM `agent_payments` stream and the $THREE `token_payments` stream never reconcile into one earnings number. Creators can't see or collect what their agents made without manual SQL.
-
-## Mission
-Ship a per-agent earnings ledger (a materialized rollup keyed by agent, sourced from the existing settle ledgers), a payout that sweeps accrued earnings to the owner through the existing `agent_withdrawals` rail, and an agent-earnings dashboard view — all idempotent, no second source of truth for the underlying sales.
-
-## Scope
-**In scope:** per-agent earnings rollup reads, an agent-earnings API + dashboard panel, a payout that creates `agent_withdrawals` rows from accrued unpaid earnings and lets the existing `handleProcessWithdrawals` cron settle them, idempotency so a sale is paid out once.
-**Out of scope:** changing split ratios, new withdrawal transport (reuse `transferSolanaUSDC`/`sendEvmUsdc`), the buyback/distribute loop (`run-distribute-payments` is separate).
-
-## Implementation guide
-1. **Attribution key.** Every settle write must carry the agent. Audit the marketplace settle call sites (`api/payments/purchase-confirm.js`, `api/_lib/x402.js`, the P18 time-pass path) and ensure `ref_type` distinguishes the sale kind and `ref_id` resolves to an agent. Add `agent_id` to the quote/settle metadata so `token_payments` can be grouped by agent without re-parsing `splits`. Backfill via the existing `ref_id`→agent mapping where derivable.
-2. **Ledger read (`api/_lib/token/payments.js`).** Add `agentEarnings({ agentId, sellerWallet, limit, before })` next to `creatorEarnings`: sum the `seller` leg for sales attributed to this agent (join on the new `agent_id` or via `ref_id`). Return `{ total_atomics, paid_atomics, unpaid_atomics, sale_count, mint, decimals, items[] }`. `paid_atomics` is the sum already covered by `agent_withdrawals` so `unpaid_atomics` is the sweepable balance.
-3. **Reconcile EVM stream.** Have `agentEarnings` also surface the `agent_payments` (EVM) confirmed inflows for the agent so the dashboard shows both rails, clearly labelled by currency ($THREE vs USDC). Do not merge the numbers — show both, never invent a converted total.
-4. **Payout creation (`api/_lib/monetization.js` or new `api/agents/[id]/payout.js`).** Owner-authorized (session/bearer + agent-ownership check, mirror `skill-prices.js`). Computes `unpaid_atomics`, applies the agent's spend limits (`agent-trade-guards.js`), inserts an `agent_withdrawals` row (status `pending`, destination = owner's payout wallet from `billing/payout-wallets`). Idempotency: a `UNIQUE` claim keyed on the agent + a settlement watermark (e.g. last paid `token_payments.created_at`) so two concurrent payout calls create one withdrawal. The existing `handleProcessWithdrawals` cron settles it — do not send funds inline.
-5. **Payout cron.** Add an optional auto-sweep: extend `handleProcessWithdrawals` (or a thin sibling) to also enqueue payouts for agents whose `unpaid_atomics` crosses a per-agent threshold. Reuse the stranded-row ops alert and the no-blind-retry rule already in that handler. Schedule it in `vercel.json` if not already covered by `monetization-payouts`.
-6. **Dashboard (`src/dashboard-next/pages/monetize.js`).** It already fetches `/api/billing/revenue`, `/api/billing/withdrawals`, `/api/billing/payout-wallets`, `/api/billing/summary`. Add a per-agent earnings card: lifetime + window earned, unpaid balance, a "Withdraw to owner wallet" action calling the payout endpoint, and a recent-sales table from `agentEarnings.items`. Design loading (skeleton), empty (no sales → "list a skill to start earning"), populated, and in-flight-withdrawal states.
-
-## Definition of done
-- [ ] `agentEarnings` returns correct total / paid / unpaid sourced from the existing ledgers (no new sales table).
-- [ ] Payout creates exactly one `agent_withdrawals` row per sweepable balance; the existing cron settles it; a sale is paid out at most once.
-- [ ] Money paths covered by tests (verify, settle, split, idempotency); `npm test` passes.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages`.
-- [ ] `git diff` self-reviewed; revenue math validated (sum of seller legs == total earned; unpaid == total − paid).
-
-## Verification
-- `vitest run tests/agent-earnings.test.js`: seed `token_payments` with seller legs for an agent, assert totals; create a payout twice concurrently, assert one `agent_withdrawals` row; mark it completed, assert `unpaid_atomics` drops to 0.
-- `npm run dev`, open `/dashboard/monetize` for an agent with sales: network tab shows real `agentEarnings` data; trigger withdraw, confirm a `pending` row appears.
-- Invoke `/api/cron/process-withdrawals` (cron bearer) on devnet; confirm it claims the row, settles, and writes `completed` with a tx signature.
-
-## Guardrails
-- No mocks/fake data. Real on-chain verification + settlement. Idempotent (no double-charge / double-payout).
-- $THREE only in copy; never hardcode a non-$THREE mint.
-- Stage explicit paths; re-check `git status` before commit. Push only when asked, to BOTH remotes (`threeD`, `threews`).
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`.
diff --git a/prompts/production-readiness/P20-enforce-tier-perks.md b/prompts/production-readiness/P20-enforce-tier-perks.md
deleted file mode 100644
index 35efe7ba2..000000000
--- a/prompts/production-readiness/P20-enforce-tier-perks.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# P20 · Enforce $THREE Tier Perks at the Request Boundary
-
-> **Workstream:** Monetization (revenue engine) · **Priority:** P1 · **Effort:** M · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). Note the $THREE-only rule and the two coin-agnostic exceptions.
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, tests via `vitest` + Playwright (`npm test`), dev server `npm run dev`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-The hold-to-access lever is fully specified and partly enforced:
-
-- `api/_lib/three-tier.js` — `TIERS` ladder (Member/Bronze/Silver/Gold/Genesis) by USD value of $THREE held. Each tier carries `discountBps` (fee discount, already consumed by `priceForAction`) AND `rateMultiplier` (1/2/3/5/10 — scales free quotas). `signTierPass`/`verifyTierPass` mint a pure-HMAC tier pass (no RPC) so a game/MCP server can gate without a price feed. `resolveUserTier(user)` reads on-chain holdings.
-- `api/_lib/three-access.js` — `GATED_FEATURES` registry. Today `enforced:true` only on `forge.high` (gated in `api/forge.js`) and `forge.gameready` (gated in `api/forge-gameready.js`). **`enforced:false` on:** `worlds.private` (minLevel 2), `worlds.branded` (minLevel 3), `mcp.priority` (minLevel 2), `drops.early` (minLevel 3), `names.first_dibs` (minLevel 4). The registry's `enforced` flag is what `/three` uses to label a perk "Live" vs "Planned" — flipping it to `true` is a PROMISE the gate is actually wired.
-- `api/_lib/require-three.js` — `requireFeatureAccess(req, res, featureId, { allowPayPerUse, body })` is the keystone gate: pass-first (HMAC), then session on-chain tier, then anonymous Member. On block it writes a structured `402 three_hold_required` with `held`/`required`/`usd_to_go`/`acquire`/`pay_per_use`. Returns `{ ok, access, level, wallet }`. This is the ONLY helper to call at a gated boundary — `forge.high` already uses it.
-- `rateMultiplier` is currently read in exactly two places: `api/forge.js:100` (`tier?.rateMultiplier || 1` for the free-lane quota) and surfaced read-only in `api/three/[action].js:87`. **MCP/forge queueing never consumes it.**
-- MCP lanes: `api/mcp-3d.js` (text→3D, image→3D, auto-rig, etc.), `api/mcp-agent.js`, `api/mcp-bazaar.js`, `api/mcp.js`. `mcp-3d.js` already does tier-aware pricing (`_mcp3d/pricing.js`) and per-IP/per-user rate limits (`limits.mcpIp`, `limits.mcpUser`). Worlds: the Colyseus multiplayer server verifies a tier pass (`verifyTierPass`) — see `three-tier.js` "signed tier pass" note.
-
-## Problem / opportunity
-Five declared perks are advertised on `/three` and in the tier ladder but `enforced:false` — a Silver holder is promised "Private worlds" and "Priority MCP routing" that no code checks. The `rateMultiplier`, the headline holder benefit ("2×/3×/5×/10× free quota"), is consumed for the free Forge lane only; MCP free quotas and any queue priority ignore it. The platform promises tier value it doesn't deliver — a credibility and revenue gap (holders have no reason to hold for unenforced perks).
-
-## Mission
-Wire each `enforced:false` perk to a real check at its request boundary using `requireFeatureAccess`, flip its `enforced` flag to `true` only once the gate ships (with a test), and make `rateMultiplier` actually scale MCP/forge free-tier quotas and queue priority.
-
-## Scope
-**In scope:** enforce `worlds.private`, `worlds.branded`, `mcp.priority`, `drops.early`, `names.first_dibs` at their boundaries; consume `rateMultiplier` in MCP + forge free-quota limiting and `mcp.priority` queue ordering; flip `enforced` flags + add per-perk tests.
-**Out of scope:** changing tier thresholds or `rateMultiplier` values, the discount path (already wired), inventing new perks.
-
-## Implementation guide
-1. **`worlds.private` / `worlds.branded`.** At world-create / world-join (the multiplayer/world endpoints that mint or admit to a private/branded room), call `requireFeatureAccess(req, res, 'worlds.private', { body })` (or `worlds.branded`) before provisioning. Since the Colyseus server already verifies a tier pass, the create path should issue a `signTierPass` the room server re-checks with `verifyTierPass` — gate on the pass level so the room never needs an RPC. `payPerUse: null` for these, so the 402 is hold-only (no pay-per-use leg).
-2. **`mcp.priority` + `rateMultiplier` in MCP (`api/mcp-3d.js`).** Resolve the caller's tier once per request (pass-first via header `x-three-tier-pass`, else session `resolveUserTier`). Scale the free/OAuth-funded quota by `rateMultiplier` (a Silver holder gets 3× the base `limits.mcpUser` budget). For `mcp.priority`, when the compute lane is queued, holders at minLevel 2+ jump the shared queue (priority dequeue) — wire it into the actual queue ordering, not a comment. Non-holders keep the base lane. Do not change x402 per-tool pricing (that's the pay path).
-3. **`rateMultiplier` parity in forge.** `api/forge.js:100` already applies it to the free lane; ensure the same multiplier is applied consistently anywhere a free-tier daily/window quota is enforced (audit `limits.*` call sites tied to generation). One helper — e.g. `quotaFor(baseLimit, tier)` in `three-tier.js` — so the multiplier math lives in one place.
-4. **`drops.early`.** At the drop/collectible mint endpoint, gate the early-access WINDOW: before the public open time, `requireFeatureAccess(req, res, 'drops.early')` must pass (minLevel 3); after public open, everyone in. The gate is time-conditional, not a hard block forever.
-5. **`names.first_dibs`.** At the rare-name claim/auction-bid endpoint (`api/threews/auction.js` / `api/x402/pay-by-name.js` area), during the first-dibs window require minLevel 4. This perk has `payPerUse: 'name.auction'`, so allow the pay path after the window per `allowPayPerUse`.
-6. **Flip `enforced` + tests.** For EACH perk, only after its gate is wired: set `enforced:true` in `GATED_FEATURES` and add a focused test (mirror `tests/api/forge-gameready.test.js` and `forge-high-gate.test.js`): a sub-tier caller gets `402 three_hold_required` with the right `required` tier; a holder (valid tier pass) passes. A perk whose gate isn't shipped stays `enforced:false` — never flip a flag without the boundary check.
-
-## Definition of done
-- [ ] Every flipped `enforced:true` perk has a live boundary check via `requireFeatureAccess` and a passing test for both block and allow.
-- [ ] `rateMultiplier` scales MCP + forge free quotas; `mcp.priority` reorders the queue for 2+ holders.
-- [ ] Money paths covered by tests (verify, settle, split, idempotency); `npm test` passes.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages`.
-- [ ] `git diff` self-reviewed; `/three` "Live vs Planned" labels now match reality.
-
-## Verification
-- `vitest run` the new per-perk gate tests; assert 402 shape (`held`, `required`, `usd_to_go`, `acquire`) for a Member and pass for a holder pass.
-- `npm run dev`: as a non-holder, attempt to create a private world → 402; present a Silver tier pass header → success.
-- MCP: fire a batch as a holder vs non-holder and confirm the holder's effective free quota is `rateMultiplier`× and priority dequeue ordering holds under contention.
-- Load `/three`: every perk row labeled "Live" is genuinely enforced; none claims an unwired gate.
-
-## Guardrails
-- No mocks/fake data. Real on-chain verification + settlement. Idempotent (no double-charge / double-payout).
-- $THREE only in copy; never hardcode a non-$THREE mint.
-- Stage explicit paths; re-check `git status` before commit. Push only when asked, to BOTH remotes (`threeD`, `threews`).
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`.
diff --git a/prompts/production-readiness/P21-revenue-analytics-dashboards.md b/prompts/production-readiness/P21-revenue-analytics-dashboards.md
deleted file mode 100644
index 9a3b04d35..000000000
--- a/prompts/production-readiness/P21-revenue-analytics-dashboards.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# P21 · Revenue Attribution & Creator/Agent Analytics
-
-> **Workstream:** Monetization (revenue engine) · **Priority:** P1 · **Effort:** M · **Depends on:** P19
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). Note the $THREE-only rule and the two coin-agnostic exceptions.
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, tests via `vitest` + Playwright (`npm test`), dev server `npm run dev`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-Analytics today is admin totals over the x402 audit log — no creator/agent/endpoint attribution surfaced to the people who earn:
-
-- `api/x402/admin/analytics.js` — admin-only (`requireAdmin`), `?period=1d|7d|30d|90d|all`. Calls `getPaymentStats({ since })` from `api/_lib/x402/audit-log.js`, which aggregates `x402_audit_log` rows where `event_type='payment_settled'`: total payments, total volume (USDC atomics → 6dp), unique payers, `by_route`, `by_network`, `by_day`, plus SIWX grant/access and bypass-by-reason. This is platform-wide x402 traffic, not per-creator revenue, and it reads the audit log, not the settle ledger.
-- `api/_lib/token/payments.js` — the $THREE settle ledger. `token_payments` rows carry `purpose`, `splits` (jsonb legs), `ref_type`, `ref_id`, `user_id`, `payer_wallet`, `usd`, `price_usd`, `total_atomics`. `economyStats({ sinceDays })` already unrolls `splits` to `by_role` (treasury/rewards/seller) and `by_purpose`. `creatorEarnings({ sellerWallet })` sums the seller leg per wallet. `listPayments({ purpose, refType, refId, userId })` is keyset-paginated and filters by `ref_type`/`ref_id` — the attribution hooks already exist on the row.
-- P19 adds per-agent attribution (`agent_id` on settle metadata + `agentEarnings`). This task builds the dashboards on top.
-- `src/dashboard-next/pages/` — `analytics.js` (fetches `/api/billing/revenue`, `/api/widgets`, `/api/billing/summary`, `/api/monetization/revenue?period=`), `monetize.js`, `transactions.js`, `holders.js`, `three-token.js`. Existing revenue endpoints: `api/billing/revenue.js`, `api/billing/summary.js`, `api/monetization/revenue.js`, `api/admin/revenue.js`.
-
-## Problem / opportunity
-A creator can't answer "which of my endpoints/skills/agents made the most $THREE this week, and from whom?" Admin sees grand totals; creators see a flat earnings number (P19) with no breakdown by ref_type, endpoint, or counterpart. The attribution columns (`ref_type`, `ref_id`, `purpose`, per-leg `splits`) are written but never sliced into a creator-facing report. Evidence: `getPaymentStats` groups only by route/network/day for an admin; `economyStats` groups by role/purpose platform-wide; neither filters to a creator's own sales nor breaks revenue down by endpoint × counterpart. Without attribution, creators can't optimize what they sell.
-
-## Mission
-Build attribution queries over the existing `token_payments` settle ledger (and reconcile the x402 audit log for endpoint hit/conversion stats), and ship creator + agent revenue dashboards that break revenue down by endpoint/skill, by agent, by day, and by paying counterpart — scoped to the requesting creator, not admin-only.
-
-## Scope
-**In scope:** creator-scoped attribution reads (`api/_lib/token/payments.js`), a creator analytics endpoint, an agent revenue breakdown, dashboard panels in `analytics.js`/`monetize.js`. Reuse `economyStats`/`creatorEarnings`/`agentEarnings` shapes.
-**Out of scope:** changing the admin analytics endpoint's contract (extend, don't break), new charting libs (use the existing dashboard render helpers), the buyback/distribute reporting.
-
-## Implementation guide
-1. **Attribution reads (`api/_lib/token/payments.js`).** Add `creatorRevenueBreakdown({ sellerWallet, agentIds, sinceDays, groupBy })` where `groupBy ∈ {ref_type, ref_id, purpose, day, payer_wallet}`. Filter rows to the creator's sales: `splits @> [{role:'seller',address:sellerWallet}]` (jsonb-containment, index-friendly — same pattern `creatorEarnings` uses) OR the P19 `agent_id IN (...)`. Sum the seller-leg atomics per group. Return `{ since, total_atomics, by_endpoint[], by_agent[], by_day[], top_payers[] }`. Keep it pure SQL aggregation — never load all rows into JS to group.
-2. **Endpoint hit + conversion (reconcile audit log).** For paid endpoints, join the settle ledger (revenue) with `getPaymentStats`-style `x402_audit_log` counts (`payment_settled` vs `payment_failed` per `route`) so a creator sees attempts, failures, and conversion per endpoint — revenue alone hides churned buyers. Add a `byRouteWithRevenue` read that pairs route hit-count with settled volume; restrict to the creator's owned routes/agents.
-3. **Creator analytics endpoint (`api/three/[action].js` add `revenue-breakdown`, or `api/billing/revenue.js` extend).** Auth = session/bearer (mirror `api/three/[action].js` `handleEarnings` at line 288 and `skill-prices.js` ownership checks). Resolve the caller's seller wallet(s) + owned agent ids, call `creatorRevenueBreakdown`, return the breakdown. Window via `?sinceDays`. Never return another creator's rows.
-4. **Agent revenue endpoint.** Per-agent slice for the agent owner: revenue by skill/endpoint for one agent over a window, built on P19's `agentEarnings` + the new breakdown. Powers the agent profile's earnings tab.
-5. **Dashboards.** In `src/dashboard-next/pages/analytics.js`, add a "Revenue by endpoint / by agent / over time" section fed by the new endpoint — bar list per endpoint (volume + conversion), a sparkline per day, a top-payers list. In `monetize.js`, add the per-agent breakdown beside P19's earnings card. Design loading (skeleton rows), empty ("no sales yet — list a skill"), populated, and error (actionable retry) states. Numbers in $THREE with the USD equivalent from `price_usd` on the row — never a hardcoded price.
-6. **Admin parity (optional, additive).** Extend `getPaymentStats` with an optional `groupBy: 'ref_type'|'purpose'` so the admin endpoint can also show settle-ledger attribution, without breaking its current response shape.
-
-## Definition of done
-- [ ] Creator/agent breakdowns are scoped to the requester and sourced from `token_payments` (+ audit-log conversion), no new revenue table.
-- [ ] Endpoint view shows volume AND conversion (settled vs failed) per owned route.
-- [ ] Money paths covered by tests (verify, settle, split, idempotency); `npm test` passes — including that breakdown sums equal the flat `creatorEarnings` total.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages`.
-- [ ] `git diff` self-reviewed; revenue math validated (Σ by_endpoint == Σ by_agent == total).
-
-## Verification
-- `vitest run tests/revenue-breakdown.test.js`: seed `token_payments` with seller legs across two endpoints/agents/days, assert each `groupBy` partitions correctly and totals reconcile with `creatorEarnings`; assert a foreign seller's rows never leak.
-- `npm run dev`, `/dashboard/analytics` as a creator with sales: network tab shows the real breakdown endpoint; bars/sparkline render; switching `?sinceDays` re-queries.
-- Confirm a non-owner gets 403 (or empty) for another creator's agent revenue.
-
-## Guardrails
-- No mocks/fake data. Real on-chain verification + settlement. Idempotent (no double-charge / double-payout).
-- $THREE only in copy; never hardcode a non-$THREE mint.
-- Stage explicit paths; re-check `git status` before commit. Push only when asked, to BOTH remotes (`threeD`, `threews`).
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`.
diff --git a/prompts/production-readiness/P22-evm-x402-lane-scale.md b/prompts/production-readiness/P22-evm-x402-lane-scale.md
deleted file mode 100644
index c426c26e3..000000000
--- a/prompts/production-readiness/P22-evm-x402-lane-scale.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# P22 · Harden the EVM x402 Lanes for Scale
-
-> **Workstream:** Monetization (revenue engine) · **Priority:** P0 · **Effort:** L · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). Note the $THREE-only rule and the two coin-agnostic exceptions.
-2. three.ws monorepo: vanilla JS + Vite frontend, Vercel functions in `api/`, tests via `vitest` + Playwright (`npm test`), dev server `npm run dev`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-The EVM x402 rail spans three networks and three signature methods, but only the Base EIP-3009 path is exercised:
-
-- `api/_lib/x402-spec.js` — the verify/settle core. CAIP-2 networks: `NETWORK_BASE_MAINNET` (`eip155:8453`), `NETWORK_BASE_SEPOLIA` (`eip155:84532`), `NETWORK_ARBITRUM_MAINNET` (`eip155:42161`), gathered in `CDP_EVM_NETWORKS`. `paymentRequirements()` emits an EIP-3009 accept first, then `permit2VariantOf()` appends a Permit2 sibling — but ONLY when CDP creds are present (`env.CDP_API_KEY_ID`/`CDP_API_KEY_SECRET`); without them no Permit2 sibling is advertised (we can't settle it). `verifyPayment()` does defense-in-depth: decodes the signed amount (`decodeSignedAmount`) and recipient (`decodeSignedRecipient`) from both EIP-3009 (`authorization.value`/`.to`) and Permit2 (`permitted.amount`/witness) payloads, rejecting under-payment / wrong payTo BEFORE calling the facilitator, then cross-checks the facilitator's echoed `network`/`asset`. `settlePayment()` sends `/settle` with an `idempotencyKey` from `buildIdempotencyKey()` and cross-checks echoed `network`/`payer`. `facilitatorFor(network)` returns `{direct:true}` for BSC (`x402-bsc-direct.js`), `{url, cdp:true}` for CDP networks (requires creds), else throws.
-- `public/x402.js` + `public/x402-pay-core.js` — the drop-in buyer modal. `EVM_NETWORKS` lists Base, Base Sepolia, Arbitrum (42161), Optimism (10). The modal signs EIP-3009 `transferWithAuthorization` typed data locally (`buildEip3009TypedData`, `isEip3009Accept`) — it deliberately picks the EIP-3009 entry over the Permit2 sibling, since signing against Permit2 builds a payload the facilitator rejects. EIP-2612 sponsorship + Permit2 are SDK-client paths (the facilitator's `x402ExactPermit2Proxy` submits the approval atomically so the payer never broadcasts an approve tx).
-- `api/x402-checkout.js` — Solana-only tx builder (`prepare`/`encode`); EVM clients sign typed data locally and don't use it. `tests/x402-checkout-prepare.test.js` covers the Solana prepare path.
-- Existing tests: `tests/evm-payment-verify.test.js` (verify path), `x402-giving.test.js`, `x402-vanity-sealed-envelope.test.js`.
-
-## Problem / opportunity
-Base EIP-3009 is proven; the rest is wired but untested at scale: the Permit2/EIP-2612 sponsorship path only emits when CDP creds exist and has no test asserting a sponsored settlement; Arbitrum is in `CDP_EVM_NETWORKS` and the modal's `EVM_NETWORKS` but there's no Arbitrum verify/settle test or receipt check; under load there's no validation that idempotency holds across concurrent settles or that the facilitator echo cross-checks catch a wrong-network reply. A silent failure on these lanes means lost revenue or, worse, an under-paid settlement slipping through.
-
-## Mission
-Validate and harden every EVM lane end-to-end — EIP-3009 + Permit2/EIP-2612 sponsorship, on Base and Arbitrum — proving sponsorship works, gas is sponsor-paid, settlement is idempotent under concurrency, receipts encode correctly, and the supported-network matrix is documented and accurate.
-
-## Scope
-**In scope:** test + harden `verifyPayment`/`settlePayment` for EIP-3009 and Permit2/EIP-2612 across Base + Arbitrum; concurrency/idempotency tests; receipt-header encoding tests; a supported-networks doc; fixing any gap found (e.g. a network advertised in the modal but unsettleable).
-**Out of scope:** Solana lane changes, BSC direct scheme internals (already separate), adding brand-new chains beyond what `CDP_EVM_NETWORKS` already declares.
-
-## Implementation guide
-1. **Network matrix audit.** Cross-check `EVM_NETWORKS` in `public/x402.js`/`x402-pay-core.js` against `CDP_EVM_NETWORKS` + `facilitatorFor` in `api/_lib/x402-spec.js`. Optimism (`eip155:10`) is in the modal list but NOT in `CDP_EVM_NETWORKS` — confirm whether `facilitatorFor('eip155:10')` can settle; if it throws, either add it to the settle set or remove it from the modal so the UI never advertises an unsettleable lane (a dead path = a failed checkout). Resolve the mismatch, don't paper over it.
-2. **Permit2/EIP-2612 sponsorship test.** Add `tests/x402-permit2-sponsorship.test.js`: assert `paymentRequirements()` appends a `permit2VariantOf` sibling WHEN CDP creds are set and omits it when absent (the existing gate). For a Permit2 payload, assert `decodeSignedAmount`/`decodeSignedRecipient` read `permitted.amount` + witness recipient correctly and that under-payment / wrong-payTo are rejected pre-facilitator. Mock the facilitator HTTP boundary only (network I/O) — never mock the signature decode/verify logic.
-3. **Arbitrum end-to-end.** Add Arbitrum (`eip155:42161`) cases to `tests/evm-payment-verify.test.js`: a valid EIP-3009 authorization verifies; a wrong-`asset` or wrong-`network` facilitator echo trips `facilitator_bad_response` (502); a payment for chain A presented as chain B is rejected. Confirm the USDC EIP-3009 domain (`buildEip3009TypedData`) uses Arbitrum's correct contract/version.
-4. **Idempotency under concurrency.** Test that two concurrent `settlePayment` calls for the same `paymentPayload` produce the same `buildIdempotencyKey` and the facilitator is sent the idempotency header so a retry/double-submit settles once. On the app side, the settled payment must still land exactly once in `token_payments` (UNIQUE(nonce)/UNIQUE(tx_signature) per `api/_lib/token/payments.js`) — assert a replay resolves to `already_settled`, never a double-credit.
-5. **Receipt encoding.** Test `encodePaymentResponseHeader(settleResult, extensions)` produces a well-formed `X-PAYMENT-RESPONSE` with `transaction`/`network`/`payer` and the Offer-&-Receipt extension envelope when configured. Assert the explorer URL resolves per network (`explorerUrl` in `public/x402.js`: basescan / arbiscan).
-6. **Gas/sponsorship behavior.** Document and assert that on the Permit2/EIP-2612 path the facilitator (`x402ExactPermit2Proxy`) pays gas and the buyer never broadcasts an approve tx — surface a clear modal message for wallets lacking sponsorship support (the modal already falls back to EIP-3009). No fake gas estimates.
-7. **Docs.** Write/update a supported-networks section (e.g. `specs/` or `docs/`): the matrix of network × method × settle-path (EIP-3009 everywhere; Permit2/2612 sponsorship where CDP creds + proxy exist), required env (`CDP_API_KEY_ID`, `CDP_API_KEY_SECRET`, `X402_CDP_FACILITATOR_URL`), and the precise reason a sibling is or isn't advertised.
-
-## Definition of done
-- [ ] Network matrix is consistent across client + server; no lane advertised that can't settle.
-- [ ] Permit2/EIP-2612 sponsorship verified by test (emit gate, payload decode, under-pay/wrong-payTo rejection).
-- [ ] Arbitrum EIP-3009 verify/settle + facilitator echo cross-checks tested.
-- [ ] Money paths covered by tests (verify, settle, split, idempotency); `npm test` passes — including concurrent-settle idempotency and a `token_payments` replay resolving to `already_settled`.
-- [ ] User-visible change → entry in `data/changelog.json`, then `npm run build:pages`.
-- [ ] `git diff` self-reviewed; revenue math validated; supported-networks doc accurate.
-
-## Verification
-- `vitest run tests/evm-payment-verify.test.js tests/x402-permit2-sponsorship.test.js` — all green, including Arbitrum + Permit2 cases.
-- `npm run dev`, open the drop-in modal on a paid endpoint with MetaMask on Base and on Arbitrum: confirm the EIP-3009 sign flow, then the `X-PAYMENT` header builds and the resource unlocks; check network tab for a real `/verify`+`/settle` round-trip and an `X-PAYMENT-RESPONSE` with the right explorer link.
-- With CDP creds set, confirm the 402 challenge advertises a Permit2 sibling; with creds unset, confirm it does not.
-
-## Guardrails
-- No mocks/fake data. Real on-chain verification + settlement (mock only the facilitator HTTP boundary in unit tests, never the decode/verify logic). Idempotent (no double-charge / double-payout).
-- $THREE only in copy; never hardcode a non-$THREE mint. USDC is the payment-rail asset, not a coin to promote.
-- Stage explicit paths; re-check `git status` before commit. Push only when asked, to BOTH remotes (`threeD`, `threews`).
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js` (and never commit a bundled `api/x402-checkout.js` / `public/x402*.js`).
diff --git a/prompts/production-readiness/P47-developer-portal-docs-home.md b/prompts/production-readiness/P47-developer-portal-docs-home.md
deleted file mode 100644
index 80f4e9a30..000000000
--- a/prompts/production-readiness/P47-developer-portal-docs-home.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# P47 · Developer portal / docs homepage
-
-> **Workstream:** SEO, content & developer experience · **Priority:** P1 · **Effort:** M · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). The changelog system is described in CLAUDE.md.
-2. three.ws monorepo: vanilla JS + Vite. Docs in `docs/`, blog in `blog/`, SEO via `scripts/inject-seo-meta.mjs` + `api/sitemap.js` + `api/page-og`. Page catalog in `data/pages.json`. Dev: `npm run dev`. Tests: `npm test`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-The docs surface is real and large. `docs/` holds ~111k lines of markdown across 80+ files (`start-here.md`, `quick-start.md`, `introduction.md`, `api-reference.md`, `js-api.md`, `web-component.md`, `mcp.md`, `sdk.md`, `embedding.md`, `erc8004.md`, a `tutorials/` set, an `internal/` ops set, etc.). They are served as raw `.md` and rendered client-side by `docs/index.html` — a single-page docs app that:
-- ships a hardcoded `NAV` array (sections: SDK/API reference, Integrations, Tutorials, Reference, Operations…) at ~line 790,
-- hash-routes (`#start-here`), `fetch`es `/docs/<path>.md`, and renders with `[email protected]` + `highlight.js` from CDN,
-- defaults to `start-here` when no path is given, and has a sidebar filter input + "Copy page / Open in Claude" page tools.
-
-Routing: `vite.config.js` maps `/docs` and `/docs/` → `docs/index.html`; `copy-static-docs` copies `docs/` → `dist/docs`. `data/pages.json` lists `/docs` and ~16 individual doc routes (`/docs/start-here`, `/docs/quick-start`, `/docs/api-reference`, …) that feed the sitemap, `llms.txt`, and `scripts/inject-seo-meta.mjs`.
-
-## Problem / opportunity
-`/docs` opens straight into the `start-here` article body. There is **no portal landing**: no role-based "I'm a no-code creator" vs "I'm a developer" split, no surfaced "popular paths," no top-level search across all pages (the sidebar input only filters nav *labels*, not page content), and the NAV array drifts from `data/pages.json` (links are maintained in two places). A first-time developer lands on prose with no map of where to go. The pieces exist (renderer, nav, ~80 pages) — they need a real front door at the bar of Stripe/Vercel docs homes.
-
-## Mission
-Ship a real docs portal home at `/docs`: a role-based "start here" landing, a curated set of paths/cards into the existing markdown, and client-side full-text search across all doc pages — reusing the existing `docs/index.html` renderer and the vanilla/Vite stack (no framework, no build step beyond what exists).
-
-## Scope
-**In scope:** A landing view in `docs/index.html` shown for the bare `/docs` route; role/task cards linking to existing `.md` pages; a search box that queries page *content* (built index); reconciling the NAV with `data/pages.json`; all states (loading/empty/error) for search; a changelog entry.
-**Out of scope:** Rewriting article content; a server-side renderer; moving off `marked`; touching `blog/` (that's P49); the OpenAPI explorer (P48).
-
-## Implementation guide
-1. **Landing view, not an article.** In `docs/index.html`, when `currentPath()` resolves to the bare docs root (no hash, path === `/docs`), render a **portal home** instead of fetching `start-here.md`. Build it from real content:
- - A hero with the product one-liner (reuse copy from `docs/start-here.md`).
- - **Two role lanes** mirroring `start-here.md`'s "Two kinds of people": *Creators (no code)* → `make-your-agent`, `share-and-embed`, `do-i-need-crypto`; *Developers* → `quick-start`, `introduction`, `api-reference`, `web-component`, `mcp`, `sdk`. Each card: title, one-line description, arrow, hover/focus states.
- - A "popular" / "by task" grid (Embed an agent → `embedding`; Generate 3D from a prompt → `tutorials/text-to-3d`; Register on-chain → `erc8004`; Pay-per-call → `x402`). Use only paths that exist in `docs/`.
-2. **Single source for the path list.** Pull the canonical doc routes from `data/pages.json` (the `/docs/*` section) so the portal cards and the sidebar can't drift from the catalog. Keep the human-friendly grouping in `NAV`, but assert at runtime (dev only) that every `NAV` `path` exists in `data/pages.json` and warn on a mismatch — eliminate the dual-maintenance trap.
-3. **Real content search.** Add a build step `scripts/build-docs-search-index.mjs` that reads every `docs/**/*.md` (skip `internal/` if it shouldn't be public-indexed — match what `data/pages.json` exposes), strips markdown, and writes `public/docs/search-index.json` (`[{path, title, headings[], excerpt, body}]`, body truncated to keep it lean). Wire it into the build (add an npm script, e.g. `build:docs-search`, and call it from `build:pages` or the existing docs copy step). In `docs/index.html`, lazy-`fetch` that index on first keystroke, score by title/heading/body match, and render a results dropdown (keyboard navigable, `Esc` to close, designed empty + error states). Add a `/` keyboard shortcut to focus search.
-4. **Wire it into nav.** Confirm `/docs` is reachable from the home doors (`pages/home.html` already links `/docs`) and the global nav (`public/nav.js`). The portal must link back out to `/blog`, `/` and the live API explorer once P48 lands (leave a clearly-labeled link only if the route exists).
-5. **SEO.** `/docs` already has a `data/pages.json` entry; ensure its `title`/`description` describe a portal, run `npm run seo:meta` so `inject-seo-meta.mjs` backfills canonical + JSON-LD, and confirm the new search-index file is excluded from the sitemap.
-
-## Definition of done
-- [ ] `/docs` renders a role-based portal landing (not an article); every card links to a doc page that exists.
-- [ ] Content search returns ranked results across all public docs, with loading/empty/error states and keyboard nav.
-- [ ] NAV and `data/pages.json` reconciled; dev-time mismatch warning in place; no dual-maintained link list ships broken.
-- [ ] `npm test` passes; build (`npm run build:pages` and/or `npm run build`) succeeds.
-- [ ] User-visible → `data/changelog.json` entry + `npm run build:pages`.
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `npm run dev`, open `http://localhost:3000/docs` → portal home, not an article. Tab through cards: hover/focus rings present.
-- Type a query (e.g. "embed", "web component", "x402") → ranked results; clicking one hash-routes to the article. Empty query state and a no-results state both look intentional.
-- Existing deep links still work: `http://localhost:3000/docs/quick-start`, `#api-reference`.
-- `npm run build` then check `dist/docs/search-index.json` exists and parses; `curl -s http://localhost:3000/sitemap.xml` does **not** list the search index.
-- `node -e "JSON.parse(require('fs').readFileSync('public/docs/search-index.json'))"` exits 0.
-- DevTools console: no errors/warnings from the portal code.
-
-## Guardrails
-- No mocks/fake data. Real content, real links (CLAUDE.md: changelog `link` must be a live page path).
-- $THREE only. Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`.
diff --git a/prompts/production-readiness/P48-openapi-explorer.md b/prompts/production-readiness/P48-openapi-explorer.md
deleted file mode 100644
index 08b98d65c..000000000
--- a/prompts/production-readiness/P48-openapi-explorer.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# P48 · Interactive OpenAPI explorer
-
-> **Workstream:** SEO, content & developer experience · **Priority:** P2 · **Effort:** M · **Depends on:** P47 (nice-to-have)
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (surface map). The changelog system is described in CLAUDE.md.
-2. three.ws monorepo: vanilla JS + Vite. Docs in `docs/`, blog in `blog/`, SEO via `scripts/inject-seo-meta.mjs` + `api/sitemap.js` + `api/page-og`. Page catalog in `data/pages.json`. Dev: `npm run dev`. Tests: `npm test`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.
-
-## Context
-There is a real, hand-built OpenAPI document but no interactive UI for it.
-- `api/openapi-json.js` (`982` lines) serves a full OpenAPI **3.1.0** doc at `/openapi.json` (rewrite in `vercel.json`: `/openapi\.json` → `/api/openapi-json`). It documents `POST /api/mcp` (JSON-RPC MCP tool calls), the paid `/api/x402/*` and `/api/insights/*` routes (HTTP 402, USDC over x402, no API key), `securitySchemes` `bearerAuth` + `apiKeyAuth`, and carries `x-payment-info`/`x-guidance` extensions for agent discovery (AgentCash, x402scan).
-- A static mirror exists at `public/.well-known/openapi.yaml` (~72 KB). The JSON endpoint is the live source of truth.
-- `docs/api-reference.md` (~24 KB) is the prose REST reference, surfaced in the docs portal NAV as "REST API". `docs/api.html` also exists.
-
-## Problem / opportunity
-The OpenAPI doc is rich enough for a fully interactive explorer, but a developer today can only read static prose (`docs/api-reference.md`) or curl the raw JSON. There's no "try it" surface, no schema browser, no copyable request examples, and nothing that visually communicates the paid (x402) vs free vs bearer-auth split that makes this API distinctive. A self-serve, browsable API console is table stakes for developer adoption and gets the API indexed by tooling that scrapes rendered reference pages.
-
-## Mission
-Ship a public, interactive API explorer page wired to the **live** `/openapi.json`, served at a real route (e.g. `/docs/api` or `/api-explorer`), kept automatically in sync with the endpoint (no second copy of the spec), and styled to fit the docs/site dark theme. Make the x402-paid vs bearer-auth distinction legible.
-
-## Scope
-**In scope:** A vendored, self-hosted explorer UI (Scalar API Reference or Swagger UI) pointed at `/openapi.json`; a real route + `data/pages.json` entry + nav links; sync verification; SEO meta; all states (loading/error if the spec fails to fetch).
-**Out of scope:** Changing the API itself; auth/credential injection for live authenticated calls (read-only/try-public only — never embed real keys); rewriting `api-reference.md` (link to it, keep both).
-
-## Implementation guide
-1. **Pick the lightest fit.** Prefer **Scalar API Reference** (modern, dark-themeable, single script/standalone bundle, renders 3.1 well) or **Swagger UI** if you want the most familiar console. Whichever you choose: **vendor it self-hosted** — download the standalone bundle into `public/vendor/<tool>/` (do not load a third-party CDN at runtime; CLAUDE.md + the site's CSP posture favor self-hosted assets). Note the version and license in a short header/README beside the vendored files.
-2. **Create the page.** Add `public/api-explorer.html` (or `docs/api.html` if you prefer the docs namespace — but don't clobber the existing file; pick a clean route). It should:
- - Configure the explorer to load the spec from `/openapi.json` at runtime (so it's always live — never paste the spec inline).
- - Apply a dark theme matching `public/style.css` / the docs tokens (`docs/index.html` `--docs-accent: #8b5cf6`).
- - Show a clear loading state and a designed error state if `/openapi.json` 404s or fails to parse (don't leave a blank frame).
- - Include a short header banner explaining the auth model (free MCP `getting_started`, OAuth/API-key bearer, and x402-paid `/api/x402/*` settling in USDC) — text only, no secrets.
-3. **Route + catalog.** Add a route to `vite.config.js` (dev) and `vercel.json` (prod) for `/api-explorer` (or `/docs/api`) → the html file. Add a `data/pages.json` entry (title/description/section) so it joins the sitemap, `llms.txt`, and gets SEO meta. Link to it from `docs/index.html` NAV ("REST API" group, add "API explorer (interactive)") and from `docs/api-reference.md` (a banner link at the top: "Prefer to click around? Open the interactive explorer →").
-4. **Keep it in sync — prove it.** Because the page fetches `/openapi.json` live, sync is automatic at runtime. Add a guard so it stays valid: extend or add a verifier (reuse the pattern in `scripts/verify-x402-discovery.mjs`) — e.g. `scripts/verify-openapi.mjs` that fetches `/openapi.json` (default `https://three.ws`, `--base` override), validates it parses as OpenAPI 3.1, asserts the documented `paths` are non-empty and that the x402 paths carry `x-payment-info` with both `price` and `protocols` (the AgentCash requirement noted in `api/openapi-json.js`), and that the static `public/.well-known/openapi.yaml` mirror hasn't gone stale relative to the live doc (warn, don't fail the build, if it drifts). Wire an npm script `verify:openapi`.
-5. **SEO.** Run `npm run seo:meta` so canonical/OG/JSON-LD land on the new page from its `data/pages.json` copy.
-
-## Definition of done
-- [ ] Public explorer page renders all operations from the **live** `/openapi.json` (not an inlined copy), themed to the site, reachable from docs nav + `api-reference.md`.
-- [ ] Explorer UI is self-hosted under `public/vendor/` (no runtime third-party CDN); version + license recorded.
-- [ ] Loading + error states designed; spec fetch failure degrades gracefully.
-- [ ] `verify:openapi` script added and passing; x402 ops show `price` + `protocols`.
-- [ ] `npm test` passes; build (`npm run build:pages` and/or `npm run build`) succeeds.
-- [ ] User-visible → `data/changelog.json` entry + `npm run build:pages`.
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `npm run dev` → open the new route; every endpoint group from `/openapi.json` renders; expanding an operation shows params, schemas, and example request. Toggle a paid `/api/x402/*` op → its 402/x402 payment info is visible.
-- Kill the spec route mentally: load with `/openapi.json` returning an error (e.g. point at a bad base) → designed error state, not a blank screen.
-- `view-source:` the page → no inlined spec JSON, no third-party CDN `<script src>` for the explorer, no secrets.
-- `node scripts/verify-openapi.mjs --base=http://localhost:3000` exits 0.
-- `curl -s http://localhost:3000/sitemap.xml | grep -i explorer` (or your route) shows it indexed; `view-source` shows canonical + JSON-LD.
-- DevTools console: no errors/warnings.
-
-## Guardrails
-- No mocks/fake data. Real content, real links (CLAUDE.md: changelog `link` must be a live page path).
-- $THREE only. Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js`. Never edit `api/openapi-json.js` into a bundle.
-- Never embed a real API key, OAuth token, or wallet secret into the explorer config.
diff --git a/prompts/production-readiness/P53-api-test-coverage-expansion.md b/prompts/production-readiness/P53-api-test-coverage-expansion.md
deleted file mode 100644
index 4a708061e..000000000
--- a/prompts/production-readiness/P53-api-test-coverage-expansion.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# P53 · API test coverage expansion (high-risk mutations)
-
-> **Workstream:** Testing, CI & quality · **Priority:** P1 · **Effort:** L · **Depends on:** P58 (coverage instrumentation) recommended, not required
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md`.
-2. three.ws monorepo: tests via `vitest` (`tests/**/*.test.js`) + Playwright (`tests/e2e/**/*.spec.js`); gate is `npm test`. CI in `.github/workflows/ci.yml`. Dev server `npm run dev` (port 3000).
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. In tests/fixtures use the $THREE CA or a clearly-synthetic placeholder — NEVER a real third-party mint.
-
-## Context
-The suite is large but lopsided. `find tests src -name '*.test.js' -o -name '*.test.mjs'` returns **~466 files**, and `tests/api/` alone holds ~200 of them. But `find api -name '*.js' -not -path '*/_*'` returns **~586 route handlers** (~966 including `api/_lib/**`). Whole families of money- and identity-moving routes have zero direct handler test:
-- **Payments / x402:** good coverage on the *prepare/verify* layer (`tests/api/x402-paid-endpoint-replay.test.js`, `x402-spec.test.js`, `tests/x402-checkout-prepare.test.js`), but the checkout *record/settle* and merchant routes (`api/x402-checkout-record.js`, `api/x402-merchant.js`, `api/x402-status.js`) are thin.
-- **pump dashboard mutations:** `api/pump/withdraw-prep.js`, `withdraw-confirm.js`, `accept-payment-prep.js`, `accept-payment-confirm.js`, `launch-prep.js` move value and are under-tested at the handler level.
-- **Avatars/agents CRUD:** `tests/api/agents.test.js` is the gold-standard pattern; many sibling mutation routes (`api/forge-upload.js`, `api/forge-creation.js`, avatar persist routes) lack equivalents.
-
-The established handler-test pattern is already excellent — follow it exactly:
-- `tests/api/agents.test.js`: `vi.mock` for `_lib/auth.js`, `_lib/csrf.js`, `_lib/db.js` (tagged-template `sql` stub with a result queue), `_lib/agent-wallet.js`; handler imported *after* mocks; `makeReq`/`makeRes` build a Node `Readable` request and a capturing response.
-- `tests/_helpers/monetization.js`: shared `createTestAgent`/`makeReq` — note the comment that `agent_id` must be a real UUID (`00000000-0000-4000-8000-…`) or `isUuid()` 404s before the logic runs.
-- All responses flow through `api/_lib/http.js` (`json`/`error`/`serverError`/`rateLimited`), so assertions target `res.statusCode` + parsed `res.body` and the security headers it always sets (`x-content-type-options`, `x-frame-options`).
-
-## Problem / opportunity
-350+ mutation routes can regress silently. A broken `withdraw-confirm`, a CSRF gate that stops firing, or a settlement double-credit would ship green. The fix is not "test everything" — it's a **risk-ranked push** that closes the gap on the routes where a regression costs money or leaks identity, plus a measurable `api/` coverage target so the gap can't quietly reopen.
-
-## Mission
-Add handler-level vitest specs for the highest-risk untested `api/` mutation routes, following the existing `tests/api/agents.test.js` pattern, and define + document a coverage target for `api/`.
-
-## Scope
-**In scope:** New `tests/api/*.test.js` for ranked routes across auth, x402 settlement/merchant, pump withdraw/accept-payment, agents/avatars/forge CRUD. A short ranking doc. A coverage target proposal for `api/` (coordinate with P58).
-**Out of scope:** Rewriting handlers (only fix a bug if a new test exposes one — note it). E2E (that's P54). Load (P55). Changing the global `npm test` gate semantics.
-
-## Implementation guide
-1. **Rank the gap (do this first, commit the ranking).**
- - List untested handlers: `comm -23 <(find api -name '*.js' -not -path '*/_*' | sort) <(grep -rhoE "api/[a-zA-Z0-9/_-]+\.js" tests/api | sort -u)` — treat as a starting signal, then eyeball.
- - Score each by **(writes value | moves money | touches auth/identity | CSRF-gated)**. Top of the list: `api/x402-checkout-record.js`, `api/x402-merchant.js`, `api/pump/withdraw-prep.js`, `api/pump/withdraw-confirm.js`, `api/pump/accept-payment-confirm.js`, `api/forge-upload.js`, avatar persist routes, any auth route lacking a test.
-2. **For each chosen route, write a spec mirroring `tests/api/agents.test.js`:**
- - Declare `vi.mock('../../api/_lib/auth.js', …)`, `vi.mock('../../api/_lib/csrf.js', …)`, `vi.mock('../../api/_lib/db.js', …)` (sql result queue) BEFORE the dynamic `import('../../api/<route>.js')`.
- - Mock external boundaries the route hits (`_lib/agent-wallet.js`, Solana RPC fetch, facilitator verify/settle as `x402-paid-endpoint-replay.test.js` does) — never reach a real chain or RPC.
- - Reuse `makeReq`/`makeRes` (copy from `agents.test.js` or import from `tests/_helpers/monetization.js`).
-3. **Cover the contract, not just the happy path** — each spec asserts:
- - **Method gate:** wrong method → 405 (handlers call `method(...)` from `http.js`).
- - **Auth gate:** no session/bearer → 401.
- - **CSRF gate:** cookie-session mutation without CSRF → 403 (see how `agents.test.js` mocks `requireCsrf`; the gate itself lives in `security-csrf-gates.test.js`).
- - **Validation:** malformed body → 400 via `validationError`.
- - **Happy path:** valid input → correct `sql` calls fired (assert against the captured `sqlState.calls`) + 200/201 shape.
- - **Idempotency/replay where relevant:** a confirm route must not double-settle (model on `x402-paid-endpoint-replay.test.js`).
-4. **Coverage target.** With P58's v8 coverage enabled, add a per-directory threshold for `api/` (start at the measured baseline, e.g. lines ≥ current %, then ratchet). If P58 isn't landed yet, document the intended target in `tests/api/README.md`-style note and wire the threshold when P58 merges.
-5. **Determinism.** No real network, no timers without `vi.useFakeTimers`, no `process.env` writes that leak across files (restore in `afterAll`, like `tests/api/forge-cost-cap.test.js`). Use synthetic Solana addresses (`Keypair.generate().publicKey.toBase58()` or `3wsSynthetic…`), the $THREE CA, or USDC mint — never a third-party mint.
-
-## Definition of done
-- [ ] New checks pass locally and in CI; `npm test` green.
-- [ ] No flaky tests introduced; deterministic (no real network in unit tests).
-- [ ] `git diff` self-reviewed.
-- [ ] Ranking doc committed; ≥ the top-ranked untested money/auth routes now have specs covering method + auth + CSRF + validation + happy path.
-- [ ] An `api/` coverage target is defined (threshold wired if P58 landed, else documented).
-
-## Verification
-```bash
-# Run only the new/affected API specs fast:
-npx vitest run tests/api
-# Full gate:
-npm test
-# Prove a new test actually guards the route: temporarily break the route
-# (e.g. drop the CSRF check or flip a status code), re-run the spec, confirm RED,
-# then revert. Paste the before/after into your report.
-git stash # or git checkout -- the route, after the deliberate break
-```
-
-## Guardrails
-- No real third-party coin mints in fixtures. No mocks of the kind CLAUDE.md forbids in product code — but test doubles/stubs ARE appropriate inside tests.
-- Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Watch the `npx vercel build` trap: never commit bundled `api/*.js` (check `head -1` for `__defProp`/`createRequire`).
diff --git a/prompts/production-readiness/P59-deploy-agentpayments-evm.md b/prompts/production-readiness/P59-deploy-agentpayments-evm.md
deleted file mode 100644
index 3f207109b..000000000
--- a/prompts/production-readiness/P59-deploy-agentpayments-evm.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# P59 · Deploy AgentPayments across EVM chains
-
-> **Workstream:** On-chain & contracts · **Priority:** P0 · **Effort:** L · **Depends on:** none
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (on-chain section).
-2. three.ws monorepo: EVM contracts via Foundry in `contracts/`; Solana programs via Anchor in `contracts/agent-invocation/` and `contracts/skill-license/`. EVM SDK addresses live in `agent-payments-sdk/src/evm/`. ERC-8004 deploy metadata in `contracts/` + `api/_lib/erc8004-chains.js`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin/token.
-
-## Context
-`contracts/src/AgentPayments.sol` (406 lines) is the EVM port of the Solana `pump_agent_payments` program. It is the on-chain engine behind three.ws **agent tokens**: a payer pays an agent in any ERC-20 (or native via the EIP-7528 sentinel `0xEeee…EEeE`), `distributePayments` splits the vault by `buybackBps`, the agent authority `withdraw`s its share, and `buybackTrigger` (owner-only) swaps the buyback slice into the agent token via an allow-listed router and burns it to `0x…dEaD`.
-
-State so far:
-- **Tested, not deployed.** `contracts/test/AgentPayments.t.sol` — 16 tests, all passing (`forge test --match-contract AgentPaymentsTest`). Foundry profile in `contracts/foundry.toml`: solc `0.8.24`, optimizer 200 runs, `via_ir = false`.
-- **Deploy script ready:** `contracts/script/DeployAgentPayments.s.sol:DeployAgentPayments` — `new AgentPayments(owner)` where `owner = vm.envOr("AGENT_PAYMENTS_OWNER", msg.sender)`. Owner is the protocol/global buyback authority — must be the platform multisig in production, never a hot EOA.
-- **CREATE2 deployer exists:** `ThreeWSFactory` at `0x00000000d49195ae81759cd247cfedd9d0b479df` (verified on Base/BSC/Arbitrum, bytecode SHA-256 `424e78aad2b19a37…`). Because `AgentPayments`'s constructor takes only `owner` (no chain-specific immutable), a CREATE2 deploy with a shared salt yields the **same** address on every chain — unlike `ThreeWSPayments`, whose per-chain USDC immutable broke address parity (`contracts/DEPLOYMENTS.md`).
-- **SDK is waiting:** `agent-payments-sdk/src/evm/addresses.ts` defines `EVM_CHAINS` for chain IDs `1, 8453, 42161, 137, 56, 43114` with every `agentPayments` set to `UNDEPLOYED` (= `ZERO_ADDRESS`). `isAgentPaymentsDeployed(chainId)` returns `false` everywhere, and `new EvmAgent(token, chainId)` throws `"AgentPayments contract is not deployed on chain N"` at construction.
-- Full guide already written: `contracts/AGENT_PAYMENTS.md`. Deployment ledger: the **AgentPayments** table in `contracts/DEPLOYMENTS.md` (all rows `TODO`).
-
-## Problem / opportunity
-The entire EVM agent-token path is dark. The SDK client (`EvmAgent`, `EvmAgentOffline`, `AGENT_PAYMENTS_ABI`) ships, but every call throws because no contract exists on-chain. Deploying once per chain, bytecode-verifying, allow-listing the buyback router, and filling six addresses into the SDK flips EVM agent payments live across Base, Arbitrum, BSC, Polygon, Ethereum, and Avalanche.
-
-## Mission
-Deploy `AgentPayments` to all six SDK-supported EVM chains (testnet first, then mainnet), bytecode-verify each, allow-list the canonical swap router per chain, wire every address into the SDK, record each deployment, and announce it in the changelog.
-
-## Scope
-**In scope:** Testnet dry-run (Base Sepolia + at least one other testnet); mainnet deploys to chains 1/8453/42161/137/56/43114; explorer bytecode verification; `setRouterAllowed` per chain; updating `agent-payments-sdk/src/evm/addresses.ts` + SDK rebuild; filling the `contracts/DEPLOYMENTS.md` AgentPayments table; changelog entry.
-
-**Out of scope:** Any Solana-side work (the Solana path binds to pump.fun's live `AgenTMiC2…` — no deploy needed). Changing the contract logic. ERC-8004 registry redeploys.
-
-## Implementation guide
-1. **Decide on CREATE2 vs. plain `new`.** Prefer CREATE2 via `ThreeWSFactory` for one identical address on all six chains — operationally cleaner and matches the existing factory pattern. Compute the init code as `type(AgentPayments).creationCode` ABI-encoded with the `owner` constructor arg; grind/choose a salt and call `factory.predict(salt, initCodeHash)` to confirm the cross-chain address before broadcasting. If you instead use plain `new` (script as-is), addresses will differ per chain (nonce-dependent) — that is acceptable, just record each.
-2. **Install + sanity check.**
- ```bash
- curl -L https://foundry.paradigm.xyz | bash && foundryup
- cd contracts && cp .env.example .env
- # Fill DEPLOYER_PK (gas EOA), AGENT_PAYMENTS_OWNER (platform multisig),
- # BASESCAN_API_KEY / per-chain scan keys, and RPC URLs.
- forge test --match-contract AgentPaymentsTest # expect 16 passing
- ```
-3. **Testnet dry-run first** (never mainnet before testnet — Guardrails):
- ```bash
- source .env
- forge script script/DeployAgentPayments.s.sol:DeployAgentPayments \
- --rpc-url $BASE_SEPOLIA_RPC_URL --private-key $DEPLOYER_PK --broadcast --verify
- ```
- Note: `foundry.toml` only declares `base_sepolia` / `base` rpc endpoints + etherscan keys. Add `[rpc_endpoints]` and `[etherscan]` entries for arbitrum, polygon, bsc, ethereum, avalanche before mainnet, or pass `--rpc-url`/`--verifier-url`/`--etherscan-api-key` inline.
-4. **Mainnet, one per chain** (swap `--rpc-url`):
-
- | Chain | Chain ID | USDC (from `addresses.ts`) | Canonical router to allow-list |
- | --- | --- | --- | --- |
- | Base | 8453 | `0x8335…02913` | chain's 0x Exchange Proxy / Uniswap Universal Router |
- | Arbitrum One | 42161 | `0xaf88…5831` | same family |
- | Polygon | 137 | `0x3c49…3359` | same family |
- | BNB Smart Chain | 56 | `0x8AC7…580d` | same family |
- | Ethereum | 1 | `0xA0b8…eB48` | same family |
- | Avalanche | 43114 | `0xB97E…8a6E` | same family |
-
- ```bash
- forge script script/DeployAgentPayments.s.sol:DeployAgentPayments \
- --rpc-url $BASE_RPC_URL --private-key $DEPLOYER_PK --broadcast --verify
- ```
-5. **Allow-list the buyback router per chain.** Buybacks revert with `RouterNotAllowed` until set; the contract also forbids the currency/agent token as the "router" (closes the only path to abuse payer `maxUint256` allowances). Use the **real canonical** DEX router for each chain — never a synthetic address here (it is a live mainnet integration), but never market any non-$THREE mint.
- ```bash
- cast send <AGENT_PAYMENTS_ADDR> "setRouterAllowed(address,bool)" <ROUTER> true \
- --rpc-url $BASE_RPC_URL --private-key $DEPLOYER_PK
- ```
-6. **Wire the SDK.** In `agent-payments-sdk/src/evm/addresses.ts`, replace `UNDEPLOYED` with the deployed address for each of the six chains, then:
- ```bash
- cd agent-payments-sdk && npm run build
- ```
- Confirm `isAgentPaymentsDeployed(8453) === true` and `new EvmAgent(token, 8453)` no longer throws.
-7. **Record + announce.** Fill the AgentPayments table in `contracts/DEPLOYMENTS.md` (address, chain ID, owner, routers allow-listed, tx hash) per chain. Append a `data/changelog.json` entry (tags: `infra`, `sdk`) — holder-readable: EVM agent payments are live across six chains — then `npm run build:pages`.
-
-## Definition of done
-- [ ] Contract tests pass (`forge test` / `anchor test`); changes documented.
-- [ ] Deployed addresses recorded + bytecode-verified where applicable; SDK address files updated.
-- [ ] User-visible/holder-relevant → `data/changelog.json` entry + `npm run build:pages`.
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `forge test --match-contract AgentPaymentsTest` — 16 passing.
-- Per chain: `cast code <ADDR> --rpc-url <RPC>` returns non-empty runtime bytecode; explorer shows "Contract Source Code Verified".
-- On-chain read: `cast call <ADDR> "allowedRouters(address)(bool)" <ROUTER>` → `true`; `cast call <ADDR> "owner()(address)"` → the multisig.
-- SDK roundtrip: in `agent-payments-sdk`, construct `new EvmAgent(<$THREE-or-synthetic-token>, 8453)` and call a read (`getAgentConfig`) against the live contract — it must return without throwing the "not deployed" error.
-- After all six rows are filled, confirm no `UNDEPLOYED` remains in `addresses.ts` and `dist/` rebuilt.
-
-## Guardrails
-- No mocks. Real testnet first, then mainnet. Never paste a real third-party mint/creator/holder address; use $THREE CA or a synthetic placeholder.
-- Never commit private keys/secrets. Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Treat upgrade authority and minter keys as secrets; document rotation. `AGENT_PAYMENTS_OWNER` must be the platform multisig, not the deployer EOA — record which address owns each deployment.
diff --git a/prompts/production-readiness/P60-contract-audit-prep.md b/prompts/production-readiness/P60-contract-audit-prep.md
deleted file mode 100644
index f47f06ad4..000000000
--- a/prompts/production-readiness/P60-contract-audit-prep.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# P60 · External contract audit package
-
-> **Workstream:** On-chain & contracts · **Priority:** P1 · **Effort:** L · **Depends on:** P59 (AgentPayments deployed/recorded)
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (on-chain section).
-2. three.ws monorepo: EVM contracts via Foundry in `contracts/`; Solana programs via Anchor in `contracts/agent-invocation/` and `contracts/skill-license/`. EVM SDK addresses live in `agent-payments-sdk/src/evm/`. ERC-8004 deploy metadata in `contracts/` + `api/_lib/erc8004-chains.js`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin/token.
-
-## Context
-The platform's on-chain surface has strong in-house tests but **no external audit**. The contracts under audit:
-
-**EVM (Foundry, `contracts/`, solc 0.8.24, optimizer 200):**
-- `src/AgentPayments.sol` (406 LOC) — agent-token payment/buyback engine; `ReentrancyGuard` + `Ownable`; owner = global buyback authority; per-agent authority for withdraw/config; router allow-list; invoice replay guard. Tests: `test/AgentPayments.t.sol` (16).
-- `src/IdentityRegistry.sol` (292) — ERC-8004 identity NFT. Live on mainnet at `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` (CREATE2). Tests: `test/IdentityRegistry.t.sol` (11).
-- `src/ReputationRegistry.sol` (214) — one score per (reviewer, agent). Live at `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63`. Tests (7).
-- `src/ValidationRegistry.sol` (163) — validator-attested pass/fail; testnet live `0x8004Cb1BF31DAf7788923b405b754f57acEB4272`, mainnet pending. Tests (7).
-
-**Solana (Anchor, `contracts/`):**
-- `agent-invocation/src/lib.rs` (129) — program `AgEntJDMi1A7UadCoYcx6Fm3gusNk8SHLCi7vSUa4Zfo`. Non-trust-bearing: emits `SkillInvoked`; both agent accounts are constrained PDAs (`[AGENT_SEED, authority]`), length-bounds on `skill_name`/`parameters`.
-- `skill-license/src/lib.rs` (464) — program `EdngSwxmDktyrr4phwGEZnCXEoQ27vgnBtowjhKa7Wr8`. Singleton `Marketplace` (admin `authority` + rotatable `minter`); `mint_skill_license` locks supply at 1 and removes mint authority (keeps freeze authority for revoke); `set_minter`, `revoke_skill_license` (freeze-based), `burn_skill_license`. Deploy/key model in `skill-license/DEPLOYMENT.md`.
-
-Existing threat material: `specs/SECURITY.md` (vectors V1–V10 with status, several **OPEN** — notably V8 NSFW moderation, V4 validator key expiry) and its governance roadmap (registry owner is still the deployer EOA; migrate to a 3-of-5 Safe before public registration).
-
-## Problem / opportunity
-In-house tests prove the happy path and known edge cases, but external capital and serious integrators expect a third-party audit. Auditors lose days reconstructing scope, architecture, invariants, and known risks from raw source. A clean, complete audit package shortens the engagement, lowers cost, and surfaces gaps before the auditor (or an attacker) does.
-
-## Mission
-Assemble a hand-off-ready external audit package: scope manifest, architecture overview, invariant catalog, known-risk register, test/coverage report, and threat model — plus a fixes tracker the team and auditor share. Do not change contract logic; this is documentation + measurement.
-
-## Scope
-**In scope:** A new `docs/audit/` (or `contracts/audit/`) package: `SCOPE.md`, `ARCHITECTURE.md`, `INVARIANTS.md`, `KNOWN_RISKS.md`, `THREAT_MODEL.md` (consolidating `specs/SECURITY.md` V1–V10 + Solana/EVM-specific vectors), `COVERAGE.md` (real `forge coverage` + `anchor test` output), and `FINDINGS.md` fixes tracker. Pin exact commit, compiler versions, deployed addresses (from `contracts/DEPLOYMENTS.md`).
-
-**Out of scope:** Fixing findings (that becomes follow-up tasks tracked in `FINDINGS.md`); engaging the auditor; changing contract behavior; new features.
-
-## Implementation guide
-1. **Pin the artifact.** Record the audit commit hash, solc `0.8.24`/optimizer 200 (from `foundry.toml`), Anchor/Rust toolchain versions, and the live + pending deployed addresses (pull from `contracts/DEPLOYMENTS.md`, `api/_lib/erc8004-chains.js`, and `agent-payments-sdk/src/evm/addresses.ts` after P59).
-2. **`SCOPE.md`** — table of every file in scope with LOC and one-line purpose: the four EVM `src/*.sol`, the two Anchor `lib.rs`. Explicitly mark out-of-scope: SDK TS, `api/`, `ThreeWSFactory.sol` (already verified, trivial CREATE2 wrapper), `ThreeWSPayments.sol` (separate x402 receiver). Note which contracts are already live mainnet vs. testnet-only vs. undeployed.
-3. **`ARCHITECTURE.md`** — for each contract: roles/authorities, state layout, external entrypoints, trust boundaries, and the off-chain components that call it (e.g. `AgentPayments` ↔ `EvmAgent`; `ValidationRegistry` ↔ platform validator key + `recordValidation`; `skill_license` ↔ backend `SKILL_LICENSE_MINTER_KEY`). Draw the AgentPayments money flow: `acceptPayment → distributePayments → {buybackTrigger | withdraw}`.
-4. **`INVARIANTS.md`** — enumerate what must always hold, e.g.:
- - AgentPayments: `paymentVault + Σ(buybackVault, withdrawVault distributed)` conserves received funds; an invoice ID settles at most once (`isInvoicePaid`); `buybackTrigger` only ever calls allow-listed routers and leaves zero standing allowance; only `authority` withdraws; balance-diff accounting never over-credits (fee-on-transfer safe).
- - skill_license: supply locked at exactly 1 post-mint; only `marketplace.minter` mints; only admin `authority` rotates minter; revoke uses retained freeze authority only.
- - Registries: one ReputationRegistry score per (reviewer, agent); only allow-listed validators write ValidationRegistry. Map each invariant to the test(s) that exercise it (or flag "no direct test").
-5. **`THREAT_MODEL.md`** — fold in `specs/SECURITY.md` V1–V10 verbatim by reference, then add contract-level vectors auditors expect: reentrancy on the three `nonReentrant` paths, owner-key compromise blast radius (AgentPayments owner can trigger arbitrary buybacks on allow-listed routers), router allow-list poisoning, Solana account-substitution / missing-signer / arithmetic, IDL/`declare_id` drift. State each vector's current mitigation and residual risk.
-6. **`KNOWN_RISKS.md`** — the honest register: registry owner is still the deployer EOA (governance roadmap → 3-of-5 Safe); upgrade authority migration pending (see the multisig task); validator keys have no on-chain expiry (V4 OPEN); NSFW moderation hook unwired (V8 OPEN). Disclose these up front so the auditor doesn't "discover" them as findings.
-7. **`COVERAGE.md`** — run and paste real numbers:
- ```bash
- cd contracts && forge coverage --report summary
- cd contracts/agent-invocation && anchor test
- cd contracts/skill-license && anchor test
- ```
- Note any contract/branch below a target threshold and list the missing cases as pre-audit test debt.
-8. **`FINDINGS.md`** — empty tracker with the format the auditor will fill: ID, severity (Critical/High/Medium/Low/Info), title, location, status (Open/Fixed/Acknowledged), fix commit. Pre-seed it with the self-identified items from `KNOWN_RISKS.md` marked `Acknowledged`.
-9. **Changelog?** This is internal audit prep — **no `data/changelog.json` entry** unless a user-visible change ships (per CLAUDE.md, internal-only chores get none). If a fix from `FINDINGS.md` later changes behavior, that fix's task adds the entry.
-
-## Definition of done
-- [ ] Contract tests pass (`forge test` / `anchor test`); changes documented.
-- [ ] Deployed addresses recorded + bytecode-verified where applicable; SDK address files updated.
-- [ ] User-visible/holder-relevant → `data/changelog.json` entry + `npm run build:pages`.
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `forge test` and both `anchor test` suites green; `forge coverage --report summary` produces the numbers pasted in `COVERAGE.md`.
-- Every contract listed in `SCOPE.md` exists at the stated path/LOC; every address in the package resolves on-chain (`cast code` / `solana program show`).
-- Cross-check: every `specs/SECURITY.md` vector appears in `THREAT_MODEL.md`; every OPEN status appears in `KNOWN_RISKS.md`.
-- A peer skim of the package can reconstruct scope + invariants without opening the source.
-
-## Guardrails
-- No mocks. Real testnet first, then mainnet. Never paste a real third-party mint/creator/holder address; use $THREE CA or a synthetic placeholder.
-- Never commit private keys/secrets. Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Treat upgrade authority and minter keys as secrets; document rotation. The audit package names key *roles and rotation procedures*, never key material.
diff --git a/prompts/production-readiness/P61-upgrade-authority-multisig-migration.md b/prompts/production-readiness/P61-upgrade-authority-multisig-migration.md
deleted file mode 100644
index 6c68d2b2f..000000000
--- a/prompts/production-readiness/P61-upgrade-authority-multisig-migration.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# P61 · Migrate upgrade authority to multisig & define key rotation
-
-> **Workstream:** On-chain & contracts · **Priority:** P1 · **Effort:** M · **Depends on:** none (do before/alongside P60)
-
-## Before you start
-1. Read `CLAUDE.md` (rules that override defaults) and `STRUCTURE.md` (on-chain section).
-2. three.ws monorepo: EVM contracts via Foundry in `contracts/`; Solana programs via Anchor in `contracts/agent-invocation/` and `contracts/skill-license/`. EVM SDK addresses live in `agent-payments-sdk/src/evm/`. ERC-8004 deploy metadata in `contracts/` + `api/_lib/erc8004-chains.js`.
-3. **$THREE is the only coin** — CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Never reference any other coin/token.
-
-## Context
-Authority over the platform's upgradeable on-chain programs currently sits on **single deployer/hot keys** — a custody risk before scaling.
-
-**Solana programs (BPF, upgradeable — the upgrade authority can replace program bytecode):**
-- `skill_license` — program `EdngSwxmDktyrr4phwGEZnCXEoQ27vgnBtowjhKa7Wr8`. `contracts/skill-license/DEPLOYMENT.md` documents three keys: the **program keypair** (`SKILL_LICENSE_PROGRAM_KEYPAIR`), the **deploy/upgrade authority** (`~/.config/solana/skill-license-deployer.json` → `SKILL_LICENSE_DEPLOY_AUTHORITY`), and the **minter** (`SKILL_LICENSE_MINTER_KEY`, the backend wallet authorized for `mint_skill_license`/`revoke_skill_license`). The doc ends with a `solana program set-upgrade-authority` snippet (migration **pending**) and notes the minter is rotatable on-chain via `set_minter` (admin-only) and that production should init the marketplace with a **separate** admin authority so a cold key can rotate the minter.
-- `agent_invocation` — program `AgEntJDMi1A7UadCoYcx6Fm3gusNk8SHLCi7vSUa4Zfo` (`contracts/agent-invocation/Anchor.toml` cluster `devnet`, wallet `~/.config/solana/agent-invocation-deployer.json`). Non-trust-bearing (emits events only) but still upgradeable — same upgrade-authority risk.
-
-**EVM ownership (related, same theme):** `AgentPayments` owner (set via `AGENT_PAYMENTS_OWNER`) and the ERC-8004 registry owners are currently the deployer EOA. `specs/SECURITY.md` governance roadmap: "Migrate to a 3-of-5 Safe on Base before opening public registration."
-
-## Problem / opportunity
-A single hot key can upgrade `skill_license` bytecode or rotate the minter. Leak or loss = total compromise (or bricking) of the program. There is a documented `set-upgrade-authority` step but no executed migration and no written rotation runbook for the minter/admin/validator secrets. Moving upgrade authority to a multisig/cold key and writing a tested rotation procedure removes the single point of failure that any auditor or integrator will flag first.
-
-## Mission
-Migrate the upgrade authority of both Solana programs to a multisig (e.g. Squads) or cold key, document the exact procedure and the cosigner set, and define a concrete rotation runbook for every authority/minter secret (Solana minter via `set_minter`, EVM owner via `transferOwnership`, validator key). Mirror the EVM-side intent by capturing the registry/`AgentPayments` owner → Safe plan.
-
-## Scope
-**In scope:** Standing up (or wiring to) a Solana multisig (Squads recommended); transferring `skill_license` + `agent_invocation` upgrade authority to it on devnet first, then mainnet; a `contracts/UPGRADE_AUTHORITY.md` runbook (or additions to each program's `DEPLOYMENT.md`); a `KEY_ROTATION.md` covering minter (`set_minter`), EVM owner (`transferOwnership`), validator key (`scripts/erc8004/provision-validator-key.mjs`), and program upgrade authority; recording new authority addresses in the deploy docs.
-
-**Out of scope:** Changing program logic (no `lib.rs` edits — `skill_license` already exposes `set_minter`/admin-authority separation; use it). Executing the EVM 3-of-5 Safe migration (document the plan + commands; the Safe ceremony is its own task). Deploying new programs.
-
-## Implementation guide
-1. **Inventory current authorities (read-only first).**
- ```bash
- solana program show EdngSwxmDktyrr4phwGEZnCXEoQ27vgnBtowjhKa7Wr8 --url mainnet-beta
- solana program show AgEntJDMi1A7UadCoYcx6Fm3gusNk8SHLCi7vSUa4Zfo --url devnet
- ```
- Record the current `Upgrade Authority` for each, and the current `marketplace.minter` / admin `authority` for `skill_license` (read the `Marketplace` account). Confirm against `DEPLOYMENT.md`.
-2. **Stand up the multisig.** Use Squads (the standard Solana multisig). Create the vault with the intended cosigner set (recommend ≥ 2-of-3 to start, ≥ 3-of-5 to match the EVM roadmap). The Squads **vault PDA** becomes the new upgrade authority. Record the multisig address + members (roles, not key material) in the runbook.
-3. **Migrate upgrade authority on devnet first.**
- ```bash
- solana program set-upgrade-authority \
- <PROGRAM_ID> \
- --new-upgrade-authority <SQUADS_VAULT_PDA> \
- --url devnet
- ```
- Then verify, redeploy a no-op upgrade *through the multisig* to prove the new authority signs, and only then repeat on mainnet for `skill_license` (and devnet→mainnet as appropriate for `agent_invocation`). The set-upgrade-authority transfer must be signed by the **current** authority — coordinate so that key is available for the one-time transfer, then retired.
-4. **Separate the `skill_license` admin from the minter (production hardening).** Per `DEPLOYMENT.md`, production should initialize the marketplace with a distinct cold **admin authority** so the minter can be rotated by a key that is never on a server. If the marketplace was bootstrapped with `admin == minter`, document the remediation (the admin signs `set_minter` to point at the backend minter; admin itself moves to cold custody). Use `buildInitializeMarketplaceIx({ authority, minter })` / `set_minter` from `api/_lib/skill-license-onchain.js`.
-5. **Write the rotation runbook (`KEY_ROTATION.md`).** One section per secret, each with trigger (scheduled / suspected compromise), exact command, verification, and who-can-execute:
- - **Solana minter** (`SKILL_LICENSE_MINTER_KEY`): generate new keypair → admin signs `set_minter(new_minter)` → update the Vercel secret → re-run `scripts/skill-license-smoke.mjs` to confirm minting works with the new key. (No redeploy needed; on-chain instruction exists.)
- - **Program upgrade authority**: `set-upgrade-authority` from the multisig to a new authority (only if cosigner set changes / compromise).
- - **EVM `AgentPayments` owner**: `transferOwnership(<newOwner>)` (OpenZeppelin `Ownable`) → verify `owner()` → record in `DEPLOYMENTS.md`.
- - **EVM registry owners**: same `transferOwnership` toward the 3-of-5 Safe per `specs/SECURITY.md` roadmap (document commands + the per-chain list; mark execution as the follow-up task).
- - **Validator key** (`VALIDATOR_PRIVATE_KEY`): rotate via `scripts/erc8004/provision-validator-key.mjs`, `addValidator(new)` / `removeValidator(old)` per chain; align with `specs/SECURITY.md` V4.
-6. **Record new authorities.** Update `contracts/skill-license/DEPLOYMENT.md` and `contracts/agent-invocation` docs with the multisig as the new upgrade authority (and the admin/minter split), and add/point to the new runbook from `contracts/DEPLOYMENTS.md`. Keep all key material out of the repo — names and roles only.
-7. **Changelog?** Custody migration is security infra users care about. Append a holder-readable `data/changelog.json` entry (tags: `security`, `infra`) — e.g. "On-chain program upgrade authority moved to a multisig; key-rotation procedures published" — then `npm run build:pages`. (If you judge it purely internal, skip per CLAUDE.md; security custody generally qualifies.)
-
-## Definition of done
-- [ ] Contract tests pass (`forge test` / `anchor test`); changes documented.
-- [ ] Deployed addresses recorded + bytecode-verified where applicable; SDK address files updated.
-- [ ] User-visible/holder-relevant → `data/changelog.json` entry + `npm run build:pages`.
-- [ ] `git diff` self-reviewed.
-
-## Verification
-- `solana program show <PROGRAM_ID>` reports the **multisig vault** as `Upgrade Authority` for both programs (devnet proven, mainnet for `skill_license`).
-- A test upgrade (no-op) executes only after multisig threshold approval; an upgrade attempt signed by the old deployer key fails.
-- `skill_license` minter rotation rehearsed end-to-end on devnet via `scripts/skill-license-smoke.mjs` (re-runnable, exits non-zero on failure) — admin signs `set_minter`, new minter mints successfully.
-- EVM: `cast call <AgentPayments> "owner()(address)"` matches the documented owner; `transferOwnership` commands in the runbook are copy-paste correct (dry-run with `cast call`/`estimate`).
-- `KEY_ROTATION.md` has an executable, verified path for every secret; no secret value appears in the repo (`git diff` review).
-
-## Guardrails
-- No mocks. Real testnet first, then mainnet. Never paste a real third-party mint/creator/holder address; use $THREE CA or a synthetic placeholder.
-- Never commit private keys/secrets. Stage explicit paths; re-check `git status`. Push only when asked, to BOTH remotes.
-- Treat upgrade authority and minter keys as secrets; document rotation. The one-time `set-upgrade-authority` transfer needs the current authority key present — use it for the transfer, then retire it; never leave it as a live fallback.
diff --git a/prompts/production-ready/00-README.md b/prompts/production-ready/00-README.md
deleted file mode 100644
index ec0a3319e..000000000
--- a/prompts/production-ready/00-README.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# Production-Ready — road to $1B program
-
-> **Read this file in full before starting any prompt in this folder.** Every prompt
-> here (`01-*` … `40-*`) assumes the context below. Do not re-derive it. Each prompt
-> is self-contained and meant to be run in its own fresh chat.
-
-## What this is
-
-A sequenced program of work to take **three.ws** from "feature-rich but uneven" to
-**production-grade and ready to scale to a $1B platform**. Each numbered file is a
-single, self-contained task you can paste into a new agent chat. They are grouped
-into phases. Run them roughly in order — later phases assume earlier ones are done —
-but any single prompt can be run independently.
-
-This is not a feature-invention program (that lives in the sibling folders:
-`feature-innovation/`, `moonshots/`, `inventions/`, etc.). This program is about
-**finishing, hardening, and polishing what already exists** so the platform is
-correct, reliable, fast, accessible, secure, observable, and conversion-optimized.
-
-## The bar (non-negotiable — applies to every prompt)
-
-Every prompt inherits the operating rules in **`/CLAUDE.md`**. Re-read it. The rules
-that matter most for this program:
-
-- **No mocks, no fake data, no placeholders, no TODOs, no stubs.** If you touch it,
- finish it. Real APIs, real endpoints, real data.
-- **No "good enough."** Fix mediocrity the moment you see it.
-- **No errors without solutions.** Every error has a root cause; find it and fix it.
- Ship working fallbacks and failsafes, never lazy propagation.
-- **Every state is designed** — loading, empty, error, populated, overflow.
-- **The only coin is `$THREE`** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
- Never reference any other coin anywhere. See `/CLAUDE.md` for the two
- runtime-data-only mechanical exceptions.
-- **Definition of done**: the checklist in `/CLAUDE.md` must be true. If you can't
- verify a step, say so explicitly — do not claim done.
-
-## How to run a prompt
-
-1. Open a fresh chat in this repo.
-2. Paste the contents of the prompt file (or reference it: "Execute
- `prompts/production-ready/NN-*.md`").
-3. Let the agent work end-to-end. It should use `TodoWrite` for multi-step work,
- exercise the feature in a real browser for UI work, and run the relevant tests.
-4. When it reports done, spot-check against the prompt's **Acceptance** section.
-5. Commit + push when satisfied (the agent will push to **both** remotes —
- `threeD` and `threews` — per `/CLAUDE.md`).
-
-## Repository orientation (so every prompt starts from truth)
-
-- **`STRUCTURE.md`** maps every product surface to its directory. Read it before
- exploring the ~60 top-level dirs.
-- Frontend: vanilla JS modules + Vite (`npm run dev`, port 3000).
- `pages/*.html` (125 pages), `src/`, `public/`.
-- Backend: Vercel functions in `api/` (~960 handlers), Cloudflare workers in
- `workers/`. Config in `vercel.json` (routes, functions, crons, env).
-- Shared backend libs live in **`api/_lib/`** — know these before adding new ones:
- resilience `resilience.js` (cockatiel) + `db-retry.js`; rate limiting
- `rate-limit.js` + `redis.js` + `redis-usage.js`; HTTP helpers `http.js` +
- `http-params.js`; auth `auth.js`/`account-auth.js`/`zauth.js`/`skill-access.js`;
- data `db.js` + `schema.sql` + `migrations/`; env `env.js`; observability
- `sentry.js` + `usage.js`; health `forge-health.js`/`llm-health.js`/
- `provider-health.js` (+ `api/healthz.js`); the x402 family
- (`x402-paid-endpoint.js`, `x402-spending-cap.js`, `x402-spending-ledger.js`,
- `x402-solana-confirm.js`, `x402-errors.js`, …). **Reuse these, don't reinvent.**
-- 3D: Three.js + glTF/GLB. Avatar/animation pipeline under `public/animations/`,
- `src/glb-canonicalize.js`, `src/animation-retarget.js`.
-- Tests: `npm test` = `vitest run && playwright test`. `npm run test:all` also runs
- `test:pages`. `npm run lint` (eslint), `npm run typecheck` (tsc on jsconfig).
-- Changelog: user-visible changes get an entry in `data/changelog.json`, then
- `npm run build:pages` regenerates `CHANGELOG.md` + `public/changelog.{json,xml}`.
-- Existing audit tooling you should lean on, not reinvent:
- `npm run audit:deploy`, `audit:pages`, `audit:handlers`, `audit:web`, `audit:mcp`,
- `check:images`, `seo:meta`, `verify`, `verify:solana`, `verify:onchain`,
- `smoke:onchain`, `smoke:mcp`.
-- Resilience policy (memory): prefer vetted OSS (cockatiel) over hand-rolling; add
- hardening to new/unprotected paths rather than refactoring working code.
-
-## Phases
-
-**Phase 0 — Foundation (stop the platform from lying about "done")**
-- `01` Test suite green + CI gate
-- `02` Dead paths & broken links — every button works, every link resolves
-- `03` Zero console errors/warnings across all pages
-- `04` No-mocks / no-placeholders sweep (~400 marker files)
-- `05` Secrets & env hygiene
-
-**Phase 1 — Cross-cutting production hardening**
-- `06` Error handling & resilience (api/ + workers/)
-- `07` Security hardening (authz, input validation, headers)
-- `08` Rate limiting & abuse prevention
-- `09` Accessibility (WCAG 2.2 AA)
-- `10` Performance & Core Web Vitals
-- `11` Mobile responsiveness (320 / 768 / 1440)
-- `12` Every state designed (loading / empty / error)
-- `13` Design-system consistency (tokens, spacing, typography)
-- `14` SEO & structured data
-
-**Phase 2 — Product surface completeness (each end-to-end)**
-- `15` Forge (text/image → 3D)
-- `16` Marketplace
-- `17` Agent profiles & economy
-- `18` Wallet & x402 payments
-- `19` Walk companion & feature tour
-- `20` Scene Studio
-- `21` Avatar creator / Character Studio
-- `22` Pump.fun launch & $THREE surfaces
-- `23` MCP servers (production-ready)
-- `24` SDK publishing & docs
-
-**Phase 3 — Scale, infra, observability**
-- `25` Observability (logging, metrics, error tracking)
-- `26` Database integrity & migrations
-- `27` Deploy pipeline & rollback safety
-- `28` Uptime monitoring & public status page
-- `29` Load & stress testing
-
-**Phase 4 — Growth to $1B**
-- `30` Onboarding & activation funnel
-- `31` Home / landing conversion
-- `32` Pricing & monetization surfaces
-- `33` Growth analytics instrumentation
-- `34` Developer experience & docs site
-- `35` Referral & virality loops
-- `36` Trust, safety & moderation
-- `37` Legal, compliance, ToS & privacy
-- `38` i18n completion
-- `39` PWA & notifications
-- `40` Launch-readiness review (the final gate)
-
-## Prompt anatomy
-
-Each file has: **Why this matters for $1B**, **Mission**, **Map** (where things
-live), **Do this** (ordered steps), **Must-not** (guardrails), and **Acceptance**
-(a checklist that must be all-true before claiming done). Trust the Map but verify —
-files move; if a path is stale, find the real one and proceed. Never stop because a
-path was wrong.
-
-> Note: this folder was authored alongside a parallel set under `prompts/road-to-1b/`.
-> If both exist, reconcile to a single canonical folder before running the program.
diff --git a/prompts/production-ready/01-test-suite-green-and-ci-gate.md b/prompts/production-ready/01-test-suite-green-and-ci-gate.md
deleted file mode 100644
index 04ed2e4cd..000000000
--- a/prompts/production-ready/01-test-suite-green-and-ci-gate.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 01 — Test suite green + CI gate
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `tests/`, `package.json` scripts, CI config (`.github/workflows/` if present), `vitest`/`playwright` config.
-**Depends on:** nothing — this runs first.
-
-## Why this matters for $1B
-A platform you can't trust to be green is a platform you can't ship to fast. Every
-later prompt assumes a green baseline so regressions are visible. Investors and
-enterprise customers read CI status as a proxy for engineering discipline.
-
-## Mission
-Get the entire test suite passing reliably, eliminate flakes, and enforce green on
-every push so the bar can never silently drop.
-
-## Map
-- `npm test` → `vitest run && playwright test`
-- `npm run test:all` → `npm run test && npm run test:pages`
-- `npm run test:core`, `test:gate`, `test:e2e`, `test:pages`
-- `npm run lint` (eslint `.`), `npm run typecheck` (`tsc -p jsconfig.json`)
-- 237 files under `tests/`. Smoke suites: `smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`.
-- CI: check `.github/workflows/` — wire the gate there.
-
-## Do this
-1. Run `npm run lint`, `npm run typecheck`, `npm test`, `npm run test:pages` and
- capture the full failure list. Triage into: real bugs, stale tests, flakes,
- environment/credential gaps.
-2. Fix **real bugs in the code**, not the tests, wherever a test correctly catches a
- defect. Where a test is genuinely stale (asserts removed behavior), update it and
- note why in the commit.
-3. For tests that need credentials/network: gate them on env presence so they skip
- cleanly (not fail) when creds are absent locally, but **run** in CI where creds
- exist. Never delete coverage to make green.
-4. Hunt flakes: anything timing-dependent, animation-dependent, or ordering-dependent
- in Playwright. Add deterministic waits (`expect(...).toPass`, role/text locators),
- remove arbitrary sleeps. Re-run the suspect specs 5× to confirm stability.
-5. Ensure `npm run typecheck` and `npm run lint` are clean. Fix the code; only
- disable a rule inline with a justifying comment when the rule is genuinely wrong
- for that line.
-6. Wire/confirm a CI workflow that runs lint + typecheck + `test:all` on every push
- and PR to `main`, and **blocks merge on failure**. If `.github/workflows/` is
- absent, create one. Cache `node_modules` and the Playwright browser install.
-7. Add a short `tests/README.md` (or update it) explaining how to run each suite and
- which need credentials.
-
-## Must-not
-- Do not weaken assertions, `.skip` real tests, or set `--passWithNoTests` to fake green.
-- Do not commit credentials to make CI pass — use CI secrets.
-- Do not introduce `setTimeout`-based waits in Playwright.
-
-## Acceptance
-- [ ] `npm run lint` — clean.
-- [ ] `npm run typecheck` — clean.
-- [ ] `npm test` and `npm run test:pages` — green locally (creds-gated suites skip cleanly with a logged reason).
-- [ ] Suspect flaky specs pass 5/5 reruns.
-- [ ] CI workflow runs lint + typecheck + test:all on push/PR and blocks on red.
-- [ ] `git diff` reviewed; every changed test justified.
diff --git a/prompts/production-ready/02-dead-paths-and-broken-links.md b/prompts/production-ready/02-dead-paths-and-broken-links.md
deleted file mode 100644
index ad0c00101..000000000
--- a/prompts/production-ready/02-dead-paths-and-broken-links.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 02 — Dead paths & broken links
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `pages/*.html` (125 pages), `public/`, `src/`, nav (`public/nav.js`, `public/nav.css`), routing in `vercel.json`.
-**Depends on:** none.
-
-## Why this matters for $1B
-Nothing destroys trust faster than a button that does nothing or a link that 404s.
-`/CLAUDE.md`: "If a button exists, it must work. If a link exists, it must go
-somewhere. If a state exists, there must be a way to reach it." This is table stakes.
-
-## Mission
-Audit every interactive element and link across the whole site. Every one resolves
-to a working destination or a real action. Zero dead ends.
-
-## Map
-- 125 pages in `pages/`. Shared nav in `public/nav.js` / `public/nav.css`.
-- Route map in `vercel.json` (`routes`). Page index in `data/pages.json`.
-- Existing helpers: `npm run audit:pages`, `npm run audit:web`, `npm run check:images`.
-
-## Do this
-1. Build a link/route inventory: every `href`, `<a>`, `onclick`, `data-href`,
- `<button>` handler, and `fetch()` target across `pages/`, `src/`, `public/`. A
- script in `scripts/` (kept, not throwaway, or deleted after) that crawls the built
- site is acceptable — wire it as `npm run audit:links` if useful.
-2. For every internal link/route: confirm the target exists in `pages/`/`public/`
- and is reachable via `vercel.json` routes. Fix broken targets — create the page,
- fix the path, or remove the link if the destination was never meant to exist.
-3. For every external link: confirm it resolves (200/redirect, not 404/dead domain).
- Replace or remove dead ones. External links open with `rel="noopener"`.
-4. For every button/interactive control: confirm it has a real handler that does
- real work. Any control wired to nothing, to a `// TODO`, to an `alert()`, or to a
- no-op gets implemented or removed. No decorative buttons.
-5. Confirm every nav entry (desktop + mobile menu) points somewhere live and is
- reachable on small screens (cross-check with prompt `11`).
-6. Confirm 404 handling: a real, branded 404 page that helps the user recover
- (search, links home, top destinations) — not a blank or default.
-7. Re-run `audit:pages` / `audit:web` and resolve every finding.
-
-## Must-not
-- Do not "fix" a broken link by pointing it at the homepage as a catch-all. Find the
- intended destination or remove the link.
-- Do not leave any `href="#"`, `href="javascript:void(0)"`, or empty handler in place.
-
-## Acceptance
-- [ ] Zero broken internal links/routes (audit script clean).
-- [ ] Zero dead external links.
-- [ ] Every button/control performs real work or is removed.
-- [ ] Branded, helpful 404 page exists and is wired in `vercel.json`.
-- [ ] `npm run audit:pages` and `audit:web` pass.
-- [ ] Spot-checked in a real browser across 8–10 representative pages incl. mobile nav.
diff --git a/prompts/production-ready/03-zero-console-errors.md b/prompts/production-ready/03-zero-console-errors.md
deleted file mode 100644
index 4f4c903a7..000000000
--- a/prompts/production-ready/03-zero-console-errors.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 03 — Zero console errors & warnings
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** all `pages/`, `src/`, `public/` runtime JS; `public/error-reporter.js`.
-**Depends on:** `02` (dead paths) helps; not strictly required.
-
-## Why this matters for $1B
-`/CLAUDE.md` Definition of done: "No console errors. No console warnings from your
-code." Console noise hides real failures and signals sloppiness to any engineer who
-opens devtools — including the ones doing technical diligence.
-
-## Mission
-Drive the browser console to zero errors and zero own-code warnings on every page,
-in both themes, desktop and mobile viewports.
-
-## Map
-- 125 pages in `pages/`. Shared scripts in `public/` (`nav.js`, `x402.js`,
- `x402-pay-core.js`, etc.) and modules in `src/`.
-- `public/error-reporter.js` already captures runtime errors — use it as a signal
- source, and make sure it itself is silent on the happy path. It pairs with the
- server-side `api/_lib/sentry.js` sink (prompt `25`).
-- `npm run dev` serves on port 3000.
-
-## Do this
-1. Start `npm run dev`. Write/extend a Playwright sweep (in `scripts/` or
- `tests/`) that visits every page, in light and dark theme, at 390px and 1440px,
- and records every `console.{error,warning}` and every failed network request.
-2. Categorize: own-code bugs, third-party library noise, missing assets (404s),
- uncaught promise rejections, hydration/order issues, CSP violations.
-3. Fix own-code errors and warnings at the root cause. Common culprits: accessing
- DOM before load, missing null guards, deprecated APIs, passing wrong types,
- unhandled rejections from `fetch`. Wire proper guards and error boundaries at the
- network/user-input edges.
-4. Fix every 404 asset (images, fonts, modules, source maps). Cross-check with
- `npm run check:images`.
-5. For unavoidable third-party warnings, document them in a short allowlist the
- sweep can ignore — but justify each entry; do not use the allowlist to bury your
- own noise.
-6. Confirm `error-reporter.js` reports real errors to its backend and produces no
- output on clean pages.
-
-## Must-not
-- Do not silence errors by wrapping in empty `try/catch`. Handle or surface them.
-- Do not suppress warnings by monkey-patching `console`.
-
-## Acceptance
-- [ ] Playwright console sweep: 0 errors, 0 own-code warnings across all pages × 2 themes × 2 viewports.
-- [ ] 0 failed network requests for first-party assets.
-- [ ] 0 uncaught promise rejections.
-- [ ] Third-party allowlist (if any) is documented and justified.
-- [ ] Sweep wired as a repeatable script and runs in CI.
diff --git a/prompts/production-ready/04-no-mocks-no-placeholders-sweep.md b/prompts/production-ready/04-no-mocks-no-placeholders-sweep.md
deleted file mode 100644
index 14780220b..000000000
--- a/prompts/production-ready/04-no-mocks-no-placeholders-sweep.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 04 — No-mocks / no-placeholders sweep
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `src/`, `api/`, `public/`, `pages/` — anywhere a placeholder, mock, stub, or fake-data path ships to production.
-**Depends on:** none.
-
-## Why this matters for $1B
-`/CLAUDE.md` hard rules 1–6: no mocks, no fake data, no placeholders, no TODO
-comments, no stub functions, no `throw new Error("not implemented")`, no
-`setTimeout` fake-loading, no fallback sample arrays in production. There are ~400
-files in `src/api/public/pages` matching placeholder/TODO/mock markers. Each is a
-small lie that compounds.
-
-## Mission
-Find every production code path that fakes, stubs, or defers, and replace it with a
-real implementation wired to real data/APIs — or delete it if it should not exist.
-
-## Map
-- Start from: `grep -rn "TODO\|FIXME\|not implemented\|coming soon\|placeholder\|sampleAgents\|mock\|setTimeout(.*loading\|stub" src api public pages` (filter out node_modules).
-- Real APIs in use: Pump.fun feed, Solana RPC, OpenAI/Anthropic via worker proxies,
- x402 endpoints. Credentials live in `.env` / `vercel env` (read via `api/_lib/env.js`).
-
-## Do this
-1. Enumerate all matches. Triage each into: (a) production code that must be real,
- (b) legitimate test fixtures/mocks (those stay — they belong in `tests/`), (c)
- dead code to delete, (d) genuine config comments (keep).
-2. For (a): implement the real thing. Wire to the real API/endpoint. If a credential
- is missing, locate it in `.env` / `vercel env`; if truly absent, implement the
- real integration and surface a clear, designed error/empty state when the
- dependency is unavailable — never a fake success.
-3. Replace any `const sample... = [...]` fallback shipped to the client with a real
- fetch plus a designed empty state (see prompt `12`).
-4. Replace `setTimeout` fake-loading / fake progress with real async indicators tied
- to actual request lifecycle.
-5. Delete `// TODO`, `// implement later`, commented-out code, and stub functions —
- by implementing them, not by deleting the comment and leaving the gap.
-6. Convert any `throw new Error("not implemented")` into a working implementation.
-7. Re-run the grep until the only remaining matches are legitimate test fixtures and
- justified config comments. Document any intentional remaining marker.
-
-## Must-not
-- Do not move a mock from `src/` into `public/` to dodge the grep. Remove the fakery.
-- Do not delete a feature's UI to avoid implementing its backend — implement it.
-- Do not touch the legitimate `tests/` mocks (those are correct).
-
-## Acceptance
-- [ ] Grep for production placeholders/mocks/stubs/TODOs returns only test fixtures and justified config comments.
-- [ ] Every former placeholder path now fetches/uses real data with designed loading/empty/error states.
-- [ ] No `setTimeout` fake-loading remains in shipped code.
-- [ ] No fallback sample arrays shipped to clients.
-- [ ] `npm test` green; affected pages exercised in a real browser with real network calls.
diff --git a/prompts/production-ready/05-secrets-and-env-hygiene.md b/prompts/production-ready/05-secrets-and-env-hygiene.md
deleted file mode 100644
index 2033d6acc..000000000
--- a/prompts/production-ready/05-secrets-and-env-hygiene.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 05 — Secrets & env hygiene
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `.env*`, `vercel.json` (`env`), `api/`, `workers/`, `.gitignore`, `api/_lib/env.js`, anything reading `process.env`.
-**Depends on:** none. Run early — a leaked key is a $1B-killer.
-
-## Why this matters for $1B
-A single leaked private key (Solana parent secret, RPC key, bot token) can drain
-funds and end the company. Diligence teams scan git history for secrets. This must be
-airtight.
-
-## Mission
-Guarantee no secret is committed, every secret is loaded from the environment with a
-clear failure when missing, and the set of required env vars is documented and
-validated at boot.
-
-## Map
-- Env access is centralized in **`api/_lib/env.js`** — extend it, don't scatter
- `process.env` reads.
-- Required secrets referenced across the codebase include (verify the live set):
- `THREEWS_SOL_PARENT_SECRET_BASE58`, Solana RPC keys, `TELEGRAM_BOT_TOKEN`,
- `TELEGRAM_CHANGELOG_CHAT_ID`, OpenAI/Anthropic keys (via worker proxies), x402
- facilitator config, Upstash Redis (`api/_lib/redis.js`), Sentry DSN
- (`api/_lib/sentry.js`).
-- `vercel.json` has an `env` block. Functions in `api/`, workers in `workers/`.
-
-## Do this
-1. Scan the working tree **and git history** for committed secrets (use
- `git log -p` filtered, or a tool like gitleaks/trufflehog run locally). Treat any
- hit as an incident: rotate the key, purge if feasible, and document.
-2. Confirm `.gitignore` excludes `.env`, `.env.*` (except `.env.example`), key files,
- and any wallet keypair JSON. Add what's missing.
-3. Create/maintain a complete `.env.example` listing **every** env var the app reads,
- grouped by surface, with a one-line description and whether it's required. Derive
- the list by grepping `process.env.` across `api/`, `workers/`, `src/`, `scripts/`.
-4. Extend `api/_lib/env.js` so that, on cold start, it asserts required vars are
- present and fails loud with a precise message naming the missing var — never a
- silent undefined that 500s later. Migrate direct `process.env` reads to go through it.
-5. Ensure secrets are read server-side only. Grep `public/` and client `src/` for any
- secret-looking value or `VITE_`-exposed secret that should be server-only. Move
- them behind an API route or worker proxy.
-6. Confirm the AI provider keys are only ever used via the worker proxies, never
- shipped to the client (per `/CLAUDE.md` stack notes).
-7. Document secret rotation steps in `docs/` (where to rotate each, blast radius).
-
-## Must-not
-- Do not print secrets in logs or error messages.
-- Do not commit a real key even to `.env.example` — use obvious placeholders.
-- Do not expose any secret via a `VITE_`/client-bundled var.
-
-## Acceptance
-- [ ] git history + working tree scanned; zero live secrets present (rotations done if found).
-- [ ] `.gitignore` covers all secret/keypair patterns.
-- [ ] `.env.example` is complete and grouped, derived from actual `process.env` usage.
-- [ ] `api/_lib/env.js` validates required vars at boot, naming each missing one; reads centralized.
-- [ ] No secret reachable from the client bundle.
-- [ ] Rotation runbook written in `docs/`.
diff --git a/prompts/production-ready/06-error-handling-and-resilience.md b/prompts/production-ready/06-error-handling-and-resilience.md
deleted file mode 100644
index 0f2b87580..000000000
--- a/prompts/production-ready/06-error-handling-and-resilience.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# 06 — Error handling & resilience
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/` (~960 handlers), `workers/`, `api/_lib/`, client fetch wrappers in `src/`/`public/`.
-**Depends on:** `04` (no fake fallbacks).
-
-## Why this matters for $1B
-At scale, dependencies fail constantly — RPC nodes time out, providers rate-limit,
-pump.fun hiccups. A $1B platform degrades gracefully and self-heals. `/CLAUDE.md`:
-"No errors without solutions. Ship working fallbacks and failsafes. Lazy error
-propagation is not engineering."
-
-## Mission
-Every external call has timeout, retry-with-backoff, circuit-breaking where
-appropriate, and a designed failure path. Every handler returns correct status codes
-and structured errors. No unhandled rejections.
-
-## Map
-- Resilience helpers already exist: **`api/_lib/resilience.js`** (cockatiel —
- retry/circuit-breaker/timeout policies) and **`api/_lib/db-retry.js`** for DB. Reuse
- and extend these — do not hand-roll retry loops.
-- Error shaping/sanitizing exists: `api/_lib/x402-errors.js`,
- `api/_lib/mcp-error-sanitize.js`. Build the uniform error contract on these.
-- Real upstreams: Solana RPC (recent hardening: "never forward an unvalidated Solana
- RPC body through failover" — see git log; `api/solana-rpc.js`), Pump.fun feed,
- OpenAI/Anthropic worker proxies, x402 facilitator (`api/_lib/x402-*`).
-- Precedent: `api/x402-checkout.js` ATA-probe hardening against malformed RPC replies
- — match that rigor.
-
-## Do this
-1. Inventory every outbound call in `api/` and `workers/`. For each, confirm:
- explicit timeout, bounded retry with jittered backoff (`resilience.js`), and a
- circuit-breaker for hot paths that hammer a flaky upstream.
-2. Migrate unprotected callers to the shared `resilience.js`/`db-retry.js` policies
- (additive — don't churn already-protected code, per memory guidance). Add a shared
- resilient RPC/fetch wrapper in `api/_lib/` if one doesn't already cover the case.
-3. Validate and defensively parse every upstream response. Never assume shape;
- malformed replies must not throw raw — they map to a clean error or a safe
- default. (Generalize the x402 ATA-probe and Solana-failover patterns.)
-4. Standardize API error responses on `x402-errors.js`/`mcp-error-sanitize.js`-style
- sanitization: correct HTTP status, a stable `{ error: { code, message } }` shape,
- no stack traces or secrets leaked to clients. Log full detail server-side (prompt
- `25`).
-5. Add a top-level handler wrapper that catches unhandled rejections/exceptions per
- request and converts them to a clean 5xx with a request id.
-6. Client side: every `fetch` has a timeout + abort, and surfaces a designed,
- actionable error state (ties to prompt `12`). Add retry on idempotent GETs.
-7. Add tests for the failure paths: simulate timeouts, 429s, malformed JSON, partial
- responses. Confirm graceful degradation, not crashes.
-
-## Must-not
-- Do not swallow errors silently or return `200` with empty data on failure.
-- Do not leak stack traces, internal URLs, or secrets in error responses.
-- Do not retry non-idempotent writes blindly (risk of double-spend/double-mint).
-
-## Acceptance
-- [ ] Every external call has timeout + bounded retry via `resilience.js`; hot paths have circuit-breakers.
-- [ ] Previously-unprotected handlers migrated to the shared resilient helpers.
-- [ ] All upstream responses defensively parsed; malformed input handled, never thrown raw.
-- [ ] Uniform sanitized error responses with correct status codes; no leaks.
-- [ ] Failure-path tests added and green.
-- [ ] No unhandled promise rejections (cross-check prompt `03`).
diff --git a/prompts/production-ready/07-security-hardening.md b/prompts/production-ready/07-security-hardening.md
deleted file mode 100644
index 837db2e0d..000000000
--- a/prompts/production-ready/07-security-hardening.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# 07 — Security hardening
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/`, `workers/`, auth libs in `api/_lib/`, `vercel.json` (headers/routes), wallet/payment paths.
-**Depends on:** `05` (secrets), `06` (error handling). Pairs with `08` (rate limiting).
-
-## Why this matters for $1B
-This platform custodies wallets and moves money (x402, $THREE, skill purchases). One
-authz bug = drained funds = dead company. Security is the difference between a
-fundable platform and a liability.
-
-## Mission
-Close every authn/authz gap, validate every input, set hardening headers, and ensure
-money-moving paths are airtight. Run a real security review and fix what it finds.
-
-## Map
-- Auth libs: `api/_lib/auth.js`, `account-auth.js`, `zauth.js`, `irl-auth.js`,
- `world-service-auth.js`, `skill-access.js`. Ownership model:
- `agent_identities.user_id` is immutable, one agent = one owner (see
- `prompts/agent-wallets/00-README-orchestration.md`).
-- Money paths: `api/x402-*`, `api/_lib/x402-*` (`x402-paid-endpoint.js`,
- `x402-spending-cap.js`, `x402-spending-ledger.js`, `x402-solana-confirm.js`),
- `api/payments/*`, `api/pump/*`, `api/_lib/agent-wallet.js`/`solana-wallet.js`,
- `api/_lib/skill-license-onchain.js`.
-- `vercel.json` controls routes + can set headers. Repo has a `/security-review` skill.
-
-## Do this
-1. Run `/security-review` over the current state and triage findings by severity.
-2. **AuthZ on every mutating endpoint:** confirm the caller owns the resource (via the
- `api/_lib/auth.js` session, not a client-supplied id) before any write/withdraw/
- rebrand/spend. Audit `api/` for endpoints that trust client-supplied
- `user_id`/`agent_id`. Fix every one.
-3. **Input validation at boundaries:** validate/normalize every request body, query
- param, and path param (lengths, types, ranges, address formats, amount bounds)
- using the `api/_lib/http-params.js` helpers. Reject early with 400. Prevent
- injection (SQL/NoSQL/command), path traversal, SSRF (especially anywhere a URL is
- fetched on the user's behalf, incl. the Solana RPC failover path).
-4. **Money-path invariants:** amount sanity bounds, idempotency keys on
- transfers/mints to prevent double-spend, replay protection on signed requests,
- server-side recomputation of prices (never trust client-sent amounts). Use the
- spending-cap/ledger libs as the source of truth.
-5. **Security headers** via `vercel.json` or middleware: `Content-Security-Policy`
- (tightened, not `unsafe-inline` everywhere), `Strict-Transport-Security`,
- `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, frame controls
- for embeds (allow only intended embed routes).
-6. **CORS:** lock API CORS to known origins; don't reflect arbitrary `Origin`.
-7. **Dependency audit:** `npm audit` (and `--workspaces`); fix high/critical by
- upgrade. Document any accepted advisory with rationale.
-8. **Secrets in transit/logs:** confirm prompt `05` outcomes hold; no PII/secrets in
- logs (prompt `25`).
-9. Add regression tests for each fixed authz/validation hole.
-
-## Must-not
-- Do not trust any client-supplied identity, amount, or price.
-- Do not weaken CSP to "make something work" — fix the inline/eval cause.
-- Do not retry or replay money-moving requests without idempotency.
-
-## Acceptance
-- [ ] `/security-review` findings triaged and resolved (or risk-accepted with written rationale).
-- [ ] Every mutating endpoint verifies ownership/session server-side via `api/_lib/auth.js`.
-- [ ] All inputs validated at the boundary; injection/traversal/SSRF closed.
-- [ ] Money paths have amount bounds + idempotency + server-side price recomputation via the spending libs.
-- [ ] Hardening headers + locked CORS in place; CSP tightened.
-- [ ] `npm audit` clean of high/critical (or documented).
-- [ ] Regression tests cover the fixed holes; `npm test` green.
diff --git a/prompts/production-ready/08-rate-limiting-and-abuse.md b/prompts/production-ready/08-rate-limiting-and-abuse.md
deleted file mode 100644
index 92c65d5e4..000000000
--- a/prompts/production-ready/08-rate-limiting-and-abuse.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 08 — Rate limiting & abuse prevention
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/`, `workers/`, the shared limiter in `api/_lib/rate-limit.js` + `api/_lib/http.js`, Upstash Redis usage (`api/_lib/redis.js`).
-**Depends on:** `07` (security hardening) · **Parallel-safe with:** `09`
-
-## Why this matters for $1B
-Every expensive call — text-to-3D, image gen, LLM proxy, Solana RPC, mint/launch —
-spends real GPU, model, and chain budget. Unmetered, one abuser (or a distributed
-flood) drains the spend cap, trips fail-closed lanes, and takes the platform down for
-everyone. Abuse = downtime = lost users and burned margin. Metering is what lets a free
-tier exist without bankrupting the business.
-
-## Mission
-Put per-identity and per-IP rate limits, per-tier quotas, and abuse defenses on every
-expensive or money-moving endpoint, standardized on the existing shared limiter.
-
-## Map
-- Shared limiter: `api/_lib/rate-limit.js` (Upstash `Ratelimit`, sliding-window,
- in-memory dev fallback, `FORGE_PAID_GLOBAL_HOURLY` platform ceiling, cost limiters
- that fail closed when Redis is unconfigured). Helpers `rateLimited` +
- `setRateLimitHeaders` (with `Retry-After`, RFC 9110 §10.2.3) live in `api/_lib/http.js`.
-- Health signal: `api/_lib/forge-health.js` already probes the rate-limiter store
- ("paid generation lanes fail closed" when it is down) — keep this accurate.
-- Cost-bearing endpoints: text-to-3D `api/forge.js` (already lane-aware via `rl` /
- `rateLimited`), image gen `api/_mcp3d/text-to-image.js` + `api/_mcp3d/vertex-imagen.js`,
- LLM proxy `api/llm/anthropic.js`, RPC `api/solana-rpc.js`, mint/launch under
- `api/pump/`, the x402 family via `api/_lib/x402-paid-endpoint.js` and `api/x402/`.
-
-## Do this
-1. Inventory every cost-bearing / money-moving handler in `api/` and `workers/`. For
- each, record who pays (GPU, model tokens, RPC credits, chain fees) and whether it
- already routes through `rateLimited` from `api/_lib/http.js`.
-2. Standardize on `api/_lib/rate-limit.js` — do not hand-roll new limiters. Add
- sliding-window limits keyed by authenticated identity first, then by IP. Never key
- off client-supplied identity (verify the session as `07` requires).
-3. Add per-tier quotas: a free tier and a higher-ceiling $THREE-holder tier. Keep the
- platform-wide circuit breaker (`FORGE_PAID_GLOBAL_HOURLY` and the x402 facilitator
- backstop) intact and env-tunable.
-4. Protect upload endpoints (size, MIME type, count) before any expensive processing.
-5. Add lightweight bot/abuse heuristics (burst detection, repeated-junk-payload
- rejection) and surface a clear `429` with `Retry-After` via `rateLimited`.
-6. Add tests under `tests/` simulating burst traffic against the limited endpoints,
- asserting `429` + `Retry-After` once the window is exhausted.
-
-## Must-not
-- Do not trust client-supplied identity for keying limits.
-- Do not silently drop requests — always return `429` with a reason and `Retry-After`.
-- Do not weaken the fail-closed behavior of the cost/money limiters when Redis is down.
-
-## Acceptance
-- [ ] Every expensive endpoint has a documented limit + per-tier quota, all routed
- through `api/_lib/rate-limit.js`.
-- [ ] `429` responses are designed (reason + `Retry-After`); upload guards in place.
-- [ ] Burst tests pass; `npm test` green; `npm run lint` + `npm run typecheck` clean.
-- [ ] Changelog `improvement`/`security` entry if user-visible.
diff --git a/prompts/production-ready/09-accessibility-wcag.md b/prompts/production-ready/09-accessibility-wcag.md
deleted file mode 100644
index 268964386..000000000
--- a/prompts/production-ready/09-accessibility-wcag.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# 09 — Accessibility (WCAG 2.2 AA)
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** all `pages/*.html`, `src/` UI components, `public/` shared UI (nav, modals, tour, walk companion).
-**Depends on:** `02` (dead paths). Pairs with `11`, `12`, `13`.
-
-## Why this matters for $1B
-Accessibility is required for enterprise/government sales, reduces legal risk, and is
-explicitly non-optional in `/CLAUDE.md`: "Semantic HTML. ARIA labels. Keyboard
-navigation. Sufficient color contrast. Focus indicators." It also just makes the
-product better for everyone.
-
-## Mission
-Bring the whole site to WCAG 2.2 AA: keyboard-operable, screen-reader-coherent,
-sufficient contrast, visible focus, respects reduced-motion.
-
-## Map
-- 125 pages in `pages/`. Shared interactive UI: `public/nav.js`, payment modals
- (`public/x402*.js`), feature tour (`src/feature-tour/`), walk companion
- (`src/walk-companion.js`, `walk-sdk/`).
-- Design tokens live in the global stylesheet (`public/` CSS, `style.css`) — fix
- contrast at the token level where possible (coordinate with prompt `13`).
-
-## Do this
-1. Run automated audits (axe-core / Lighthouse a11y) across every page; capture
- violations. Automated catches ~30% — also do manual keyboard + screen-reader
- passes on the top 15 flows (forge, marketplace, agent profile, wallet, checkout,
- tour, walk).
-2. **Semantic structure:** one `<h1>` per page, logical heading order, landmarks
- (`<nav> <main> <header> <footer>`), lists for lists, `<button>` for actions and
- `<a>` for navigation (no `<div onclick>`).
-3. **Keyboard:** every interactive element reachable and operable by keyboard in a
- logical tab order; no keyboard traps; modals/tour/menus trap focus while open and
- restore it on close; ESC closes overlays. Visible, high-contrast focus ring
- everywhere (never `outline: none` without a replacement).
-4. **Screen readers:** ARIA labels/roles on icon buttons, custom controls, tabs,
- dialogs, live regions for async updates (generation progress, toasts, balances).
- `alt` text on meaningful images; `aria-hidden` on decorative.
-5. **Contrast:** all text and UI states meet 4.5:1 (3:1 for large text/UI). Fix at
- the token level. Check both themes.
-6. **Forms:** every input has a programmatic label; errors are announced and
- associated with their field; required/invalid states are not color-only.
-7. **Motion:** honor `prefers-reduced-motion` for the tour, walk companion, 3D
- auto-orbit, and transitions.
-8. **3D canvases:** provide accessible alternatives/labels for `<model-viewer>` and
- custom canvases (name, description, keyboard orbit where feasible).
-9. Add an axe-core check to the Playwright page sweep so regressions fail CI.
-
-## Must-not
-- Do not remove focus outlines without an equally-visible replacement.
-- Do not use color as the only signal for state/errors.
-- Do not add ARIA that lies about state — incorrect ARIA is worse than none.
-
-## Acceptance
-- [ ] axe-core/Lighthouse a11y: 0 serious/critical violations across all pages.
-- [ ] Top 15 flows fully keyboard-operable; focus managed in all overlays.
-- [ ] Screen-reader pass on top flows is coherent (labels, roles, live regions).
-- [ ] All text/UI meets AA contrast in both themes (fixed at token level).
-- [ ] `prefers-reduced-motion` honored everywhere motion exists.
-- [ ] axe check wired into CI page sweep.
diff --git a/prompts/production-ready/10-performance-core-web-vitals.md b/prompts/production-ready/10-performance-core-web-vitals.md
deleted file mode 100644
index 2915d5dd0..000000000
--- a/prompts/production-ready/10-performance-core-web-vitals.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 10 — Performance & Core Web Vitals
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `vite.config.js`, `pages/`, `src/`, `public/`, 3D asset loading, build pipeline.
-**Depends on:** `03` (clean console). Pairs with `11`, `28`.
-
-## Why this matters for $1B
-A 3D-heavy platform that janks or loads slowly loses users at the door and ranks
-worse in search. `/CLAUDE.md`: "Performance by default. Lazy-load heavy modules.
-Don't ship jank." Speed is conversion is revenue is valuation.
-
-## Mission
-Hit good Core Web Vitals on every key page (LCP < 2.5s, INP < 200ms, CLS < 0.1 on a
-mid-tier device/throttled network) and keep heavy 3D from blocking first paint.
-
-## Map
-- Build: `vite.config.js`, scripts `build`, `build:fast`, `optimize:glb`,
- `compress:glbs`. GLB/CDN assets served via R2 (`npm run apply:r2-cors`).
-- Heavy modules: Three.js, `<model-viewer>` (+ `model-viewer-meshopt.js`),
- `character-studio/`, `src/scene-studio/`, walk/tour companions.
-
-## Do this
-1. Establish a baseline: run Lighthouse (mobile, throttled) on the top 15 pages.
- Record LCP/INP/CLS/TBT and bundle sizes. Set per-page budgets and a script to
- enforce them in CI.
-2. **JS:** code-split per route; lazy-load Three.js, model-viewer, character-studio,
- scene-studio, and other heavy modules so they never block initial render. Defer
- non-critical scripts. Tree-shake; remove dead imports (cross-check prompt `04`).
-3. **3D assets:** compress GLBs (`npm run compress:glbs` / `optimize:glb`), use Draco/
- meshopt, lazy-load models below the fold, show a lightweight poster/skeleton until
- the model is ready, and cap texture sizes. Never auto-load a heavy model the user
- can't see yet.
-4. **Images:** responsive `srcset`, modern formats (AVIF/WebP), explicit
- width/height to kill CLS, lazy-load offscreen images. Run `npm run check:images`.
-5. **Fonts:** `font-display: swap`, preload the critical face, subset if possible.
-6. **CSS:** inline critical CSS for above-the-fold; defer the rest. Remove unused CSS.
-7. **Caching:** correct `Cache-Control` for static assets (immutable hashed assets,
- sensible TTLs for data) via `vercel.json`. Confirm CDN/R2 caching for GLBs.
-8. **Layout stability:** reserve space for async content (models, images, embeds)
- to keep CLS near zero.
-9. **INP:** debounce input handlers, break up long tasks, avoid main-thread 3D work
- that blocks interaction; move heavy compute to workers where possible.
-10. Re-run Lighthouse; confirm budgets met. Wire the budget check into CI.
-
-## Must-not
-- Do not block first paint on Three.js or any 3D module.
-- Do not ship uncompressed GLBs or unsized images.
-- Do not regress accessibility (prompt `09`) for performance.
-
-## Acceptance
-- [ ] Top 15 pages: LCP < 2.5s, INP < 200ms, CLS < 0.1 (mobile, throttled).
-- [ ] Heavy modules (Three.js, model-viewer, studios) are lazy/code-split.
-- [ ] GLBs compressed (Draco/meshopt) and lazy-loaded with posters/skeletons.
-- [ ] Images responsive, sized, modern-format, lazy below fold.
-- [ ] Per-page performance budgets enforced in CI.
-- [ ] Lighthouse perf score ≥ 90 on key pages.
diff --git a/prompts/production-ready/11-mobile-responsiveness.md b/prompts/production-ready/11-mobile-responsiveness.md
deleted file mode 100644
index d3490c486..000000000
--- a/prompts/production-ready/11-mobile-responsiveness.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 11 — Mobile responsiveness
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** all `pages/*.html`, `src/` UI, `public/` shared UI + CSS, `solana-mobile/` touchpoints.
-**Depends on:** `02`, `13`. Pairs with `09`, `12`.
-
-## Why this matters for $1B
-Most first-touch traffic is mobile. Recent git history shows the tour and walk
-companion were "effectively broken on phones" until fixed — treat that as a signal
-that mobile coverage is uneven. A platform that breaks on phones can't go viral.
-
-## Mission
-Every page and flow works and looks intentional at 320px, 768px, and 1440px, with
-real touch targets and no horizontal scroll.
-
-## Map
-- 125 pages in `pages/`. Mobile-sensitive surfaces flagged in git history: feature
- tour (`src/feature-tour/`), walk companion (`src/walk-companion.js`), nav
- (`public/nav.js` — mobile menu), payment modals, forge (`pages/forge.html`).
-- Audio/interaction gotcha: mobile browsers block audio until a tap, and the
- permission resets per page — the tour already handles this; preserve that pattern.
-
-## Do this
-1. Sweep every page at 320 / 375 / 768 / 1024 / 1440 (Playwright device emulation +
- real-device spot checks). Capture: horizontal overflow, clipped content, unreadable
- text, overlapping elements, off-screen controls, tiny tap targets.
-2. Fix layout with fluid units, flex/grid, and `clamp()` — not fixed widths. Eliminate
- every source of horizontal scroll.
-3. **Tap targets ≥ 44×44px** with adequate spacing. Audit all icon buttons, tabs,
- close buttons, and dense control rows.
-4. **Reachability:** confirm every desktop action has a mobile equivalent. Any control
- that lives only in a collapsing desktop nav must also appear in the mobile menu
- (this exact bug hit the walk companion — re-audit for siblings).
-5. **Modals/sheets:** payment, share, settings, and tour overlays fit small screens,
- scroll internally if needed, and have phone-sized controls.
-6. **3D on mobile:** model-viewer/canvases are touch-orbitable, sized to viewport,
- and don't overheat/jank low-end devices; provide a lighter path if needed.
-7. **Forms/keyboards:** correct `inputmode`/`type`, no zoom-on-focus jump (16px+ font
- on inputs), visible submit above the on-screen keyboard.
-8. **Safe areas:** respect notches/home indicators (`env(safe-area-inset-*)`).
-9. Add mobile-viewport assertions (no overflow, tap-target size) to the Playwright
- sweep.
-
-## Must-not
-- Do not hide functionality on mobile instead of adapting it.
-- Do not ship sub-44px tap targets or fixed-width layouts.
-- Do not regress the tour's per-page audio-unlock handling.
-
-## Acceptance
-- [ ] Every page clean at 320/768/1440 — no horizontal scroll, no clipping/overlap.
-- [ ] All tap targets ≥ 44×44px with spacing.
-- [ ] Every desktop action reachable on mobile (incl. nav-collapsed controls).
-- [ ] Modals/overlays and 3D canvases usable on phones.
-- [ ] Forms behave with on-screen keyboards; safe areas respected.
-- [ ] Mobile-overflow + tap-target assertions in CI sweep.
diff --git a/prompts/production-ready/12-every-state-designed.md b/prompts/production-ready/12-every-state-designed.md
deleted file mode 100644
index a981b9f20..000000000
--- a/prompts/production-ready/12-every-state-designed.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 12 — Every state designed (loading / empty / error)
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** every data-driven view across `pages/`, `src/`, `public/`.
-**Depends on:** `04` (no fake fallbacks), `06` (error handling).
-
-## Why this matters for $1B
-`/CLAUDE.md`: "Every state is designed. A page with no data should tell the user what
-to do, not show a blank void." The gap between an adequate product and a $1B one is
-the accumulation of these moments — the empty state that converts, the error that
-recovers, the skeleton that reassures.
-
-## Mission
-Every async, list, and detail view has intentional loading, empty, error, and
-overflow states. No blank voids, no raw spinners where a skeleton belongs, no dead
-ends on failure.
-
-## Map
-- Data-driven surfaces: marketplace, launches feed, agent profiles, wallet/activity,
- bounties, communities, collections, gallery, forge results, search results.
-- Reuse/establish shared components for skeletons, empty states, and error states so
- every surface is consistent (coordinate with prompt `13`).
-
-## Do this
-1. Inventory every view that fetches or renders variable data. For each, define all
- four states: **loading**, **empty**, **error**, **populated** (+ overflow:
- pagination/virtualization for large lists).
-2. **Loading:** skeleton screens that match the populated layout (preferred over
- spinners), tied to real request lifecycle (no fake `setTimeout`).
-3. **Empty:** explain what this is, why it's empty, and the one clear next action
- (CTA) — e.g. "No agents yet — forge your first" with a button. Add a tasteful
- illustration/icon. Empty ≠ blank.
-4. **Error:** say what went wrong in human terms and offer recovery (Retry, go back,
- contact). Wire Retry to actually re-run the fetch. Never show raw error objects.
-5. **Overflow:** lists handle 0 / 1 / many / very-many (paginate or virtualize at
- scale per prompt `10`); long strings truncate with full value on hover/title;
- layouts survive extreme content.
-6. Build shared `Skeleton` / `EmptyState` / `ErrorState` primitives (or the
- vanilla-JS equivalent helpers) and adopt them everywhere for consistency.
-7. Verify each state in a real browser by forcing it (throttle, offline, empty
- account, error injection).
-
-## Must-not
-- Do not ship a bare spinner where a skeleton fits, or a blank area for empty.
-- Do not display raw stack traces / JSON errors to users.
-- Do not leave a Retry button that doesn't retry.
-
-## Acceptance
-- [ ] Every data view has designed loading, empty, error, and overflow states.
-- [ ] Loading uses layout-matched skeletons tied to real async.
-- [ ] Empty states have copy + a working CTA, not a void.
-- [ ] Error states are human and have working recovery actions.
-- [ ] Shared state primitives exist and are reused across surfaces.
-- [ ] States verified in-browser by forcing each one.
diff --git a/prompts/production-ready/13-design-system-consistency.md b/prompts/production-ready/13-design-system-consistency.md
deleted file mode 100644
index 99d575792..000000000
--- a/prompts/production-ready/13-design-system-consistency.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 13 — Design-system consistency
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** global CSS / design tokens (`style.css`, `public/*.css`), shared components, every page's styling.
-**Depends on:** none. Pairs with `09`, `11`, `12`.
-
-## Why this matters for $1B
-Consistency compounds into perceived quality. `/CLAUDE.md`: "Consistent spacing and
-typography. Use the existing design tokens / CSS variables." A site that uses the same
-spacing scale, type ramp, and component vocabulary everywhere reads as one premium
-product — not a pile of separately-built pages.
-
-## Mission
-One coherent design system: documented tokens, a consistent type/spacing/color scale,
-reusable components, and every page conformed to it. No ad-hoc magic numbers.
-
-## Map
-- Existing tokens: the forge page references `--space-md/lg/xl/2xl`, `--text-xs..xl`,
- `--ink`, `--ink-dim`, `--stroke`, `--surface-*`, `--radius-*`, `--font-display/
- body/mono`, `--leading-*`. Treat these as the canonical token set.
-- 125 pages in `pages/`, many with inline `<style>` blocks — the main source of drift.
-
-## Do this
-1. Catalog the existing tokens (the `--space/--text/--ink/--surface/--stroke/--radius/
- --font/--leading` families). If a token catalog doc doesn't exist, create
- `docs/design-system.md` documenting every token, its value, and when to use it.
-2. Audit pages for **hardcoded values** that should be tokens: raw px spacing, hex
- colors, font sizes, border radii, shadows. Replace with the nearest token; if no
- token fits, the scale has a gap — extend the scale deliberately, don't add a
- one-off.
-3. **Components:** identify repeated UI (buttons, cards, chips, tabs, modals, inputs,
- toasts, badges) re-implemented per page. Extract canonical, accessible, themeable
- versions and replace duplicates. Match hover/active/focus states everywhere.
-4. **Type & spacing rhythm:** enforce the type ramp and an 8pt-ish spacing scale
- site-wide. Fix inconsistent line-heights and vertical rhythm.
-5. **Color & theming:** both light and dark themes pass contrast (prompt `09`) and use
- only tokens. No hardcoded colors that break theming.
-6. **Microinteractions:** ensure consistent transition timing/easing tokens for
- hover/active/enter/exit (`/CLAUDE.md`: "Transitions matter"). Honor reduced-motion.
-7. Add a lint/check (stylelint or a custom scan) that flags hardcoded colors/spacing
- outside the token system, and wire it into CI.
-
-## Must-not
-- Do not introduce a parallel token set or rename existing tokens (breaks every page).
-- Do not add one-off magic numbers when a token exists.
-- Do not refactor working components purely for style — extract shared ones additively.
-
-## Acceptance
-- [ ] `docs/design-system.md` documents the full token set and components.
-- [ ] Hardcoded color/spacing/type values replaced with tokens (scale extended only deliberately).
-- [ ] Canonical reusable components extracted and adopted; duplicates removed.
-- [ ] Consistent hover/active/focus + transition tokens across the site.
-- [ ] Both themes consistent and contrast-passing.
-- [ ] Token-drift lint wired into CI.
diff --git a/prompts/production-ready/14-seo-and-structured-data.md b/prompts/production-ready/14-seo-and-structured-data.md
deleted file mode 100644
index b95f6b163..000000000
--- a/prompts/production-ready/14-seo-and-structured-data.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 14 — SEO & structured data
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `pages/` `<head>`s, `public/sitemap/`, `public/llms.txt`, `public/llms-full.txt`, `data/pages.json`, `scripts/build-page-index.mjs`, `npm run seo:meta`.
-**Depends on:** `10` (perf affects ranking). Pairs with `34`.
-
-## Why this matters for $1B
-Organic discovery is the cheapest growth channel and a durable moat. 293 pages across
-11 sections is a large surface to rank. Done right, search + AI-agent discovery
-(llms.txt) compounds for free.
-
-## Mission
-Every page is discoverable, correctly titled/described, share-ready, and emits valid
-structured data. The sitemap, llms.txt, and AI-discovery surfaces are complete and
-current.
-
-## Map
-- `npm run seo:meta` audits meta. `npm run build:pages` regenerates page index +
- sitemap + changelog from `data/pages.json` + `data/changelog.json`.
-- AI discovery: `public/llms.txt`, `public/llms-full.txt` (regenerated by build).
-- x402 endpoint discovery indexing is tracked separately (see memory
- `x402-discovery-indexing`) — don't duplicate that here, but cross-link.
-
-## Do this
-1. Run `npm run seo:meta` and fix every page missing or sharing a `<title>` /
- `<meta description>`. Titles unique, descriptive, < ~60 chars; descriptions
- compelling, < ~155 chars.
-2. **Open Graph + Twitter cards** on every page: `og:title/description/image/url/type`
- + `twitter:card` and a real share image (per-section default + per-entity dynamic
- for agents/launches/collections — see prompt `35`). Verify with a card validator.
-3. **Canonical URLs** on every page; resolve duplicate-content (trailing slash, query
- params) via canonical + `vercel.json` redirects.
-4. **Structured data (JSON-LD):** `Organization`/`WebSite` site-wide;
- `BreadcrumbList` on nested pages; `Product`/`Offer` on marketplace/skill pages;
- `Article` on blog posts; `SoftwareApplication` on SDK pages. Validate with the Rich
- Results test.
-5. **Sitemap:** confirm `public/sitemap/` includes every public page with sane
- priorities and `lastmod`; submit-ready. `robots.txt` correct (allow public, block
- private/API, point to sitemap).
-6. **llms.txt / llms-full.txt:** ensure they describe the full product surface and
- stay regenerated by `build:pages`. This is how agents discover the platform — keep
- it first-class.
-7. **Semantic + perf:** correct heading hierarchy (shared with prompt `09`), fast LCP
- (prompt `10`), and crawlable content (no JS-only critical content where avoidable).
-8. Wire `seo:meta` into CI so a page can't ship without meta.
-
-## Must-not
-- Do not duplicate titles/descriptions across pages.
-- Do not reference any coin other than `$THREE` in any meta/structured data/share copy.
-- Do not block crawlers from public pages or expose private/API routes in the sitemap.
-
-## Acceptance
-- [ ] `npm run seo:meta` clean — every page unique title + description.
-- [ ] OG/Twitter tags + share images on every page; validated.
-- [ ] Canonicals + redirects resolve duplicate content.
-- [ ] Valid JSON-LD on org/breadcrumb/product/article/SDK pages (Rich Results passes).
-- [ ] Complete sitemap + correct robots.txt.
-- [ ] llms.txt/llms-full.txt complete and regenerated by build.
-- [ ] `seo:meta` enforced in CI.
diff --git a/prompts/production-ready/15-forge-end-to-end.md b/prompts/production-ready/15-forge-end-to-end.md
deleted file mode 100644
index 98a8899a9..000000000
--- a/prompts/production-ready/15-forge-end-to-end.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# 15 — Forge, end-to-end
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `pages/forge.html`, the forge API lane (`api/forge.js`, `api/forge-*.js`, `api/_mcp3d/*`), `forge_free`/`mesh_forge`/`rig_mesh`/`forge_avatar` MCP tools, viewer (`avatar-sdk/`).
-**Depends on:** `06`, `08`, `12`. Pairs with `21`, `23`.
-
-## Why this matters for $1B
-Forge is the product's "wow" — text/photos → a textured 3D model in the browser. It's
-the top-of-funnel magic that makes people screenshot and share. It must feel
-instant, reliable, and delightful, with zero dead ends.
-
-## Mission
-Make the full forge flow production-grade: input → generation → preview → rig →
-download/AR/share, every mode, every state, on every device.
-
-## Map
-- UI: `pages/forge.html` (full-width layout; modes: Describe it / From photos /
- sketch-when-live). Stage uses `<model-viewer>`; idle teaser shows a live community
- model.
-- Backend: `api/forge.js` (lane-aware, rate-limited), plus `api/forge-poster.js`,
- `forge-og.js`, `forge-gameready.js`, `forge-rembg.js`, `forge-gallery.js`,
- `forge-enhance.js`, `forge-categorize.js`; image gen in `api/_mcp3d/`. Health:
- `api/_lib/forge-health.js`.
-- Engines: free NVIDIA NIM / TRELLIS lane (`forge_free`), `mesh_forge` chain,
- auto-rig (`rig_mesh`, `forge_avatar`). Catalog gating hides engines with no live
- worker (note the hidden sketch tab).
-- Auto-rig universality rules: `/CLAUDE.md` "Avatar animation is universal" +
- `src/glb-canonicalize.js`, `src/animation-retarget.js`.
-
-## Do this
-1. Exercise every mode end-to-end with real generations: text→3D, photos→3D, and
- sketch (only if a live worker exists — otherwise keep it correctly hidden, no dead
- tab). Confirm real API calls succeed with real data.
-2. **Generation lifecycle:** real progress tied to the actual job (no fake bars), with
- honest stages (queued → generating → texturing → rigging → ready). Handle slow
- jobs, timeouts, and partial failures with retry (prompt `06`) — never a hung spinner.
-3. **Preview:** orbit, zoom, AR, and lighting all work; mobile touch-orbit smooth;
- poster/skeleton until model loads (prompt `10`, `api/forge-poster.js`); model framed
- nicely by default.
-4. **Auto-rig:** generated humanoids drive the canonical clip library (idle/walk,
- legs included) per the universality rule; non-humanoid props fall back cleanly to
- the default rig — never a bind-pose T-pose. Verify with a couple of distinct rigs.
-5. **Output actions:** download GLB, view in AR, open in viewer, save to account, and
- share (with a real OG image of the model via `api/forge-og.js`) — every button does
- real work.
-6. **States:** designed loading/empty/error (prompt `12`); rate-limit + upgrade path
- for the free lane (prompt `08`); clear messaging when an engine is down
- (`forge-health.js`).
-7. **Cross-wiring:** a forged model links into the rest of the platform — save to
- profile, list on marketplace, use as an agent avatar, launch flow. Wire those
- connections (`/CLAUDE.md`: "A marketplace that doesn't link to agent profiles is
- half-built").
-8. Add tests for the prepare/generate/rig API paths and a Playwright happy-path.
-
-## Must-not
-- Do not show fake progress or fake "done" on failure.
-- Do not leave a generated model with no next action.
-- Do not hardcode a curated rig allowlist — extend `glb-canonicalize.js` for new skeletons.
-
-## Acceptance
-- [ ] Every visible mode produces a real model end-to-end; hidden modes stay hidden until live.
-- [ ] Honest progress lifecycle; timeouts/partial failures recover with retry.
-- [ ] Preview (orbit/zoom/AR) works desktop + mobile with poster/skeleton.
-- [ ] Auto-rig drives canonical clips on humanoids; clean fallback for props.
-- [ ] Download / AR / save / share / list-on-marketplace all work and cross-link.
-- [ ] Designed states + free-lane rate limiting; API + Playwright tests green.
diff --git a/prompts/production-ready/16-marketplace-end-to-end.md b/prompts/production-ready/16-marketplace-end-to-end.md
deleted file mode 100644
index cfaffa083..000000000
--- a/prompts/production-ready/16-marketplace-end-to-end.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# 16 — Marketplace, end-to-end
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `marketplace/`, `pages/marketplace*.html`, skill APIs (`api/skills/*`, `api/_lib/skill-*.js`), `prompts/monetization/` outcomes.
-**Depends on:** `12`, `17`, `18`. Pairs with `32`.
-
-## Why this matters for $1B
-A marketplace is a flywheel: creators list, buyers buy, both stick. Marketplace
-GMV is the headline metric a $1B 3D-agent platform is valued on. It must be
-trustworthy, fast, searchable, and conversion-optimized.
-
-## Mission
-A complete, polished marketplace: browse → discover → evaluate → purchase → own →
-use, with sorting/filtering/search, real listings, and airtight purchase flows.
-
-## Map
-- `marketplace/` dir + `pages/` marketplace surfaces. Skill purchase + on-chain
- licenses: `api/skills/*`, `api/_lib/skill-access.js`, `skill-license-onchain.js`,
- `skill-nft.js`, `skill-price-cache.js`, `skill-pricing-rules.js`, `skill-runtime.js`;
- `contracts/skill-license/` (each purchased skill = a 1/1 SPL NFT + `SkillLicense`
- PDA). Existing monetization prompts: `prompts/monetization/`.
-
-## Do this
-1. **Discovery:** listings load from real data with sorting (price, recency,
- popularity, rating) and filtering (category, price range, chain, creator). Add
- real search with sensible relevance. `/CLAUDE.md` innovation standard: if list
- views lack sorting, add it.
-2. **Listing detail:** rich, accurate detail page — 3D preview, description, price,
- creator (links to agent profile, prompt `17`), reviews/ratings if present,
- ownership state. Every claim backed by real data.
-3. **Purchase flow:** end-to-end with real payments (x402 / Solana Pay, prompt `18`).
- States: prepare → pay → confirming (poll) → owned. Idempotent, replay-safe,
- server-side price via `skill-pricing-rules.js`/`skill-price-cache.js` (prompt `07`).
- On success, the buy button becomes "Owned" and the skill/asset is actually usable.
-4. **Ownership & licenses:** reflect on-chain `SkillLicense` state truthfully (via
- `skill-license-onchain.js` / `skill-access.js`); gate access by the real license,
- handle pending/confirmed/failed clearly.
-5. **Creator side:** list/edit/unlist flows, pricing, and creator analytics (sales,
- revenue, views) — real data, designed empty states for new creators.
-6. **Trust & safety:** report/flag listings, basic content checks (ties to prompt
- `36`), and clear refund/dispute messaging where relevant.
-7. **States & scale:** designed loading/empty/error (prompt `12`); paginate/virtualize
- large catalogs (prompt `10`); 0/1/many handled.
-8. Add E2E tests for browse + purchase (build on `prompts/monetization/23-*`).
-
-## Must-not
-- Do not show listings from sample arrays — real data only.
-- Do not trust client-sent prices; recompute server-side.
-- Do not mark a purchase complete before on-chain/payment confirmation.
-- Do not reference any coin other than `$THREE` in copy (runtime user-launched mints in launch feeds are the allowed exception).
-
-## Acceptance
-- [ ] Browse with working sort + filter + search over real listings.
-- [ ] Listing detail accurate, with 3D preview and creator link.
-- [ ] Purchase flow end-to-end with real payment, idempotent, correct states, real ownership unlock.
-- [ ] License/ownership reflects on-chain truth; access gated correctly.
-- [ ] Creator list/edit/unlist + analytics work with designed empty states.
-- [ ] Report/flag + scale handling present; E2E purchase test green.
diff --git a/prompts/production-ready/17-agent-profiles-and-economy.md b/prompts/production-ready/17-agent-profiles-and-economy.md
deleted file mode 100644
index ccf51b6fd..000000000
--- a/prompts/production-ready/17-agent-profiles-and-economy.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# 17 — Agent profiles & economy
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `pages/agent-*.html` (detail, economy, exchange, trade, studio, wallet, embed), `api/agents/*`, agent identity/reputation (`contracts/`, ERC-8004), AgenC reads.
-**Depends on:** `16`, `18`. Pairs with `15`, `22`.
-
-## Why this matters for $1B
-Every avatar is an autonomous agent with its own wallet and identity. The agent
-profile is the canonical "place" an agent lives — its storefront, reputation, wallet,
-and activity. This is the social + economic graph that makes the platform defensible.
-
-## Mission
-A complete, beautiful, deeply-wired agent profile and economy: identity, wallet,
-launches, skills, reputation, activity, and agent-to-agent interactions — all real,
-all cross-linked.
-
-## Map
-- Pages: `agent-detail.html`, `agent-economy.html`, `agent-exchange.html`,
- `agent-trade.html`, `agent-studio.html`, `agent-wallet.html`, `agent-embed.html`.
-- Backend: `api/agents/*` (incl. `fork.js`), `api/_lib/avatar-agent.js`,
- `api/_lib/agent-wallet.js`, `solana-wallet.js`, `avatar-wallet.js`. Ownership model
- is in `prompts/agent-wallets/00-README-orchestration.md` (one agent = one owner,
- `user_id` immutable, fork mints a fresh wallet). Reputation: ERC-8004 in
- `contracts/`, `agent_reputation` tool. AgenC reads via MCP.
-
-## Do this
-1. **Profile page:** 3D avatar (animated, not T-pose), name/vanity, owner, bio,
- reputation, wallet summary, skills owned/offered, launches, and activity — all from
- real data. Designed empty states for new agents (prompt `12`).
-2. **Identity & ownership:** display lineage (`meta.forked_from`) honestly; "Fork"
- action mints a new owned agent + fresh wallet (never copies secrets). Only the
- owner sees owner-only controls.
-3. **Wallet surface:** balances (Solana + EVM), tip, withdraw (owner-only), spend
- limits, activity — wired to the real custodial wallet. Respect every backend
- invariant (do not change them). Build on `prompts/agent-wallets/` outcomes.
-4. **Economy:** agent's launches ($THREE-only promotion rules; user-launched mints in
- the launch feed are the runtime-data exception), skills for sale (links to
- marketplace, prompt `16`), trades/exchange, and earnings.
-5. **Reputation:** surface ERC-8004 reputation truthfully; explain how it's earned;
- no fabricated scores.
-6. **Agent-to-agent:** delegation/invocation surfaces (`agent_delegate_action`,
- agent-invocation contract) where present — make them real and legible.
-7. **Cross-wiring:** marketplace listings link here; launches link here; the walk/
- tour avatars can be these agents; embeds (`agent-embed.html`) render the live
- profile. Wire every connection.
-8. **Embed/share:** shareable profile with real OG image of the agent; embeddable
- `<agent-3d>` card.
-9. Tests for profile data, fork ownership invariants, and wallet authz.
-
-## Must-not
-- Do not violate ownership invariants or expose owner-only controls to non-owners.
-- Do not copy wallet secrets on fork.
-- Do not show fabricated reputation/earnings; real on-chain/DB data only.
-- Do not reference any coin other than `$THREE` outside the allowed runtime launch-feed exception.
-
-## Acceptance
-- [ ] Profile renders animated avatar + real identity/wallet/skills/launches/activity with designed empty states.
-- [ ] Fork mints a fresh owned agent + wallet; lineage shown; secrets never copied.
-- [ ] Wallet actions (tip/withdraw/limits) work and enforce owner-only authz.
-- [ ] Economy + reputation surfaces show real data and cross-link to marketplace/launches.
-- [ ] Agent-to-agent delegation/invocation surfaces are real where present.
-- [ ] Shareable/embeddable profile works; tests for ownership + authz green.
diff --git a/prompts/production-ready/18-wallet-and-x402-payments.md b/prompts/production-ready/18-wallet-and-x402-payments.md
deleted file mode 100644
index a4edb40a0..000000000
--- a/prompts/production-ready/18-wallet-and-x402-payments.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# 18 — Wallet & x402 payments
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `api/x402-*`, `api/x402/*`, `api/_lib/x402-*`, `public/x402*.js`, `x402-buildout/`, `x402-modal-sdk/`, `x402-payment-modal/`, `agent-payments-sdk/`, wallet libs in `api/_lib/`.
-**Depends on:** `06`, `07`, `08`. Pairs with `16`, `17`.
-
-## Why this matters for $1B
-Payments are the revenue spine. x402 makes the platform machine-payable by other
-agents — a structural advantage. Wallets custody real funds. Both must be flawless;
-a payment bug is unforgivable and a valuation risk.
-
-## Mission
-Production-grade wallet + x402 payments: discoverable paid endpoints, reliable
-checkout, correct accounting, idempotency, and a beautiful pay UX on every device.
-
-## Map
-- Checkout: `api/x402-checkout.js` (recently hardened ATA probe against malformed RPC).
- Paid-endpoint wrapper: `api/_lib/x402-paid-endpoint.js`. Settlement confirm:
- `api/_lib/x402-solana-confirm.js`. Spend safety: `x402-spending-cap.js`,
- `x402-spending-ledger.js`, `x402-spending-price.js`, `x402-prices.js`. Errors:
- `x402-errors.js`. Buyers: `x402-buyer-fetch.js`/`x402-buyer-axios.js`. Pay-by-name:
- `api/x402/pay-by-name.js` + SNS.
-- Core client: `public/x402-pay-core.js`, `public/x402.js`. Modal SDKs:
- `x402-modal-sdk/`, `x402-payment-modal/`.
-- Discovery indexing (CDP Bazaar / x402scan / 402index) is tracked in memory
- `x402-discovery-indexing` — keep endpoints indexable; reuse the verifier script.
-- Default network is Solana (memory `solana-default-network`); Base/EVM secondary.
-
-## Do this
-1. **Checkout reliability:** confirm the full prepare → pay → verify → fulfill path
- is resilient (timeouts, retries, malformed-RPC defenses via prompt `06`; generalize
- the ATA-probe hardening). Idempotency keys so a retry never double-charges or
- double-fulfills (prompt `07`), backed by `x402-spending-ledger.js`.
-2. **Accounting correctness:** server recomputes amounts (`x402-spending-price.js`/
- `x402-prices.js`); verify settlement on-chain (`x402-solana-confirm.js`) before
- fulfilling; reconcile pending/confirmed/failed states; no fulfill-before-pay.
- Respect the spending cap.
-3. **Pay UX:** the modal SDK shows clear amount, network, recipient, and live status;
- QR + wallet-deeplink; designed loading/confirming/success/error/timeout states;
- phone-sized and accessible (prompts `09`, `11`, `12`).
-4. **Pay-by-name:** `*.threews.sol` resolution works end-to-end; clear errors for
- unresolvable names.
-5. **Wallet surface:** balances, history, send/withdraw (owner-only), spend limits —
- real custodial wallet (`api/_lib/agent-wallet.js`/`solana-wallet.js`), all backend
- invariants preserved. Fund/onramp path works (USDC). Build on the wallet skills.
-6. **Discoverability:** ensure paid endpoints publish correct x402 payment
- requirements and are indexed (run the verifier from the memory note); list them on
- a public "paid services" page so agents and humans can find them.
-7. **SDK quality:** `agent-payments-sdk/` + modal SDKs build, are documented, and
- have a working example. Publish-ready (coordinate with prompt `24`).
-8. Failure-path + idempotency tests; extend `tests/x402-checkout-prepare.test.js`.
-
-## Must-not
-- Do not fulfill before on-chain/payment confirmation.
-- Do not trust client-supplied amounts/recipients; recompute/verify server-side.
-- Do not retry payments without idempotency keys.
-- Do not reference any coin other than `$THREE`; arbitrary user-supplied mints in
- generic plumbing are the allowed runtime exception.
-
-## Acceptance
-- [ ] Checkout resilient + idempotent end-to-end; no double-charge/fulfill under retry.
-- [ ] Settlement verified on-chain before fulfillment; states reconciled; cap respected.
-- [ ] Pay modal: clear, accessible, mobile-ready, all states designed.
-- [ ] Pay-by-name resolves; wallet balances/history/withdraw/limits/onramp work owner-only.
-- [ ] Paid endpoints publish correct x402 requirements and are indexed (verifier passes).
-- [ ] Payment SDKs build, documented, with a working example.
-- [ ] Failure + idempotency tests green.
diff --git a/prompts/production-ready/19-walk-companion-and-tour.md b/prompts/production-ready/19-walk-companion-and-tour.md
deleted file mode 100644
index e96221c76..000000000
--- a/prompts/production-ready/19-walk-companion-and-tour.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# 19 — Walk companion & feature tour
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `walk-sdk/`, `src/walk-companion.js`, `src/walk-playground.js`, `src/feature-tour/`, `tour-sdk/`, `page-agent-sdk/`.
-**Depends on:** `09`, `11`, `12`. Pairs with `30` (onboarding).
-
-## Why this matters for $1B
-The walking 3D guide that strolls the live site and narrates features is a signature,
-screenshot-worthy differentiator and a powerful onboarding device. Recent git history
-shows both the tour and walk companion were broken on phones and only just fixed —
-this surface needs to be bulletproof and genuinely delightful.
-
-## Mission
-Make the walk companion and feature tour flawless and delightful across all devices:
-reliable narration, smooth avatar locomotion, accessible controls, and a tour that
-actually teaches the product.
-
-## Map
-- Walk companion (corner mascot + full-page playground + avatar picker): `walk-sdk/`,
- `src/walk-companion.js`, `src/walk-playground.js`. Published as `@three-ws/walk`.
-- Feature tour (avatar walks the live site narrating features):
- `src/feature-tour/{director,controls,free-roam,guide-avatar,narrator}.js`,
- `tour-sdk/`. Page-agent drop-in: `page-agent-sdk/` (`<page-agent>`).
-- Mobile audio gotcha (already solved — preserve): browsers block audio until a tap,
- permission resets per page; tour unlocks on first tap and shows a "tap for voice"
- cue, then re-speaks the current stop. Launchable from home via "Take the tour".
-
-## Do this
-1. **Tour content & flow:** the script visits real, current features in a logical
- order and explains *why each matters to the user* — not just "this is X." Re-audit
- stops against the live site so nothing points to a moved/removed feature.
-2. **Narration:** per-page audio unlock works on iOS/Android; clear waiting cue;
- re-speaks current stop; captions/transcript for accessibility and muted contexts
- (prompt `09`). Voice off/on persists.
-3. **Locomotion:** the guide avatar walks (legs animated via the canonical clip
- library, per `/CLAUDE.md`), pathing is smooth, and free-roam doesn't clip through
- layout or wander off-screen. Honor reduced-motion.
-4. **Controls:** play/pause/next/prev/skip/close with phone-sized tap targets,
- keyboard operable, focus-managed (prompts `09`, `11`).
-5. **Walk companion:** corner mascot summonable on desktop **and** mobile (the mobile
- "Walk with me" switch must stay reachable — this exact reachability bug already
- bit it). Idle wander without a mouse; tap opens the full playground.
-6. **Avatar picker:** diverse, real avatars; user can choose; choice persists.
-7. **SDK quality:** `walk-sdk`, `tour-sdk`, `page-agent-sdk` build, are documented,
- and have working embed examples (`examples/`). Publish-ready (prompt `24`).
-8. **Performance:** lazy-load the 3D/companion so it never blocks first paint (prompt
- `10`); throttle on low-end devices.
-9. Tests: tour stop integrity, audio-unlock logic, mobile reachability, SDK build.
-
-## Must-not
-- Do not regress the per-page audio-unlock or the mobile summon switch.
-- Do not let the guide T-pose or clip through the page.
-- Do not block first paint loading the companion.
-
-## Acceptance
-- [ ] Tour visits current features, explains user value, with captions/transcript.
-- [ ] Narration unlocks per page on iOS/Android; controls accessible + phone-sized.
-- [ ] Guide walks with animated legs, smooth pathing, reduced-motion respected.
-- [ ] Walk companion summonable on desktop + mobile; avatar picker works and persists.
-- [ ] walk/tour/page-agent SDKs build, documented, with working examples.
-- [ ] Companion lazy-loaded; tests green.
diff --git a/prompts/production-ready/20-scene-studio.md b/prompts/production-ready/20-scene-studio.md
deleted file mode 100644
index 921261691..000000000
--- a/prompts/production-ready/20-scene-studio.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 20 — Scene Studio
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `src/scene-studio/` (`→ /scene`), its vendored three.js editor, GLB import/export, materials/lights.
-**Depends on:** `10`, `12`. Pairs with `15`, `21`.
-
-## Why this matters for $1B
-Scene Studio turns three.ws from "make one avatar" into "compose worlds" — a creation
-surface that increases time-in-product, output value, and shareability. A polished
-3D editor is a credibility signal for a 3D platform.
-
-## Map
-- `src/scene-studio/` — vendored `mrdoob/three.js` r184 editor (MIT, see
- `src/scene-studio/vendor/README.md` + `vendor/LICENSE`). Route `/scene`. Import GLBs,
- compose scenes, edit materials/lights, export.
-
-## Do this
-1. **Round-trip integrity:** import a GLB → edit → export → re-import yields the same
- scene. Verify across several real GLBs (forged models, avatars, club props).
- Materials, transforms, lights, and hierarchy survive the round-trip.
-2. **Editor UX polish:** the vendored editor is upstream — wrap it in three.ws
- chrome (nav, theme, design tokens per prompt `13`) so it feels native, not a
- bolted-on tool. Consistent controls and shortcuts.
-3. **Save/load:** scenes persist to the user's account (real backend), with a gallery
- of saved scenes, autosave/draft recovery, and designed empty/loading/error states
- (prompt `12`). No data loss on refresh/crash.
-4. **Performance:** lazy-load the editor bundle (it's heavy — prompt `10`); handle
- large scenes without locking the main thread; cap/compress on export.
-5. **Cross-wiring:** import avatars/agents and forged models directly; export to the
- viewer, to an agent profile background, or to a shareable scene page. Add the
- connections (`/CLAUDE.md` cross-pollination).
-6. **Share/embed:** a saved scene gets a shareable URL + OG image + embeddable viewer.
-7. **Mobile:** at minimum, scenes are *viewable* and shareable on mobile even if full
- editing is desktop-first; communicate that clearly rather than breaking (prompt
- `11`).
-8. **Licensing/attribution:** preserve the vendored three.js editor MIT attribution
- (`vendor/LICENSE`, `vendor/README.md`).
-9. Tests for import/export round-trip and save/load.
-
-## Must-not
-- Do not lose user work on refresh/crash — autosave.
-- Do not ship the editor without lazy-loading (it's large).
-- Do not strip vendored license/attribution.
-
-## Acceptance
-- [ ] GLB import→edit→export→re-import round-trips faithfully on real models.
-- [ ] Editor wrapped in native three.ws chrome/theme; consistent controls.
-- [ ] Save/load to account with gallery, autosave, and designed states.
-- [ ] Editor bundle lazy-loaded; large scenes don't lock the UI.
-- [ ] Import from forge/avatars + export to viewer/profile/share wired.
-- [ ] Shareable/embeddable scene pages; attribution preserved; round-trip tests green.
diff --git a/prompts/production-ready/21-avatar-creator-character-studio.md b/prompts/production-ready/21-avatar-creator-character-studio.md
deleted file mode 100644
index 1378b7463..000000000
--- a/prompts/production-ready/21-avatar-creator-character-studio.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 21 — Avatar creator / Character Studio
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `character-studio/`, `avatar-sdk/` (viewer + React creator), `pages/avatar-*.html`, `pages/create*.html`, animation pipeline (`public/animations/`, `src/glb-canonicalize.js`, `src/animation-retarget.js`).
-**Depends on:** `10`, `12`, `13`. Pairs with `15`, `17`, `19`.
-
-## Why this matters for $1B
-The avatar is the atomic unit of the platform — every agent, every wallet, every
-launch starts with one. Creating an avatar must be fast, joyful, and produce a rigged,
-animated, usable model that flows into the rest of the product.
-
-## Map
-- Full creator app: `character-studio/` (fork of M3-org/CharacterStudio, MIT — keep
- attribution in `character-studio/LICENSE`). Viewer + React creator: `avatar-sdk/`
- (`@three-ws/avatar`, `<agent-3d>` web component, `/react` `/creator` subpaths).
-- Pages: `avatar-edit/page/embed/studio`, `create*`, `create-selfie`, `creating`.
-- Animation universality: `/CLAUDE.md` "Avatar animation is universal — no rig
- allowlist"; mappings in `src/glb-canonicalize.js` (cover new skeletons in
- `tests/glb-canonicalize.test.js`), retarget in `src/animation-retarget.js`.
-
-## Do this
-1. **Creation paths:** every entry (build from parts, from a selfie, from forge,
- upload your own GLB) works end-to-end and yields a rigged, animated avatar.
- Reconcile the many `create*` pages — remove dead/duplicate flows, keep the canonical
- ones reachable (prompt `02`).
-2. **Rig universality:** any humanoid upload drives the canonical clip library (idle/
- walk, legs included) via bone-name canonicalization; new skeleton conventions get a
- mapping + test case — never a curated allowlist, never a bind-pose T-pose. Verify
- with avatars from several sources (Mixamo, Avaturn, VRM, Ready-Player-like).
-3. **Editor UX:** native three.ws chrome/theme (prompt `13`); real-time preview;
- accessible controls; mobile-aware (prompt `11`). Character-studio fork wrapped so
- it feels first-party.
-4. **Save & ownership:** saving creates an owned agent + custodial wallet (per the
- ownership model); editing someone else's forks correctly (fresh wallet, lineage).
- Designed empty/loading/error states (prompt `12`).
-5. **Output & cross-wiring:** finished avatar flows to: agent profile, walk/tour guide,
- marketplace listing, embed (`<agent-3d>`), and launch. Wire each connection.
-6. **Performance:** lazy-load the heavy creator; compress exported GLBs; smooth on
- mid-tier devices (prompt `10`).
-7. **SDK quality:** `avatar-sdk` builds, documented, with working web-component +
- React examples (`examples/`); publish-ready (prompt `24`).
-8. Tests: extend `tests/glb-canonicalize.test.js` for any new rig; save→own→fork
- invariants; viewer render.
-
-## Must-not
-- Do not hardcode a rig allowlist — extend `glb-canonicalize.js` + add a test case.
-- Do not let any humanoid fall back to a T-pose.
-- Do not copy wallet secrets on fork; do not strip the CharacterStudio MIT attribution.
-
-## Acceptance
-- [ ] Every creation path produces a rigged, animated, owned avatar; dead create-flows removed.
-- [ ] Humanoids from multiple rig sources animate (legs included); new skeletons covered by tests.
-- [ ] Creator feels first-party (theme/chrome), accessible, mobile-aware.
-- [ ] Save creates owned agent + wallet; fork mints fresh wallet + lineage.
-- [ ] Avatar flows into profile/tour/marketplace/embed/launch.
-- [ ] avatar-sdk builds + documented + examples; canonicalize/ownership tests green.
diff --git a/prompts/production-ready/22-pumpfun-and-three-token.md b/prompts/production-ready/22-pumpfun-and-three-token.md
deleted file mode 100644
index 27c8f2851..000000000
--- a/prompts/production-ready/22-pumpfun-and-three-token.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 22 — Pump.fun launch & $THREE surfaces
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `api/pump/*`, `pump-fun-skills/`, `packages/pumpfun-mcp/`, `packages/three-token-mcp/`, `pages/bulk-launch.html`, launch feeds, $THREE surfaces, sniper/oracle workers (`workers/`).
-**Depends on:** `06`, `07`, `08`, `18`. Pairs with `16`, `17`.
-
-## Why this matters for $1B
-The launch + token economy is a major engagement and revenue surface, and $THREE is
-the platform's only coin and a core narrative. These surfaces must be rock-solid,
-honest, and strictly compliant with the one-coin rule.
-
-## Map
-- Launch backend: `api/pump/*`, `pump-fun-skills/`. Bulk: `pages/bulk-launch.html`.
- Launch feed: `/launches`, `/api/pump/launches` over `pump_agent_mints`. MCP:
- `packages/pumpfun-mcp/`, `packages/three-token-mcp/`. Snapshot: `pump_snapshot` tool.
-- Workers: `worker:oracle`, `worker:sniper` (`workers/`), deploy via `deploy:sniper`;
- `npm run pump:smoke`, `pump:refresh-idls`.
-- **$THREE only.** CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Two
- runtime-data exceptions only: (1) generic launcher accepting a user-supplied mint at
- runtime; (2) platform launch directories rendering user-launched mints from our own
- records. Never hardcode/market/recommend any non-$THREE mint anywhere.
-
-## Do this
-1. **Coin-rule audit FIRST:** grep the whole surface (code, copy, tests, fixtures,
- metadata) for any coin reference that isn't $THREE or a clearly-synthetic
- placeholder. Remove every one — treat like a leaked secret. Confirm the two
- runtime exceptions are the *only* places non-$THREE mints appear, and only from
- live records / user input.
-2. **Launch flow:** create/launch end-to-end with real pump.fun integration and real
- payment (prompt `18`); honest progress and confirmation; idempotent so a retry
- never double-launches. Designed states (prompt `12`).
-3. **Bulk launch:** `bulk-launch.html` handles batches with per-item status, partial
- failure recovery, and clear accounting — no silent drops.
-4. **Launch feed:** `/launches` + agent-profile launch history render real records
- from `pump_agent_mints`; link to agent profiles (prompt `17`); designed empty state.
-5. **$THREE surfaces:** any $THREE price/holders/snapshot data is real (via
- `pump_snapshot`/RPC), resilient (prompt `06`), and never fabricated. Token-gating
- (if used) checks real balances.
-6. **Workers:** oracle + sniper run reliably with the resilience patterns (timeouts,
- retries, circuit-breakers via `api/_lib/resilience.js`), proper logging/alerting
- (prompt `25`), and safe shutdown. Never blind-retry trades (idempotency, prompt
- `07`). `pump:smoke` passes.
-7. **MCP tools:** `pumpfun-mcp` + `three-token-mcp` build, are documented, return
- correct structured output, and are smoke-tested (`smoke:mcp`).
-8. Tests: launch idempotency, feed rendering, coin-rule grep as a CI guard.
-
-## Must-not
-- Do not reference, hardcode, market, or recommend any coin other than $THREE
- anywhere outside the two runtime-data exceptions.
-- Do not paste any real third-party mint/creator/holder address in tests/fixtures.
-- Do not double-launch or blind-retry trades.
-
-## Acceptance
-- [ ] Coin-rule grep clean; non-$THREE mints appear only in the two runtime exceptions; CI guard added.
-- [ ] Launch + bulk-launch end-to-end, idempotent, with honest states and partial-failure recovery.
-- [ ] Launch feed renders real records and links to profiles; designed empty state.
-- [ ] $THREE data real + resilient; token-gating checks real balances.
-- [ ] Oracle + sniper workers resilient, logged/alerted, idempotent; `pump:smoke` passes.
-- [ ] pumpfun-mcp + three-token-mcp build + documented + smoke-tested; tests green.
diff --git a/prompts/production-ready/23-mcp-servers-production.md b/prompts/production-ready/23-mcp-servers-production.md
deleted file mode 100644
index 1d3102bec..000000000
--- a/prompts/production-ready/23-mcp-servers-production.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 23 — MCP servers, production-ready
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** `mcp-server/`, `mcp-bridge/`, `packages/*-mcp/` (avatar-agent, pumpfun, ibm-watsonx, ibm-x402, three-token, threews-avatar), the 3d-agent MCP tool surface (`api/_lib/mcp-dispatch.js`, `mcp-error-sanitize.js`).
-**Depends on:** `06`, `07`, `08`, `18`. Pairs with `24`.
-
-## Why this matters for $1B
-MCP is how every AI agent in the world plugs into three.ws. A clean, paid, discoverable
-MCP surface makes the platform infrastructure other products build on — the highest-
-multiple position to occupy. The free `forge_free` lane is the wedge.
-
-## Map
-- Servers: `mcp-server/` (`@three-ws/mcp-server`), `mcp-bridge/`, and the
- `packages/*-mcp/` set. Dispatch/error libs: `api/_lib/mcp-dispatch.js`,
- `mcp-error-sanitize.js`. Tooling: `npm run audit:mcp`, `smoke:mcp`, `test:mcp`,
- `publish:mcp`(`:dry`).
-- Tool surface (3d-agent-local): `forge_free` (free), `text_to_avatar`, `mesh_forge`,
- `rig_mesh`, `forge_avatar`, `ens_sns_resolve`, `agent_delegate_action`,
- `sentiment_pulse`, `get_pose_seed`, `pump_snapshot`, `agent_reputation`,
- `vanity_grinder`, `aixbt_intel`, `aixbt_projects`, AgenC reads. Paid tools quote USDC
- and require an x402 payment payload in `_meta` (v2 transport); missing payment →
- `PaymentRequired` structuredContent.
-
-## Do this
-1. **Spec conformance:** every server speaks current MCP transport correctly; each
- tool has accurate name, description (incl. USDC price for paid), and a strict input
- schema with validation. Errors return proper MCP error shapes via
- `mcp-error-sanitize.js`, never crashes.
-2. **Free vs paid:** `forge_free` works with no wallet/key and returns a GLB URL +
- viewer link. Paid tools return correct `PaymentRequired` structuredContent without
- payment and fulfill correctly with a valid x402 payload (prompt `18`). Server-side
- price authority (prompt `07`).
-3. **Resilience & limits:** every tool wraps its upstreams with timeouts/retries
- (prompt `06`) and is rate-limited/abuse-guarded (prompt `08`). No tool can hang a
- client.
-4. **Discoverability:** tools/servers are discoverable (bazaar/x402 indexing, memory
- `x402-discovery-indexing`); a public catalog page lists them with prices and
- examples.
-5. **Docs & examples:** each server has a README with install + config (Claude Desktop/
- Code config snippet), env requirements, and a runnable example per tool. Keep
- `STRUCTURE.md` + `PUBLISHING.md` accurate.
-6. **Audit/smoke/tests:** `npm run audit:mcp`, `smoke:mcp`, `test:mcp` all pass and
- run in CI. Add coverage for the payment-required path and schema validation.
-7. **Publish-readiness:** `publish:mcp:dry` clean; versions, `files`, and metadata
- correct for every published `@three-ws/*-mcp` (coordinate with prompt `24`).
-
-## Must-not
-- Do not let a missing payment return a fake success — return `PaymentRequired`.
-- Do not trust client-sent prices; server is the price authority.
-- Do not ship a tool whose upstream can hang the client without a timeout.
-- Do not reference any coin other than $THREE in tool copy/output (runtime user mints excepted).
-
-## Acceptance
-- [ ] Every server spec-conformant; every tool validated input + proper error shapes.
-- [ ] forge_free works keyless; paid tools enforce x402 with correct PaymentRequired + fulfillment.
-- [ ] All tools have timeouts/retries + rate limiting; none can hang a client.
-- [ ] Public MCP catalog page + per-server README/examples; discovery indexing verified.
-- [ ] `audit:mcp` + `smoke:mcp` + `test:mcp` green in CI, incl. payment-required coverage.
-- [ ] `publish:mcp:dry` clean for all published MCP packages.
diff --git a/prompts/production-ready/24-sdk-publishing-and-docs.md b/prompts/production-ready/24-sdk-publishing-and-docs.md
deleted file mode 100644
index 01bee2b85..000000000
--- a/prompts/production-ready/24-sdk-publishing-and-docs.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 24 — SDK publishing & docs
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 2 — Product surface completeness
-**Owns:** all published packages — `avatar-sdk/`, `walk-sdk/`, `tour-sdk/`, `page-agent-sdk/`, `sdk/`, `solana-agent-sdk/`, `agent-payments-sdk/`, `agent-protocol-sdk/`, `agent-ui-sdk/`, `packages/*`.
-**Depends on:** `15`, `18`, `19`, `21`, `23`. Pairs with `34`.
-
-## Why this matters for $1B
-Every SDK someone installs is a distribution endpoint and a lock-in surface. A
-platform valued at $1B has SDKs that "just work" — installable, typed, documented,
-versioned, with copy-paste examples. Developer trust is earned in the first 5 minutes.
-
-## Map
-- npm workspaces + top-level SDKs (see `STRUCTURE.md`). Publish scripts:
- `publish:packages`(`:dry`), `publish:lib`, `publish:mcp`(`:dry`), `release:lib`.
- Promotion path + publishing notes in `STRUCTURE.md`, `page-agent-sdk/PUBLISHING.md`.
-
-## Do this
-1. **Build integrity:** every package builds cleanly from a fresh install
- (`npm ci`), with correct `main`/`module`/`exports`/`types`, `files` allowlist
- (no source-only leakage, no junk), and working ESM/CJS as declared.
-2. **Types:** ship accurate type declarations (`.d.ts`) for every public API. No
- `any`-leaks at the boundary. `npm run typecheck` clean.
-3. **Versioning:** consistent semver, accurate `peerDependencies`, no phantom/extra
- deps, deduped lockfile. Confirm `publish:packages:dry` and `publish:mcp:dry` are
- clean for all.
-4. **READMEs:** every package has a README with: what it is, install, a 30-second
- quickstart that actually runs, the full API surface, framework variants (web
- component + React for avatar; embed snippets for walk/tour/page-agent), and a link
- to live examples.
-5. **Examples:** `examples/` has a runnable example per SDK (web component, React,
- two-agents, minimal, embed). Each is exercised and works against the live site.
-6. **Changelogs:** each published package has a CHANGELOG; an SDK release also gets a
- holder-facing entry in `data/changelog.json` (tag `sdk`).
-7. **CDN/embed:** the script-tag/CDN embed paths (avatar viewer, walk companion, page
- agent) are documented with integrity-pinned snippets that work copy-paste.
-8. **License/attribution:** licenses present and correct; forks (CharacterStudio,
- three.js editor) keep upstream attribution.
-9. Do a real consumer test: in a scratch project outside the repo, `npm install` the
- packed tarball (`npm pack`) and run each quickstart. Fix anything that doesn't work.
-
-## Must-not
-- Do not publish a package whose quickstart doesn't run as written.
-- Do not leak source/test files or secrets via a missing `files` allowlist.
-- Do not reference any coin other than $THREE in SDK docs/examples.
-
-## Acceptance
-- [ ] Every package builds from `npm ci`; correct exports/types/files; ESM/CJS as declared.
-- [ ] Accurate `.d.ts` for all public APIs; typecheck clean.
-- [ ] Consistent semver + correct peer deps; `publish:*:dry` clean.
-- [ ] Every package README has a runnable quickstart + full API + example links.
-- [ ] One runnable example per SDK in `examples/`, exercised against live.
-- [ ] `npm pack` → install-in-scratch-project quickstart works for each SDK.
-- [ ] SDK release changelog entries added (tag `sdk`).
diff --git a/prompts/production-ready/25-observability-logging-metrics.md b/prompts/production-ready/25-observability-logging-metrics.md
deleted file mode 100644
index eb6a9ceeb..000000000
--- a/prompts/production-ready/25-observability-logging-metrics.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 25 — Observability (logging, metrics, error tracking)
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** `api/`, `workers/`, `api/_lib/sentry.js`, `api/_lib/usage.js`, `api/_lib/redis-usage.js`, `public/error-reporter.js`.
-**Depends on:** `06`, `08`. Pairs with `27`, `28`.
-
-## Why this matters for $1B
-You cannot operate or scale what you cannot see. At $1B-trajectory volume, you need to
-know within seconds when payments fail, RPC degrades, or a deploy regresses. Observable
-systems are the difference between a 5-minute incident and a 5-hour one.
-
-## Mission
-End-to-end observability: structured logs, error tracking with alerting, key business
-+ system metrics on dashboards, and request tracing across api/workers.
-
-## Map
-- Error tracking is already wired: **`api/_lib/sentry.js`** (server) +
- **`public/error-reporter.js`** (client). Usage/metering: `api/_lib/usage.js`,
- `api/_lib/redis-usage.js`. Health probes: `api/_lib/forge-health.js`,
- `llm-health.js`, `provider-health.js`, `api/healthz.js`.
-- Extend what exists; don't introduce a parallel stack. Additive, per memory guidance.
-
-## Do this
-1. **Structured logging:** adopt one structured logger (JSON) across `api/` + workers
- with a request id, route, latency, status, and identity (no secrets/PII — prompt
- `05`/`07`). Replace ad-hoc `console.log`. Log levels respected per env.
-2. **Error tracking:** confirm `sentry.js` + `error-reporter.js` capture server +
- client errors with source maps, grouping, release tagging, and alerting on new/
- spiking errors. Ensure the happy path is silent (cross-check prompt `03`).
-3. **Metrics:** instrument the metrics that matter — request rate/latency/error per
- route, payment success/failure + GMV, generation jobs (queued/succeeded/failed/
- p95 duration), RPC/AI upstream latency + error + spend, rate-limit hits, signups/
- activations. Build on `usage.js`/`redis-usage.js` for per-upstream cost meters
- (ties to prompt `08`).
-4. **Tracing:** propagate a request/trace id through API → upstreams → workers so a
- slow payment can be traced end-to-end.
-5. **Dashboards:** a system dashboard (latency/errors/saturation/cost) and a business
- dashboard (signups, activation, GMV, generations, MCP calls). Document where they
- live in `docs/`.
-6. **Alerting:** actionable alerts (not noise) for: payment failure rate, 5xx spike,
- upstream-spend approaching cap, worker down, error spike, latency SLO breach.
- Route to the right channel; define ownership/runbook links.
-7. **SLOs:** define SLOs for the critical paths (checkout, forge, page load) and track
- error budgets.
-
-## Must-not
-- Do not log secrets, private keys, or PII.
-- Do not alert on everything — every alert must be actionable.
-- Do not hand-roll a metrics backend when a vetted one fits.
-
-## Acceptance
-- [ ] One structured logger across api + workers with request ids; no secret/PII logging.
-- [ ] Server + client errors flow to the tracker with source maps, grouping, alerting.
-- [ ] Key system + business metrics instrumented, incl. per-upstream cost meters.
-- [ ] Trace ids propagate API → upstream → worker.
-- [ ] System + business dashboards exist and are documented.
-- [ ] Actionable alerts with runbooks; SLOs defined for critical paths.
diff --git a/prompts/production-ready/26-database-integrity-and-migrations.md b/prompts/production-ready/26-database-integrity-and-migrations.md
deleted file mode 100644
index 77c817221..000000000
--- a/prompts/production-ready/26-database-integrity-and-migrations.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 26 — Database integrity & migrations
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** `api/_lib/db.js`, `api/_lib/schema.sql`, `api/_lib/migrations/`, `api/_lib/db-retry.js`, data-access in `api/_lib/`, tables like `agent_identities`, `pump_agent_mints`, skill/license/purchase tables.
-**Depends on:** `05`, `07`. Pairs with `18`, `27`.
-
-## Why this matters for $1B
-Data integrity is existential when the data is wallets, ownership, and money. Corrupt
-or lost data destroys trust and is often unrecoverable. Clean migrations let you ship
-fast without breaking production.
-
-## Mission
-A documented, versioned schema with safe forward-migrations, enforced integrity
-constraints, backups with tested restore, and no orphaned or inconsistent records.
-
-## Map
-- DB client: `api/_lib/db.js` (+ retry wrapper `db-retry.js`). Schema: `api/_lib/
- schema.sql`. Migrations: `api/_lib/migrations/` (e.g.
- `20260616130000_oracle_copy_fanout.sql`). Tooling: `npm run db:migrate`,
- `npm run db:status`. Core invariants: `agent_identities.user_id` immutable, one
- agent = one owner; launch records in `pump_agent_mints`; skill/license/purchase rows.
-
-## Do this
-1. **Schema audit:** document every table, column, type, and relationship in
- `docs/data-model.md` (derive from `schema.sql` + `migrations/`). Identify missing
- constraints: primary keys, foreign keys, uniqueness (e.g. one wallet per agent),
- not-null, check constraints (amount ≥ 0), and indexes on hot query paths.
-2. **Add the constraints** that enforce the invariants the app assumes — especially
- the ownership and money invariants (prompt `07`). Backfill/clean any existing rows
- that would violate them first, via a migration.
-3. **Migrations:** ensure every schema change goes through a versioned, ordered,
- idempotent migration in `api/_lib/migrations/`; `db:status` reflects reality;
- migrations are forward-safe and reversible where possible. No manual prod schema
- edits.
-4. **Integrity sweep:** scan for orphans (records pointing to deleted parents),
- duplicates, and inconsistent states (purchase confirmed but no license; mint
- recorded but no agent). Fix the data and add the constraint/job that prevents
- recurrence.
-5. **Transactions:** money/ownership mutations that touch multiple rows run in
- transactions so they can't partially apply (ties to prompt `18` idempotency).
-6. **Backups & restore:** confirm automated backups exist, are encrypted, and — most
- importantly — **test a restore** into a scratch environment. Document RPO/RTO.
-7. **Performance:** add indexes for slow queries surfaced by observability (prompt
- `25`); paginate large reads (prompt `10`); use `db-retry.js` on transient failures.
-8. Add data-integrity tests/checks that can run against a seeded DB in CI.
-
-## Must-not
-- Do not edit production schema outside a migration.
-- Do not add a destructive migration without a tested backup and a reversal plan.
-- Do not weaken an invariant constraint to make a write succeed — fix the write.
-
-## Acceptance
-- [ ] `docs/data-model.md` documents schema + relationships from `schema.sql`/migrations.
-- [ ] Integrity constraints (PK/FK/unique/not-null/check) + hot-path indexes added; offending data cleaned.
-- [ ] All schema changes are versioned, idempotent migrations in `api/_lib/migrations/`; `db:status` accurate.
-- [ ] Orphan/duplicate/inconsistent-state sweep clean; preventer in place.
-- [ ] Multi-row money/ownership mutations are transactional.
-- [ ] Backups verified by a successful test restore; RPO/RTO documented.
-- [ ] Data-integrity checks runnable in CI.
diff --git a/prompts/production-ready/27-deploy-pipeline-and-rollback.md b/prompts/production-ready/27-deploy-pipeline-and-rollback.md
deleted file mode 100644
index 4d6e8fbf9..000000000
--- a/prompts/production-ready/27-deploy-pipeline-and-rollback.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 27 — Deploy pipeline & rollback safety
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** `vercel.json`, build scripts (`build`, `build:vercel`, `build:all`), `deploy/`, CI/CD, `npm run audit:deploy`, the two git remotes.
-**Depends on:** `01`, `05`, `25`. Pairs with `28`.
-
-## Why this matters for $1B
-Shipping safely and reverting instantly is what lets a team move fast without breaking
-trust. A bad deploy that can't be rolled back is an outage. Repeatable, gated deploys
-are an engineering-maturity signal in diligence.
-
-## Map
-- `vercel.json` (buildCommand, outputDirectory, installCommand, env, functions,
- routes, crons). Build pipeline scripts in `package.json`. `npm run audit:deploy`.
-- **Two remotes** (`/CLAUDE.md`): `threeD` (push-only mirror) + `threews` (canonical).
- Never pull/fetch/merge from `threeD`. Watch the `npx vercel build` trap that
- overwrites `api/*.js` in place — guard against committing esbuild bundles.
-
-## Do this
-1. **Reproducible build:** `npm ci` from a clean tree builds deterministically;
- document the exact build/deploy steps in `docs/deploy.md`. Confirm `audit:deploy`
- passes and what it checks.
-2. **Pipeline gates:** deploys to production require green lint + typecheck + tests
- (prompt `01`). Wire CI so `main` deploys only on green; PRs get preview deploys.
-3. **Source-bundle trap guard:** add a pre-commit/CI check that fails if any committed
- `api/*.js` or `public/*` begins with esbuild markers (`__defProp`/`createRequire`),
- per the known trap. Document the recovery (`git restore -- api/ public/`).
-4. **Both-remotes discipline:** document and (where possible) script the dual push
- (`threeD` + `threews`) so neither deploy target falls behind; never force-push;
- never pull from `threeD`.
-5. **Migrations in deploy:** DB migrations (prompt `26`) run as an ordered, gated step
- with a clear order relative to code deploy (backward-compatible migrate → deploy →
- cleanup). No deploy that assumes an unrun migration.
-6. **Rollback:** verify instant rollback to the previous good deployment works (Vercel
- promote/rollback), and document the exact steps + when to use it. Practice one.
-7. **Crons:** audit `vercel.json` crons (incl. the auto-rig sweep) — each has a clear
- purpose, idempotency, failure alerting (prompt `25`), and won't stampede.
-8. **Env parity:** preview/staging mirrors prod env keys (prompt `05`); no
- prod-only surprises.
-9. **Post-deploy smoke:** an automated post-deploy smoke (`smoke:onchain`,
- `smoke:mcp`, key page loads) gates promotion and pages on failure.
-
-## Must-not
-- Do not commit esbuild-bundled `api/*.js` source (run the guard).
-- Do not pull/fetch/merge from `threeD`; do not force-push either remote.
-- Do not deploy code that depends on an unrun migration.
-
-## Acceptance
-- [ ] `docs/deploy.md` documents reproducible build + deploy + rollback steps.
-- [ ] Production deploy gated on green CI; PRs get previews.
-- [ ] CI guard blocks committed esbuild-bundled source files.
-- [ ] Dual-remote push documented/scripted; no pulls from `threeD`.
-- [ ] Migrations run as a gated, ordered, backward-compatible step.
-- [ ] Rollback verified by an actual practice run; documented.
-- [ ] Crons audited (purpose/idempotency/alerting); post-deploy smoke gates promotion.
diff --git a/prompts/production-ready/28-uptime-monitoring-and-status-page.md b/prompts/production-ready/28-uptime-monitoring-and-status-page.md
deleted file mode 100644
index 7d4410666..000000000
--- a/prompts/production-ready/28-uptime-monitoring-and-status-page.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 28 — Uptime monitoring & public status page
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** health endpoints (`api/healthz.js`, `api/_lib/forge-health.js`, `llm-health.js`, `provider-health.js`), external uptime monitoring, a public status page.
-**Depends on:** `25`. Pairs with `27`, `29`.
-
-## Why this matters for $1B
-Enterprise buyers and serious developers expect a status page and a track record of
-uptime. Knowing about outages before users do — and being transparent when they
-happen — builds the trust a platform handling money requires.
-
-## Mission
-Real health checks for every critical dependency, external synthetic monitoring of
-the user-critical flows, and a public status page with incident history.
-
-## Map
-- Existing: `api/healthz.js` (liveness), `api/_lib/forge-health.js` (probes the
- rate-limiter store / paid-lane health), `llm-health.js`, `provider-health.js`.
- Extend these into a deep readiness check.
-- Critical deps to probe: DB (prompt `26`), Solana RPC, pump.fun feed, AI worker
- proxies, x402 facilitator, R2/CDN for GLBs.
-- Observability sinks from prompt `25` feed the monitors/alerts.
-
-## Do this
-1. **Health endpoints:** keep `healthz.js` as a fast liveness check; add a deeper
- readiness check that verifies each critical dependency (DB connectivity, RPC
- reachable, AI proxy up via `llm-health.js`/`provider-health.js`, payment facilitator
- up, rate-limit store via `forge-health.js`) and returns a structured per-dependency
- status. No secrets in output.
-2. **Synthetic monitoring:** external uptime checks (multi-region) for the homepage,
- forge generate path, a sample MCP call, and a checkout prepare — i.e. the flows
- that lose money/users when down, not just "is the site up."
-3. **Alerting:** down/degraded triggers the on-call alert (prompt `25`) with the
- failing dependency named. Distinguish degraded (one dep slow) from down.
-4. **Public status page:** a branded status page (own page or a vetted provider) showing
- component status (web, forge, payments, MCP, launches), uptime history, and incident
- posts. Linkable from the footer.
-5. **Incident process:** document a lightweight incident runbook in `docs/`: detect →
- declare → communicate (status page) → mitigate → resolve → postmortem. Templates
- included.
-6. **Cron/worker liveness:** monitor the crons + workers (oracle/sniper, auto-rig
- sweep) — alert if a scheduled run is missed or fails (prompt `27`).
-
-## Must-not
-- Do not expose secrets, internal hostnames, or stack details in health output.
-- Do not let the deep health check be so heavy it becomes a self-inflicted load source
- — rate-limit/cache it.
-- Do not alert without naming the failing component.
-
-## Acceptance
-- [ ] Liveness (`healthz.js`) + deep readiness endpoint report per-dependency status, no leaks.
-- [ ] External multi-region synthetic checks cover homepage, forge, MCP, checkout.
-- [ ] Down/degraded alerts fire with the failing dependency named.
-- [ ] Public branded status page with component status + uptime + incident history, linked in footer.
-- [ ] Incident runbook + templates in `docs/`.
-- [ ] Cron/worker liveness monitored with missed-run alerts.
diff --git a/prompts/production-ready/29-load-and-stress-testing.md b/prompts/production-ready/29-load-and-stress-testing.md
deleted file mode 100644
index 6c812cd8c..000000000
--- a/prompts/production-ready/29-load-and-stress-testing.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# 29 — Load & stress testing
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Scale & infra
-**Owns:** load-test harness (in `scripts/` or `tests/load/`), `api/`, `workers/`, caching/CDN config.
-**Depends on:** `06`, `08`, `25`, `26`. Pairs with `27`, `28`.
-
-## Why this matters for $1B
-A platform that goes viral and falls over wasted the moment. You need to know the real
-ceiling of each critical path, where it breaks first, and that autoscaling + rate
-limits + caching hold under a launch-day spike. Capacity confidence is fundability.
-
-## Mission
-Establish load profiles for the critical paths, find the breaking points, fix the
-first bottlenecks, and document headroom + scaling behavior.
-
-## Map
-- Critical paths: homepage + key pages (static/CDN), forge generation (expensive,
- upstream-bound), checkout/x402 (money, DB + RPC), MCP tool calls, launch feed reads,
- agent profile reads.
-- Use a vetted tool (k6 / Artillery). Run against a staging/preview env, never prod,
- with synthetic data — and **never** real third-party mints (prompt `22`).
-
-## Do this
-1. **Define profiles:** realistic mixes — steady-state, a marketing-spike ramp, and a
- sustained soak — with target RPS/concurrency per path based on growth goals.
-2. **Build the harness** in `scripts/` or `tests/load/` (kept, documented, not
- throwaway), parameterized by env + RPS, with auth handled. Cover read paths and at
- least one safe write path (idempotent, against staging).
-3. **Run & measure:** capture p50/p95/p99 latency, error rate, throughput, and
- upstream/DB saturation (via prompt `25` dashboards). Identify the first bottleneck
- on each path.
-4. **Fix the top bottlenecks:** add/verify caching (CDN for static + GLBs, query
- caching for hot reads), connection pooling/limits for DB + RPC, queueing/
- backpressure for generation, and confirm rate limits (prompt `08`) shed load
- gracefully instead of collapsing.
-5. **Autoscaling:** verify serverless function concurrency limits and worker scaling
- behave under spike; no cold-start cliff on the money path; no unbounded fan-out to
- a single RPC node.
-6. **Failure-mode under load:** confirm that when an upstream degrades under load, the
- resilience patterns (prompt `06`) and circuit breakers keep the rest of the site up
- (graceful degradation, designed error states — prompt `12`).
-7. **Document capacity:** record measured headroom per path, the breaking point, and
- the scaling levers in `docs/capacity.md`. Set alert thresholds (prompt `28`) below
- the breaking point.
-
-## Must-not
-- Do not load-test production or use real third-party mints/addresses.
-- Do not "fix" a bottleneck by removing a rate limit or a safety check.
-- Do not leave the harness as an undocumented throwaway in the repo root (use `scripts/`).
-
-## Acceptance
-- [ ] Documented load profiles (steady/spike/soak) with growth-based targets.
-- [ ] Repeatable, parameterized load harness in `scripts/` or `tests/load/`.
-- [ ] p50/p95/p99 + error rate + saturation measured per critical path; bottlenecks identified.
-- [ ] Top bottlenecks fixed (caching, pooling, queueing); rate limits shed load gracefully.
-- [ ] Autoscaling verified under spike; no cold-start cliff on checkout.
-- [ ] Graceful degradation confirmed when an upstream fails under load.
-- [ ] `docs/capacity.md` records headroom, breaking points, levers; alerts set below them.
diff --git a/prompts/production-ready/30-onboarding-and-activation.md b/prompts/production-ready/30-onboarding-and-activation.md
deleted file mode 100644
index 138c382ca..000000000
--- a/prompts/production-ready/30-onboarding-and-activation.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# 30 — Onboarding & activation funnel
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** first-run experience across `pages/`, signup/auth, the path from landing → first "aha", `src/feature-tour/`, empty states.
-**Depends on:** `12`, `15`, `19`. Pairs with `31`, `33`.
-
-## Why this matters for $1B
-Activation rate — the share of new users who reach the "aha" (a forged 3D model, a
-created agent) — is the single biggest lever on growth-loop velocity and therefore
-valuation. Most signups are won or lost in the first 60 seconds.
-
-## Mission
-Design and build a first-run experience that gets a brand-new visitor to a real,
-shareable "aha" moment as fast as possible, with zero confusion and zero dead ends.
-
-## Do this
-1. **Define the aha + the funnel:** pick the primary activation event (likely: first
- forged/created 3D model, or first agent). Map every step from landing →
- aha and instrument each (prompt `33`) to find drop-off.
-2. **Reduce time-to-value:** let users experience the magic *before* signup where
- possible (the free `forge_free` lane, the live tour) — capture the account *after*
- they've felt value, not before. No wall in front of the wow.
-3. **Guided first run:** a focused, skippable first-run flow (lean on the feature tour,
- prompt `19`) that points at the one next action, not a feature dump. Progressive
- disclosure.
-4. **Empty states as onboarding:** every first-visit empty state (profile, wallet,
- marketplace, dashboard) teaches the next step with a working CTA (prompt `12`).
-5. **Account creation:** frictionless auth; if a custodial wallet is provisioned,
- explain it simply and reassuringly. Clear value for signing up.
-6. **First-win reinforcement:** when the user hits the aha, celebrate it and offer the
- natural next step (share it, list it, make another, give it a wallet) — chain into
- the growth loop (prompt `35`).
-7. **Re-engagement:** a sensible welcome/first-steps message (email/notification per
- prompt `39`) for users who leave before activating.
-8. **Measure:** activation rate, time-to-aha, and step drop-off visible on the growth
- dashboard (prompt `25`/`33`). Set a baseline and a target.
-
-## Must-not
-- Do not gate the core "wow" behind signup if a no-account path exists.
-- Do not dump every feature on a new user — one next action at a time.
-- Do not ship empty states that are dead ends.
-
-## Acceptance
-- [ ] Activation event defined; full landing→aha funnel instrumented with drop-off visibility.
-- [ ] A no-signup path to the core wow exists; account captured after value.
-- [ ] Skippable guided first-run points at one next action; progressive disclosure.
-- [ ] Every first-visit empty state teaches + has a working CTA.
-- [ ] First-win celebration chains into share/create-again/wallet.
-- [ ] Re-engagement message for pre-activation drop-offs.
-- [ ] Activation rate + time-to-aha tracked with a baseline and target.
diff --git a/prompts/production-ready/31-home-and-landing-conversion.md b/prompts/production-ready/31-home-and-landing-conversion.md
deleted file mode 100644
index 02e004ce5..000000000
--- a/prompts/production-ready/31-home-and-landing-conversion.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 31 — Home / landing conversion
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** `pages/home.html`, top-of-funnel landing pages, hero, primary CTAs, social proof.
-**Depends on:** `10`, `13`, `14`. Pairs with `30`, `33`.
-
-## Why this matters for $1B
-The homepage is the highest-traffic, highest-leverage page. A few points of conversion
-lift compounds across every channel. It must instantly communicate what three.ws is,
-why it's special, and what to do next — and it must be screenshot-worthy.
-
-## Map
-- `pages/home.html` (was modified in the working tree — review before editing).
- Pulls from `data/features.json` / `public/features.json`. Global tokens (prompt
- `13`).
-
-## Do this
-1. **Message clarity:** above the fold answers "what is this / who is it for / why
- care" in one glance, with a single dominant CTA toward the activation event (prompt
- `30`). No jargon, no ambiguity.
-2. **Show, don't tell:** lead with the product's magic — a live, interactive 3D
- moment (a real model the visitor can orbit, the walking guide, a forge demo) rather
- than a static screenshot. It must load fast (prompt `10`) and never block first
- paint.
-3. **Proof:** real social proof — usage numbers, notable creations, launches, SDK
- installs, testimonials — all truthful and live where possible. No fabricated
- metrics.
-4. **Narrative flow:** the page tells a story — magic → how it works → what you can
- build (forge, agents, marketplace, SDKs) → proof → CTA. Each section links into the
- relevant surface (cross-wiring, `/CLAUDE.md`).
-5. **CTAs everywhere sensible:** primary CTA repeated at natural decision points;
- secondary paths (developers → SDKs/docs, traders → launches, creators →
- marketplace) routed clearly.
-6. **Polish to screenshot bar:** microinteractions, gradients, motion-with-intent
- (reduced-motion safe), perfect spacing/type (prompt `13`), flawless on mobile
- (prompt `11`) and both themes.
-7. **Performance + SEO:** great LCP/CLS (prompt `10`), complete meta + OG + JSON-LD
- (prompt `14`).
-8. **Experiment-ready:** structure the hero/CTA so they can be A/B tested (prompt
- `33`); instrument CTA clicks and scroll depth.
-
-## Must-not
-- Do not show fabricated stats or testimonials.
-- Do not block first paint on the 3D hero — lazy/progressive load it.
-- Do not bury the primary CTA or present competing equal CTAs that paralyze.
-- Do not reference any coin other than $THREE.
-
-## Acceptance
-- [ ] Above-the-fold communicates what/who/why + one dominant CTA at a glance.
-- [ ] Live interactive 3D moment that loads fast and doesn't block first paint.
-- [ ] Truthful, live social proof.
-- [ ] Narrative sections cross-link to forge/agents/marketplace/SDKs.
-- [ ] Screenshot-grade polish; flawless mobile + both themes; reduced-motion safe.
-- [ ] Strong LCP/CLS + complete meta/OG/JSON-LD.
-- [ ] CTA clicks + scroll depth instrumented; hero/CTA A/B-ready.
diff --git a/prompts/production-ready/32-pricing-and-monetization-surfaces.md b/prompts/production-ready/32-pricing-and-monetization-surfaces.md
deleted file mode 100644
index c20ad2de8..000000000
--- a/prompts/production-ready/32-pricing-and-monetization-surfaces.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 32 — Pricing & monetization surfaces
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** pricing page(s), upgrade/paywall surfaces, paid lanes (forge, MCP, skills), `prompts/monetization/` outcomes, billing/receipts.
-**Depends on:** `08`, `16`, `18`, `23`. Pairs with `30`, `33`.
-
-## Why this matters for $1B
-Revenue is the numerator of valuation. Clear pricing, frictionless upgrade, and
-multiple monetization surfaces (paid generation, paid MCP calls, marketplace take,
-skill sales, premium features) are what turn engagement into a $1B business.
-
-## Map
-- Paid lanes already exist: paid MCP tools (USDC via x402, prompt `23`), skill
- purchases + on-chain licenses (prompt `16`), the free vs paid forge lanes (prompt
- `15`/`08`). Pricing libs: `api/_lib/skill-pricing-rules.js`, `skill-price-cache.js`,
- `x402-prices.js`. Monetization design work: `prompts/monetization/`.
-
-## Do this
-1. **Pricing page:** a clear, honest pricing page — what's free, what's paid, what
- each tier/credit unlocks, in plain language. Per-call USDC prices for MCP/forge
- lanes surfaced. Designed for both human users and agent developers.
-2. **Upgrade moments:** when a user hits a free-lane limit (prompt `08`), present a
- contextual, non-annoying upgrade with the exact value they're about to get — not a
- hard wall. Track conversion on these moments.
-3. **Frictionless checkout:** upgrades/credits use the hardened payment flow (prompt
- `18`) with clear confirmation, instant unlock, and a receipt. No dead ends.
-4. **Monetization surfaces wired:** marketplace take-rate on sales (prompt `16`),
- paid MCP calls (prompt `23`), paid generation credits (prompt `15`), premium
- features, and creator payouts — each accounted correctly (prompt `26`) and visible
- on the business dashboard (prompt `25`).
-5. **Receipts & billing history:** users/creators see their purchases, balances,
- payouts, and downloadable receipts. Real data, designed empty states.
-6. **Creator economics:** make it obvious how creators earn (sell skills/avatars/
- scenes, get tipped, launch) and show real earnings — the supply-side flywheel.
-7. **Experiment:** price points and packaging are configurable (source from the
- pricing libs, not hardcoded across the UI) so they can be tested; instrument
- upgrade funnel + LTV inputs (prompt `33`).
-
-## Must-not
-- Do not hardcode prices in scattered UI strings — source from the pricing config/libs.
-- Do not hard-wall the core wow; convert with value at the limit instead.
-- Do not show fabricated revenue/earnings; real accounting only.
-- Do not reference any coin other than $THREE (USDC pricing for services is fine).
-
-## Acceptance
-- [ ] Clear, honest pricing page (free vs paid, per-call USDC prices) for users + devs.
-- [ ] Contextual upgrade moments at free-lane limits with conversion tracking.
-- [ ] Frictionless upgrade/credit checkout with instant unlock + receipt.
-- [ ] All monetization surfaces wired + accounted + on the business dashboard.
-- [ ] Receipts/billing history + creator earnings show real data with designed states.
-- [ ] Prices/packaging sourced from one config; upgrade funnel instrumented.
diff --git a/prompts/production-ready/33-growth-analytics-instrumentation.md b/prompts/production-ready/33-growth-analytics-instrumentation.md
deleted file mode 100644
index 543348b9f..000000000
--- a/prompts/production-ready/33-growth-analytics-instrumentation.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 33 — Growth analytics instrumentation
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** product analytics, event taxonomy, funnels, A/B framework, consent/privacy.
-**Depends on:** `25`, `30`, `31`, `32`. Pairs with `35`, `37`.
-
-## Why this matters for $1B
-You can't grow what you don't measure. A clean event taxonomy + funnels + experiment
-framework is how every growth decision (prompts `30`–`35`) gets validated instead of
-guessed. Investors expect to see the funnel and the levers.
-
-## Mission
-Instrument the product with a consistent, privacy-respecting analytics layer: a typed
-event taxonomy, the core funnels, retention/cohort views, and an A/B testing
-capability — all feeding dashboards.
-
-## Map
-- A vetted product-analytics tool (privacy-friendly, e.g. PostHog-class) over
- hand-rolling. Distinguish from system observability (prompt `25`) — this is product/
- growth events. Respect consent (prompt `37`).
-
-## Do this
-1. **Event taxonomy:** define a documented, typed event schema (`docs/analytics.md`):
- consistent names, properties, and identity model (anon → authed stitching). Cover
- the funnel: landing view, CTA click, signup, first generation, first agent, first
- purchase, share, return. No ad-hoc one-off event names.
-2. **Funnels:** build the core funnels — acquisition → activation (prompt `30`) →
- revenue (prompt `32`) → retention → referral (prompt `35`) — with step drop-off
- visible.
-3. **Retention & cohorts:** D1/D7/D30 retention and cohort curves; identify the
- behaviors that correlate with retention (the "north-star input" — e.g. created N
- agents in week 1).
-4. **A/B framework:** a lightweight experiment system (feature-flag + assignment +
- metric readout) so hero/CTA/pricing/onboarding variants (prompts `30`–`32`) can be
- tested with statistical rigor. Document how to run an experiment.
-5. **Dashboards:** a growth dashboard (acquisition, activation, retention, revenue,
- referral, north-star) alongside the system/business dashboards (prompt `25`).
-6. **Privacy & consent:** consent management, IP/PII minimization, honoring
- do-not-track and opt-out (prompt `37`). No PII in event payloads.
-7. **Validate:** verify events fire correctly across key flows (no double-counting,
- correct identity stitching) before trusting the numbers.
-
-## Must-not
-- Do not collect PII in events or track without consent where required.
-- Do not invent inconsistent event names per page — follow the taxonomy.
-- Do not ship dashboards built on unvalidated/double-counted events.
-
-## Acceptance
-- [ ] Documented typed event taxonomy + identity model in `docs/analytics.md`.
-- [ ] Core funnels (acq→activation→revenue→retention→referral) with drop-off.
-- [ ] Retention/cohort views + identified north-star input metric.
-- [ ] A/B framework usable for hero/CTA/pricing/onboarding experiments; documented.
-- [ ] Growth dashboard live alongside system/business dashboards.
-- [ ] Consent + PII-minimization in place; events validated for accuracy.
diff --git a/prompts/production-ready/34-developer-experience-and-docs-site.md b/prompts/production-ready/34-developer-experience-and-docs-site.md
deleted file mode 100644
index 315bb9dd4..000000000
--- a/prompts/production-ready/34-developer-experience-and-docs-site.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 34 — Developer experience & docs site
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** `docs/`, a public docs site, API reference, SDK guides, MCP setup guides, `examples/`, quickstarts.
-**Depends on:** `23`, `24`. Pairs with `14`, `31`.
-
-## Why this matters for $1B
-three.ws is a platform other developers and agents build on. Documentation is the
-product for them. World-class docs (Stripe/Vercel-grade) are a growth channel, a
-moat, and a credibility signal that justifies a platform multiple.
-
-## Mission
-A polished, public developer hub: getting-started, SDK guides, full API + MCP
-reference, runnable examples, and recipes — accurate, searchable, and maintained.
-
-## Map
-- `docs/` (internal + reference), `examples/` (`embed-test`, `web-component`,
- `two-agents`, `minimal`, etc.), `STRUCTURE.md`, per-package READMEs (prompt `24`),
- `page-agent-sdk/PUBLISHING.md`, `docs/3d-asset-pipeline.md`.
-
-## Do this
-1. **Docs site:** a public, branded, searchable docs site (own route or a vetted
- docs framework) with clear IA: Get Started, Guides, SDK Reference, API Reference,
- MCP, Recipes, Changelog. Themed to match the platform (prompt `13`).
-2. **Quickstarts that run:** a "5-minute" quickstart per primary surface (embed an
- avatar, add the walk companion, call a paid MCP tool, make an x402 payment, mint
- an agent). Each is copy-paste and verified to work (prompt `24`).
-3. **API reference:** generate/maintain reference for the public `api/` surface
- (endpoints, params, auth, errors, examples). Keep it in sync with the code (derive
- from the handlers where possible, not hand-typed drift).
-4. **MCP setup:** clear setup for Claude Desktop/Code and other clients, the free
- `forge_free` quickstart as the wedge, and the paid-tool x402 flow (prompt `23`).
-5. **Examples gallery:** `examples/` is curated, each runnable against live, linked
- from the docs. Add the missing common recipes.
-6. **Consistency & accuracy:** every code sample is tested (a CI check that runs/lints
- doc snippets where feasible); no stale endpoints/flags (cross-check the codebase
- before publishing — verify referenced files/flags still exist).
-7. **Discoverability:** docs are crawlable + in llms.txt (prompt `14`); searchable;
- linked from home (prompt `31`) and the footer.
-8. **Feedback loop:** a "was this helpful / edit this page" path so docs improve.
-
-## Must-not
-- Do not publish a sample that doesn't run as written.
-- Do not let docs drift from code — prefer generated/tested references.
-- Do not reference any coin other than $THREE in docs/examples.
-
-## Acceptance
-- [ ] Public, branded, searchable docs site with clear IA, themed to the platform.
-- [ ] Verified 5-minute quickstart per primary surface.
-- [ ] API + MCP reference accurate and kept in sync with code.
-- [ ] Curated `examples/` gallery, each runnable against live, linked from docs.
-- [ ] Doc code samples tested in CI; no stale endpoints/flags.
-- [ ] Docs crawlable + in llms.txt + linked from home/footer; feedback path present.
diff --git a/prompts/production-ready/35-referral-and-virality.md b/prompts/production-ready/35-referral-and-virality.md
deleted file mode 100644
index 18b81c3ee..000000000
--- a/prompts/production-ready/35-referral-and-virality.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# 35 — Referral & virality loops
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** sharing surfaces, OG image generation (`api/forge-og.js` + a general OG service), embeds, referral mechanics, public/embeddable artifacts.
-**Depends on:** `14`, `17`, `24`, `30`, `33`. Pairs with `31`.
-
-## Why this matters for $1B
-Paid acquisition can't get you to $1B alone — viral loops (k-factor > sharing friction)
-do. three.ws is unusually shareable: every output is a 3D model, an agent, a launch.
-Engineering the loops so creations spread is the highest-leverage growth work.
-
-## Mission
-Make every creation effortlessly shareable and embeddable, with attribution that
-pulls viewers back, plus referral mechanics that reward bringing others in.
-
-## Do this
-1. **Share everywhere:** every artifact (forged model, agent profile, scene, launch,
- marketplace listing) has a one-tap Share with a great destination URL, copy, and a
- real, dynamic OG/Twitter image (prompt `14`) that renders the actual 3D
- output. Verify cards on the major platforms.
-2. **Embeds as a loop:** the `<agent-3d>`, walk companion, and page-agent embeds
- (prompt `24`) carry tasteful, non-spammy attribution back to three.ws — every embed
- on the web is a billboard. One-click "embed this" with copy-paste code.
-3. **Dynamic OG image service:** a real endpoint that renders share images for agents/
- models/launches on the fly (extend `api/forge-og.js`; cached, fast, resilient —
- prompt `06`). No generic placeholder image.
-4. **Referral mechanics:** a referral program where inviting a user who activates
- (prompt `30`) rewards both sides (credits toward paid lanes, etc. — accounted per
- prompt `26`). Track invites → signups → activations (prompt `33`). Abuse-guarded
- (prompt `08`).
-5. **Built-in share prompts:** at the first-win moment (prompt `30`) and other natural
- peaks, invite the user to share — without being naggy. Make sharing feel good, not
- transactional.
-6. **Public galleries:** the launches feed, a community/creations gallery, and agent
- directories are public, indexable (prompt `14`), and link inward — discovery
- surfaces that also pull SEO traffic.
-7. **Measure k-factor:** instrument shares → visits → signups so the loop's
- coefficient is visible and improvable (prompt `33`).
-
-## Must-not
-- Do not ship a generic/static OG image where a dynamic one belongs.
-- Do not make embeds spammy or attribution obnoxious — tasteful only.
-- Do not allow self-referral/abuse to drain rewards (guard it).
-- Do not reference any coin other than $THREE in share copy.
-
-## Acceptance
-- [ ] Every artifact has one-tap share with great copy + dynamic 3D OG image (cards validated).
-- [ ] Embeds carry tasteful inbound attribution; one-click embed-code copy.
-- [ ] Real, cached, resilient dynamic OG-image service (no placeholders).
-- [ ] Referral program rewards both sides on activation; tracked + abuse-guarded.
-- [ ] First-win + peak-moment share prompts (non-naggy).
-- [ ] Public indexable galleries that link inward.
-- [ ] Share→visit→signup instrumented; k-factor visible.
diff --git a/prompts/production-ready/36-trust-safety-and-moderation.md b/prompts/production-ready/36-trust-safety-and-moderation.md
deleted file mode 100644
index 79afe92b4..000000000
--- a/prompts/production-ready/36-trust-safety-and-moderation.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 36 — Trust, safety & moderation
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** content moderation for user generations (text prompts, images, avatars, names, listings), reporting/abuse handling, moderation tooling.
-**Depends on:** `07`, `08`, `16`. Pairs with `37`.
-
-## Why this matters for $1B
-A platform where anyone generates 3D content from arbitrary prompts and lists it for
-sale will attract abuse. Unmoderated abuse kills app-store distribution, payment-
-processor relationships, brand, and enterprise deals. Trust & safety is a
-prerequisite for scale, not an afterthought.
-
-## Mission
-Prevent, detect, and act on harmful content across every user-generated surface, with
-clear policies, real moderation tooling, and user reporting — without crushing
-legitimate creation.
-
-## Map
-- UGC surfaces: forge prompts/images (prompt `15`), avatars/names (prompt `21`),
- marketplace listings (prompt `16`), agent bios, communities, scenes, launch metadata.
-
-## Do this
-1. **Policy:** write clear, public content guidelines + acceptable-use policy (what's
- not allowed: illegal content, CSAM, hate, harassment, impersonation, IP theft,
- scams). Link in footer + onboarding (coordinate with prompt `37`).
-2. **Input moderation:** screen generation prompts and uploaded images before
- generation (a vetted moderation API / classifier) and block disallowed requests
- with a clear, non-leaky message. Screen names/handles/bios/listing text for slurs/
- scams/impersonation.
-3. **Output moderation:** scan generated images/models and listing media; quarantine
- or block violations; keep an audit trail.
-4. **Reporting:** a real "report" flow on every public artifact (agent, listing,
- scene, launch, community post) that creates a triage-able case.
-5. **Moderation tooling:** an internal queue/dashboard to review reports + flagged
- content, take action (warn/remove/ban), and record decisions. Role-gated (prompt
- `07`).
-6. **Enforcement:** graduated actions (content removal, rate-limit, suspension, ban)
- with user notification and an appeal path. Tie repeat abuse to the rate-limit/abuse
- system (prompt `08`).
-7. **Impersonation & scams:** specific guards for fake "official" agents/launches and
- $THREE-impersonation scams; verified badges where appropriate. Reinforce the
- one-coin rule (prompt `22`) — no other coin is ever promoted.
-8. **CSAM/illegal escalation:** a documented, legally-aware escalation path (preserve
- evidence, report to authorities/NCMEC as required) — never just silently delete.
-
-## Must-not
-- Do not ship UGC surfaces with no moderation or no reporting.
-- Do not let moderation messages leak internal details or the exact classifier rules.
-- Do not over-block legitimate creation — tune for precision + appeal.
-- Do not allow impersonation of three.ws/$THREE or promotion of other coins.
-
-## Acceptance
-- [ ] Public content guidelines + AUP, linked in footer + onboarding.
-- [ ] Input (prompt/image/name) + output (model/media) moderation with clear blocks + audit trail.
-- [ ] Report flow on every public artifact creating triage-able cases.
-- [ ] Role-gated moderation queue/dashboard with action logging.
-- [ ] Graduated enforcement + notification + appeal, tied to abuse system.
-- [ ] Impersonation/scam guards; one-coin rule reinforced.
-- [ ] Documented CSAM/illegal escalation path.
diff --git a/prompts/production-ready/37-legal-compliance-tos-privacy.md b/prompts/production-ready/37-legal-compliance-tos-privacy.md
deleted file mode 100644
index 6579af409..000000000
--- a/prompts/production-ready/37-legal-compliance-tos-privacy.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# 37 — Legal, compliance, ToS & privacy
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** Terms of Service, Privacy Policy, cookie/consent, licenses/attribution, financial/crypto disclosures, data-rights flows.
-**Depends on:** `05`, `33`, `36`. Pairs with `26`.
-
-## Why this matters for $1B
-A platform that custodies wallets, processes payments, hosts UGC, and uses AI must be
-legally defensible to raise, to sell to enterprises, and to survive scrutiny. Missing
-ToS/privacy/disclosures is a hard blocker in diligence and an existential risk given
-the money and crypto involved.
-
-> You are an engineer, not a lawyer. Build the surfaces, wire the flows, and flag
-> exactly where qualified legal counsel must review/author the binding text. Do not
-> invent legal guarantees.
-
-## Map
-- Forks/vendored code attribution already tracked: `character-studio/LICENSE`,
- `src/scene-studio/vendor/LICENSE`, `public/animations/LICENSES.md`, per-asset
- `LICENSES.md` under `public/club/`. Custodial wallets + payments (prompts `17`,
- `18`). Analytics/PII (prompt `33`).
-
-## Do this
-1. **ToS + Privacy + AUP pages:** real, reachable pages (linked in footer + signup +
- onboarding). Draft thorough content covering accounts, custodial wallets, payments,
- UGC + moderation (prompt `36`), AI-generated content + IP/ownership, disclaimers,
- liability, and termination — clearly marked for counsel review where binding.
-2. **Privacy specifics:** what data is collected (derive from prompt `33` taxonomy +
- prompt `05` env), why, retention, processors/subprocessors, and user rights
- (access, export, delete). Build the **data export + deletion** flows (real, wired —
- not a mailto), respecting the data model (prompt `26`).
-3. **Consent management:** cookie/analytics consent banner honoring opt-out and
- do-not-track (ties to prompt `33`); no non-essential tracking before consent.
-4. **Crypto/financial disclosures:** clear, non-misleading disclosures for the
- custodial wallet, payments, token activity, and risk — no investment advice, no
- guaranteed returns. Reinforce the one-coin rule: $THREE is the only coin; no
- promotion of others (prompt `22`).
-5. **Licenses & attribution:** confirm all forks/vendored/3rd-party assets keep
- correct licenses + attribution (the files above); generate a third-party-notices
- page. Confirm the platform's own license posture.
-6. **Compliance posture:** document the platform's stance on the regimes that apply
- (GDPR/CCPA-style data rights, age gating, geo-restrictions if any, KYC/AML
- considerations for money movement) and where counsel sign-off is required. Flag, do
- not fabricate.
-7. **Records:** terms-acceptance is recorded per user with version + timestamp
- (prompt `26`).
-
-## Must-not
-- Do not invent legal text as if it were vetted — mark counsel-review points explicitly.
-- Do not collect/track without the required consent.
-- Do not make financial guarantees or give investment advice anywhere.
-- Do not strip third-party license/attribution.
-
-## Acceptance
-- [ ] ToS, Privacy, AUP pages live + linked (footer/signup/onboarding), with counsel-review flags.
-- [ ] Privacy policy reflects real data practices; working data export + deletion flows.
-- [ ] Consent management honoring opt-out/DNT; no pre-consent non-essential tracking.
-- [ ] Crypto/financial + AI-content disclosures present, non-misleading; one-coin rule reinforced.
-- [ ] All third-party licenses/attribution correct; third-party-notices page generated.
-- [ ] Compliance posture documented with counsel sign-off points flagged.
-- [ ] Versioned terms-acceptance recorded per user.
diff --git a/prompts/production-ready/38-i18n-completion.md b/prompts/production-ready/38-i18n-completion.md
deleted file mode 100644
index c45b4eeb1..000000000
--- a/prompts/production-ready/38-i18n-completion.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# 38 — Internationalization (i18n) completion
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** i18n pipeline (`npm run i18n`, `i18n:extract`, `i18n:translate`, `i18n:lint`), locale files (`en.json`, `es.json`), all user-facing copy.
-**Depends on:** `13`, `14`. Pairs with `31`, `34`.
-
-## Why this matters for $1B
-A $1B platform is global. Crypto + AI-agent audiences are heavily international. Full
-i18n unlocks entire markets at low marginal cost and improves SEO per locale. The
-pipeline already exists (`en`, `es`) — finish and expand it.
-
-## Map
-- Scripts: `i18n`, `i18n:extract`, `i18n:translate`, `i18n:lint` (recent git log:
- "i18n extraction/translation pipeline"). Locales today: `en.json`, `es.json` (+
- `manifest.json`). 125 pages with significant inline copy.
-
-## Do this
-1. **Extraction coverage:** run `i18n:extract` and find untranslated/hardcoded
- strings across `pages/`, `src/`, `public/`. Externalize every user-facing string
- into the catalog with stable keys. `i18n:lint` clean (no missing keys, no
- hardcoded UI text).
-2. **Complete existing locales:** fill all gaps in `es.json` so Spanish is 100%, not
- partial. Use `i18n:translate` then review for quality/context (not literal MT
- where it reads wrong).
-3. **Add priority locales:** expand beyond en/es to the highest-value markets for the
- audience (e.g. add a few more major languages). Each new locale goes through
- extract → translate → review → lint.
-4. **Locale-aware formatting:** numbers, dates, currencies (USDC amounts), and
- pluralization use locale-aware formatting (Intl APIs) — not hardcoded formats.
-5. **RTL readiness:** if any RTL locale is added, the layout supports `dir="rtl"`
- (logical CSS properties, mirrored components) — coordinate with prompt `13`.
-6. **Locale routing + SEO:** language switching is discoverable + persistent;
- per-locale URLs with `hreflang` tags and locale-specific meta (prompt `14`); the
- sitemap includes locale variants.
-7. **No untranslated leaks:** every state (incl. errors, empty states, emails/
- notifications — prompts `12`, `39`) is localized. Pseudo-localize to catch
- truncation/overflow before shipping.
-8. Wire `i18n:lint` into CI so new hardcoded strings fail the build.
-
-## Must-not
-- Do not ship hardcoded user-facing strings — externalize to the catalog.
-- Do not leave a locale partially translated and selectable as if complete.
-- Do not hardcode number/date/currency formats.
-
-## Acceptance
-- [ ] `i18n:lint` clean; all user-facing strings externalized with stable keys.
-- [ ] `es.json` 100% complete and reviewed; priority new locales added via the pipeline.
-- [ ] Locale-aware number/date/currency/plural formatting via Intl.
-- [ ] RTL support if an RTL locale is added.
-- [ ] Discoverable persistent language switch; `hreflang` + per-locale meta + sitemap.
-- [ ] Errors/empty states/emails localized; pseudo-loc overflow check done.
-- [ ] `i18n:lint` enforced in CI.
diff --git a/prompts/production-ready/39-pwa-and-notifications.md b/prompts/production-ready/39-pwa-and-notifications.md
deleted file mode 100644
index 03525d3e5..000000000
--- a/prompts/production-ready/39-pwa-and-notifications.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# 39 — PWA & notifications
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth
-**Owns:** PWA manifest + service worker, install experience, push/email/Telegram notifications, `api/newsletter-subscribe.js`, changelog Telegram push.
-**Depends on:** `10`, `25`, `33`, `37`. Pairs with `30`, `35`.
-
-## Why this matters for $1B
-Re-engagement is retention, and retention is valuation. An installable PWA + a
-well-built notification system (a launch filled, a skill sold, a tip received, an
-agent mentioned) brings users back without paid spend. The platform already pushes the
-changelog to a $THREE-holder Telegram channel — extend that muscle into real product
-notifications.
-
-## Map
-- Existing: `api/newsletter-subscribe.js`, changelog Telegram push
- (`npm run changelog:push`, `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHANGELOG_CHAT_ID`).
- `public/error-reporter.js` + `npm run generate-icons` show client + icon infra to
- build on.
-
-## Do this
-1. **PWA:** add/validate a complete web app manifest (name, icons across sizes, theme/
- background colors, display mode, start URL) so the app is installable on mobile +
- desktop. `npm run generate-icons` covers icon sizes.
-2. **Service worker:** offline-friendly shell + smart caching for static assets/GLBs
- (coordinate with prompt `10` cache policy); cache-first for immutable assets,
- network-first for data; a clean offline page. Versioned SW with safe update flow
- (no stale-forever bug).
-3. **Push notifications:** real web-push (with permission requested at a *good* moment,
- not on first load) for high-value events: your launch filled, skill sold, tip
- received, payout ready, agent mentioned/forked. User-controllable per category.
-4. **Email:** transactional emails (welcome/onboarding — prompt `30`, receipts —
- prompt `32`, security alerts) via a real provider; double-opt-in newsletter built
- on `newsletter-subscribe.js`. Localized (prompt `38`).
-5. **Telegram:** keep the holder changelog push; optionally let users opt into
- per-account Telegram alerts for their agents/launches. Reuse the existing bot infra.
-6. **Preference center:** one place to manage every notification channel + category,
- with easy unsubscribe (and honoring it — prompt `37`). No notification without a
- real off switch.
-7. **Instrument:** track notification sent → opened → returned (prompt `33`) so the
- re-engagement loop is measurable and tuned, not spammy.
-
-## Must-not
-- Do not request push/notification permission on first load — ask at a value moment.
-- Do not send a notification type the user can't turn off.
-- Do not cache so aggressively that users get stuck on a stale build (safe SW updates).
-- Do not reference any coin other than $THREE in any notification copy.
-
-## Acceptance
-- [ ] Complete PWA manifest; app installable on mobile + desktop.
-- [ ] Versioned service worker with smart caching, offline page, safe update flow.
-- [ ] Web-push for high-value events, permission asked at a good moment, per-category control.
-- [ ] Transactional emails + double-opt-in newsletter via a real provider, localized.
-- [ ] Telegram changelog retained; optional per-account alerts.
-- [ ] Unified preference center with honored unsubscribe.
-- [ ] Notification sent→opened→returned instrumented.
diff --git a/prompts/production-ready/40-launch-readiness-review.md b/prompts/production-ready/40-launch-readiness-review.md
deleted file mode 100644
index 47e321e5e..000000000
--- a/prompts/production-ready/40-launch-readiness-review.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# 40 — Launch-readiness review (the final gate)
-
-> Part of **Production-Ready** (`prompts/production-ready/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Growth (final gate)
-**Owns:** the whole platform — a top-to-bottom verification that prompts `01`–`39` actually landed.
-**Depends on:** all prior prompts.
-
-## Why this matters for $1B
-This is the gate that ensures the program produced a platform you'd actually stake the
-company on. It's the difference between "we did a lot of work" and "we are
-production-ready." Run it as an adversarial reviewer, not a cheerleader.
-
-## Mission
-Verify, end to end, that the platform meets the production + growth bar set by this
-program and by `/CLAUDE.md`'s Definition of Done — and produce a single, honest
-readiness report with any remaining gaps and their owners.
-
-## Do this
-1. **Re-verify each phase against reality, not claims.** For prompts `01`–`39`, spend
- a few minutes confirming the Acceptance checklist actually holds in the live app/
- code today (things regress). Note any that slipped.
-2. **Critical-path walkthrough in a real browser** (desktop + mobile, both themes):
- land → onboard → forge a model → create/own an agent → buy a skill → make an x402
- payment → launch → share. Every step works, every state designed, zero console
- errors, zero dead ends.
-3. **Money paths, adversarially:** attempt double-charge, replay, price tampering,
- and unauthorized withdrawal — confirm each is blocked (prompts `07`, `18`).
-4. **Quality gates green:** `npm run lint`, `npm run typecheck`, `npm run test:all`,
- `npm run audit:deploy`, `audit:pages`, `audit:web`, `audit:mcp`, `seo:meta`,
- `check:images`, `verify`, `smoke:onchain`, `smoke:mcp` — run them; all pass.
-5. **Cross-cutting spot-audit:** a11y (axe on top flows), Lighthouse perf on key
- pages, mobile at 320/768/1440, secret scan, `npm audit` — confirm prompts `05`,
- `07`, `09`, `10`, `11` held.
-6. **The one-coin rule:** final grep across code/copy/tests/docs/metadata — only
- $THREE, plus the two runtime-data exceptions. Zero other coins (prompt `22`).
-7. **Observability + ops:** dashboards live, alerts wired, status page up, rollback
- practiced, backups restore-tested (prompts `25`–`28`).
-8. **Growth instrumentation:** activation/retention/revenue funnels reporting real
- numbers; referral + notifications working (prompts `30`–`35`, `39`).
-9. **Legal/safety:** ToS/privacy/AUP live, consent working, moderation + reporting
- live, data export/delete working (prompts `36`, `37`).
-10. **Produce `docs/launch-readiness.md`:** a dated report with a per-area
- GREEN/YELLOW/RED status, the evidence checked, every remaining gap, its severity,
- and a clear owner/next step. Be honest — RED where it's RED. Do not claim done for
- anything you could not verify (`/CLAUDE.md`).
-
-## Must-not
-- Do not rubber-stamp. If you can't verify something, mark it unverified — never green.
-- Do not skip the adversarial money-path checks.
-- Do not let the one-coin grep slide.
-
-## Acceptance
-- [ ] Prompts `01`–`39` Acceptance re-verified against the live app/code; slips logged.
-- [ ] Full critical-path walkthrough passes desktop + mobile + both themes, zero console errors / dead ends.
-- [ ] Adversarial money-path checks all blocked.
-- [ ] All quality gates + audit scripts green.
-- [ ] Cross-cutting spot-audit (a11y/perf/mobile/secrets/`npm audit`) passes.
-- [ ] One-coin grep clean (only $THREE + the two runtime exceptions).
-- [ ] Observability/ops + growth + legal/safety verified live.
-- [ ] `docs/launch-readiness.md` written: dated, per-area RAG status, gaps, owners.
diff --git a/prompts/readiness/00-README-orchestration.md b/prompts/readiness/00-README-orchestration.md
deleted file mode 100644
index ef993ee7a..000000000
--- a/prompts/readiness/00-README-orchestration.md
+++ /dev/null
@@ -1,120 +0,0 @@
-# Production-Readiness Program — Road to $1B
-
-> A concurrent agent may also be authoring a parallel track in
-> [`../road-to-1b/`](../road-to-1b/). The two overlap and complement each other —
-> that one leans into per-surface end-to-end prompts (forge, marketplace,
-> scene-studio, wallet/x402, pumpfun, mcp, sdk-publishing, load-testing); this one
-> leans into cross-cutting hardening + the audit/launch/incident spine. Pick one
-> track, or merge them once both are finished. This file documents **this**
-> directory only.
-
-This directory is a **sequenced program of self-contained prompts**. Each `.md`
-file is a complete task brief you paste into a **fresh agent chat** at
-`/workspaces/three.ws`. Run them in order within a phase; phases mostly gate on
-the one before. Every prompt is written to be run with zero prior context — it
-restates where it is, what the codebase is, and which rules apply.
-
-## The thesis
-
-A platform reaches a billion-dollar valuation on three things this program
-drives toward:
-
-1. **It works, completely.** No dead buttons, no half-wired flows, no fake data,
- no TODOs shipped to users. (Phase 1)
-2. **It never goes down and never leaks.** Hardened APIs, resilient external
- calls, real observability, a real security posture. (Phase 2–3)
-3. **People can't stop using it and telling others.** Fast, polished, accessible,
- shareable, monetized, instrumented. (Phase 4–6)
-
-We do not get there with "good enough." Read [CLAUDE.md](../../CLAUDE.md) before
-every task — it is the operating contract. The relevant non-negotiables:
-
-- No mocks, no fake data, no placeholders, no TODO comments, no stubs.
-- The only coin is **$THREE** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
-- Every user-visible change gets a `data/changelog.json` entry.
-- Stage explicit paths only (concurrent agents share this worktree). Never
- `git add -A`. Re-check `git status` before committing.
-- Push to **both** remotes (`threeD`, `threews`) when asked to push. Never pull
- from `threeD`.
-
-## How to run
-
-1. Open a new chat in this repo.
-2. Paste the entire contents of one prompt file.
-3. Let the agent finish, verify its Definition of Done, then move to the next.
-4. Prompts marked **[parallel-safe]** can run simultaneously in separate chats
- (they touch disjoint surfaces). Prompts marked **[serial]** must run alone.
-
-## The baseline (measured 2026-06-21, will change as you work)
-
-These are the concrete gaps this program closes. Re-run the discovery commands
-inside each prompt to get the live number — do not trust this snapshot.
-
-| Signal | Count | Closed by |
-|---|---|---|
-| TODO / FIXME / placeholder / "coming soon" markers in `src/ public/ api/` | 652 | [02](02-eliminate-todos-and-stubs.md) |
-| Empty `catch {}` blocks | 126 | [03](03-harden-error-boundaries.md) |
-| Mock / sample / fake-data arrays | 23 | [04](04-purge-mock-and-fake-data.md) |
-| API functions (each needs authz + validation + rate limiting reviewed) | 769 | [08](08-api-hardening.md) |
-| Env keys (secrets surface) | 275 | [07](07-secrets-and-env-hardening.md) |
-| CI workflows | 1 | [16](16-ci-cd-hardening.md) |
-
-Discovery, anytime:
-
-```bash
-grep -rIn "TODO\|FIXME\|not implemented\|implement later\|placeholder\|coming soon\|XXX:" --include=*.js src/ public/ api/ | grep -v node_modules | wc -l
-grep -rIn "catch[^)]*) *{ *}" --include=*.js src/ public/ api/ | grep -v node_modules | wc -l
-```
-
-## Phases
-
-**Phase 1 — Correctness & hygiene (no shortcuts ship).** Serialize 02→06; they
-edit broadly and you want clean diffs between them.
-- [01 — Production audit & scorecard](01-production-audit-scorecard.md) **[serial, run first]**
-- [02 — Eliminate every TODO / stub / placeholder](02-eliminate-todos-and-stubs.md)
-- [03 — Harden every error boundary (kill empty catches)](03-harden-error-boundaries.md)
-- [04 — Purge all mock / sample / fake data](04-purge-mock-and-fake-data.md)
-- [05 — Dead-path & handler audit (every button works)](05-dead-path-and-handler-audit.md)
-- [06 — $THREE coin-compliance sweep](06-three-coin-compliance-sweep.md)
-
-**Phase 2 — Reliability & security (institutional grade).** [parallel-safe]
-across 07–11 once Phase 1 is clean.
-- [07 — Secrets & env hardening](07-secrets-and-env-hardening.md)
-- [08 — API hardening: authz, validation, rate limiting](08-api-hardening.md)
-- [09 — Security review: payments, wallets, contracts](09-security-review.md)
-- [10 — Resilience on every external call](10-resilience-external-calls.md)
-- [11 — Observability: logging, monitoring, alerting](11-observability.md)
-
-**Phase 3 — Performance & scale.** [parallel-safe]
-- [12 — Frontend performance & Core Web Vitals](12-frontend-performance.md)
-- [13 — 3D asset performance](13-3d-asset-performance.md)
-- [14 — Backend caching & data layer](14-backend-caching.md)
-
-**Phase 4 — Quality & testing.**
-- [15 — Test coverage to the bar](15-test-coverage.md) **[serial]**
-- [16 — CI/CD hardening](16-ci-cd-hardening.md) **[serial]**
-- [17 — Accessibility audit (WCAG 2.2 AA)](17-accessibility-audit.md) **[parallel-safe]**
-
-**Phase 5 — UX polish & completeness.** [parallel-safe]
-- [18 — Every state designed (loading/empty/error/overflow)](18-state-design-sweep.md)
-- [19 — Responsive / mobile sweep](19-responsive-mobile-sweep.md)
-- [20 — Design-system & token consistency](20-design-system-consistency.md)
-- [21 — Onboarding & first-run experience](21-onboarding-first-run.md)
-
-**Phase 6 — Growth, monetization & the $1B narrative.**
-- [22 — SEO & shareability](22-seo-and-shareability.md) **[parallel-safe]**
-- [23 — Growth & virality loops](23-growth-virality.md) **[parallel-safe]**
-- [24 — Monetization completeness](24-monetization-completeness.md) **[parallel-safe]**
-- [25 — Analytics & funnel instrumentation](25-analytics-funnel.md) **[parallel-safe]**
-- [26 — Trust surfaces: status, docs, security, pricing](26-trust-surfaces.md) **[parallel-safe]**
-
-**Phase 7 — Launch.**
-- [27 — Go-live runbook & pre-launch checklist](27-launch-runbook.md) **[serial, run last]**
-- [28 — Incident response & on-call](28-incident-response-oncall.md) **[serial]**
-
-## Done means done
-
-A prompt is complete only when its own Definition-of-Done checklist is fully
-true and verified — not when the code is written. If an agent can't verify a
-step, it must say so explicitly. Same rule as [CLAUDE.md](../../CLAUDE.md): you
-would be proud to demo every result to a room of senior engineers.
diff --git a/prompts/readiness/01-production-audit-scorecard.md b/prompts/readiness/01-production-audit-scorecard.md
deleted file mode 100644
index c0bd2b8f6..000000000
--- a/prompts/readiness/01-production-audit-scorecard.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# 01 — Production audit & readiness scorecard
-
-**Run this first. Serial.** It produces the source-of-truth report every later
-prompt checks against.
-
-## Where you are
-
-You are at `/workspaces/three.ws` — **three.ws**, an open-source browser-native
-3D AI-agent platform (Three.js/Vite frontend, Vercel functions in `api/`,
-Cloudflare workers in `workers/`, Solana + x402 payments, $THREE token). Read
-[CLAUDE.md](../../CLAUDE.md) and [STRUCTURE.md](../../STRUCTURE.md) before doing
-anything. The only coin is **$THREE**.
-
-## Objective
-
-Produce an honest, file-level production-readiness scorecard. You are not fixing
-anything in this task — you are establishing ground truth so the fix tasks are
-targeted and measurable. The deliverable is a committed report plus a machine
--readable inventory the rest of the program consumes.
-
-## Why it matters
-
-You cannot claim "100% production ready" against a number you never measured.
-This report is the before-picture. Every later prompt closes a row in it.
-
-## Instructions
-
-1. **Inventory the gaps.** Run each, capture counts AND the file list:
- ```bash
- grep -rIn "TODO\|FIXME\|not implemented\|implement later\|placeholder\|coming soon\|XXX:\|HACK" --include=*.js src/ public/ api/ workers/ | grep -v node_modules
- grep -rIn "catch[^)]*) *{ *}" --include=*.js src/ public/ api/ workers/ | grep -v node_modules
- grep -rIn "const sample\|mockData\|fakeData\|sampleAgents\|dummyData\|hardcoded\|FIXME" --include=*.js src/ public/ api/ | grep -v node_modules
- grep -rIn "console.log\|console.warn\|console.error" --include=*.js src/ public/ | grep -v node_modules | wc -l
- ```
-2. **Run the repo's own auditors** and record pass/fail + output:
- ```bash
- npm run audit:handlers # empty event handlers / dead buttons
- npm run audit:pages # page index integrity
- npm run check:images # image loading (strict)
- npm run audit:web # web audit
- npm run lint # eslint
- npm run typecheck # tsc
- npm test 2>&1 | tail -40 # current test state
- ```
- Do not fix failures here — record them.
-3. **Map dead paths at the product level.** For each top surface in
- [STRUCTURE.md](../../STRUCTURE.md) (forge, marketplace, trending, studio,
- walk, club, reputation, launches, chat, x402 checkout), note in one line:
- does the primary user flow complete end-to-end with real data? Use the dev
- server if needed (`npm run dev`, port 3000). Flag anything that 404s,
- throws, or shows placeholder/empty content where data should be.
-4. **Score each surface** 0–5 on: completeness, error/empty/loading states,
- mobile, accessibility, performance. Be ruthless; a 3 is "works but not
- demoable."
-5. **Write the report** to `docs/audits/production-readiness-YYYY-MM-DD.md`
- (use today's date) with: the gap counts table, the auditor results, the
- surface scorecard, and a prioritized fix list keyed to the prompt numbers in
- [00-README-orchestration.md](00-README-orchestration.md).
-6. **Write the machine inventory** to `docs/audits/gap-inventory.json` —
- `{ todos: [...], emptyCatches: [...], mockData: [...], deadPaths: [...] }`,
- each entry `{ file, line, snippet }`. Later prompts diff against this.
-
-## Definition of done
-
-- [ ] `docs/audits/production-readiness-<today>.md` committed, with real numbers
- (not estimates) and a per-surface scorecard.
-- [ ] `docs/audits/gap-inventory.json` committed and valid JSON.
-- [ ] Every auditor command above was run and its result recorded, including
- failures — no command silently skipped.
-- [ ] The report names the 10 highest-leverage fixes, each linked to a prompt.
-- [ ] No source files changed (this is read-only except the two reports).
-- [ ] Changelog: skip — this is an internal audit, not user-visible.
diff --git a/prompts/readiness/02-eliminate-todos-and-stubs.md b/prompts/readiness/02-eliminate-todos-and-stubs.md
deleted file mode 100644
index 4913bf453..000000000
--- a/prompts/readiness/02-eliminate-todos-and-stubs.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 02 — Eliminate every TODO, stub & placeholder
-
-**Phase 1. Run after [01](01-production-audit-scorecard.md). Serial** (broad
-edits — keep its diff isolated).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Read
-[CLAUDE.md](../../CLAUDE.md). Hard rules in play: **No TODO comments. No
-`// implement later`. No stub functions. No `throw new Error("not implemented")`.
-No commented-out code. If you write it, finish it.** There are ~652 marker hits
-to resolve. The only coin is **$THREE**.
-
-## Objective
-
-Drive the TODO/FIXME/stub/placeholder count in `src/ public/ api/ workers/` to
-**zero** — by *implementing* the missing behavior, not by deleting the comment
-and leaving the gap. Every marker is either real missing work (implement it) or
-a stale note (remove it because the work is already done).
-
-## Why it matters
-
-A TODO in shipped code is an admission the product is unfinished. Investors,
-contributors, and users read this repo. Every marker is a small broken promise.
-Closing them is the difference between a demo and a product.
-
-## Instructions
-
-1. **Enumerate** from `docs/audits/gap-inventory.json` (or re-run the grep in
- [00-README](00-README-orchestration.md)). Group by directory/owner-surface so
- you can batch related ones.
-2. **Triage each marker** into one of:
- - **Implement** — the feature/branch/edge-case is genuinely missing. Build it
- properly with real APIs and real data. No shortcuts.
- - **Already done** — the note is stale; delete the comment.
- - **Wrong layer** — it describes work that belongs elsewhere; implement in the
- right place and remove the marker.
- Never resolve by weakening behavior or hiding the path.
-3. **For commented-out code:** delete it or implement it. Git history is the
- archive — dead code in the tree is not.
-4. **For `// placeholder` UI / copy / data:** replace with the real thing. If a
- value must come from an API, wire the fetch. If copy is a stand-in, write the
- final copy.
-5. **Work in reviewable batches** by surface (e.g. all forge TODOs, then all
- marketplace TODOs). After each batch run `npm run lint && npm run typecheck`
- and the relevant tests. Commit per surface with explicit paths so concurrent
- agents aren't clobbered (`git add <files>`, never `-A`).
-6. **Re-measure** after each batch; track the count down to zero.
-
-## Definition of done
-
-- [ ] `grep -rIn "TODO\|FIXME\|not implemented\|implement later\|placeholder\|coming soon\|XXX:\|HACK" --include=*.js src/ public/ api/ workers/ | grep -v node_modules` returns **0** (or each remaining hit is a legitimate string literal a user types/searches, justified inline in your final report).
-- [ ] No `throw new Error("not implemented")`, no stub functions, no
- commented-out code blocks remain in the changed files.
-- [ ] Every "implement" item is wired to real APIs/data and reachable in the UI.
-- [ ] `npm run lint`, `npm run typecheck`, and `npm test` pass.
-- [ ] `gap-inventory.json` `todos` array updated to reflect what was closed.
-- [ ] Changelog: add one `improvement` entry to `data/changelog.json` if any
- user-visible behavior was completed (plain language, not "removed TODOs").
diff --git a/prompts/readiness/03-harden-error-boundaries.md b/prompts/readiness/03-harden-error-boundaries.md
deleted file mode 100644
index 27018a7e2..000000000
--- a/prompts/readiness/03-harden-error-boundaries.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# 03 — Harden every error boundary (kill the empty catches)
-
-**Phase 1. Serial** after [02](02-eliminate-todos-and-stubs.md).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Read
-[CLAUDE.md](../../CLAUDE.md). Rules in play: **Errors handled at boundaries
-(network, user input). No errors without solutions — there is always a correct
-answer. Ship working fallbacks and failsafes. Lazy error propagation is not
-engineering.** ~126 empty `catch {}` blocks exist. The only coin is **$THREE**.
-
-## Objective
-
-Eliminate silent failure. Every `catch` either (a) recovers with a real
-fallback, (b) surfaces an actionable error to the user at a UI boundary, or (c)
-reports to the error pipeline with enough context to debug — never swallows.
-
-## Why it matters
-
-An empty catch is a bug that will happen in production and that you have
-pre-decided not to learn about. At scale these are the outages you can't explain
-and the user reports you can't reproduce. Silent failure is the opposite of
-institutional grade.
-
-## Instructions
-
-1. **Enumerate** empty/near-empty catches:
- ```bash
- grep -rIn "catch[^)]*) *{ *}" --include=*.js src/ public/ api/ workers/ | grep -v node_modules
- grep -rPzoIn "catch\s*\([^)]*\)\s*\{\s*(//[^\n]*)?\s*\}" --include=*.js src/ public/ api/ | grep -v node_modules
- ```
- Also review `catch` blocks whose body is only `return null` / `return` /
- `return []` where the caller can't distinguish "no data" from "it broke."
-2. **Classify each external boundary** (fetch, RPC, pump.fun, LLM proxy, wallet,
- file/parse) vs **internal logic**. CLAUDE.md: internal code trusts itself;
- boundaries are where handling belongs.
-3. **For each, pick the right resolution:**
- - **User-facing UI:** show a designed error state with a recovery action
- (retry, reconnect wallet, refresh). Never a blank void or a console-only
- log. Coordinate with [18 — state design](18-state-design-sweep.md).
- - **Background/worker:** log structured context + retry/backoff where
- transient (see [10 — resilience](10-resilience-external-calls.md)), then
- fail loudly to the error pipeline (see [11 — observability](11-observability.md)).
- - **Truly ignorable** (e.g. `localStorage` blocked in private mode, optional
- analytics): keep the catch but add a one-line comment stating *why* it is
- safe to ignore, and degrade gracefully. A justified silent catch is fine;
- an unexplained one is not.
-4. **Add a shared helper** if a pattern repeats (e.g. `reportError(err, ctx)` and
- a `withFallback(fn, fallback)`), and route catches through it. Prefer the
- existing `public/error-reporter.js` if present — extend, don't duplicate.
-5. **Verify behavior, not just code.** For at least the top 10 user-facing
- boundaries, force the failure (offline, bad input, rejected wallet) in
- `npm run dev` and confirm the user sees a recoverable state.
-
-## Definition of done
-
-- [ ] Zero unexplained empty `catch {}` in `src/ public/ api/ workers/`. Every
- remaining bare catch has a one-line justification comment.
-- [ ] Every network/RPC/LLM/wallet boundary surfaces a recoverable UI state or
- reports to the error pipeline — none swallow silently.
-- [ ] Forced-failure check done on the top 10 boundaries; each degrades
- gracefully (recorded in your report).
-- [ ] `npm run lint`, `npm run typecheck`, `npm test` pass.
-- [ ] `gap-inventory.json` `emptyCatches` updated.
-- [ ] Changelog: `fix` entry in `data/changelog.json` if users will now see
- recoverable errors where things used to silently fail.
diff --git a/prompts/readiness/04-purge-mock-and-fake-data.md b/prompts/readiness/04-purge-mock-and-fake-data.md
deleted file mode 100644
index 8c5edeb76..000000000
--- a/prompts/readiness/04-purge-mock-and-fake-data.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# 04 — Purge all mock, sample & fake data
-
-**Phase 1. Serial** after [03](03-harden-error-boundaries.md).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Read
-[CLAUDE.md](../../CLAUDE.md). Rules in play: **No mocks. No fake data. No
-fallback sample arrays shipped to production. Real fetch only. Use real APIs,
-real endpoints, real data.** The only coin is **$THREE** — and **no third-party
-or real mainnet mints in fixtures**; use `$THREE` (CA
-`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) or a clearly-synthetic
-placeholder like `THREEsynthetic1111…`.
-
-## Objective
-
-Remove every hardcoded sample array, mock object, and fake-data fallback from
-production code paths. Where a UI currently falls back to canned data when a
-fetch fails, replace that with a real loading + empty + error state driven by
-the real API.
-
-## Why it matters
-
-Fake data is a lie to the user and to yourself. It hides broken integrations,
-inflates how finished the product looks, and eventually ships to someone who
-makes a decision based on numbers that were never real. A $1B platform shows
-real state — including "nothing here yet" — never invented state.
-
-## Instructions
-
-1. **Find candidates:**
- ```bash
- grep -rIn "const sample\|sampleAgents\|sampleData\|mockData\|fakeData\|dummyData\|placeholderData\|DEMO_\|FALLBACK_DATA\|= \[ *{ *id:" --include=*.js src/ public/ api/ | grep -v node_modules
- grep -rIn "// fallback\|// sample\|// demo data\|// mock" --include=*.js src/ public/ | grep -v node_modules
- ```
- Cross-check against `gap-inventory.json` `mockData`.
-2. **For each hit, classify:**
- - **Production fallback** (sample array rendered when fetch fails/empty) →
- **delete it.** Replace with: real fetch → designed loading state → designed
- empty state ("nothing here yet, do X") → designed error state. No canned
- rows.
- - **Test fixture / Storybook / example** under `tests/`, `examples/`,
- `*.test.js` → allowed to stay, but scrub any real third-party mint/coin/
- address and replace with `$THREE` CA or a synthetic placeholder.
- - **Seed data** for a real feature (e.g. onboarding defaults) → keep only if
- it is genuinely the product's real default, not a stand-in for a missing
- fetch.
-3. **Wire the real source.** If a component used fake data because no endpoint
- existed, the endpoint is the missing work — build it (real API in `api/`,
- real query) and connect it. Do not leave the component dataless.
-4. **Empty states are mandatory.** Every list/grid/feed that loses its fake
- fallback must gain a real empty state. Coordinate with
- [18 — state design](18-state-design-sweep.md).
-5. **Verify in the browser** (`npm run dev`): each touched surface shows real
- data on success, a real empty state with zero items, and a real error state
- when the API is down (kill the network in devtools to test).
-
-## Definition of done
-
-- [ ] No sample/mock/fake-data array is reachable in any production render path.
-- [ ] Every delisted fallback is replaced by real fetch + loading + empty +
- error states, verified in the browser.
-- [ ] No real third-party coin/mint/address remains in any fixture; only `$THREE`
- CA or synthetic placeholders.
-- [ ] Any endpoint that was missing is now built with real data and wired in.
-- [ ] `npm test` passes; `gap-inventory.json` `mockData` updated.
-- [ ] Changelog: `improvement` entry if users now see real data where canned
- data used to appear.
diff --git a/prompts/readiness/05-dead-path-and-handler-audit.md b/prompts/readiness/05-dead-path-and-handler-audit.md
deleted file mode 100644
index ef0bf40e1..000000000
--- a/prompts/readiness/05-dead-path-and-handler-audit.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# 05 — Dead-path & handler audit (every button works, every link goes somewhere)
-
-**Phase 1. Serial** after [04](04-purge-mock-and-fake-data.md).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform (125 pages, 118 public
-JS, 810 src JS). Read [CLAUDE.md](../../CLAUDE.md). Rules in play: **Eliminate
-dead paths. If a button exists it must work. If a link exists it must go
-somewhere. If a state exists there must be a way to reach it.** There is a repo
-auditor for this: `npm run audit:handlers`. The only coin is **$THREE**.
-
-## Objective
-
-Zero dead interactive elements across the whole app. Every button has a working
-handler, every link resolves to a real route (no 404), every nav item leads
-somewhere real, every reachable state has a path in and a path out.
-
-## Why it matters
-
-Nothing tanks trust faster than a button that does nothing. At a billion-dollar
-bar, the product must feel like everything is wired — because it is. Dead paths
-are the tells of an unfinished product.
-
-## Instructions
-
-1. **Run the auditors and fix to green:**
- ```bash
- npm run audit:handlers # empty/no-op handlers
- npm run audit:pages # page index ↔ files integrity
- npm run audit:web # broader web audit
- npm run check:images # broken/lazy images
- ```
-2. **Find no-op handlers manually too:**
- ```bash
- grep -rIn "onclick=\"\"\|onClick={() => {}}\|href=\"#\"\|href=\"javascript:\|addEventListener([^,]*, *function *() *{ *})" --include=*.html --include=*.js public/ pages/ src/ | grep -v node_modules
- ```
-3. **Crawl the real app** (`npm run dev`, port 3000). For each top surface
- (home, forge, marketplace, trending, studio, walk, club, reputation,
- launches, chat, x402 checkout, settings, login): click every button, follow
- every link, open every menu. Log each dead end.
-4. **Fix each dead path properly:**
- - Button with no handler → implement the real action it implies.
- - Link to a missing route → build the route, or repoint to the correct
- existing one. Never leave `href="#"`.
- - Unreachable state → add navigation to it, or remove the state if it's
- vestigial (CLAUDE.md: delete aggressively).
- - Disabled-forever control → enable it with real behavior or remove it.
-5. **Check cross-surface wiring** (CLAUDE.md "think in systems"): does the
- marketplace link to agent profiles? Does an agent profile link to its
- launches, reputation, and chat? Wire the connections that should exist.
-6. **404 + error routes:** confirm a designed 404 page exists and that unknown
- routes hit it, not a blank screen.
-
-## Definition of done
-
-- [ ] `npm run audit:handlers`, `audit:pages`, `audit:web`, `check:images` all
- pass.
-- [ ] Manual crawl complete; every button/link on every top surface does
- something real. The dead-end log is fully resolved (attach it to your
- report with each item's resolution).
-- [ ] No `href="#"` / `href="javascript:void"` / empty handler remains in
- shipped HTML/JS.
-- [ ] Cross-surface links that *should* exist now exist (named in your report).
-- [ ] Designed 404/unknown-route handling verified.
-- [ ] `gap-inventory.json` `deadPaths` updated; `npm test` passes.
-- [ ] Changelog: `improvement`/`fix` entry for any user-facing wiring that now
- works.
diff --git a/prompts/readiness/06-three-coin-compliance-sweep.md b/prompts/readiness/06-three-coin-compliance-sweep.md
deleted file mode 100644
index 67a9fdff2..000000000
--- a/prompts/readiness/06-three-coin-compliance-sweep.md
+++ /dev/null
@@ -1,78 +0,0 @@
-# 06 — $THREE coin-compliance sweep
-
-**Phase 1. Serial** after [05](05-dead-path-and-handler-audit.md). Highest
-sensitivity — treat any violation like a leaked secret.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Read the **"The only
-coin — $THREE"** section of [CLAUDE.md](../../CLAUDE.md) in full before starting;
-it governs this entire task.
-
-## The rule
-
-**The only coin this platform may ever reference is `$THREE`. Contract address:
-`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. There are no other coins.** This
-includes any other coin three.ws itself may have launched. Never mention, name,
-hardcode, link, import, render, recommend, or talk about any other coin — in
-code, comments, tests, fixtures, sample data, docs, blog, UI copy, metadata, or
-commit messages.
-
-Two **runtime-data-only** mechanical exceptions exist (do NOT remove these):
-1. Coin-agnostic plumbing where a mint is supplied at runtime by the user (e.g.
- the pump.fun launcher accepting an arbitrary mint).
-2. Platform launch directories rendering coins users launched through three.ws
- from real launch records at runtime (`/launches`, agent-profile launch
- history, `/api/pump/launches` over `pump_agent_mints`).
-In both, never hardcode/market/recommend a specific non-`$THREE` mint.
-
-## Objective
-
-Guarantee the entire repository — code, copy, fixtures, docs, metadata — promotes
-exactly one coin: $THREE. Any hardcoded foreign mint, ticker, or coin reference
-is removed (treated like a leaked secret), except the two runtime-data-only
-exceptions above.
-
-## Instructions
-
-1. **Sweep for foreign coin references.** Search broadly across all text, not
- just JS:
- ```bash
- # Hardcoded Solana-style mint addresses (base58, 32-44 chars) that are NOT $THREE
- grep -rEIn "[1-9A-HJ-NP-Za-km-z]{32,44}" --include=*.js --include=*.json --include=*.md --include=*.html . | grep -v node_modules | grep -v "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump"
- # Known foreign tickers / coin words used as promotion (review hits by hand)
- grep -rIn "\$[A-Z]\{2,6\}\b" --include=*.js --include=*.md --include=*.html public/ src/ pages/ docs/ blog/ content/ | grep -v "\$THREE" | grep -v node_modules
- ```
- Most base58 hits will be legitimate (program IDs, USDC mint for x402 rails,
- ATAs, pubkeys, synthetic placeholders). **Review every hit by hand** and
- classify: legitimate infra address (keep), runtime-exception data (keep),
- synthetic placeholder (keep), or **foreign coin promotion (remove)**.
-2. **USDC is allowed** only as a payment rail / quote mint (x402, pump.fun USDC
- pairing) — it is plumbing, not a promoted coin. Confirm each USDC reference is
- rail/quote usage, never "buy USDC the investment."
-3. **For each violation:** remove the reference and replace with `$THREE` (CA
- above) or a clearly-synthetic placeholder where a token value is structurally
- required. Scrub fixtures and tests too.
-4. **Check non-code surfaces:** `data/changelog.json`, `public/*.json`, blog
- posts, docs, OG/meta tags, page `<title>`/descriptions, structured data,
- sample agent cards.
-5. **Protect the exceptions:** verify you did NOT break the `/launches` feed,
- agent-profile launch history, `/api/pump/launches`, or the pump.fun launcher's
- runtime mint input. These render user-launched coins from real records — they
- are product features, not endorsements.
-6. **Add a guard test** under `tests/` that greps the source tree for hardcoded
- non-`$THREE` mints outside an allowlist (infra addresses + synthetic
- placeholders) and fails CI on a new one — so this can never regress.
-
-## Definition of done
-
-- [ ] Every foreign-coin reference in code/copy/fixtures/docs/metadata removed or
- replaced; each base58/ticker hit reviewed and classified in your report.
-- [ ] No hardcoded non-`$THREE` mint promoted anywhere; USDC only as a rail.
-- [ ] The two runtime-data-only exceptions still work (verified): `/launches`,
- profile launch history, `/api/pump/launches`, launcher mint input.
-- [ ] A regression guard test exists under `tests/` and passes in CI.
-- [ ] `npm test` passes.
-- [ ] Commit message stays neutral — do NOT restate any removed coin name in the
- message (CLAUDE.md revert/redeploy rule). Changelog: skip (compliance is
- not a user-facing feature; never name a removed coin in the changelog).
diff --git a/prompts/readiness/07-secrets-and-env-hardening.md b/prompts/readiness/07-secrets-and-env-hardening.md
deleted file mode 100644
index f3368d429..000000000
--- a/prompts/readiness/07-secrets-and-env-hardening.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 07 — Secrets & environment hardening
-
-**Phase 2. [parallel-safe]** with 08–11.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Backend is Vercel
-functions (`api/`) + Cloudflare workers (`workers/`). There are ~275 keys in
-`.env.example`. Read [CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-A clean, documented, leak-proof secrets posture: nothing secret in the repo, a
-single canonical inventory of every env var (what it's for, where it's set, is
-it required), startup validation that fails loudly on missing critical config,
-and a verified separation between client-exposed and server-only values.
-
-## Why it matters
-
-275 env vars is a large attack surface. One leaked private key (Solana deploy
-wallet, parent SNS secret, Telegram bot token, RPC API key) is a catastrophic,
-irreversible event for a token platform. Institutional readiness means you can
-prove no secret is in the tree and every required one is validated at boot.
-
-## Instructions
-
-1. **Scan for committed secrets** (history included):
- ```bash
- grep -rIn "PRIVATE_KEY\|SECRET\|_TOKEN\|BASE58\|sk-\|AKIA\|-----BEGIN" --include=*.js --include=*.json --include=*.env* . | grep -v node_modules | grep -v ".env.example"
- git log --all -p -S "PRIVATE_KEY" -- . | head -200 # spot-check history for leaks
- ```
- If a real secret is found in the tree or history, treat it as compromised:
- rotate it (tell the user which key to rotate and where) and remove it. Do not
- just delete the line.
-2. **Client vs server boundary.** Any secret referenced in `public/` or in
- client bundles is exposed. Confirm only intentionally-public values (e.g.
- `VITE_`-prefixed, public RPC URLs, publishable keys) appear client-side.
- Anything sensitive in client code is a leak — move it behind an `api/` proxy.
-3. **Build the canonical inventory.** Generate `docs/configuration.md` (or update
- it) and a checked-in `.env.example` that lists **every** var with: one-line
- purpose, `required|optional`, `server|client`, and which feature breaks
- without it. Derive the list from actual `process.env.X` / `import.meta.env.X`
- usage:
- ```bash
- grep -rohE "process\.env\.[A-Z0-9_]+|import\.meta\.env\.[A-Z0-9_]+" --include=*.js . | grep -v node_modules | sort -u
- ```
- Flag any var used in code but missing from `.env.example`, and any var in
- `.env.example` never used in code (dead — remove).
-4. **Startup validation.** Add a single `assertEnv()` / config-loader module that,
- at function/worker cold start, validates the critical secrets for that surface
- are present and well-formed, and fails with a clear message naming the missing
- var. No feature should fail deep in a request because a key was silently
- undefined.
-5. **`.gitignore` audit.** Confirm `.env`, `.env.*` (except `.env.example`),
- keypair files, and `~/.claude/*` artifacts are ignored. Add any gaps.
-6. **Rotation runbook.** Document in `docs/configuration.md` how to rotate each
- class of secret (Solana keypair, RPC key, Telegram token, SNS parent secret)
- and where it's set (`vercel env`, CF dashboard, etc.).
-
-## Definition of done
-
-- [ ] No real secret in the working tree or surfaced from history (or any found
- one is flagged for rotation with exact instructions to the user).
-- [ ] No sensitive value reachable from client bundles; sensitive lookups proxied
- through `api/`.
-- [ ] `.env.example` lists every used var with purpose/required/scope; no
- used-but-undocumented and no documented-but-dead vars remain.
-- [ ] `assertEnv()` validates critical config at cold start on each surface and
- fails loudly with the missing var name. Verified by temporarily unsetting
- one in dev.
-- [ ] `.gitignore` covers all secret/keypair/artifact patterns.
-- [ ] Rotation runbook in `docs/configuration.md`.
-- [ ] Changelog: skip (internal hardening) unless a user-facing config UX changed.
diff --git a/prompts/readiness/08-api-hardening.md b/prompts/readiness/08-api-hardening.md
deleted file mode 100644
index cc48d11d7..000000000
--- a/prompts/readiness/08-api-hardening.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 08 — API hardening: authz, validation, rate limiting
-
-**Phase 2. [parallel-safe]** with 07, 09–11. Large surface — work in batches.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. **769 functions in
-`api/`** (Vercel) plus `workers/`. Read [CLAUDE.md](../../CLAUDE.md). Rules:
-**Errors handled at boundaries. No errors without solutions.** The only coin is
-**$THREE**.
-
-## Objective
-
-Every public endpoint is: authenticated/authorized where it touches user data or
-spends money, input-validated on every parameter, rate-limited against abuse,
-and returns consistent, safe error responses (no stack traces, no internal
-detail leaks). Build shared middleware so this is uniform, not per-file.
-
-## Why it matters
-
-769 endpoints is 769 doors. At a billion-dollar bar, an unauthenticated mutation,
-an unvalidated mint/amount, or an un-rate-limited payment endpoint is an exploit
-waiting to be found. Payments, wallet ops, and on-chain actions especially must
-be airtight.
-
-## Instructions
-
-1. **Inventory endpoints and classify** by sensitivity:
- ```bash
- find api -name '*.js' | grep -v _lib | grep -v node_modules | wc -l
- grep -rln "export default\|module.exports" api/ | grep -v node_modules
- ```
- Tag each: **public-read** (cacheable, no auth), **auth-read** (needs session),
- **mutation** (writes data), **money/chain** (payments, mint, transfer, x402,
- pump). Money/chain is highest priority.
-2. **Shared middleware (build once, apply everywhere)** under `api/_lib/`:
- - `withAuth(handler, { require: 'session'|'optional' })` — verifies SIWE/email
- session; reuse the existing auth layer (see `api/auth/`,
- `src/wallet-auth.js`), don't reinvent.
- - `withValidation(schema)` — validates query/body against a schema (zod or
- equivalent already in deps); rejects with 400 + field-level message.
- Validate types, ranges, addresses (base58/EVM), amounts (positive, bounded).
- - `withRateLimit({ key, limit, window })` — per-IP and per-session limiting on
- a shared store (the project already uses KV/Upstash-style storage — reuse
- it). Strict limits on money/chain and LLM-proxy endpoints.
- - `safeError(err)` — maps internal errors to safe client responses; never
- leak stack traces or secrets.
-3. **Apply in priority order:** money/chain → mutations → auth-read →
- public-read. Commit per batch with explicit paths (concurrent agents share
- this worktree — never `git add -A`).
-4. **Validate money paths hardest.** For any endpoint that mints, transfers,
- pays, or launches: re-verify amount bounds, ownership, idempotency (a retried
- request must not double-spend), and that the mint is the user-supplied runtime
- value (never a hardcoded foreign coin — $THREE rules apply).
-5. **CORS & methods.** Confirm each endpoint restricts methods (no accidental
- GET-mutations) and that CORS is as tight as the feature allows.
-6. **Tests.** Add request-level tests under `tests/api/` for: unauthorized
- access rejected, invalid input rejected with 400, rate limit triggers 429,
- and the happy path still works. Follow existing patterns in `tests/api/`.
-
-## Definition of done
-
-- [ ] Shared `withAuth` / `withValidation` / `withRateLimit` / `safeError`
- middleware exists in `api/_lib/` and is reused (not duplicated per file).
-- [ ] 100% of money/chain and mutation endpoints enforce auth + validation +
- rate limiting; auth-read endpoints enforce auth; the split is documented in
- `docs/API_AUDIT.md`.
-- [ ] No endpoint returns stack traces or internal detail on error.
-- [ ] Idempotency verified on every spend/mint/transfer path.
-- [ ] New `tests/api/` cases cover authz-reject, validation-reject, rate-limit,
- and happy path; `npm test` passes.
-- [ ] Changelog: `security` entry in `data/changelog.json` (plain language, e.g.
- "Hardened API request validation and rate limiting").
diff --git a/prompts/readiness/10-resilience-external-calls.md b/prompts/readiness/10-resilience-external-calls.md
deleted file mode 100644
index 5a009f47c..000000000
--- a/prompts/readiness/10-resilience-external-calls.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# 10 — Resilience on every external call
-
-**Phase 2. [parallel-safe]** with 07–09, 11.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. It depends on external
-services that WILL fail intermittently: Solana RPC, pump.fun feed, OpenAI/
-Anthropic via worker proxies, x402 facilitators, R2/storage, Telegram. Read
-[CLAUDE.md](../../CLAUDE.md). Your memory notes a `cockatiel` resilience helper
-and a preference for vetted OSS over hand-rolling. The only coin is **$THREE**.
-
-## Objective
-
-Every outbound network call has a timeout, bounded retries with backoff+jitter
-for transient failures, and a circuit breaker or graceful degradation so one
-slow dependency can't cascade into an outage. Solana RPC and pump.fun especially
-get multi-endpoint failover.
-
-## Why it matters
-
-Public RPCs rate-limit and flake constantly; pump.fun and LLM providers have
-incidents. Without timeouts and breakers, a single hung upstream call exhausts
-function concurrency and takes the whole platform down. Resilience is what lets a
-$1B platform claim real uptime on top of unreliable dependencies.
-
-## Instructions
-
-1. **Find every outbound call:**
- ```bash
- grep -rIn "fetch(\|axios\|new Connection(\|getAccountInfo\|sendTransaction\|https.request\|undici" --include=*.js src/ api/ workers/ | grep -v node_modules
- ```
- Classify by dependency (RPC, pump, LLM, x402, storage, misc).
-2. **Adopt one shared resilience helper** (reuse the existing `cockatiel`-based
- helper if present — check the codebase and the
- [prefer-vetted-oss-additive] memory; otherwise wrap `cockatiel`). Expose:
- `retry(policy)`, `timeout(ms)`, `circuitBreaker(opts)`, composed into a
- `resilientFetch()` / `withResilience(fn)`. Do not hand-roll bespoke retry
- loops per file.
-3. **Timeouts everywhere.** No `fetch` without an `AbortController` + timeout.
- Pick sane per-dependency budgets (RPC ~8s, LLM longer, feeds ~5s).
-4. **Retries only for transient errors** (network, 429, 5xx, RPC node errors) —
- never for 4xx/validation. Exponential backoff + jitter. Respect `Retry-After`.
-5. **Solana RPC failover.** There is prior art ("resilient Solana RPC" in recent
- commits) — extend it: a prioritized pool of RPC endpoints with health-aware
- rotation, so a dead/throttled node is skipped. Same idea for any multi-
- provider dependency.
-6. **Circuit breakers + degradation.** When a dependency is failing, open the
- breaker and serve a degraded-but-honest response (cached data with a
- "stale" marker, or a designed error state — coordinate with
- [18 — state design](18-state-design-sweep.md)). Never hang.
-7. **Idempotency for retried writes.** Any retried mutation/payment must carry an
- idempotency key so a retry can't double-execute (cross-check
- [08 — API hardening](08-api-hardening.md)).
-8. **Tests.** Use the existing resilience test patterns (e.g.
- `tests/api/pump-trending-resilience.test.js`) to add coverage: timeout fires,
- retry recovers on second attempt, breaker opens after N failures, failover
- picks the next endpoint.
-
-## Definition of done
-
-- [ ] Zero `fetch`/RPC call without a timeout in `src/ api/ workers/`.
-- [ ] One shared resilience helper used across all outbound calls (no per-file
- hand-rolled retry loops).
-- [ ] Retries are transient-only with backoff+jitter; 4xx never retried.
-- [ ] Solana RPC (and other multi-provider deps) have health-aware failover.
-- [ ] Circuit breakers degrade gracefully to cached/honest states, never hang.
-- [ ] Retried writes are idempotent.
-- [ ] Resilience tests added and passing (`npm test`).
-- [ ] Changelog: `improvement`/`infra` entry if users see fewer transient errors
- (e.g. "More resilient data loading during network hiccups").
diff --git a/prompts/readiness/11-observability.md b/prompts/readiness/11-observability.md
deleted file mode 100644
index d560e40ef..000000000
--- a/prompts/readiness/11-observability.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 11 — Observability: logging, monitoring, alerting
-
-**Phase 2. [parallel-safe]** with 07–10.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform on Vercel functions +
-Cloudflare workers, with PostHog and Vercel Analytics already loaded on the
-frontend and a `public/error-reporter.js`. Read [CLAUDE.md](../../CLAUDE.md). The
-only coin is **$THREE**.
-
-## Objective
-
-You can see what the platform is doing in production: structured logs with
-request/trace context, client + server error reporting into one pipeline, uptime
-and latency monitoring on every critical path, and alerting that pages a human
-before users complain. No silent failures, no blind spots on money flows.
-
-## Why it matters
-
-At a billion-dollar bar you operate the platform, not just ship it. If a payment
-endpoint starts 500ing or RPC latency spikes, you must know in minutes — from a
-metric, not a tweet. Observability is the difference between a 5-minute incident
-and a 5-hour one.
-
-## Instructions
-
-1. **Structured logging.** Replace ad-hoc `console.log` in server code
- (`api/`, `workers/`) with a structured logger (level, message, requestId,
- userId/agentId where safe, dependency, duration). Never log secrets, private
- keys, full tokens, or PII. Add a `requestId` at the edge and thread it through.
- ```bash
- grep -rIn "console.log\|console.error\|console.warn" --include=*.js api/ workers/ | grep -v node_modules | wc -l
- ```
-2. **Unified error reporting.** Wire client errors (`public/error-reporter.js`)
- and server errors into one sink (Sentry or the existing pipeline — check
- deps/env before adding a new vendor). Capture: message, stack, requestId,
- route, release/commit. De-dupe and group. Cross-check with
- [03 — error boundaries](03-harden-error-boundaries.md): every reported catch
- lands here.
-3. **Critical-path monitoring.** Define SLOs for the money/chain and core paths
- (forge generate, x402 checkout, pump launch, login, marketplace load). Add
- uptime + latency checks (synthetic monitors or a `/api/health` + external
- pinger). Record p50/p95/p99 latency and error rate per path.
-4. **Health endpoints.** Ensure a real `/api/health` (and per-worker health) that
- checks downstream deps (RPC reachable, DB reachable, KV reachable) and returns
- structured status — used by monitors and the status page
- ([26 — trust surfaces](26-trust-surfaces.md)).
-5. **Alerting.** Configure alerts on: error-rate spike, p95 latency breach, money
- -path failure, breaker-open events (from [10](10-resilience-external-calls.md)),
- and health-check failure. Route to a real channel (the existing Telegram
- integration is a candidate). Document thresholds in
- `docs/observability.md`.
-6. **Dashboards.** Stand up (or document) a dashboard view of the core metrics so
- on-call has one place to look. PostHog is already present for product
- analytics — keep product vs ops signals distinct.
-7. **Verify it fires.** Trigger a synthetic error and a synthetic latency breach;
- confirm it shows up in the sink and the alert routes.
-
-## Definition of done
-
-- [ ] Server code uses a structured logger with requestId threading; no secret/
- PII logged; raw `console.*` in `api/`/`workers/` reduced to near-zero.
-- [ ] Client + server errors flow into one reporting sink with release/commit and
- requestId; verified by a synthetic error.
-- [ ] `/api/health` (+ worker health) checks real downstream deps.
-- [ ] SLOs + uptime/latency monitoring exist for every critical path; metrics
- recorded.
-- [ ] Alerting configured and verified to fire on error-spike / latency / money-
- path / health failure, routed to a real channel.
-- [ ] `docs/observability.md` documents SLOs, alert thresholds, and the runbook
- pointer (feeds [28 — incident response](28-incident-response-oncall.md)).
-- [ ] Changelog: skip (internal) unless a user-facing status surface shipped.
diff --git a/prompts/readiness/12-frontend-performance.md b/prompts/readiness/12-frontend-performance.md
deleted file mode 100644
index e5b8191ba..000000000
--- a/prompts/readiness/12-frontend-performance.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# 12 — Frontend performance & Core Web Vitals
-
-**Phase 3. [parallel-safe]** with 13–14.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, vanilla-JS modules + Vite, 125 pages, 118
-public JS files, Three.js for 3D. Read [CLAUDE.md](../../CLAUDE.md) — "Performance
-by default: lazy-load heavy modules, debounce input, paginate lists, use
-`will-change`/`transform` for animations. Don't ship jank." The only coin is
-**$THREE**.
-
-## Objective
-
-Hit "good" Core Web Vitals (LCP < 2.5s, INP < 200ms, CLS < 0.1) on the top
-landing surfaces on a mid-tier mobile device and a throttled connection. Cut
-bundle weight, defer non-critical work, and remove layout jank.
-
-## Why it matters
-
-Growth and conversion are gated by speed. A platform that competes with Vercel/
-Linear/Stripe loads instantly. Every 100ms of LCP and every CLS shift costs
-sign-ups. This is directly upstream of the $1B growth math.
-
-## Instructions
-
-1. **Measure first.** Build and run Lighthouse/CWV on the top surfaces (home,
- forge, marketplace, trending, an agent profile):
- ```bash
- npm run build && npm run audit:web # existing web auditor
- npx lighthouse https://localhost:3000/ --preset=perf --form-factor=mobile --throttling-method=simulate
- ```
- Record LCP/INP/CLS/TBT and bundle sizes per route as the baseline.
-2. **Bundle analysis.** Inspect the Vite build output and chunking. Find the
- heaviest modules (Three.js, character-studio, model-viewer, web3 libs).
- ```bash
- ls -laSh dist/assets/*.js | head -20
- ```
- Code-split route-heavy and 3D-heavy code behind dynamic `import()`. The 3D
- engine must never block first paint on non-3D pages.
-3. **Lazy-load the heavy stuff.** Three.js, GLB loaders, and the avatar engine
- load on interaction/visibility, not on document load. Use
- `IntersectionObserver` for below-the-fold 3D and images
- (`loading="lazy"`, `decoding="async"`).
-4. **Kill CLS.** Reserve space for images/canvas/embeds (width/height or
- aspect-ratio). No content that shifts when fonts/data arrive. Preload the
- primary font; `font-display: swap`.
-5. **Optimize the critical path.** Inline critical CSS for above-the-fold,
- defer the rest. `preconnect`/`dns-prefetch` for RPC/API/analytics origins.
- Ensure analytics (PostHog, Vercel) load non-blocking (they already do —
- confirm they're not on the critical path).
-6. **Improve INP.** Debounce search/input handlers, break long tasks, move heavy
- compute off the main thread (Worker) where it blocks interaction. The
- `MaxListenersExceededWarning` noise in console is the MetaMask extension, not
- us — ignore it; focus on our own long tasks.
-7. **Caching headers.** Static assets immutable + far-future cache; HTML
- appropriately revalidated. Verify via `vercel.json` headers.
-8. **Re-measure** and prove the deltas.
-
-## Definition of done
-
-- [ ] Before/after CWV recorded for the top 5 surfaces (mobile, throttled); LCP <
- 2.5s, INP < 200ms, CLS < 0.1 on each, or a documented reason + plan if a
- specific surface can't yet.
-- [ ] Three.js / 3D engine code-split and lazy-loaded; non-3D pages don't ship
- it on the critical path.
-- [ ] Images/canvas/embeds reserve space; CLS verified low.
-- [ ] Heaviest chunks reduced; bundle-size deltas recorded.
-- [ ] Static-asset caching headers correct in `vercel.json`.
-- [ ] `npm run build` + `npm test` pass; no new console errors.
-- [ ] Changelog: `improvement` entry ("Faster page loads / smoother 3D").
diff --git a/prompts/readiness/13-3d-asset-performance.md b/prompts/readiness/13-3d-asset-performance.md
deleted file mode 100644
index 8739c9307..000000000
--- a/prompts/readiness/13-3d-asset-performance.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# 13 — 3D asset & render performance
-
-**Phase 3. [parallel-safe]** with 12, 14.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, a 3D platform. Three.js + glTF/GLB, an
-animation pipeline (`public/animations/`, `scripts/build-animations.mjs`), GLB
-optimization scripts (`npm run optimize:glb`, `npm run compress:glbs`), and a
-universal avatar-animation system (`src/glb-canonicalize.js`,
-`src/animation-retarget.js`). Read [CLAUDE.md](../../CLAUDE.md), especially the
-"Avatar animation is universal — no rig allowlist" section. The only coin is
-**$THREE**.
-
-## Objective
-
-3D loads fast and runs smoothly on mid-tier mobile GPUs: compressed/optimized
-GLBs, bounded draw calls and texture memory, a steady frame rate with graceful
-quality scaling, and no memory leaks across avatar swaps or scene changes.
-
-## Why it matters
-
-The 3D experience IS the product's wow moment — the screenshot-and-share moment
-CLAUDE.md asks for. If it's a stuttering, battery-melting, slow-to-load
-experience on a phone, the magic is gone. Smooth 3D on commodity hardware is a
-hard moat and a core differentiator.
-
-## Instructions
-
-1. **Audit asset weight.** Find heavy GLBs/textures:
- ```bash
- find public -name '*.glb' -size +1M -exec ls -lah {} \; | sort -k5 -h | tail -30
- find public -name '*.png' -o -name '*.jpg' | xargs ls -lah 2>/dev/null | sort -k5 -h | tail -30
- ```
-2. **Compress everything.** Run/extend `npm run optimize:glb` and
- `npm run compress:glbs`: Draco/meshopt geometry compression, KTX2/Basis
- texture compression, dedupe, prune unused nodes. Confirm the decoders are
- wired (`scripts/copy-three-decoders.mjs`). Target dramatic size cuts with no
- visible quality loss; record before/after bytes per asset.
-3. **Runtime budgets.** Establish and enforce per-scene budgets: triangle count,
- draw calls, texture memory. Merge geometry/instancing where avatars/props
- repeat. Cap pixel ratio on mobile (`renderer.setPixelRatio(min(dpr, 2))`).
-4. **Quality scaling.** Detect device capability and scale: shadow resolution,
- antialiasing, post-processing, animation LOD. A low-end phone should get a
- smooth simplified scene, never a 5fps full-quality one.
-5. **Frame budget & loop hygiene.** Pause `requestAnimationFrame` when the canvas
- is offscreen/tab hidden. Avoid per-frame allocations. Throttle expensive
- updates. Confirm idle scenes drop to low/zero CPU.
-6. **Memory leaks.** On avatar swap / scene unmount, dispose geometries,
- materials, textures, and render targets. Verify in devtools that repeated
- swaps don't grow GPU/JS memory unbounded — this is the most common Three.js
- production bug.
-7. **Loading UX.** Progressive load (low-res or skeleton → full), a real progress
- indicator (no fake `setTimeout` progress — CLAUDE.md forbids it), and a
- designed fallback if a GLB fails to load.
-8. **Verify on a throttled mobile profile** in devtools (CPU 4x slowdown, mobile
- GPU): measure FPS on forge preview, an agent profile, walk companion, and the
- club scene.
-
-## Definition of done
-
-- [ ] All shipped GLBs/textures compressed (Draco/meshopt + KTX2); before/after
- sizes recorded; decoders wired and working.
-- [ ] Per-scene tri/draw-call/texture budgets defined and met; pixel ratio capped
- on mobile.
-- [ ] Device-tier quality scaling implemented and verified on a low-end profile.
-- [ ] rAF pauses when offscreen/hidden; no per-frame allocations in hot paths.
-- [ ] No memory growth across repeated avatar/scene swaps (verified in devtools).
-- [ ] Real (non-faked) progressive loading + failure fallback on every 3D surface.
-- [ ] Measured FPS on forge/profile/walk/club on a throttled mobile profile,
- recorded in your report; `npm test` passes.
-- [ ] Changelog: `improvement` entry ("Lighter, smoother 3D on mobile").
diff --git a/prompts/readiness/14-backend-caching.md b/prompts/readiness/14-backend-caching.md
deleted file mode 100644
index 0c6ba90e1..000000000
--- a/prompts/readiness/14-backend-caching.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# 14 — Backend caching & data layer
-
-**Phase 3. [parallel-safe]** with 12–13.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, Vercel functions (`api/`, 769 of them) +
-Cloudflare workers, talking to Solana RPC, pump.fun, a database, and KV/edge
-storage. Read [CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-Hot read paths are cached with correct TTLs and invalidation; the database has
-the indexes its queries need; expensive upstream calls (RPC, pump.fun) are
-memoized/edge-cached instead of hit per request; cold starts are minimized. The
-platform stays fast and cheap as traffic grows.
-
-## Why it matters
-
-At scale, uncached reads against RPC/pump and unindexed DB queries are both a
-latency problem and a cost problem — they're how a viral moment becomes an outage
-and a bill. A $1B platform serves spikes from cache and reserves origin work for
-writes.
-
-## Instructions
-
-1. **Profile the hot paths.** Identify the most-hit read endpoints (trending,
- marketplace, agent profiles, launches feed, leaderboards). For each, find what
- it actually does per request — DB queries, RPC calls, external fetches.
-2. **Cache the reads.**
- - Edge/CDN cache public GETs via `Cache-Control` + `s-maxage` +
- `stale-while-revalidate` in responses / `vercel.json`.
- - Memoize expensive upstream results (pump feed, RPC account reads, token
- snapshots) in KV with short TTLs and SWR, keyed precisely. Reuse the
- project's existing KV layer — don't add a second one.
- - Add request-coalescing so a cache-miss stampede doesn't fan out N identical
- upstream calls.
-3. **Invalidation.** Define how each cache is busted on the relevant write
- (new launch, profile edit, new review). Stale data on a money/identity
- surface is a correctness bug, not just a perf one — be precise about which
- caches must be strongly consistent vs eventually consistent.
-4. **Database indexing.** Review the schema/migrations (`scripts/apply-migrations.mjs`,
- `npm run db:status`). For every frequent query, confirm a supporting index
- exists (foreign keys, sort columns, filter predicates, uniqueness). Add
- migrations for missing ones. Check for N+1 query patterns and batch them.
-5. **Cold starts.** Keep function bundles lean (lazy-import heavy SDKs inside the
- handler only when needed), reuse connections across invocations, and prefer
- edge runtime for light read endpoints where compatible.
-6. **Pagination.** Confirm every list endpoint paginates (cursor preferred) and
- never returns unbounded result sets. Cross-check the UI consumes it.
-7. **Measure.** Record p50/p95 latency and upstream-call count per hot endpoint
- before/after. Prove the cache hit-rate is real.
-
-## Definition of done
-
-- [ ] Top read paths are edge/KV cached with correct TTL + SWR + invalidation;
- cache hit-rate measured and meaningful.
-- [ ] Request coalescing prevents miss-stampede fan-out to RPC/pump.
-- [ ] Every frequent DB query has a supporting index (migrations added);
- no N+1 on hot paths.
-- [ ] List endpoints paginate with bounded result sets.
-- [ ] Cold-start weight reduced (heavy SDK imports lazied); connections reused.
-- [ ] Before/after latency + upstream-call-count recorded per hot endpoint.
-- [ ] `npm run db:status` clean; `npm test` passes.
-- [ ] Changelog: `improvement`/`infra` entry if users feel the speed-up.
diff --git a/prompts/readiness/15-test-coverage.md b/prompts/readiness/15-test-coverage.md
deleted file mode 100644
index f65140183..000000000
--- a/prompts/readiness/15-test-coverage.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# 15 — Test coverage to the bar
-
-**Phase 4. Serial** (touches test config + CI gating).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Test stack: Vitest +
-Playwright (`npm test` runs `vitest run && playwright test`), ~456 test files
-already. Read [CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE** — tests
-must use the `$THREE` CA or synthetic placeholders, never a real foreign mint.
-
-## Objective
-
-A test suite you can ship behind: every money/chain path, every API contract,
-and every critical user journey has automated coverage; flaky tests are fixed or
-quarantined with a tracked reason; and coverage is measured and gated in CI so it
-can't regress.
-
-## Why it matters
-
-You cannot move fast on a billion-dollar platform without a green suite you
-trust. Tests are how a small team ships daily without breaking payments. Coverage
-on money flows specifically is non-negotiable — a regression there is real lost
-funds.
-
-## Instructions
-
-1. **Baseline.** Run the suite and capture coverage:
- ```bash
- npx vitest run --coverage
- npx playwright test --reporter=line
- ```
- Record overall % and, more importantly, per-area coverage for: `api/x402*`,
- payments, pump launch, wallet/auth, agent CRUD, marketplace, forge pipeline.
-2. **Prioritize by risk, not by line count.** Fill gaps in this order:
- money/chain → auth/session → data mutations → core user journeys → everything
- else. 100% on a logger matters less than 100% on settlement.
-3. **API contract tests** (`tests/api/`): for each money/chain + mutation
- endpoint — happy path, authz reject, validation reject, rate-limit, and
- idempotency (aligns with [08](08-api-hardening.md)). Reuse existing patterns
- like `tests/api/pump-trending-resilience.test.js`.
-4. **E2E journeys** (Playwright): forge a model → view it; create an agent →
- appears in marketplace; connect wallet → sign in (SIWE); x402 checkout happy
- path; launch flow. These are the flows a regression must never break.
-5. **Unit tests** for pure logic with edge cases: the canonicalize/retarget rig
- mappings (extend `tests/glb-canonicalize.test.js` for any new skeleton),
- pricing math, amount/address validation, x402 receipt verification.
-6. **De-flake.** Identify flaky tests (run the suite 3x; diff failures). Fix the
- root cause (timing, shared state, real-network calls that should be stubbed at
- the boundary). If one truly can't be fixed now, mark it with a tracked reason
- and a follow-up — never delete coverage silently.
-7. **Gate coverage.** Add a coverage threshold (start at current, ratchet up) and
- wire it so CI fails on regression (coordinate with
- [16 — CI/CD](16-ci-cd-hardening.md)). Critical dirs get a higher floor.
-8. **No real external calls in unit tests.** Stub at the network boundary; keep
- smoke/integration tests that hit real services separate and clearly labeled.
-
-## Definition of done
-
-- [ ] Coverage measured; per-area numbers recorded for money/chain, auth,
- mutations, core journeys.
-- [ ] Every money/chain + mutation endpoint has contract tests (happy + authz +
- validation + rate-limit + idempotency).
-- [ ] Playwright E2E covers forge, agent-create, SIWE login, x402 checkout, and
- launch journeys.
-- [ ] Suite runs green 3x consecutively (no flakes), or remaining flakes are
- quarantined with a tracked reason + follow-up.
-- [ ] Coverage threshold enforced and wired into CI; critical dirs have a higher
- floor.
-- [ ] No real foreign mint in any fixture; no real external call in unit tests.
-- [ ] `npm test` passes.
-- [ ] Changelog: skip (internal) — testing isn't user-visible.
diff --git a/prompts/readiness/16-ci-cd-hardening.md b/prompts/readiness/16-ci-cd-hardening.md
deleted file mode 100644
index 6b0eb917f..000000000
--- a/prompts/readiness/16-ci-cd-hardening.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 16 — CI/CD hardening
-
-**Phase 4. Serial** (changes pipeline config).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, deployed via Vercel; mirrors to two GitHub
-remotes (`threeD` push-only, `threews` canonical). Currently **one** workflow:
-`.github/workflows/ci.yml`. Rich script surface already exists (`audit:*`,
-`smoke:*`, `verify:*`, `test`, `lint`, `typecheck`). Read
-[CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-A CI/CD pipeline that makes broken code impossible to merge and gives every PR a
-previewable, verified deploy: lint + typecheck + unit + E2E + the repo's own
-audits run as required gates, secrets scanning runs on every push, preview
-deploys are smoke-tested, and production deploys are reproducible and reversible.
-
-## Why it matters
-
-A single CI workflow on a 769-endpoint, money-moving platform is under-defended.
-Investors and partners judge engineering maturity by how hard it is to ship a
-regression. Preview deploys + gates are how a team scales contribution without
-scaling breakage.
-
-## Instructions
-
-1. **Read the current pipeline.** Open `.github/workflows/ci.yml`; list what runs
- and what's missing. Map the available scripts (from `package.json`) to gates:
- `lint`, `typecheck`, `test`, `audit:pages`, `audit:handlers`, `check:images`,
- `audit:web`, `audit:mcp`, `smoke:onchain:ci`, `verify:solana`,
- `validate:cards`, `audit:deploy`, `check:dist`.
-2. **Required PR gates** (fail the merge):
- - Install + build (`npm ci` honoring the workspaces lockfile).
- - `lint`, `typecheck`, `format:check`.
- - `vitest run --coverage` with the threshold from [15](15-test-coverage.md).
- - `playwright test` (sharded if slow) for E2E.
- - The repo auditors above that are CI-safe.
- - Coin-compliance guard test from [06](06-three-coin-compliance-sweep.md).
-3. **Secrets scanning.** Add a job (gitleaks/trufflehog) that fails on any
- committed secret, plus `npm audit --omit=dev` (or dependency-review) for CVEs.
- Aligns with [07](07-secrets-and-env-hardening.md) /
- [09](09-security-review.md).
-4. **Preview deploys.** Every PR gets a Vercel preview; run a small smoke suite
- against the preview URL (health endpoint, a key page renders, an API responds).
- Block merge if the preview smoke fails.
-5. **Caching & speed.** Cache `node_modules`/Vite/Playwright browsers so CI is
- fast. Shard or parallelize the slow jobs. Keep total PR feedback under a few
- minutes where possible.
-6. **Production deploy safety.** Document/codify the deploy: `build:all` →
- `check:dist` → deploy, with `audit:deploy` guarding artifacts (note the
- CLAUDE.md trap: `npx vercel build` can overwrite `api/*.js` with bundles —
- guard against committing those). Ensure rollback is one step and documented.
-7. **Branch protection.** Document the required-checks + review settings on
- `threews` (canonical). Note the mirror rule: pushes go to BOTH remotes; never
- pull/fetch from `threeD`.
-8. **Concurrency.** Cancel superseded runs per-branch to save minutes.
-
-## Definition of done
-
-- [ ] PR pipeline runs install+build, lint, typecheck, format check, unit+
- coverage-gate, E2E, the CI-safe repo auditors, and the coin-compliance
- guard — all required to merge.
-- [ ] Secrets-scanning + dependency-CVE jobs run on every push and fail on
- findings.
-- [ ] Every PR gets a preview deploy that is smoke-tested; failure blocks merge.
-- [ ] CI caches deps/browsers and cancels superseded runs; feedback is fast.
-- [ ] Production deploy + one-step rollback documented in `docs/` (with the
- `vercel build` bundle-overwrite guard noted).
-- [ ] Branch protection + dual-remote push rules documented.
-- [ ] A test PR demonstrates the gates catching a deliberately broken change.
-- [ ] Changelog: skip (internal infra).
diff --git a/prompts/readiness/17-accessibility-audit.md b/prompts/readiness/17-accessibility-audit.md
deleted file mode 100644
index fece6d5fe..000000000
--- a/prompts/readiness/17-accessibility-audit.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 17 — Accessibility audit (WCAG 2.2 AA)
-
-**Phase 4. [parallel-safe]** with 15–16 (touches markup, not pipeline).
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 125 pages. Read [CLAUDE.md](../../CLAUDE.md) —
-"Accessibility is not optional. Semantic HTML. ARIA labels. Keyboard navigation.
-Sufficient contrast. Focus indicators." The only coin is **$THREE**.
-
-## Objective
-
-The platform is usable by keyboard and screen reader and meets WCAG 2.2 AA on
-every primary surface: semantic landmarks, labeled controls, visible focus,
-sufficient contrast, respected reduced-motion, and accessible names on the 3D/
-canvas surfaces.
-
-## Why it matters
-
-Accessibility is both a quality signal and a market-size lever — it's a
-requirement for enterprise/institutional adoption and a legal expectation at
-scale. It also forces the structural correctness (semantics, focus management)
-that makes the whole UI more robust. It is part of the screenshot-worthy quality
-bar, not a compliance afterthought.
-
-## Instructions
-
-1. **Automated pass.** Run axe across the top surfaces (home, forge, marketplace,
- trending, agent profile, studio, checkout, login, settings):
- ```bash
- npx @axe-core/cli http://localhost:3000/ http://localhost:3000/forge http://localhost:3000/marketplace
- ```
- (Use the dev server, `npm run dev`.) Record violations per surface. Automated
- tools catch ~40% — do the manual pass too.
-2. **Keyboard.** Tab through every surface: logical order, no traps, every
- interactive element reachable and operable with Enter/Space, visible focus
- ring on each (never `outline: none` without a replacement). Modals trap focus
- while open and restore it on close. Skip-to-content link present.
-3. **Screen reader.** Verify with VoiceOver/NVDA semantics: one `<h1>` per page,
- ordered headings, landmark regions (`<nav> <main> <footer>`), buttons vs links
- used correctly, form inputs have associated `<label>`s, icon-only buttons have
- `aria-label`, live regions (`aria-live`) announce async updates (toasts, load
- results).
-4. **Contrast.** Check text and UI-component contrast against AA (4.5:1 text,
- 3:1 large/UI). Fix failures using the existing design tokens
- (`docs/DESIGN-TOKENS.md`) — adjust the token, not one-off overrides
- (coordinate with [20 — design system](20-design-system-consistency.md)).
-5. **Motion.** Respect `prefers-reduced-motion` — disable non-essential
- animation/parallax/auto-rotate 3D for users who ask. There's a
- `theme-switcher`/media-query pattern already; reuse it.
-6. **3D/canvas a11y.** Canvas content is invisible to AT — provide a text
- alternative / `aria-label` describing the avatar/scene, and ensure all
- controls (rotate, zoom, play) have keyboard equivalents and labels.
-7. **Forms & errors.** Errors are programmatically associated with their field
- (`aria-describedby`), announced, and not conveyed by color alone.
-8. **Add a CI a11y check** (axe in Playwright) on the top surfaces so regressions
- are caught (feeds [16](16-ci-cd-hardening.md)).
-
-## Definition of done
-
-- [ ] axe run on the top 8+ surfaces; violations recorded and resolved (or
- tracked with a reason).
-- [ ] Full keyboard operability verified: order, no traps, visible focus, modal
- focus management, skip link.
-- [ ] Screen-reader semantics correct: headings, landmarks, labels, live regions.
-- [ ] All text/UI contrast meets AA, fixed via design tokens.
-- [ ] `prefers-reduced-motion` honored across animations and 3D.
-- [ ] 3D/canvas surfaces have text alternatives + keyboard-operable, labeled
- controls.
-- [ ] Form errors are associated, announced, and not color-only.
-- [ ] An automated a11y check runs in CI on the top surfaces.
-- [ ] Changelog: `improvement` entry ("Accessibility improvements across the
- app").
diff --git a/prompts/readiness/18-state-design-sweep.md b/prompts/readiness/18-state-design-sweep.md
deleted file mode 100644
index d87543fe4..000000000
--- a/prompts/readiness/18-state-design-sweep.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# 18 — Every state designed (loading / empty / error / overflow)
-
-**Phase 5. [parallel-safe]** with 19–21.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. Read
-[CLAUDE.md](../../CLAUDE.md) — "Every state is designed. Loading, empty, error,
-populated, overflow — all of them. A page with no data should tell the user what
-to do next, not show a blank void. Skeleton screens preferred over spinners." The
-only coin is **$THREE**.
-
-## Objective
-
-Every data-driven surface has a designed, helpful state for all five conditions:
-loading (skeleton), empty (with a next action), error (with recovery), populated,
-and overflow (long names, 1000 items, tiny/huge values). No blank voids, no raw
-spinners where a skeleton fits, no dead-end empty screens.
-
-## Why it matters
-
-The states users hit most — first visit (empty), slow network (loading), failure
-(error) — are exactly the ones teams skip. Designing them is what makes a product
-feel finished and trustworthy. This is where "adequate" becomes "screenshot-
-worthy."
-
-## Instructions
-
-1. **Inventory data surfaces.** Every list, grid, feed, detail page, chart, and
- 3D viewer that loads async data: home live sections, marketplace, trending,
- launches, agent profile, reputation, collection, search results, chat,
- earnings/analytics, x402 history. Build the checklist.
-2. **For each, design all five:**
- - **Loading:** skeleton matching the final layout (not a centered spinner),
- sized to prevent CLS. Reuse a shared skeleton component — build one if none
- exists; don't reinvent per page.
- - **Empty:** explain *why* it's empty and give the next action ("No agents yet
- — Forge your first" with a button). Never just "No data." This is the
- conversion moment for new users.
- - **Error:** what went wrong (plainly) + a recovery action (Retry / Reconnect
- / Refresh). Ties to [03 — error boundaries](03-harden-error-boundaries.md).
- - **Populated:** the normal case — confirm it's polished.
- - **Overflow:** truncate long text with ellipsis + title/tooltip; paginate or
- virtualize long lists; handle huge/zero/negative numbers and very long
- agent names without breaking layout.
-3. **Real async indicators only.** No `setTimeout` fake-loading, no fake progress
- bars (CLAUDE.md hard rule). Loading reflects real request state.
-4. **Transitions.** States enter/exit with intention — opacity/transform
- transitions, no jarring pops (CLAUDE.md). Skeleton → content should crossfade,
- not snap.
-5. **Verify by forcing each state** in `npm run dev`: throttle/offline for
- loading+error, a fresh/empty account for empty, seeded long names + many items
- for overflow. Screenshot each for your report (don't commit screenshots — see
- repo hygiene).
-
-## Definition of done
-
-- [ ] Every async data surface has all five states designed and reachable.
-- [ ] Loading uses layout-matched skeletons (shared component), not bare spinners,
- and reserves space (no CLS).
-- [ ] Every empty state names the next action with a working CTA.
-- [ ] Every error state is plain-language + has a recovery action.
-- [ ] Overflow handled: long text truncates, long lists paginate/virtualize,
- extreme numbers don't break layout.
-- [ ] No fake loading/progress anywhere; transitions are smooth.
-- [ ] Each state verified by forcing the condition in the browser (logged in your
- report).
-- [ ] `npm test` passes. Changelog: `improvement` entry ("Polished loading,
- empty, and error states across the app").
diff --git a/prompts/readiness/19-responsive-mobile-sweep.md b/prompts/readiness/19-responsive-mobile-sweep.md
deleted file mode 100644
index 68110459c..000000000
--- a/prompts/readiness/19-responsive-mobile-sweep.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# 19 — Responsive / mobile sweep
-
-**Phase 5. [parallel-safe]** with 18, 20–21.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform, 125 pages. Read
-[CLAUDE.md](../../CLAUDE.md) — "Responsive by default. Test at 320px, 768px, and
-1440px mentally. Relative units. Flex/grid over fixed widths." There is a PWA
-(`generate-icons`, theme-boot). The only coin is **$THREE**.
-
-## Objective
-
-Every surface works and looks intentional at 320px, 375px, 768px, 1024px, and
-1440px+: no horizontal scroll, no overlapping/clipped content, tap targets ≥
-44px, readable type, working mobile navigation, and 3D that's usable with touch.
-
-## Why it matters
-
-Most of the audience for a viral crypto/AI product arrives on a phone — often via
-a shared link. If the landing or forge experience is broken on mobile, the growth
-loop dies at the first hop. Mobile polish is directly upstream of the $1B funnel.
-
-## Instructions
-
-1. **Audit at each breakpoint** in devtools device mode across the top surfaces
- (home, forge, marketplace, trending, agent profile, studio, walk, club,
- checkout, login, settings, chat). Log every issue: horizontal overflow,
- clipped text, overlapping elements, unreachable controls, tiny tap targets,
- broken 3D canvas sizing.
-2. **Fix layout systemically.** Prefer fluid grids/flex, `clamp()` type,
- container queries where supported, and relative units over fixed px. Don't
- patch one viewport and break another — verify the fix holds across all
- breakpoints.
-3. **Navigation.** Confirm a real mobile nav (hamburger/drawer) that's keyboard +
- touch accessible, closes on selection/escape, and doesn't trap scroll. Reuse
- the existing `nav.js`/`nav.css` — extend, don't fork.
-4. **Touch.** Tap targets ≥ 44×44px with adequate spacing. Hover-only affordances
- need a touch equivalent. 3D viewers: pinch-zoom/drag-orbit work and don't
- hijack page scroll unexpectedly.
-5. **Forms & modals on mobile.** Inputs use correct `inputmode`/`type` (numeric
- keypad for amounts), modals fit the viewport and scroll internally, the
- on-screen keyboard doesn't cover the active field or submit button.
-6. **Safe areas & PWA.** Respect `env(safe-area-inset-*)` on notched devices.
- Verify the PWA installs and the icons/splash render. Theme-boot must not flash.
-7. **Performance on mobile** overlaps with [12](12-frontend-performance.md) and
- [13](13-3d-asset-performance.md) — keep them consistent; don't regress CWV
- while fixing layout.
-8. **Verify on real-ish conditions:** device emulation + at least one real phone
- if available. Test both portrait and landscape.
-
-## Definition of done
-
-- [ ] No horizontal scroll, clipping, or overlap on any top surface at 320 / 375 /
- 768 / 1024 / 1440px (logged per surface).
-- [ ] Mobile nav works (touch + keyboard), closes correctly, no scroll trap.
-- [ ] All tap targets ≥ 44px; hover-only affordances have touch equivalents.
-- [ ] 3D viewers usable with touch and don't hijack page scroll.
-- [ ] Mobile forms use correct input modes; modals + keyboard don't obscure
- inputs/submit.
-- [ ] Safe-area insets respected; PWA installs; no theme flash.
-- [ ] CWV not regressed (cross-checked with prompt 12).
-- [ ] `npm test` passes. Changelog: `improvement` entry ("Improved mobile
- experience across the platform").
diff --git a/prompts/readiness/20-design-system-consistency.md b/prompts/readiness/20-design-system-consistency.md
deleted file mode 100644
index 955a1b314..000000000
--- a/prompts/readiness/20-design-system-consistency.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# 20 — Design-system & token consistency
-
-**Phase 5. [parallel-safe]** with 18–19, 21.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. There is a design-token
-doc (`docs/DESIGN-TOKENS.md`), a `public/nav.css`, a `theme-switcher.js` with
-light/dark/auto, and a button-pill migration doc (`docs/btn-pill-migration.md`).
-Read [CLAUDE.md](../../CLAUDE.md) — "Consistent spacing and typography. Use the
-existing design tokens. If none exist, establish them and use them everywhere."
-The only coin is **$THREE**.
-
-## Objective
-
-One coherent visual system across all 125 pages: every color, space, radius,
-shadow, font-size, and component (button, input, card, modal, badge, toast) comes
-from shared tokens/components — no one-off hex values, magic-number spacing, or
-divergent button styles. Light and dark themes both correct everywhere.
-
-## Why it matters
-
-Visual consistency is the cheapest, most visible signal of quality. Products that
-look like Linear/Stripe feel trustworthy enough to put money into. Inconsistency
-reads as "unfinished" and undermines every other thing this program fixes.
-
-## Instructions
-
-1. **Audit token drift.** Find raw values that should be tokens:
- ```bash
- grep -rIn "#[0-9a-fA-F]\{3,8\}\b" --include=*.css --include=*.html public/ pages/ src/ | grep -v node_modules | wc -l
- grep -rIn "px;" --include=*.css public/ pages/ | grep -v node_modules | wc -l # magic spacing
- ```
- Compare against the tokens in `docs/DESIGN-TOKENS.md`. Catalog the divergences.
-2. **Consolidate tokens.** Ensure a single source of truth (CSS custom properties
- in one place) for color, spacing scale, radius, shadow, typography scale,
- z-index, and motion durations. Fill gaps in `docs/DESIGN-TOKENS.md`.
-3. **Replace raw values with tokens** across CSS/HTML/inline styles. Inline
- `style="..."` with hardcoded colors/sizes (common in this repo's JS-built UI)
- should reference tokens or shared classes. Work surface-by-surface.
-4. **Unify components.** One button system (finish the `btn-pill-migration`), one
- input style, one card, one modal, one toast, one badge. Find divergent
- implementations and converge them. Extract shared components where the same UI
- is rebuilt per page.
-5. **Theme correctness.** Every surface must be correct in light, dark, and auto.
- Test the theme-switcher on each top page — no unreadable text, no invisible
- borders, no hardcoded dark-only colors. Fix via tokens, not per-theme hacks.
-6. **Typography & spacing rhythm.** Consistent type scale and a consistent
- spacing scale (4/8px system or whatever the tokens define). No arbitrary
- `margin: 13px`.
-7. **Microinteractions consistency.** Hover/active/focus states use the same
- motion tokens and feel uniform across components (ties to
- [17 — a11y focus rings](17-accessibility-audit.md)).
-8. **Document** the system so new work stays consistent — update
- `docs/DESIGN-TOKENS.md` with usage examples and a "don't hardcode" rule.
-
-## Definition of done
-
-- [ ] Raw hex/spacing values replaced by tokens across the top surfaces; the
- remaining count is near-zero and justified (e.g. third-party vendored CSS).
-- [ ] Single source of truth for all token categories; `docs/DESIGN-TOKENS.md`
- complete and authoritative.
-- [ ] One unified button/input/card/modal/toast/badge system; divergent copies
- converged or extracted to shared components.
-- [ ] Light/dark/auto themes verified correct on every top surface.
-- [ ] Consistent type + spacing scale; no arbitrary magic numbers on touched
- surfaces.
-- [ ] Hover/active/focus states uniform via motion tokens.
-- [ ] `npm test` passes. Changelog: `improvement` entry ("Unified, consistent
- visual design across the platform").
diff --git a/prompts/readiness/21-onboarding-first-run.md b/prompts/readiness/21-onboarding-first-run.md
deleted file mode 100644
index 800fba9fb..000000000
--- a/prompts/readiness/21-onboarding-first-run.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# 21 — Onboarding & first-run experience
-
-**Phase 5. [parallel-safe]** with 18–20.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. There's a getting-
-started surface (`public/getting-started.js`), a feature tour
-(`src/feature-tour/`), feature-discovery (`public/feature-discovery.js`), and a
-tour SDK (`tour-sdk/`). Read [CLAUDE.md](../../CLAUDE.md). The product's hook is
-"give your AI a body — type a prompt, Forge a 3D model in 60 seconds." The only
-coin is **$THREE**.
-
-## Objective
-
-A first-time visitor reaches the platform's "aha" — a generated 3D agent — within
-60 seconds, with zero confusion and no forced signup before value. The path from
-landing → first creation → save/share → next step is guided, fast, and obviously
-valuable.
-
-## Why it matters
-
-Activation is the top of every growth model. A billion-dollar valuation is a
-function of how many visitors become active users and how fast. The first 60
-seconds decide it. A confusing or gated first run caps the entire funnel
-regardless of how good everything downstream is.
-
-## Instructions
-
-1. **Map the current first-run.** As a brand-new user (incognito, no wallet),
- walk: land on home → get to forge → generate → view → save/share → "what
- next." Time it. Note every point of confusion, friction, or premature gate.
-2. **Define the activation moment** explicitly (first successful 3D generation)
- and instrument it (coordinate with [25 — analytics](25-analytics-funnel.md))
- so activation rate is measurable.
-3. **Remove premature gates.** Per the README hook, the free draft tier needs no
- account. Confirm a visitor can Forge and see a result before any signup/wallet
- prompt. Move auth to the moment it's actually required (save permanently,
- mint, pay) and explain why at that moment.
-4. **Guide, don't dump.** A focused first-run: a clear primary CTA on the landing
- ("Forge your first agent"), an inline example prompt they can one-click try,
- and a lightweight tour (reuse `src/feature-tour/` — don't build a new one)
- that highlights the 2–3 things that matter, skippable and non-blocking.
-5. **Empty states as onboarding.** New-user empty states (no agents, no
- collection) double as guidance with a real next action — coordinate with
- [18 — state design](18-state-design-sweep.md).
-6. **First success → next step.** After the first generation, surface the obvious
- next actions (animate it, embed it, give it a brain, register it, share it).
- Wire these as real links (no dead ends — ties to
- [05 — dead paths](05-dead-path-and-handler-audit.md)).
-7. **Shareable result.** The first creation should be one-click shareable with a
- real OG preview (coordinate with [22 — SEO/shareability](22-seo-and-shareability.md))
- — the share IS the growth loop.
-8. **Returning-user state.** A returning user skips the intro and lands on
- something useful (their agents / dashboard), not the cold landing.
-9. **Verify end-to-end** in a clean session and time it again; prove < 60s to
- first generated model.
-
-## Definition of done
-
-- [ ] New, unauthenticated user can reach a generated 3D agent in under 60s,
- verified in a clean session (time recorded before/after).
-- [ ] No signup/wallet gate before first value; auth appears only when truly
- required, with an explanation.
-- [ ] A skippable, non-blocking first-run guide (reusing `src/feature-tour/`)
- highlights the key actions.
-- [ ] New-user empty states guide to a real next action.
-- [ ] Post-first-success next steps are surfaced and wired (animate / embed /
- brain / register / share — no dead links).
-- [ ] First creation is one-click shareable with a real OG preview.
-- [ ] Returning users land on something useful, not the cold intro.
-- [ ] Activation event instrumented and measurable.
-- [ ] `npm test` passes. Changelog: `feature`/`improvement` entry ("Faster,
- guided first-run experience").
diff --git a/prompts/readiness/22-seo-and-shareability.md b/prompts/readiness/22-seo-and-shareability.md
deleted file mode 100644
index fff26ddd6..000000000
--- a/prompts/readiness/22-seo-and-shareability.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# 22 — SEO & shareability
-
-**Phase 6. [parallel-safe]** with 23–26.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform, 125 pages. There's
-already SEO tooling: `scripts/inject-seo-meta.mjs`, `scripts/inject-blog-seo.mjs`,
-`scripts/build-page-index.mjs`, structured data in page heads, a blog
-(`blog/`), and a changelog feed. Read [CLAUDE.md](../../CLAUDE.md) — "What would
-make someone screenshot this and share it?" The only coin is **$THREE**.
-
-## Objective
-
-Every page is discoverable and every shareable artifact (agent, generated model,
-launch, profile) renders a rich, correct social card. Search engines and LLMs can
-crawl and understand the site; links pasted into X/Discord/Telegram unfurl into
-something people click.
-
-## Why it matters
-
-Organic discovery + viral link-unfurls are the cheapest acquisition channels and
-the ones that compound. A $1B consumer/crypto platform lives or dies on shared
-links rendering beautifully and on ranking for its category. This is the demand
-side of the growth equation.
-
-## Instructions
-
-1. **Audit current SEO.** Run the existing tooling and check coverage:
- ```bash
- npm run seo:meta # inject blog + page SEO, rebuild index
- npm run build:pages # page index + changelog feeds
- ```
- Verify every page has: unique `<title>`, meta description, canonical URL,
- `og:*` + `twitter:card` tags, and valid JSON-LD where relevant.
-2. **Dynamic OG images.** Shareable entities (agent profile, generated model,
- launch, leaderboard rank) need a per-entity OG image — ideally a rendered
- preview of the actual 3D agent. Build an OG-image endpoint (`api/og/*`) that
- generates a branded card with the entity's real data/thumbnail. No generic
- fallback for things that have a real preview.
-3. **Sitemap & robots.** Generate a complete `sitemap.xml` from the page index +
- dynamic entities, and a correct `robots.txt`. Submit-ready. Ensure
- noindex on what shouldn't be indexed (auth, internal).
-4. **Structured data.** Add/verify JSON-LD: `WebSite` + `SearchAction` on home,
- `Product`/`SoftwareApplication` where it fits, `BreadcrumbList`, `Article` on
- blog posts, `FAQPage` on FAQ/docs. Validate with the Rich Results test format.
-5. **Crawlability for SPA-ish surfaces.** Anything rendered client-only that
- should rank needs SSR/prerender or a static fallback so crawlers and link
- unfurlers (which don't run much JS) get real content. Confirm OG tags are in
- the initial HTML, not injected post-load.
-6. **LLM/agent discoverability.** Ensure `llms.txt` (or equivalent) and clean
- semantic HTML so AI crawlers represent the platform correctly — relevant for
- an agent platform. Cross-check the x402 discovery indexing already in place
- (your memory: CDP Bazaar / x402scan / 402index).
-7. **Performance ties in.** Core Web Vitals are a ranking factor — keep
- [12](12-frontend-performance.md) consistent.
-8. **Verify unfurls.** Paste representative URLs (home, an agent profile, a
- generated model, a blog post) into a card validator / a real X/Discord/
- Telegram message and confirm the card renders with correct image, title,
- description.
-
-## Definition of done
-
-- [ ] Every page has unique title, description, canonical, OG + Twitter card, and
- valid JSON-LD where relevant (verified, not assumed).
-- [ ] Per-entity dynamic OG images render real previews for agents/models/
- launches/profiles via an `api/og/*` endpoint.
-- [ ] Complete `sitemap.xml` (static + dynamic) and correct `robots.txt`; noindex
- on private routes.
-- [ ] JSON-LD validates for home, blog, and key entity types.
-- [ ] Shareable surfaces expose OG tags in initial HTML (crawler/unfurl-safe).
-- [ ] `llms.txt`/semantic HTML supports AI crawlers; x402 discovery intact.
-- [ ] Real unfurl test passed for 4+ representative URLs.
-- [ ] `npm run build:pages` clean; `npm test` passes.
-- [ ] Changelog: `improvement` entry ("Rich social previews and better
- discoverability").
diff --git a/prompts/readiness/23-growth-virality.md b/prompts/readiness/23-growth-virality.md
deleted file mode 100644
index 58f92314b..000000000
--- a/prompts/readiness/23-growth-virality.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# 23 — Growth & virality loops
-
-**Phase 6. [parallel-safe]** with 22, 24–26.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. There's referral capture
-(`public/referral-capture.js`), an embed SDK (`public/embed-sdk.js`,
-`public/embed.js`), a walk companion SDK (`walk-sdk/`), a page-agent SDK
-(`page-agent-sdk/`), and newsletter capture (`public/footer-newsletter.js`). Read
-[CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-Build and complete the loops that make growth compound: every created agent is
-shareable and embeddable (each embed is an ad on someone else's site), referrals
-are tracked and rewarded, and the product's natural artifacts (3D models,
-profiles, launches) are designed to be shared. Close the loops that already half
--exist rather than inventing new ones.
-
-## Why it matters
-
-A $1B valuation requires a growth coefficient that doesn't depend on paid
-acquisition. The embed SDK and walk companion are inherently viral — a three.ws
-agent on a thousand other sites is a thousand acquisition surfaces. These loops
-must be frictionless and instrumented, or the compounding never starts.
-
-## Instructions
-
-1. **Map existing loops and find the leaks.** For each: share-a-model,
- embed-an-agent, walk-companion-on-a-site, referral, launch-announcement —
- trace the full loop (trigger → artifact → recipient → return visit → reactivate)
- and find where it breaks or isn't instrumented.
-2. **Embed = growth surface.** Make embedding an agent trivial: a one-click
- "Embed" with copy-paste snippet (the `<agent-3d>` / `<page-agent>` web
- components), live preview, and customization. Every embed should carry a
- subtle, non-obnoxious "Made with three.ws" attribution linking back (with a
- referral param). Verify the embed SDK actually works on a third-party page.
-3. **Shareability.** Every agent/model/profile/launch has a prominent Share that
- produces a rich link (depends on [22 — OG images](22-seo-and-shareability.md))
- and pre-filled share text for X/Telegram/Discord. The generated 3D model is
- the hero of the share.
-4. **Referrals, completed.** `referral-capture.js` captures inbound refs —
- confirm the full loop: attribution persists through signup, the referrer is
- credited, and there's a real, honest reward (in-product benefit; if anything
- token-related, it is **$THREE** only and must follow the coin rules). Build a
- simple "invite" surface with the user's ref link + their referral stats.
-5. **Reactivation.** Newsletter + the existing Telegram changelog channel are
- reactivation channels — confirm capture works, double-opt-in where required,
- and that there's a reason to come back (new features, their agent's activity).
- No dark patterns.
-6. **Instrument every loop** (coordinate with [25 — analytics](25-analytics-funnel.md)):
- share clicks, embed installs, embed impressions, referral signups, K-factor.
- You can't grow what you don't measure.
-7. **Verify each loop end-to-end** with a real second browser/account: share a
- model and open the link, embed on a scratch HTML page and confirm it loads +
- attributes, sign up via a ref link and confirm credit.
-
-## Definition of done
-
-- [ ] One-click Embed with working snippet + live preview + back-link attribution;
- verified loading on a real third-party page.
-- [ ] Every shareable entity has a prominent Share producing a rich link with
- pre-filled platform-appropriate text.
-- [ ] Referral loop complete: capture → persist → signup attribution → referrer
- credit → invite surface with stats. Any reward is $THREE-only and
- rule-compliant.
-- [ ] Reactivation channels (newsletter, Telegram) capture correctly with proper
- opt-in; no dark patterns.
-- [ ] Every loop instrumented (share/embed/referral/K-factor) and visible in
- analytics.
-- [ ] Each loop verified end-to-end with a second account/browser.
-- [ ] `npm test` passes. Changelog: `feature` entry ("Share & embed your agents
- anywhere; invite friends").
diff --git a/prompts/readiness/24-monetization-completeness.md b/prompts/readiness/24-monetization-completeness.md
deleted file mode 100644
index 00f2be2c4..000000000
--- a/prompts/readiness/24-monetization-completeness.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# 24 — Monetization completeness
-
-**Phase 6. [parallel-safe]** with 22–23, 25–26.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform with real monetization
-surfaces: x402 paid endpoints (`api/x402*`, `public/x402*.js`), MCP paid tools,
-skill-license NFTs, pump.fun launches, the `monetize-service` / `pay-for-service`
-skills, and an existing `prompts/monetization/` series. Read
-[CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); USDC is a payment rail only.
-
-## Objective
-
-Every money path is complete, correct, and reconcilable end-to-end: pricing is
-real and consistent, checkout (x402 + any fiat onramp) works flawlessly, creators
-get paid accurately, the platform's take is transparent, and every transaction is
-recorded, idempotent, and auditable. No half-wired billing.
-
-## Why it matters
-
-Revenue is the numerator of the valuation. Investors underwrite a $1B platform on
-real, growing, defensible revenue with clean unit economics — not on a checkout
-that sometimes double-charges or a payout that doesn't reconcile. Money code must
-be the most correct code in the repo.
-
-## Instructions
-
-1. **Inventory money flows.** List every way value moves: x402 pay-per-call,
- skill purchase/subscription, skill-license NFT mint, pump launches, agent
- wallet ops, SNS pay-by-name, MCP paid tools. For each, trace: quote → pay →
- verify → settle → grant access → record → (payout to creator) → reconcile.
-2. **Pricing as a single source of truth.** Prices must come from one server-side
- source, never trusted from the client. Confirm the amount charged equals the
- amount quoted equals the amount in the signed payload (ties to
- [09 — security](09-security-review.md)). Support the currencies the existing
- monetization prompts define; $THREE rules apply to anything token-denominated.
-3. **Checkout completeness.** The x402 checkout flow has every state designed
- (insufficient funds, rejected signature, network failure mid-payment, success)
- — coordinate with [18 — state design](18-state-design-sweep.md). If a fiat
- onramp is in scope (`prompts/monetization/25-fiat-on-ramp-integration.md`),
- verify it end-to-end, not stubbed.
-4. **Idempotency & receipts.** Every settlement is idempotent (a retry never
- double-charges or double-grants — ties to
- [08](08-api-hardening.md)/[10](10-resilience-external-calls.md)). Every
- transaction produces a durable receipt the user can see and the platform can
- audit.
-5. **Creator payouts.** If creators earn (skill sales, etc.), confirm payout
- accounting is correct to the lamport/cent: balances, the platform fee
- (transparent %), payout execution, and a reconciliation check that on-chain/
- ledger totals match recorded totals. Build the earnings dashboard if the
- monetization prompts specify one and it's not wired.
-6. **Subscriptions / gating.** If subscriptions or token-gating exist, verify
- access is granted/revoked correctly on renew/expire/cancel, and that gating
- checks are authoritative (on-chain `SkillLicense` PDA or a verified server
- check — not a spoofable client flag).
-7. **Reconciliation job.** A scheduled job that reconciles recorded revenue vs
- on-chain settlement and flags discrepancies — surfaced via
- [11 — observability](11-observability.md).
-8. **Test the money paths hardest** (ties to [15 — coverage](15-test-coverage.md)):
- happy path, double-submit, partial failure, refund/clawback if supported.
-
-## Definition of done
-
-- [ ] Every money flow traced and complete end-to-end (quote→settle→grant→record→
- payout→reconcile); none half-wired.
-- [ ] Pricing is server-authoritative; charged = quoted = signed, verified.
-- [ ] x402 checkout (+ fiat onramp if in scope) has every state designed and
- works end-to-end with real payments — no stubs.
-- [ ] Settlements are idempotent; every transaction yields a user-visible,
- auditable receipt.
-- [ ] Creator payouts reconcile to the smallest unit; platform fee is transparent;
- earnings dashboard wired if specified.
-- [ ] Subscription/gating access transitions are correct and authoritative.
-- [ ] A reconciliation job flags revenue/settlement discrepancies.
-- [ ] Money-path tests cover happy + double-submit + partial-failure; `npm test`
- passes.
-- [ ] Changelog: `feature`/`improvement` entry for any user-facing monetization
- change ($THREE-compliant copy only).
diff --git a/prompts/readiness/25-analytics-funnel.md b/prompts/readiness/25-analytics-funnel.md
deleted file mode 100644
index 9ce908eeb..000000000
--- a/prompts/readiness/25-analytics-funnel.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# 25 — Analytics & funnel instrumentation
-
-**Phase 6. [parallel-safe]** with 22–24, 26.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. PostHog and Vercel
-Analytics are already loaded on the frontend (visible in the page network logs).
-Read [CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-The full funnel is instrumented with consistent, well-named events so you can
-measure activation, retention, conversion, and the growth loops — privacy-
-respecting, no PII leakage, with a defined event taxonomy that product decisions
-can actually run on.
-
-## Why it matters
-
-A $1B valuation is argued with numbers: activation rate, D1/D7/D30 retention,
-conversion to paid, K-factor, revenue cohorts. If the funnel isn't instrumented
-consistently, you're flying blind and can't prove traction to anyone — including
-yourselves. This is the measurement layer the growth and monetization work
-depends on.
-
-## Instructions
-
-1. **Define the event taxonomy** before adding events. A documented schema
- (`docs/analytics-events.md`): event name (consistent `object_action` naming),
- when it fires, properties, and which funnel/metric it feeds. No ad-hoc
- one-off events.
-2. **Instrument the funnels:**
- - **Acquisition:** landing view, source/referrer, ref-param capture (ties to
- [23 — growth](23-growth-virality.md)).
- - **Activation:** forge_started → forge_succeeded (the "aha" from
- [21 — onboarding](21-onboarding-first-run.md)) → agent_saved → agent_shared.
- - **Engagement/retention:** return visits, session depth, feature adoption
- (animate, embed, brain, chat).
- - **Monetization:** checkout_started → payment_succeeded/failed, subscription
- events, creator earnings events (ties to
- [24 — monetization](24-monetization-completeness.md)).
- - **Growth loops:** share_clicked, embed_installed, embed_impression,
- referral_signup, and a computed K-factor.
-3. **Identity & sessions.** Tie events to a stable anonymous ID pre-auth and
- merge to the user on sign-in (PostHog supports this). Don't double-count.
-4. **Privacy & compliance.** No PII, no secrets, no wallet private data, no full
- addresses where avoidable in event props. Respect Do-Not-Track and provide a
- cookie/analytics consent path if the audience requires it. Mask sensitive
- fields. Document what's collected.
-5. **Server-side events** for things the client can't be trusted for (payment
- settled, on-chain confirmed) so revenue metrics are accurate even if the
- client drops.
-6. **Dashboards.** Build/define the core dashboards: activation funnel, retention
- cohorts, conversion funnel, growth-loop metrics, revenue. Keep product
- analytics (PostHog) distinct from ops metrics
- ([11 — observability](11-observability.md)).
-7. **Verify events fire** correctly end-to-end in PostHog (use the live events
- view) for each funnel step — no missing, misnamed, or duplicate events.
-
-## Definition of done
-
-- [ ] `docs/analytics-events.md` defines the full event taxonomy (naming, props,
- funnel mapping).
-- [ ] Acquisition, activation, engagement, monetization, and growth-loop events
- are instrumented per the taxonomy and verified firing in PostHog.
-- [ ] Anonymous→identified merge works without double-counting.
-- [ ] Privacy honored: no PII/secrets in props, DNT/consent respected, collection
- documented.
-- [ ] Revenue/settlement events are captured server-side for accuracy.
-- [ ] Core dashboards (activation, retention, conversion, growth, revenue) exist
- or are defined and reproducible.
-- [ ] Each funnel step verified end-to-end in the live events view.
-- [ ] `npm test` passes. Changelog: skip (internal) unless a user-facing consent
- UI shipped.
diff --git a/prompts/readiness/26-trust-surfaces.md b/prompts/readiness/26-trust-surfaces.md
deleted file mode 100644
index e10ba8e18..000000000
--- a/prompts/readiness/26-trust-surfaces.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# 26 — Trust surfaces: status, docs, security, pricing, legal
-
-**Phase 6. [parallel-safe]** with 22–25.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform with extensive docs
-(`docs/`), a changelog system, an API reference (`docs/api-reference.md`,
-`docs/api.html`), and SDKs. Read [CLAUDE.md](../../CLAUDE.md). The only coin is
-**$THREE**.
-
-## Objective
-
-The public surfaces that make a platform credible to users, developers, partners,
-and investors are present, accurate, and polished: a live status page, complete
-and correct developer docs, a clear security/trust page, transparent pricing, and
-the legal/policy pages a real company needs.
-
-## Why it matters
-
-Before anyone integrates, invests, or trusts a platform with money, they check:
-Is it up? Are the docs real? Is it secure? What does it cost? Who's behind it? A
-$1B platform answers all of these with confidence. Missing or sloppy trust
-surfaces cap enterprise and developer adoption no matter how good the product is.
-
-## Instructions
-
-1. **Status page.** A real `/status` driven by the health endpoints from
- [11 — observability](11-observability.md): current uptime of core services
- (API, RPC, forge pipeline, payments), recent incidents, and historical
- uptime. Real data, not a static "all good" image. Auto-updates.
-2. **Developer docs.** Audit `docs/` and the API reference for accuracy against
- the actual 769 endpoints + SDKs: every documented endpoint exists and matches
- its real signature; every SDK has a working quickstart; code samples actually
- run. Fix drift. Ensure a clear "build your first integration in 10 minutes"
- path. Cross-check `npm run audit:pages` / `validate:cards`.
-3. **Security/trust page.** A `/security` page stating the security posture (no
- secrets in client, audited contracts, x402 verification, responsible-
- disclosure contact + policy), linking the public results of
- [09 — security review](09-security-review.md) where appropriate. Add a
- `SECURITY.md` and a disclosure email if absent.
-4. **Pricing page.** A clear, honest `/pricing`: free tier (the README's free
- draft tier), paid tiers, x402 pay-per-call, creator economics + platform fee
- (transparent %, consistent with [24 — monetization](24-monetization-completeness.md)).
- No hidden costs. $THREE is the only token referenced.
-5. **Legal/policy.** Terms of Service, Privacy Policy (consistent with the data
- collection documented in [25 — analytics](25-analytics-funnel.md)), and any
- required crypto/risk disclosures. Real pages, reachable from the footer, not
- dead links (ties to [05 — dead paths](05-dead-path-and-handler-audit.md)).
-6. **About/credibility.** An About surface: what three.ws is, the open-source
- story, links to GitHub/X, and the $THREE contract address with the "always
- verify the CA" guidance from the README. Honest, no vaporware claims.
-7. **Consistency.** All trust pages use the unified design system
- ([20](20-design-system-consistency.md)), are responsive
- ([19](19-responsive-mobile-sweep.md)), accessible
- ([17](17-accessibility-audit.md)), and SEO-complete
- ([22](22-seo-and-shareability.md)).
-8. **Verify** every link in the footer/trust nav resolves and every doc sample
- runs.
-
-## Definition of done
-
-- [ ] Live `/status` page driven by real health data with uptime + incident
- history.
-- [ ] Developer docs + API reference audited against real endpoints/SDKs; drift
- fixed; a working 10-minute quickstart exists; samples run.
-- [ ] `/security` page + `SECURITY.md` + responsible-disclosure contact present.
-- [ ] Honest `/pricing` page covering free/paid/x402/creator economics; $THREE
- only.
-- [ ] ToS, Privacy Policy, and required disclosures exist, are reachable from the
- footer, and match actual data practices.
-- [ ] About/credibility surface with correct $THREE CA + verify guidance.
-- [ ] All trust pages are consistent, responsive, accessible, SEO-complete; every
- footer/trust link resolves.
-- [ ] `npm test` + `npm run audit:pages` pass. Changelog: `docs`/`feature` entry
- for new public pages.
diff --git a/prompts/readiness/27-launch-runbook.md b/prompts/readiness/27-launch-runbook.md
deleted file mode 100644
index 133cf7c3c..000000000
--- a/prompts/readiness/27-launch-runbook.md
+++ /dev/null
@@ -1,80 +0,0 @@
-# 27 — Go-live runbook & pre-launch checklist
-
-**Phase 7. Serial. Run last** — it gates the whole program on a single
-verifiable checklist.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform, deployed via Vercel,
-mirrored to two GitHub remotes (`threeD` push-only, `threews` canonical). Read
-[CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-A single authoritative pre-launch checklist that proves the platform is
-production-ready, plus a documented, rehearsed go-live and rollback procedure.
-This task does not add features — it verifies that everything the rest of this
-program built is actually true, in production, right now.
-
-## Why it matters
-
-"Done" is a claim that has to be proven against real production, not asserted
-from the editor. The launch is the moment all the prior work either holds or
-doesn't. A rehearsed runbook with a one-step rollback is the difference between a
-confident launch and a 3am scramble that costs trust you can't rebuild.
-
-## Instructions
-
-1. **Roll up the program.** Re-run the audit from
- [01 — scorecard](01-production-audit-scorecard.md) and confirm each prior
- prompt's Definition of Done is actually met. Produce a final
- `docs/audits/launch-readiness-YYYY-MM-DD.md` with a green/red status per
- prompt (02–26). Any red blocks launch.
-2. **Production smoke, for real.** Against the production (or a production-mirror)
- deploy, verify the core journeys with real data: forge a model, create an
- agent, SIWE login, x402 checkout (a real small payment), a pump launch path on
- the appropriate environment, marketplace + trending load. Use the existing
- smoke scripts (`smoke:onchain`, `smoke:mcp`, `smoke:agent-wallet`,
- `pump:smoke`) and record results.
-3. **The gate checklist** (every item must be verifiably true):
- - Zero TODO/stub/mock/dead-path regressions (re-run the Phase-1 greps).
- - All money/chain endpoints: authz + validation + rate-limit + idempotent.
- - Secrets clean; env validated at boot; nothing sensitive client-side.
- - Resilience + observability live; alerts verified to fire; `/status` green.
- - CWV "good" on top surfaces; 3D smooth on mobile.
- - CI gates green; coverage threshold met; E2E passing.
- - A11y AA on top surfaces; responsive at all breakpoints; every state designed.
- - SEO/OG/sitemap correct; trust pages live; $THREE-only verified by the guard
- test.
- - Backups/DB migrations applied and reversible (`npm run db:status`).
-4. **Capacity & limits.** Confirm rate limits, RPC quotas, function concurrency,
- and DB connection limits are sized for an expected launch spike, and that
- degradation (from [10](10-resilience-external-calls.md)) is graceful under
- load. A light load test on the hottest read path is ideal.
-5. **Deploy & rollback procedure.** Document the exact deploy steps
- (`build:all` → `check:dist` → `audit:deploy` → deploy, pushing to BOTH
- remotes) and a one-command rollback to the previous good deploy. Note the
- CLAUDE.md trap: `npx vercel build` can overwrite `api/*.js` with bundles —
- include the guard/recover step. Rehearse the rollback once.
-6. **Comms plan.** Prepare the launch changelog entries
- (`data/changelog.json` → `npm run build:pages` → `npm run changelog:push`),
- the Telegram/X announcements ($THREE-compliant copy), and a clear owner for
- each during launch.
-7. **Go/no-go.** The launch-readiness doc ends with an explicit GO or NO-GO and,
- if NO-GO, the specific blocking items.
-
-## Definition of done
-
-- [ ] `docs/audits/launch-readiness-<today>.md` with green/red per prompt 02–26
- and an explicit GO/NO-GO.
-- [ ] Production (or mirror) smoke of every core journey passed with real data,
- including a real small x402 payment; smoke-script output recorded.
-- [ ] The full gate checklist is verifiably true (each item evidenced, not
- asserted).
-- [ ] Capacity sized for a launch spike; graceful degradation confirmed under a
- light load test.
-- [ ] Deploy + one-command rollback documented AND rollback rehearsed once.
-- [ ] Launch comms (changelog + announcements) prepared, $THREE-compliant, with
- owners.
-- [ ] Pushed to BOTH remotes per CLAUDE.md when shipping.
-- [ ] Changelog: prepare the launch entries (don't double-post).
diff --git a/prompts/readiness/28-incident-response-oncall.md b/prompts/readiness/28-incident-response-oncall.md
deleted file mode 100644
index 0e49cc624..000000000
--- a/prompts/readiness/28-incident-response-oncall.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# 28 — Incident response & on-call
-
-**Phase 7. Serial.** Pairs with [27 — launch runbook](27-launch-runbook.md);
-this is what you reach for when launch (or any day after) goes sideways.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform handling real money
-(Solana, x402 USDC, pump.fun, $THREE). Observability + alerting were built in
-[11](11-observability.md), resilience in [10](10-resilience-external-calls.md).
-Read [CLAUDE.md](../../CLAUDE.md). The only coin is **$THREE**.
-
-## Objective
-
-A real incident-response capability: documented severity levels, runbooks for the
-most likely failures, clear ownership and escalation, a rollback that works, and
-a blameless post-mortem process. When something breaks at scale, the team
-responds in minutes with a known procedure — not improvisation.
-
-## Why it matters
-
-At a billion-dollar scale, the question is not *if* something breaks but *how
-fast you recover* and *whether users lose money or trust*. A money platform with
-no incident plan is one bad night from a reputation it can't recover. Operational
-maturity is part of what makes the valuation defensible.
-
-## Instructions
-
-1. **Severity model.** Define SEV1–SEV4 with concrete examples for this platform:
- - SEV1: payments failing / funds at risk / total outage / suspected key
- compromise.
- - SEV2: a core journey down (forge, login, marketplace) for many users.
- - SEV3: degraded/slow, single feature broken, elevated error rate.
- - SEV4: cosmetic / low-impact.
- Each severity gets a response-time target and an escalation path.
-2. **Runbooks for the likely failures** (in `docs/runbooks/`):
- - Solana RPC outage / throttling → failover behavior, manual endpoint swap.
- - pump.fun feed down → degraded mode, what users see.
- - LLM proxy (OpenAI/Anthropic) failure → fallback/queue.
- - x402 facilitator / payment failure → how to stop charges, reconcile, refund.
- - Database / KV outage → read-only mode, cache-serve.
- - Suspected secret/key compromise → immediate rotation steps (ties to
- [07](07-secrets-and-env-hardening.md)), revoke, audit.
- - Bad deploy → the one-command rollback from
- [27 — launch runbook](27-launch-runbook.md).
- Each runbook: detection signal → immediate mitigation → root-cause steps →
- verification → comms.
-3. **Detection → response wiring.** Confirm the alerts from
- [11 — observability](11-observability.md) map to these runbooks: an alert
- names the likely runbook. No alert without an action.
-4. **Ownership & escalation.** Document who's on call, how they're paged, and the
- escalation chain. Even a small team needs a defined first responder and
- backup. Status-page updates ([26 — trust surfaces](26-trust-surfaces.md)) are
- part of SEV1/SEV2 response.
-5. **User-facing comms templates.** Pre-written, honest templates for status-page
- updates and announcements during an incident — $THREE-compliant, no
- speculation, clear on user impact and ETA.
-6. **Money-incident specifics.** A precise procedure for payment incidents: how
- to halt the affected flow, identify impacted transactions (from the receipts/
- ledger in [24](24-monetization-completeness.md)), reconcile, and make users
- whole. Funds-at-risk is always SEV1.
-7. **Post-mortem process.** A blameless template (timeline, impact, root cause,
- what worked, action items with owners) and the rule that every SEV1/SEV2 gets
- one. Action items feed back into the backlog.
-8. **Rehearse.** Run one tabletop/game-day for a SEV1 (e.g. "RPC is down and
- payments are failing") and confirm the runbook actually leads to recovery.
- Note gaps and fix them.
-
-## Definition of done
-
-- [ ] SEV1–SEV4 model with examples, response-time targets, and escalation paths
- documented.
-- [ ] Runbooks in `docs/runbooks/` for RPC, pump feed, LLM proxy, x402/payments,
- DB/KV, key compromise, and bad-deploy rollback — each with
- detection→mitigation→root-cause→verify→comms.
-- [ ] Every alert maps to a runbook (no alert without an action).
-- [ ] On-call ownership + escalation + status-page update process documented.
-- [ ] Honest, $THREE-compliant incident comms templates ready.
-- [ ] A precise money-incident procedure (halt → identify → reconcile → make
- whole).
-- [ ] Blameless post-mortem template + the SEV1/SEV2-always rule.
-- [ ] One SEV1 tabletop rehearsed; gaps found are fixed.
-- [ ] Changelog: skip (internal ops).
diff --git a/prompts/road-to-1b/00-README.md b/prompts/road-to-1b/00-README.md
deleted file mode 100644
index 7efa85f13..000000000
--- a/prompts/road-to-1b/00-README.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Road to $1B — production-readiness program
-
-> Read this first, then `/CLAUDE.md`. Every prompt in this folder assumes both.
-
-This is the **spine** that takes three.ws from "impressive demo" to a platform a
-serious diligence team, a million users, and a $THREE holder base would all trust.
-It is deliberately separate from the feature-expansion prompt libraries elsewhere in
-`prompts/` (`feature-innovation/`, `agent-studio/`, `living-agents/`, …) — those add
-surface area; **this track makes the surface area we already have correct, safe, fast,
-and fundable.**
-
-The only coin is **$THREE** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). No
-exceptions, anywhere. See `/CLAUDE.md`.
-
-## How to run this
-
-Each numbered file is a **self-contained prompt for a fresh chat**. Open a new
-session, paste the file's contents (or say "do `prompts/road-to-1b/NN-*.md`"), and let
-the agent execute it end to end. One prompt = one focused, shippable unit of work.
-
-Run **in number order within a phase**. Phases are mostly sequential; inside a phase,
-prompts marked `Parallel-safe with:` can run in separate chats at the same time.
-Foundation (Phase 0) and hardening (Phase 1) come before everything — you cannot
-polish or grow on top of stubs and security holes.
-
-Each prompt ends with an **Acceptance** checklist. A prompt is not done until every
-box is checked, `npm test` is green, and any user-visible change has a
-`data/changelog.json` entry (`npm run build:pages` validates it).
-
-## The repo in one breath
-
-Vanilla-JS + Vite monorepo, 20 npm workspaces. ~125 pages (`pages/`), ~810 front-end
-modules (`src/`), ~961 Vercel functions (`api/`), Cloudflare workers (`workers/`),
-Three.js for 3D, Solana + pump.fun + x402 for money, real OpenAI/Anthropic via worker
-proxies. `STRUCTURE.md` maps every surface to its directory — read it before
-exploring. Useful existing gates: `npm run audit:web`, `audit:pages`,
-`audit:handlers`, `audit:empty-handlers`, `check:images`, `test:gate`, `verify:solana`,
-`smoke:onchain`, `audit:deploy`, `lint`, `typecheck`.
-
-## Phase map
-
-| # | Prompt | Phase |
-|---|---|---|
-| 01 | Production-readiness audit & scorecard | 0 — Foundation & truth |
-| 02 | No stubs, mocks, TODOs — hard-rule cleanup | 0 |
-| 03 | Dead paths, broken links & empty handlers | 0 |
-| 04 | $THREE-only compliance sweep | 0 |
-| 05 | Secrets & env hygiene | 1 — Correctness & hardening |
-| 06 | Error handling & resilience | 1 |
-| 07 | Security hardening | 1 |
-| 08 | Rate limiting & abuse prevention | 1 |
-| 09 | Test suite green & CI gate | 1 |
-| 10 | Resilience of external calls | 2 — Reliability at scale |
-| 11 | Observability (logs, metrics, alerts) | 2 |
-| 12 | Frontend performance & Core Web Vitals | 3 — Experience quality |
-| 13 | Accessibility (WCAG 2.2 AA) | 3 |
-| 14 | Responsive & mobile | 3 |
-| 15 | Every state designed + design-system consistency | 3 |
-| 16 | SEO, metadata, Open Graph & structured data | 3 |
-| 17 | Cross-browser & device QA | 3 |
-| 18 | Studio suite completeness (Forge, Avatar, Animation, Scene) | 4 — Surface completeness |
-| 19 | Agent creation & Agent Studio | 4 |
-| 20 | Marketplace, skills & purchase flow | 4 |
-| 21 | Trading & intelligence suite (Oracle, radars, leaderboards) | 4 |
-| 22 | Launch suite (Launch a Coin, Launchpad, Coin Intel, Claim) | 4 |
-| 23 | Worlds, Coin Clash & multiplayer | 4 |
-| 24 | Wallets & payments (x402, agent wallets, USDC, pay-by-name) | 4 |
-| 25 | SDK release-readiness | 5 — Developer platform |
-| 26 | MCP servers & agent interoperability | 5 |
-| 27 | Docs, tutorials & API reference | 5 |
-| 28 | Onboarding, guided tour & activation funnel | 5 |
-| 29 | Conversion funnel & landing optimization | 6 — Growth & business |
-| 30 | Analytics & growth instrumentation | 6 |
-| 31 | Monetization, pricing & $THREE utility | 6 |
-| 32 | Legal, compliance & trust | 6 |
-| 33 | Infrastructure, CI/CD & deploy safety | 6 |
-| 34 | Launch-readiness gate & go-to-market QA | 6 |
-
-## Why "$1B" is the bar, concretely
-
-A $1B platform is not "more features." It is: **nothing is fake** (Phase 0), **nothing
-leaks or breaks under load or attack** (Phases 1–2), **it feels world-class on any
-device** (Phase 3), **every surface a user can reach is finished** (Phase 4),
-**developers can build on it** (Phase 5), and **the funnel from first visit to paying,
-retained user is measured and optimized** (Phase 6). Each phase is a precondition for
-the next being worth anything.
-
-## Prompt template (for adding new ones)
-
-```
-# NN — Title
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** N — <name>
-**Owns:** <paths/surfaces this prompt may change>
-**Depends on:** <numbers or "none"> · **Parallel-safe with:** <numbers or "—">
-
-## Why this matters for $1B
-<2–4 lines tying the work to trust / fundability / growth>
-
-## Mission
-<one crisp sentence>
-
-## Map
-<real repo paths, scripts, surfaces>
-
-## Do this
-1. … (specific, ordered, references real scripts/paths — never generic)
-
-## Must-not
-- …
-
-## Acceptance
-- [ ] … ; `npm test` green; changelog entry if user-visible.
-```
-
-## Global definition of done (applies to every prompt)
-
-- No mocks, fake data, placeholders, TODOs, stubs, or `throw "not implemented"`.
-- Every interactive element has hover/active/focus states; every page has designed
- loading/empty/error/populated states.
-- Real APIs only; errors handled at network/input boundaries.
-- `npm test` green; `npm run lint` and `npm run typecheck` clean for touched code.
-- `git diff` self-reviewed; every changed line justified.
-- User-visible change → `data/changelog.json` entry (plain language, holder-readable).
-- You would demo it, unprompted, to a room of senior engineers.
diff --git a/prompts/road-to-1b/01-production-readiness-audit.md b/prompts/road-to-1b/01-production-readiness-audit.md
deleted file mode 100644
index a64fba3a7..000000000
--- a/prompts/road-to-1b/01-production-readiness-audit.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# 01 — Production-readiness audit & scorecard
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** read-only across the whole repo; output a report under `tasks/` or `docs/`.
-**Depends on:** none. Run this first — it produces the backlog everything else executes.
-
-## Why this matters for $1B
-You cannot fix, fund, or scale what you haven't honestly measured. This prompt
-produces the single prioritized punch list that prompts 02–34 work down. No hand-waving
-— evidence with `file:line`.
-
-## Mission
-Produce an honest, reproducible production-readiness scorecard of three.ws with a
-prioritized remediation list mapped to the prompts that fix each gap.
-
-## Map
-- Existing gates to run and capture: `npm run audit:web`, `npm run audit:pages`,
- `npm run audit:handlers`, `npm run audit:empty-handlers`, `npm run check:images`,
- `npm run lint`, `npm run typecheck`, `npm test`.
-- Surface inventory: `STRUCTURE.md`, `data/pages.json` (all ~125 pages), `pages/`,
- `src/`, `api/`, `workers/`, the SDK dirs.
-
-## Do this
-1. Run every audit/lint/test script above and capture the raw output (don't fix yet).
-2. Grep the tree for hard-rule violations and record `file:line` for each: `TODO`,
- `FIXME`, `HACK`, `throw new Error('not implemented'`, `setTimeout(` used for fake
- loading, `sample`/`mock`/`fake`/`placeholder` arrays, large commented-out blocks.
-3. Walk `data/pages.json`: for every page, record whether it has a real backend, real
- data, and designed loading/empty/error states.
-4. Score each major surface (Studios, Agents/Agent Studio, Marketplace, Trading suite,
- Launch suite, Worlds/Coin Clash, Wallets/Payments, SDKs, Docs) **Red/Amber/Green**
- on: completeness, designed states, error handling, mobile, a11y, performance.
-5. Write a single `tasks/production-readiness-scorecard.md`: an executive summary, the
- surface scorecard table, the violation list with evidence, and an ordered
- remediation list where every Red item names the owning prompt number (02–34).
-
-## Must-not
-- Do not fix anything here — audit only. Do not soften or omit findings to look better.
-
-## Acceptance
-- [ ] `tasks/production-readiness-scorecard.md` exists with the surface table + evidence.
-- [ ] Every Red/Amber item cites `file:line` and an owning prompt number.
-- [ ] The audit is reproducible from the listed scripts; `npm test` still green.
diff --git a/prompts/road-to-1b/02-no-stubs-mocks-todos.md b/prompts/road-to-1b/02-no-stubs-mocks-todos.md
deleted file mode 100644
index 2143db3f7..000000000
--- a/prompts/road-to-1b/02-no-stubs-mocks-todos.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# 02 — No stubs, mocks, TODOs — hard-rule cleanup
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** `src/`, `api/`, `workers/`, `pages/`, `scripts/`, SDK dirs (shippable code).
-**Depends on:** 01. · **Parallel-safe with:** 04.
-
-## Why this matters for $1B
-CLAUDE.md forbids mocks, fake data, TODOs, stubs, and `throw "not implemented"`. A
-single shipped placeholder tells a user — and a diligence team — "this company doesn't
-finish things." Every one is a credibility leak.
-
-## Mission
-Eliminate every mock, fake-data fallback, placeholder, TODO/FIXME, stub function, fake
-`setTimeout` loading, and commented-out code from shippable paths — by implementing the
-real thing, never by hiding it.
-
-## Map
-- Violation inventory from prompt 01.
-- `npm run audit:empty-handlers` catches no-op/empty handlers.
-- Real integrations already in the repo (Pump.fun feed, Solana RPC, OpenAI/Anthropic
- worker proxies) — use them; never re-mock them.
-
-## Do this
-1. For each violation from 01, implement the real behavior: real API/endpoint/data per
- CLAUDE.md "No errors without solutions — there is always a correct answer."
-2. Replace every `sample*`/fallback array shipped to production with a real fetch plus a
- designed empty state (a hollow list is not acceptable; tell the user what to do).
-3. Convert fake progress bars / `setTimeout` loaders to real async indicators tied to
- actual work (skeletons preferred).
-4. Delete commented-out code and dead imports; resolve every `// implement later`.
-5. Replace any `throw new Error('not implemented')` with the implementation.
-6. Re-run `npm run audit:empty-handlers` and the violation greps from 01 until clean.
-
-## Must-not
-- Do not hide a stub behind a feature flag or env check to "pass."
-- Do not delete a feature to remove its stub — finish the feature.
-
-## Acceptance
-- [ ] Greps for the banned patterns return nothing in shippable code.
-- [ ] `npm run audit:empty-handlers` clean; no fake loaders remain.
-- [ ] `npm test` green; changelog entry only where user-visible behavior changed.
diff --git a/prompts/road-to-1b/03-dead-paths-and-broken-links.md b/prompts/road-to-1b/03-dead-paths-and-broken-links.md
deleted file mode 100644
index 8e7e21648..000000000
--- a/prompts/road-to-1b/03-dead-paths-and-broken-links.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 03 — Dead paths, broken links & empty handlers
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** `pages/`, `src/` UI + components, nav/footer, `data/pages.json`.
-**Depends on:** 01. · **Parallel-safe with:** 02, 04.
-
-## Why this matters for $1B
-Every dead button, no-op link, or 404 is a trust leak and a conversion killer.
-CLAUDE.md is explicit: if a button exists it must work; if a link exists it must go
-somewhere; if a state exists there must be a way to reach it.
-
-## Mission
-Guarantee every link resolves, every button does something real, every declared state
-is reachable, and every page is reachable from navigation.
-
-## Map
-- `npm run audit:pages`, `npm run audit:handlers`, `npm run audit:empty-handlers`.
-- Primary nav: `src/dashboard-next/components/topbar.js`; footer + in-page CTAs across
- `pages/`. Route registry: `data/pages.json`. The "All pages" directory + guided tour
- should cover real routes only.
-
-## Do this
-1. Run `audit:pages`, `audit:handlers`, `audit:empty-handlers`; fix every flagged item.
-2. Crawl the topbar, footer, and in-page CTAs for `href`s that 404 or point nowhere;
- fix the destination or remove the link with intent (no orphan links).
-3. Verify every page in `data/pages.json` is linked from somewhere and renders.
-4. Find buttons/handlers that are missing or no-ops; wire them to real behavior or
- remove the control if the action genuinely doesn't exist yet (then note the gap).
-5. Verify deep-links, back/forward, and the guided tour land on real, working routes.
-6. Confirm the "All pages" directory reflects the live route set.
-
-## Must-not
-- Do not mask a broken link by suppressing the click — fix the destination or remove it.
-- Do not leave a control that looks interactive but does nothing.
-
-## Acceptance
-- [ ] `audit:pages`, `audit:handlers`, `audit:empty-handlers` all clean.
-- [ ] Manual crawl of nav/footer/CTAs finds zero dead links or no-op buttons.
-- [ ] Every `data/pages.json` route is reachable and renders; `npm test` green.
diff --git a/prompts/road-to-1b/04-three-coin-compliance.md b/prompts/road-to-1b/04-three-coin-compliance.md
deleted file mode 100644
index 8b376aeef..000000000
--- a/prompts/road-to-1b/04-three-coin-compliance.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# 04 — $THREE-only compliance sweep
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation & truth
-**Owns:** the entire repo — code, comments, tests, fixtures, docs, copy, metadata.
-**Depends on:** none. · **Parallel-safe with:** 02, 03.
-
-## Why this matters for $1B
-Brand and legal integrity. The platform promotes exactly one coin — **$THREE**
-(`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). CLAUDE.md treats any stray token
-reference like a leaked secret. A diligence team will grep for exactly this.
-
-## Mission
-Ensure $THREE is the only coin referenced anywhere, while keeping the two legitimate
-runtime-data exceptions intact.
-
-## Map
-- The two allowed exceptions (runtime-data only, keep them):
- 1. Generic coin-agnostic plumbing where a mint is supplied at runtime by the user
- (the pump.fun launcher accepting an arbitrary mint as input).
- 2. Platform launch directories rendering user-launched coins from our own records:
- the `/launches` feed, agent-profile launch history, `/api/pump/launches` over
- `pump_agent_mints`.
-
-## Do this
-1. Grep the whole tree for hardcoded mint addresses, token tickers, and coin names
- (base58 mint patterns, `$`-prefixed tickers, known-coin words).
-2. Remove every non-$THREE reference from source, comments, copy, tests, fixtures,
- docs, metadata, and sample data — treat each like a leaked secret.
-3. Verify the two exceptions still function and remain runtime-data-only — never a
- hardcoded specific non-$THREE mint in source or copy.
-4. Confirm fixtures/tests use only the $THREE CA above or a clearly-synthetic
- placeholder (e.g. `THREEsynthetic1111…`) — no real third-party mainnet mints.
-5. Add a CI grep guard (a `scripts/` check or a test) that fails the build if a
- non-$THREE mint/ticker is reintroduced outside the two exception paths.
-
-## Must-not
-- Do not remove the two legitimate runtime-data exceptions.
-- Do not hardcode, market, or recommend any specific non-$THREE mint anywhere.
-
-## Acceptance
-- [ ] Tree grep shows no other coin in source, copy, tests, or docs.
-- [ ] Both exceptions verified runtime-only and still working.
-- [ ] CI guard rejects reintroduction; `npm test` green.
diff --git a/prompts/road-to-1b/05-secrets-and-env-hygiene.md b/prompts/road-to-1b/05-secrets-and-env-hygiene.md
deleted file mode 100644
index ae1c9e2b6..000000000
--- a/prompts/road-to-1b/05-secrets-and-env-hygiene.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 05 — Secrets & env hygiene
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 0 — Foundation
-**Owns:** `.env*`, `vercel.json` (`env`), `api/`, `workers/`, `.gitignore`, anything reading `process.env`.
-**Depends on:** none. Run early — a leaked key is a $1B-killer.
-
-## Why this matters for $1B
-A single leaked private key (Solana parent secret, RPC key, bot token) can drain
-funds and end the company. Diligence teams scan git history for secrets. This must be
-airtight.
-
-## Mission
-Guarantee no secret is committed, every secret is loaded from the environment with a
-clear failure when missing, and the set of required env vars is documented and
-validated at boot.
-
-## Map
-- Required secrets referenced across the codebase include (verify the live set):
- `THREEWS_SOL_PARENT_SECRET_BASE58`, Solana RPC keys, `TELEGRAM_BOT_TOKEN`,
- `TELEGRAM_CHANGELOG_CHAT_ID`, OpenAI/Anthropic keys (via worker proxies), x402
- facilitator config.
-- `vercel.json` has an `env` block. Functions in `api/`, workers in `workers/`.
-
-## Do this
-1. Scan the working tree **and git history** for committed secrets (use
- `git log -p` filtered, or a tool like gitleaks/trufflehog run locally). Treat any
- hit as an incident: rotate the key, purge if feasible, and document.
-2. Confirm `.gitignore` excludes `.env`, `.env.*` (except `.env.example`), key files,
- and any wallet keypair JSON. Add what's missing.
-3. Create/maintain a complete `.env.example` listing **every** env var the app reads,
- grouped by surface, with a one-line description and whether it's required. Derive
- the list by grepping `process.env.` across `api/`, `workers/`, `src/`, `scripts/`.
-4. Add a startup/env-validation step (a small `api/_lib/env.js` or similar) that, on
- cold start, asserts required vars are present and fails loud with a precise message
- naming the missing var — never a silent undefined that 500s later.
-5. Ensure secrets are read server-side only. Grep `public/` and client `src/` for any
- secret-looking value or `VITE_`-exposed secret that should be server-only. Move
- them behind an API route or worker proxy.
-6. Confirm the AI provider keys are only ever used via the worker proxies, never
- shipped to the client (per `/CLAUDE.md` stack notes).
-7. Document secret rotation steps in `docs/` (where to rotate each, blast radius).
-
-## Must-not
-- Do not print secrets in logs or error messages.
-- Do not commit a real key even to `.env.example` — use obvious placeholders.
-- Do not expose any secret via a `VITE_`/client-bundled var.
-
-## Acceptance
-- [ ] git history + working tree scanned; zero live secrets present (rotations done if found).
-- [ ] `.gitignore` covers all secret/keypair patterns.
-- [ ] `.env.example` is complete and grouped, derived from actual `process.env` usage.
-- [ ] Boot-time env validation fails loud on missing required vars, naming each.
-- [ ] No secret reachable from the client bundle.
-- [ ] Rotation runbook written in `docs/`.
diff --git a/prompts/road-to-1b/06-error-handling-and-resilience.md b/prompts/road-to-1b/06-error-handling-and-resilience.md
deleted file mode 100644
index 3d71eccff..000000000
--- a/prompts/road-to-1b/06-error-handling-and-resilience.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# 06 — Error handling & resilience
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/` (~960 handlers), `workers/`, `api/_lib/`, client fetch wrappers in `src/`/`public/`.
-**Depends on:** `04` (no fake fallbacks).
-
-## Why this matters for $1B
-At scale, dependencies fail constantly — RPC nodes time out, providers rate-limit,
-pump.fun hiccups. A $1B platform degrades gracefully and self-heals. `/CLAUDE.md`:
-"No errors without solutions. Ship working fallbacks and failsafes. Lazy error
-propagation is not engineering."
-
-## Mission
-Every external call has timeout, retry-with-backoff, circuit-breaking where
-appropriate, and a designed failure path. Every handler returns correct status codes
-and structured errors. No unhandled rejections.
-
-## Map
-- Resilience helper: **cockatiel** is the vetted choice (see existing usage in
- `api/_lib/`). Reuse it — do not hand-roll retry loops.
-- Real upstreams: Solana RPC (already has "resilient Solana RPC" work — see git log),
- Pump.fun feed, OpenAI/Anthropic worker proxies, x402 facilitator.
-- Recent hardening precedent: `api/x402-checkout.js` ATA-probe hardening against
- malformed RPC replies — match that rigor.
-
-## Do this
-1. Inventory every outbound call in `api/` and `workers/`. For each, confirm:
- explicit timeout, bounded retry with jittered backoff (cockatiel), and a
- circuit-breaker for hot paths that hammer a flaky upstream.
-2. Standardize a shared `fetchWithResilience` / RPC-client wrapper in `api/_lib/`
- and migrate unprotected callers to it (additive — don't churn already-protected
- code, per memory guidance).
-3. Validate and defensively parse every upstream response. Never assume shape;
- malformed replies must not throw raw — they map to a clean error or a safe
- default. (Generalize the x402 ATA-probe pattern.)
-4. Standardize API error responses: correct HTTP status, a stable `{ error: { code,
- message } }` shape, no stack traces or secrets leaked to clients. Log full detail
- server-side.
-5. Add a top-level handler wrapper that catches unhandled rejections/exceptions per
- request and converts them to a clean 5xx with a request id.
-6. Client side: every `fetch` has a timeout + abort, and surfaces a designed,
- actionable error state (ties to prompt `12`). Add retry on idempotent GETs.
-7. Add tests for the failure paths: simulate timeouts, 429s, malformed JSON, partial
- responses. Confirm graceful degradation, not crashes.
-
-## Must-not
-- Do not swallow errors silently or return `200` with empty data on failure.
-- Do not leak stack traces, internal URLs, or secrets in error responses.
-- Do not retry non-idempotent writes blindly (risk of double-spend/double-mint).
-
-## Acceptance
-- [ ] Every external call has timeout + bounded retry; hot paths have circuit-breakers.
-- [ ] Shared resilient client adopted across previously-unprotected handlers.
-- [ ] All upstream responses defensively parsed; malformed input handled, never thrown raw.
-- [ ] Uniform structured error responses with correct status codes; no leaks.
-- [ ] Failure-path tests added and green.
-- [ ] No unhandled promise rejections (cross-check prompt `03`).
diff --git a/prompts/road-to-1b/07-security-hardening.md b/prompts/road-to-1b/07-security-hardening.md
deleted file mode 100644
index 3bc8c9bae..000000000
--- a/prompts/road-to-1b/07-security-hardening.md
+++ /dev/null
@@ -1,62 +0,0 @@
-# 07 — Security hardening
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Cross-cutting hardening
-**Owns:** `api/`, `workers/`, auth middleware in `api/_lib/`, `vercel.json` (headers/routes), wallet/payment paths.
-**Depends on:** `05` (secrets), `06` (error handling). Pairs with `08` (rate limiting).
-
-## Why this matters for $1B
-This platform custodies wallets and moves money (x402, $THREE, skill purchases). One
-authz bug = drained funds = dead company. Security is the difference between a
-fundable platform and a liability.
-
-## Mission
-Close every authn/authz gap, validate every input, set hardening headers, and ensure
-money-moving paths are airtight. Run a real security review and fix what it finds.
-
-## Map
-- Auth/ownership model: `agent_identities.user_id` is immutable, one agent = one
- owner (see `prompts/agent-wallets/00-README-orchestration.md`). Only the owner can
- withdraw / set limits / rebrand.
-- Money paths: `api/x402-*`, `api/payments/*`, `api/pump/*`, withdrawal endpoints,
- `api/_lib/agent-wallet.js`, `api/_lib/skill-license-onchain.js`.
-- `vercel.json` controls routes + can set headers.
-
-## Do this
-1. Run the repo's security-review skill/process (`/security-review`) over the current
- state and triage findings by severity.
-2. **AuthZ on every mutating endpoint:** confirm the caller owns the resource before
- any write/withdraw/rebrand/spend. Audit `api/` for endpoints that trust a
- client-supplied `user_id`/`agent_id` without verifying the session. Fix every one.
-3. **Input validation at boundaries:** validate/normalize every request body, query
- param, and path param (lengths, types, ranges, address formats, amount bounds).
- Reject early with 400. Prevent injection (SQL/NoSQL/command), path traversal, SSRF
- (especially anywhere a URL is fetched on the user's behalf).
-4. **Money-path invariants:** amount sanity bounds, idempotency keys on
- transfers/mints to prevent double-spend, replay protection on signed requests,
- server-side recomputation of prices (never trust client-sent amounts).
-5. **Security headers** via `vercel.json` or middleware: `Content-Security-Policy`
- (tightened, not `unsafe-inline` everywhere), `Strict-Transport-Security`,
- `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, frame controls
- for embeds (allow only intended embed routes).
-6. **CORS:** lock API CORS to known origins; don't reflect arbitrary `Origin`.
-7. **Dependency audit:** `npm audit` (and `npm audit --workspaces`); fix high/critical
- by upgrade. Document any accepted advisory with rationale.
-8. **Secrets in transit/logs:** confirm prompt `05` outcomes hold; no PII/secrets in
- logs.
-9. Add regression tests for each fixed authz/validation hole.
-
-## Must-not
-- Do not trust any client-supplied identity, amount, or price.
-- Do not weaken CSP to "make something work" — fix the inline/eval cause.
-- Do not retry or replay money-moving requests without idempotency.
-
-## Acceptance
-- [ ] `/security-review` findings triaged and resolved (or risk-accepted with written rationale).
-- [ ] Every mutating endpoint verifies ownership/session server-side.
-- [ ] All inputs validated at the boundary; injection/traversal/SSRF closed.
-- [ ] Money paths have amount bounds + idempotency + server-side price recomputation.
-- [ ] Hardening headers + locked CORS in place; CSP tightened.
-- [ ] `npm audit` clean of high/critical (or documented).
-- [ ] Regression tests cover the fixed holes; `npm test` green.
diff --git a/prompts/road-to-1b/08-rate-limiting-and-abuse.md b/prompts/road-to-1b/08-rate-limiting-and-abuse.md
deleted file mode 100644
index 7cf1d4d2f..000000000
--- a/prompts/road-to-1b/08-rate-limiting-and-abuse.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# 08 — Rate limiting & abuse prevention
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Correctness & hardening
-**Owns:** `api/`, `workers/`, the shared limiter in `api/_lib/rate-limit.js` + `api/_lib/http.js`, Upstash Redis usage (`api/_lib/redis.js`).
-**Depends on:** `07` (security hardening) · **Parallel-safe with:** `09`
-
-## Why this matters for $1B
-Every expensive call — text-to-3D, image gen, LLM proxy, Solana RPC, mint/launch —
-spends real GPU, model, and chain budget. Unmetered, one abuser (or a distributed
-flood) drains the spend cap, trips fail-closed lanes, and takes the platform down for
-everyone. Abuse = downtime = lost users and burned margin. Metering is what lets a free
-tier exist without bankrupting the business.
-
-## Mission
-Put per-identity and per-IP rate limits, per-tier quotas, and abuse defenses on every
-expensive or money-moving endpoint, standardized on the existing shared limiter.
-
-## Map
-- Shared limiter: `api/_lib/rate-limit.js` (Upstash `Ratelimit`, sliding-window,
- in-memory dev fallback, `FORGE_PAID_GLOBAL_HOURLY` platform ceiling, cost limiters
- that fail closed when Redis is unconfigured). Helpers `rateLimited` +
- `setRateLimitHeaders` (with `Retry-After`, RFC 9110 §10.2.3) live in `api/_lib/http.js`.
-- Health signal: `api/_lib/forge-health.js` already probes the rate-limiter store
- ("paid generation lanes fail closed" when it is down) — keep this accurate.
-- Cost-bearing endpoints: text-to-3D `api/forge.js` (already lane-aware via `rl` /
- `rateLimited`), image gen `api/_mcp3d/text-to-image.js` + `api/_mcp3d/vertex-imagen.js`,
- LLM proxy `api/llm/anthropic.js`, RPC `api/solana-rpc.js`, mint/launch under
- `api/pump/`, the x402 family via `api/_lib/x402-paid-endpoint.js` and `api/x402/`.
-
-## Do this
-1. Inventory every cost-bearing / money-moving handler in `api/` and `workers/`. For
- each, record who pays (GPU, model tokens, RPC credits, chain fees) and whether it
- already routes through `rateLimited` from `api/_lib/http.js`.
-2. Standardize on `api/_lib/rate-limit.js` — do not hand-roll new limiters. Add
- sliding-window limits keyed by authenticated identity first, then by IP. Never key
- off client-supplied identity (verify the session as `07` requires).
-3. Add per-tier quotas: a free tier and a higher-ceiling $THREE-holder tier. Keep the
- platform-wide circuit breaker (`FORGE_PAID_GLOBAL_HOURLY` and the x402 facilitator
- backstop) intact and env-tunable.
-4. Protect upload endpoints (size, MIME type, count) before any expensive processing.
-5. Add lightweight bot/abuse heuristics (burst detection, repeated-junk-payload
- rejection) and surface a clear `429` with `Retry-After` via `rateLimited`.
-6. Add tests under `tests/` simulating burst traffic against the limited endpoints,
- asserting `429` + `Retry-After` once the window is exhausted.
-
-## Must-not
-- Do not trust client-supplied identity for keying limits.
-- Do not silently drop requests — always return `429` with a reason and `Retry-After`.
-- Do not weaken the fail-closed behavior of the cost/money limiters when Redis is down.
-
-## Acceptance
-- [ ] Every expensive endpoint has a documented limit + per-tier quota, all routed
- through `api/_lib/rate-limit.js`.
-- [ ] `429` responses are designed (reason + `Retry-After`); upload guards in place.
-- [ ] Burst tests pass; `npm test` green; `npm run lint` + `npm run typecheck` clean.
-- [ ] Changelog `improvement`/`security` entry if user-visible; `npm test` green.
diff --git a/prompts/road-to-1b/09-test-suite-green-and-ci-gate.md b/prompts/road-to-1b/09-test-suite-green-and-ci-gate.md
deleted file mode 100644
index 3c70d5ac2..000000000
--- a/prompts/road-to-1b/09-test-suite-green-and-ci-gate.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# 09 — Test suite green & CI gate
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 1 — Correctness & hardening
-**Owns:** `tests/`, `vitest.config.js`, `playwright.config.js`, `.github/workflows/ci.yml`, the `test*`/`lint`/`typecheck` scripts in `package.json`.
-**Depends on:** `02` (no stubs) · **Parallel-safe with:** `08`
-
-## Why this matters for $1B
-Green, meaningful tests plus a blocking CI gate are table stakes for fundability and
-for shipping safely at scale. Real money rides on `api/` and the chain paths — a red
-suite or a CI that waves failures through is how a money bug reaches production. The
-repo already has ~456 test files and a `.github/workflows/ci.yml` merge gate; this
-prompt makes it trustworthy.
-
-## Mission
-Get the full suite green, cover the highest-risk money/3D/auth paths, and make CI block
-merges on red.
-
-## Map
-- Suites/scripts (`package.json`): `npm test` = `vitest run && playwright test`;
- `test:core` (single-worker vitest), `test:gate` (`scripts/test-gate.mjs`), `test:e2e`
- (`playwright test`), `test:pages` (`scripts/test-pages.mjs`).
-- Config: `vitest.config.js`, `playwright.config.js` (`testDir: 'tests/e2e'`).
-- Quality gates: `npm run lint` (`eslint .`), `npm run typecheck` (`tsc -p jsconfig.json`).
-- CI: `.github/workflows/ci.yml` jobs — `lint`, `test` (`vitest run`), `guards`
- (`check-api-not-bundled.mjs`, `check:images`, `build:pages`), `typecheck` (currently
- `continue-on-error: true`, advisory).
-- Risk-path example: `tests/glb-canonicalize.test.js` is the per-skeleton convention
- test required by `/CLAUDE.md`.
-
-## Do this
-1. Run `npm test`, `npm run test:e2e`, `npm run test:pages`, and `npm run test:gate`.
- Fix every failure, or quarantine it behind a tracked issue — no permanent skips.
-2. Add tests for the highest-risk paths surfaced by prompt `01`: wallet/withdraw authz,
- x402 payment, the forge generation fallback chain (`api/forge.js` lanes), and
- `glb-canonicalize` per the `tests/glb-canonicalize.test.js` convention.
-3. Make `npm run lint` and `npm run typecheck` pass for touched code; clear typecheck
- errors so `.github/workflows/ci.yml` can flip `typecheck` from advisory to blocking.
-4. Verify the CI workflow runs lint + tests + guards and blocks on failure on PRs and
- pushes to `main`; tighten the typecheck job to a hard gate once it is clean.
-5. Identify flaky tests (re-run suspect specs), de-flake them at the source, and record
- any that remain quarantined with their tracking issue.
-
-## Must-not
-- Do not `.skip`/`.only` a test to go green without a tracked issue.
-- Do not weaken assertions, shrink fixtures, or delete cases to force a pass.
-- Do not mock real APIs to dodge a failure — fix the code or the test setup.
-
-## Acceptance
-- [ ] `npm test`, `npm run test:e2e`, `npm run test:pages`, `npm run lint`, and
- `npm run typecheck` all green locally and in `.github/workflows/ci.yml`.
-- [ ] CI blocks merges on red (typecheck moved off `continue-on-error` once clean).
-- [ ] New tests cover the top risk paths (wallet/withdraw, x402, forge fallback, glb).
-- [ ] Flaky tests de-flaked or quarantined with a tracked issue; `npm test` green.
-- [ ] Changelog entry only if a user-visible behavior changed (usually internal).
diff --git a/prompts/road-to-1b/10-resilience-external-calls.md b/prompts/road-to-1b/10-resilience-external-calls.md
deleted file mode 100644
index 5a009f47c..000000000
--- a/prompts/road-to-1b/10-resilience-external-calls.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# 10 — Resilience on every external call
-
-**Phase 2. [parallel-safe]** with 07–09, 11.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform. It depends on external
-services that WILL fail intermittently: Solana RPC, pump.fun feed, OpenAI/
-Anthropic via worker proxies, x402 facilitators, R2/storage, Telegram. Read
-[CLAUDE.md](../../CLAUDE.md). Your memory notes a `cockatiel` resilience helper
-and a preference for vetted OSS over hand-rolling. The only coin is **$THREE**.
-
-## Objective
-
-Every outbound network call has a timeout, bounded retries with backoff+jitter
-for transient failures, and a circuit breaker or graceful degradation so one
-slow dependency can't cascade into an outage. Solana RPC and pump.fun especially
-get multi-endpoint failover.
-
-## Why it matters
-
-Public RPCs rate-limit and flake constantly; pump.fun and LLM providers have
-incidents. Without timeouts and breakers, a single hung upstream call exhausts
-function concurrency and takes the whole platform down. Resilience is what lets a
-$1B platform claim real uptime on top of unreliable dependencies.
-
-## Instructions
-
-1. **Find every outbound call:**
- ```bash
- grep -rIn "fetch(\|axios\|new Connection(\|getAccountInfo\|sendTransaction\|https.request\|undici" --include=*.js src/ api/ workers/ | grep -v node_modules
- ```
- Classify by dependency (RPC, pump, LLM, x402, storage, misc).
-2. **Adopt one shared resilience helper** (reuse the existing `cockatiel`-based
- helper if present — check the codebase and the
- [prefer-vetted-oss-additive] memory; otherwise wrap `cockatiel`). Expose:
- `retry(policy)`, `timeout(ms)`, `circuitBreaker(opts)`, composed into a
- `resilientFetch()` / `withResilience(fn)`. Do not hand-roll bespoke retry
- loops per file.
-3. **Timeouts everywhere.** No `fetch` without an `AbortController` + timeout.
- Pick sane per-dependency budgets (RPC ~8s, LLM longer, feeds ~5s).
-4. **Retries only for transient errors** (network, 429, 5xx, RPC node errors) —
- never for 4xx/validation. Exponential backoff + jitter. Respect `Retry-After`.
-5. **Solana RPC failover.** There is prior art ("resilient Solana RPC" in recent
- commits) — extend it: a prioritized pool of RPC endpoints with health-aware
- rotation, so a dead/throttled node is skipped. Same idea for any multi-
- provider dependency.
-6. **Circuit breakers + degradation.** When a dependency is failing, open the
- breaker and serve a degraded-but-honest response (cached data with a
- "stale" marker, or a designed error state — coordinate with
- [18 — state design](18-state-design-sweep.md)). Never hang.
-7. **Idempotency for retried writes.** Any retried mutation/payment must carry an
- idempotency key so a retry can't double-execute (cross-check
- [08 — API hardening](08-api-hardening.md)).
-8. **Tests.** Use the existing resilience test patterns (e.g.
- `tests/api/pump-trending-resilience.test.js`) to add coverage: timeout fires,
- retry recovers on second attempt, breaker opens after N failures, failover
- picks the next endpoint.
-
-## Definition of done
-
-- [ ] Zero `fetch`/RPC call without a timeout in `src/ api/ workers/`.
-- [ ] One shared resilience helper used across all outbound calls (no per-file
- hand-rolled retry loops).
-- [ ] Retries are transient-only with backoff+jitter; 4xx never retried.
-- [ ] Solana RPC (and other multi-provider deps) have health-aware failover.
-- [ ] Circuit breakers degrade gracefully to cached/honest states, never hang.
-- [ ] Retried writes are idempotent.
-- [ ] Resilience tests added and passing (`npm test`).
-- [ ] Changelog: `improvement`/`infra` entry if users see fewer transient errors
- (e.g. "More resilient data loading during network hiccups").
diff --git a/prompts/road-to-1b/11-observability.md b/prompts/road-to-1b/11-observability.md
deleted file mode 100644
index d560e40ef..000000000
--- a/prompts/road-to-1b/11-observability.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# 11 — Observability: logging, monitoring, alerting
-
-**Phase 2. [parallel-safe]** with 07–10.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, 3D AI-agent platform on Vercel functions +
-Cloudflare workers, with PostHog and Vercel Analytics already loaded on the
-frontend and a `public/error-reporter.js`. Read [CLAUDE.md](../../CLAUDE.md). The
-only coin is **$THREE**.
-
-## Objective
-
-You can see what the platform is doing in production: structured logs with
-request/trace context, client + server error reporting into one pipeline, uptime
-and latency monitoring on every critical path, and alerting that pages a human
-before users complain. No silent failures, no blind spots on money flows.
-
-## Why it matters
-
-At a billion-dollar bar you operate the platform, not just ship it. If a payment
-endpoint starts 500ing or RPC latency spikes, you must know in minutes — from a
-metric, not a tweet. Observability is the difference between a 5-minute incident
-and a 5-hour one.
-
-## Instructions
-
-1. **Structured logging.** Replace ad-hoc `console.log` in server code
- (`api/`, `workers/`) with a structured logger (level, message, requestId,
- userId/agentId where safe, dependency, duration). Never log secrets, private
- keys, full tokens, or PII. Add a `requestId` at the edge and thread it through.
- ```bash
- grep -rIn "console.log\|console.error\|console.warn" --include=*.js api/ workers/ | grep -v node_modules | wc -l
- ```
-2. **Unified error reporting.** Wire client errors (`public/error-reporter.js`)
- and server errors into one sink (Sentry or the existing pipeline — check
- deps/env before adding a new vendor). Capture: message, stack, requestId,
- route, release/commit. De-dupe and group. Cross-check with
- [03 — error boundaries](03-harden-error-boundaries.md): every reported catch
- lands here.
-3. **Critical-path monitoring.** Define SLOs for the money/chain and core paths
- (forge generate, x402 checkout, pump launch, login, marketplace load). Add
- uptime + latency checks (synthetic monitors or a `/api/health` + external
- pinger). Record p50/p95/p99 latency and error rate per path.
-4. **Health endpoints.** Ensure a real `/api/health` (and per-worker health) that
- checks downstream deps (RPC reachable, DB reachable, KV reachable) and returns
- structured status — used by monitors and the status page
- ([26 — trust surfaces](26-trust-surfaces.md)).
-5. **Alerting.** Configure alerts on: error-rate spike, p95 latency breach, money
- -path failure, breaker-open events (from [10](10-resilience-external-calls.md)),
- and health-check failure. Route to a real channel (the existing Telegram
- integration is a candidate). Document thresholds in
- `docs/observability.md`.
-6. **Dashboards.** Stand up (or document) a dashboard view of the core metrics so
- on-call has one place to look. PostHog is already present for product
- analytics — keep product vs ops signals distinct.
-7. **Verify it fires.** Trigger a synthetic error and a synthetic latency breach;
- confirm it shows up in the sink and the alert routes.
-
-## Definition of done
-
-- [ ] Server code uses a structured logger with requestId threading; no secret/
- PII logged; raw `console.*` in `api/`/`workers/` reduced to near-zero.
-- [ ] Client + server errors flow into one reporting sink with release/commit and
- requestId; verified by a synthetic error.
-- [ ] `/api/health` (+ worker health) checks real downstream deps.
-- [ ] SLOs + uptime/latency monitoring exist for every critical path; metrics
- recorded.
-- [ ] Alerting configured and verified to fire on error-spike / latency / money-
- path / health failure, routed to a real channel.
-- [ ] `docs/observability.md` documents SLOs, alert thresholds, and the runbook
- pointer (feeds [28 — incident response](28-incident-response-oncall.md)).
-- [ ] Changelog: skip (internal) unless a user-facing status surface shipped.
diff --git a/prompts/road-to-1b/12-frontend-performance.md b/prompts/road-to-1b/12-frontend-performance.md
deleted file mode 100644
index e5b8191ba..000000000
--- a/prompts/road-to-1b/12-frontend-performance.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# 12 — Frontend performance & Core Web Vitals
-
-**Phase 3. [parallel-safe]** with 13–14.
-
-## Where you are
-
-`/workspaces/three.ws` — three.ws, vanilla-JS modules + Vite, 125 pages, 118
-public JS files, Three.js for 3D. Read [CLAUDE.md](../../CLAUDE.md) — "Performance
-by default: lazy-load heavy modules, debounce input, paginate lists, use
-`will-change`/`transform` for animations. Don't ship jank." The only coin is
-**$THREE**.
-
-## Objective
-
-Hit "good" Core Web Vitals (LCP < 2.5s, INP < 200ms, CLS < 0.1) on the top
-landing surfaces on a mid-tier mobile device and a throttled connection. Cut
-bundle weight, defer non-critical work, and remove layout jank.
-
-## Why it matters
-
-Growth and conversion are gated by speed. A platform that competes with Vercel/
-Linear/Stripe loads instantly. Every 100ms of LCP and every CLS shift costs
-sign-ups. This is directly upstream of the $1B growth math.
-
-## Instructions
-
-1. **Measure first.** Build and run Lighthouse/CWV on the top surfaces (home,
- forge, marketplace, trending, an agent profile):
- ```bash
- npm run build && npm run audit:web # existing web auditor
- npx lighthouse https://localhost:3000/ --preset=perf --form-factor=mobile --throttling-method=simulate
- ```
- Record LCP/INP/CLS/TBT and bundle sizes per route as the baseline.
-2. **Bundle analysis.** Inspect the Vite build output and chunking. Find the
- heaviest modules (Three.js, character-studio, model-viewer, web3 libs).
- ```bash
- ls -laSh dist/assets/*.js | head -20
- ```
- Code-split route-heavy and 3D-heavy code behind dynamic `import()`. The 3D
- engine must never block first paint on non-3D pages.
-3. **Lazy-load the heavy stuff.** Three.js, GLB loaders, and the avatar engine
- load on interaction/visibility, not on document load. Use
- `IntersectionObserver` for below-the-fold 3D and images
- (`loading="lazy"`, `decoding="async"`).
-4. **Kill CLS.** Reserve space for images/canvas/embeds (width/height or
- aspect-ratio). No content that shifts when fonts/data arrive. Preload the
- primary font; `font-display: swap`.
-5. **Optimize the critical path.** Inline critical CSS for above-the-fold,
- defer the rest. `preconnect`/`dns-prefetch` for RPC/API/analytics origins.
- Ensure analytics (PostHog, Vercel) load non-blocking (they already do —
- confirm they're not on the critical path).
-6. **Improve INP.** Debounce search/input handlers, break long tasks, move heavy
- compute off the main thread (Worker) where it blocks interaction. The
- `MaxListenersExceededWarning` noise in console is the MetaMask extension, not
- us — ignore it; focus on our own long tasks.
-7. **Caching headers.** Static assets immutable + far-future cache; HTML
- appropriately revalidated. Verify via `vercel.json` headers.
-8. **Re-measure** and prove the deltas.
-
-## Definition of done
-
-- [ ] Before/after CWV recorded for the top 5 surfaces (mobile, throttled); LCP <
- 2.5s, INP < 200ms, CLS < 0.1 on each, or a documented reason + plan if a
- specific surface can't yet.
-- [ ] Three.js / 3D engine code-split and lazy-loaded; non-3D pages don't ship
- it on the critical path.
-- [ ] Images/canvas/embeds reserve space; CLS verified low.
-- [ ] Heaviest chunks reduced; bundle-size deltas recorded.
-- [ ] Static-asset caching headers correct in `vercel.json`.
-- [ ] `npm run build` + `npm test` pass; no new console errors.
-- [ ] Changelog: `improvement` entry ("Faster page loads / smoother 3D").
diff --git a/prompts/road-to-1b/13-accessibility.md b/prompts/road-to-1b/13-accessibility.md
deleted file mode 100644
index 884d15b9a..000000000
--- a/prompts/road-to-1b/13-accessibility.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 13 — Accessibility (WCAG 2.2 AA)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/`, `src/` components, design tokens/CSS variables, the 3D viewer controls.
-**Depends on:** none (run after Phase 0/1) · **Parallel-safe with:** `12`, `14`, `15`, `16`, `17`
-
-## Why this matters for $1B
-`/CLAUDE.md` makes accessibility non-optional. It widens the market, is a legal
-requirement in many jurisdictions, and signals the craft a $1B platform is held to. An
-interface only mouse-and-sighted users can operate caps growth and invites risk.
-
-## Mission
-Bring every interactive surface to WCAG 2.2 AA — semantic HTML, keyboard nav, ARIA,
-contrast, focus, and reduced-motion.
-
-## Map
-- Top surfaces: `pages/home.html` (home), `pages/forge.html`, `pages/marketplace.html`,
- `pages/trending.html`, `pages/agent-detail.html`, and an editor such as Animation
- Studio (`pages/animations.html`) or Scene Studio (`pages/scene.html` / `src/scene-studio/`).
-- Shared UI + tokens: components and CSS variables under `src/`; the 3D canvas/orbit
- controls used by the viewer and editors.
-- Existing gates to lean on: `npm run audit:web` (`scripts/page-audit.mjs`) and the
- page suite `npm run test:pages` (`scripts/test-pages.mjs`).
-
-## Do this
-1. Audit the top surfaces with axe and Lighthouse accessibility; record per-surface
- scores and every serious violation as the baseline.
-2. Fix semantic structure: landmarks (`header`/`nav`/`main`/`footer`), one logical
- heading order, labelled controls, lists where appropriate.
-3. Make everything keyboard-operable, including the 3D canvas controls and every modal:
- focus trap while open, `Esc` to close, focus returned to the trigger on close, no
- keyboard traps elsewhere.
-4. Add ARIA only where native semantics cannot express the role/state — never to
- paper over a non-semantic element that should be a `button`/`a`.
-5. Verify color contrast against the design tokens (4.5:1 text, 3:1 large text/UI);
- fix token values rather than one-off overrides.
-6. Honor `prefers-reduced-motion` for the heavy transitions and 3D motion; ensure
- visible focus rings everywhere, meaningful `alt` text on informative images, and
- form errors that are announced (`aria-live` / `aria-describedby`).
-
-## Must-not
-- Do not add ARIA that lies about state (e.g. static `aria-expanded`).
-- Do not remove focus outlines without a clearly-visible replacement.
-- Do not hide content from assistive tech to "clean up" the a11y report.
-
-## Acceptance
-- [ ] axe/Lighthouse accessibility >= 95 on the top surfaces, no serious violations.
-- [ ] Full keyboard walkthrough documented (tab order, modals, 3D controls, `Esc`).
-- [ ] Contrast meets AA against design tokens; `prefers-reduced-motion` respected.
-- [ ] `npm test` green; `npm run lint` + `npm run typecheck` clean for touched code.
-- [ ] Changelog `improvement` entry (e.g. "Keyboard + screen-reader support").
diff --git a/prompts/road-to-1b/14-responsive-and-mobile.md b/prompts/road-to-1b/14-responsive-and-mobile.md
deleted file mode 100644
index 55a847a34..000000000
--- a/prompts/road-to-1b/14-responsive-and-mobile.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 14 — Responsive & mobile
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/`, `src/` CSS/layout, viewport meta, 3D canvas sizing, `solana-mobile/` touchpoints.
-**Depends on:** none · **Parallel-safe with:** `12`, `13`, `15`, `16`, `17`
-
-## Why this matters for $1B
-Most crypto and consumer traffic is mobile. A janky phone experience caps growth hard —
-the wallet connect, the launch, and the trade all happen on a 360px screen. `/CLAUDE.md`
-mandates 320 / 768 / 1440 and proper touch targets; this prompt makes that real.
-
-## Mission
-Make every surface fully usable and polished at 320px, 768px, and 1440px, with proper
-touch targets and acceptable mobile 3D performance.
-
-## Map
-- Top surfaces: `pages/home.html`, `pages/forge.html`, `pages/marketplace.html`,
- `pages/trending.html`, `pages/agent-detail.html`, `pages/agent-trade.html`,
- `pages/agent-wallet.html`, and the editors `pages/forge.html` / `pages/avatar-studio.html`
- / `pages/animations.html` (Animation Studio).
-- Layout/CSS + 3D canvas sizing live under `src/`; mobile-specific surfaces under
- `solana-mobile/` (PWA/TWA wrappers, `solana-mobile/pwa/`, `solana-mobile/twa/`).
-- Wallet / x402 flows: `pages/agent-wallet.html`, `api/x402/` (exercise on mobile).
-- Existing gate: `npm run audit:web` (`scripts/page-audit.mjs`).
-
-## Do this
-1. Walk the top surfaces at 320 / 768 / 1440 (and a real device or DevTools emulation);
- log every overflow, fixed width, cut-off modal, and broken nav/menu.
-2. Fix horizontal scroll and fixed widths (relative units, flex/grid, `max-width:100%`,
- `min-width:0` on flex children); enlarge touch targets to >= 44px.
-3. Make the 3D viewer and editors (Forge, Avatar/Animation Studio) usable on touch —
- orbit/zoom/IK via touch gestures — or degrade gracefully where touch can't drive a
- control. Size the canvas to the viewport without overflow.
-4. Handle the on-screen keyboard and safe-area insets for forms and chat
- (`env(safe-area-inset-*)`, `viewport-fit=cover`); inputs must not be obscured.
-5. Reflow data-dense lists/tables (trading, marketplace) into stacked/scrollable cards
- on narrow screens — no clipped columns.
-6. Exercise the wallet connect and x402 payment flows on mobile, including the
- `solana-mobile/` PWA/TWA path; fix any tap/redirect breakage.
-
-## Must-not
-- Do not hide core features on mobile to "fix" a layout — reflow them instead.
-- Do not ship horizontal scroll on any top surface.
-- Do not shrink touch targets below 44px to fit a dense layout.
-
-## Acceptance
-- [ ] No layout breakage or horizontal scroll at 320 / 768 / 1440 on the top surfaces.
-- [ ] Touch targets >= 44px; safe-area insets and on-screen keyboard handled.
-- [ ] 3D viewer/editors usable on touch or gracefully degraded; canvas never overflows.
-- [ ] Wallet + x402 flows verified on mobile (incl. `solana-mobile/`).
-- [ ] `npm test` green; `npm run lint` clean; changelog `improvement` entry.
diff --git a/prompts/road-to-1b/15-designed-states-and-design-system.md b/prompts/road-to-1b/15-designed-states-and-design-system.md
deleted file mode 100644
index a50752f3f..000000000
--- a/prompts/road-to-1b/15-designed-states-and-design-system.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 15 — Every state designed + design-system consistency
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/`, `src/` components, CSS design tokens/variables, shared UI primitives.
-**Depends on:** none (run after Phase 0/1). · **Parallel-safe with:** 12, 13, 14, 16, 17.
-
-## Why this matters for $1B
-CLAUDE.md: "Every state is designed — loading, empty, error, populated, overflow."
-The accumulation of small quality decisions is what separates a $1B product from an
-adequate one. Blank voids and raw spinners read as unfinished.
-
-## Mission
-Give every surface designed loading/empty/error/populated/overflow states and unify
-them under one consistent set of design tokens and primitives.
-
-## Map
-- All ~125 `pages/` surfaces and their `src/` controllers.
-- Existing design tokens / CSS variables (locate the shared stylesheet); shared
- components in `src/dashboard-next/components/` and equivalents.
-
-## Do this
-1. For each major surface (Studios, Agents, Marketplace, Trading, Launch, Worlds,
- Wallets, Docs): verify all five states exist and are intentional.
-2. Empty states must tell the user what to do next (a CTA), never just "no data."
-3. Error states must say what went wrong and how to recover (retry/contact), never a
- raw stack or silent failure — pair with prompt 06's error boundaries.
-4. Loading states use skeletons over spinners where content shape is known.
-5. Handle overflow: very long names, 0 / 1 / 1000 items, truncation with tooltips.
-6. Consolidate ad-hoc colors/spacing/typography onto the shared design tokens; extract
- repeated card/list/modal markup into shared primitives so quality is uniform.
-7. Ensure hover/active/focus microinteractions exist on every interactive element.
-
-## Must-not
-- Do not ship a blank empty state or a raw error string.
-- Do not fork new one-off color/spacing values — use the tokens.
-
-## Acceptance
-- [ ] Every major surface has all five designed states, audited and listed.
-- [ ] Shared tokens/primitives used consistently; no orphan one-off styles introduced.
-- [ ] `npm test` green; changelog `improvement` entry.
diff --git a/prompts/road-to-1b/16-seo-metadata-open-graph.md b/prompts/road-to-1b/16-seo-metadata-open-graph.md
deleted file mode 100644
index 877545750..000000000
--- a/prompts/road-to-1b/16-seo-metadata-open-graph.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 16 — SEO, metadata, Open Graph & structured data
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/` `<head>`, `scripts/inject-seo-meta.mjs`, `scripts/inject-blog-seo.mjs`, sitemap, OG image generation.
-**Depends on:** none. · **Parallel-safe with:** 12, 13, 14, 15, 17.
-
-## Why this matters for $1B
-Organic discovery and shareability are free, compounding growth. A platform that
-competes with Vercel/Linear/Stripe has perfect titles, descriptions, canonical URLs,
-rich OG cards, and structured data on every route. This is upstream of the $1B funnel.
-
-## Mission
-Give every public route correct, unique metadata, Open Graph/Twitter cards with real
-preview images, a complete sitemap, and valid structured data.
-
-## Map
-- Existing SEO pipeline: `npm run seo:meta`, `scripts/inject-seo-meta.mjs`,
- `scripts/inject-blog-seo.mjs`, `scripts/build-page-index.mjs`, `data/pages.json`.
-- Public assets: `public/` (check for `sitemap.xml`, `robots.txt`).
-
-## Do this
-1. Audit every route in `data/pages.json` for unique `<title>`, meta description,
- canonical URL, and lang; fill gaps via the inject-seo pipeline (extend it, don't
- hand-edit generated output).
-2. Add Open Graph + Twitter card tags site-wide; generate per-route OG preview images
- (dynamic where content is dynamic — agents, coins, avatars).
-3. Add JSON-LD structured data appropriate per surface (Organization, WebSite +
- SearchAction, Product/Offer for marketplace skills, BreadcrumbList, Article for blog).
-4. Ensure `sitemap.xml` covers all live routes and `robots.txt` is correct; submit-ready.
-5. Verify with a rich-results / OG validator on the top 10 routes; fix warnings.
-6. Confirm dynamic pages render meta server-side or are prerendered (no blank-shell SEO).
-
-## Must-not
-- Do not duplicate titles/descriptions across routes.
-- Do not hand-edit files the inject scripts generate — change the source/script.
-
-## Acceptance
-- [ ] Every route has unique title/description/canonical + OG/Twitter + JSON-LD.
-- [ ] Sitemap + robots complete; OG images render in a validator for top routes.
-- [ ] `npm run build` + `npm test` green; changelog `improvement` entry.
diff --git a/prompts/road-to-1b/17-cross-browser-device-qa.md b/prompts/road-to-1b/17-cross-browser-device-qa.md
deleted file mode 100644
index d1fb9c6f7..000000000
--- a/prompts/road-to-1b/17-cross-browser-device-qa.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 17 — Cross-browser & device QA
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `tests/e2e/`, `playwright.config.js`, browser-specific shims, WebGL/3D fallbacks.
-**Depends on:** 09 (CI gate). · **Parallel-safe with:** 12, 13, 14, 15, 16.
-
-## Why this matters for $1B
-A 3D platform must work on Chrome, Safari (incl. iOS), Firefox, and Edge — across
-desktop and mobile — or it silently loses whole user segments. WebGL quirks and Safari
-edge cases are where "works on my machine" demos die in front of investors.
-
-## Mission
-Verify and fix every core flow across the major browsers and devices, with graceful
-degradation where hardware/WebGL is limited.
-
-## Map
-- Playwright projects in `playwright.config.js` (`testDir: tests/e2e`).
-- 3D engine (Three.js) and GLB loading paths in `src/`; the avatar viewer
- (`avatar-sdk/`), Forge, and Studios are the highest-risk surfaces.
-
-## Do this
-1. Expand Playwright projects to cover Chromium, WebKit (Safari), and Firefox; run the
- core flows (load home, forge a model, view an agent, marketplace purchase path,
- wallet/x402 path) on each.
-2. Manually verify on real iOS Safari and Android Chrome: 3D orbit/zoom, file upload,
- clipboard paste, wallet deep-links, on-screen keyboard behavior.
-3. Detect WebGL/hardware capability and degrade gracefully (static poster or reduced
- quality) instead of a black canvas or crash; surface a clear message.
-4. Fix Safari-specific issues (date/intl, flexbox/grid gaps, `100vh`, backdrop-filter,
- audio autoplay) and any Firefox WebGL differences found.
-5. Add the cross-browser E2E run to CI (or a scheduled job) so regressions are caught.
-
-## Must-not
-- Do not assume Chromium-only behavior; do not ship a black canvas on unsupported WebGL.
-
-## Acceptance
-- [ ] Core flows pass on Chromium, WebKit, Firefox in Playwright.
-- [ ] Real iOS Safari + Android Chrome manually verified for 3D, upload, wallet.
-- [ ] Graceful WebGL/hardware degradation in place; `npm test` green; changelog `fix`/`improvement` entry.
diff --git a/prompts/road-to-1b/18-studio-suite-completeness.md b/prompts/road-to-1b/18-studio-suite-completeness.md
deleted file mode 100644
index 41593e50f..000000000
--- a/prompts/road-to-1b/18-studio-suite-completeness.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# 18 — Studio suite completeness (Forge, Avatar, Animation, Scene)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** `pages/forge.html`+`src/forge.js`+`api/forge.js`, `pages/avatar-studio.html`+`character-studio/`, the Animation Studio surface + `src/animation-retarget.js`/`src/glb-canonicalize.js`, `src/scene-studio/`.
-**Depends on:** Phase 0–1. · **Parallel-safe with:** 19–24.
-
-## Why this matters for $1B
-The creation tools are the product's beating heart — "give your AI a body." If Forge,
-Avatar Studio, Animation Studio, or Scene Studio feel half-finished, nothing downstream
-matters. These are the screenshot-and-share surfaces.
-
-## Mission
-Take every Studio to a demo-to-senior-engineers bar: real generation, every state
-designed, exports that work, and a clean path in and out.
-
-## Do this
-1. **Forge** (`src/forge.js`, `api/forge.js`): verify the full engine matrix and the
- NVIDIA → Hugging Face → Replicate fallback; designed unconfigured/busy/error states;
- real progress (no fake timers); GLB export, AR, download, and "Remix" all work.
-2. **Avatar Studio** (`character-studio/`, `pages/avatar-studio.html`): sculpt → export
- GLB end to end; selfie-to-avatar and prompt-to-avatar paths produce rigged output.
-3. **Animation Studio**: IK posing + timeline keyframing → animated GLB; confirm the
- universal retarget (`src/glb-canonicalize.js`, `src/animation-retarget.js`) drives
- any humanoid rig, with the default-rig fallback gate, never a bind-pose T-pose.
-4. **Scene Studio** (`src/scene-studio/` → `/scene`): import GLBs, edit materials/lights,
- export; verify save/load.
-5. For all four: empty/loading/error states, mobile/touch usability (links to 14), and
- that every output is saved to the user's creations and reachable later.
-
-## Must-not
-- No fake progress, no stub exports, no engine button that silently does nothing.
-- Do not narrow the animation rig support to an allowlist — fix the bone mapping instead.
-
-## Acceptance
-- [ ] Each Studio completes its core flow with real output, exercised in a browser.
-- [ ] All states designed; exports (GLB/AR/download) verified; outputs persist.
-- [ ] `npm test` (incl. `tests/glb-canonicalize.test.js`) green; changelog entry per Studio improved.
diff --git a/prompts/road-to-1b/19-agent-creation-and-studio.md b/prompts/road-to-1b/19-agent-creation-and-studio.md
deleted file mode 100644
index 05d232fb6..000000000
--- a/prompts/road-to-1b/19-agent-creation-and-studio.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 19 — Agent creation & Agent Studio
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** the agent-creation wizard + Agent Studio pages, `src/brain.js`, `api/avatars/`, `api/_mcp3d/tools/studio.js`, auto-rig path in `api/forge.js`.
-**Depends on:** Phase 0–1, 18. · **Parallel-safe with:** 20–24.
-
-## Why this matters for $1B
-"Create an agent" is the platform's core conversion event — a user turns an idea into a
-living, embodied, money-capable agent. If the wizard or Studio drops a step, the whole
-value proposition leaks. Related feature specs live in `prompts/agent-studio/`.
-
-## Mission
-Make the end-to-end "name → 3D body → brain/persona → memory → money → skills → ship"
-flow complete, real, and reachable, with the live avatar reflecting every choice.
-
-## Do this
-1. Walk the guided creation wizard step by step; confirm each step persists and the
- resulting agent is registered and viewable (no orphaned drafts).
-2. **Body:** auto-rig on create (the rerig path in `api/forge.js`) produces a rigged,
- animated avatar; failures fall back to the default rig, never a T-pose.
-3. **Brain/persona:** `src/brain.js` persona + multi-LLM wiring is real (via worker
- proxies), with designed states when a provider is degraded (see prompt 10).
-4. **Memory:** persistent memory reads/writes work and surface in the UI.
-5. **Money:** the agent's wallet is created and linked (hand off detail to prompt 24).
-6. **Skills:** attaching skills from the marketplace works (hand off to prompt 20).
-7. Every state designed; the live 3D avatar updates as the user authors; mobile usable.
-
-## Must-not
-- No stubbed wizard steps, no "coming soon" tab inside the core flow.
-- Do not fabricate memory/brain responses — wire real backends.
-
-## Acceptance
-- [ ] A new user creates, ships, and reopens a fully-embodied agent end to end.
-- [ ] Body/brain/memory/money/skills steps all persist and reflect in the avatar.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/20-marketplace-skills-purchase.md b/prompts/road-to-1b/20-marketplace-skills-purchase.md
deleted file mode 100644
index 5ddb7c5dd..000000000
--- a/prompts/road-to-1b/20-marketplace-skills-purchase.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 20 — Marketplace, skills & purchase flow
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** `marketplace/`, `pages/marketplace.html`, skill purchase/license paths, `api/_lib/skill-license-onchain.js`, `contracts/skill-license/`, "My Collection".
-**Depends on:** Phase 0–1. · **Parallel-safe with:** 18, 19, 21–24.
-
-## Why this matters for $1B
-The marketplace is where value changes hands — buy, sell, remix agents and skills. A
-trustworthy, complete purchase flow with real on-chain licensing is a direct revenue
-engine and a core fundability story. Related specs: `prompts/monetization/`.
-
-## Mission
-Make discovery, purchase, ownership, and remixing of agents and skills fully real,
-linked, and trustworthy — including the on-chain skill-license path.
-
-## Do this
-1. **Discovery:** marketplace listing with real data, sorting/filtering, designed
- empty/loading/error states; every card links to a real agent/skill profile.
-2. **Purchase:** the skill purchase flow completes with real payment and grants access;
- verify the on-chain license (`api/_lib/skill-license-onchain.js`, the Anchor program
- in `contracts/skill-license/` minting a 1/1 SPL NFT + `SkillLicense` PDA).
-3. **Ownership:** "My Collection" reflects purchases; access checks are enforced
- server-side (ties to prompt 07).
-4. **Remix/sell:** remixing an agent and listing one for sale work end to end with
- correct attribution/royalties where applicable.
-5. Cross-link: marketplace ↔ agent profiles ↔ launch history so the platform feels
- wired together, not siloed.
-6. Edge cases: 0 listings, sold-out, payment failure mid-flow, duplicate purchase.
-
-## Must-not
-- No fake "buy" buttons; no client-trusted access grants; no orphan listings.
-
-## Acceptance
-- [ ] Buy → license → access → appears in My Collection verified with real payment.
-- [ ] On-chain license mints and gates access; remix/sell flows work; states designed.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/21-trading-intelligence-suite.md b/prompts/road-to-1b/21-trading-intelligence-suite.md
deleted file mode 100644
index 16b8bf037..000000000
--- a/prompts/road-to-1b/21-trading-intelligence-suite.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 21 — Trading & intelligence suite
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** Oracle (`workers/oracle/`, `api/oracle/`), Coin Radar, Smart Money Radar, Trader Leaderboard, Sniper Arena (`workers/agent-sniper/`), Strategy Lab, Watchlist, Live Trade Feed, Agent Activity; `api/pump/`.
-**Depends on:** Phase 0–1, 10 (external resilience). · **Parallel-safe with:** 18–20, 22–24.
-
-## Why this matters for $1B
-The intelligence suite is the platform's daily-active-use magnet — provable trader
-track records, conviction scoring, live feeds. Accuracy and uptime here build the
-reputation a $1B platform runs on. Errors must never invent data.
-
-## Mission
-Make every trading/intelligence surface accurate, live, resilient, and honest about
-its data — with designed states when upstreams degrade.
-
-## Do this
-1. **Oracle** (`workers/oracle/`, `api/oracle/`): one fused conviction score per launch
- is computed from real signals; the worker is reliable and its output is timestamped
- and explainable. Verify "Arm your agent" simulate-then-go-live path is real.
-2. **Live feeds** (Live Trade Feed, Coin Radar, Live Stream, Agent Activity): real
- pump.fun data, reconnect/backoff on socket drop, no duplicated or stale rows.
-3. **Leaderboards & track records** (Trader Leaderboard, Claim Your Wallet): rankings
- are provable and reproducible; a claimed wallet shows a verifiable record.
-4. **Classification** (Coin Intelligence, bundle-vs-organic, scoring): document the
- method; never present a guess as a fact.
-5. **Strategy Lab / Watchlist:** backtests run on real history; watchlist market caps
- and graduation status are live.
-6. All surfaces: designed loading/empty/error states; rate-aware (prompt 08); resilient
- to RPC/feed failure (prompt 10) — degrade with a clear notice, never a blank or a lie.
-
-## Must-not
-- No fabricated scores, ranks, PnL, or hold times; no silent stale data.
-- Do not reference any coin other than $THREE in copy/fixtures (prompt 04).
-
-## Acceptance
-- [ ] Oracle, feeds, leaderboards, classification, and backtests run on real data, live.
-- [ ] Degraded-upstream states are designed and honest; reconnect logic verified.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/22-launch-suite.md b/prompts/road-to-1b/22-launch-suite.md
deleted file mode 100644
index cd0823e02..000000000
--- a/prompts/road-to-1b/22-launch-suite.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# 22 — Launch suite
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** Launch a Coin (pump.fun launcher), Launchpad Studio, Coin Intelligence, Claim Your Wallet; `api/pump/[action].js` (`launch-prep`, `launch-agent`, `launches`), `pump_agent_mints`.
-**Depends on:** Phase 0–1, 07 (security), 24 (wallets). · **Parallel-safe with:** 18–21, 23.
-
-## Why this matters for $1B
-Launching is a money-moving, irreversible action. It must be airtight, transparent, and
-honest. This is also where the two CLAUDE.md $THREE exceptions live (the generic
-launcher + platform launch directories) — they must be preserved exactly and not turned
-into endorsements of any non-$THREE coin.
-
-## Mission
-Make the full launch lifecycle — prep, launch, track, claim — real, safe, and clearly
-presented, with correct handling of the runtime-data coin exceptions.
-
-## Do this
-1. **Launch a Coin:** the pump.fun launcher accepts a user-supplied mint/params, with
- input validation, amount/price sanity bounds, idempotency, and a confirmation step
- (ties to prompt 07). Real on-chain result, designed error/success states.
-2. **Launchpad Studio:** building a white-label hosted launchpad page works end to end
- and the published page is real and reachable.
-3. **Launches feed / history** (`/api/pump/launches` over `pump_agent_mints`,
- agent-profile launch history): renders user-launched coins from platform records
- only — verify this exception stays runtime-data-only, never a hardcoded mint.
-4. **Coin Intelligence:** classification + learning score presented honestly (ties 21).
-5. **Claim Your Wallet:** verified pump.fun track record publishes as a Trader Card.
-6. Confirm no non-$THREE coin is promoted/recommended anywhere in copy (prompt 04).
-
-## Must-not
-- No launch without validation, bounds, idempotency, and explicit confirmation.
-- Do not hardcode or market any specific non-$THREE mint; keep the two exceptions intact.
-
-## Acceptance
-- [ ] Launch prep → launch → appears in feed/history verified with real on-chain action.
-- [ ] Launchpad pages publish; Claim → Trader Card works; states designed.
-- [ ] Money-path invariants (bounds/idempotency/confirmation) present; `npm test` green; changelog entry.
diff --git a/prompts/road-to-1b/23-worlds-coinclash-multiplayer.md b/prompts/road-to-1b/23-worlds-coinclash-multiplayer.md
deleted file mode 100644
index 026b94736..000000000
--- a/prompts/road-to-1b/23-worlds-coinclash-multiplayer.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 23 — Worlds, Coin Clash & multiplayer
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** Worlds (every coin a 3D world), Coin Clash (token-gated warfare), `multiplayer/`, presence/realtime layers.
-**Depends on:** Phase 0–1, 14 (mobile), 24 (token gating). · **Parallel-safe with:** 18–22.
-
-## Why this matters for $1B
-Worlds and Coin Clash are the retention and virality engines — social, live, "drop in
-and hang out." Multiplayer that desyncs, lags, or gates incorrectly kills the magic.
-Done right, these are the daily-return habit a $1B platform needs.
-
-## Mission
-Make the realtime social surfaces stable, synchronized, correctly token-gated, and
-performant on mobile.
-
-## Do this
-1. **Worlds:** each coin renders as a real, navigable 3D world; entering/leaving is
- smooth; presence (who's here) is accurate. Verify the `multiplayer/` server
- (Colyseus) handles join/leave, reconnect, and state sync without drift.
-2. **Coin Clash:** token-gated enlistment is enforced server-side (hold a coin → enlist
- → battle); the live battle state is synchronized across clients with no desync.
-3. **Realtime resilience:** reconnect with backoff on disconnect; handle 0 players, many
- players, and a player dropping mid-action; cap room sizes.
-4. **Performance:** 3D worlds run acceptably on mid-tier mobile (ties prompt 12/14);
- degrade gracefully on weak hardware.
-5. Designed states for empty worlds, loading, connection-lost, and full rooms.
-6. Anti-abuse on realtime endpoints (ties prompt 08): no message floods, no spoofed
- gating.
-
-## Must-not
-- No client-trusted token gating; no unbounded rooms; no silent desync.
-
-## Acceptance
-- [ ] Join/battle/leave synchronized across clients; reconnect verified; gating server-enforced.
-- [ ] Mobile performance acceptable; all realtime states designed.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/24-wallets-and-payments.md b/prompts/road-to-1b/24-wallets-and-payments.md
deleted file mode 100644
index 16d244937..000000000
--- a/prompts/road-to-1b/24-wallets-and-payments.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 24 — Wallets & payments (x402, agent wallets, USDC, pay-by-name)
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 4 — Surface completeness
-**Owns:** `api/_lib/agent-wallet.js`, `api/x402/` (incl. `api/x402/pay-by-name.js`), `agent-payments-sdk/`, SNS pay-by-name, the send/fund/trade flows.
-**Depends on:** Phase 0–1, 07 (security), 08 (limits). · **Parallel-safe with:** 18–23.
-
-## Why this matters for $1B
-This is the money layer — agent wallets, x402 paid calls, USDC transfers, pay-by-name.
-It custodies funds and moves value. One authz or rounding bug is an existential event.
-It is also the differentiator: agents that can earn and spend autonomously.
-
-## Mission
-Make every wallet and payment path correct, owner-authorized, idempotent, and clearly
-presented — across x402, USDC sends, funding, trading, and pay-by-name.
-
-## Do this
-1. **Ownership:** confirm the one-agent-one-owner model (immutable `user_id`); only the
- owner can withdraw, set limits, or rebrand. Audit every wallet-mutating endpoint
- server-side (ties prompt 07).
-2. **x402:** paid-endpoint flow (`api/x402/`, `api/_lib/x402-paid-endpoint.js`) returns
- correct 402 challenges and settles real USDC; verify discovery/indexing still works
- (CDP Bazaar / x402scan). Pay-by-name (`api/x402/pay-by-name.js`, `*.threews.sol`)
- resolves and pays the right address.
-3. **Transfers/funding/trading:** the send-usdc, fund, and trade flows complete with
- real balances; amount bounds + idempotency keys prevent double-spend; prices are
- recomputed server-side.
-4. **SDK:** `agent-payments-sdk/` builds and its public API matches the live endpoints
- (ties prompt 25).
-5. **UX:** designed states for insufficient balance, network failure mid-transfer,
- pending/confirmed; clear receipts; never a silent money failure.
-
-## Must-not
-- No client-trusted identity, amount, or price on any money path.
-- No transfer/mint without idempotency; no leaking keys to logs (prompt 05).
-
-## Acceptance
-- [ ] Owner-only mutations enforced; x402 + pay-by-name + send/fund/trade verified with real funds (or testnet where appropriate).
-- [ ] Idempotency + server-side price recomputation + amount bounds in place; states designed.
-- [ ] `npm test` green; changelog `feature`/`security` entry.
diff --git a/prompts/road-to-1b/25-sdk-release-readiness.md b/prompts/road-to-1b/25-sdk-release-readiness.md
deleted file mode 100644
index 93dbcf3b9..000000000
--- a/prompts/road-to-1b/25-sdk-release-readiness.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# 25 — SDK release-readiness
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 5 — Developer platform
-**Owns:** `avatar-sdk/`, `walk-sdk/`, `page-agent-sdk/`, `agent-payments-sdk/`, `solana-agent-sdk/`, `agent-protocol-sdk/`, `tour-sdk/`, `agent-ui-sdk/`, `packages/*`.
-**Depends on:** the surfaces each SDK wraps (18–24). · **Parallel-safe with:** 26–28.
-
-## Why this matters for $1B
-Developers building on three.ws is how a product becomes a platform — and platforms get
-the $1B multiple. Each `@three-ws/*` package must install clean, be documented, have
-runnable examples, and match the live API.
-
-## Mission
-Make every published SDK release-ready: versioned, documented, exemplified, typed, and
-verified to work against the real backend.
-
-## Map
-- Workspaces + their published names in `STRUCTURE.md` / `package.json`.
-- Publish tooling: `npm run publish:packages` (+ `:dry`), `publish:lib`, `release:lib`,
- the build-cache in `scripts/build-cache.mjs`, per-package `PUBLISHING.md`.
-
-## Do this
-1. For each SDK: `README` with install + quickstart + API reference; a runnable example
- (under `examples/` where applicable); correct `package.json` (exports, types, files,
- semver, repository, license).
-2. Verify each builds in isolation and a fresh `npm install` of the published artifact
- works (use `publish:packages:dry`); no reliance on the monorepo at runtime for
- `packages/*` (per STRUCTURE.md they must be dependency-free for consumers).
-3. Confirm the public API matches live endpoints (esp. `agent-payments-sdk/` vs
- prompt 24's payment paths; `avatar-sdk/` `<agent-3d>` web component vs the viewer).
-4. Ship TypeScript types or JSDoc; ensure `npm run typecheck` passes.
-5. Add a smoke test per SDK that exercises its primary path against a real/staging API.
-6. Document the version + changelog for each; align with `data/changelog.json` `sdk` tag.
-
-## Must-not
-- Do not publish a package that imports app internals or has a broken `exports` map.
-- Do not ship an example that uses mock data.
-
-## Acceptance
-- [ ] Each SDK: README + example + correct package.json + types; dry-run publish clean.
-- [ ] Public APIs verified against live endpoints; per-SDK smoke test passes.
-- [ ] `npm test` + `typecheck` green; changelog `sdk` entry per release.
diff --git a/prompts/road-to-1b/26-mcp-and-interop.md b/prompts/road-to-1b/26-mcp-and-interop.md
deleted file mode 100644
index 86f0e47d4..000000000
--- a/prompts/road-to-1b/26-mcp-and-interop.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 26 — MCP servers & agent interoperability
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 5 — Developer platform
-**Owns:** `mcp-server/`, `mcp-bridge/`, `packages/*-mcp`, `api/_mcp3d/` (`/api/mcp-3d`), `api/_mcp/`.
-**Depends on:** the tools each server exposes. · **Parallel-safe with:** 25, 27, 28.
-
-## Why this matters for $1B
-MCP is how other agents (and Claude) drive three.ws programmatically — the 3D pipeline,
-pump.fun launches, $THREE tools, payments. Reliable MCP surfaces make three.ws part of
-every agent's toolbelt, a powerful distribution and moat.
-
-## Mission
-Make every MCP server correct, discoverable, authenticated, and verified end to end.
-
-## Map
-- Servers: `mcp-server/`, `packages/pumpfun-mcp`, `packages/three-token-mcp`,
- `packages/threews-avatar-mcp`, `packages/avatar-agent-mcp`, `packages/ibm-watsonx-mcp`,
- `packages/ibm-x402-mcp`; the 3D pipeline over MCP at `api/_mcp3d/` (`/api/mcp-3d`).
-- Tooling: `npm run audit:mcp`, `smoke:mcp`, `test:mcp`, `publish:mcp` (+ `:dry`).
-
-## Do this
-1. Run `audit:mcp`, `smoke:mcp`, `test:mcp`; fix every failure and manifest mismatch.
-2. For each server: validate the tool manifest (names, schemas, descriptions), real
- handlers (no stubs), and auth where the tool moves money or mutates state.
-3. Verify the 3D MCP pipeline (`/api/mcp-3d`) exposes the same generation capability as
- Forge, with rate limits (prompt 08) and the configured-engine checks.
-4. Ensure remotes are reachable and documented; `publish:mcp:dry` clean for publishable
- servers.
-5. Add/confirm a smoke test that calls each server's primary tool against a real backend.
-6. Document connection instructions per server (for Claude Code / other MCP clients).
-
-## Must-not
-- No unauthenticated money/state-mutating MCP tools; no stub tool handlers.
-- Do not expose a tool whose manifest schema doesn't match its handler.
-
-## Acceptance
-- [ ] `audit:mcp` + `smoke:mcp` + `test:mcp` green; manifests valid.
-- [ ] Each server's primary tool verified against a real backend; remotes documented.
-- [ ] `publish:mcp:dry` clean; `npm test` green; changelog `sdk`/`infra` entry.
diff --git a/prompts/road-to-1b/27-docs-tutorials-api-reference.md b/prompts/road-to-1b/27-docs-tutorials-api-reference.md
deleted file mode 100644
index f49367e1f..000000000
--- a/prompts/road-to-1b/27-docs-tutorials-api-reference.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 27 — Docs, tutorials & API reference
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 5 — Developer platform
-**Owns:** `docs/`, the Docs page, Tutorials, `blog/`, `content/`, API reference, SDK READMEs.
-**Depends on:** 25, 26. · **Parallel-safe with:** 28.
-
-## Why this matters for $1B
-Docs are the silent salesperson. Developers and power users judge platform maturity by
-documentation quality. Complete, accurate, runnable docs convert evaluators into
-builders — and builders into the ecosystem that justifies the valuation.
-
-## Mission
-Make docs, tutorials, and the API reference complete, accurate, runnable, and matched to
-the shipped product — with no dead or stale pages.
-
-## Map
-- `docs/`, the Docs page (SDKs + API reference), Tutorials (step-by-step guides),
- `blog/`, `content/`; SEO injectors `scripts/inject-blog-seo.mjs`, `build:news`.
-
-## Do this
-1. Inventory every doc/tutorial/blog page; flag stale, broken, or stub content and fix
- it (ties prompt 03 for dead links).
-2. Ensure the API reference covers the real endpoints with request/response examples
- that actually work; regenerate from source where a generator exists.
-3. Every SDK has a quickstart that a developer can copy-paste and run (matches prompt 25).
-4. Tutorials cover the core journeys: create an agent, forge a model, launch a coin,
- monetize a service (x402), embed an avatar — each end to end with real steps.
-5. Add a "getting started in 5 minutes" path; verify every code sample runs.
-6. Wire docs into search and the All-pages directory; fix code-block copy buttons.
-
-## Must-not
-- No "TODO: document this"; no sample that uses fake endpoints or mock keys.
-- Do not let docs describe features that don't exist (or omit ones that do).
-
-## Acceptance
-- [ ] Every doc/tutorial accurate and runnable; API reference matches live endpoints.
-- [ ] Core-journey tutorials verified end to end; no dead doc links.
-- [ ] `npm run build` + `npm test` green; changelog `docs` entry.
diff --git a/prompts/road-to-1b/28-onboarding-and-activation.md b/prompts/road-to-1b/28-onboarding-and-activation.md
deleted file mode 100644
index 54c4570d3..000000000
--- a/prompts/road-to-1b/28-onboarding-and-activation.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 28 — Onboarding, guided tour & activation funnel
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 5 — Developer platform
-**Owns:** the guided tour (3D guide), `tour-sdk/`, first-run experience, feature-tour, activation tracking.
-**Depends on:** Phase 4 surfaces. · **Parallel-safe with:** 25–27.
-
-## Why this matters for $1B
-Activation — a new user reaching their first "wow" (a forged model, a shipped agent) —
-is the single biggest lever on growth. A guided, frictionless first run turns visitors
-into users. The recent feature-tour free-roam work is a foundation to finish, not restart.
-
-## Mission
-Make first-run onboarding deliver a real "aha" within minutes, with the 3D guide walking
-users through the platform and activation measured.
-
-## Map
-- The guided tour ("a 3D guide walks you through every feature, live"), `tour-sdk/`,
- the feature-tour free-roam + narrator work (recent commits), first-run entry points.
-
-## Do this
-1. Define the activation moment per persona (creator → forged model / shipped agent;
- trader → armed agent / watchlist; developer → first SDK call) and instrument it
- (hand metrics to prompt 30).
-2. Build/finish a first-run flow that routes a new user to their activation moment with
- minimal steps; the 3D guide narrates and can free-roam without breaking.
-3. Empty/zero-state across the app should teach and CTA toward activation (ties 15).
-4. Make the tour resilient: skippable, resumable, keyboard-accessible (ties 13), and
- correct on mobile (ties 14); never traps or blocks the user.
-5. Add contextual nudges (tooltips, next-step hints) that don't nag; respect dismissal.
-6. Verify the whole first-run in a real browser as a brand-new user.
-
-## Must-not
-- No fake demo data in onboarding; no tour step that points at a broken/dead route.
-- Do not block the UI behind an un-skippable tour.
-
-## Acceptance
-- [ ] New user reaches a real activation moment in minutes, verified in-browser.
-- [ ] Tour is skippable/resumable/accessible/mobile-correct; activation event instrumented.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/29-conversion-and-landing.md b/prompts/road-to-1b/29-conversion-and-landing.md
deleted file mode 100644
index dfaa9c34e..000000000
--- a/prompts/road-to-1b/29-conversion-and-landing.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# 29 — Conversion funnel & landing optimization
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** the home/landing page, hero, value proposition, primary CTAs, social proof, pricing entry points.
-**Depends on:** 12 (perf), 16 (SEO), 28 (onboarding). · **Parallel-safe with:** 30, 31.
-
-## Why this matters for $1B
-The landing page is where the $1B math starts: every point of conversion compounds
-through the funnel. A first-time visitor must understand "give your AI a body" in
-seconds and have an obvious, fast path to their first action.
-
-## Mission
-Turn the landing and top-of-funnel into a high-converting, fast, credible first
-impression with a single obvious primary action.
-
-## Do this
-1. Sharpen the hero: one-sentence value prop, a live 3D proof element, and one primary
- CTA (to the activation moment from prompt 28) above the fold.
-2. Add credible social proof (real metrics, real press from the footer — Business
- Insider, IBM, Yahoo, etc., real agent/coin counts) — never fabricated numbers.
-3. Make secondary paths (explore, docs, launch) discoverable without diluting the
- primary CTA.
-4. Ensure the landing is the fastest page on the site (LCP target from prompt 12) and
- flawless on mobile (prompt 14).
-5. Reduce friction to first action: no premature sign-up wall; let users try, then
- prompt to save (ties funding/upsell logic).
-6. Instrument the funnel (visit → CTA click → activation) with prompt 30; set up a clean
- A/B harness for hero variants if one exists, else document the plan.
-
-## Must-not
-- No fabricated stats or fake logos; no slow hero; no buried primary CTA.
-
-## Acceptance
-- [ ] Hero communicates value in seconds with one primary CTA to activation; real proof only.
-- [ ] Landing meets perf + mobile targets; funnel instrumented end to end.
-- [ ] `npm test` green; changelog `improvement` entry.
diff --git a/prompts/road-to-1b/30-analytics-and-growth-instrumentation.md b/prompts/road-to-1b/30-analytics-and-growth-instrumentation.md
deleted file mode 100644
index 564b37a61..000000000
--- a/prompts/road-to-1b/30-analytics-and-growth-instrumentation.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# 30 — Analytics & growth instrumentation
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** analytics layer (PostHog / Vercel Analytics integration), event taxonomy, funnel + retention dashboards.
-**Depends on:** 28 (activation defined), 29 (funnel). · **Parallel-safe with:** 31.
-
-## Why this matters for $1B
-You cannot grow what you cannot see. A rigorous, privacy-respecting event model turns
-guesses into a compounding optimization loop across acquisition, activation, retention,
-and revenue — the literal inputs to the $1B model.
-
-## Mission
-Instrument the full funnel with a clean, consistent event taxonomy and stand up the core
-growth dashboards, without harming performance or privacy.
-
-## Map
-- Existing analytics (PostHog / Vercel Analytics — confirm which is wired in `src/`);
- they must stay off the critical render path (ties prompt 12).
-
-## Do this
-1. Define an event taxonomy (consistent names, props) for the key funnel: page_view →
- signup/connect → activation moment (prompt 28) → first purchase/launch → return.
-2. Instrument those events across the real surfaces; verify they fire with correct props
- in the network tab — no double-counting, no PII in event payloads (ties prompt 05/32).
-3. Build/configure the core dashboards: acquisition source, activation rate, funnel
- drop-off, D1/D7/D30 retention, revenue per surface.
-4. Load analytics non-blocking and respect Do-Not-Track / consent (ties prompt 32).
-5. Add a lightweight server-side event path for money events (purchases, launches) so
- revenue isn't dependent on client analytics.
-6. Document the taxonomy so future features instrument consistently.
-
-## Must-not
-- No PII or secrets in events; no analytics on the critical render path.
-- Do not invent vanity metrics — instrument decisions, not decoration.
-
-## Acceptance
-- [ ] Funnel + retention + revenue events fire correctly with a documented taxonomy.
-- [ ] Core dashboards live; analytics non-blocking + consent-respecting.
-- [ ] `npm test` green; changelog `improvement`/`infra` entry.
diff --git a/prompts/road-to-1b/31-monetization-and-three-utility.md b/prompts/road-to-1b/31-monetization-and-three-utility.md
deleted file mode 100644
index e98ced723..000000000
--- a/prompts/road-to-1b/31-monetization-and-three-utility.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 31 — Monetization, pricing & $THREE utility
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** pricing surfaces, $THREE holder gating, skill/marketplace economics, x402 revenue, credits/metering.
-**Depends on:** 20 (marketplace), 24 (payments), 30 (revenue events). · **Parallel-safe with:** 30.
-
-## Why this matters for $1B
-Revenue and a credible $THREE utility loop are the spine of the valuation. Every paid
-surface must price clearly, charge correctly, and reinforce why holding $THREE matters —
-without ever promoting another coin (prompt 04). Related: `prompts/monetization/`.
-
-## Mission
-Make every monetized path clear, correct, and metered, and make $THREE the obvious,
-real utility token across the platform.
-
-## Map
-- $THREE gating (e.g. `api/pump/check-three-balance.js`, `packages/three-token-mcp`),
- forge high-quality holder unlock, skill purchases (prompt 20), x402 paid endpoints
- (prompt 24), any credits/metering layer in `api/`.
-
-## Do this
-1. Map every paid/gated capability (high-quality forge, premium skills, x402 calls,
- holder perks); ensure each prices clearly and charges correctly server-side.
-2. Make $THREE-holder benefits real and consistent (the forge "hold $THREE to unlock"
- pattern) — gating enforced server-side, never client-trusted.
-3. If a credits/metering layer exists, verify deposits, balances, and consumption are
- correct and idempotent (ties prompt 24); designed insufficient-credit states.
-4. Build/verify a clear pricing surface that explains free vs holder vs paid, with no
- dark patterns.
-5. Ensure x402 paid endpoints are discoverable and priced sensibly (ties prompt 24/26).
-6. Connect revenue events to prompt 30 so monetization is measurable.
-
-## Must-not
-- No client-trusted entitlement checks; no hidden/surprise charges.
-- Never promote, price in, or recommend any coin other than $THREE.
-
-## Acceptance
-- [ ] Every paid/gated path prices clearly and charges correctly server-side.
-- [ ] $THREE utility is real and consistently gated; pricing surface is honest.
-- [ ] `npm test` green; changelog `feature`/`improvement` entry.
diff --git a/prompts/road-to-1b/32-legal-compliance-trust.md b/prompts/road-to-1b/32-legal-compliance-trust.md
deleted file mode 100644
index 1158e9e9c..000000000
--- a/prompts/road-to-1b/32-legal-compliance-trust.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 32 — Legal, compliance & trust
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** Privacy Policy, Terms of Use, cookie/consent, risk disclaimers, data-handling, age/jurisdiction gating.
-**Depends on:** 05 (secrets), 30 (analytics consent). · **Parallel-safe with:** 33.
-
-## Why this matters for $1B
-A platform that custodies wallets, moves money, and touches crypto trading cannot raise
-or scale without real legal footing. Diligence checks for it; users trust it; regulators
-require it. Trust is a growth multiplier, not a checkbox.
-
-## Mission
-Put accurate, accessible legal and compliance foundations in place and make trust
-visible across money and data surfaces.
-
-## Map
-- Footer links to Privacy Policy + Terms of Use; trading/launch surfaces (prompts 21,
- 22) that need risk disclaimers; analytics consent (prompt 30).
-
-## Do this
-1. Ensure Privacy Policy and Terms of Use are present, accurate to what the product
- actually does (data collected, custody model, payments), and linked site-wide.
-2. Add a cookie/consent mechanism that gates non-essential analytics (ties prompt 30)
- and respects Do-Not-Track; document data retention and deletion.
-3. Add clear, non-dismissive risk disclaimers on trading/launch/intelligence surfaces:
- not financial advice, crypto risk, no guaranteed returns — without fabricating any
- specific coin claim (prompt 04).
-4. Verify GDPR/CCPA basics: data export/deletion path, lawful basis, processor list.
-5. Confirm wallet/custody disclosures match the real model (prompt 24) — never overstate
- security or control.
-6. Add age/jurisdiction gating where required for token/trading features.
-
-## Must-not
-- Do not ship boilerplate that contradicts actual data/custody behavior.
-- Do not bury or auto-dismiss required risk disclosures.
-
-## Acceptance
-- [ ] Accurate Privacy + Terms linked site-wide; consent + DNT respected; retention documented.
-- [ ] Risk disclaimers on trading/launch surfaces; data export/deletion path works.
-- [ ] `npm test` green; changelog `security`/`docs` entry.
diff --git a/prompts/road-to-1b/33-infrastructure-cicd-deploy.md b/prompts/road-to-1b/33-infrastructure-cicd-deploy.md
deleted file mode 100644
index 80bc66272..000000000
--- a/prompts/road-to-1b/33-infrastructure-cicd-deploy.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# 33 — Infrastructure, CI/CD & deploy safety
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** `vercel.json`, build/deploy scripts, `.github/workflows/`, DB migrations, workers deploy, rollback.
-**Depends on:** 09 (CI gate), 11 (observability). · **Parallel-safe with:** 32.
-
-## Why this matters for $1B
-At scale, deploys must be safe, reversible, and observable. A bad deploy that can't be
-rolled back, or a migration that corrupts data, is a company-ending event. Operational
-maturity is part of the valuation.
-
-## Mission
-Make the build, deploy, migration, and rollback story safe, automated, and verified.
-
-## Map
-- Deploy: `vercel.json`, `npm run build:vercel`, `check:dist`, `audit:deploy`, `deploy`;
- the known trap that `npx vercel build` overwrites `api/*.js` in place
- (CLAUDE.md "Known traps" — guard against committing esbuild bundles).
-- Data: `npm run db:migrate` / `db:status` (`scripts/apply-migrations.mjs`).
-- Workers: `workers/` + their deploy scripts (e.g. `deploy:sniper`); R2 CORS
- (`apply:r2-cors`).
-
-## Do this
-1. Verify the production build is reproducible and `check:dist` + `audit:deploy` pass;
- add a guard (CI check) that rejects accidentally-committed esbuild bundles in `api/`.
-2. Make migrations safe: forward-only, reviewed, with `db:status` reflecting state; never
- a destructive migration without a backup/rollback plan.
-3. Define and test a rollback path (previous deploy + DB) and document the runbook.
-4. Ensure workers deploy reliably and are monitored (ties prompt 11); secrets via env
- only (prompt 05).
-5. Set correct caching/headers in `vercel.json` (ties prompt 12) and confirm both
- mirror remotes stay in sync per CLAUDE.md git rules.
-6. Add a preview-deploy smoke (the existing `smoke:*` scripts) gating promotion to prod.
-
-## Must-not
-- No destructive migration without backup + rollback; no committing build bundles to `api/`.
-- Do not deploy without `check:dist`/`audit:deploy` passing.
-
-## Acceptance
-- [ ] Reproducible build; bundle-in-`api` guard in CI; caching/headers correct.
-- [ ] Migrations forward-only + reviewed; rollback path tested and documented.
-- [ ] Workers deploy + monitored; preview smoke gates prod; `npm test` green; changelog `infra` entry.
diff --git a/prompts/road-to-1b/34-launch-readiness-gate.md b/prompts/road-to-1b/34-launch-readiness-gate.md
deleted file mode 100644
index 7ed46ebf9..000000000
--- a/prompts/road-to-1b/34-launch-readiness-gate.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# 34 — Launch-readiness gate & go-to-market QA
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 6 — Growth & business
-**Owns:** the final cross-cutting QA pass; status page / runbook / incident docs; the go/no-go checklist.
-**Depends on:** **everything (01–33).** · **Parallel-safe with:** —
-
-## Why this matters for $1B
-This is the gate that says "ready." It aggregates every prior prompt's acceptance into a
-single, evidence-backed go/no-go, plus the operational readiness (status, runbook,
-incident response) a serious launch requires. No green here, no launch.
-
-## Mission
-Run a final end-to-end readiness pass that verifies every phase's acceptance holds
-together in production conditions, and stand up the operational launch surface.
-
-## Map
-- The acceptance checklists of prompts 01–33; CLAUDE.md "Definition of done" + the
- self-review protocol; existing `audit:*` / `smoke:*` / `verify:*` scripts; observability
- from prompt 11.
-
-## Do this
-1. Re-run the full audit/test surface: `npm test`, `test:e2e`, `test:pages`,
- `audit:web`, `audit:pages`, `audit:handlers`, `audit:empty-handlers`, `check:images`,
- `verify:solana`, `smoke:onchain`, `audit:deploy`, `lint`, `typecheck` — all green.
-2. Walk the top user journeys end to end in production-like conditions, on desktop and
- mobile, as a brand-new user (create agent, forge, launch, buy a skill, x402 pay).
-3. Confirm every prompt 01–33 acceptance box is checked; list any exceptions with a
- risk-accepted rationale and owner.
-4. Stand up operational readiness: a status page (ties prompt 11), an incident-response
- runbook, on-call/alert routing, and a rollback rehearsal (prompt 33).
-5. Verify the changelog reflects all user-visible work (`npm run build:pages`) and is
- pushed to holders (`changelog:push`) post-deploy.
-6. Produce a one-page go/no-go with evidence links; the platform is launch-ready only
- when it's all green.
-
-## Must-not
-- No "ship it anyway" with open Red items unless explicitly risk-accepted in writing.
-- Do not skip the production-conditions walkthrough.
-
-## Acceptance
-- [ ] All audit/test/verify scripts green; every 01–33 acceptance confirmed or risk-accepted.
-- [ ] Top journeys verified in production-like conditions on desktop + mobile.
-- [ ] Status page + runbook + alerting + rollback rehearsal in place; go/no-go signed off.
-- [ ] Changelog complete and pushed; `npm test` green.
diff --git a/prompts/road/14-responsive-and-mobile.md b/prompts/road/14-responsive-and-mobile.md
deleted file mode 100644
index 391a78243..000000000
--- a/prompts/road/14-responsive-and-mobile.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# 14 — Responsive & mobile
-
-> Part of **Road to $1B** (`prompts/road-to-1b/`). Read `00-README.md` and `/CLAUDE.md` first.
-
-**Phase:** 3 — Experience quality
-**Owns:** `pages/`, `src/` CSS/layout, viewport meta, 3D canvas sizing, `solana-mobile/` touchpoints.
-**Depends on:** none · **Parallel-safe with:** `12`, `13`, `15`, `16`, `17`
-
-## Why this matters for $1B
-Most crypto and consumer traffic is mobile. A janky phone experience caps growth hard —
-the wallet connect, the launch, and the trade all happen on a 360px screen. `/CLAUDE.md`
-mandates 320 / 768 / 1440 and proper touch targets; this prompt makes that real.
-
-## Mission
-Make every surface fully usable and polished at 320px, 768px, and 1440px, with proper
-touch targets and acceptable mobile 3D performance.
-
-## Map
-- Top surfaces: `pages/index.html`, `pages/forge.html`, `pages/marketplace.html`,
- `pages/trending.html`, `pages/agent-detail.html`, `pages/agent-trade.html`,
- `pages/agent-wallet.html`, and the editors `pages/forge.html` / `pages/avatar-studio.html`
- / `pages/animations.html` (Animation Studio).
-- Layout/CSS + 3D canvas sizing live under `src/`; mobile-specific surfaces under
- `solana-mobile/` (PWA/TWA wrappers, `solana-mobile/pwa/`, `solana-mobile/twa/`).
-- Wallet / x402 flows: `pages/agent-wallet.html`, `api/x402/` (exercise on mobile).
-- Existing gate: `npm run audit:web` (`scripts/page-audit.mjs`).
-
-## Do this
-1. Walk the top surfaces at 320 / 768 / 1440 (and a real device or DevTools emulation);
- log every overflow, fixed width, cut-off modal, and broken nav/menu.
-2. Fix horizontal scroll and fixed widths (relative units, flex/grid, `max-width:100%`,
- `min-width:0` on flex children); enlarge touch targets to >= 44px.
-3. Make the 3D viewer and editors (Forge, Avatar/Animation Studio) usable on touch —
- orbit/zoom/IK via touch gestures — or degrade gracefully where touch can't drive a
- control. Size the canvas to the viewport without overflow.
-4. Handle the on-screen keyboard and safe-area insets for forms and chat
- (`env(safe-area-inset-*)`, `viewport-fit=cover`); inputs must not be obscured.
-5. Reflow data-dense lists/tables (trading, marketplace) into stacked/scrollable cards
- on narrow screens — no clipped columns.
-6. Exercise the wallet connect and x402 payment flows on mobile, including the
- `solana-mobile/` PWA/TWA path; fix any tap/redirect breakage.
-
-## Must-not
-- Do not hide core features on mobile to "fix" a layout — reflow them instead.
-- Do not ship horizontal scroll on any top surface.
-- Do not shrink touch targets below 44px to fit a dense layout.
-
-## Acceptance
-- [ ] No layout breakage or horizontal scroll at 320 / 768 / 1440 on the top surfaces.
-- [ ] Touch targets >= 44px; safe-area insets and on-screen keyboard handled.
-- [ ] 3D viewer/editors usable on touch or gracefully degraded; canvas never overflows.
-- [ ] Wallet + x402 flows verified on mobile (incl. `solana-mobile/`).
-- [ ] `npm test` green; `npm run lint` clean; changelog `improvement` entry.
diff --git a/tests/src/widget-types.test.js b/tests/src/widget-types.test.js
index b541859e1..2e1230d8c 100644
--- a/tests/src/widget-types.test.js
+++ b/tests/src/widget-types.test.js
@@ -24,6 +24,7 @@ describe('WIDGET_TYPES', () => {
'kol-trades',
'live-trades-canvas',
'bonding-curve',
+ 'walking-avatar',
].sort(),
);
});