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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: add "Made it on" breakdown to leaderboard — display traders' top-earning coins with P&L and ROI
nrpob0541a8e87f5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 06041f548..299d867ee 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Ring settlements stay in-house — routing made truthful, mis-config now caught** — The closed-loop agent economy is built so no third party ever touches a ring settlement — but the configuration used to say one thing while the code did another: the setup guide claimed the platform's own facilitator was 'always-on' while Solana payments still defaulted to an outside settlement service. That contradiction is gone. When the self-hosted facilitator is switched on, ring payments now settle through it by default, and an explicitly-set external facilitator is the only thing that overrides that — no other coin or user rail is affected. Just as important, a mis-configured deploy now says so loudly instead of silently sending volume elsewhere: the status and ring reports list every problem — facilitator disabled, settlement pointing at an outside service, a missing treasury or fee-payer key, a per-call price set above the per-run cap — so operators can confirm the whole envelope is correct before funding anything. A clean deploy shows an empty warnings list. `[fix, infra]`- **Ring wallets: watched for drain, auto-refilled, and verifiable in one command** — The three platform wallets that power the closed-loop agent economy — the one that pays, the one that receives, and the one that covers network fees — are now monitored and self-healing so the loop can run unattended without silently stalling or draining. A balance monitor checks all three on-chain every ten minutes and pages operators before trouble: the fee and paying wallets alert when their SOL dips near the level where settlements would be refused, and the paying wallet alerts when its USDC float runs low. The receiving wallet is intentionally left unbounded — it fills up and gets swept back automatically, so a low balance there is healthy, not a problem. The fee and paying wallets are also registered with the platform's funding root, which now tops up their fee SOL automatically when they fall below floor — closing the failure where the fee wallet ran dry and the whole ring quietly halted. A new one-command check confirms every wallet is correctly configured, registered, and reachable, prints their live balances, and refuses to pass on any mismatch, without ever exposing a secret. A funding runbook documents exactly how much to send and how to confirm it landed. `[infra, security]`- **Status page now shows internal dependency health, not just uptime** — The public status page and the platform health API now report the health of the systems behind the surfaces — cache, database, Solana RPC, the x402 payment ring, and the world service — not only whether each page returns. A surface can answer normally while a dependency is quietly running on a fallback (cache on memory, RPC throttled, the payment ring half-configured); those states are now visible with a plain-language explanation and the exact fix, instead of being buried in server logs. The monitor also re-alerts on a degradation that persists rather than going silent after the first notice, and posts a recovery note when it clears. (`/status`) `[improvement]`+- **The leaderboard now shows what each trader made it on** — Every ranked trader now carries their signature coin — the single token they earned (or lost) the most on, with the realized P&L and ROI to match. It shows up right on the leaderboard row next to the name, on the trader's profile as a "Made it on" breakdown of their top three coins (each linking to the coin's on-chain account), and on the shareable PnL card. A new Most Profitable Trader spotlight now crowns the top earner in the selected window at the top of the board — avatar, realized P&L, win rate, and the coin behind the run. Every number is computed from the same on-chain closed-trade ledger the rest of the track record uses, so the coin credited on the leaderboard, the profile, and the card can never disagree — and self-dealt coins a trader launched themselves are excluded from the credit, exactly as they already are from the score. (`/leaderboard`) `[feature, improvement]`- **The Live Trading Theater got more alive — and shows its guardrails** — A pass of polish across the 3D stage: performers now cast contact shadows so no one floats, the camera pushes in on a marquee fill, the celebration coin scales with the real size of the buy, and receipts show the coin ticker. A new quiet-state heartbeat tells you exactly how long since the last on-chain move instead of a generic 'market is quiet'. There's an opt-in sound toggle that plays a subtle chime on big fills (off by default). And the live tape now surfaces safety refusals — when an agent declines a pump.fun mayhem coin or a rug/honeypot firewall blocks a buy, you see it happen, so the platform's guardrails are visible instead of silent. (`/theater`) `[improvement]`- **The Live Trading Theater is now a dealing room, not a stage** — The 3D theater has been rebuilt from an abstract stage into a trading dealing room: every agent now stands at its own workstation — a desk with a lit monitor — arranged in staggered rows like a trading pit. Agents without their own avatar are now dressed in a variety of distinct rigged bodies instead of all sharing one mannequin, so the floor reads as a room of individuals. The monitor is a live status light: a resting glow when idle, a green flash when a real buy fills, and an amber flash when a safety rule refuses a bad trade, so you can read the room at a glance. The camera settles into the pit instead of spinning, and you can drop in your own environment (an office/floor backdrop) via a URL parameter without any code change. A new self-healing guard also catches any avatar whose animation misbehaves and quietly swaps in a clean figure, so the floor never shows a broken model. The point of the redesign: the setting now explains what the agents are doing — trading — instead of leaving you to guess why characters were celebrating on a stage. (`/theater`) `[improvement]`- **Treasury sweepback — every agent wallet cycles back to one root** — The economy's funding root now has a return leg. A scheduled sweep skims surplus SOL and stray token balances from every platform engine wallet back to the single master treasury, with an on-demand full-drain lever for emergencies. Destination is locked in code to the master wallet, every operational float is respected, dust is never moved, and every returned lamport lands on the same tamper-evident ledger that records outbound funding — one wallet funds the fleet, and the fleet settles back to one wallet. `[security, infra]`diff --git a/data/changelog.json b/data/changelog.jsonindex 161efe8dc..d2fb8c2dc 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$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-07-03",+ "title": "The leaderboard now shows what each trader made it on",+ "summary": "Every ranked trader now carries their signature coin — the single token they earned (or lost) the most on, with the realized P&L and ROI to match. It shows up right on the leaderboard row next to the name, on the trader's profile as a \"Made it on\" breakdown of their top three coins (each linking to the coin's on-chain account), and on the shareable PnL card. A new Most Profitable Trader spotlight now crowns the top earner in the selected window at the top of the board — avatar, realized P&L, win rate, and the coin behind the run. Every number is computed from the same on-chain closed-trade ledger the rest of the track record uses, so the coin credited on the leaderboard, the profile, and the card can never disagree — and self-dealt coins a trader launched themselves are excluded from the credit, exactly as they already are from the score.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/leaderboard"+ },{"date": "2026-07-03","title": "Paid endpoints never hand you a payment rail they can't complete",diff --git a/public/changelog.json b/public/changelog.jsonindex f5883104a..49b9920cf 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-03T12:32:00.086Z",+ "generated_at": "2026-07-03T13:24:01.776Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -186,6 +186,17 @@"improvement"]},+ {+ "date": "2026-07-03",+ "type": "update",+ "title": "The leaderboard now shows what each trader made it on",+ "summary": "Every ranked trader now carries their signature coin — the single token they earned (or lost) the most on, with the realized P&L and ROI to match. It shows up right on the leaderboard row next to the name, on the trader's profile as a \"Made it on\" breakdown of their top three coins (each linking to the coin's on-chain account), and on the shareable PnL card. A new Most Profitable Trader spotlight now crowns the top earner in the selected window at the top of the board — avatar, realized P&L, win rate, and the coin behind the run. Every number is computed from the same on-chain closed-trade ledger the rest of the track record uses, so the coin credited on the leaderboard, the profile, and the card can never disagree — and self-dealt coins a trader launched themselves are excluded from the credit, exactly as they already are from the score.",+ "link": "/leaderboard",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-07-03","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 1e92d9b8d..9ade602a1 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -142,6 +142,14 @@<category>improvement</category><description>The public status page and the platform health API now report the health of the systems behind the surfaces — cache, database, Solana RPC, the x402 payment ring, and the world service — not only whether each page returns. A surface can answer normally while a dependency is quietly running on a fallback (cache on memory, RPC throttled, the payment ring half-configured); those states are now visible with a plain-language explanation and the exact fix, instead of being buried in server logs. The monitor also re-alerts on a degradation that persists rather than going silent after the first notice, and posts a recovery note when it clears.</description></item>+ <item>+ <title>The leaderboard now shows what each trader made it on</title>+ <link>https://three.ws/leaderboard</link>+ <guid isPermaLink="false">2026-07-03:The leaderboard now shows what each trader made it on</guid>+ <pubDate>Fri, 03 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Every ranked trader now carries their signature coin — the single token they earned (or lost) the most on, with the realized P&L and ROI to match. It shows up right on the leaderboard row next to the name, on the trader's profile as a "Made it on" breakdown of their top three coins (each linking to the coin's on-chain account), and on the shareable PnL card. A new Most Profitable Trader spotlight now crowns the top earner in the selected window at the top of the board — avatar, realized P&L, win rate, and the coin behind the run. Every number is computed from the same on-chain closed-trade ledger the rest of the track record uses, so the coin credited on the leaderboard, the profile, and the card can never disagree — and self-dealt coins a trader launched themselves are excluded from the credit, exactly as they already are from the score.</description>+ </item><item><title>The Live Trading Theater got more alive — and shows its guardrails</title><link>https://three.ws/theater</link>diff --git a/public/features.json b/public/features.jsonindex 7f9c3fbc6..9cc7f6232 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-03T12:32:00.060Z",+ "generated_at": "2026-07-03T13:24:01.759Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/leaderboard.js b/src/leaderboard.jsindex dd0af48b6..ec77d611a 100644--- a/src/leaderboard.js+++ b/src/leaderboard.js@@ -106,7 +106,7 @@ function rowMarkup(r) {<img class="lb-avatar" src="${escapeHtml(img)}" alt="" loading="lazy" onerror="this.src='${identicon(r.agent_id || r.wallet || '?')}'" /><span class="lb-trader-meta"><span class="lb-trader-name"><span class="lb-trader-nm">${escapeHtml(r.agent_name || 'Unnamed agent')}</span>${verifiedBadge(r.verified)}</span>- <span class="lb-trader-sub">${r.wallet ? walletChipHTML(r, { isOwner: false, showPending: false, link: false }) : escapeHtml(shortAddr(r.wallet))} · ${r.unique_coins} coins${r.copiers ? ` · <span class="lb-copiers">${r.copiers} copying</span>` : ''}${r.top_coin ? ` · ${signatureCoin(r.top_coin, { compact: true })}` : ''}</span>+ <span class="lb-trader-sub">${r.wallet ? walletChipHTML(r, { isOwner: false, showPending: false, link: false }) : escapeHtml(shortAddr(r.wallet))} · ${r.unique_coins} coins${r.top_coin ? ` · ${signatureCoin(r.top_coin, { compact: true })}` : ''}${r.copiers ? ` · <span class="lb-copiers">${r.copiers} copying</span>` : ''}</span></span></span><span class="lb-num">@@ -282,7 +282,7 @@ function renderSpotlight(data) {const name = escapeHtml(top.agent_name || 'Unnamed agent');const usd = top.realized_pnl_usd != null ? ` · ${fmtUsd(top.realized_pnl_usd)}` : '';const coin = top.top_coin- ? `<div class="lb-spot-coin"><span class="lb-spot-coin-lead">Made it on</span> ${signatureCoin(top.top_coin)}</div>`+ ? `<div class="lb-spot-coin"><span class="lb-spot-coin-lead">${top.top_coin.pnl_sol >= 0 ? 'Made it on' : 'Biggest hit'}</span> ${signatureCoin(top.top_coin, { compact: true })}</div>`: '';const label = `Most profitable trader: ${top.agent_name || 'agent'}, ${fmtSol(top.realized_pnl_sol)} realized${top.top_coin && top.top_coin.symbol ? `, made on ${top.top_coin.symbol}` : ''}`;el.innerHTML = `diff --git a/src/trader.css b/src/trader.cssindex 89270ab7e..de8cf54ca 100644--- a/src/trader.css+++ b/src/trader.css@@ -251,6 +251,75 @@dark theme they fell back to serif at the browser's default size. Everythinghere now references the canonical primitives, so they match the rest of thepage in both themes. */+/* ---- "Made it on" — signature coin breakdown ---- */+.tp-madeon {+ margin: 0 0 var(--space-md);+ border: 1px solid var(--stroke);+ border-radius: var(--radius-lg);+ background: var(--surface-1);+ padding: var(--space-sm) var(--space-md) var(--space-md);+}+.tp-madeon-head {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: var(--space-sm);+ margin-bottom: var(--space-2xs);+}+.tp-madeon-label {+ font-family: var(--font-body);+ font-size: var(--text-2xs);+ font-weight: var(--weight-semibold);+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: var(--ink-faint);+}+.tp-madeon-count { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); }+.tp-madeon-top {+ display: flex;+ align-items: baseline;+ flex-wrap: wrap;+ gap: var(--space-xs);+ text-decoration: none;+ color: inherit;+}+.tp-madeon-sym {+ font-family: var(--font-display);+ font-weight: var(--weight-bold);+ font-size: var(--text-xl);+ color: var(--ink-bright);+}+.tp-madeon-pnl {+ font-family: var(--font-display);+ font-weight: var(--weight-bold);+ font-size: var(--text-xl);+ font-variant-numeric: tabular-nums;+}+.tp-madeon-meta { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-faint); }+.tp-madeon-top:hover .tp-madeon-meta { color: var(--ink-dim); }+.tp-madeon-rest {+ display: flex;+ flex-wrap: wrap;+ gap: var(--space-2xs);+ margin-top: var(--space-sm);+}+.tp-madeon-chip {+ display: inline-flex;+ align-items: baseline;+ gap: 6px;+ font-family: var(--font-mono);+ font-size: var(--text-2xs);+ font-variant-numeric: tabular-nums;+ text-decoration: none;+ color: var(--ink-dim);+ border: 1px solid var(--stroke);+ border-radius: var(--radius-pill);+ padding: var(--space-3xs) var(--space-sm);+ transition: border-color var(--duration-fast) var(--ease-standard);+}+.tp-madeon-chip:hover { border-color: var(--stroke-strong); }+.tp-madeon-chip-sym { font-weight: var(--weight-semibold); color: var(--ink-bright); }+.tp-oracle-block {margin: 0 0 var(--space-md);border: 1px solid var(--stroke);diff --git a/src/trader.js b/src/trader.jsindex 6152556cc..db413c9a6 100644--- a/src/trader.js+++ b/src/trader.js@@ -132,6 +132,45 @@ function metricsGrid(m) {`;}+// --- "Made it on" — top-coin breakdown ---------------------------------------+// The coins this trader actually made (or lost) their money on. `top_coin` is the+// single biggest realized-P&L contributor; `top_coins` is the top-3 breakdown.+// Each links to the coin's on-chain account, so "what they made it on" is provable.+function madeOnBlock(m) {+ const top = m.top_coin;+ if (!top) return '';+ const solAcct = (mint) => ctx.network === 'devnet'+ ? `https://solscan.io/account/${mint}?cluster=devnet`+ : `https://solscan.io/account/${mint}`;+ const label = escapeHtml(top.symbol || top.name || shortAddr(top.mint, 4, 4));+ const roi = top.roi_pct != null+ ? `<span class="${pnlClass(top.roi_pct)}">${fmtPct(top.roi_pct, { sign: true })} ROI</span>` : '';+ const usd = top.pnl_usd != null ? ` · ${fmtUsd(top.pnl_usd)}` : '';+ const wl = `${top.wins}/${top.trades} win${top.trades === 1 ? '' : 's'}`;+ // The remaining top coins (2nd, 3rd) as compact chips beside the headline.+ const rest = (m.top_coins || []).slice(1).map((c) => {+ const nm = escapeHtml(c.symbol || c.name || shortAddr(c.mint, 4, 4));+ return `<a class="tp-madeon-chip" href="${solAcct(c.mint)}" target="_blank" rel="noopener" title="${nm} · ${escapeHtml(fmtSol(c.pnl_sol))} realized${c.roi_pct != null ? ` · ${c.roi_pct > 0 ? '+' : ''}${c.roi_pct}% ROI` : ''}">+ <span class="tp-madeon-chip-sym">${nm}</span>+ <span class="${pnlClass(c.pnl_sol)}">${escapeHtml(fmtSol(c.pnl_sol))}</span>+ </a>`;+ }).join('');+ const verb = top.pnl_sol >= 0 ? 'Made it on' : 'Biggest hit';+ return `+ <div class="tp-madeon">+ <div class="tp-madeon-head">+ <span class="tp-madeon-label">${verb}</span>+ ${m.unique_coins > 1 ? `<span class="tp-madeon-count">${m.unique_coins} coins traded</span>` : ''}+ </div>+ <a class="tp-madeon-top" href="${solAcct(top.mint)}" target="_blank" rel="noopener">+ <span class="tp-madeon-sym">${label}</span>+ <span class="tp-madeon-pnl ${pnlClass(top.pnl_sol)}">${escapeHtml(fmtSol(top.pnl_sol))}</span>+ <span class="tp-madeon-meta">${usd ? escapeHtml(usd.replace(/^ · /, '')) + ' · ' : ''}${roi}${roi ? ' · ' : ''}${wl} · on-chain ↗</span>+ </a>+ ${rest ? `<div class="tp-madeon-rest">${rest}</div>` : ''}+ </div>`;+}+// --- Oracle conviction block -------------------------------------------------function oracleBlock(oracle) {const pnlStr = oracle.realized_pnl_sol != null@@ -310,6 +349,8 @@ function render(data) {<div class="tp-metrics">${metricsGrid(m)}</div>+ ${madeOnBlock(m)}+${data.projection ? projectionBlock(data.projection) : ''}${data.oracle ? oracleBlock(data.oracle) : ''}@@ -483,6 +524,24 @@ function downloadCard() {c.font = '500 28px Inter, sans-serif';c.fillText(`${WINDOW_LABEL[ctx.window]} realized P&L${m.realized_pnl_usd != null ? ' · ' + fmtUsd(m.realized_pnl_usd) : ''}`, 64, 408);+ // "Made it on" — the signature coin, so the card says both how much and on what.+ if (m.top_coin && (m.top_coin.symbol || m.top_coin.name)) {+ const tc = m.top_coin;+ const sym = String(tc.symbol || tc.name).slice(0, 16);+ const lead = tc.pnl_sol >= 0 ? 'MADE IT ON ' : 'BIGGEST HIT ';+ c.fillStyle = 'rgba(255,255,255,0.45)';+ c.font = '600 22px Inter, sans-serif';+ c.fillText(lead, 64, 444);+ const leadW = c.measureText(lead).width;+ c.fillStyle = '#fff';+ c.font = '700 22px "Space Grotesk", Inter, sans-serif';+ c.fillText(sym, 64 + leadW, 444);+ const symW = c.measureText(sym).width;+ c.fillStyle = tc.pnl_sol >= 0 ? '#4ade80' : '#f87171';+ c.font = '600 22px Inter, sans-serif';+ c.fillText(` ${fmtSol(tc.pnl_sol)}`, 64 + leadW + symW, 444);+ }+// Stat stripconst stats = [['SCORE', String(m.score)],