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.

Add rewards-ledger tests, pump.fun trading roadmap, club/economy polish

nirholasc249f614a2e8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a675beac..d0c21d172 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,13 +16,15 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Avatars come to life — animations now play on the avatar page** — Every avatar page now plays its built-in animation the moment it loads, so a rigged avatar stands, breathes, or performs its motion instead of freezing in a static pose. A new floating control sits over the 3D stage: a play/pause button, plus a clip switcher when an avatar carries more than one take so you can jump between them. Avatars with no embedded motion are unaffected — the control only appears when there's something to play. `[feature]`
- **Browse every community avatar from your dashboard** — The dashboard Avatars page now has a Community tab alongside My avatars. It shows every public 3D avatar the whole community has built — with live spinning previews, a running count and total views, search, tag filters, and infinite scroll. Open any one as a live page, remix it in the 3D studio, or copy its share link, embed snippet, or GLB URL in a click. (`/dashboard/avatars`) `[feature]`
- **Buy and sell USDC-paired coins straight from the trade widget** — The in-world trade widget now speaks both currencies. Open Buy on a coin and the widget reads its real pairing from the chain: a SOL coin asks for SOL exactly as before, while a USDC-paired coin denominates the amount in USDC, shows your wallet's USDC balance, and prices and settles the trade in USDC. A new Sell tab lets you sell a coin you hold back to its quote asset — pick 25%, 50%, or Max of your balance, see the live payout, and sign once; for USDC coins the payout account is opened for you automatically in the same transaction. Every state is handled: not enough USDC offers a one-tap Add-funds flow, a moved price explains your slippage, and a cancelled signature is quietly acknowledged. The whole flow is your own wallet, signed in your browser, with a Solscan link the moment it lands. (`/play`) `[feature]`
+- **Buy any coin straight from the Pump Visualizer** — Click a coin in the Pump Visualizer and you can now buy it on the spot — no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins. (`/pump-visualizer`) `[feature]`
- **Camera AR on /irl now turns on** — The "Camera AR" button on the IRL page was stuck — it never lit up, on desktop or phone, so you could never drop your avatar into your real room. Two bugs were behind it: a startup error in the joystick setup crashed the page's script before the button could ever be enabled, and even once that was past, the camera could hang on "Requesting camera…" forever because playback was started before the video was visible. Both are fixed: the button now activates once your avatar loads, and tapping it opens the camera reliably on phone and desktop so you can walk your avatar across your real floor. (`/irl`) `[fix]`
- **Chat never stalls on a down AI model — instant, quiet failover** — If you pick a specific AI model for the agent (say Claude) and our key for that provider is temporarily unavailable, chat now hands you an answer instantly from a healthy free model instead of pausing on the dead provider. Previously the app re-tried the unavailable provider on the very first attempt of every single message — adding a little delay each time and filling our logs with repeat warnings. Now a provider with a key or billing problem is set aside for a few minutes after the first failure and skipped up front, even when it was the one you explicitly chose, so the next message goes straight to a model that works. Free-first, always a working fallback. (`/chat`) `[improvement]`
- **Clearer launch & trade errors, and a graduated badge on coins** — When a token launch or an in-world trade can't go through, the app now tells you exactly why and what to do next — "Not enough SOL to cover the launch + network fees," "Price moved beyond your slippage limit," "You cancelled the signature in your wallet," or "Couldn't reach the Solana network" — instead of a single catch-all "Connection error." Coins also show their lifecycle at a glance: the trade panel carries a badge marking whether a coin is still on its bonding curve or has graduated to the PumpSwap AMM, so a graduated coin is unmistakable. Backed by new end-to-end browser tests that drive the full four-step launch flow and the buy/sell widget so this conversion path can't silently break. (`/pump-dashboard`) `[improvement]`
-- **Four distinct dancers, now waiting at their poles** — The Pole Club stage no longer sits empty between tips. All four dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — and each is a different 3D model instead of four copies of one, so Aria, Nova, Blaze, and Luna actually look like four different performers (still tinted to their pole's neon color). Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. (`/club`) `[improvement]`
+- **Fixed the footer floating over the avatar viewer** — On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model — and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed. (`/marketplace`) `[fix]`
- **Homepage Forge is more reliable — no more "busy" on the second model** — The mini Forge on the homepage now runs on the same free Standard lane as the full /forge page. Before, it used the free draft preview, which has tight concurrency and would return a "generator is busy" message on a quick second generation. Now back-to-back prompts hold up — models still land free with no sign-up, and the platform automatically degrades to the faster free lane if the main one is throttled. (`/forge`) `[fix]`
- **Launchpad Studio: pick your avatar from your own agents and the gallery** — Building a launchpad in Launchpad Studio (three.ws/launchpad) no longer means hunting down a model URL by hand. The avatar picker now shows three sections: your own three.ws agents (when you're signed in), the platform avatar gallery with a Show more button to browse deeper, and a collapsed Or enter a URL field for power users who want to paste a custom .glb. Thumbnails load lazily, the selected avatar updates the live 3D preview instantly, and your choice is saved with the published page. (`/launchpad`) `[feature, improvement]`
- **Live coin status — price, market cap and graduation — now unified across the platform** — The launches feed, agent profile token panels, and the in-world agent coin card now share one live coin-status display, so every place that shows a coin reads the same numbers from the same source. Launch cards now stream the coin's real logo, USD price, market cap, a graduation progress ring and time since launch — not just market cap — with the orbital fingerprint as a placeholder until the logo loads. Agent profiles show a live price-and-graduation chip in the token panel and per-coin market caps in the launch history, and the agent home card's market readout is now consistent with the rest of the platform. Each card refreshes on its own and degrades gracefully to a Retry if pump.fun is briefly unreachable. (`/launches`) `[improvement]`
+- **More uploaded avatars can dance** — The built-in animation library can now drive avatars built on CharacterStudio and Unreal Engine skeletons, not just Mixamo/Ready-rig ones. Previously a CharacterStudio or Fortnite-style rig would load but stand frozen because the animation system couldn't match its bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear — the club, the walk view, AR, and the studio. (`/club`) `[improvement]`
- **On-chain model validation for Solana agents** — Solana agents now get the same verifiable, on-chain glTF/model validation that EVM agents get from the ValidationRegistry — no contract to deploy. When you register an agent on Solana, the platform validator fetches your avatar's GLB, runs it through the same Khronos glTF validator behind the model checker, and records the pass/fail result as a signed on-chain attestation (an SPL Memo carrying a SHA-256 proof of the full report and a link to it). The result shows up as a 'model verified' badge on the agent passport, rides on the agent card, and is queryable at /api/agents/solana-validation. Anyone can independently recompute the proof hash from the same GLB to confirm the verdict, and you can re-validate on demand after updating your model. Re-attesting an identical report is idempotent, so no duplicate transactions. `[feature, security]`
- **Pose any avatar — a full motion library on the avatar page** — Every avatar page has a new Pose tab. Open it and the avatar steps onto a live 3D stage you can orbit, with a searchable library of 100+ motions — idle, wave, dance, jump, flex, facepalm and more. Click one and it plays on the avatar instantly, even when the model itself ships no built-in animation: the clips retarget onto its skeleton in your browser. A speed slider and a reset-to-idle control round out the transport. Avatars without a standard humanoid rig get a clear message instead of a broken stage. `[feature]`
- **Pump dashboard alerts now run server-side — fire across devices even with the tab closed** — Alert rules moved from your browser to our servers, so they fire whether or not a dashboard tab is open and follow you across every device you sign in on. Build as many rules as you need: get notified when any token (or a specific mint, or one of your agents' coins) graduates to an AMM, when a coin's market cap rises above or falls below a price you set, when someone places a whale-sized buy, or when one of your agents launches a new coin. Each rule delivers however you want — an in-app notification, a signed webhook POST to your own server, and Telegram — with each channel handled independently so one failing never blocks the others. Per-rule cooldowns and de-duplication prevent alert storms, the dashboard shows when a rule last fired and surfaces any delivery failures, and existing graduation alerts were migrated over automatically. (`/pump-dashboard`) `[feature]`
@@ -35,6 +37,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Registered agents now carry an on-chain "Validated" badge** — When an agent is registered on-chain, three.ws now automatically runs its 3D model through the platform's glTF validator and records a signed validation attestation on the ERC-8004 ValidationRegistry — so an agent that advertises validation actually carries proof of it. A green "Validated" badge appears on the agent profile, readable by anyone without a wallet, and links straight to the full validation report and the on-chain record. The check is independent of the file's byte-identity (sha256), so both are surfaced on their own: a model that passes schema validation still shows its exact byte fingerprint. If a model has problems, the badge shows "Validation failed" with the specific reason — the agent is still registered, just unvalidated — and owners can re-validate after updating their model to refresh the badge. Validation is best-effort and never blocks or reverts a registration. (`/marketplace`) `[feature, security]`
- **Save any avatar as your own — forks with their own wallet** — Saving someone else's avatar now works like forking on GitHub: it mints a brand-new avatar in your account with its own copy of the model, linked back to the original with a "Forked from" credit and a fork counter on the source. You never share one avatar between two people — your copy is yours to edit, deploy, or launch, and the original owner's stays untouched. Every saved or forked avatar's agent also gets its own custodial wallet (EVM + Solana) the moment it lands, assigned to you alone — create it, copy the addresses, or manage it right from the avatar page, the editor, and the gallery picker. One person can hold a copy of another's avatar, but no two people ever control the same agent wallet. (`/gallery`) `[feature]`
- **Sell your animations in the marketplace** — Animations you build in the Studio can now be listed for sale. Pose a figure, drop your keyframes, save the clip, then hit Sell — set a price in USDC (or list it free) and three.ws bakes a self-contained animated GLB and publishes it to a new "From creators" shelf in the animation marketplace. Buyers see a poster, the creator, length and price; free clips download in one click, and paid clips are unlocked by paying once in USDC on Base or Solana — re-download free forever from the same wallet. Earnings settle straight to your payout wallet, and your motion data stays gated behind the paywall until someone buys. (`/marketplace?tab=animations`) `[feature]`
+- **Sniper agents can now buy on a creator's first reward claim** — The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in "first claim" mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault — an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe — mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin — and manages the position to its exit automatically. (`/play/arena`) `[feature]`
- **Sniper Arena — watch AI agents trade pump.fun live** — Agents can now trade pump.fun autonomously. A new always-on engine watches every launch in real time, scores it against an agent's strategy (market-cap band, creator track record, socials), and — when it qualifies — buys from the agent's own Solana wallet, then manages the position to a take-profit, stop-loss, trailing stop, or timeout exit. Arming an agent is opt-in and capped: you set a daily budget, a per-trade size, and a mandatory stop-loss, with a kill switch that halts new buys instantly. The new Sniper Arena at three.ws/play/arena shows it all happening live — a P&L leaderboard, a streaming trade ticker where every fill links to its on-chain transaction, and the top agent's 3D avatar reacting to its own wins. Autonomous trading is experimental and you can lose the funds you commit. (`/play/arena`) `[feature]`
- **Strategy Lab now catches broken trading strategies before they run** — Validation in the Strategy Lab (three.ws/strategy-lab) went from a basic syntax check to a real soundness check, so a strategy can't quietly pass review and then misbehave with live funds. It now flags the mistakes that used to slip through: a misspelled metric that silently never matches, a threshold that can never be true (like a percentage above 100), filters that contradict each other so the strategy would never buy, a position rule placed where no position exists yet, a per-trade size larger than the session budget, and later exit rules that an earlier rule always triggers first. When you point a strategy at specific coins, it confirms each one actually exists and warns if a SOL-denominated strategy targets a USDC-paired coin. Problems are shown inline, field by field, with a plain-language reason and exactly where to fix them — and the same checks now guard Backtest and Run, so what validates is what executes. (`/strategy-lab`) `[improvement]`
- **The $THREE economy, on one page** — A new page at /three lays out exactly how three.ws uses $THREE — the only coin. You pay in $THREE only for things that cost real compute (premium 3D generation, voice cloning, advanced data); creating agents, browsing, embedding, chatting, basic worlds, and draft generation stay free forever. Holders get a tier ladder: hold $THREE for lower fees on everything you do pay for, higher free limits, private worlds, and early access. Short and dictionary *.threews.sol names are now priced by rarity (common names remain free). And there are no burns — every $THREE spent flows to the treasury or reflects back to holders pro-rata. The page shows live settled volume, what's reflected to holders, and your own tier. (`/three`) `[feature]`
@@ -45,9 +48,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **The site footer and top pages are now polished on phones** — On mobile the footer's link columns ran off the right edge and got cut off — the contract address and legal links were unreachable — because an old style rule for the 3D viewer's corner credit was hijacking the main footer's layout. The footer now stacks into clean, tappable columns on every page. We also did a mobile pass across the most-used pages — Home, Discover, Create, Forge, Marketplace, Gallery, and Pay — eliminating sideways scrolling, enlarging tap targets to a comfortable size, and stopping form fields from zooming the page when you tap them. `[fix, improvement]`
- **The top navigation is back on every page** — The site header was being clipped to a sliver on most pages — the menu, search, and account controls were cut off and the dropdowns wouldn't open. An old style rule meant for the standalone 3D viewer's compact toolbar was leaking onto the shared navigation, forcing it to a fixed height and hiding everything below it. The viewer rule is now scoped to only the viewer, so the full navigation renders at its natural height across the whole site. `[fix]`
- **There's a cover at the Pole Club door** — The club now has a line outside. Before the room opens you pay a $0.01 USDC cover at the door via x402, and an on-chain bouncer checks the paying wallet — banned wallets are turned away, everyone else gets in with a door tier (newcomer, regular, or VIP) based on their past club nights. Pay once and you're in for the night; reopen the page and the velvet rope drops automatically. The 3D room loads behind the door while you're in line, so it's warm the moment you step in. (`/club`) `[feature]`
+- **Three distinct dancers, now waiting at their poles** — The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto CharacterStudio and Unreal-mannequin rigs too, so far more uploaded avatars can actually dance. (`/club`) `[improvement]`
- **three.ws can now register itself on-chain on Solana** — Alongside its ERC-8004 identity, three.ws can now mint its own agent on Solana — as a Metaplex Core asset in the official "three.ws Agents" collection, exactly the way agents you deploy through the platform are registered. A one-command tool builds the platform's 3D Agent Card, verifies the avatar's SHA-256 against the exact GLB bytes served (so the model can't be silently swapped), pins the metadata, mints the asset into the collection, and writes the result back into the public discovery documents at three.ws/.well-known so any wallet, explorer, or agent can resolve and verify three.ws. The discovery card and its schema now carry Solana identities (CAIP-10) alongside EVM ones, and the platform agent's on-chain badge links straight to its Solana passport. (`/.well-known/agent-registration.json`) `[feature, infra]`
- **three.ws now registers itself as an on-chain agent (ERC-8004)** — The platform that helps you put your agents on-chain now does the same for itself. three.ws publishes a 3D Agent Card — a verifiable manifest of its name, its default 3D avatar, and its A2A/MCP/x402 service endpoints — at three.ws/.well-known/3d-agent-card.json, and ships a one-command tool that mints the platform agent in the canonical ERC-8004 IdentityRegistry on Base (with a Base Sepolia rehearsal first). The card cryptographically commits to the avatar: the SHA-256 in the card matches the exact GLB bytes served, so any indexer or wallet can independently verify the model hasn't been swapped. Other agents and directories can now discover and trust three.ws the same way three.ws lets them be discovered. `[feature, infra]`
- **USDC-paired agent coins now record and display correct trade amounts** — Coins launched against USDC are now tracked in the right currency end to end. Every buy and sell records which quote asset it actually used and how much of it moved — USDC amounts in USDC, SOL amounts in SOL — instead of quietly storing a USDC trade as if it were SOL and reporting a price and market cap that were off by orders of magnitude. Portfolios now subtotal holdings separately by quote asset, so your SOL positions and USDC positions each get their own value, cost basis, and unrealized P&L with no more mixing of mismatched units. Existing SOL trades are unchanged, and historical rows were backfilled as SOL-paired so nothing shifts. `[fix, feature]`
+- **Verify the $THREE economy on-chain — no "trust us"** — The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply — instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain. (`/three`) `[feature, improvement]`
- **Walk into the Pole Club as your own 3D avatar** — The club now has a way in that you control. Land on /club and you spawn outside in an alley as your own 3D avatar — move with WASD, arrows, or a touch joystick, drag to look around, and walk up to the neon door at the end of the alley. Step into range and a prompt appears: press E, tap, or click the door to pay the $0.01 cover. Pay it and your avatar walks through the club house interior while the night's anthem kicks in, then the room with the poles opens up around you. It's all real 3D, streamed from compressed scenes (~20 MB exports cut to ~1.6 MB each) and prefetched while you walk so nothing stalls. Already paid tonight? You skip the line and walk straight in. (`/club`) `[feature]`
## 2026-06-14
diff --git a/data/changelog.json b/data/changelog.json
index 2229f4984..0d1e1a3e4 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,34 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-15",
+ "title": "Fixed the footer floating over the avatar viewer",
+ "summary": "On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model — and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed.",
+ "tags": ["fix"],
+ "link": "/marketplace"
+ },
+ {
+ "date": "2026-06-15",
+ "title": "Verify the $THREE economy on-chain — no \"trust us\"",
+ "summary": "The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply — instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain.",
+ "tags": ["feature", "improvement"],
+ "link": "/three"
+ },
+ {
+ "date": "2026-06-15",
+ "title": "Sniper agents can now buy on a creator's first reward claim",
+ "summary": "The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in \"first claim\" mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault — an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe — mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin — and manages the position to its exit automatically.",
+ "tags": ["feature"],
+ "link": "/play/arena"
+ },
+ {
+ "date": "2026-06-15",
+ "title": "Buy any coin straight from the Pump Visualizer",
+ "summary": "Click a coin in the Pump Visualizer and you can now buy it on the spot — no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins.",
+ "tags": ["feature"],
+ "link": "/pump-visualizer"
+ },
{
"date": "2026-06-15",
"title": "Pump Visualizer: a coin's look now tracks its market cap",
@@ -10,8 +38,15 @@
},
{
"date": "2026-06-15",
- "title": "Four distinct dancers, now waiting at their poles",
- "summary": "The Pole Club stage no longer sits empty between tips. All four dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — and each is a different 3D model instead of four copies of one, so Aria, Nova, Blaze, and Luna actually look like four different performers (still tinted to their pole's neon color). Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second.",
+ "title": "Three distinct dancers, now waiting at their poles",
+ "summary": "The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto CharacterStudio and Unreal-mannequin rigs too, so far more uploaded avatars can actually dance.",
+ "tags": ["improvement"],
+ "link": "/club"
+ },
+ {
+ "date": "2026-06-15",
+ "title": "More uploaded avatars can dance",
+ "summary": "The built-in animation library can now drive avatars built on CharacterStudio and Unreal Engine skeletons, not just Mixamo/Ready-rig ones. Previously a CharacterStudio or Fortnite-style rig would load but stand frozen because the animation system couldn't match its bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear — the club, the walk view, AR, and the studio.",
"tags": ["improvement"],
"link": "/club"
},
diff --git a/docs/roadmap/pumpfun-social-trading.md b/docs/roadmap/pumpfun-social-trading.md
new file mode 100644
index 000000000..2111ef416
--- /dev/null
+++ b/docs/roadmap/pumpfun-social-trading.md
@@ -0,0 +1,357 @@
+# Pump.fun Social Trading — Strategy, Build Plan & Prompts
+
+> North star: **three.ws becomes the place every crypto trader uses to trade pump.fun — because the best traders (human and AI) are here, their track records are provably real, you can one-tap copy them, and everyone in the loop earns.**
+
+Status: planning. Owner: pumpfun trading initiative. Last updated 2026-06-15.
+
+---
+
+## 0. The one-sentence thesis
+
+Trading pump.fun alone is lonely, hard, and a coin-flip. We turn it into a **social game with verifiable winners and shared upside**: provable on-chain track records → a leaderboard you trust → one-tap copy-trade → the trader being copied earns a performance fee → $THREE holders earn a reflection on every fee → copiers who get good graduate into leaders. That loop is the product. Everything else is surface.
+
+## 1. Why we win (the moat is already built)
+
+We are NOT starting from zero. The audit found these **already shipping** in this repo:
+
+| Capability | Where it lives | What it gives us |
+|---|---|---|
+| Real buy/sell/launch on pump.fun | `api/pump/[action].js` (buy-prep/confirm, sell, launch, quote) | The trade rail. User-signed AND custodial (agent-signed). |
+| Autonomous strategy execution | `workers/agent-sniper/*` (scorer, executor, positions) | Agents that trade themselves, with entry/exit rules. |
+| Live P&L leaderboard | `/play/arena` + `src/kol/leaderboard.js` | A working "who's winning" surface. The skeleton of the leaderboard. |
+| Trade ledger | `pump_agent_trades`, `pump_agent_positions` tables | Every trade is already recorded with PnL. The raw track record. |
+| Verifiable reputation | Solana attestations (`api/_lib/solana-attestations.js`), ERC-8004 | Track records that **can't be faked** — signed on-chain. |
+| Agent wallets | `api/agents/solana-wallet.js`, `api/_lib/agent-pumpfun.js` | Every agent holds a real Solana wallet that can trade. |
+| Fee-split economy | `api/_lib/token/config.js`, `charge-three.js`, split policies | We can already split any payment N ways on-chain in $THREE. |
+| Referral attribution + earnings | `api/_lib/referrals.js`, `referral-claim.js` (5% default) | Viral attribution + payout already wired. |
+| Live data feeds | PumpPortal WS, Birdeye, Helius webhooks | Real-time mints, trades, graduations, prices. |
+| 3D avatars reacting to trades | `/pump-live`, `src/pump/trade-reactions.js`, `<agent-3d>` | The "screenshot-worthy" differentiator nobody else has. |
+| Shareable PnL/holder cards | `src/dashboard-next/pages/holders.js` (PNG export) | The viral artifact engine. |
+
+**The gap is not capability. The gap is the loop.** These pieces don't yet connect into: *find a winner → trust the number → copy with one tap → both of you earn → brag about it → bring a friend.* Closing that loop is the whole game.
+
+## 2. The flywheel (the only diagram that matters)
+
+```
+ ┌─────────────────────────────────────────────────────┐
+ │ │
+ ▼ │
+ PROVABLE TRACK RECORD ──► LEADERBOARD YOU TRUST ──► ONE-TAP COPY
+ (on-chain, can't fake) (rank by real PnL, (mirror their
+ not vanity) trades live)
+ ▲ │
+ │ ▼
+ COPIER GETS GOOD, EVERYONE EARNS
+ GRADUATES TO LEADER ◄──── SHARES THE WIN ◄──── • leader: perf fee
+ (new supply of talent) (PnL card, referral) • platform: treasury
+ │ • $THREE holders: reflection
+ │ • referrer: 5%
+ └────────────────────── brings friends ──────────────┘
+```
+
+Each arrow is a feature. Each node is a surface. Ship them in dependency order (Section 6).
+
+## 3. The flagship: Copy Trading
+
+### 3.1 Product shape
+
+Three tiers of "follow," increasing in commitment and in how much the leader earns:
+
+1. **Watch** (free) — follow a trader; get a live feed + push notification every time they trade. No money moves. This is the top-of-funnel and the social graph.
+2. **Copy** (non-custodial, opt-in per trade or auto) — when the leader buys, *your* wallet gets a pre-built buy tx for the same coin, sized to your configured allocation (fixed SOL, % of wallet, or proportional). You sign (or pre-authorize a session key with a spend cap). Leader earns a **performance fee on your realized profit only** (high-water mark, no fee on losses). Default 10%, leader-tunable up to a cap.
+3. **Vault** (managed) — deposit SOL into a leader's on-chain vault PDA; they trade the pooled book; profits split per the vault's published terms (e.g. 80% depositors / 15% leader / 5% platform). This is the "AI hedge fund" surface — highest trust, highest LTV.
+
+> Non-custodial copy (tier 2) is the wedge: lowest trust barrier, no "they hold my money" objection, still pays the leader. Ship it first. Vaults come after trust is established.
+
+### 3.2 Fee economics (reuse the existing $THREE rails verbatim)
+
+Define a new split policy in `api/_lib/token/config.js`, mirroring the existing `marketplace_sale` pattern:
+
+```
+POLICY 'copy_performance_fee':
+ leader: 8000 bps (80% of the performance fee → the trader being copied)
+ treasury: 1000 bps (10% → platform, funds $THREE buybacks)
+ rewards: 500 bps (5% → reflected pro-rata to all $THREE holders)
+ referrer: 500 bps (5% → whoever referred the copier; existing referral rail)
+```
+
+- Performance fee is charged **only on realized profit**, gated by a **high-water mark** per (copier, leader) pair so a leader can't double-dip on the same gains.
+- Settlement uses the existing `issueQuote()` → `verifyOnChain()` → `settlePayment()` flow. Charged in $THREE (holder discount applies via `holderDiscountBps`). The *trades themselves* are SOL/coin on pump.fun; the *fee* is $THREE. This keeps $THREE as the only coin the platform promotes while trades use arbitrary runtime mints (allowed under the CLAUDE.md runtime-data exception).
+- Vault profit splits use the same split-policy machinery but settle continuously on withdrawal.
+
+### 3.3 Track record: the thing that makes copy-trading trustworthy
+
+A leaderboard is worthless if the numbers can be gamed. Our edge is **provable** stats. Compute a `TraderScore` from `pump_agent_trades` + `pump_agent_positions`, and **attest the rollup on-chain** via Solana attestations so the score is independently verifiable:
+
+- **Realized PnL** (SOL + USD), 7d / 30d / all-time.
+- **Win rate**, **avg hold time**, **max drawdown**, **Sharpe-ish consistency**.
+- **Realness flags**: % of volume that's self-trades (penalize wash), unique coins traded, copier count, AUM being copied.
+- **Survivorship-honest**: show the closed losers too. A leader who hides losses is a red flag we surface, not hide.
+
+Publish a **"Proof" tab** on every trader profile: every claimed number links to the on-chain txs that produced it. This is the trust unlock and the thing competitors (Telegram bots, screenshots) can't match.
+
+## 4. Outside-the-box ideas (the creative menu — pick & sequence)
+
+Grouped by what job they do in the flywheel. Not all ship; this is the idea bank.
+
+### 4.1 Make track records irresistible & viral
+- **PnL Card v2** — auto-generated, screenshot-perfect card after every closed position and every day's session ("+340% • copied 3 leaders • beat 92% of traders today"). One-tap share to X/Telegram with a referral link baked in. We already have PNG export for holder cards — extend it.
+- **The Replay** — turn any trade into a 6-second animated 3D clip: the agent avatar reacts, the bonding curve fills, the number pops. Shareable video. Nobody in crypto has 3D-native shareables. This is the screenshot-that-spreads.
+- **"Wrapped" for traders** — weekly/monthly recap, Spotify-Wrapped style, of your best calls, your copiers, your earnings. Drops every Sunday → recurring re-engagement loop.
+- **Live trade streaming** — extend `/pump-live`: top traders become "streamers." Their avatar narrates trades in real time (voice clone already exists). Viewers one-tap copy mid-stream. Twitch-for-pumpfun.
+
+### 4.2 Make copying effortless (the "easy" pillar)
+- **One-tap copy from anywhere** — every trade card, feed item, leaderboard row, and stream has a single "Copy" button. Session-key pre-authorization (spend cap, expiry) so copying after the first setup is literally one tap, no wallet popup per trade.
+- **Telegram trading bot** — `/copy @leader 0.5sol`, signal alerts, PnL cards, all in TG where crypto already lives. This is the user-acquisition channel; the web app is the home base. (Note: `PUMPFUN_BOT_URL` infra exists but is consumer-only today — this is net-new.)
+- **Mobile-first PWA** — the entire copy flow must work thumb-only at 320px. Crypto trading is a phone activity.
+- **Smart sizing** — "copy at 1/10th their size," "cap any single ape at 0.2 SOL," "only copy buys above $20k mcap." Risk controls that let a small wallet safely follow a degen.
+
+### 4.3 Make it a competition (the "fun" pillar)
+- **Sniper Arena → Tournaments** — `/play/arena` already ranks live P&L. Layer in seasons: weekly tournaments, $THREE entry fee → prize pool, on-chain-verified results, trophies that mint as cosmetics. Leaderboard resets create recurring urgency.
+- **Agent-vs-Agent fantasy** — back an AI agent like fantasy sports. Stake $THREE on which agent wins the week; winners split the pool. Turns spectators into stakeholders.
+- **Draft your roster** — follow a *portfolio* of 5 leaders; your blended P&L competes on a meta-leaderboard. Encourages diversification + multiplies the number of leaders earning.
+- **Coin Communities tie-in** — `/play` already has per-coin 3D worlds. Winning trades in a coin boost your standing in that coin's world. Trading ↔ social presence flywheel.
+
+### 4.4 Make leaders want to be here (supply side)
+- **Creator/leader fees that actually pay** — the 80% performance-fee leg. A good trader earns more by being copied here than trading alone. That's the recruiting pitch.
+- **Leader storefronts** — each top trader gets a branded profile (`/u/:handle`), their own coin-launch history, their copiers, their vault. A reputation asset they'll promote *for* us.
+- **"Proven track record" verification badge** — gated on real, attested metrics (min closed trades, min realized PnL, min unique coins, low wash %). A status symbol traders chase → they grind on-platform to earn it.
+- **Recruit existing KOLs** — `api/kol/*` already proxies Birdeye wallet PnL. Import a known wallet's real on-chain history → instant pre-seeded leaderboard of recognizable names → "claim your profile" growth hack.
+
+### 4.5 Make AI agents first-class traders (our true differentiator)
+- **Strategy Lab** — visual builder for agent trading strategies (entry/exit rules, the `pump_agent_strategies` schema already exists). Non-coders create autonomous traders. Backtest against `strategy-backtest`. Then *publish* the strategy for others to copy → strategies become a marketplace.
+- **Natural-language strategies** — "buy any coin a wallet I trust apes >2 SOL into, sell at 2x or -30%." LLM compiles NL → strategy JSON → armed agent. This is the magic-moment demo.
+- **Agent track records are copy-able too** — an AI agent with a great record is a leader like any human. Users copy *bots*. Bots earn fees for their owner. Owner monetizes their avatar's skill. This is the "monetize your agent/avatar with a proven track record" the user asked for, made concrete.
+- **Agent battle replays narrated by the agent** — the 3D + voice + on-chain combo no competitor can touch.
+
+### 4.6 Network & trust mechanics
+- **Social graph** — follows, copiers, "traders you follow also copy X." Recommendation engine on real PnL, not influencer noise.
+- **Reputation staking** — leaders stake $THREE on their own track record (ERC-8004 reputation-staking pattern already in contracts). Skin in the game; slashable on proven wash-trading. Copiers trust staked leaders more.
+- **Anti-rug / safety rails** — auto-flag honeypots, dev-dump risk, low liquidity before a copy executes. "We blocked this copy because the coin's dev holds 40%." Safety as a feature that builds trust.
+
+## 5. The single most important thing to ship first
+
+**A trustworthy leaderboard + one profile with a Proof tab + non-custodial one-tap copy of ONE leader, end to end, with a real fee settling in $THREE.**
+
+If a user can: open `/leaderboard` → see a trader ranked by *provable* 30d PnL → open their profile → verify the numbers link to real txs → tap "Copy" → set a 0.2 SOL allocation → and have the next trade mirror to their wallet while the leader earns a $THREE fee — **the flywheel is closed and everything else is expansion.** Don't build vaults, tournaments, or the TG bot until that core loop converts.
+
+## 6. Build plan (phased, dependency-ordered)
+
+### Phase 0 — Track-record truth layer (foundation; nothing works without it)
+- Compute `TraderScore` from `pump_agent_trades` + `pump_agent_positions`: realized/unrealized PnL (7d/30d/all), win rate, max drawdown, avg hold, unique coins, wash-% estimate, copier count, AUM-copied.
+- New endpoint `GET /api/pump/trader/:wallet/stats` (and `/leaderboard`) returning ranked, paginated, cacheable scores.
+- Attest daily rollups on-chain via existing Solana attestation writer so scores are verifiable.
+- **DoD:** numbers match a hand-computed sample; every stat traces to txs; cache + empty/zero-trade states handled.
+
+### Phase 1 — Leaderboard + Trader Profile + Proof tab
+- `/leaderboard` page: rank by PnL/score, filters (timeframe, min trades, AI-vs-human, low-wash-only), live updates. Reuse `src/kol/leaderboard.js` patterns + `tokens.css`.
+- `/trader/:handle` (or extend `/u/:address`): hero with avatar (`<agent-3d>`), headline stats, equity curve, open positions, closed-trade history, **Proof tab** (every number → tx links), copier count + AUM.
+- Shareable PnL card export (extend holder-card PNG engine) with referral link.
+- **DoD:** reachable from nav; empty/loading/error states; mobile 320px; screenshot-worthy.
+
+### Phase 2 — Non-custodial copy engine (the wedge)
+- Follow/copy data model: `copy_subscriptions` (copier, leader, allocation rule, risk caps, status, high-water mark).
+- Copy executor: on leader trade (from the existing feed/positions pipeline), compute copier's sized order, build buy-prep tx, deliver via push + one-tap sign; optional session-key pre-auth with spend cap/expiry for true one-tap.
+- Risk controls: fixed-SOL / %-wallet / proportional sizing; per-trade cap; mcap floor; honeypot/dev-dump pre-check.
+- **DoD:** real mirrored trade lands on devnet then mainnet-small; caps enforced; leader can't copy into a flagged rug.
+
+### Phase 3 — Performance fee settlement
+- `copy_performance_fee` split policy in `token/config.js`.
+- High-water-mark accounting per (copier, leader); charge **only on realized profit**; settle in $THREE via `charge-three.js`.
+- Leader earnings ledger + dashboard surface (reuse `creatorEarnings()` / `agent_revenue_events`).
+- Referrer 5% leg auto-credited (existing rail).
+- **DoD:** fee charged only on profit; HWM prevents double-charge; on-chain split verified; leader sees earnings; $THREE holders see reflection.
+
+### Phase 4 — Social loop & growth
+- Live trade feed (follow graph), notifications, "traders you follow also copy X."
+- PnL card auto-prompt after wins; "Wrapped" weekly recap cron.
+- Verification badge gated on attested metrics.
+- KOL pre-seed: import real wallet histories via `api/kol/*` → "claim your profile."
+- **DoD:** a copier can go from win → shared card → friend signs up via referral, fully wired.
+
+### Phase 5 — Expansion (sequence by traction)
+- Vaults (managed, pooled SOL, on-chain PDA, profit split).
+- Tournaments/seasons on `/play/arena` with $THREE entry + prize pools + cosmetic trophies.
+- Telegram trading bot (acquisition channel).
+- Strategy Lab + NL-to-strategy (AI-agent leaders as copy-able supply).
+- Agent-vs-Agent fantasy staking.
+
+### Cross-cutting (every phase)
+- Changelog entry per user-visible change (`data/changelog.json`).
+- Devnet smoke before mainnet (`scripts/pump-devnet-smoke.mjs` pattern).
+- No mocks/placeholders; every state designed; mobile-first; $THREE is the only coin promoted.
+
+## 7. Ready-to-run build prompts
+
+Paste these to focused agents, one phase at a time, in order. Each is self-contained and assumes the operating rules in CLAUDE.md.
+
+### Prompt A — Phase 0: Track-record truth layer
+```
+Build the trader track-record stats layer for three.ws pump.fun social trading.
+
+Source of truth: the pump_agent_trades and pump_agent_positions tables (see api/_lib/schema.sql
+and api/_lib/pump-quote.js for how quote_amount atomics map to SOL/USDC). Read api/pump/[action].js
+(handlePortfolio, strategy handlers) and workers/agent-sniper/positions.js first to reuse PnL math —
+do NOT reinvent it.
+
+Deliver:
+1. api/_lib/trader-stats.js — pure functions computing, for a given wallet/agent:
+ realized & unrealized PnL (SOL + USD) over 7d/30d/all-time, win rate, max drawdown, avg hold time,
+ unique coins traded, a wash-trade % estimate (self-trades / round-trips on same mint), copier count,
+ and AUM currently being copied. Survivorship-honest: include closed losers.
+2. GET /api/pump/trader/[wallet]/stats and GET /api/pump/leaderboard (ranked, paginated, filters:
+ timeframe, min closed trades, ai-vs-human, low-wash-only). Cache ~30s like api/pump/trending.js.
+3. Wire the daily rollup into the existing Solana attestation writer (api/_lib/solana-attestations.js)
+ so each trader's score is attested on-chain and independently verifiable. Use a new attestation
+ kind 'threews.tradescore.v1'.
+
+Real data only. Handle zero-trade wallets, brand-new wallets, and RPC failure at the boundary.
+Add a focused test that asserts stats against a hand-computed fixture of trades.
+Changelog entry under 'feature'. Run npm test + npm run typecheck before reporting done.
+```
+
+### Prompt B — Phase 1: Leaderboard + Trader Profile + Proof tab
+```
+Build the public leaderboard and trader profile for three.ws pump.fun social trading, on top of the
+Phase 0 stats endpoints (GET /api/pump/leaderboard, /api/pump/trader/:wallet/stats).
+
+Study src/kol/leaderboard.js, src/launches.js, src/pump/coin-status-card.js, and public/tokens.css
+to match existing patterns and the design system (phi spacing, glass-on-near-black, <agent-3d>).
+
+Deliver:
+1. /leaderboard page (pages/ + src/): traders ranked by 30d PnL/score, live-updating, with filters
+ (timeframe, min trades, AI vs human, low-wash-only) and a one-tap "Copy" CTA per row (stubbed to a
+ modal until Phase 2). Use the bonding-curve/coin-card visual language.
+2. /trader/:handle profile (extend the /u/:address pattern in src/erc8004/user-profile.js if it fits):
+ 3D avatar hero, headline stats, equity curve (SVG, no heavy deps — see bonding-curve-chart.js),
+ open positions, closed-trade history (winners AND losers), copier count + AUM, and a PROOF TAB where
+ every headline number links to the on-chain tx(s) that produced it.
+3. A shareable PnL card: extend the PNG export in src/dashboard-next/pages/holders.js. Card embeds the
+ trader's referral link.
+Add to public/nav-data.js (single source of truth — do not hand-edit menu markup elsewhere).
+Every state designed (empty/loading/error/overflow), mobile 320px, hover/active/focus on all controls.
+Run dev server, exercise in browser, no console errors. Changelog entry. npm test + typecheck.
+```
+
+### Prompt C — Phase 2: Non-custodial copy engine
+```
+Build the non-custodial copy-trading engine for three.ws. When a leader trades pump.fun, mirror a
+sized order to each copier's own wallet (they sign, or pre-authorize a session key with a spend cap).
+NEVER take custody of copier funds in this phase.
+
+Reuse: api/pump/[action].js buy-prep/sell-prep, api/_lib/pump-trade-args.js, the leader-trade signal
+from workers/agent-sniper/positions.js + the PumpPortal feed (api/_lib/pumpfun-ws-feed.js), and
+api/_lib/agent-pumpfun.js for wallet resolution. Read these before writing.
+
+Deliver:
+1. Migration: copy_subscriptions (copier_user_id, leader_wallet, sizing_rule {fixed_sol|pct_wallet|
+ proportional}, per_trade_cap_sol, mcap_floor_usd, status, high_water_mark, created_at) +
+ copy_executions ledger.
+2. A copy executor (worker or hooked into agent-sniper) that, on a leader buy/sell, computes each active
+ copier's sized order, runs safety pre-checks (honeypot / dev-holding / liquidity — flag & SKIP unsafe
+ copies, logging why), builds the prep tx, and delivers via push + a one-tap sign surface. Support
+ optional session-key pre-authorization for true one-tap repeat copies.
+3. Copy setup UI on the trader profile + a /dashboard copy-management page (active copies, allocation,
+ caps, pause/stop, per-copy PnL).
+Devnet-smoke a real mirrored trade first (extend scripts/pump-devnet-smoke.mjs), then mainnet-small.
+Enforce every cap. No mocks. Changelog. npm test + typecheck. Report devnet evidence explicitly.
+```
+
+### Prompt D — Phase 3: Performance-fee settlement
+```
+Add performance-fee settlement to three.ws copy trading. Leaders earn a fee ONLY on a copier's realized
+profit, with a high-water mark so the same gains are never charged twice.
+
+Reuse the $THREE rails exactly: api/_lib/token/config.js (split policies), api/_lib/pricing/charge-three.js,
+api/_lib/token/quote.js + payments.js (issueQuote/verifyOnChain/settlePayment), and the referral leg in
+api/_lib/purchase-confirm.js. Read api/_lib/three-tier.js for holder discounts.
+
+Deliver:
+1. New split policy 'copy_performance_fee' in token/config.js: leader 8000 / treasury 1000 / rewards 500 /
+ referrer 500 bps (must sum to 10000). Follow the marketplace_sale pattern.
+2. HWM accounting per (copier, leader): on a profitable close, charge the configured perf-fee % (leader-set,
+ capped) on realized profit above the high-water mark; settle in $THREE via charge-three.js with holder
+ discount applied. No fee on losses. Record in token_payments + agent_revenue_events.
+3. Leader earnings surface (reuse creatorEarnings()) on the trader dashboard; copier sees fees paid per copy.
+4. Auto-credit the referrer's 5% leg via the existing referral rail.
+Replay-protected (UNIQUE nonce + tx_signature already enforced). Verify the on-chain split end to end on
+devnet. No fee charged on a losing or break-even close — assert this in a test. Changelog. npm test + typecheck.
+```
+
+### Prompt E — Phase 4: Social loop & growth
+```
+Wire the social/growth loop for three.ws copy trading so wins spread and bring new users.
+
+Build on Phases 0-3. Reuse api/_lib/referrals.js (capture/claim/earnings), the notification system,
+and the PnL card from Phase 1.
+
+Deliver:
+1. A live trade feed scoped to the follow graph (follows, copiers) + "traders you follow also copy X"
+ recommendations computed from real copy data — not influencer noise.
+2. Push/notification on followed-trader trades and on your own profitable closes, with a one-tap
+ "share PnL card" (referral link embedded).
+3. A weekly "Trader Wrapped" recap (cron, like api/cron/rewards-distribute.js): best calls, copiers
+ gained, $THREE earned — delivered in-app + optional Telegram.
+4. A 'proven track record' verification badge gated on attested metrics (min closed trades, min realized
+ PnL, min unique coins, wash% below threshold). Show it on profiles + leaderboard.
+5. KOL pre-seed: use api/kol/[action].js Birdeye proxy to import real on-chain histories for a curated
+ set of known wallets → render them as unclaimed leaderboard profiles with a "claim this profile" flow.
+Every surface mobile-first, every state designed. Changelog per visible change. npm test + typecheck.
+```
+
+> Phase 5 prompts (vaults, tournaments, Telegram bot, Strategy Lab, NL-to-strategy, agent fantasy) — author once Phase 0-4 is converting. Each follows the same template: name the reusable files, demand real data + devnet proof + designed states + changelog + tests.
+
+## 8. The trading-agent "brain" prompts (for the AI traders themselves)
+
+These are the system prompts that make an *AI agent* a good, copy-able pump.fun trader. They run inside the agent-sniper / strategy execution path, not the build pipeline.
+
+### Base trader-agent system prompt
+```
+You are a pump.fun trading agent on three.ws with a real Solana wallet and a public, on-chain track
+record that other users can copy. Your reputation is your product: every trade you make is recorded,
+scored, and attested on-chain. You cannot hide losses, so do not chase them.
+
+Mandate: grow realized PnL with disciplined risk, not lucky degens. Your edge is process.
+
+Hard rules:
+- Position sizing: never risk more than {RISK_PCT}% of wallet on one coin. Respect the per-trade cap.
+- Entry: only enter coins meeting the armed strategy's filters (mcap band, liquidity floor, holder
+ distribution, dev-holding ceiling, volume/velocity). Skip honeypots and dev-heavy supply — flag why.
+- Exit: predefine take-profit and stop-loss BEFORE entry. Honor them mechanically. No "it'll come back."
+- Never wash-trade or self-trade to inflate stats — it is detected, penalized, and slashes your badge.
+- Narrate each decision in one plain sentence (for the live feed + your copiers): what, why, risk.
+
+You earn performance fees from copiers ONLY when they profit. Align with them: protect downside first.
+```
+
+### Natural-language → strategy compiler prompt
+```
+Convert the user's plain-English trading idea into a validated pump.fun strategy JSON matching the
+pump_agent_strategies schema (entry filters, sizing, take-profit, stop-loss, exit rules). Reject or
+ask once if the idea has no risk control (no stop, no cap) — never arm an unbounded strategy. Validate
+with the strategy-validate endpoint before returning. Output only the strategy JSON plus a one-line
+plain-English summary the user can confirm.
+```
+
+## 9. Risks, guardrails, and the lines we don't cross
+
+- **$THREE is the only coin we promote.** Trades use arbitrary runtime mints (allowed: runtime-data plumbing + platform launch records). Fees, passes, staking, prize pools are **$THREE only**. Never hardcode/recommend a specific non-$THREE mint in code, copy, or UI.
+- **Non-custodial first.** Don't ship vaults (custody) until the wedge proves trust. Reduces both regulatory surface and the "they took my money" objection.
+- **No fake track records.** Wash-trade detection + on-chain attestation are not optional — they are the product's credibility. Penalize, surface, and badge-slash gaming.
+- **Safety pre-checks before every copy.** Honeypot / dev-dump / liquidity screen. Blocking a bad copy and telling the user why is a trust feature, not friction.
+- **Fees only on realized profit, high-water-marked.** No fee on losses. This is the difference between a product traders love and a fee-extraction scheme they flee.
+- **Financial-risk honesty.** Every copy surface states plainly that copying is risky and past performance isn't a guarantee. Designed, not buried.
+- **Concurrent-agent worktree hygiene.** Stage explicit paths, re-check git before commit (other agents share `main`).
+
+## 10. Why this becomes the thing everyone uses
+
+Telegram-bot copy-trading exists, but it's: unverifiable screenshots, custodial risk, no social graph, no shareables, no AI-agent supply, ugly. We counter every one:
+
+- **Verifiable** (on-chain attested track records) → trust.
+- **Non-custodial** (your keys, one-tap) → adoption.
+- **3D-native shareables** (replays, PnL cards, avatar streamers) → virality nobody can copy.
+- **Everyone earns** (leaders, copiers-who-graduate, $THREE holders, referrers) → retention + word of mouth.
+- **AI agents as leaders** (infinite, improvable, ownable supply of copy-able talent) → a moat that compounds.
+
+Trading pump.fun stops being a lonely gamble and becomes a social game with provable winners and shared upside. That's the platform every crypto trader tells their friends about.
+```
diff --git a/docs/roadmap/pumpfun-trading-arena.md b/docs/roadmap/pumpfun-trading-arena.md
new file mode 100644
index 000000000..f2ec811e0
--- /dev/null
+++ b/docs/roadmap/pumpfun-trading-arena.md
@@ -0,0 +1,351 @@
+# The Pump.fun Trading Arena — Master Plan
+
+**Status:** Strategy / roadmap. Owner-facing. Last updated 2026-06-15.
+**Scope:** ONLY pump.fun trading, deploying, agent monetization, and copy-trading. Nothing else.
+**The only coin this platform promotes is `$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).** Pump.fun coins traded/launched through the platform are user runtime data, never endorsements.
+
+---
+
+## 0. The one-sentence pitch
+
+> **three.ws is where AI agents trade pump.fun live, on-chain, with verifiable track records — and anyone can copy the winners with one tap while the agent's creator earns a cut.**
+
+It's a Twitch + a hedge fund + a 3D game, for memecoin trading. The traders are AI agents with faces (3D avatars), they trade real money, you watch them win or lose in real time, and you can ride along.
+
+---
+
+## 1. Why we win (what already exists)
+
+Most "AI trading" products are vaporware: a prompt box and a fake equity curve. We have the opposite problem — we have the *engine* but haven't packaged it as a product anyone can feel.
+
+| Capability | Where it lives | State |
+|---|---|---|
+| Autonomous on-chain pump.fun execution from agent custodial wallets | `workers/agent-sniper/` | **Live (mainnet)** |
+| Strategy config (budget, concurrency, scoring, stop-loss/take-profit/trailing/timeout) | `agent_sniper_strategies`, `workers/agent-sniper/scorer.js` | **Live** |
+| Realized-P&L leaderboard | `api/sniper/leaderboard.js` | **Live** |
+| Live activity SSE stream | `api/sniper/stream.js` | **Live** |
+| Simulate → live mode (paper trade then graduate) | `workers/agent-sniper/config.js` (`mode`) | **Live** |
+| PumpPortal real-time feed + graduation detection | `api/_lib/pumpfun-ws-feed.js`, `services/pump-graduations/` | **Live** |
+| 3D avatar that reacts to the live feed | `pump-fun-skills/reactive/` | **Live** |
+| Buy/sell/launch (user-signed + agent-signed) | `api/pump/[action].js` | **Live** |
+| Anonymous paid launch (x402) | `api/x402/pump-launch.js` | **Live** |
+| Read-only intelligence MCP (25+ tools) | `packages/pumpfun-mcp/` | **Published** |
+| Agent reputation + on-chain attestations | `api/x402/agent-reputation.js`, `api/_lib/solana-attestations.js` | **Live** |
+| Monetization rail (x402, fee-sharing ledger, withdrawals, $THREE tiers, referrals) | `api/x402/*`, `2026-04-30-agent-monetization.sql`, `src/three-economy.js` | **Live** |
+| Per-agent custodial EVM+Solana wallets | `api/_lib/agent-wallet.js` | **Live** |
+
+**Conclusion:** the engine is real and trades real money today. The work is *productization, trust, fun, and the copy-trade money loop* — not core trading.
+
+---
+
+## 2. The flywheel (the only diagram that matters)
+
+```
+ ┌──────────────────────────────────────────────────────┐
+ │ │
+ ▼ │
+ More AGENTS compete ──► Public ARENA (live P&L, 3D faces) │
+ ▲ │ │
+ │ ▼ │
+ Creators promote Spectators COPY the winners (1 tap) │
+ their agents │ │
+ ▲ ▼ │
+ │ Followers earn ──► Leaders earn fees ─────┘
+ │ │
+ └──── $THREE demand ◄──────┘ (fee discounts, holder rev-share, tiers)
+```
+
+Every arrow already has infrastructure behind it except **"Spectators copy the winners"** and **"Leaders earn fees."** That's the build.
+
+---
+
+## 3. The product, surface by surface
+
+### 3.1 The Arena (`/arena`) — the front door
+The thing people screenshot. A live, public board of AI agents trading pump.fun **right now**.
+
+- **Grid of agent cards**, each with: 3D avatar (idle-animated, reacts to wins), live P&L today, open positions ticker, win rate, follower count, "COPY" button.
+- **Sort/filter**: 24h ROI, 7d ROI, win rate, followers, "hot streak", "new & rising", risk level.
+- **Live tape** down the side: real-time buys/sells from all agents (`api/sniper/stream.js` already streams this). Each event is a mini-card: avatar + "🟢 ApedFox bought 0.4 SOL of $XXXX — mcap $42k."
+- **Spectator energy**: the avatar that just took profit does a celebration emote (reactive skill already drives avatar gestures from the feed). Big wins trigger confetti + a toast everyone watching sees.
+- **Empty/loading/error**: skeleton cards; empty = "No agents live yet — be the first, deploy a trader in 60s →"; error = retry + status link.
+
+> **Outside-the-box:** make the Arena feel like a *spectator sport*. Round-based "seasons." A live "biggest win of the hour" banner. A "rekt cam" that (tastefully, opt-in) shows the biggest drawdown so it's not just survivorship theater — honesty builds more trust than a wall of green.
+
+### 3.2 The Agent Profile (`/arena/agent/:id`) — the proof page
+Trust is the entire game. This page exists to make "is this real?" answerable in 5 seconds.
+
+- **Equity curve** from `agent_sniper_positions` (real, on-chain, every trade links to Solscan).
+- **Stat block**: realized P&L, win rate, avg hold time, best/worst trade, max drawdown, Sharpe-ish consistency score, # closed positions, $ assets traded.
+- **Every trade is public + verifiable**: entry/exit, mcap at entry, exit reason (take-profit / stop-loss / trailing / timeout / graduation), tx links. No cherry-picking — the full ledger.
+- **"Why it traded"**: each trade has an AI-written one-line rationale (see Prompt B). Transparency is content.
+- **Track-record badges**: `Verified Profitable (30d)`, `100+ trades`, `Survived a -40% market`, `Paper→Live graduate`. On-chain-attested where possible (`solana_attestations`).
+- **COPY panel**: allocation input, risk cap, fee terms shown plainly, one tap to start.
+- **Followers tab**: who's copying, aggregate copied volume, leader's lifetime fee earnings.
+
+### 3.3 Deploy-a-Trader (`/arena/new`) — the on-ramp
+Turn a normal user into an agent owner in 60 seconds. No code.
+
+- **Plain-English strategy**: "Snipe fresh launches under $30k mcap with safe creators, take profit at 2x, stop at -30%, max 0.2 SOL per trade." → Strategy Author prompt (Prompt C) compiles it to an `agent_sniper_strategies` row, shown back as editable knobs.
+- **Pick a face**: choose/fork a 3D avatar (avatar fork schema exists).
+- **Starts in PAPER mode** automatically. Builds a real, timestamped track record with zero risk. This is the trust unlock *and* the cold-start solution.
+- **Graduate to LIVE**: once it clears a bar (e.g. 7 days + 20 trades + positive P&L), one click funds the agent wallet and flips `mode=live`. Now it's copyable and earns its owner fees.
+
+### 3.4 Copy-Trade (the money loop) — **the core new build**
+- Follower picks an allocation and a hard cap. Funds an **isolated copy-wallet** (agent-derived, withdrawable anytime — never a blind custodial deposit).
+- When the leader opens a position, the follower's wallet mirrors it **proportionally to allocation**, with the follower's own guardrails (max per trade, daily cap, global stop) layered on top — never blindly.
+- On a **profitable closed position**, a **performance fee** is taken with a **high-water mark** (you only pay on new profit, never twice). Split: **leader's owner gets the majority, platform takes a cut, $THREE holders get rev-share.**
+- All settled through the existing `agent_revenue_events` ledger + `agent_withdrawals`.
+
+**Fee model (proposed default — tune later):**
+- **Performance fee: 15%** of net new profit (high-water mark). → ~10% to leader owner, ~4% platform, ~1% to $THREE holder rev-share pool.
+- **No management fee.** Memecoin traders hate flat drag; charge only on wins. This is itself a marketing line: *"You only pay your agent when it makes you money."*
+- **$THREE holders get a discount** on the performance fee (e.g. 15% → 12% for top tier) — ties trading demand to the coin.
+- **Optional subscription tier** for premium agents (priority signal latency, private strategies) priced in $THREE via the existing tier system.
+
+### 3.5 Creator earnings dashboard (`/arena/earnings`)
+Owners see: followers, copied volume, fees earned (pending/withdrawable), per-agent breakdown, payout history. Withdraw to Solana/EVM. This page is what makes creators *promote their own agents for us* — the growth engine.
+
+---
+
+## 4. Trust & anti-gaming (without this, nothing else matters)
+
+Copy-trading dies the moment people suspect fake track records. Defenses:
+
+1. **On-chain or it didn't happen.** Every stat derives from `agent_sniper_positions` / on-chain trades. Every number links to Solscan. No off-chain "reported returns."
+2. **Full ledger, no cherry-picking.** Profiles show *every* closed trade, including losers and max drawdown. We surface losses on purpose.
+3. **Paper trades are clearly labeled** and never mixed into live track record. The "graduate" badge marks the live transition date.
+4. **Sybil resistance on copyable status.** To become copyable: minimum live-trade count, minimum live age, minimum real capital deployed (so a "leader" can't fake-trade dust to farm a curve). Attestations recorded on-chain.
+5. **Drawdown circuit breakers for followers.** Copy stops automatically if the leader breaches a follower-set max drawdown — followers are never strapped to a runaway.
+6. **Wash-trade / self-follow detection.** A leader can't profit from copying themselves; flag clustered wallets.
+7. **Honest consistency score**, not just total P&L — rewards steady winners over one-lucky-100x, which is the failure mode of every copy-trade platform.
+8. **Withdraw-anytime copy wallets.** Followers keep custody control; reduces "rug the followers" risk to near zero.
+
+---
+
+## 5. The "fun" / social layer (why they tell their friends)
+
+The engine is rational; the *growth* is emotional. Memecoin culture is loud, fast, and meme-driven. Lean in.
+
+- **3D avatars with personality.** The avatar is the trader's brand. It dances on a win, slumps on a loss (reactive skill already maps the feed to emotes). A profitable agent's avatar gets visibly *flashier* (cosmetics from the existing shop). Status is visual.
+- **Shareable trade cards.** Auto-generated image for every notable trade: avatar + "$XXXX +312% in 4 min 🚀" + verifiable link. Built for X. One tap to post. This is the organic acquisition loop.
+- **Seasons + leaderboards.** Weekly/monthly seasons, prizes (in $THREE / fee rebates), badges, streak counters. Resets keep newcomers competitive — no permanent incumbents.
+- **Hot-streak FOMO.** "🔥 ApedFox: 7 green trades in a row" surfaced on the Arena and pushed to followers.
+- **Live spectator chat** per agent during active trading. Spectators react; some convert to copiers in the moment of a big win.
+- **"Clone the champ."** Top agents are forkable as templates — clone the strategy, tweak it, paper-trade your variant, climb the board. Turns spectators into creators.
+- **Referral loop (exists).** Invite a friend; if their copied agent profits, both get fee rebates. Viral coefficient baked into the money.
+- **Agent vs agent.** Head-to-head matchups, bracket tournaments ("Pump Wars"), same starting capital, same window, public. Built-in narrative + content.
+
+> **Wildcard ideas worth prototyping:**
+> - **"Copy the consensus."** A meta-index that auto-allocates across the top N agents — an AI-managed pump.fun ETF. One tap, diversified, rebalanced. Most users want "just make me money," not picking a trader.
+> - **Live narration mode.** The agent's LLM rationale read aloud (Edge TTS already in the stack) over the Arena — sports-commentary energy for a memecoin trading stream.
+> - **"Backtest battle."** Submit a strategy, it forward-tests in paper against the live feed for 24h, ranked publicly. Low-stakes funnel into deploying.
+
+---
+
+## 6. The prompts (the agent brains)
+
+These are real, shippable system prompts grounded in the actual strategy schema (`scoreMint`, market-cap bands, stop-loss/take-profit/trailing/timeout, budget/concurrency caps). They run through the free-first LLM policy (`llmComplete`, never a single provider).
+
+### Prompt A — Pump.fun Trading Agent (the decision brain)
+```
+You are {AGENT_NAME}, an autonomous pump.fun trader on Solana. You trade REAL money
+from your own wallet. Capital preservation outranks upside: a missed trade costs nothing,
+a bad trade costs real SOL.
+
+YOUR MANDATE (set by your owner, do not exceed):
+- Max per trade: {MAX_SOL} SOL
+- Daily budget: {DAILY_BUDGET} SOL | Spent today: {SPENT_TODAY}
+- Max concurrent open positions: {MAX_CONCURRENT} | Currently open: {OPEN_COUNT}
+- Risk profile: {RISK_PROFILE} (conservative | balanced | degen)
+- Stop-loss: {STOP_LOSS_PCT}% Take-profit: {TAKE_PROFIT_PCT}% Trailing: {TRAIL_PCT}%
+ Max hold: {MAX_HOLD_MIN} min
+
+A NEW LAUNCH JUST APPEARED. Facts (all on-chain, do not invent any others):
+- Mint: {MINT} Name/symbol: {NAME}/{SYMBOL}
+- Market cap: ${MCAP} SOL in curve: {SOL_RESERVES} Age: {AGE_SECONDS}s
+- Creator: {CREATOR} | Creator history: {CREATOR_PRIOR_LAUNCHES} prior launches,
+ {CREATOR_RUG_COUNT} rugged, {CREATOR_GRAD_COUNT} graduated
+- Holders: {HOLDER_COUNT} Top-10 concentration: {TOP10_PCT}%
+- Social signals: {SOCIAL_SUMMARY} | Buy quote (price impact at {MAX_SOL} SOL): {PRICE_IMPACT}%
+
+DECIDE. Output STRICT JSON only:
+{
+ "action": "buy" | "skip",
+ "size_sol": <= MAX_SOL and <= remaining daily budget; 0 if skip,
+ "confidence": 0.0-1.0,
+ "stop_loss_pct": within mandate,
+ "take_profit_pct": within mandate,
+ "reason": "one sentence, plain English, the single biggest driver of this call",
+ "red_flags": ["..."] // empty if none
+}
+
+HARD RULES:
+- If creator has rugged before, or top-10 concentration > 50%, or price impact > {RISK_IMPACT_CAP}%,
+ default to SKIP unless a strong, specific offsetting signal exists — name it in "reason".
+- Never exceed the mandate. If a buy would breach budget/concurrency, SKIP.
+- You cannot see the future. Do not claim a token "will" pump. Trade probabilities, not certainties.
+- If signals are thin or contradictory, SKIP. Skipping is a valid, frequent, correct outcome.
+```
+
+### Prompt B — Trade Rationale / Narrator (transparency + content)
+```
+You are the voice of {AGENT_NAME}. Explain ONE trade to a human spectator in ≤ 240 chars.
+Confident but never hype. No price predictions. No financial advice. Plain language a
+first-time trader understands.
+
+Trade: {ACTION} {SIZE_SOL} SOL of {SYMBOL} at ${ENTRY_MCAP} mcap.
+Drivers: {STRUCTURED_REASON}
+Outcome (if closed): {PNL_PCT}% via {EXIT_REASON}.
+
+Write the single line that would go on a shareable trade card. Make it true, make it human.
+```
+
+### Prompt C — Strategy Author (plain English → config)
+```
+A user described how they want their pump.fun trading agent to behave. Convert it into a
+strict strategy config. Do NOT invent risk they didn't ask for; when they're vague, choose
+SAFE defaults and list every assumption you made.
+
+User said: "{USER_TEXT}"
+
+Output STRICT JSON matching agent_sniper_strategies:
+{
+ "max_sol_per_trade": number,
+ "daily_budget_sol": number,
+ "max_concurrent_positions": integer,
+ "mcap_min_usd": number, "mcap_max_usd": number,
+ "min_holders": integer, "max_top10_pct": number,
+ "require_safe_creator": boolean,
+ "stop_loss_pct": number, "take_profit_pct": number,
+ "trailing_stop_pct": number|null, "max_hold_minutes": integer,
+ "risk_profile": "conservative"|"balanced"|"degen",
+ "assumptions": ["plain-English note for each default you chose"]
+}
+
+Guardrails: stop_loss_pct is MANDATORY (never null). daily_budget_sol >= max_sol_per_trade.
+If the user asks for something reckless (no stop-loss, all-in sizing), include it but add a
+loud assumption explaining the risk so the UI can warn them.
+```
+
+### Prompt D — Risk Officer (adversarial pre-trade check)
+```
+You are an independent risk reviewer. The trading agent wants to BUY. Your ONLY job is to
+catch what it missed. Assume the trade is bad until the facts prove otherwise.
+
+Proposed: BUY {SIZE_SOL} SOL of {SYMBOL}. Agent's reason: "{AGENT_REASON}".
+Facts: {SAME_ONCHAIN_FACTS_AS_PROMPT_A}
+Mandate remaining: budget {BUDGET_LEFT} SOL, open slots {SLOTS_LEFT}.
+
+Output STRICT JSON:
+{ "veto": true|false,
+ "severity": "none"|"caution"|"block",
+ "reasons": ["specific, fact-based; no generic 'crypto is risky'"],
+ "size_adjustment": number|null // suggest a smaller size instead of a full veto
+}
+Veto (block) only for concrete, nameable danger: known-rug creator, extreme concentration,
+price impact that eats the edge, budget breach. Default to NOT vetoing on thin-but-clean
+setups — the agent already chose to skip the obvious junk.
+```
+
+### Prompt E — Launch / Deploy Agent (deploy a pump.fun coin)
+```
+You help a user deploy a pump.fun coin through three.ws. Be a careful operator, not a hype man.
+
+User intent: "{USER_TEXT}"
+Confirm and structure ONLY what they asked. Output STRICT JSON:
+{ "name": "", "symbol": "", "description": "",
+ "initial_buy_sol": number, // 0 if they didn't ask to ape their own launch
+ "image_action": "use_provided"|"generate"|"none",
+ "vanity_suffix": string|null, // only if requested
+ "front_run_protection": boolean,
+ "missing": ["anything required but not provided — ask the user for these, do not guess"] }
+
+NEVER recommend or name any token other than what the user is launching. Do not promote the
+coin. Do not promise returns. If name/symbol/image is missing, put it in "missing" — do not
+fabricate branding the user didn't give you.
+```
+
+### Prompt F — Copy-Trade Concierge (helps a spectator choose)
+```
+A user wants to copy an AI trader but doesn't know which. Recommend from the REAL data below —
+never invent agents or stats. Match their risk appetite, not the flashiest number.
+
+User said: "{USER_TEXT}"
+Candidate agents (live, verifiable): {AGENTS_JSON} // P&L, win rate, max drawdown, trades, consistency, followers, risk_profile
+
+Output STRICT JSON:
+{ "recommendations": [
+ { "agent_id": "", "why": "one honest sentence tied to their stated goal",
+ "suggested_allocation_sol": number, "suggested_max_drawdown_pct": number } ],
+ "caution": "one plain-English risk reminder — copying can lose money, past performance isn't future results" }
+Prefer consistent, lower-drawdown agents for cautious users; only surface high-variance agents
+to users who explicitly want degen risk. Always include the caution. Never guarantee profit.
+```
+
+---
+
+## 7. Build order (phased, each phase ships something usable)
+
+**Phase 0 — Make the engine visible (1 surface).** Build `/arena`: render live agents from `api/sniper/leaderboard.js` + `api/sniper/stream.js` with 3D avatars + reactive emotes. No new backend. *This alone is demo-able and screenshot-worthy.* Add a changelog entry.
+
+**Phase 1 — Proof pages.** Agent profile (`/arena/agent/:id`) with the full on-chain ledger, equity curve, badges, trade rationales (Prompt B wired into the sniper's trade record). Trust layer first, before any money moves.
+
+**Phase 2 — Deploy-a-Trader, paper mode.** `/arena/new` + Strategy Author (Prompt C). New agents start in `mode=simulate`. Solves cold start: people build track records risk-free and the Arena fills up.
+
+**Phase 3 — Graduate to live.** Funding flow + `mode=live` flip + copyable eligibility bar + on-chain attestation of the graduation. Now there are real, verifiable, live track records.
+
+**Phase 4 — Copy-trade (the money loop).** New tables (`agent_copy_followers`, `agent_copy_trades`), mirror logic in the sniper worker (proportional sizing + follower guardrails + drawdown breaker), high-water-mark performance fee through `agent_revenue_events`, isolated withdraw-anytime copy wallets. Creator earnings dashboard.
+
+**Phase 5 — Social/viral layer.** Shareable trade cards, seasons + prizes, hot-streak push, spectator chat, "clone the champ," referral fee rebates.
+
+**Phase 6 — Meta products.** Copy-the-consensus index, agent-vs-agent tournaments, live narration mode.
+
+Each phase is independently launchable and each one is a changelog event $THREE holders see.
+
+---
+
+## 8. New data model (minimal — extends what exists)
+
+```sql
+-- Who copies whom, on what terms
+agent_copy_followers (
+ id, leader_agent_id, follower_agent_id, follower_user_id,
+ allocation_sol numeric, max_drawdown_pct numeric, max_per_trade_sol numeric,
+ performance_fee_bps int, -- snapshot of fee at follow time
+ high_water_mark_lamports bigint, -- for fair perf-fee accounting
+ status text, -- active | paused | stopped
+ copy_wallet_pubkey text, created_at, updated_at )
+
+-- Each mirrored trade, linked back to the leader's position
+agent_copy_trades (
+ id, leader_position_id, follower_agent_id, follower_position_id,
+ signal_at, executed_at, size_sol numeric, realized_pnl_lamports bigint,
+ perf_fee_lamports bigint, revenue_event_id )
+
+-- Materialized leader stats per window (or compute at query time first)
+leader_performance_stats (
+ agent_id, period, win_count, loss_count, avg_pnl_pct, max_drawdown_pct,
+ consistency_score, total_followers, copied_volume_sol,
+ fee_revenue_lamports, refreshed_at )
+```
+Everything else (positions, revenue events, withdrawals, wallets, reputation) already exists.
+
+---
+
+## 9. Risks & how we hold the line
+
+- **Fake track records** → on-chain-only stats, full ledger, paper labeling, sybil bar for copyable status. (§4)
+- **Leader rugs followers** → isolated withdraw-anytime copy wallets + follower drawdown breaker; leader never custodies follower funds.
+- **Regulatory optics** → performance-fee-only, no "guaranteed returns" copy anywhere, mandatory risk caution in every copy flow (baked into Prompt F), "past performance ≠ future results" everywhere.
+- **RPC / fee spikes during volatility** → existing guardrails (price-impact breaker, idempotency lock, budget caps, global kill switch) extend to copy mirroring.
+- **Coin-policy compliance** → the Arena renders user-launched coins as runtime data only; $THREE is the only promoted coin, everywhere, always.
+- **AMM exits gap** (known) → finish graduated-position AMM exits before copy goes live, or followers get stuck in graduated positions.
+
+---
+
+## 10. The north star
+
+A new user lands on `/arena`, sees a 3D fox avatar do a backflip because it just 5x'd a launch, watches three more agents trade live in the tape, taps COPY on the steadiest one, funds 0.3 SOL, and 90 seconds later owns a position an AI picked — while the agent's creator quietly earns a cut. They screenshot the trade card, post it, and their friend signs up.
+
+That loop, done so well people can't not talk about it, is the whole plan.
diff --git a/docs/roadmap/pumpfun-trading-wedge.md b/docs/roadmap/pumpfun-trading-wedge.md
new file mode 100644
index 000000000..2bdfb26e8
--- /dev/null
+++ b/docs/roadmap/pumpfun-trading-wedge.md
@@ -0,0 +1,325 @@
+# Pump.fun Trading — The Wedge, the Reframes, and the Net-New Plays
+
+**Status:** strategy delta · **Last updated:** 2026-06-15
+**Read this *after* the two master plans — this is the sharpening layer, not a re-pour:**
+- [pumpfun-trading.md](pumpfun-trading.md) — full product surface map, copy-trade fee mechanics, base prompt library, 15 plays, cold-start.
+- [pumpfun-trading-arena.md](pumpfun-trading-arena.md) — Arena-first framing, prompts A–F, the SQL data model, anti-gaming.
+
+> Scope lock (same as the other two): pump.fun trading / deploying / copy-trade economy only.
+> The only coin the platform promotes is **$THREE** (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).
+> pump.fun coins traded/launched through the platform are user runtime data, never endorsements.
+> All examples below use `$TICKER` / `<mint>` placeholders.
+
+---
+
+## 0. Why this doc exists
+
+The two master plans converge on the same product: a live Arena of AI agents with 3D
+faces, verified on-chain track records, one-tap copy-trade, a high-water-mark performance
+fee that pays leaders, seasons, shareable cards, and a paper→live cold-start. That product
+is correct. This doc does **not** re-argue it.
+
+What both plans under-decide:
+1. **The wedge.** Both say "build the Arena." Neither commits to the *single* first
+ behavior that drags in the first 1,000 real crypto traders at zero behavior change.
+2. **What the moat actually is.** Both lean on "3D avatars = moat." The avatars are the
+ *distribution surface*. The moat is something else (§2.1).
+3. **Revenue that survives a bear market.** Both are perf-fee-only (15%). Perf fees are
+ zero when nobody's winning. We need a second, counter-cyclical rail (§3.4).
+4. **The net-new mechanics** that make us un-clonable instead of "Photon with avatars" (§3).
+
+---
+
+## 1. The wedge: *claim your wallet*, don't *deploy an agent*
+
+Both plans treat "Deploy a Trader (paper→live)" as the on-ramp. That's the **expansion**
+loop, not the wedge. Asking a degen to author a strategy and grow a paper record is a
+multi-day behavior change. It fills the Arena with *our* agents, not *their* attention.
+
+**The wedge is the import.** Every target user already trades pump.fun today — on Photon,
+BullX, Trojan, Axiom. Their track record already exists, on-chain, and earns them nothing
+beyond clout screenshots they can't prove. So:
+
+> **Paste your wallet → we reconstruct your real pump.fun P&L from the chain → you get a
+> verified, narrated, *unfakeable* track record and a 3D trader-card in 30 seconds. Make it
+> public, get copied, earn a cut. No new behavior, no deposit, no risk.**
+
+Why this is the wedge and "deploy an agent" is not:
+
+| | Claim-your-wallet (wedge) | Deploy-an-agent (expansion) |
+|---|---|---|
+| Behavior change | **Zero** — they already traded | High — author + tune a strategy |
+| Time to value | 30 seconds (read-only) | Days (build a paper record) |
+| Trust ask | None (we hold nothing) | None, but effort-heavy |
+| Viral artifact | Instant ("I'm +340% verified, prove me wrong") | Delayed |
+| Who it pulls | The *existing* degen crowd, en masse | Builders (smaller pool) |
+
+The claim flow needs **no funded signer and no custody** — it's a read-only chain indexer
+plus a narrator (Prompt §4.1). It is the single cheapest, fastest, lowest-risk thing to
+ship, and it is the top of every other funnel: a claimed wallet is a leader candidate, a
+copy target, a shareable card, and a referral node, all at once.
+
+**Sequencing call:** `claim` ships *before* `deploy`, *before* copy-execution, *before* the
+funded-signer decision. Deploy-an-agent and copy-execution layer on top of a board that's
+already populated with real humans' real records.
+
+---
+
+## 2. Three reframes that change what we build
+
+### 2.1 The moat is the verified track-record graph + the copy graph — not the avatars
+Avatars are the *skin* that makes the thing shareable and fun (keep them — they're the
+distribution surface and nobody else has them). But they're cloneable in a weekend. What
+compounds and can't be copied:
+
+- **The verified-performance graph:** a cross-wallet, on-chain-attested ledger of *who is
+ actually good*, risk-adjusted, with follower-outcome weighting. We become the issuer of
+ the credential the whole ecosystem references. (Builds on `solana_attestations`,
+ `api/x402/agent-reputation.js`.)
+- **The copy graph:** who follows whom, who made whom money. This is a social network with
+ a P&L attached to every edge. It's the retention moat and the data moat.
+
+Implication: invest disproportionately in **making the track record portable, provable, and
+referenced elsewhere** (a "Trader Passport," §3.1), and in the **follower-outcome metric**
+(profit actually delivered to copiers), because that's the number that's hardest to fake and
+the one that ranks honestly.
+
+### 2.2 We're a media company that happens to trade
+Every trade emits a piece of content: a ticker, a multiple, an avatar reaction, and a
+*reason*. The reasoning + the card is not a feature — **it is the acquisition channel.** The
+trading is the retention. Reframe the org chart of the product around that:
+
+- The **Clip Director** (Prompt §4.4) turns every notable close into the optimal artifact
+ per surface (X / Telegram / the in-app Feed).
+- Logged-out browsable Feed is the SEO + share surface. Login is required only to *act*.
+- The honest rationale ("entered because curve 68%, 3 fresh-wallet buys, creator has 2 prior
+ graduations") is more screenshot-worthy than a green number, because it *teaches* — and
+ teaching is what gets followed.
+
+### 2.3 Radical downside-transparency is the brand
+The space is wall-to-wall fake-screenshot scammers. The arena plan floats a "rekt cam" as a
+nicety. **Make it the brand.** We are *the only leaderboard that shows you the losers* — full
+ledger, every stop-out, max drawdown, rug-survival, no cherry-picking. In a market built on
+lies, verifiable honesty is the strongest possible wedge for trust, and trust is the entire
+copy-trade business. Tagline energy: *"Every trade. Even the bad ones. On-chain or it
+didn't happen."*
+
+---
+
+## 3. Net-new mechanics (the outside-the-box layer neither plan has)
+
+Curated to the highest-leverage. Each notes the rails it builds on so it's real, not a wish.
+
+### 3.1 The Trader Passport — a portable, on-chain reputation credential
+The track record shouldn't live only on our profile page. Mint it as an **on-chain
+attestation the trader owns** — a "Trader Passport" they can carry anywhere, that any other
+app can read and verify. We become the *issuer of record* for pump.fun trader reputation.
+- *Why it's a moat:* the credential standard is sticky; once other tools reference it, we're
+ infrastructure, not an app.
+- *Builds on:* `solana_attestations`, `api/_lib/solana-attestations.js`, the reputation
+ endpoint. The passport is the verified track record, signed and addressable.
+
+### 3.2 Alpha-drip — latency tiers on a leader's signal (the $THREE sink)
+A leader's edge decays in seconds. So sell the *latency*, not just the copy. A leader's own
+signal releases to **paid/holder copiers at t+0, free riders at t+N seconds** (leader-set).
+This is exactly how paid signal groups already work — except here it's enforced by the
+copy-engine and verifiable.
+- *Why it matters:* it's a real reason to *hold $THREE* (top tiers = lowest latency) and a
+ real product the leader can sell. Counter-cyclical: people pay for speed even in chop.
+- *Careful framing (see §5 risk):* this is the leader gating *their own* signal as a
+ subscription — not front-running third parties. Disclose it plainly; never imply
+ privileged access to *others'* orderflow.
+- *Builds on:* holder tiers (`three-tier.js`), the copy-engine fan-out, `charge-three.js`.
+
+### 3.3 Meta-allocator agents — the agent economy trades itself
+Both plans mention an "index of top agents" in passing. Make it a first-class agent type: an
+agent whose entire strategy is **allocate across the top-N risk-adjusted leaders and
+rebalance**. The leaderboard becomes an *input* to strategies, so the system compounds on
+itself — better leaders → better meta-agents → more copy demand → more leaders.
+- This is the diversified on-ramp for normies who want "just make me money," not a single
+ bet (lower variance → higher conversion of the cautious).
+- *Builds on:* leaderboard ranking + copy-engine fan-out + the perf-fee split prorated across
+ the basket's leaders. Prompt §4.2 is its brain.
+
+### 3.4 The execution vig — revenue that survives a bear market
+Perf-fee-only dies when nobody's green. Add a tiny **per-mirrored-trade execution fee** (a
+few bps, in $THREE, holder-discounted) on every copy execution, win or lose. It's small
+enough to be invisible, robust enough to fund the platform through chop, and it makes
+**priority execution for holders** a sellable feature (lower latency, better fills).
+- Keep perf-fee as the headline ("you only pay your agent when it wins"); the vig is the
+ quiet, counter-cyclical floor.
+- *Builds on:* `agent_revenue_events`, split policies in `token/config.js`.
+
+### 3.5 House-bankrolled first trade — kill the funding cliff
+The biggest drop-off after "claim your wallet" is "now fund a wallet." Remove it: the
+platform fronts a **micro real-money first position** (e.g. $1 of $THREE-denominated size)
+on the user's behalf for their first Co-Pilot trade. They keep the upside; the house eats a
+capped downside. One real win with zero deposit converts better than any amount of copy.
+- Bounded, abuse-modeled (one per verified identity), framed as a welcome — not a faucet.
+- *Builds on:* $THREE rewards pool, Co-Pilot sign flow, the first-rug-softener idea in
+ trading.md §12.15 (this is its cleaner, scoped sibling).
+
+### 3.6 The persistent 3D trading floor — the retention destination
+Spectating in `world.three.ws` (Hyperfy) is a tier-3 nicety in both plans. Promote it: a
+**persistent 3D trading floor** where agents trade live, humans walk in, watch the tape,
+hear the narration (Edge-TTS), fork a trade from the room, and voice-chat. This is what turns
+a tool you check into a place you *hang out* — Twitch-for-degens. The Hyperfy world,
+reactive avatars, and SSE trade stream already exist; this is assembly.
+
+### 3.7 Meme-first acquisition hooks — the first action is a meme, not a finance decision
+Don't open with "configure your risk parameters." Open with an emotion:
+- **"Fade the influencer."** One tap to copy the *inverse* of a provably-bad public wallet.
+- **"Copy the whale."** Ride a verified top wallet.
+- **"Beat your friend."** Head-to-head a friend's claimed wallet; loser posts the card.
+
+Each is a meme that *happens* to be a trade. The finance is the substrate; the hook is
+social. (Fade mode + agent-vs-agent exist as ideas in both plans — this reframes them as the
+*front door copy*, not a deep-menu feature.)
+
+### 3.8 B2B: the copy-execution + reputation API ("Plaid for trader reputation")
+The consumer app is one business. The bigger one: license the **verified-track-record API +
+copy-execution engine** to *other* pump.fun terminals. They get instant trust + a copy
+feature; we take a cut of every routed trade and become the reputation layer the category
+references. This is a different, larger TAM than the app and neither plan considers it.
+- *Builds on:* the same reputation endpoint, the copy-engine, x402 metering for API billing.
+
+---
+
+## 4. Net-new prompts (the ones the two libraries are missing)
+
+The two plans already ship ~14 solid prompts (Core Trader + strategy blocks, Research
+Analyst, Narrator, Risk Officer, Copy-Conductor, Sentiment Scout, Onboarding Coach;
+arena A–F). These four are the gaps that power the §1–§3 ideas. All run through the
+free-first LLM policy (`llmComplete`, never a single provider). $THREE-safe.
+
+### 4.1 Wallet-Import Track-Record Narrator (powers the wedge, §1)
+```
+You convert a wallet's REAL on-chain pump.fun history into a verified, HONEST track record.
+You do not trade. You never invent or round-up a number — every stat must trace to the
+provided on-chain trades. If data is missing, say so and lower confidence; never pad.
+
+INPUT: { wallet, trades: [ {mint, side, ts, size_quote, quote_symbol, entry_mcap,
+ exit_mcap, realized_pnl_quote, exit_reason} ... ] } // reconstructed from chain
+
+Produce STRICT JSON:
+{
+ "wallet": "<wallet>",
+ "verified_stats": {
+ "closed_trades": <int>, "win_rate_pct": <num>, "realized_pnl_quote": <num>,
+ "best_multiple": <num>, "worst_drawdown_pct": <num>, "avg_hold_min": <num>,
+ "median_size_quote": <num>, "days_active": <int>, "consistency_score": 0-100
+ },
+ "style": "sniper" | "swing" | "graduation_hunter" | "contrarian" | "mixed",
+ "honest_summary": "2-3 sentences INCLUDING the weaknesses — show a loss, name the risk",
+ "card_line": "<=80 chars, true, postable, no hype, no price prediction",
+ "copyability": { "copyable": bool, "reasons": ["e.g. too few live trades / dust-only / clean"] },
+ "confidence": "low|medium|high"
+}
+Rules: surface losses on purpose (downside-transparency is the brand). Rank-relevant metric
+is risk-adjusted consistency, not raw P&L. Never claim future performance. Reference no token
+other than the ones traded or $THREE.
+```
+
+### 4.2 Meta-Allocator (the ETF-of-degens brain, §3.3)
+```
+You allocate a fixed budget across VERIFIED leader agents and rebalance. You do not pick
+individual tokens; you pick leaders. You only use the real leaderboard data provided.
+
+INPUT: { budget_quote, risk_profile: "conservative"|"balanced"|"degen",
+ leaders: [ {agent_id, win_rate_pct, risk_adjusted_score, max_drawdown_pct,
+ follower_outcome_pnl, capacity_quote, correlation_group} ... ],
+ current_allocations: [...] }
+
+Output STRICT JSON:
+{ "allocations": [ {agent_id, weight_pct, size_quote, why: "one fact-based line"} ],
+ "excluded": [ {agent_id, reason} ],
+ "rebalance_rule": "plain-English trigger (e.g. drop a leader if 7d drawdown > X% or
+ correlation to an existing pick is too high)",
+ "caution": "one honest risk line" }
+Rules: diversify across correlation_groups — never concentrate the basket in one style.
+Weight by follower-outcome and risk-adjusted score, NOT raw P&L. Respect each leader's
+capacity_quote (don't allocate size that moves their fills). For conservative profiles cap
+single-leader weight and max_drawdown. Default to fewer, steadier leaders when uncertain.
+```
+
+### 4.3 Alpha-Drip Tiering (the latency-monetization brain, §3.2 — edgier, gate carefully)
+```
+You decide how a LEADER's OWN trade signal is released across the leader's OWN subscriber
+tiers. You are gating the leader's self-produced signal as a subscription product. You are
+NOT accessing, delaying, or front-running anyone else's orders — only the leader's own.
+
+INPUT: { trade_signal: {mint, side, size_quote, edge_thesis},
+ estimated_edge_halflife_sec, leader_capacity_quote,
+ tiers: [ {tier, max_latency_sec, subscriber_count} ... ] }
+
+Output STRICT JSON:
+{ "release_schedule": [ {tier, delay_sec, max_copy_size_quote} ],
+ "public_delay_sec": <int>, // when non-subscribers see it (can be "never" for the trade itself, always for the record)
+ "disclosure_line": "plain-English: 'subscribers get this signal first; this is the leader's own call, not privileged orderflow'",
+ "capacity_note": "how size was split so early tiers don't exhaust the leader's edge/capacity" }
+Rules: the full trade MUST always become part of the public on-chain record (no hidden
+trades — downside-transparency is non-negotiable). Tiering controls *timing of the copy
+signal*, never *whether the trade is disclosed*. Never imply access to third-party orderflow.
+If edge_halflife is very short, warn that tiering may not be fair to slower tiers and
+recommend equal release instead.
+```
+
+### 4.4 Clip Director (the content-engine, §2.2)
+```
+You turn ONE closed trade into the optimal shareable artifact per surface. You are a
+content director, not a trader. Truthful, human, no hype, no price predictions.
+
+INPUT: { agent_name, avatar_style, trade: {symbol, multiple, entry_mcap, exit_mcap,
+ hold_min, exit_reason, realized_pnl_quote, quote_symbol},
+ copied_by_count, surface: "x"|"telegram"|"feed" }
+
+Output STRICT JSON:
+{ "hook": "<=80 chars, the scroll-stopping first line, true",
+ "feature_stat": "the single most compelling REAL number to headline",
+ "avatar_gesture": "celebrate|shrug|sweat|point|wave",
+ "body": "1-2 lines: what happened + why, plain language",
+ "cta": "fork-this-trade | copy-the-agent | view-track-record",
+ "alt_text": "accessibility description of the card" }
+Rules: feature the real number; if the trade was a LOSS, still produce an honest card
+(brand = transparency) with a 'live to trade again' tone. Tune length/voice to the surface
+(X punchier, Telegram chattier, Feed mid). Reference no token other than the traded one or
+$THREE. Always include a verifiable angle (the record is on-chain).
+```
+
+---
+
+## 5. The sharpened first two weeks (one wedge, one metric)
+
+Both plans phase "Arena → Profile → Deploy → Copy." Sharper, wedge-first:
+
+1. **Week 1 — Claim + Card + Feed (read-only, zero custody, zero funded signer).**
+ - On-chain pump.fun history reconstructor → Wallet-Import Narrator (§4.1) → a verified,
+ honest Trader Card. Mint the Trader Passport attestation (§3.1).
+ - The logged-out, browsable Feed of claimed cards + the in-house paper agents (cold-start
+ from trading.md §13.1) running the real persona prompts against the live PumpPortal feed.
+ - Clip Director (§4.4) on every notable close → shareable card with a referral hook.
+ - **This is fully shippable now** — it's indexer + LLM + render. No new custody surface.
+
+2. **Week 2 — Co-Pilot + House-bankrolled first trade.**
+ - Co-Pilot (suggest → user signs their own wallet) from any card/Feed item — the
+ existing `buy-prep → sign → buy-confirm` flow + the trader prompt's structured output.
+ - House-bankrolled first position (§3.5) to kill the funding cliff.
+ - Still **no delegated custody.** Full auto-copy (session keys moving real follower funds)
+ stays the *last* gate, after the funded-signer/custody decision — same call both plans
+ make, just stated louder.
+
+**The one metric for this phase:** *number of verified Trader Cards made public, and the
+share rate per card.* Not trades, not volume — the wedge is identity + proof + virality.
+Copy-volume is a Phase-2 metric and depends on custody being resolved.
+
+---
+
+## 6. Housekeeping: consolidate the two master plans
+
+`pumpfun-trading.md` (committed, currently modified) and `pumpfun-trading-arena.md`
+(untracked draft) are ~80% the same plan written twice. Two competing canonical plans is a
+liability — they will drift. Recommendation: **fold the arena draft's unique value (the SQL
+data model §8, the verified-capability table §1, prompts A–F) into `pumpfun-trading.md` as
+the single source of truth, then delete the arena draft.** This doc (the wedge/reframes/
+net-new layer) stays as the delta on top. Not done here to avoid clobbering files other
+agents are actively editing — needs a clean, owned pass.
diff --git a/docs/roadmap/pumpfun-trading.md b/docs/roadmap/pumpfun-trading.md
index e7aa7981c..f2b2c0626 100644
--- a/docs/roadmap/pumpfun-trading.md
+++ b/docs/roadmap/pumpfun-trading.md
@@ -1,6 +1,6 @@
# Pump.fun Trading — Product Plan & Prompt Library
-**Status:** planning · **Owner:** TBD · **Last updated:** 2026-06-15
+**Status:** planning · **Owner:** TBD · **Last updated:** 2026-06-15 (creative-plays + cold-start expansion)
> Scope lock: this document is *only* about pump.fun trading, deploying, and the
> copy-trade / earn-when-copied economy around it. Everything else (forge,
@@ -530,3 +530,219 @@ Default to VETO when uncertain. Capital preservation is your only mandate.
4. **Real vs. paper for v1 Arena leaders** — paper-trade to seed a credible board
without funded-signer risk, then graduate to real.
5. **Mainnet funded signer path** — the recurring blocker; needs an ops decision.
+
+---
+
+## 12. Outside-the-box plays (the creative expansion)
+
+The §3 surfaces are the skeleton. These are the mechanics that make it *fun*,
+*shareable*, and hard to leave. Ranked by leverage. Every one is buildable on
+rails we already have; the "builds on" note proves it.
+
+### Tier 1 — ship-these-first conversion engines (no custody, no funded signer)
+
+**12.1 Co-Pilot mode (suggest → one-tap approve).**
+The bridge between "I'll never give a bot my wallet" and full auto-copy. The
+agent surfaces a fully-formed trade — ticker, size, reasoning, TP/SL — and the
+user taps **Do it**; their own wallet signs. No delegation, no custody, no
+session key. This is the single highest-converting mechanic because it removes
+the trust cliff: the user feels the agent's edge with their finger on the
+trigger the whole time. Graduate users from Co-Pilot → full Copy once they trust
+a leader. *Builds on:* existing `buy-prep` → user-sign → `buy-confirm` flow +
+the trader prompt's structured output. **Zero new custody risk.**
+
+**12.2 Ghost-copy (paper-copy any agent).**
+"Copy" any leader with fake money. We simulate every trade they make against
+real prices and show the user *their* hypothetical equity curve: "If you'd
+ghost-copied DegenDestroyer for 7 days with 1 SOL, you'd be +0.34 SOL." Builds a
+*personal* trust record before a cent moves. Infinite top-of-funnel, zero
+custody, and the conversion prompt writes itself ("you left +0.34 SOL on the
+table — go live?"). *Builds on:* `strategy-backtest.js` simulation engine +
+positions ledger; just runs forward in real time instead of over history.
+
+**12.3 Fork-this-trade (the atomic social action).**
+Every trade everywhere — Feed card, X post, Telegram message, an agent profile's
+log — carries a one-tap **Fork** that opens the *same* trade pre-filled in the
+user's wallet at their chosen size. Turns every shared win into a conversion
+surface. The unit of virality isn't "follow me," it's "do what I just did, right
+now, in one tap." *Builds on:* deep-linkable trade params + Co-Pilot sign flow +
+`deliver-telegram.js`.
+
+**12.4 Trader Wrapped / Season recap.**
+Spotify-Wrapped for trading: an auto-generated, gorgeous, swipeable recap of a
+user's (or their agent's) week/season — best trade, biggest multiple, win rate,
+"you beat 87% of traders," rival head-to-head, the avatar reacting. One tap to
+post. Identity + flex + referral link in one artifact. *Builds on:* PnL-card
+renderer (§6.1) + positions ledger + reputation metrics.
+
+**12.5 Talk to your trader (voice/chat trading via the avatar).**
+Natural-language trading through the 3D avatar: "ape 0.3 into whatever's about to
+graduate," "show me the top sniper's last 5 trades," "sell half my $TICKER." The
+avatar answers in voice + emotes, surfaces the trade, user confirms. Nobody in
+the pump.fun terminal space has a *face* or a *voice* — the avatar layer is our
+moat, so make it the *interface*, not decoration. *Builds on:* `reactive` skill,
+edge-TTS readaloud, MCP read tools, Co-Pilot confirm.
+
+### Tier 2 — engagement & retention loops
+
+**12.6 Agent prediction markets.**
+Bet $THREE on "AgentX out-performs AgentY this week" — a separate engagement +
+revenue loop from copying. Spectators get skin in the game without trusting a
+bot with their main bag; it's a $THREE sink; it manufactures rivalries (§6.5)
+with money behind them. Resolve from the verified PnL ledger. *Builds on:*
+`agent_sniper_positions` for settlement, `charge-three.js`, holder tiers for
+fee discounts. (Keep it clearly a skill-prediction game; mind the regulatory
+framing in §9.)
+
+**12.7 Syndicates (social copy-pools).**
+Followers of a leader form a named **syndicate** with a shared chat, a group
+equity curve, and a leaderboard *against other syndicates*. Tribalism is the
+strongest retention force in crypto — give people a team, a flag, and an enemy.
+Leaders run syndicates as their fan club; the group dynamic keeps followers in
+even through a drawdown. *Builds on:* referral graph, leaderboard compute,
+copy-engine.
+
+**12.8 Inverse / Fade mode.**
+One tap to copy the *inverse* of a provably-terrible wallet ("everyone knows a
+guy who's a perfect reverse indicator"). Hilarious, endlessly shareable, and
+occasionally genuinely +EV. Pure content that doubles as a real strategy.
+*Builds on:* same copy-engine with a sign flip + a "consistently-losing wallet"
+screen over the trades index.
+
+**12.9 Index agents (the "ETF of degens").**
+One tap to copy a *basket* — "Top 5 Snipers," "This Week's Hottest," "Balanced
+Risk Index" — auto-rebalanced weekly from the Arena. Lower-variance entry product
+for normies who don't want to pick a single leader. The diversified on-ramp that
+converts the cautious. *Builds on:* leaderboard ranking + copy-engine fan-out +
+the 70/20/10 split prorated across the basket's leaders.
+
+**12.10 Sentiment-sourced trades with receipts.**
+When an agent trades partly on social signal, it shows the *source*: "bought
+because volume spiked 4x AND 3 tracked accounts posted $TICKER in 10 min" with
+the links. Transparency *is* content — it's a reason to screenshot, and it
+teaches followers why the edge is real. *Builds on:* channel-feed, a sentiment
+scout sub-agent (prompt 10.7), `get_token_trades`.
+
+### Tier 3 — texture, status, distribution
+
+- **12.11 Daily streaks & quests.** "Make 3 trades", "ghost-copy a new agent",
+ "share a win" → small $THREE / cosmetic rewards. Habit formation. *Builds on:*
+ $THREE rewards + cosmetics economy.
+- **12.12 Embeddable "copy me" widget.** A leader drops a live trade-card widget
+ in their X bio / site / stream overlay; strangers fork trades from it. Turns
+ every leader's existing audience into our funnel. *Builds on:* `<agent-3d>`
+ web component pattern + Fork deep-links.
+- **12.13 Live trade rooms in the world.** Spectate a leader trading live inside
+ `world.three.ws` (Hyperfy) — avatars, voice, a shared ticker tape, one-tap fork
+ from the room. Twitch-for-degens. *Builds on:* existing Hyperfy world + reactive
+ avatars + SSE trade stream.
+- **12.14 Auto-rivalry engine.** Leaderboard deltas auto-generate grudge-match
+ copy + matchups ("ValueVulture just passed DegenDestroyer — clap back?"). Free,
+ endless, on-brand content. *Builds on:* leaderboard diffs + narrator prompt.
+- **12.15 First-rug softener (careful).** An optional $THREE-funded community pool
+ that partially reimburses a *first-time* follower's first rug, gamified as a
+ welcome guarantee. Big trust unlock for normies — but model the abuse surface
+ and regulatory framing before building. Flagged, not committed.
+
+---
+
+## 13. Cold-start playbook (how the flywheel actually starts spinning)
+
+The §0 flywheel only turns if the *first* leaders and followers show up. Chicken-
+and-egg is the real risk, not the tech. Concretely:
+
+1. **Seed the Arena with in-house paper-traded agents on day one.** Run the five
+ persona prompts (§10.2) live against the *real* PumpPortal feed, executing as
+ **paper trades** (ghost P&L). This produces a credible, populated, live
+ leaderboard with real reasoning and real reactions — **with zero funded-signer
+ risk and zero custody.** The Arena looks alive before a single external user
+ arrives. Mark paper agents honestly ("Paper" badge); graduate the best to real
+ capital once a funded path exists.
+2. **Recruit human alpha by claiming their on-chain past.** Invite known
+ profitable wallets; let them *claim* their existing on-chain trade history into
+ a three.ws profile (verifiable, unfakeable) and instantly have a track record +
+ a way to earn. Their existing audience becomes our first followers. The pitch:
+ "your edge already exists on-chain and earns you nothing — wrap it here and get
+ paid when people copy it."
+3. **Make the Feed logged-out browsable.** A cold visitor sees wins + reasoning +
+ Copy buttons in 30 seconds, no signup wall. SEO surface + share surface +
+ instant value demo. Login is required only to *act*, never to *watch*.
+4. **Pay the first leaders in $THREE.** A bounded early-leader program: bonus
+ $THREE rewards for the first N agents/humans who hit verified track-record
+ thresholds (e.g. 30 days, >55% win rate, positive follower outcomes). Manufactures
+ supply of credible leaders before organic demand exists. *Builds on:* $THREE
+ rewards + reputation gates.
+5. **Push wins to where degens already live.** Telegram + X bots (§3.8) broadcast
+ notable trades out of the platform with Fork/Copy deep-links back in. Don't wait
+ for traders to come to the site; put the product in their existing feed.
+6. **Sequence around the blocker.** Everything in steps 1–5 plus all of §12 Tier 1
+ (Co-Pilot, Ghost-copy, Fork, Wrapped, voice) needs **no funded mainnet signer
+ and no custody** — it's read-only data + paper sim + user-signs-their-own-trade.
+ That means the *entire social/viral shell and conversion funnel can ship and
+ grow before* the custody/funded-signer decision (§9) is resolved. Full auto-copy
+ (delegated session keys moving real follower funds) is the *last* gate, not the
+ first. **This is the most important sequencing call in the doc.**
+
+---
+
+## 14. Three more prompts (copy-engine, sentiment scout, onboarding coach)
+
+### 14.1 Copy-Conductor (adapts a leader's trade to each follower)
+
+```
+You translate a LEADER's trade into a FOLLOWER's trade, respecting the follower's
+risk profile. You never invent trades; you only adapt the leader's actual trade.
+
+INPUT: the leader's executed trade (mint, side, leader_size, leader_wallet_pct),
+the follower POLICY (budget, per-trade cap, daily cap, max slippage, min
+liquidity, max concentration, copy_ratio), and the follower's current positions.
+
+RULES
+- Scale size by the follower's copy_ratio and caps, never the leader's raw size.
+- Refuse (emit SKIP) if: the buy would breach any follower cap, liquidity is below
+ the follower's floor, price impact at the follower's size exceeds max slippage,
+ or the follower already holds max concentration in this mint.
+- For sells, mirror proportionally to the follower's actual holding, not the
+ leader's.
+- Never let a follower's mirrored buy exceed a safe fraction of pool liquidity.
+
+OUTPUT JSON:
+{ "action": "BUY"|"SELL"|"SKIP", "mint": "<mint>", "size": <amount+asset|null>,
+ "reason": "one line", "tp_pct": <num|null>, "sl_pct": <num|null> }
+Default to SKIP when uncertain. The follower's caps are inviolable.
+```
+
+### 14.2 Sentiment Scout (sourced signal, with receipts)
+
+```
+You surface social + on-chain momentum for pump.fun tokens. You do NOT trade.
+You return candidates with EVIDENCE another agent can cite to followers.
+
+For each candidate return JSON:
+{ "mint": "<mint>", "ticker": "$TICKER", "momentum_score": 0-100,
+ "evidence": [ { "type": "volume_spike|fresh_buyers|social_mention|graduation_approach",
+ "detail": "concrete number or quote", "source": "url|tool" } ],
+ "caution": "one line on the main risk" }
+Cite only real, retrievable evidence (tool output, a real post URL). Never
+fabricate a mention, a follower count, or a number. If evidence is thin, lower the
+score — do not pad it. Reference no token other than the candidate or $THREE.
+```
+
+### 14.3 Onboarding Coach (converts a cautious first-timer)
+
+```
+You are a friendly guide for a brand-new user who has never copy-traded. Goal:
+get them to a confident first action with the SMALLEST safe step. You never push,
+never promise returns, always disclose risk plainly ("you can lose what you put
+in").
+
+Path you steer toward, in order:
+1. Browse the Feed (no signup) — show them a verified win and its reasoning.
+2. Ghost-copy a top agent (fake money) — let them feel the edge risk-free.
+3. Co-Pilot one real trade at the minimum size, their wallet, their tap.
+4. Only then mention full Copy with caps.
+
+Always explain WHY a step is safe (non-custodial, hard caps, they sign). Answer
+in 1-3 short sentences. If they ask for guarantees, say plainly there are none and
+point to the verified track record + skin-in-the-game as the honest signal.
+```
diff --git a/pages/club.html b/pages/club.html
index 9c6dcd9e4..b258fecba 100644
--- a/pages/club.html
+++ b/pages/club.html
@@ -1542,7 +1542,7 @@
<section class="club-section" aria-label="How it works">
<h2 id="club-howto-heading">How it works</h2>
<p class="club-intro">
- Four poles, four dancers waiting at them. Pick a pole, pick a style, hit
+ Three poles, three dancers waiting at them. Pick a pole, pick a style, hit
<b>Tip</b>. Your wallet signs a <b>$0.001 USDC</b> x402 payment, the
server settles it on-chain, and she takes the pole and performs her
routine. No tip, no dance.
@@ -1557,7 +1557,7 @@
<span id="club-auto-follow-desc">Auto-follow tips (orbit cam during dance)</span>
</label>
<p class="club-hint">
- Shortcuts: <b>1</b>-<b>4</b> VIP <b>0</b> overhead <b>Esc</b> free
+ Shortcuts: <b>1</b>-<b>3</b> VIP <b>0</b> overhead <b>Esc</b> free
</p>
</section>
diff --git a/public/changelog.json b/public/changelog.json
index c411a44a6..ea6621d0e 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-15T21:28:35.385Z",
+ "generated_at": "2026-06-15T21:48:52.845Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -108,6 +108,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "Buy any coin straight from the Pump Visualizer",
+ "summary": "Click a coin in the Pump Visualizer and you can now buy it on the spot — no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins.",
+ "link": "/pump-visualizer",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
@@ -141,11 +151,11 @@
{
"date": "2026-06-15",
"type": "update",
- "title": "Four distinct dancers, now waiting at their poles",
- "summary": "The Pole Club stage no longer sits empty between tips. All four dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — and each is a different 3D model instead of four copies of one, so Aria, Nova, Blaze, and Luna actually look like four different performers (still tinted to their pole's neon color). Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second.",
- "link": "/club",
+ "title": "Fixed the footer floating over the avatar viewer",
+ "summary": "On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model — and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed.",
+ "link": "/marketplace",
"tags": [
- "improvement"
+ "fix"
]
},
{
@@ -179,6 +189,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "More uploaded avatars can dance",
+ "summary": "The built-in animation library can now drive avatars built on CharacterStudio and Unreal Engine skeletons, not just Mixamo/Ready-rig ones. Previously a CharacterStudio or Fortnite-style rig would load but stand frozen because the animation system couldn't match its bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear — the club, the walk view, AR, and the studio.",
+ "link": "/club",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
@@ -303,6 +323,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "Sniper agents can now buy on a creator's first reward claim",
+ "summary": "The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in \"first claim\" mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault — an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe — mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin — and manages the position to its exit automatically.",
+ "link": "/play/arena",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
@@ -405,6 +435,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "Three distinct dancers, now waiting at their poles",
+ "summary": "The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto CharacterStudio and Unreal-mannequin rigs too, so far more uploaded avatars can actually dance.",
+ "link": "/club",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
@@ -438,6 +478,17 @@
"feature"
]
},
+ {
+ "date": "2026-06-15",
+ "type": "update",
+ "title": "Verify the $THREE economy on-chain — no \"trust us\"",
+ "summary": "The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply — instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain.",
+ "link": "/three",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-15",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 267f6504a..949b8cfb2 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -86,6 +86,14 @@
<category>feature</category>
<description>The in-world trade widget now speaks both currencies. Open Buy on a coin and the widget reads its real pairing from the chain: a SOL coin asks for SOL exactly as before, while a USDC-paired coin denominates the amount in USDC, shows your wallet's USDC balance, and prices and settles the trade in USDC. A new Sell tab lets you sell a coin you hold back to its quote asset — pick 25%, 50%, or Max of your balance, see the live payout, and sign once; for USDC coins the payout account is opened for you automatically in the same transaction. Every state is handled: not enough USDC offers a one-tap Add-funds flow, a moved price explains your slippage, and a cancelled signature is quietly acknowledged. The whole flow is your own wallet, signed in your browser, with a Solscan link the moment it lands.</description>
</item>
+ <item>
+ <title>Buy any coin straight from the Pump Visualizer</title>
+ <link>https://three.ws/pump-visualizer</link>
+ <guid isPermaLink="false">2026-06-15:Buy any coin straight from the Pump Visualizer</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Click a coin in the Pump Visualizer and you can now buy it on the spot — no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins.</description>
+ </item>
<item>
<title>Camera AR on /irl now turns on</title>
<link>https://three.ws/irl</link>
@@ -111,12 +119,12 @@
<description>When a token launch or an in-world trade can't go through, the app now tells you exactly why and what to do next — &quot;Not enough SOL to cover the launch + network fees,&quot; &quot;Price moved beyond your slippage limit,&quot; &quot;You cancelled the signature in your wallet,&quot; or &quot;Couldn't reach the Solana network&quot; — instead of a single catch-all &quot;Connection error.&quot; Coins also show their lifecycle at a glance: the trade panel carries a badge marking whether a coin is still on its bonding curve or has graduated to the PumpSwap AMM, so a graduated coin is unmistakable. Backed by new end-to-end browser tests that drive the full four-step launch flow and the buy/sell widget so this conversion path can't silently break.</description>
</item>
<item>
- <title>Four distinct dancers, now waiting at their poles</title>
- <link>https://three.ws/club</link>
- <guid isPermaLink="false">2026-06-15:Four distinct dancers, now waiting at their poles</guid>
+ <title>Fixed the footer floating over the avatar viewer</title>
+ <link>https://three.ws/marketplace</link>
+ <guid isPermaLink="false">2026-06-15:Fixed the footer floating over the avatar viewer</guid>
<pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
- <category>improvement</category>
- <description>The Pole Club stage no longer sits empty between tips. All four dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — and each is a different 3D model instead of four copies of one, so Aria, Nova, Blaze, and Luna actually look like four different performers (still tinted to their pole's neon color). Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second.</description>
+ <category>fix</category>
+ <description>On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model — and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed.</description>
</item>
<item>
<title>Homepage Forge is more reliable — no more &quot;busy&quot; on the second model</title>
@@ -142,6 +150,14 @@
<category>improvement</category>
<description>The launches feed, agent profile token panels, and the in-world agent coin card now share one live coin-status display, so every place that shows a coin reads the same numbers from the same source. Launch cards now stream the coin's real logo, USD price, market cap, a graduation progress ring and time since launch — not just market cap — with the orbital fingerprint as a placeholder until the logo loads. Agent profiles show a live price-and-graduation chip in the token panel and per-coin market caps in the launch history, and the agent home card's market readout is now consistent with the rest of the platform. Each card refreshes on its own and degrades gracefully to a Retry if pump.fun is briefly unreachable.</description>
</item>
+ <item>
+ <title>More uploaded avatars can dance</title>
+ <link>https://three.ws/club</link>
+ <guid isPermaLink="false">2026-06-15:More uploaded avatars can dance</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The built-in animation library can now drive avatars built on CharacterStudio and Unreal Engine skeletons, not just Mixamo/Ready-rig ones. Previously a CharacterStudio or Fortnite-style rig would load but stand frozen because the animation system couldn't match its bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear — the club, the walk view, AR, and the studio.</description>
+ </item>
<item>
<title>On-chain model validation for Solana agents</title>
<link>https://three.ws/changelog</link>
@@ -238,6 +254,14 @@
<category>feature</category>
<description>Animations you build in the Studio can now be listed for sale. Pose a figure, drop your keyframes, save the clip, then hit Sell — set a price in USDC (or list it free) and three.ws bakes a self-contained animated GLB and publishes it to a new &quot;From creators&quot; shelf in the animation marketplace. Buyers see a poster, the creator, length and price; free clips download in one click, and paid clips are unlocked by paying once in USDC on Base or Solana — re-download free forever from the same wallet. Earnings settle straight to your payout wallet, and your motion data stays gated behind the paywall until someone buys.</description>
</item>
+ <item>
+ <title>Sniper agents can now buy on a creator's first reward claim</title>
+ <link>https://three.ws/play/arena</link>
+ <guid isPermaLink="false">2026-06-15:Sniper agents can now buy on a creator's first reward claim</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in &quot;first claim&quot; mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault — an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe — mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin — and manages the position to its exit automatically.</description>
+ </item>
<item>
<title>Sniper Arena — watch AI agents trade pump.fun live</title>
<link>https://three.ws/play/arena</link>
@@ -318,6 +342,14 @@
<category>feature</category>
<description>The club now has a line outside. Before the room opens you pay a $0.01 USDC cover at the door via x402, and an on-chain bouncer checks the paying wallet — banned wallets are turned away, everyone else gets in with a door tier (newcomer, regular, or VIP) based on their past club nights. Pay once and you're in for the night; reopen the page and the velvet rope drops automatically. The 3D room loads behind the door while you're in line, so it's warm the moment you step in.</description>
</item>
+ <item>
+ <title>Three distinct dancers, now waiting at their poles</title>
+ <link>https://three.ws/club</link>
+ <guid isPermaLink="false">2026-06-15:Three distinct dancers, now waiting at their poles</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto CharacterStudio and Unreal-mannequin rigs too, so far more uploaded avatars can actually dance.</description>
+ </item>
<item>
<title>three.ws can now register itself on-chain on Solana</title>
<link>https://three.ws/.well-known/agent-registration.json</link>
@@ -342,6 +374,14 @@
<category>fix</category>
<description>Coins launched against USDC are now tracked in the right currency end to end. Every buy and sell records which quote asset it actually used and how much of it moved — USDC amounts in USDC, SOL amounts in SOL — instead of quietly storing a USDC trade as if it were SOL and reporting a price and market cap that were off by orders of magnitude. Portfolios now subtotal holdings separately by quote asset, so your SOL positions and USDC positions each get their own value, cost basis, and unrealized P&amp;L with no more mixing of mismatched units. Existing SOL trades are unchanged, and historical rows were backfilled as SOL-paired so nothing shifts.</description>
</item>
+ <item>
+ <title>Verify the $THREE economy on-chain — no &quot;trust us&quot;</title>
+ <link>https://three.ws/three</link>
+ <guid isPermaLink="false">2026-06-15:Verify the $THREE economy on-chain — no &quot;trust us&quot;</guid>
+ <pubDate>Mon, 15 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply — instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain.</description>
+ </item>
<item>
<title>Walk into the Pole Club as your own 3D avatar</title>
<link>https://three.ws/club</link>
diff --git a/public/features.json b/public/features.json
index 1f3b993a6..2cbb2290d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-15T21:28:34.755Z",
+ "generated_at": "2026-06-15T21:48:52.829Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/style.css b/public/style.css
index ccc64b4e2..466255d46 100644
--- a/public/style.css
+++ b/public/style.css
@@ -976,7 +976,7 @@ header h1 .wordmark-logo {
padding: var(--space-xs) var(--space-md);
}
- footer:not(.h-footer) {
+ footer:not([class*="h-footer"]) {
bottom: auto;
top: calc(3rem + 0.5em);
left: 0.5em;
@@ -1046,10 +1046,13 @@ header h1 .wordmark-logo {
*/
/* Legacy corner credit footer (3D viewer/editor pages). Scoped with
- * :not(.h-footer) so it never hijacks the canonical site footer
- * (<footer class="h-footer h-footer-horizon">), which is a full-width
- * block section with its own layout, positioning, and clickable controls. */
-footer:not(.h-footer) {
+ * :not([class*="h-footer"]) so it never hijacks the canonical site footer,
+ * which ships in two class forms — <footer class="h-footer h-footer-horizon">
+ * and <footer class="h-footer-horizon"> — and is a full-width block section
+ * with its own layout, positioning, and clickable controls. Matching only
+ * .h-footer left the bare-.h-footer-horizon pages (avatar, etc.) exposed, so
+ * this floating-badge style leaked onto the real footer and overlapped it. */
+footer:not([class*="h-footer"]) {
position: absolute;
bottom: calc(4rem + env(safe-area-inset-bottom, 0));
right: calc(var(--space-md) + env(safe-area-inset-right, 0));
@@ -1063,7 +1066,7 @@ footer:not(.h-footer) {
pointer-events: none;
}
-footer:not(.h-footer) a {
+footer:not([class*="h-footer"]) a {
pointer-events: all;
color: rgba(255, 255, 255, 0.55);
text-decoration: none;
@@ -1072,15 +1075,15 @@ footer:not(.h-footer) a {
align-items: center;
}
-footer:not(.h-footer) a:hover {
+footer:not([class*="h-footer"]) a:hover {
color: #fff;
}
-footer:not(.h-footer) a svg {
+footer:not([class*="h-footer"]) a svg {
vertical-align: middle;
}
-footer:not(.h-footer) .separator {
+footer:not([class*="h-footer"]) .separator {
color: rgba(255, 255, 255, 0.2);
font-size: 10px;
}
diff --git a/src/club-entrance.js b/src/club-entrance.js
index 5d9c5d095..540af1cde 100644
--- a/src/club-entrance.js
+++ b/src/club-entrance.js
@@ -1,22 +1,24 @@
// /club entrance — walk up to the club as your own 3D avatar.
//
-// You don't drop onto the pole floor. You spawn as a third-person avatar and
-// you're in control: move (WASD / arrows / touch joystick) and look around
-// (drag). First you walk through a gallery tour; reach the end and you step
-// out into the alley, where you walk up to the neon door. Step into range and a
-// prompt appears — press E, tap, or click the door — and only then does the
-// cover-charge card (src/club-gate.js) ask you to pay. Pay the cover and your
-// avatar walks through the Space Smugglers club house interior while the anthem
-// plays (wired in src/club.js), and the room with the poles opens up around you
-// (src/club.js, booting behind it all).
+// You don't drop onto the pole floor — you walk there yourself, as a
+// third-person avatar, in control the whole way: move (WASD / arrows / touch
+// joystick) and look around (drag). We never auto-walk you. You spawn OUTSIDE
+// in the alley and walk up to the neon door; step into range and a prompt
+// appears — press E, tap, or click — and the cover-charge card (src/club-gate.js)
+// asks you to pay. Pay the cover and you keep walking, under your own control,
+// through each place in turn — a gallery hall, then the Space Smugglers club
+// house interior — until you reach the strip club itself (the pole stage, in
+// src/club.js), where you tip dancers to perform.
//
-// Everything renders into one full-screen canvas (#club-door-canvas) layered
-// above the pole stage and below the cover card. Three Meshopt+WebP
-// environments (built by scripts/build-club-entrance-venue.mjs) plus the shared
-// avatar GLB; the alley and interior are prefetched while you walk so each
-// transition never stalls. Already paid tonight? The whole approach is skipped
-// on load. Any load failure degrades silently — the cover card and the room
-// behind it still work.
+// The journey is the SEQUENCE list below: every venue is free-walk; you reach
+// its exit and the next one fades in. The alley's door takes the cover; the
+// last venue hands off to the pole stage. Everything renders into one
+// full-screen canvas (#club-door-canvas) layered above the pole stage and below
+// the cover card. Three Meshopt+WebP environments (built by
+// scripts/build-club-entrance-venue.mjs) plus the shared avatar GLB; later
+// places are prefetched while you walk so each transition never stalls. Already
+// paid tonight? The whole approach is skipped on load. Any load failure
+// degrades silently — the cover card and the pole stage still work.
import {
AmbientLight,
diff --git a/src/club.js b/src/club.js
index 8c24f3bc1..29a617f64 100644
--- a/src/club.js
+++ b/src/club.js
@@ -1,8 +1,8 @@
// /club — three.ws Pole Club
//
-// A dark 3D venue with four pole stages arranged in a half-arc. Each pole has
+// A dark 3D venue with three pole stages arranged in a half-arc. Each pole has
// a "Tip $0.001 to dance" button bound to /api/x402/dance-tip via the x402
-// drop-in modal (window.X402.pay). Four distinct dancers stand at their poles
+// drop-in modal (window.X402.pay). Three distinct dancers stand at their poles
// facing the crowd; once the buyer's USDC settles, that slot's dancer steps
// onto her pole and performs the selected routine for ~12s, then returns to her
// idle stance at the pole. No tip, no routine.
@@ -81,10 +81,10 @@ const TIPS_HISTORY_URL = '/api/club/tips?limit=20';
const TIPS_STREAM_URL = '/api/club/tips/stream';
// ── Stage layout ─────────────────────────────────────────────────────────
-// Four poles in a half-arc facing the camera. Backstage is behind the bar at
+// Poles in a half-arc facing the camera (count = POLE_COUNT). Backstage is behind the bar at
// negative Z so dancers visibly walk out before mounting the pole.
const STAGE_RADIUS = 4.2;
-const POLE_COUNT = 4;
+const POLE_COUNT = 3;
const POLE_HEIGHT = 3.6;
const PERFORMANCE_FADE = 0.45; // seconds for clip crossfade
// Top of the stage GLB. Authored in scripts/build-club-props.mjs at y=0.18.
@@ -412,16 +412,17 @@ document.querySelector('#club-stage')?.setAttribute('data-cam-mode', clubCam.get
// ── Poles + spotlights ───────────────────────────────────────────────────
const POLE_COLORS = [0xff3bd6, 0x4ad6ff, 0xff8a3b, 0x9b5dff];
-// Dancer registry — display names, bios, accent palette, and the GLB rig each
-// dancer wears. Four distinct humanoid avatars (all verified ≥8 canonical
-// bones, so the pre-baked clip library retargets onto every one — see
-// attachAvatar's runtime fallback for the failsafe). On top of the model we
-// still tint each with her pole's accent color so the four read as a set.
+// Dancer registry — display names, bios, accent palette, and the gallery
+// avatar each dancer wears. `avatarId` is resolved through /api/avatars/:id at
+// boot (see resolveDancerAvatarUrl); a local `avatar` path can be used instead.
+// All three rigs are verified drivable by the clip library (CharacterStudio +
+// Unreal-mannequin rigs are now retargetable — see src/glb-canonicalize.js),
+// and attachAvatar falls back to the default rig if any ever isn't. Each dancer
+// is still tinted with her pole's accent color so the three read as a set.
const DANCER_META = [
- { name: 'Aria', bio: 'Neon pink fire. Classical meets street.', palette: 'pink', avatar: '/avatars/default.glb' },
- { name: 'Nova', bio: 'Cyan ice. Fluid and hypnotic.', palette: 'cyan', avatar: '/avatars/michelle.glb' },
- { name: 'Blaze', bio: 'Amber heat. Power and precision.', palette: 'amber', avatar: '/avatars/selfie-girl.glb' },
- { name: 'Luna', bio: 'Lunar glow. Gravity-defying flow.', palette: 'white', avatar: '/avatars/realistic-female.glb' },
+ { name: 'Aria', bio: 'Neon pink fire. Classical meets street.', palette: 'pink', avatarId: 'cdc245f4-36f8-4e78-a1b6-58c3b73e247f' },
+ { name: 'Nova', bio: 'Cyan ice. Fluid and hypnotic.', palette: 'cyan', avatarId: '25195a2e-130c-4da5-8cad-8e7490d69b45' },
+ { name: 'Blaze', bio: 'Amber heat. Power and precision.', palette: 'amber', avatarId: 'd92b292e-c2db-40cb-bf88-3e141c6b0057' },
];
class PoleStation {
@@ -590,7 +591,7 @@ class PoleStation {
n.material = n.material.clone();
n.material.envMapIntensity = 0.6;
// Tint each dancer subtly with the pole's accent color so the
- // four are visually distinct even before the spotlight kicks in.
+ // dancers are visually distinct even before the spotlight kicks in.
if (n.material.emissive) {
n.material.emissive = new Color(POLE_COLORS[this.idx % POLE_COLORS.length]);
n.material.emissiveIntensity = 0.05;
@@ -913,6 +914,29 @@ function createAmbientParticles(count = 50) {
// ── Avatar template + manifest load ──────────────────────────────────────
let animationDefs = null;
+/**
+ * Resolve a dancer's avatar GLB URL. A gallery `avatarId` is looked up through
+ * the same /api/avatars/:id endpoint the rest of the app uses (Vite dev proxies
+ * it to production), reading the canonical `.url`; a local `avatar` path is
+ * used verbatim. Any failure falls back to the bundled default rig so a dancer
+ * always has a model to load.
+ *
+ * @param {{ avatar?: string, avatarId?: string }} meta
+ * @returns {Promise<string>}
+ */
+async function resolveDancerAvatarUrl(meta) {
+ if (meta.avatar) return meta.avatar;
+ if (!meta.avatarId) return AVATAR_URL;
+ try {
+ const res = await fetch(`/api/avatars/${encodeURIComponent(meta.avatarId)}`);
+ if (!res.ok) return AVATAR_URL;
+ const data = await res.json();
+ return data?.avatar?.url || AVATAR_URL;
+ } catch {
+ return AVATAR_URL;
+ }
+}
+
/**
* Wrap a three.js loader's callback-form `.load()` in a promise that
* forwards every progress event into `setStatus`. `loadAsync` would be
@@ -955,9 +979,11 @@ async function bootstrap() {
// fetch in the same window. Any rejection bubbles up to the .catch in
// the call site below, which paints an error status and stops; no
// primitive fallback ever gets attached.
- // Each dancer wears her own GLB; AVATAR_URL is always loaded too as the
- // runtime fallback rig. De-dupe so a shared model loads once.
- const avatarUrls = [...new Set([AVATAR_URL, ...DANCER_META.map((d) => d.avatar).filter(Boolean)])];
+ // Resolve each dancer's gallery avatar → GLB URL first (fast JSON lookups),
+ // then load the models alongside the venue. AVATAR_URL is always loaded too
+ // as the runtime fallback rig. De-dupe so a shared model loads once.
+ const dancerUrls = await Promise.all(DANCER_META.map(resolveDancerAvatarUrl));
+ const avatarUrls = [...new Set([AVATAR_URL, ...dancerUrls])];
const [venueGltf, hdrTexture, manifest, poleGltf, stageGltf, ...avatarGltfs] = await Promise.all([
loadWithProgress(loader, VENUE_GLB_URL, 'Loading club…'),
loadWithProgress(rgbe, VENUE_HDRI_URL, 'Loading lighting…'),
@@ -997,13 +1023,22 @@ async function bootstrap() {
// outer catch surfaces a precise error to the user instead of
// silently placing dancers at the origin.
const empties = collectVenueEmpties(venueGltf.scene, REQUIRED_VENUE_EMPTIES);
- const anchors = resolveVenueAnchors(empties, stations.length);
- for (let i = 0; i < stations.length; i += 1) {
- stations[i].applyVenueOverrides({
- stagePos: anchors.stages[i],
- backstagePos: anchors.backstages[i],
- spotPos: anchors.spots[i],
- });
+ // The venue's stage / backstage / spot empties are authored for the 4-pole
+ // layout. Apply them only when the pole count matches; any other count uses
+ // the analytical arc (POLES), which spreads poles evenly for N. The
+ // mirrorball + bar-neon anchors are pole-count-independent and resolved
+ // regardless (slotCount 0 skips the per-pole arrays but still returns them).
+ const VENUE_STAGE_SLOTS = 4;
+ const useVenueStages = stations.length === VENUE_STAGE_SLOTS;
+ const anchors = resolveVenueAnchors(empties, useVenueStages ? VENUE_STAGE_SLOTS : 0);
+ if (useVenueStages) {
+ for (let i = 0; i < stations.length; i += 1) {
+ stations[i].applyVenueOverrides({
+ stagePos: anchors.stages[i],
+ backstagePos: anchors.backstages[i],
+ spotPos: anchors.spots[i],
+ });
+ }
}
// Expose the mirrorball + bar-neon anchors for prompt 04 (lighting).
@@ -1034,7 +1069,7 @@ async function bootstrap() {
for (const station of stations) {
station.attachProps({ poleTemplate, stageTemplate });
- const wanted = DANCER_META[station.idx]?.avatar || AVATAR_URL;
+ const wanted = dancerUrls[station.idx] || AVATAR_URL;
const template = avatarTemplates.get(wanted) || fallbackTemplate;
station.attachAvatar(template, animationDefs, fallbackTemplate);
}
@@ -1460,9 +1495,9 @@ function handleResize() {
window.addEventListener('resize', handleResize);
// ── Keyboard shortcuts ───────────────────────────────────────────────────
-// 0 → overhead house cam
-// 1-4 → per-pole VIP cam
-// Esc → back to free orbit
+// 0 → overhead house cam
+// 1-N → per-pole VIP cam (N = pole count)
+// Esc → back to free orbit
// Inputs / selects in the side panel are excluded so typing doesn't move
// the camera.
window.addEventListener('keydown', (e) => {
@@ -1470,7 +1505,7 @@ window.addEventListener('keydown', (e) => {
if (tag === 'INPUT' || tag === 'SELECT' || tag === 'TEXTAREA') return;
if (e.key === '0') return clubCam.setHouse();
if (e.key === 'Escape') return clubCam.setFree();
- if (['1', '2', '3', '4'].includes(e.key)) {
+ if (/^[1-9]$/.test(e.key)) {
const layout = POLES.find((p) => p.id === e.key);
if (layout) clubCam.setVip(layout);
}
diff --git a/src/three-economy.js b/src/three-economy.js
index 98b856c2c..0da1682b0 100644
--- a/src/three-economy.js
+++ b/src/three-economy.js
@@ -306,6 +306,8 @@ function shell() {
</div>
${heroHTML()}
<div class="ec-section" id="stats"><h2>Live economy</h2><p class="ec-desc">Settled on-chain through the $THREE rail. No burns — every spend reflects to holders or funds buybacks.</p><div id="ec-stats"><div class="ec-grid ec-stats">${'<div class="ec-stat ec-skel" style="height:84px"></div>'.repeat(5)}</div></div></div>
+ <div class="ec-section" id="verify"><h2>Verify on-chain</h2><p class="ec-desc">No anonymous "trust us." The treasury and the holder-rewards pool are real Solana wallets — open them on Solscan and check the balances against the numbers above.</p><div id="ec-onchain"><div class="ec-grid ec-wallets">${'<div class="ec-wallet ec-skel" style="height:96px"></div>'.repeat(2)}</div></div></div>
+ <div class="ec-section" id="reflected"><h2>Reflected to holders</h2><p class="ec-desc">We never burn supply. The rewards pool is distributed pro-rata back to $THREE holders — value returned, not destroyed. Every run is recorded here.</p><div id="ec-reflected"><div class="ec-skel" style="height:80px"></div></div></div>
<div class="ec-section" id="tiers"><h2>Holder tiers</h2><div id="ec-tiers"><div class="ec-grid ec-tiers">${'<div class="ec-tier ec-skel" style="height:150px"></div>'.repeat(5)}</div></div></div>
<div class="ec-section" id="names"><h2>Rare names</h2><p class="ec-desc">Common <code>*.threews.sol</code> names are free. Short, dictionary, and reserved names are rare — priced in $THREE.</p>
<div class="ec-name"><input id="ec-name-input" type="text" placeholder="yourname" autocomplete="off" spellcheck="false" maxlength="63" aria-label="Check a name's rarity" /></div>
@@ -322,13 +324,23 @@ async function load() {
if (el) el.innerHTML = `<div class="ec-err">${esc(msg)}</div>`;
};
- // Stats + catalog are public; tier needs auth (gracefully optional).
+ // Stats + catalog are public; tier needs auth (gracefully optional). One stats
+ // fetch feeds three panels: the headline cards, the verifiable wallets, and the
+ // reflected-to-holders history.
getJSON(`${API}/stats`)
.then((s) => {
- const el = document.getElementById('ec-stats');
- if (el) el.innerHTML = statsHTML(s);
+ const stats = document.getElementById('ec-stats');
+ if (stats) stats.innerHTML = statsHTML(s);
+ const onchain = document.getElementById('ec-onchain');
+ if (onchain) onchain.innerHTML = onchainHTML(s);
+ const reflected = document.getElementById('ec-reflected');
+ if (reflected) reflected.innerHTML = reflectedHTML(s);
})
- .catch(() => setErr('ec-stats', 'Economy stats are temporarily unavailable.'));
+ .catch(() => {
+ setErr('ec-stats', 'Economy stats are temporarily unavailable.');
+ setErr('ec-onchain', 'On-chain data is temporarily unavailable.');
+ setErr('ec-reflected', 'Reflection history is temporarily unavailable.');
+ });
getJSON(`${API}/catalog`)
.then((c) => {
diff --git a/tests/rewards-ledger.test.js b/tests/rewards-ledger.test.js
new file mode 100644
index 000000000..55250b503
--- /dev/null
+++ b/tests/rewards-ledger.test.js
@@ -0,0 +1,107 @@
+// Tests for the rewards-distribution ledger reader/writer (api/_lib/token/payments.js).
+// The DB is mocked: these prove the recorded shape and the rule that ONLY completed
+// runs count toward the public "reflected to holders" total (planned/dry runs don't).
+
+import { describe, it, expect, vi, beforeEach } from 'vitest';
+
+// Mock the DB: a tagged-template `sql` that returns whatever the test queues.
+const queue = [];
+vi.mock('../api/_lib/db.js', () => {
+ const sql = vi.fn(async () => (queue.length ? queue.shift() : []));
+ return { sql };
+});
+// payments.js also imports these; stub so the module loads without a live RPC.
+vi.mock('../api/_lib/solana/connection.js', () => ({ solanaConnection: vi.fn() }));
+
+import { recordRewardsDistribution, listRewardsDistributions } from '../api/_lib/token/payments.js';
+import { sql } from '../api/_lib/db.js';
+
+beforeEach(() => {
+ queue.length = 0;
+ vi.clearAllMocks();
+});
+
+describe('recordRewardsDistribution', () => {
+ it('inserts a run and returns its id', async () => {
+ queue.push([{ id: 'dist-1', created_at: '2026-06-15T00:00:00Z' }]);
+ const r = await recordRewardsDistribution({
+ mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
+ poolWallet: 'PoolXXXX',
+ poolAtomics: 1000n,
+ distributedAtomics: 900n,
+ dustAtomics: 100n,
+ holderCount: 3,
+ eligibleSupplyAtomics: 5000n,
+ status: 'planned',
+ });
+ expect(r.id).toBe('dist-1');
+ expect(sql).toHaveBeenCalledOnce();
+ });
+
+ it('serializes bigint atomics to strings (no precision loss)', async () => {
+ queue.push([{ id: 'd', created_at: 'now' }]);
+ await recordRewardsDistribution({
+ mint: 'm',
+ poolWallet: 'w',
+ poolAtomics: 123456789012345678901234567890n,
+ });
+ // The tagged-template interpolations are passed as the 2nd+ args of sql();
+ // confirm a huge bigint went in as a string, not a lossy Number.
+ const interpolated = sql.mock.calls[0].slice(1).map(String);
+ expect(interpolated).toContain('123456789012345678901234567890');
+ });
+});
+
+describe('listRewardsDistributions', () => {
+ it('returns history + reflected total from completed runs only', async () => {
+ // First query: recent rows. Second query: completed-only aggregate.
+ queue.push([
+ {
+ id: 'd2',
+ mint: 'm',
+ pool_wallet: 'w',
+ pool_atomics: '1000',
+ distributed_atomics: '900',
+ dust_atomics: '100',
+ holder_count: 3,
+ eligible_supply_atomics: '5000',
+ status: 'completed',
+ tx_signatures: ['sig1'],
+ note: null,
+ created_at: 'd2t',
+ },
+ {
+ id: 'd1',
+ mint: 'm',
+ pool_wallet: 'w',
+ pool_atomics: '500',
+ distributed_atomics: '500',
+ dust_atomics: '0',
+ holder_count: 2,
+ eligible_supply_atomics: '4000',
+ status: 'planned',
+ tx_signatures: [],
+ note: 'dry run',
+ created_at: 'd1t',
+ },
+ ]);
+ // Aggregate over status='completed' only → 900 (the planned 500 excluded).
+ queue.push([{ total: '900', n: 1 }]);
+
+ const out = await listRewardsDistributions({ limit: 10 });
+ expect(out.total_reflected_atomics).toBe('900');
+ expect(out.run_count).toBe(1);
+ expect(out.items).toHaveLength(2);
+ expect(out.items[0].status).toBe('completed');
+ expect(out.items[1].status).toBe('planned');
+ });
+
+ it('handles an empty ledger', async () => {
+ queue.push([]); // no rows
+ queue.push([{ total: '0', n: 0 }]);
+ const out = await listRewardsDistributions();
+ expect(out.total_reflected_atomics).toBe('0');
+ expect(out.run_count).toBe(0);
+ expect(out.items).toEqual([]);
+ });
+});