Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(duels): add the trader duels changelog entry, docs page registration and STRUCTURE row

nirholas601726439ab8
diff --git a/STRUCTURE.md b/STRUCTURE.md
index be1e2c020..2626bfcb3 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -310,6 +310,7 @@ bottom.
| Ghost-copy (paper-copy a leader) | [pages/ghost-copy.html](pages/ghost-copy.html) + [src/ghost-copy.js](src/ghost-copy.js) `→ /ghost-copy`, simulator [api/_lib/ghost-copy.js](api/_lib/ghost-copy.js), endpoint [api/pump/ghost-copy.js](api/pump/ghost-copy.js), tests [tests/ghost-copy.test.js](tests/ghost-copy.test.js) | Live (paper only, zero custody) | The bridge between the leaderboard and actually copying someone. Pick a verified trader agent, a budget and a window, and it replays that agent's real closed on-chain round-trips (`agent_sniper_positions`) against a wallet that does not exist, sizing every order through `planCopyOrder`, the SAME function the live [copy-fanout cron](api/cron/copy-fanout.js) uses, so the result is what the copy engine would actually have generated rather than a marketing figure. Deliberately unflattering: P&L per trade is derived from exact chain lamports (never the stored pct column), losing round-trips all count, the ghost wallet has a real cash constraint so capital locked in an open copy blocks the next one, every skip carries a machine reason plus a human sentence, and the leader's still-open positions are marked at THEIR last on-chain quote and reported as unrealized outside the realized headline. Needs no account, no wallet, no signature and no funded signer, so it ships ahead of any custody decision; state lives in the query string so a result is deep-linkable and shareable. Converts into [/vaults](pages/vaults.html) for real money. Doc: [docs/ghost-copy.md](docs/ghost-copy.md). |
| Syndicates (copy-trade as a team) | Board [pages/syndicates.html](pages/syndicates.html) + [src/syndicates.js](src/syndicates.js) `→ /syndicates`, detail [pages/syndicate.html](pages/syndicate.html) + [src/syndicate.js](src/syndicate.js) `→ /syndicates/:slug`, shared [src/syndicate-shared.js](src/syndicate-shared.js) + [src/syndicates.css](src/syndicates.css), trader-profile widget [src/trader-syndicates.js](src/trader-syndicates.js); model [api/_lib/syndicates.js](api/_lib/syndicates.js), guarded follow path [api/_lib/copy-subscribe.js](api/_lib/copy-subscribe.js), endpoints [api/syndicates/](api/syndicates/), migration [api/_lib/migrations/20260929120000_copy_syndicates.sql](api/_lib/migrations/20260929120000_copy_syndicates.sql), tests [tests/syndicates.test.js](tests/syndicates.test.js) | Live (non-custodial) | Roadmap 917 item 12.7. A named team (flag, motto, color) following one to three copyable leaders. Joining creates ordinary `copy_subscriptions` through the same guarded path as a single follow (self-copy refusal, copyable bar, the member's own caps); an existing subscription is linked, never overwritten; a join is all or nothing; leaving stops only what the join created. One team per copier per network. Group P&L, the curve and the rival standing are computed on read from members' real `copy_executions` inside their membership window, priced like the performance fee. The empty board lists today's copyable leaders with whole records. Linked from `/trader/:id`, `/dashboard/copy` and `/play/arena`. Doc: [docs/syndicates.md](docs/syndicates.md). |
| Daily trading quests | [pages/quests.html](pages/quests.html) + [src/quests.js](src/quests.js) `→ /quests`; model [api/_lib/trading-quests.js](api/_lib/trading-quests.js), disarmed $THREE payout [api/_lib/quest-rewards.js](api/_lib/quest-rewards.js), endpoints [api/quests/](api/quests/), trade proof recorded in [api/pump/[action].js](api/pump/[action].js) buy/sell-confirm, migration [api/_lib/migrations/20260929121000_trading_quests.sql](api/_lib/migrations/20260929121000_trading_quests.sql), tests [tests/trading-quests.test.js](tests/trading-quests.test.js), [tests/quest-rewards.test.js](tests/quest-rewards.test.js) | Live (XP + badges); $THREE rewards disarmed | Roadmap 917 item 12.11. Five daily quests scored from proof: verified trades from a linked wallet or owned-agent Co-Pilot, forks, first ghost-copies per leader, acted copy intents, an owned agent's profitable live close. Three a day is a daily clear. XP is an insert-only ledger; badges go to `user_badges`. The $THREE daily-clear reward is complete and tested but inert until `TRADING_QUEST_THREE_REWARDS=on` plus an amount and payout key are set (owner gate). Doc: [docs/trading-quests.md](docs/trading-quests.md). |
+| Trader duels (points-only skill predictions) | Board [pages/duels.html](pages/duels.html) + [src/duels.js](src/duels.js) `→ /duels`, detail [pages/duel.html](pages/duel.html) + [src/duel.js](src/duel.js) `→ /duels/:id`, shared [src/duels-shared.js](src/duels-shared.js) + [src/duels.css](src/duels.css), trader-profile widget [src/trader-duels.js](src/trader-duels.js); model [api/_lib/trader-duels.js](api/_lib/trader-duels.js), endpoints [api/duels/](api/duels/), cron [api/cron/duels-tick.js](api/cron/duels-tick.js), migration [api/_lib/migrations/20260930150000_trader_duels.sql](api/_lib/migrations/20260930150000_trader_duels.sql), tests [tests/trader-duels.test.js](tests/trader-duels.test.js) | Live (points only) | Roadmap 917 item 12.6, built free to play: no token, deposit, escrow or payout, and points have no cash value. The cron opens 24h and week duels for neighbouring traders from the rivalry engine, locks calls at window start, and resolves from `agent_sniper_positions` + `agent_strategy_positions` through `computeTraderMetrics`. Ties, empty windows and private/deleted traders void and refund; an idle trader counts as flat. A correct call pays 2x and 15 XP into `trading_quest_completions`; daily 100-point allowance, monthly season board, four badges. One call per user per duel, no calls on your own agent, overdraft and double payout refused by constraints. Linked from `/trader/:id`, `/trade-rooms`, `/quests` and `/play/arena`. Doc: [docs/trader-duels.md](docs/trader-duels.md). |
| Copy Coach (guided first copy) | [pages/copy-coach.html](pages/copy-coach.html) + [src/copy-coach.js](src/copy-coach.js) + [src/copy-coach.css](src/copy-coach.css) `→ /copy-coach`, model [api/_lib/copy-coach.js](api/_lib/copy-coach.js), endpoint [api/copy/coach.js](api/copy/coach.js), starter caps `STARTER_CAPS` in [api/_lib/copy-engine.js](api/_lib/copy-engine.js), tests [tests/copy-coach.test.js](tests/copy-coach.test.js) | Live | Roadmap 917 prompt 14.3. Four steps for a cautious first-timer: a real signed 25%+ win shown beside the same agent's full 30-day record (a losing record is said plainly), a ghost copy of a leader with fake money ([ghost-copy](api/_lib/ghost-copy.js)), one tiny real copy behind a confirmation card, then what comes next. The real copy goes through `POST /api/copy/subscriptions` with `starter: true`, where the server refuses anything past 0.05 SOL per trade, 0.2 SOL a day, 2 open copies, a 25% drawdown pause, the safety check and an explicit `risk_ack`; it is non-custodial and spends nothing until the user signs each copied trade. The side panel answers questions through the LLM chain from a fact sheet built from real rows (ghost replay recomputed server side), validated against promises, invented numbers, other coins and links, with a deterministic guide as the fallback. Linked from the nav (next to Copy Trading) and [/ghost-copy](pages/ghost-copy.html). Doc: [docs/copy-coach.md](docs/copy-coach.md). |
| Sentiment Scout (momentum with receipts) | Scout tab and drawer section on [pages/coin-intel.html](pages/coin-intel.html) via [src/coin-intel-scout.js](src/coin-intel-scout.js) `→ /coin-intel?tab=scout`, model [api/_lib/sentiment-scout.js](api/_lib/sentiment-scout.js), X search [api/_lib/x-search.js](api/_lib/x-search.js), LLM notes [api/_lib/scout-notes.js](api/_lib/scout-notes.js), endpoint [api/pump/sentiment-scout.js](api/pump/sentiment-scout.js), MCP `sentiment_scout` in [api/_mcp/tools/trader.js](api/_mcp/tools/trader.js), table `sentiment_scout_reads` ([migration](api/_lib/migrations/20260929120000_sentiment_scout_reads.sql)), tests [tests/sentiment-scout.test.js](tests/sentiment-scout.test.js) | Live | Roadmap 917 prompt 14.2. Ranks the last hour of Coin Intelligence launches by early volume and buyer percentiles, screens out bundles and dev dumps, enriches the shortlist with the live curve, X posts quoting the exact contract address, pump.fun callouts and paid x402 reads, and returns a 0-100 score with its parts, evidence lines that each carry a source URL, a timestamp and (for social or paid claims) the on-chain facts they were checked against, and one worst-first caution (including one-account X chatter). Unreadable sources are listed, never estimated. An LLM-written two-sentence read per candidate is validated against the evidence. Board candidates are recorded so [trade receipts](api/_lib/trade-receipt.js) show a Scout flag that preceded an entry, and the Scout's calls are graded against `pump_coin_outcomes`. LLM-judged sniper strategies opt in with `llm_scout_context` ([workers/agent-sniper/llm-judge.js](workers/agent-sniper/llm-judge.js)). Doc: [docs/sentiment-scout.md](docs/sentiment-scout.md). |
| Trader Wrapped (season recap) | [pages/wrapped.html](pages/wrapped.html) + [src/wrapped.js](src/wrapped.js) `→ /wrapped`, deck builder [api/_lib/wrapped.js](api/_lib/wrapped.js), endpoint [api/pump/wrapped.js](api/pump/wrapped.js), social card [api/wrapped-og.js](api/wrapped-og.js), share page [api/wrapped-share.js](api/wrapped-share.js) `→ /wrapped/<agent_id>/share`, tests [tests/wrapped.test.js](tests/wrapped.test.js) | Live (read-only, zero custody) | The artifact the trading stack was missing: one image and one link that say what a season was. Eight slides cut server-side from a trader agent's closed on-chain round-trips (scoreboard, best trade, worst trade, the coin that carried it, rhythm, rank against the field with the nearest rival, receipt), swipeable on touch and keyboard-driven on desktop, with the current slide in the URL hash so a share link lands on the slide the sharer was reading. Arithmetic is delegated wholesale to `computeTraderMetrics` in [api/_lib/trader-stats.js](api/_lib/trader-stats.js), the same truth layer the leaderboard and trader profile use, so a recap can never disagree with the profile it links to. Deliberately unflattering: the worst-trade slide is not optional, the scoreboard carries an explicit verdict and colors a red season red, per-coin ranking includes coins that lost money, self-launched coins stay excluded from every superlative, the rank always prints the size of the real field beside it, and under 3 settled round-trips the page says there is no season rather than drawing a chart out of noise. Needs no account, wallet, signature or funded signer. Converts through [Fork](src/fork-trade.js) on the best-trade slide and links onward to the verified profile, [Ghost-copy](pages/ghost-copy.html) and the rival's own wrapped. Doc: [docs/trader-wrapped.md](docs/trader-wrapped.md). |
diff --git a/data/changelog.json b/data/changelog.json
index 5442900e1..12f6832a7 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,13 @@
{
"$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, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-09-30",
+ "title": "Trader duels: call which trader wins, free to play",
+ "summary": "A new Duels page pairs traders who sit next to each other on the board and asks one question: who books more realized profit over tomorrow, or over next week? Make your call before the window starts with free points from your daily allowance, then watch the race live on the duel page with both traders' records, trade rooms and profiles one tap away. Results come straight from the on-chain trade ledger, the same numbers their profiles show, and ties or empty windows refund every call. A correct call doubles your stake and adds XP to your quest level, and there is a monthly season board and four badges to earn. Points have no cash value and cannot be bought, sold, transferred or redeemed.",
+ "tags": ["feature"],
+ "link": "/duels"
+ },
{
"date": "2026-09-30",
"title": "Sell your whole agent as a paid API",
diff --git a/data/pages.json b/data/pages.json
index aa8ddc6a3..8c6bf141a 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -6075,6 +6075,14 @@
"changefreq": "monthly",
"added": "2026-09-29"
},
+ {
+ "path": "/docs/trader-duels",
+ "title": "Docs · Trader duels",
+ "description": "How trader duels are generated from the rivalry engine, how calls lock, how a duel resolves from the realized P&L ledger (ties, empty windows, idle and private traders), points, XP, seasons, badges, the anti-abuse rules and the full API. Free to play; points have no cash value.",
+ "priority": 0.6,
+ "changefreq": "monthly",
+ "added": "2026-09-30"
+ },
{
"path": "/docs/trading-quests",
"title": "Docs · Daily trading quests",