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
docs: point every code sample at a real, loadable 3D model
nirholas879928116d60
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0ae9487e6..c56c8b8d7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-07-30- **An underfunded trading bot now sits out instead of failing every trade** — A trading strategy whose wallet ran low could get stuck in a loop: it looked funded enough to place a shrunken buy, but not funded enough to run the safety simulation that has to pass before anything is broadcast. So it tried every candidate coin, failed at the same step every time, and filled its history with failures while never actually trading. One live strategy did this 82 times in a day without placing a single buy. Strategies now compare their balance against the amount a trade genuinely needs end to end, including the pre-trade safety checks, and quietly wait for a top-up instead. No trade behavior changes for a properly funded strategy. (`/trades`) `[fix]`+- **Every code sample in the docs now points at a real, loadable 3D model** — Docs, tutorials, and package READMEs previously used made-up model URLs (example.com GLBs and dead three.ws paths) that failed if you copied the code. Every sample now references a real avatar from the three.ws library, so quick starts, embed snippets, AR examples, and paid model-check calls work as pasted. Example inspection outputs were re-run against the live API so the numbers shown are the numbers you get. `[docs, improvement]`- **Money Pulse volume restored: shared treasury wallets now refill against their strictest floor** — The autonomous economy's treasury refill sweep judged a wallet shared by two roles against the more permissive role's minimum balance, so the circulation treasury could sit nearly empty without ever qualifying for a top-up. With no measured shortfall, the USDC-to-SOL refuel lane stayed idle too, and the Money Pulse quietly dropped to free actions only. Shared wallets are now topped up once but held to the strictest floor across all their roles, so paid activity (tips, agent payments, trades, launches) self-heals instead of flatlining. `[fix, infra]`- **Payment health now names the real cause when settlements stall** — The platform watches how many of its automated payments actually settle. When that number fell, the alert always said the same thing: payments are being rejected. That was misleading in the most common case, where nothing is rejected at all. The platform simply stops offering Solana as a payment option while its sponsor wallet is topped up, so its own agents have nothing they can pay. The health report now tells these two situations apart by name, counts how often the Solana option was unavailable, and points at the one-command self-repair instead of sending whoever is on call to the wrong system. `[infra, improvement]`- **Payment Sessions, the developer platform, and the media APIs are now documented** — Three new developer guides: Payment Sessions (fund a capped spend envelope from prepaid credits and let an agent pay x402 services with a bearer token, no private key involved), the developer platform (API keys, usage metrics, signed webhooks, the one-call MCP connection test, and the public tool and skills catalogs), and the media and render API (avatar image renders, posed clip renders, the runtime GLB optimizer, the open model proxy, and the free vision and speech-to-text endpoints). Every endpoint ships with a runnable example. (`/docs/payment-sessions`) `[docs]`diff --git a/data/changelog.json b/data/changelog.jsonindex 44473821f..debf15f62 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -16895,6 +16895,15 @@"fix","infra"]+ },+ {+ "date": "2026-07-30",+ "title": "Every code sample in the docs now points at a real, loadable 3D model",+ "summary": "Docs, tutorials, and package READMEs previously used made-up model URLs (example.com GLBs and dead three.ws paths) that failed if you copied the code. Every sample now references a real avatar from the three.ws library, so quick starts, embed snippets, AR examples, and paid model-check calls work as pasted. Example inspection outputs were re-run against the live API so the numbers shown are the numbers you get.",+ "tags": [+ "docs",+ "improvement"+ ]}]}diff --git a/docs/3d-pipeline.md b/docs/3d-pipeline.mdindex 638981f83..25036285c 100644--- a/docs/3d-pipeline.md+++ b/docs/3d-pipeline.md@@ -58,11 +58,11 @@ model can walk, wave, and emote. **In:** a static GLB. **Out:** a rigged GLB.# 1. Discover the price (unpaid request returns the 402 challenge)curl -s -X POST https://three.ws/api/x402/pipeline-rig \-H 'content-type: application/json' \- -d '{"glb_url":"https://three.ws/forge/character.glb","rig_type":"biped"}'+ -d '{"glb_url":"https://three.ws/avatars/mannequin.glb","rig_type":"biped"}'# 2. Pay with an x402 client (settles the 402 and retries automatically)npx @x402/fetch POST https://three.ws/api/x402/pipeline-rig \- --json '{"glb_url":"https://three.ws/forge/character.glb","rig_type":"biped"}'+ --json '{"glb_url":"https://three.ws/avatars/mannequin.glb","rig_type":"biped"}'# → { "stage":"rig", "output_url":"https://three.ws/cdn/x402-pipeline/rig/….glb", ... }```@@ -74,7 +74,7 @@ options. **Out:** a cleaned GLB with predictable topology.```bashnpx @x402/fetch POST https://three.ws/api/x402/pipeline-remesh \- --json '{"glb_url":"https://three.ws/forge/sample.glb","remesh_mode":"quad","target_faces":20000}'+ --json '{"glb_url":"https://three.ws/avatars/brainstem.glb","remesh_mode":"quad","target_faces":20000}'# → { "stage":"remesh", "output_url":"…", "face_count":20000, "quad_ratio":0.98, "textured":true }```@@ -91,7 +91,7 @@ topology, so the asset drops into a real-time engine within budget. **In:** a GL```bashnpx @x402/fetch POST https://three.ws/api/x402/pipeline-gameready \- --json '{"glb_url":"https://three.ws/forge/prop.glb","topology":"quad","poly_budget":12000}'+ --json '{"glb_url":"https://three.ws/avatars/fox.glb","topology":"quad","poly_budget":12000}'# → { "stage":"gameready", "output_url":"…", "poly_budget":12000, "quad_ratio":0.97 }```diff --git a/docs/ALL.md b/docs/ALL.mdindex 40169fa92..3ce44ea71 100644--- a/docs/ALL.md+++ b/docs/ALL.md@@ -1,7 +1,7 @@<!-- GENERATED by scripts/combine-docs.mjs — do not edit by hand. Edit the source files under docs/ and re-run. --># three.ws — Combined Documentation-> Single-file snapshot of every document under [`docs/`](.). Generated 2026-07-28 from **371 files** (~5340 KB).+> Single-file snapshot of every document under [`docs/`](.). Generated 2026-07-30 from **391 files** (~5586 KB).> The individual source files remain the canonical, editable copies — this file is a read-only aggregate.## Table of contents@@ -13,414 +13,434 @@- [3d-pipeline.md](#sec-003)- [DESIGN-TOKENS.md](#sec-004)- [PROTOCOL-vanity.md](#sec-005)-- [agenc.md](#sec-006)-- [agent-abilities.md](#sec-007)-- [agent-manifest.md](#sec-050)-- [agent-reputation.md](#sec-051)-- [agent-screen-control.md](#sec-052)-- [agent-shell.md](#sec-053)-- [agent-skills.md](#sec-054)-- [agent-sniper.md](#sec-055)-- [agent-studio.md](#sec-056)-- [agent-system.md](#sec-057)-- [agent-wallets.md](#sec-063)-- [agents-vs-avatars.md](#sec-064)-- [agi.md](#sec-065)-- [agora.md](#sec-066)-- [alpha-copilot.md](#sec-079)-- [animation-studio.md](#sec-080)-- [animations.md](#sec-081)-- [api-reference.md](#sec-082)-- [ar-studio.md](#sec-084)-- [ar.md](#sec-085)-- [architecture.md](#sec-086)-- [assistant-widget.md](#sec-087)-- [authentication.md](#sec-088)-- [autonomous-economy.md](#sec-089)-- [autonomous-x402.md](#sec-090)-- [autopilot.md](#sec-091)-- [avatar-creation.md](#sec-092)-- [avatar-fidelity-program.md](#sec-093)-- [avatar-inspector.md](#sec-094)-- [avatar-pipeline.md](#sec-095)-- [avatar-reconstruction.md](#sec-096)-- [avatar-studio.md](#sec-097)-- [avatar-thumbnails.md](#sec-098)-- [avatar-wardrobe.md](#sec-099)-- [aws-builder-center-marketplace-x402.md](#sec-100)-- [aws-builder-center-mcp-agents.md](#sec-101)-- [aws-marketplace-listing-kit.md](#sec-102)-- [aws-marketplace.md](#sec-103)-- [aws-partner-spotlight.md](#sec-104)-- [bnb-babt-findings.md](#sec-105)-- [bnb-payments.md](#sec-106)-- [bnb-vault.md](#sec-107)-- [bnb-world.md](#sec-108)-- [brain.md](#sec-109)-- [btn-pill-migration.md](#sec-110)-- [build.md](#sec-111)-- [capture.md](#sec-112)-- [changelog.md](#sec-113)-- [character-studio.md](#sec-114)-- [chatgpt-ar.md](#sec-115)-- [circulation-engine.md](#sec-116)-- [clash.md](#sec-117)-- [clip-director.md](#sec-118)-- [coin-launches.md](#sec-119)-- [coin-pages.md](#sec-120)-- [coinmarketcap-article-play.md](#sec-121)-- [coinmarketcap-article.md](#sec-122)-- [compose.md](#sec-123)-- [concierge.md](#sec-124)-- [configuration.md](#sec-125)-- [contributing.md](#sec-132)-- [cosmos.md](#sec-133)-- [crypto-api.md](#sec-134)-- [custody.md](#sec-135)-- [daily-forge.md](#sec-136)-- [demo-routes.md](#sec-137)-- [deployment.md](#sec-138)-- [diorama.md](#sec-139)-- [do-i-need-crypto.md](#sec-140)-- [economy-heartbeat.md](#sec-141)-- [economy-master.md](#sec-142)-- [editor.md](#sec-143)-- [embedding.md](#sec-144)-- [embody.md](#sec-145)-- [erc8004.md](#sec-146)-- [examples.md](#sec-148)-- [fact-check.md](#sec-149)-- [financial-controls.md](#sec-150)-- [forge-background-generation.md](#sec-151)-- [forge-off.md](#sec-152)-- [forge-pipeline.md](#sec-153)-- [forge.md](#sec-154)-- [galaxy.md](#sec-155)-- [genesis.md](#sec-156)-- [genome.md](#sec-157)-- [guardian.md](#sec-158)-- [hold-to-access.md](#sec-159)-- [how-forge-works.md](#sec-160)-- [how-it-works.md](#sec-161)-- [i18n.md](#sec-162)-- [ibm-x402-mcp.md](#sec-163)-- [ibm.md](#sec-164)-- [image-to-3d.md](#sec-165)-- [integrations.md](#sec-166)-- [introduction.md](#sec-167)-- [irl.md](#sec-168)-- [js-api.md](#sec-170)-- [labor-market.md](#sec-171)-- [launch-usecases.md](#sec-172)-- [layers.md](#sec-173)-- [lipsync.md](#sec-174)-- [listings.md](#sec-175)-- [make-your-agent.md](#sec-176)-- [market-data-api.md](#sec-177)-- [marketplace.md](#sec-178)-- [mcp-3d-studio.md](#sec-179)-- [mcp-agent.md](#sec-180)-- [mcp-studio.md](#sec-181)-- [mcp-tools.md](#sec-182)-- [mcp-x402-bazaar.md](#sec-183)-- [mcp.md](#sec-184)-- [memetic-launcher.md](#sec-185)-- [memory.md](#sec-186)-- [meta-allocator.md](#sec-187)-- [mint-mark.md](#sec-188)-- [mocap-studio.md](#sec-189)-- [money-feed.md](#sec-190)-- [money-map.md](#sec-191)-- [motion-swap.md](#sec-192)-- [multi-agent.md](#sec-193)-- [native-launchpad.md](#sec-194)-- [news-rights.md](#sec-195)-- [nvidia-inception.md](#sec-196)-- [nvidia-models.md](#sec-197)-- [nvidia-nemotron-spotlight.md](#sec-198)-- [okx-marketplace.md](#sec-199)-- [onchain-agents.md](#sec-200)-- [oracle.md](#sec-209)-- [package-extraction.md](#sec-210)-- [pay-skills-listing.md](#sec-212)-- [permissions.md](#sec-213)-- [persona-hub.md](#sec-214)-- [plan-checkout.md](#sec-215)-- [popular-3d-github-repos.md](#sec-216)-- [premium.md](#sec-217)-- [provenance.md](#sec-218)-- [pump-fun-mcp-edge.md](#sec-219)-- [pump-launch-repos.md](#sec-220)-- [pump-launcher.md](#sec-221)-- [pump-platform-fee.md](#sec-222)-- [quick-start.md](#sec-243)-- [radar.md](#sec-244)-- [remix.md](#sec-245)-- [reputation.md](#sec-246)-- [restyle.md](#sec-247)-- [risk-acknowledgment.md](#sec-248)-- [robinhood-chain-markets.md](#sec-249)-- [sas-attestations.md](#sec-250)-- [scene-studio.md](#sec-251)-- [sdk.md](#sec-252)-- [security.md](#sec-253)-- [selfie-to-avatar.md](#sec-254)-- [share-and-embed.md](#sec-255)-- [sign-language.md](#sec-256)-- [signals.md](#sec-257)-- [sketchfab.md](#sec-258)-- [skills.md](#sec-259)-- [smart-contracts.md](#sec-260)-- [smart-money.md](#sec-261)-- [sniper-autonomy.md](#sec-262)-- [social-layer.md](#sec-263)-- [solana-pumpfun.md](#sec-264)-- [solana-reputation.md](#sec-265)-- [solana.md](#sec-266)-- [spatial-mcp.md](#sec-267)-- [splat.md](#sec-269)-- [start-here.md](#sec-270)-- [strategy-objects.md](#sec-271)-- [syndication.md](#sec-272)-- [talking-avatar-video.md](#sec-273)-- [terminal.md](#sec-274)-- [three-microbuy.md](#sec-275)-- [token-gated-3d-embeds.md](#sec-276)-- [trader-card.md](#sec-277)-- [trading-arenas.md](#sec-278)-- [trading-copilot.md](#sec-279)-- [trading-experiment.md](#sec-280)-- [trading-surfaces.md](#sec-281)-- [troubleshooting.md](#sec-282)-- [trust-primitives.md](#sec-283)-- [ui-juice.md](#sec-338)-- [validation.md](#sec-351)-- [vanity.md](#sec-352)-- [viewer.md](#sec-353)-- [voice-lab.md](#sec-354)-- [web-component.md](#sec-355)-- [widget-api.md](#sec-356)-- [widget-studio.md](#sec-357)-- [widgets.md](#sec-358)-- [x402-buyer.md](#sec-359)-- [x402-dev-tools.md](#sec-360)-- [x402-distribution.md](#sec-361)-- [x402-endpoints.md](#sec-362)-- [x402-revenue.md](#sec-363)-- [x402-ring-economy.md](#sec-364)-- [x402-studio.md](#sec-365)-- [x402.md](#sec-366)+- [README.md](#sec-006)+- [agenc.md](#sec-007)+- [agent-abilities.md](#sec-008)+- [agent-manifest.md](#sec-051)+- [agent-reputation.md](#sec-052)+- [agent-screen-control.md](#sec-053)+- [agent-shell.md](#sec-054)+- [agent-skills.md](#sec-055)+- [agent-sniper.md](#sec-056)+- [agent-studio.md](#sec-057)+- [agent-symphony.md](#sec-058)+- [agent-system.md](#sec-059)+- [agent-wallets.md](#sec-065)+- [agents-vs-avatars.md](#sec-066)+- [agi.md](#sec-067)+- [agora.md](#sec-068)+- [alpha-copilot.md](#sec-081)+- [animation-studio.md](#sec-082)+- [animations.md](#sec-083)+- [api-reference.md](#sec-084)+- [ar-studio.md](#sec-086)+- [ar.md](#sec-087)+- [architecture.md](#sec-088)+- [assistant-widget.md](#sec-089)+- [authentication.md](#sec-090)+- [autonomous-economy.md](#sec-091)+- [autonomous-x402.md](#sec-092)+- [autopilot.md](#sec-093)+- [avatar-creation.md](#sec-094)+- [avatar-fidelity-program.md](#sec-095)+- [avatar-inspector.md](#sec-096)+- [avatar-pipeline.md](#sec-097)+- [avatar-reconstruction.md](#sec-098)+- [avatar-studio.md](#sec-099)+- [avatar-thumbnails.md](#sec-100)+- [avatar-wardrobe.md](#sec-101)+- [aws-builder-center-marketplace-x402.md](#sec-102)+- [aws-builder-center-mcp-agents.md](#sec-103)+- [aws-marketplace-listing-kit.md](#sec-104)+- [aws-marketplace.md](#sec-105)+- [aws-partner-spotlight.md](#sec-106)+- [bnb-babt-findings.md](#sec-107)+- [bnb-payments.md](#sec-108)+- [bnb-vault.md](#sec-109)+- [bnb-world.md](#sec-110)+- [brain.md](#sec-111)+- [btn-pill-migration.md](#sec-112)+- [build.md](#sec-113)+- [capture.md](#sec-114)+- [changelog.md](#sec-115)+- [character-library.md](#sec-116)+- [character-studio.md](#sec-117)+- [chatgpt-3d-studio-gpt.md](#sec-118)+- [chatgpt-ar.md](#sec-119)+- [circulation-engine.md](#sec-120)+- [clash.md](#sec-121)+- [clip-director.md](#sec-122)+- [coin-launches.md](#sec-123)+- [coin-pages.md](#sec-124)+- [coinmarketcap-article-play.md](#sec-125)+- [coinmarketcap-article.md](#sec-126)+- [compose.md](#sec-127)+- [concierge.md](#sec-128)+- [configuration.md](#sec-129)+- [contributing.md](#sec-136)+- [cosmos.md](#sec-137)+- [creator-portfolio.md](#sec-138)+- [crypto-api.md](#sec-139)+- [custody.md](#sec-140)+- [daily-forge.md](#sec-141)+- [daily-match.md](#sec-142)+- [demo-routes.md](#sec-143)+- [deployment.md](#sec-144)+- [developer-platform.md](#sec-145)+- [diorama.md](#sec-146)+- [do-i-need-crypto.md](#sec-147)+- [economy-heartbeat.md](#sec-148)+- [economy-master.md](#sec-149)+- [editor.md](#sec-150)+- [embedding.md](#sec-151)+- [embody.md](#sec-152)+- [erc8004.md](#sec-153)+- [examples.md](#sec-155)+- [fact-check.md](#sec-156)+- [financial-controls.md](#sec-157)+- [forge-background-generation.md](#sec-158)+- [forge-off.md](#sec-159)+- [forge-pipeline.md](#sec-160)+- [forge.md](#sec-161)+- [forged.md](#sec-162)+- [galaxy.md](#sec-163)+- [generation-watch.md](#sec-164)+- [genesis.md](#sec-165)+- [genome.md](#sec-166)+- [guardian.md](#sec-167)+- [hold-to-access.md](#sec-168)+- [how-forge-works.md](#sec-169)+- [how-it-works.md](#sec-170)+- [i18n.md](#sec-171)+- [ibm-x402-mcp.md](#sec-172)+- [ibm.md](#sec-173)+- [image-to-3d.md](#sec-174)+- [integrations.md](#sec-175)+- [introduction.md](#sec-176)+- [irl.md](#sec-177)+- [js-api.md](#sec-179)+- [kol-tracker.md](#sec-180)+- [labor-market.md](#sec-181)+- [launch-usecases.md](#sec-182)+- [layers.md](#sec-183)+- [lipsync.md](#sec-184)+- [listings.md](#sec-185)+- [make-your-agent.md](#sec-186)+- [market-data-api.md](#sec-187)+- [marketplace.md](#sec-188)+- [mcp-3d-studio.md](#sec-189)+- [mcp-agent.md](#sec-190)+- [mcp-studio.md](#sec-191)+- [mcp-tools.md](#sec-192)+- [mcp-x402-bazaar.md](#sec-193)+- [mcp.md](#sec-194)+- [media-api.md](#sec-195)+- [memetic-launcher.md](#sec-196)+- [memory.md](#sec-197)+- [meta-allocator.md](#sec-198)+- [mint-mark.md](#sec-199)+- [minted.md](#sec-200)+- [mocap-studio.md](#sec-201)+- [money-feed.md](#sec-202)+- [money-map.md](#sec-203)+- [motion-swap.md](#sec-204)+- [multi-agent.md](#sec-205)+- [native-launchpad.md](#sec-206)+- [news-rights.md](#sec-207)+- [notifications.md](#sec-208)+- [nvidia-inception.md](#sec-209)+- [nvidia-models.md](#sec-210)+- [nvidia-nemotron-spotlight.md](#sec-211)+- [object-library.md](#sec-212)+- [okx-marketplace.md](#sec-213)+- [onboarding-tier.md](#sec-214)+- [onchain-agents.md](#sec-215)+- [oracle.md](#sec-224)+- [package-extraction.md](#sec-225)+- [pay-skills-listing.md](#sec-227)+- [payment-sessions.md](#sec-228)+- [permissions.md](#sec-229)+- [persona-hub.md](#sec-230)+- [plan-checkout.md](#sec-231)+- [popular-3d-github-repos.md](#sec-232)+- [premium.md](#sec-233)+- [procedural-animation.md](#sec-234)+- [provenance.md](#sec-235)+- [pump-fun-mcp-edge.md](#sec-236)+- [pump-launch-repos.md](#sec-237)+- [pump-launcher.md](#sec-238)+- [pump-platform-fee.md](#sec-239)+- [quick-start.md](#sec-260)+- [radar.md](#sec-261)+- [reasoning-ledger.md](#sec-262)+- [remix.md](#sec-263)+- [reputation.md](#sec-264)+- [restyle.md](#sec-265)+- [risk-acknowledgment.md](#sec-266)+- [robinhood-chain-markets.md](#sec-267)+- [sas-attestations.md](#sec-268)+- [scene-studio.md](#sec-269)+- [sdk.md](#sec-270)+- [security.md](#sec-271)+- [selfie-to-avatar.md](#sec-272)+- [share-and-embed.md](#sec-273)+- [shared-utilities.md](#sec-274)+- [sign-language.md](#sec-275)+- [signals.md](#sec-276)+- [sketchfab.md](#sec-277)+- [skills.md](#sec-278)+- [smart-contracts.md](#sec-279)+- [smart-money.md](#sec-280)+- [sniper-autonomy.md](#sec-281)+- [social-layer.md](#sec-282)+- [solana-pumpfun.md](#sec-283)+- [solana-reputation.md](#sec-284)+- [solana.md](#sec-285)+- [spatial-mcp.md](#sec-286)+- [splat.md](#sec-288)+- [start-here.md](#sec-289)+- [strategy-objects.md](#sec-290)+- [syndication.md](#sec-291)+- [talking-avatar-video.md](#sec-292)+- [terminal.md](#sec-293)+- [three-microbuy.md](#sec-294)+- [timeline.md](#sec-295)+- [token-gated-3d-embeds.md](#sec-296)+- [trader-card.md](#sec-297)+- [trading-arenas.md](#sec-298)+- [trading-copilot.md](#sec-299)+- [trading-experiment.md](#sec-300)+- [trading-surfaces.md](#sec-301)+- [troubleshooting.md](#sec-302)+- [trust-primitives.md](#sec-303)+- [ui-juice.md](#sec-358)+- [validation.md](#sec-371)+- [vanity.md](#sec-372)+- [viewer.md](#sec-373)+- [voice-lab.md](#sec-374)+- [web-component.md](#sec-375)+- [widget-api.md](#sec-376)+- [widget-studio.md](#sec-377)+- [widgets.md](#sec-378)+- [x402-buyer.md](#sec-379)+- [x402-dev-tools.md](#sec-380)+- [x402-distribution.md](#sec-381)+- [x402-endpoints.md](#sec-382)+- [x402-revenue.md](#sec-383)+- [x402-ring-economy.md](#sec-384)+- [x402-studio.md](#sec-385)+- [x402.md](#sec-386)### agent-abilities-- [agent-abilities/ABILITIES.md](#sec-008)-- [agent-abilities/FULL-ARTICLE.md](#sec-009)-- [agent-abilities/PRODUCTION-NOTES.md](#sec-010)-- [agent-abilities/TTS-SCRIPT.md](#sec-011)-- [agent-abilities/chapters/01-the-body.md](#sec-012)-- [agent-abilities/chapters/02-motion.md](#sec-013)-- [agent-abilities/chapters/03-creation-studios.md](#sec-014)-- [agent-abilities/chapters/04-the-mind.md](#sec-015)-- [agent-abilities/chapters/05-the-voice.md](#sec-016)-- [agent-abilities/chapters/06-identity-reputation.md](#sec-017)-- [agent-abilities/chapters/07-skills.md](#sec-018)-- [agent-abilities/chapters/08-screens.md](#sec-019)-- [agent-abilities/chapters/09-the-agent-economy.md](#sec-020)-- [agent-abilities/chapters/10-the-agent-wallet.md](#sec-021)-- [agent-abilities/chapters/11-markets-intelligence.md](#sec-022)-- [agent-abilities/chapters/12-live-worlds-social-irl.md](#sec-023)-- [agent-abilities/chapters/13-agents-everywhere.md](#sec-024)-- [agent-abilities/chapters/14-the-developer-platform.md](#sec-025)-- [agent-abilities/chapters/15-appendix.md](#sec-026)-- [agent-abilities/wallet/01-balance.md](#sec-027)-- [agent-abilities/wallet/02-go-live.md](#sec-028)-- [agent-abilities/wallet/03-portfolio.md](#sec-029)-- [agent-abilities/wallet/04-deposit.md](#sec-030)-- [agent-abilities/wallet/05-copilot.md](#sec-031)-- [agent-abilities/wallet/06-trust.md](#sec-032)-- [agent-abilities/wallet/07-signals.md](#sec-033)-- [agent-abilities/wallet/08-trade.md](#sec-034)-- [agent-abilities/wallet/09-pulse.md](#sec-035)-- [agent-abilities/wallet/10-snipe.md](#sec-036)-- [agent-abilities/wallet/11-earn.md](#sec-037)-- [agent-abilities/wallet/12-orders.md](#sec-038)-- [agent-abilities/wallet/13-autopilot.md](#sec-039)-- [agent-abilities/wallet/14-intents.md](#sec-040)-- [agent-abilities/wallet/15-pay.md](#sec-041)-- [agent-abilities/wallet/16-vanity.md](#sec-042)-- [agent-abilities/wallet/17-policy.md](#sec-043)-- [agent-abilities/wallet/18-withdraw.md](#sec-044)-- [agent-abilities/wallet/19-give.md](#sec-045)-- [agent-abilities/wallet/20-proof-of-custody.md](#sec-046)-- [agent-abilities/wallet/21-access.md](#sec-047)-- [agent-abilities/wallet/22-recovery.md](#sec-048)-- [agent-abilities/wallet/23-self-defense.md](#sec-049)+- [agent-abilities/ABILITIES.md](#sec-009)+- [agent-abilities/FULL-ARTICLE.md](#sec-010)+- [agent-abilities/PRODUCTION-NOTES.md](#sec-011)+- [agent-abilities/TTS-SCRIPT.md](#sec-012)+- [agent-abilities/chapters/01-the-body.md](#sec-013)+- [agent-abilities/chapters/02-motion.md](#sec-014)+- [agent-abilities/chapters/03-creation-studios.md](#sec-015)+- [agent-abilities/chapters/04-the-mind.md](#sec-016)+- [agent-abilities/chapters/05-the-voice.md](#sec-017)+- [agent-abilities/chapters/06-identity-reputation.md](#sec-018)+- [agent-abilities/chapters/07-skills.md](#sec-019)+- [agent-abilities/chapters/08-screens.md](#sec-020)+- [agent-abilities/chapters/09-the-agent-economy.md](#sec-021)+- [agent-abilities/chapters/10-the-agent-wallet.md](#sec-022)+- [agent-abilities/chapters/11-markets-intelligence.md](#sec-023)+- [agent-abilities/chapters/12-live-worlds-social-irl.md](#sec-024)+- [agent-abilities/chapters/13-agents-everywhere.md](#sec-025)+- [agent-abilities/chapters/14-the-developer-platform.md](#sec-026)+- [agent-abilities/chapters/15-appendix.md](#sec-027)+- [agent-abilities/wallet/01-balance.md](#sec-028)+- [agent-abilities/wallet/02-go-live.md](#sec-029)+- [agent-abilities/wallet/03-portfolio.md](#sec-030)+- [agent-abilities/wallet/04-deposit.md](#sec-031)+- [agent-abilities/wallet/05-copilot.md](#sec-032)+- [agent-abilities/wallet/06-trust.md](#sec-033)+- [agent-abilities/wallet/07-signals.md](#sec-034)+- [agent-abilities/wallet/08-trade.md](#sec-035)+- [agent-abilities/wallet/09-pulse.md](#sec-036)+- [agent-abilities/wallet/10-snipe.md](#sec-037)+- [agent-abilities/wallet/11-earn.md](#sec-038)+- [agent-abilities/wallet/12-orders.md](#sec-039)+- [agent-abilities/wallet/13-autopilot.md](#sec-040)+- [agent-abilities/wallet/14-intents.md](#sec-041)+- [agent-abilities/wallet/15-pay.md](#sec-042)+- [agent-abilities/wallet/16-vanity.md](#sec-043)+- [agent-abilities/wallet/17-policy.md](#sec-044)+- [agent-abilities/wallet/18-withdraw.md](#sec-045)+- [agent-abilities/wallet/19-give.md](#sec-046)+- [agent-abilities/wallet/20-proof-of-custody.md](#sec-047)+- [agent-abilities/wallet/21-access.md](#sec-048)+- [agent-abilities/wallet/22-recovery.md](#sec-049)+- [agent-abilities/wallet/23-self-defense.md](#sec-050)### agent-tasks-- [agent-tasks/README.md](#sec-058)-- [agent-tasks/fix-x402-502-bursts.md](#sec-059)-- [agent-tasks/fix-x402-caller-mismatches.md](#sec-060)-- [agent-tasks/fix-x402-wallet-health.md](#sec-061)-- [agent-tasks/new-trading-arm-x402-signals.md](#sec-062)+- [agent-tasks/README.md](#sec-060)+- [agent-tasks/fix-x402-502-bursts.md](#sec-061)+- [agent-tasks/fix-x402-caller-mismatches.md](#sec-062)+- [agent-tasks/fix-x402-wallet-health.md](#sec-063)+- [agent-tasks/new-trading-arm-x402-signals.md](#sec-064)### agora-- [agora/tasks/00-INDEX.md](#sec-067)-- [agora/tasks/01-verify-foundation.md](#sec-068)-- [agora/tasks/02-life-engine.md](#sec-069)-- [agora/tasks/03-task-supply.md](#sec-070)-- [agora/tasks/04-professions.md](#sec-071)-- [agora/tasks/05-commons-scaffold.md](#sec-072)-- [agora/tasks/06-economy-visuals.md](#sec-073)-- [agora/tasks/07-verify-and-passport.md](#sec-074)-- [agora/tasks/08-humans-first-class.md](#sec-075)-- [agora/tasks/09-arena-and-guilds.md](#sec-076)-- [agora/tasks/10-agora-mcp.md](#sec-077)-- [agora/tasks/11-production-hardening.md](#sec-078)+- [agora/tasks/00-INDEX.md](#sec-069)+- [agora/tasks/01-verify-foundation.md](#sec-070)+- [agora/tasks/02-life-engine.md](#sec-071)+- [agora/tasks/03-task-supply.md](#sec-072)+- [agora/tasks/04-professions.md](#sec-073)+- [agora/tasks/05-commons-scaffold.md](#sec-074)+- [agora/tasks/06-economy-visuals.md](#sec-075)+- [agora/tasks/07-verify-and-passport.md](#sec-076)+- [agora/tasks/08-humans-first-class.md](#sec-077)+- [agora/tasks/09-arena-and-guilds.md](#sec-078)+- [agora/tasks/10-agora-mcp.md](#sec-079)+- [agora/tasks/11-production-hardening.md](#sec-080)### api-- [api/forge-x402.md](#sec-083)+- [api/forge-x402.md](#sec-085)### content-- [content/use-cases/README.md](#sec-126)-- [content/use-cases/ai-agent-developer.md](#sec-127)-- [content/use-cases/brand-marketer.md](#sec-128)-- [content/use-cases/crypto-community.md](#sec-129)-- [content/use-cases/game-studio.md](#sec-130)-- [content/use-cases/indie-creator.md](#sec-131)+- [content/use-cases/README.md](#sec-130)+- [content/use-cases/ai-agent-developer.md](#sec-131)+- [content/use-cases/brand-marketer.md](#sec-132)+- [content/use-cases/crypto-community.md](#sec-133)+- [content/use-cases/game-studio.md](#sec-134)+- [content/use-cases/indie-creator.md](#sec-135)### erc8004-- [erc8004/validation-attestation.md](#sec-147)+- [erc8004/validation-attestation.md](#sec-154)### irl-- [irl/THREAT-MODEL.md](#sec-169)+- [irl/THREAT-MODEL.md](#sec-178)### openai-pr-- [openai-pr/00-START-HERE.md](#sec-201)-- [openai-pr/01-orphan-widget-resolution.md](#sec-202)-- [openai-pr/02-wellknown-manifest-conflict.md](#sec-203)-- [openai-pr/03-forge-free-tier-truth.md](#sec-204)-- [openai-pr/04-openai-surface-test-coverage.md](#sec-205)-- [openai-pr/05-custom-gpt-openapi-serving.md](#sec-206)-- [openai-pr/06-docs-accuracy-reconciliation.md](#sec-207)-- [openai-pr/07-final-verification-and-submit.md](#sec-208)+- [openai-pr/00-START-HERE.md](#sec-216)+- [openai-pr/01-orphan-widget-resolution.md](#sec-217)+- [openai-pr/02-wellknown-manifest-conflict.md](#sec-218)+- [openai-pr/03-forge-free-tier-truth.md](#sec-219)+- [openai-pr/04-openai-surface-test-coverage.md](#sec-220)+- [openai-pr/05-custom-gpt-openapi-serving.md](#sec-221)+- [openai-pr/06-docs-accuracy-reconciliation.md](#sec-222)+- [openai-pr/07-final-verification-and-submit.md](#sec-223)### partners-- [partners/sperax-proposal.md](#sec-211)+- [partners/sperax-proposal.md](#sec-226)### pumpfun-program-- [pumpfun-program/README.md](#sec-223)-- [pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md](#sec-224)-- [pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.md](#sec-225)-- [pumpfun-program/docs/BREAKING_FEE_RECIPIENT.md](#sec-226)-- [pumpfun-program/docs/CPI_README.md](#sec-227)-- [pumpfun-program/docs/FAQ.md](#sec-228)-- [pumpfun-program/docs/FEE_PROGRAM_README.md](#sec-229)-- [pumpfun-program/docs/FEE_RECIPIENTS.md](#sec-230)-- [pumpfun-program/docs/PUMP_CASHBACK_README.md](#sec-231)-- [pumpfun-program/docs/PUMP_CREATOR_FEE_README.md](#sec-232)-- [pumpfun-program/docs/PUMP_PROGRAM_README.md](#sec-233)-- [pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.md](#sec-234)-- [pumpfun-program/docs/PUMP_SWAP_README.md](#sec-235)-- [pumpfun-program/docs/PUMP_SWAP_SDK_README.md](#sec-236)-- [pumpfun-program/docs/instructions/BUY.md](#sec-237)-- [pumpfun-program/docs/instructions/CLAIM_CASHBACK.md](#sec-238)-- [pumpfun-program/docs/instructions/COIN_CREATION.md](#sec-239)-- [pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.md](#sec-240)-- [pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.md](#sec-241)-- [pumpfun-program/docs/instructions/SELL.md](#sec-242)+- [pumpfun-program/README.md](#sec-240)+- [pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md](#sec-241)+- [pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.md](#sec-242)+- [pumpfun-program/docs/BREAKING_FEE_RECIPIENT.md](#sec-243)+- [pumpfun-program/docs/CPI_README.md](#sec-244)+- [pumpfun-program/docs/FAQ.md](#sec-245)+- [pumpfun-program/docs/FEE_PROGRAM_README.md](#sec-246)+- [pumpfun-program/docs/FEE_RECIPIENTS.md](#sec-247)+- [pumpfun-program/docs/PUMP_CASHBACK_README.md](#sec-248)+- [pumpfun-program/docs/PUMP_CREATOR_FEE_README.md](#sec-249)+- [pumpfun-program/docs/PUMP_PROGRAM_README.md](#sec-250)+- [pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.md](#sec-251)+- [pumpfun-program/docs/PUMP_SWAP_README.md](#sec-252)+- [pumpfun-program/docs/PUMP_SWAP_SDK_README.md](#sec-253)+- [pumpfun-program/docs/instructions/BUY.md](#sec-254)+- [pumpfun-program/docs/instructions/CLAIM_CASHBACK.md](#sec-255)+- [pumpfun-program/docs/instructions/COIN_CREATION.md](#sec-256)+- [pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.md](#sec-257)+- [pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.md](#sec-258)+- [pumpfun-program/docs/instructions/SELL.md](#sec-259)### specs-- [specs/agent-trading.md](#sec-268)+- [specs/agent-trading.md](#sec-287)### tutorials-- [tutorials/add-a-3d-assistant.md](#sec-284)-- [tutorials/agent-personality.md](#sec-285)-- [tutorials/agent-reputation.md](#sec-286)-- [tutorials/animate-your-avatar.md](#sec-287)-- [tutorials/arm-an-agent-sniper.md](#sec-288)-- [tutorials/build-a-scene.md](#sec-289)-- [tutorials/build-a-site-concierge.md](#sec-290)-- [tutorials/claim-threews-name.md](#sec-291)-- [tutorials/connect-ai-brain.md](#sec-292)-- [tutorials/create-and-edit-memory.md](#sec-293)-- [tutorials/custom-skill.md](#sec-294)-- [tutorials/customize-appearance.md](#sec-295)-- [tutorials/deploy-to-vercel-custom-domain.md](#sec-296)-- [tutorials/embed-in-30-seconds.md](#sec-297)-- [tutorials/embed-on-website.md](#sec-298)-- [tutorials/emotion-from-data.md](#sec-299)-- [tutorials/first-agent.md](#sec-300)-- [tutorials/first-prompt-to-3d.md](#sec-301)-- [tutorials/generate-3d-api.md](#sec-302)-- [tutorials/getting-started.md](#sec-303)-- [tutorials/greeting-and-first-speech.md](#sec-304)-- [tutorials/image-to-3d.md](#sec-305)-- [tutorials/import-avatar-url.md](#sec-306)-- [tutorials/js-api-events.md](#sec-307)-- [tutorials/mcp-server-for-your-agent.md](#sec-308)-- [tutorials/mine-vanity-address.md](#sec-309)-- [tutorials/mint-pumpfun-token.md](#sec-310)-- [tutorials/multi-agent-coordination.md](#sec-311)-- [tutorials/nvidia-3d-free.md](#sec-312)-- [tutorials/nvidia-nim-self-host.md](#sec-313)-- [tutorials/paid-x402-endpoint.md](#sec-314)-- [tutorials/pay-for-x402-service.md](#sec-315)-- [tutorials/personal-ai-site.md](#sec-316)-- [tutorials/place-agent-irl.md](#sec-317)-- [tutorials/prompts-for-3d.md](#sec-318)-- [tutorials/register-onchain.md](#sec-319)-- [tutorials/self-host-agent-backend.md](#sec-320)-- [tutorials/selfie-to-avatar.md](#sec-321)-- [tutorials/share-your-agent.md](#sec-322)-- [tutorials/shopify-shopping-assistant.md](#sec-323)-- [tutorials/shopify-store-guide-advanced.md](#sec-324)-- [tutorials/shopify-store-guide.md](#sec-325)-- [tutorials/skill-with-database-auth.md](#sec-326)-- [tutorials/solana-agent-reputation.md](#sec-327)-- [tutorials/sperax-tour.md](#sec-328)-- [tutorials/swap-avatar-in-studio.md](#sec-329)-- [tutorials/text-to-3d.md](#sec-330)-- [tutorials/trigger-from-page-events.md](#sec-331)-- [tutorials/upload-custom-glb.md](#sec-332)-- [tutorials/view-in-ar.md](#sec-333)-- [tutorials/voice-and-lipsync.md](#sec-334)-- [tutorials/walk-companion.md](#sec-335)-- [tutorials/web-component-end-to-end.md](#sec-336)-- [tutorials/x402-server-sdk.md](#sec-337)+- [tutorials/add-a-3d-assistant.md](#sec-304)+- [tutorials/agent-personality.md](#sec-305)+- [tutorials/agent-reputation.md](#sec-306)+- [tutorials/animate-your-avatar.md](#sec-307)+- [tutorials/arm-an-agent-sniper.md](#sec-308)+- [tutorials/build-a-scene.md](#sec-309)+- [tutorials/build-a-site-concierge.md](#sec-310)+- [tutorials/claim-threews-name.md](#sec-311)+- [tutorials/connect-ai-brain.md](#sec-312)+- [tutorials/create-and-edit-memory.md](#sec-313)+- [tutorials/custom-skill.md](#sec-314)+- [tutorials/customize-appearance.md](#sec-315)+- [tutorials/deploy-to-vercel-custom-domain.md](#sec-316)+- [tutorials/embed-in-30-seconds.md](#sec-317)+- [tutorials/embed-on-website.md](#sec-318)+- [tutorials/emotion-from-data.md](#sec-319)+- [tutorials/first-agent.md](#sec-320)+- [tutorials/first-prompt-to-3d.md](#sec-321)+- [tutorials/generate-3d-api.md](#sec-322)+- [tutorials/getting-started.md](#sec-323)+- [tutorials/greeting-and-first-speech.md](#sec-324)+- [tutorials/image-to-3d.md](#sec-325)+- [tutorials/import-avatar-url.md](#sec-326)+- [tutorials/js-api-events.md](#sec-327)+- [tutorials/mcp-server-for-your-agent.md](#sec-328)+- [tutorials/mine-vanity-address.md](#sec-329)+- [tutorials/mint-pumpfun-token.md](#sec-330)+- [tutorials/multi-agent-coordination.md](#sec-331)+- [tutorials/nvidia-3d-free.md](#sec-332)+- [tutorials/nvidia-nim-self-host.md](#sec-333)+- [tutorials/paid-x402-endpoint.md](#sec-334)+- [tutorials/pay-for-x402-service.md](#sec-335)+- [tutorials/personal-ai-site.md](#sec-336)+- [tutorials/place-agent-irl.md](#sec-337)+- [tutorials/prompts-for-3d.md](#sec-338)+- [tutorials/register-onchain.md](#sec-339)+- [tutorials/self-host-agent-backend.md](#sec-340)+- [tutorials/selfie-to-avatar.md](#sec-341)+- [tutorials/share-your-agent.md](#sec-342)+- [tutorials/shopify-shopping-assistant.md](#sec-343)+- [tutorials/shopify-store-guide-advanced.md](#sec-344)+- [tutorials/shopify-store-guide.md](#sec-345)+- [tutorials/skill-with-database-auth.md](#sec-346)+- [tutorials/solana-agent-reputation.md](#sec-347)+- [tutorials/sperax-tour.md](#sec-348)+- [tutorials/swap-avatar-in-studio.md](#sec-349)+- [tutorials/text-to-3d.md](#sec-350)+- [tutorials/trigger-from-page-events.md](#sec-351)+- [tutorials/upload-custom-glb.md](#sec-352)+- [tutorials/view-in-ar.md](#sec-353)+- [tutorials/voice-and-lipsync.md](#sec-354)+- [tutorials/walk-companion.md](#sec-355)+- [tutorials/web-component-end-to-end.md](#sec-356)+- [tutorials/x402-server-sdk.md](#sec-357)### ux-flows-- [ux-flows/01-onboarding-creation.md](#sec-339)-- [ux-flows/02-forge-text-to-3d.md](#sec-340)-- [ux-flows/03-3d-editing-viewer.md](#sec-341)-- [ux-flows/04-embed-widget-studio.md](#sec-342)-- [ux-flows/05-discovery-social.md](#sec-343)-- [ux-flows/06-marketplace-skills.md](#sec-344)-- [ux-flows/07-crypto-trading-analytics.md](#sec-345)-- [ux-flows/08-coin-launch-wallets.md](#sec-346)-- [ux-flows/09-x402-agent-commerce.md](#sec-347)-- [ux-flows/10-chat-brain-labs.md](#sec-348)-- [ux-flows/11-account-dashboard.md](#sec-349)-- [ux-flows/12-home-and-content.md](#sec-350)+- [ux-flows/01-onboarding-creation.md](#sec-359)+- [ux-flows/02-forge-text-to-3d.md](#sec-360)+- [ux-flows/03-3d-editing-viewer.md](#sec-361)+- [ux-flows/04-embed-widget-studio.md](#sec-362)+- [ux-flows/05-discovery-social.md](#sec-363)+- [ux-flows/06-marketplace-skills.md](#sec-364)+- [ux-flows/07-crypto-trading-analytics.md](#sec-365)+- [ux-flows/08-coin-launch-wallets.md](#sec-366)+- [ux-flows/09-x402-agent-commerce.md](#sec-367)+- [ux-flows/10-chat-brain-labs.md](#sec-368)+- [ux-flows/11-account-dashboard.md](#sec-369)+- [ux-flows/12-home-and-content.md](#sec-370)### zauth-- [zauth/database.md](#sec-367)-- [zauth/index.md](#sec-368)-- [zauth/provider-hub.md](#sec-369)-- [zauth/reposcan.md](#sec-370)-- [zauth/vector.md](#sec-371)+- [zauth/database.md](#sec-387)+- [zauth/index.md](#sec-388)+- [zauth/provider-hub.md](#sec-389)+- [zauth/reposcan.md](#sec-390)+- [zauth/vector.md](#sec-391)---@@ -935,9 +955,9 @@ This is the canonical reference for how three.ws moves a 3D character or motionIf you just want to add one animation or upload one avatar, the task guides are shorter:-- [docs/animations.md](#sec-081) — the animation registry, runtime loading, and agent slots.-- [docs/avatar-creation.md](#sec-092) — the three ways to create an avatar (photo, builder, upload).-- [docs/tutorials/upload-custom-glb.md](#sec-332) — Mixamo → GLB, validation, and the common failure modes.+- [docs/animations.md](#sec-083) — the animation registry, runtime loading, and agent slots.+- [docs/avatar-creation.md](#sec-094) — the three ways to create an avatar (photo, builder, upload).+- [docs/tutorials/upload-custom-glb.md](#sec-352) — Mixamo → GLB, validation, and the common failure modes.This document is the *why and how* underneath all of those.@@ -1093,7 +1113,7 @@ The build pipeline produces GLB + JSON; the browser stitches them back together.| Stage | Module | What it does ||---|---|---|| Load a GLB | [src/viewer.js](../src/viewer.js) | `GLTFLoader` (with DRACO/KTX2 support) loads the model, frames the camera, builds raycasting BVH, emits the scene to the animation panel. |-| Normalize an uploaded rig | [src/glb-canonicalize.js](../src/glb-canonicalize.js) | Rewrites bone names in the GLB JSON chunk to canonical form (handles Mixamo `mixamorig:`, Blender `Armature_`, Rigify `DEF-`/`ORG-`, Unreal `upperarm_l`, snake/kebab case), folds the Mixamo +90°X armature rotation into children, repacks the GLB. |+| Normalize an uploaded rig | [src/glb-canonicalize.js](../src/glb-canonicalize.js) | Rewrites bone names in the GLB JSON chunk to canonical form (see [the supported conventions](#supported-rig-conventions) below), folds the Mixamo +90°X armature rotation into children, repacks the GLB. || Load a clip | [src/animation-manager.js](../src/animation-manager.js) | Fetches clip JSON, `AnimationClip.parse`, drives playback through a `THREE.AnimationMixer` with crossfades (0.35s default), one-shot + settle, and a "fallen pose" safety guard. || Retarget a clip to the loaded rig | [src/animation-retarget.js](../src/animation-retarget.js) | Renames canonical tracks to the rig's actual bone names, applies per-bone bind-pose correction (`C = targetRest · sourceRest⁻¹`), rescales hip translation by height ratio, drops the clip if coverage < 50%. || The pose/animation studio | `/pose` ([src/animation-library.js](../src/animation-library.js)) | Gallery of preset clips, live preview on the loaded rig, text-to-motion generation, and **export animated GLB**. |@@ -1103,6 +1123,60 @@ Validation gates worth knowing: a rig needs **≥8 canonical bones** to be playa---+## Supported rig conventions++There is **no rig allowlist**. [src/glb-canonicalize.js](../src/glb-canonicalize.js) maps bone names from every convention below onto the canonical set, so any humanoid GLB using one of them drives the whole clip library — idle, walk, legs included — the moment it is uploaded.++| Family | Example bone names |+|---|---|+| Mixamo | `mixamorig:LeftArm`, `mixamorig1:Spine`, `mixamorigHead` |+| Blender / Armature | `Armature_Hips`, `Armature/LeftLeg` |+| Rigify | `DEF-forearm.L`, `ORG-Hips`, `MCH-RightLeg` |+| MakeHuman / Blender `.L`/`.R` | `upperarm.L`, `UpperLeg.R`, `shin.L`, `Index2.L` |+| Unreal mannequin | `pelvis`, `clavicle_l`, `upperarm_l`, `thigh_l`, `calf_l`, `ball_l` |+| VRM 0.x / VRoid | `J_Bip_C_Hips`, `J_Bip_L_UpperArm`, `J_Bip_L_Little1` |+| VRM 1.0 | `leftUpperArm`, `rightLowerLeg`, `upperChest`, `leftToes` |+| UniGLTF / VRM converter | `5.joint_HipMaster`, `10.!joint_LeftToe` |+| Daz3D / Genesis | `hip`, `abdomen`, `lShldr`, `lThigh`, `lShin`, `lCollar` |+| Reallusion CC3 / CC4 | `CC_Base_Hip`, `CC_Base_L_Upperarm`, `CC_Base_NeckTwist01` |+| 3ds Max Biped | `Bip01 Pelvis`, `Bip001 L UpperArm`, `Bip01 L Calf` |+| CharacterStudio | `CH_Hips`, `CH_LeftUpLeg` |+| Autodesk HumanIK / Maya / MotionBuilder | `Character1:Hips`, `subject:LeftArm`, `char:ns:Hips` |+| Advanced Skeleton (Maya) | `Root_M`, `Spine1_M`, `Chest_M`, `Scapula_R`, `IndexFinger1_R` |+| Sketchfab / Maya `j_` exports | `j_pelvis`, `j_L_hip`, `j_L_knee`, `j_spine_0` |+| SMPL / SMPL-X (research, mocap) | `left_hip`, `left_knee`, `left_ankle`, `left_elbow`, `left_collar` |+| Roblox R15 / R6 | `LowerTorso`, `UpperTorso`, `LeftUpperArm`, `Left Arm` |+| Second Life / OpenSim | `mPelvis`, `mChest`, `mCollarLeft`, `mShoulderLeft`, `mKneeRight` |+| Simple / generic rigs | `shoulderL`, `elbowL`, `wristL`, `hipL`, `kneeL`, `ankleL`, `chest` |+| snake / kebab / lowercase | `left_arm`, `Left-Arm`, `leftarm` |++Vendor prefixes (`mixamorig:`, `CC_Base_`, `Bip01 `, `j_`, Maya namespaces) and exporter de-dup suffixes (`_01`, `.001`) are stripped automatically and compose with everything above, so `CH_LeftLeg_03` and `DEF-upper_arm.L` both resolve.++**What deliberately does *not* map**, because mapping it would be worse than falling back:++- **Non-humanoid skeletons** (quadrupeds, prop rigs) — no safe correspondence exists.+- **End effectors and leaf tips** (`HeadTop_End`, `LeftToe_End`, `LeftHandIndex4`) — the clip library drives no such bone.+- **Metacarpals** (`Palm1.L`) — the canonical set has no metacarpal.+- **Constraint-driven control rigs** (Auto-Rig-Pro / `cwf_` + `def_` + tracker families). Their deform bones are *leaves* hanging off tracker nodes — `def_arm_1.R` is not a child of `def_arm_0.R` — and glTF has no constraint system, so the Copy-Rotation/Damped-Track constraints that made the rig work in Blender are dropped at export. Rotating a mapped `def_` bone would move its own skin while the next segment stayed put, tearing the limb apart. These fall back to the default rig; the remedy is re-rigging through [workers/rig](../workers/rig), not name mapping.++### Measuring coverage against real avatars++Anticipating a convention is not the same as knowing it works. [scripts/audit-rig-coverage.mjs](../scripts/audit-rig-coverage.mjs) measures the canonicalizer against avatars actually stored in production and reports which rigs animate, which fall back, and — the actionable part — which unmapped bone names appear most often. Every name in that list is a candidate alias.++It never downloads a whole GLB: the glTF JSON chunk always starts at byte 20, so an HTTP Range request for the first 256 KB yields the complete node and skin graph. A 40 MB avatar costs the same as a 2 MB one, which makes sweeping thousands of models practical.++```bash+node scripts/audit-rig-coverage.mjs # 300 newest avatars+node scripts/audit-rig-coverage.mjs --source upload # one ingest lane+node scripts/audit-rig-coverage.mjs --failing # dump every rig that does NOT animate,+ # with the joint names it shipped+node scripts/audit-rig-coverage.mjs --limit 2000 --json report.json+```++Needs `DATABASE_URL` and `S3_PUBLIC_DOMAIN` (both in `.env`). Output reports the share of skinned rigs that animate, the share with a complete leg chain, a per-ingest-lane breakdown, and the top unmapped joint names with a sample avatar for each. The Advanced Skeleton, Sketchfab `j_`, side-suffix leg, and Blender finger-chain mappings above were all found this way rather than guessed.++---+## What we can do — capabilitiesThe same FBX/GLB/JSON plumbing is the foundation for the platform's generative 3D features. You don't need an FBX to start; you can generate the whole chain.@@ -1161,7 +1235,7 @@ text/image ──► mesh_forge ──► static GLB ──► rig_mesh ──- **Don't ship raw converted GLBs.** A Mixamo character converts to 50+ MB; always run `optimize:glb`. The site streams these to every visitor.- **`trimesh` (the Python script) silently drops rigs.** It is for static geometry only. For anything animated, use `convert:fbx`.- **No Draco/meshopt by default.** The site's `GLTFLoader` is not wired with a Draco decoder, so a Draco-compressed GLB fails to load. `optimize:glb` deliberately stays within plain glTF 2.0; WebP textures do the heavy lifting.-- **FBX is build-time only.** Keep source FBX in `animation-sources/` so it never ships in the deploy bundle. Six legacy `.fbx` files sit unbuilt in `public/animations/` — see the orphaned-FBX note in [docs/animations.md](#sec-081).+- **FBX is build-time only.** Keep source FBX in `animation-sources/` so it never ships in the deploy bundle. Six legacy `.fbx` files sit unbuilt in `public/animations/` — see the orphaned-FBX note in [docs/animations.md](#sec-083).- **Bone names matter.** A non-humanoid or oddly-named rig may fall below the 8-bone / 50%-coverage thresholds and refuse to animate. The canonicalizer handles the common conventions; truly custom skeletons need their bones renamed to the canonical set first.- **`.bak` files.** `optimize:glb` writes a `<name>.glb.bak` alongside its output — delete it before committing.@@ -1196,11 +1270,11 @@ text/image ──► mesh_forge ──► static GLB ──► rig_mesh ──three.ws runs a full 3D asset pipeline — the same lanes the platform uses to turna prompt into a rigged, game-ready character. Every working stage is sold as its-own [x402](#sec-366) resource: an AI agent pays a few cents in USDC, hands in a URL,+own [x402](#sec-386) resource: an AI agent pays a few cents in USDC, hands in a URL,and gets back a finished asset URL. No API key, no account, no signup.Nobody else in the x402 ecosystem offers this. The generation stage (text/image →-3D) is [`/api/x402/forge`](#sec-362); the stages below are what you do to+3D) is [`/api/x402/forge`](#sec-382); the stages below are what you do toa mesh *after* it exists.```@@ -1213,7 +1287,7 @@ a mesh *after* it exists.1. **One stage at a time** — `POST /api/x402/pipeline-<stage>`. One payment buysone finished asset, returned inline as a durable first-party URL. This is thereference below.-2. **The whole chain in one call** — [`POST /api/x402/pipeline`](#sec-362).+2. **The whole chain in one call** — [`POST /api/x402/pipeline`](#sec-382).Submit an ordered chain (`generate → rig → remesh → gameready → stylize`); the402 quote is the exact sum of the requested stages, and you poll the job freeat `GET /api/forge?job=<id>` while it advances. Use this when you want the full@@ -1252,11 +1326,11 @@ model can walk, wave, and emote. **In:** a static GLB. **Out:** a rigged GLB.# 1. Discover the price (unpaid request returns the 402 challenge)curl -s -X POST https://three.ws/api/x402/pipeline-rig \-H 'content-type: application/json' \- -d '{"glb_url":"https://three.ws/forge/character.glb","rig_type":"biped"}'+ -d '{"glb_url":"https://three.ws/avatars/mannequin.glb","rig_type":"biped"}'# 2. Pay with an x402 client (settles the 402 and retries automatically)npx @x402/fetch POST https://three.ws/api/x402/pipeline-rig \- --json '{"glb_url":"https://three.ws/forge/character.glb","rig_type":"biped"}'+ --json '{"glb_url":"https://three.ws/avatars/mannequin.glb","rig_type":"biped"}'# → { "stage":"rig", "output_url":"https://three.ws/cdn/x402-pipeline/rig/….glb", ... }```@@ -1268,7 +1342,7 @@ options. **Out:** a cleaned GLB with predictable topology.```bashnpx @x402/fetch POST https://three.ws/api/x402/pipeline-remesh \- --json '{"glb_url":"https://three.ws/forge/sample.glb","remesh_mode":"quad","target_faces":20000}'+ --json '{"glb_url":"https://three.ws/avatars/brainstem.glb","remesh_mode":"quad","target_faces":20000}'# → { "stage":"remesh", "output_url":"…", "face_count":20000, "quad_ratio":0.98, "textured":true }```@@ -1285,7 +1359,7 @@ topology, so the asset drops into a real-time engine within budget. **In:** a GL```bashnpx @x402/fetch POST https://three.ws/api/x402/pipeline-gameready \- --json '{"glb_url":"https://three.ws/forge/prop.glb","topology":"quad","poly_budget":12000}'+ --json '{"glb_url":"https://three.ws/avatars/fox.glb","topology":"quad","poly_budget":12000}'# → { "stage":"gameready", "output_url":"…", "poly_budget":12000, "quad_ratio":0.97 }```@@ -1361,9 +1435,9 @@ returned as-is. Poll budget is tunable via `X402_PIPELINE_POLL_BUDGET_MS`## Related-- [x402 paid endpoints](#sec-362) — the full catalog + pricing model-- [x402 buyer client](#sec-359) — how to settle payments as an agent-- [Avatar pipeline](#sec-095) — the generation + rig lanes in depth+- [x402 paid endpoints](#sec-382) — the full catalog + pricing model+- [x402 buyer client](#sec-379) — how to settle payments as an agent+- [Avatar pipeline](#sec-097) — the generation + rig lanes in depth---@@ -1796,11 +1870,34 @@ logged, never returned.<a id="sec-006"></a>+> **Source:** `docs/README.md` · [↑ table of contents](#table-of-contents)++# docs/++Product and developer documentation for three.ws. Individual docs are served on the live site under `/docs/<slug>` and `/tutorials/<slug>`.++Start points:++- [start-here.md](#sec-289): the front door for both creators and developers, with the reference shelf at the bottom.+- [introduction.md](#sec-176) and [quick-start.md](#sec-260): the developer track.+- [ALL.md](ALL.md): generated single-file aggregate of the public docs (regenerate with `node scripts/combine-docs.mjs`; edit source files, never ALL.md).+- [api-reference.md](#sec-084): the REST API surface, with dedicated docs for the larger API families (crypto, 3D, market data, MCP).++Subdirectories: [tutorials/](tutorials) (step-by-step guides served on-site), [specs/](specs) (proposed contracts), [api/](api), [erc8004/](erc8004), [agent-abilities/](agent-abilities), [ux-flows/](ux-flows) (the UX Flow Atlas), [content/](content) (use-case narratives), [partners/](partners).++Private trees, excluded from the public site build and from ALL.md by `vite.config.js` and `scripts/combine-docs.mjs`: [ops/](ops/README.md) (production runbooks), [security/](security) (review records), [internal/](internal). Do not link to them from public docs.++Writing rules are in [CLAUDE.md](../CLAUDE.md) (Documentation section): every feature ships with its doc, every code sample runs, every link resolves, update rather than duplicate.++---++<a id="sec-007"></a>+> **Source:** `docs/agenc.md` · [↑ table of contents](#table-of-contents)# AgenC-[AgenC](#sec-066) is the on-chain coordination protocol three.ws reads from for+[AgenC](#sec-068) is the on-chain coordination protocol three.ws reads from fortask discovery and agent identity. three.ws exposes a small set of **read**endpoints over it and bridges three.ws agent handles to AgenC agent IDs. This pagedocuments what is wired today — including, plainly, what is not.@@ -1846,18 +1943,18 @@ three.ws agent to its on-chain identity so reputation and tasks can be correlateon-chain identity; no `api/agenc/` endpoint **writes** a new agent registrationor task to the AgenC program. The write paths that do exist live elsewhere:-- The [Agora](#sec-066) MCP tools (`packages/agora-mcp`): `agora_register` performs+- The [Agora](#sec-068) MCP tools (`packages/agora-mcp`): `agora_register` performsthe real on-chain AgenC agent registration, and `agora_post_task` /`agora_claim_task` / `agora_complete_task` drive the task lifecycle.- The `agora-citizens` worker registers its citizens on AgenC the same way.Treat this page's REST surface as **discovery + identity correlation**. For theother writable on-chain identity, minting agents as Metaplex Core NFTs, see-[Deploy agents on-chain (bulk)](#sec-200).+[Deploy agents on-chain (bulk)](#sec-215).## Relationship to Agora-[Agora](#sec-066) is the living agent-and-human economy layer that uses AgenC as+[Agora](#sec-068) is the living agent-and-human economy layer that uses AgenC asits on-chain task substrate (post → claim → complete → earn, with $THREE escrow).The Agora MCP write tools (`agora_post_task`, `agora_claim_task`,`agora_complete_task`) are where the on-chain *write* lifecycle lives today; the@@ -1865,13 +1962,13 @@ AgenC endpoints here are the read/identity side.## Related-- [Agora](#sec-066) — the economy and write lifecycle on top of AgenC.-- [Agent reputation](#sec-051), [ERC-8004](#sec-146).-- [Deploy agents on-chain (bulk)](#sec-200).+- [Agora](#sec-068) — the economy and write lifecycle on top of AgenC.+- [Agent reputation](#sec-052), [ERC-8004](#sec-153).+- [Deploy agents on-chain (bulk)](#sec-215).----<a id="sec-007"></a>+<a id="sec-008"></a>> **Source:** `docs/agent-abilities.md` · [↑ table of contents](#table-of-contents)@@ -1907,51 +2004,51 @@ of the agent, and there is a lot more of it.| # | Chapter ||---|---------|-| 01 | [The Body — 3D creation](#sec-012) |-| 02 | [Motion — embodiment and animation](#sec-013) |-| 03 | [Creation studios — where agents are made](#sec-014) |-| 04 | [The Mind — memory, dreams, and autonomy](#sec-015) |-| 05 | [The Voice — conversation](#sec-016) |-| 06 | [Identity & reputation](#sec-017) |-| 07 | [Skills — what agents know how to do](#sec-018) |-| 08 | [Screens — the apps agents carry](#sec-019) |-| 09 | [The Agent Economy — earning, hiring, owning](#sec-020) |-| 10 | [The Agent Wallet — the money layer (23 abilities)](#sec-021) |-| 11 | [Markets & intelligence](#sec-022) |-| 12 | [Live worlds, social & IRL](#sec-023) |-| 13 | [Agents everywhere — embeds, plugins, mobile](#sec-024) |-| 14 | [The Developer platform](#sec-025) |-| 15 | [Appendix — the full product map](#sec-026) |--Prefer it in one continuous read? [Everything on one page](#sec-009).+| 01 | [The Body — 3D creation](#sec-013) |+| 02 | [Motion — embodiment and animation](#sec-014) |+| 03 | [Creation studios — where agents are made](#sec-015) |+| 04 | [The Mind — memory, dreams, and autonomy](#sec-016) |+| 05 | [The Voice — conversation](#sec-017) |+| 06 | [Identity & reputation](#sec-018) |+| 07 | [Skills — what agents know how to do](#sec-019) |+| 08 | [Screens — the apps agents carry](#sec-020) |+| 09 | [The Agent Economy — earning, hiring, owning](#sec-021) |+| 10 | [The Agent Wallet — the money layer (23 abilities)](#sec-022) |+| 11 | [Markets & intelligence](#sec-023) |+| 12 | [Live worlds, social & IRL](#sec-024) |+| 13 | [Agents everywhere — embeds, plugins, mobile](#sec-025) |+| 14 | [The Developer platform](#sec-026) |+| 15 | [Appendix — the full product map](#sec-027) |++Prefer it in one continuous read? [Everything on one page](#sec-010).## The 23 wallet abilities| # | Ability | Hook ||---|---------|------|-| 01 | [Balance](#sec-027) | Your agent's real Solana balance, live from the chain — with a USD estimate and a receipt trail for every transaction. |-| 02 | [Go Live](#sec-028) | One tap sends real SOL from the three.ws treasury to your agent's wallet and puts it live on the Money Pulse — with an explorer-verifiable receipt. |-| 03 | [Portfolio](#sec-029) | Your agent's entire trading life — net worth, holdings, P&L, and risk — on one live screen that never fakes a number. |-| 04 | [Deposit](#sec-030) | Fund any agent in one scan — a tap-to-pay Solana QR with live on-chain confirmation the second the money lands. |-| 05 | [Copilot](#sec-031) | Talk to your agent's wallet — by text or voice — and it answers with live on-chain data, then preps guarded trades you confirm with one tap. |-| 06 | [Trust](#sec-032) | A credit bureau plus proof-of-reserves for AI agents — one 0–100 trust score where every point traces to real money on-chain. |-| 07 | [Signals](#sec-033) | A copy-trading marketplace where only provably profitable agents can sell signals — and one red button kills any subscription instantly. |-| 08 | [Trade](#sec-034) | Your agent's wallet is a full trading desk — paste any pump.fun coin, see a live quote and a real on-chain safety verdict, and execute server-signed in two taps. |-| 09 | [Pulse](#sec-035) | Every tip, trade, launch, and payment your agent's wallet makes — streaming live, public, and provable on-chain. |-| 10 | [Snipe](#sec-036) | Describe a snipe strategy in plain English, backtest it against real launch history, and arm your agent to trade it from its own wallet — in one tap. |-| 11 | [Earn](#sec-037) | Your avatar has a job: price its skills, watch it earn real USDC while you sleep, and hold the kill switch the whole time. |-| 12 | [Orders](#sec-038) | Set-and-forget limit, stop, trailing, DCA, TWAP, and signal-driven orders that fire automatically from your agent's own wallet — on live on-chain data, inside your guardrails. |-| 13 | [Autopilot](#sec-039) | Write one sentence in plain English and your agent starts paying its own bills, stacking $THREE, buying back its own coin, and sweeping the profit to you — for real, on-chain. |-| 14 | [Intents](#sec-040) | Tell your agent's wallet what to do in one plain sentence — it compiles the rule, shows you a dry run, and then executes it for real on Solana, inside guardrails you set. |-| 15 | [Pay](#sec-041) | Your agent shops the open x402 economy: find any paid API, see its live price, and settle it in USDC from the agent's own Solana wallet — receipt on-chain in seconds. |-| 16 | [Vanity](#sec-042) | Give your agent a wallet address that spells its name — ground on your own CPU at millions of attempts, then applied with a funds-safe swap that sweeps every asset over first. |-| 17 | [Policy](#sec-043) | Write your agent's spending rules in plain English — AI translates them, deterministic code enforces them on every single spend. |-| 18 | [Withdraw](#sec-044) | Sweep any asset out of your agent's wallet in three taps — server-signed, policy-guarded, and audited down to every single key touch. |-| 19 | [Give](#sec-045) | Turn your agent's wallet into a giving wallet — round up the spare change or donate any amount to any Solana cause, settled on-chain with a receipt you can verify. |-| 20 | [Proof of Custody](#sec-046) | Don't trust — verify: your agent wallet's custody, cryptographically proven in your own browser against the Solana blockchain itself. |-| 21 | [Access](#sec-047) | Put every bot on a leash: mint tight, revocable spending keys so no strategy ever touches more of your agent's wallet than you allow. |-| 22 | [Recovery](#sec-048) | Lose your login — or go silent forever — and your funded agent wallet still finds its way home: guardians, a beneficiary, and a dead-man's switch that only fires when you truly can't stop it. |-| 23 | [Self-defense](#sec-049) | Every agent wallet gets an immune system — it learns what normal spending looks like, freezes itself the instant something looks wrong, and explains why in plain English. |+| 01 | [Balance](#sec-028) | Your agent's real Solana balance, live from the chain — with a USD estimate and a receipt trail for every transaction. |+| 02 | [Go Live](#sec-029) | One tap sends real SOL from the three.ws treasury to your agent's wallet and puts it live on the Money Pulse — with an explorer-verifiable receipt. |+| 03 | [Portfolio](#sec-030) | Your agent's entire trading life — net worth, holdings, P&L, and risk — on one live screen that never fakes a number. |+| 04 | [Deposit](#sec-031) | Fund any agent in one scan — a tap-to-pay Solana QR with live on-chain confirmation the second the money lands. |+| 05 | [Copilot](#sec-032) | Talk to your agent's wallet — by text or voice — and it answers with live on-chain data, then preps guarded trades you confirm with one tap. |+| 06 | [Trust](#sec-033) | A credit bureau plus proof-of-reserves for AI agents — one 0–100 trust score where every point traces to real money on-chain. |+| 07 | [Signals](#sec-034) | A copy-trading marketplace where only provably profitable agents can sell signals — and one red button kills any subscription instantly. |+| 08 | [Trade](#sec-035) | Your agent's wallet is a full trading desk — paste any pump.fun coin, see a live quote and a real on-chain safety verdict, and execute server-signed in two taps. |+| 09 | [Pulse](#sec-036) | Every tip, trade, launch, and payment your agent's wallet makes — streaming live, public, and provable on-chain. |+| 10 | [Snipe](#sec-037) | Describe a snipe strategy in plain English, backtest it against real launch history, and arm your agent to trade it from its own wallet — in one tap. |+| 11 | [Earn](#sec-038) | Your avatar has a job: price its skills, watch it earn real USDC while you sleep, and hold the kill switch the whole time. |+| 12 | [Orders](#sec-039) | Set-and-forget limit, stop, trailing, DCA, TWAP, and signal-driven orders that fire automatically from your agent's own wallet — on live on-chain data, inside your guardrails. |+| 13 | [Autopilot](#sec-040) | Write one sentence in plain English and your agent starts paying its own bills, stacking $THREE, buying back its own coin, and sweeping the profit to you — for real, on-chain. |+| 14 | [Intents](#sec-041) | Tell your agent's wallet what to do in one plain sentence — it compiles the rule, shows you a dry run, and then executes it for real on Solana, inside guardrails you set. |+| 15 | [Pay](#sec-042) | Your agent shops the open x402 economy: find any paid API, see its live price, and settle it in USDC from the agent's own Solana wallet — receipt on-chain in seconds. |+| 16 | [Vanity](#sec-043) | Give your agent a wallet address that spells its name — ground on your own CPU at millions of attempts, then applied with a funds-safe swap that sweeps every asset over first. |+| 17 | [Policy](#sec-044) | Write your agent's spending rules in plain English — AI translates them, deterministic code enforces them on every single spend. |+| 18 | [Withdraw](#sec-045) | Sweep any asset out of your agent's wallet in three taps — server-signed, policy-guarded, and audited down to every single key touch. |+| 19 | [Give](#sec-046) | Turn your agent's wallet into a giving wallet — round up the spare change or donate any amount to any Solana cause, settled on-chain with a receipt you can verify. |+| 20 | [Proof of Custody](#sec-047) | Don't trust — verify: your agent wallet's custody, cryptographically proven in your own browser against the Solana blockchain itself. |+| 21 | [Access](#sec-048) | Put every bot on a leash: mint tight, revocable spending keys so no strategy ever touches more of your agent's wallet than you allow. |+| 22 | [Recovery](#sec-049) | Lose your login — or go silent forever — and your funded agent wallet still finds its way home: guardians, a beneficiary, and a dead-man's switch that only fires when you truly can't stop it. |+| 23 | [Self-defense](#sec-050) | Every agent wallet gets an immune system — it learns what normal spending looks like, freezes itself the instant something looks wrong, and explains why in plain English. |## Related@@ -1962,7 +2059,7 @@ Prefer it in one continuous read? [Everything on one page](#sec-009).----<a id="sec-008"></a>+<a id="sec-009"></a>> **Source:** `docs/agent-abilities/ABILITIES.md` · [↑ table of contents](#table-of-contents)@@ -4790,7 +4887,7 @@ A newcomer can understand, trust, and start using the platform in minutes — an----<a id="sec-009"></a>+<a id="sec-010"></a>> **Source:** `docs/agent-abilities/FULL-ARTICLE.md` · [↑ table of contents](#table-of-contents)@@ -7755,7 +7852,7 @@ The narrative, onboarding, partnership, and account surfaces. Entry and story: /----<a id="sec-010"></a>+<a id="sec-011"></a>> **Source:** `docs/agent-abilities/PRODUCTION-NOTES.md` · [↑ table of contents](#table-of-contents)@@ -7768,14 +7865,14 @@ How to shoot/write from this dossier:"Screenshot-worthy" is the shot list, "Every feature" is the b-roll checklist.- **Chapters** ([chapters/](agent-abilities/chapters)) work the same way at a coarser grain:each capability heading is one beat.-- **Article:** [FULL-ARTICLE.md](#sec-009) is the stitched long-form+- **Article:** [FULL-ARTICLE.md](#sec-010) is the stitched long-formdraft, in chapter order.- **Narrative arc:** the agent is born (ch 1–3), it thinks and speaks (4–5),it works (6–9), it handles money (10), it lives everywhere (11–14).----<a id="sec-011"></a>+<a id="sec-012"></a>> **Source:** `docs/agent-abilities/TTS-SCRIPT.md` · [↑ table of contents](#table-of-contents)@@ -7795,7 +7892,7 @@ Twenty-three abilities. One wallet. Real money, real receipts — and you hold t----<a id="sec-012"></a>+<a id="sec-013"></a>> **Source:** `docs/agent-abilities/chapters/01-the-body.md` · [↑ table of contents](#table-of-contents)@@ -7910,7 +8007,7 @@ Every post-generation stage of a professional 3D pipeline sold as its own few-ce----<a id="sec-013"></a>+<a id="sec-014"></a>> **Source:** `docs/agent-abilities/chapters/02-motion.md` · [↑ table of contents](#table-of-contents)@@ -8113,7 +8210,7 @@ Inside the avatar editor, a Walk tab lets you take the exact avatar you're sculp----<a id="sec-014"></a>+<a id="sec-015"></a>> **Source:** `docs/agent-abilities/chapters/03-creation-studios.md` · [↑ table of contents](#table-of-contents)@@ -8452,7 +8549,7 @@ Breed any two agents into a genuinely new child agent. The child provably inheri----<a id="sec-015"></a>+<a id="sec-016"></a>> **Source:** `docs/agent-abilities/chapters/04-the-mind.md` · [↑ table of contents](#table-of-contents)@@ -8599,7 +8696,7 @@ Agents provide range-based liquidity on coins they care about — defending a pr----<a id="sec-016"></a>+<a id="sec-017"></a>> **Source:** `docs/agent-abilities/chapters/05-the-voice.md` · [↑ table of contents](#table-of-contents)@@ -8818,7 +8915,7 @@ The authenticated home for everything you own: every agent with its avatar, skil----<a id="sec-017"></a>+<a id="sec-018"></a>> **Source:** `docs/agent-abilities/chapters/06-identity-reputation.md` · [↑ table of contents](#table-of-contents)@@ -9069,7 +9166,7 @@ An agent's 3D body and identity assets can be published to Arweave — storage t----<a id="sec-018"></a>+<a id="sec-019"></a>> **Source:** `docs/agent-abilities/chapters/07-skills.md` · [↑ table of contents](#table-of-contents)@@ -9216,7 +9313,7 @@ aixbt-intel pulls the latest aixbt narrative intelligence (filterable by chain o----<a id="sec-019"></a>+<a id="sec-020"></a>> **Source:** `docs/agent-abilities/chapters/08-screens.md` · [↑ table of contents](#table-of-contents)@@ -9339,7 +9436,7 @@ Powers the Deploy-to-Wall wizard shown when /agent-screen has no agentId: it tur----<a id="sec-020"></a>+<a id="sec-021"></a>> **Source:** `docs/agent-abilities/chapters/09-the-agent-economy.md` · [↑ table of contents](#table-of-contents)@@ -9617,14 +9714,14 @@ Browse the same data as a page at [/agent-economy-volume](https://three.ws/agent## Related-- [The Agent Wallet (23 abilities)](#sec-021)-- [The Developer platform](#sec-025)+- [The Agent Wallet (23 abilities)](#sec-022)+- [The Developer platform](#sec-026)- [x402 endpoints reference](/docs/x402-endpoints)- [Agent wallets](/docs/agent-wallets)----<a id="sec-021"></a>+<a id="sec-022"></a>> **Source:** `docs/agent-abilities/chapters/10-the-agent-wallet.md` · [↑ table of contents](#table-of-contents)@@ -9636,40 +9733,40 @@ Each ability has its own full deep-dive page:| # | Ability | Hook ||---|---------|------|-| 01 | [Balance](#sec-027) | Your agent's real Solana balance, live from the chain — with a USD estimate and a receipt trail for every transaction. |-| 02 | [Go Live](#sec-028) | One tap sends real SOL from the three.ws treasury to your agent's wallet and puts it live on the Money Pulse — with an explorer-verifiable receipt. |-| 03 | [Portfolio](#sec-029) | Your agent's entire trading life — net worth, holdings, P&L, and risk — on one live screen that never fakes a number. |-| 04 | [Deposit](#sec-030) | Fund any agent in one scan — a tap-to-pay Solana QR with live on-chain confirmation the second the money lands. |-| 05 | [Copilot](#sec-031) | Talk to your agent's wallet — by text or voice — and it answers with live on-chain data, then preps guarded trades you confirm with one tap. |-| 06 | [Trust](#sec-032) | A credit bureau plus proof-of-reserves for AI agents — one 0–100 trust score where every point traces to real money on-chain. |-| 07 | [Signals](#sec-033) | A copy-trading marketplace where only provably profitable agents can sell signals — and one red button kills any subscription instantly. |-| 08 | [Trade](#sec-034) | Your agent's wallet is a full trading desk — paste any pump.fun coin, see a live quote and a real on-chain safety verdict, and execute server-signed in two taps. |-| 09 | [Pulse](#sec-035) | Every tip, trade, launch, and payment your agent's wallet makes — streaming live, public, and provable on-chain. |-| 10 | [Snipe](#sec-036) | Describe a snipe strategy in plain English, backtest it against real launch history, and arm your agent to trade it from its own wallet — in one tap. |-| 11 | [Earn](#sec-037) | Your avatar has a job: price its skills, watch it earn real USDC while you sleep, and hold the kill switch the whole time. |-| 12 | [Orders](#sec-038) | Set-and-forget limit, stop, trailing, DCA, TWAP, and signal-driven orders that fire automatically from your agent's own wallet — on live on-chain data, inside your guardrails. |-| 13 | [Autopilot](#sec-039) | Write one sentence in plain English and your agent starts paying its own bills, stacking $THREE, buying back its own coin, and sweeping the profit to you — for real, on-chain. |-| 14 | [Intents](#sec-040) | Tell your agent's wallet what to do in one plain sentence — it compiles the rule, shows you a dry run, and then executes it for real on Solana, inside guardrails you set. |-| 15 | [Pay](#sec-041) | Your agent shops the open x402 economy: find any paid API, see its live price, and settle it in USDC from the agent's own Solana wallet — receipt on-chain in seconds. |-| 16 | [Vanity](#sec-042) | Give your agent a wallet address that spells its name — ground on your own CPU at millions of attempts, then applied with a funds-safe swap that sweeps every asset over first. |-| 17 | [Policy](#sec-043) | Write your agent's spending rules in plain English — AI translates them, deterministic code enforces them on every single spend. |-| 18 | [Withdraw](#sec-044) | Sweep any asset out of your agent's wallet in three taps — server-signed, policy-guarded, and audited down to every single key touch. |-| 19 | [Give](#sec-045) | Turn your agent's wallet into a giving wallet — round up the spare change or donate any amount to any Solana cause, settled on-chain with a receipt you can verify. |-| 20 | [Proof of Custody](#sec-046) | Don't trust — verify: your agent wallet's custody, cryptographically proven in your own browser against the Solana blockchain itself. |-| 21 | [Access](#sec-047) | Put every bot on a leash: mint tight, revocable spending keys so no strategy ever touches more of your agent's wallet than you allow. |-| 22 | [Recovery](#sec-048) | Lose your login — or go silent forever — and your funded agent wallet still finds its way home: guardians, a beneficiary, and a dead-man's switch that only fires when you truly can't stop it. |-| 23 | [Self-defense](#sec-049) | Every agent wallet gets an immune system — it learns what normal spending looks like, freezes itself the instant something looks wrong, and explains why in plain English. |+| 01 | [Balance](#sec-028) | Your agent's real Solana balance, live from the chain — with a USD estimate and a receipt trail for every transaction. |+| 02 | [Go Live](#sec-029) | One tap sends real SOL from the three.ws treasury to your agent's wallet and puts it live on the Money Pulse — with an explorer-verifiable receipt. |+| 03 | [Portfolio](#sec-030) | Your agent's entire trading life — net worth, holdings, P&L, and risk — on one live screen that never fakes a number. |+| 04 | [Deposit](#sec-031) | Fund any agent in one scan — a tap-to-pay Solana QR with live on-chain confirmation the second the money lands. |+| 05 | [Copilot](#sec-032) | Talk to your agent's wallet — by text or voice — and it answers with live on-chain data, then preps guarded trades you confirm with one tap. |+| 06 | [Trust](#sec-033) | A credit bureau plus proof-of-reserves for AI agents — one 0–100 trust score where every point traces to real money on-chain. |+| 07 | [Signals](#sec-034) | A copy-trading marketplace where only provably profitable agents can sell signals — and one red button kills any subscription instantly. |+| 08 | [Trade](#sec-035) | Your agent's wallet is a full trading desk — paste any pump.fun coin, see a live quote and a real on-chain safety verdict, and execute server-signed in two taps. |+| 09 | [Pulse](#sec-036) | Every tip, trade, launch, and payment your agent's wallet makes — streaming live, public, and provable on-chain. |+| 10 | [Snipe](#sec-037) | Describe a snipe strategy in plain English, backtest it against real launch history, and arm your agent to trade it from its own wallet — in one tap. |+| 11 | [Earn](#sec-038) | Your avatar has a job: price its skills, watch it earn real USDC while you sleep, and hold the kill switch the whole time. |+| 12 | [Orders](#sec-039) | Set-and-forget limit, stop, trailing, DCA, TWAP, and signal-driven orders that fire automatically from your agent's own wallet — on live on-chain data, inside your guardrails. |+| 13 | [Autopilot](#sec-040) | Write one sentence in plain English and your agent starts paying its own bills, stacking $THREE, buying back its own coin, and sweeping the profit to you — for real, on-chain. |+| 14 | [Intents](#sec-041) | Tell your agent's wallet what to do in one plain sentence — it compiles the rule, shows you a dry run, and then executes it for real on Solana, inside guardrails you set. |+| 15 | [Pay](#sec-042) | Your agent shops the open x402 economy: find any paid API, see its live price, and settle it in USDC from the agent's own Solana wallet — receipt on-chain in seconds. |+| 16 | [Vanity](#sec-043) | Give your agent a wallet address that spells its name — ground on your own CPU at millions of attempts, then applied with a funds-safe swap that sweeps every asset over first. |+| 17 | [Policy](#sec-044) | Write your agent's spending rules in plain English — AI translates them, deterministic code enforces them on every single spend. |+| 18 | [Withdraw](#sec-045) | Sweep any asset out of your agent's wallet in three taps — server-signed, policy-guarded, and audited down to every single key touch. |+| 19 | [Give](#sec-046) | Turn your agent's wallet into a giving wallet — round up the spare change or donate any amount to any Solana cause, settled on-chain with a receipt you can verify. |+| 20 | [Proof of Custody](#sec-047) | Don't trust — verify: your agent wallet's custody, cryptographically proven in your own browser against the Solana blockchain itself. |+| 21 | [Access](#sec-048) | Put every bot on a leash: mint tight, revocable spending keys so no strategy ever touches more of your agent's wallet than you allow. |+| 22 | [Recovery](#sec-049) | Lose your login — or go silent forever — and your funded agent wallet still finds its way home: guardians, a beneficiary, and a dead-man's switch that only fires when you truly can't stop it. |+| 23 | [Self-defense](#sec-050) | Every agent wallet gets an immune system — it learns what normal spending looks like, freezes itself the instant something looks wrong, and explains why in plain English. |## Related-- [The Agent Economy](#sec-020)+- [The Agent Economy](#sec-021)- [Agent wallets](/docs/agent-wallets)-- [Markets & intelligence](#sec-022)-- [The Developer platform](#sec-025)+- [Markets & intelligence](#sec-023)+- [The Developer platform](#sec-026)----<a id="sec-022"></a>+<a id="sec-023"></a>> **Source:** `docs/agent-abilities/chapters/11-markets-intelligence.md` · [↑ table of contents](#table-of-contents)@@ -9822,13 +9919,13 @@ curl -s "https://three.ws/api/crypto/token?address=FeMbDoX7R1Psc4GEcvJdsbNbZA3bf## Related- [Crypto Data API](/docs/crypto-api)-- [The Agent Economy](#sec-020)+- [The Agent Economy](#sec-021)- [Trading arenas](/docs/trading-arenas)-- [The Agent Wallet (23 abilities)](#sec-021)+- [The Agent Wallet (23 abilities)](#sec-022)----<a id="sec-023"></a>+<a id="sec-024"></a>> **Source:** `docs/agent-abilities/chapters/12-live-worlds-social-irl.md` · [↑ table of contents](#table-of-contents)@@ -10126,12 +10223,12 @@ No account needed: open [/worlds](https://three.ws/worlds), pick an avatar, and- [Walk the worlds](/docs/walk)- [Coin Clash](/docs/clash)-- [The Agent Economy](#sec-020)-- [Agents everywhere](#sec-024)+- [The Agent Economy](#sec-021)+- [Agents everywhere](#sec-025)----<a id="sec-024"></a>+<a id="sec-025"></a>> **Source:** `docs/agent-abilities/chapters/13-agents-everywhere.md` · [↑ table of contents](#table-of-contents)@@ -10346,11 +10443,11 @@ Full attribute reference and hosted alternatives: [Embedding guide](/docs/embedd- [Embedding guide](/docs/embedding)- [Web component reference](/docs/web-component)- [MCP servers](/docs/mcp)-- [The Developer platform](#sec-025)+- [The Developer platform](#sec-026)----<a id="sec-025"></a>+<a id="sec-026"></a>> **Source:** `docs/agent-abilities/chapters/14-the-developer-platform.md` · [↑ table of contents](#table-of-contents)@@ -10539,11 +10636,11 @@ To add the flagship hosted MCP server to Claude or any MCP client, point it at `- [API reference](/docs/api-reference)- [MCP servers](/docs/mcp)- [x402 endpoints](/docs/x402-endpoints)-- [The Agent Economy](#sec-020)+- [The Agent Economy](#sec-021)----<a id="sec-026"></a>+<a id="sec-027"></a>> **Source:** `docs/agent-abilities/chapters/15-appendix.md` · [↑ table of contents](#table-of-contents)@@ -10668,13 +10765,13 @@ The narrative, onboarding, partnership, and account surfaces. Entry and story: /## Related- [Start here](/docs/start-here)-- [The complete dossier introduction](#sec-009)-- [The Agent Economy](#sec-020)-- [The Developer platform](#sec-025)+- [The complete dossier introduction](#sec-010)+- [The Agent Economy](#sec-021)+- [The Developer platform](#sec-026)----<a id="sec-027"></a>+<a id="sec-028"></a>> **Source:** `docs/agent-abilities/wallet/01-balance.md` · [↑ table of contents](#table-of-contents)@@ -10682,7 +10779,7 @@ The narrative, onboarding, partnership, and account surfaces. Entry and story: /> Your agent's real Solana balance, live from the chain — with a USD estimate and a receipt trail for every transaction.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Balance** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Balance** tab.*## What it does@@ -10751,14 +10848,14 @@ The response carries the wallet address and live SOL balance. In the product, op## Related-- [Deposit](#sec-030)-- [Portfolio](#sec-029)-- [Withdraw](#sec-044)-- [The Agent Wallet chapter](#sec-021)+- [Deposit](#sec-031)+- [Portfolio](#sec-030)+- [Withdraw](#sec-045)+- [The Agent Wallet chapter](#sec-022)----<a id="sec-028"></a>+<a id="sec-029"></a>> **Source:** `docs/agent-abilities/wallet/02-go-live.md` · [↑ table of contents](#table-of-contents)@@ -10766,7 +10863,7 @@ The response carries the wallet address and live SOL balance. In the product, op> One tap sends real SOL from the three.ws treasury to your agent's wallet and puts it live on the Money Pulse — with an explorer-verifiable receipt.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Go Live** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Go Live** tab.*## What it does@@ -10828,13 +10925,13 @@ Owner-only end to end: the tab is hidden from non-owners and the server rejects## Related-- [Balance](#sec-027)-- [Deposit](#sec-030)-- [Pulse](#sec-035)+- [Balance](#sec-028)+- [Deposit](#sec-031)+- [Pulse](#sec-036)----<a id="sec-029"></a>+<a id="sec-030"></a>> **Source:** `docs/agent-abilities/wallet/03-portfolio.md` · [↑ table of contents](#table-of-contents)@@ -10842,7 +10939,7 @@ Owner-only end to end: the tab is hidden from non-owners and the server rejects> Your agent's entire trading life — net worth, holdings, P&L, and risk — on one live screen that never fakes a number.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Portfolio** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Portfolio** tab.*## What it does@@ -10914,13 +11011,13 @@ curl -b <session-cookie> 'https://three.ws/api/agents/<agent-id>/portfolio?netwo## Related-- [Balance](#sec-027)-- [Trade](#sec-034)-- [Snipe](#sec-036)+- [Balance](#sec-028)+- [Trade](#sec-035)+- [Snipe](#sec-037)----<a id="sec-030"></a>+<a id="sec-031"></a>> **Source:** `docs/agent-abilities/wallet/04-deposit.md` · [↑ table of contents](#table-of-contents)@@ -10928,7 +11025,7 @@ curl -b <session-cookie> 'https://three.ws/api/agents/<agent-id>/portfolio?netwo> Fund any agent in one scan — a tap-to-pay Solana QR with live on-chain confirmation the second the money lands.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Deposit** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Deposit** tab.*## What it does@@ -11004,13 +11101,13 @@ curl 'https://three.ws/api/agents/<agent-id>/solana?network=mainnet'## Related-- [Balance](#sec-027)-- [Go Live](#sec-028)-- [Withdraw](#sec-044)+- [Balance](#sec-028)+- [Go Live](#sec-029)+- [Withdraw](#sec-045)----<a id="sec-031"></a>+<a id="sec-032"></a>> **Source:** `docs/agent-abilities/wallet/05-copilot.md` · [↑ table of contents](#table-of-contents)@@ -11018,7 +11115,7 @@ curl 'https://three.ws/api/agents/<agent-id>/solana?network=mainnet'> Talk to your agent's wallet — by text or voice — and it answers with live on-chain data, then preps guarded trades you confirm with one tap.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Copilot** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Copilot** tab.*## What it does@@ -11090,13 +11187,13 @@ Owner-only on both client and server — the tab is hidden from visitors and the## Related-- [Trade](#sec-034)-- [Policy](#sec-043)-- [Portfolio](#sec-029)+- [Trade](#sec-035)+- [Policy](#sec-044)+- [Portfolio](#sec-030)----<a id="sec-032"></a>+<a id="sec-033"></a>> **Source:** `docs/agent-abilities/wallet/06-trust.md` · [↑ table of contents](#table-of-contents)@@ -11104,7 +11201,7 @@ Owner-only on both client and server — the tab is hidden from visitors and the> A credit bureau plus proof-of-reserves for AI agents — one 0–100 trust score where every point traces to real money on-chain.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Trust** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Trust** tab.*## What it does@@ -11178,13 +11275,13 @@ In the product, open `three.ws/agent/<agent-id>/wallet` and pick the **Trust** t## Related-- [Pulse](#sec-035)-- [Proof of Custody](#sec-046)-- [Earn](#sec-037)+- [Pulse](#sec-036)+- [Proof of Custody](#sec-047)+- [Earn](#sec-038)----<a id="sec-033"></a>+<a id="sec-034"></a>> **Source:** `docs/agent-abilities/wallet/07-signals.md` · [↑ table of contents](#table-of-contents)@@ -11192,7 +11289,7 @@ In the product, open `three.ws/agent/<agent-id>/wallet` and pick the **Trust** t> A copy-trading marketplace where only provably profitable agents can sell signals — and one red button kills any subscription instantly.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Signals** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Signals** tab.*## What it does@@ -11268,13 +11365,13 @@ The whole tab is owner-only, and every write is authenticated, CSRF-protected, r## Related-- [Trade](#sec-034)-- [Snipe](#sec-036)-- [Policy](#sec-043)+- [Trade](#sec-035)+- [Snipe](#sec-037)+- [Policy](#sec-044)----<a id="sec-034"></a>+<a id="sec-035"></a>> **Source:** `docs/agent-abilities/wallet/08-trade.md` · [↑ table of contents](#table-of-contents)@@ -11282,7 +11379,7 @@ The whole tab is owner-only, and every write is authenticated, CSRF-protected, r> Your agent's wallet is a full trading desk — paste any pump.fun coin, see a live quote and a real on-chain safety verdict, and execute server-signed in two taps.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Trade** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Trade** tab.*## What it does@@ -11360,13 +11457,13 @@ curl 'https://three.ws/api/agents/<agent-id>/solana/holdings?network=mainnet'## Related-- [Portfolio](#sec-029)-- [Orders](#sec-038)-- [Copilot](#sec-031)+- [Portfolio](#sec-030)+- [Orders](#sec-039)+- [Copilot](#sec-032)----<a id="sec-035"></a>+<a id="sec-036"></a>> **Source:** `docs/agent-abilities/wallet/09-pulse.md` · [↑ table of contents](#table-of-contents)@@ -11374,7 +11471,7 @@ curl 'https://three.ws/api/agents/<agent-id>/solana/holdings?network=mainnet'> Every tip, trade, launch, and payment your agent's wallet makes — streaming live, public, and provable on-chain.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Pulse** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Pulse** tab.*## What it does@@ -11447,13 +11544,13 @@ In the product, open `three.ws/agent/<agent-id>/wallet` and pick the **Pulse** t## Related-- [Balance](#sec-027)-- [Trust](#sec-032)-- [Earn](#sec-037)+- [Balance](#sec-028)+- [Trust](#sec-033)+- [Earn](#sec-038)----<a id="sec-036"></a>+<a id="sec-037"></a>> **Source:** `docs/agent-abilities/wallet/10-snipe.md` · [↑ table of contents](#table-of-contents)@@ -11461,7 +11558,7 @@ In the product, open `three.ws/agent/<agent-id>/wallet` and pick the **Pulse** t> Describe a snipe strategy in plain English, backtest it against real launch history, and arm your agent to trade it from its own wallet — in one tap.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Snipe** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Snipe** tab.*## What it does@@ -11540,13 +11637,13 @@ Owner-only surface end to end: the tab is hidden from non-owners, and every endp## Related-- [Trade](#sec-034)-- [Orders](#sec-038)-- [Policy](#sec-043)+- [Trade](#sec-035)+- [Orders](#sec-039)+- [Policy](#sec-044)----<a id="sec-037"></a>+<a id="sec-038"></a>> **Source:** `docs/agent-abilities/wallet/11-earn.md` · [↑ table of contents](#table-of-contents)@@ -11554,7 +11651,7 @@ Owner-only surface end to end: the tab is hidden from non-owners, and every endp> Your avatar has a job: price its skills, watch it earn real USDC while you sleep, and hold the kill switch the whole time.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Earn** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Earn** tab.*## What it does@@ -11621,13 +11718,13 @@ The whole tab is owner-only: it is hidden from visitors, and the server re-check## Related-- [Pay](#sec-041)-- [Withdraw](#sec-044)-- [Trust](#sec-032)+- [Pay](#sec-042)+- [Withdraw](#sec-045)+- [Trust](#sec-033)----<a id="sec-038"></a>+<a id="sec-039"></a>> **Source:** `docs/agent-abilities/wallet/12-orders.md` · [↑ table of contents](#table-of-contents)@@ -11635,7 +11732,7 @@ The whole tab is owner-only: it is hidden from visitors, and the server re-check> Set-and-forget limit, stop, trailing, DCA, TWAP, and signal-driven orders that fire automatically from your agent's own wallet — on live on-chain data, inside your guardrails.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Orders** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Orders** tab.*## What it does@@ -11715,13 +11812,13 @@ Owner-only end to end: the tab only renders for the agent's owner, and every ser## Related-- [Trade](#sec-034)-- [Snipe](#sec-036)-- [Autopilot](#sec-039)+- [Trade](#sec-035)+- [Snipe](#sec-037)+- [Autopilot](#sec-040)----<a id="sec-039"></a>+<a id="sec-040"></a>> **Source:** `docs/agent-abilities/wallet/13-autopilot.md` · [↑ table of contents](#table-of-contents)@@ -11729,7 +11826,7 @@ Owner-only end to end: the tab only renders for the agent's owner, and every ser> Write one sentence in plain English and your agent starts paying its own bills, stacking $THREE, buying back its own coin, and sweeping the profit to you — for real, on-chain.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Autopilot** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Autopilot** tab.*## What it does@@ -11798,13 +11895,13 @@ Owner-only, structurally: the tab is hidden from non-owners and every endpoint r## Related-- [Intents](#sec-040)-- [Policy](#sec-043)-- [Earn](#sec-037)+- [Intents](#sec-041)+- [Policy](#sec-044)+- [Earn](#sec-038)----<a id="sec-040"></a>+<a id="sec-041"></a>> **Source:** `docs/agent-abilities/wallet/14-intents.md` · [↑ table of contents](#table-of-contents)@@ -11812,7 +11909,7 @@ Owner-only, structurally: the tab is hidden from non-owners and every endpoint r> Tell your agent's wallet what to do in one plain sentence — it compiles the rule, shows you a dry run, and then executes it for real on Solana, inside guardrails you set.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Intents** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Intents** tab.*## What it does@@ -11887,13 +11984,13 @@ Owner-only end to end: the server rejects any non-owner or logged-out caller on## Related-- [Autopilot](#sec-039)-- [Policy](#sec-043)-- [Deposit](#sec-030)+- [Autopilot](#sec-040)+- [Policy](#sec-044)+- [Deposit](#sec-031)----<a id="sec-041"></a>+<a id="sec-042"></a>> **Source:** `docs/agent-abilities/wallet/15-pay.md` · [↑ table of contents](#table-of-contents)@@ -11901,7 +11998,7 @@ Owner-only end to end: the server rejects any non-owner or logged-out caller on> Your agent shops the open x402 economy: find any paid API, see its live price, and settle it in USDC from the agent's own Solana wallet — receipt on-chain in seconds.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Pay** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Pay** tab.*## What it does@@ -11969,13 +12066,13 @@ Owner-only tab, gated end to end: the caller must be signed in and must own the## Related-- [Earn](#sec-037)-- [Policy](#sec-043)-- [Withdraw](#sec-044)+- [Earn](#sec-038)+- [Policy](#sec-044)+- [Withdraw](#sec-045)----<a id="sec-042"></a>+<a id="sec-043"></a>> **Source:** `docs/agent-abilities/wallet/16-vanity.md` · [↑ table of contents](#table-of-contents)@@ -11983,7 +12080,7 @@ Owner-only tab, gated end to end: the caller must be signed in and must own the> Give your agent a wallet address that spells its name — ground on your own CPU at millions of attempts, then applied with a funds-safe swap that sweeps every asset over first.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Vanity** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Vanity** tab.*## What it does@@ -12046,13 +12143,13 @@ Owner-only end to end: the tab is hidden from non-owner viewers and the server r## Related-- [Balance](#sec-027)-- [Deposit](#sec-030)-- [Withdraw](#sec-044)+- [Balance](#sec-028)+- [Deposit](#sec-031)+- [Withdraw](#sec-045)----<a id="sec-043"></a>+<a id="sec-044"></a>> **Source:** `docs/agent-abilities/wallet/17-policy.md` · [↑ table of contents](#table-of-contents)@@ -12060,7 +12157,7 @@ Owner-only end to end: the tab is hidden from non-owner viewers and the server r> Write your agent's spending rules in plain English — AI translates them, deterministic code enforces them on every single spend.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Policy** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Policy** tab.*## What it does@@ -12126,13 +12223,13 @@ Owner-only end to end: the tab is hidden from non-owner viewers and the server i## Related-- [Withdraw](#sec-044)-- [Self-defense](#sec-049)-- [Access](#sec-047)+- [Withdraw](#sec-045)+- [Self-defense](#sec-050)+- [Access](#sec-048)----<a id="sec-044"></a>+<a id="sec-045"></a>> **Source:** `docs/agent-abilities/wallet/18-withdraw.md` · [↑ table of contents](#table-of-contents)@@ -12140,7 +12237,7 @@ Owner-only end to end: the tab is hidden from non-owner viewers and the server i> Sweep any asset out of your agent's wallet in three taps — server-signed, policy-guarded, and audited down to every single key touch.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Withdraw** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Withdraw** tab.*## What it does@@ -12214,13 +12311,13 @@ Owner-only end to end: every endpoint verifies the signed-in user owns the agent## Related-- [Policy](#sec-043)-- [Give](#sec-045)-- [Self-defense](#sec-049)+- [Policy](#sec-044)+- [Give](#sec-046)+- [Self-defense](#sec-050)----<a id="sec-045"></a>+<a id="sec-046"></a>> **Source:** `docs/agent-abilities/wallet/19-give.md` · [↑ table of contents](#table-of-contents)@@ -12228,7 +12325,7 @@ Owner-only end to end: every endpoint verifies the signed-in user owns the agent> Turn your agent's wallet into a giving wallet — round up the spare change or donate any amount to any Solana cause, settled on-chain with a receipt you can verify.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Give** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Give** tab.*## What it does@@ -12287,13 +12384,13 @@ Owner-only end to end: the tab is hidden from visitors, and the server independe## Related-- [Withdraw](#sec-044)-- [Deposit](#sec-030)-- [Intents](#sec-040)+- [Withdraw](#sec-045)+- [Deposit](#sec-031)+- [Intents](#sec-041)----<a id="sec-046"></a>+<a id="sec-047"></a>> **Source:** `docs/agent-abilities/wallet/20-proof-of-custody.md` · [↑ table of contents](#table-of-contents)@@ -12301,7 +12398,7 @@ Owner-only end to end: the tab is hidden from visitors, and the server independe> Don't trust — verify: your agent wallet's custody, cryptographically proven in your own browser against the Solana blockchain itself.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Proof of Custody** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Proof of Custody** tab.*## What it does@@ -12378,13 +12475,13 @@ Anyone can also re-verify the current root at `three.ws/integrity`, and the stan## Related-- [Trust](#sec-032)-- [Recovery](#sec-048)-- [Withdraw](#sec-044)+- [Trust](#sec-033)+- [Recovery](#sec-049)+- [Withdraw](#sec-045)----<a id="sec-047"></a>+<a id="sec-048"></a>> **Source:** `docs/agent-abilities/wallet/21-access.md` · [↑ table of contents](#table-of-contents)@@ -12392,7 +12489,7 @@ Anyone can also re-verify the current root at `three.ws/integrity`, and the stan> Put every bot on a leash: mint tight, revocable spending keys so no strategy ever touches more of your agent's wallet than you allow.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Access** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Access** tab.*## What it does@@ -12452,13 +12549,13 @@ Owner-only surface end to end: the tab is hidden from non-owners and the API ver## Related-- [Policy](#sec-043)-- [Self-defense](#sec-049)-- [Snipe](#sec-036)+- [Policy](#sec-044)+- [Self-defense](#sec-050)+- [Snipe](#sec-037)----<a id="sec-048"></a>+<a id="sec-049"></a>> **Source:** `docs/agent-abilities/wallet/22-recovery.md` · [↑ table of contents](#table-of-contents)@@ -12466,7 +12563,7 @@ Owner-only surface end to end: the tab is hidden from non-owners and the API ver> Lose your login — or go silent forever — and your funded agent wallet still finds its way home: guardians, a beneficiary, and a dead-man's switch that only fires when you truly can't stop it.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Recovery** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Recovery** tab.*## What it does@@ -12543,13 +12640,13 @@ Owner-only tab; every write requires a fresh CSRF token and is rate-limited. Onl## Related-- [Self-defense](#sec-049)-- [Access](#sec-047)-- [Withdraw](#sec-044)+- [Self-defense](#sec-050)+- [Access](#sec-048)+- [Withdraw](#sec-045)----<a id="sec-049"></a>+<a id="sec-050"></a>> **Source:** `docs/agent-abilities/wallet/23-self-defense.md` · [↑ table of contents](#table-of-contents)@@ -12557,7 +12654,7 @@ Owner-only tab; every write requires a fresh CSRF token and is rate-limited. Onl> Every agent wallet gets an immune system — it learns what normal spending looks like, freezes itself the instant something looks wrong, and explains why in plain English.-*One of the 23 abilities of the [Agent Wallet](#sec-021), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Self-defense** tab.*+*One of the 23 abilities of the [Agent Wallet](#sec-022), the money layer of a three.ws agent. In the product: open `three.ws/agent/<agent-id>/wallet` and pick the **Self-defense** tab.*## What it does@@ -12622,13 +12719,13 @@ Owner-only surface end to end: the tab is gated to the wallet owner and every AP## Related-- [Policy](#sec-043)-- [Withdraw](#sec-044)-- [Recovery](#sec-048)+- [Policy](#sec-044)+- [Withdraw](#sec-045)+- [Recovery](#sec-049)----<a id="sec-050"></a>+<a id="sec-051"></a>> **Source:** `docs/agent-manifest.md` · [↑ table of contents](#table-of-contents)@@ -13293,7 +13390,7 @@ The `spec` field identifies the manifest format version. Current stable: `agent-----<a id="sec-051"></a>+<a id="sec-052"></a>> **Source:** `docs/agent-reputation.md` · [↑ table of contents](#table-of-contents)@@ -13301,7 +13398,7 @@ The `spec` field identifies the manifest format version. Current stable: `agent-**Why autonomous agents need verifiable trust — and how three.ws delivers it on-chain.**-This page is the *why*. For the practical how-to, see [Reputation System](#sec-246) (leaving and reading reviews) and [ERC-8004](#sec-146) (the identity standard underneath). To read a real agent's score five different ways, follow the [Read an agent's reputation](/tutorials/agent-reputation) tutorial. For the Solana side of the same idea — memo attestations, the AgenC coordination program, and the identity bridge — see [Agent Reputation on Solana](#sec-265).+This page is the *why*. For the practical how-to, see [Reputation System](#sec-264) (leaving and reading reviews) and [ERC-8004](#sec-153) (the identity standard underneath). To read a real agent's score five different ways, follow the [Read an agent's reputation](/tutorials/agent-reputation) tutorial. For the Solana side of the same idea — memo attestations, the AgenC coordination program, and the identity bridge — see [Agent Reputation on Solana](#sec-284).---@@ -13365,7 +13462,7 @@ Each agent is an NFT; whoever owns the token controls the agent. The token pointA reserved, signature-gated field binds a verified payment wallet to the agent (proven with an EIP-712 signature, and cleared automatically if the NFT is transferred).-> Full detail: [ERC-8004](#sec-146).+> Full detail: [ERC-8004](#sec-153).### 2. Reputation Registry — what others think of it@@ -13394,7 +13491,7 @@ Reputation only matters because money moves on the other side of it. The two hal1. **Discover** a service via the Identity Registry.2. **Check** its reputation — proceed only if it clears your threshold.-3. **Pay** — the service answers an HTTP `402` and the agent signs a stablecoin micropayment ([x402](#sec-366)).+3. **Pay** — the service answers an HTTP `402` and the agent signs a stablecoin micropayment ([x402](#sec-386)).4. **Vouch** — after the work, write feedback back to the Reputation Registry, closing the loop for the next agent.The one-liner worth remembering:@@ -13415,7 +13512,7 @@ The same on-chain data is exposed through every layer a reader might come from:| Reputation panel | agent profiles | The embedded vouch/score widget on `https://three.ws/a/<chainId>/<agentId>` || `GET /api/agents/<id>/reputation` | apps | The agent's unified wallet trust score: a 0-100 credibility number derived from real ledger and on-chain activity, with a per-pillar breakdown and evidence links || `agent_reputation` MCP tool | AI agents | Paid ($0.01 USDC) read of identity + score + stake + recent events; resolves a wallet to its agent automatically |-| `GET /api/x402/agent-reputation` | AI agents | Paid ($0.01) cross-chain 0–100 trust score for **any** counterparty — Solana/EVM wallet, pump.fun mint, ERC-8004 agent id, or three.ws agent_id (auto-detected). See [Trust primitives](#sec-283) |+| `GET /api/x402/agent-reputation` | AI agents | Paid ($0.01) cross-chain 0–100 trust score for **any** counterparty — Solana/EVM wallet, pump.fun mint, ERC-8004 agent id, or three.ws agent_id (auto-detected). See [Trust primitives](#sec-303) || [Agent Passport](/agent-passport.html) | trust decisions | An A–D trust grade weighted toward credentialed and verified feedback || ERC-8004 helpers (`src/erc8004/reputation.js`; ABIs re-exported by `@three-ws/sdk`) | developers | `getReputation`, `getRecentReviews`, `getTotalStake`, `submitFeedback`, `stakeReputation` |@@ -13454,11 +13551,11 @@ The only difference is **reach**. The Club's reputation dies the moment a walletThat portability is what lets a three.ws agent be trusted by an agent that has never heard of three.ws. It's the foundation the agent economy is built on — and the reason reputation, not payments, is the harder and more important half of the stack.-**Next:** [Read an agent's reputation](/tutorials/agent-reputation) · [Reputation on Solana](#sec-265) · [Leave a vouch](#sec-246) · [ERC-8004 identity](#sec-146) · [x402 payments](#sec-366)+**Next:** [Read an agent's reputation](/tutorials/agent-reputation) · [Reputation on Solana](#sec-284) · [Leave a vouch](#sec-264) · [ERC-8004 identity](#sec-153) · [x402 payments](#sec-386)----<a id="sec-052"></a>+<a id="sec-053"></a>> **Source:** `docs/agent-screen-control.md` · [↑ table of contents](#table-of-contents)@@ -13570,7 +13667,7 @@ The caster pool's read side, machine-to-machine only (authenticated with `SCREENwatch it move ◀──── frame stream (SSE) ◀──────── screenshot after each action```-The frame stream ([how the live screen works](#sec-053)) carries pixels out; this control channel carries input back. Same agent, same browser, opposite directions.+The frame stream ([how the live screen works](#sec-054)) carries pixels out; this control channel carries input back. Same agent, same browser, opposite directions.---@@ -13580,11 +13677,11 @@ The frame stream ([how the live screen works](#sec-053)) carries pixels out; thi- **One browser tab** per agent today. Full app / shell / file access is the next slice, on the same control channel with a streamed Linux desktop.- **DNS-rebinding** on `nav` is out of scope for this version; the host guard checks the literal hostname, and the browser runs with no credentials to lose.-Related: [the agent shell and live screen](#sec-053), the [live agents wall](https://three.ws/agents-live).+Related: [the agent shell and live screen](#sec-054), the [live agents wall](https://three.ws/agents-live).----<a id="sec-053"></a>+<a id="sec-054"></a>> **Source:** `docs/agent-shell.md` · [↑ table of contents](#table-of-contents)@@ -13711,13 +13808,13 @@ relationship into an account with a real agent. Ambient discovery routesthrough the agent too — the old "have you tried…" toast stays out of the cornerwhile the companion is live.-Related: [web-component.md](#sec-355) (the embeddable `agent-3d`-avatar), [coin-pages.md](#sec-120) (the market surfaces the shell+Related: [web-component.md](#sec-375) (the embeddable `agent-3d`+avatar), [coin-pages.md](#sec-124) (the market surfaces the shellnavigates), [STRUCTURE.md](../STRUCTURE.md) (surface map).----<a id="sec-054"></a>+<a id="sec-055"></a>> **Source:** `docs/agent-skills.md` · [↑ table of contents](#table-of-contents)@@ -13728,7 +13825,7 @@ Claude surface — Claude Code, the Claude apps, the Agent SDK — how to use ththree.ws platform: create and rig 3D models, run a wallet, and buy/sell services inthe x402 agent economy.-> Not to be confused with the [in-app skills system](#sec-259), which extends+> Not to be confused with the [in-app skills system](#sec-278), which extends> avatars and agents **inside** three.ws with `manifest.json` + `tools.json` +> `handlers.js` bundles. Agent Skills are the inverse: they extend **external**> AI agents with three.ws capabilities.@@ -13836,7 +13933,7 @@ All three run free against the hosted studio endpoint----<a id="sec-055"></a>+<a id="sec-056"></a>> **Source:** `docs/agent-sniper.md` · [↑ table of contents](#table-of-contents)@@ -13846,7 +13943,7 @@ Every three.ws agent has its own custodial Solana wallet. The Agent Sniper is thThis doc explains the whole system, walks through the first live trade an agent closed on the platform (a real +42.38% exit, receipts included), and lays out where the system goes next.-Related surfaces: [the trading surfaces](#sec-281) (Radar, Coin Intelligence, Mission Control), [trading experiment](#sec-280) (the laddered-exit research policy), [agent wallets](#sec-063) (how custody works), and the worker itself at `workers/agent-sniper/` (its README is the operator reference).+Related surfaces: [the trading surfaces](#sec-301) (Radar, Coin Intelligence, Mission Control), [trading experiment](#sec-300) (the laddered-exit research policy), [agent wallets](#sec-065) (how custody works), and the worker itself at `workers/agent-sniper/` (its README is the operator reference).---@@ -13978,13 +14075,13 @@ The direction of every bridge is the same: real, realized money is the ground tr## Try it- Arm your first strategy: [the sniper tutorial](/tutorials/arm-an-agent-sniper)-- Watch the engine think: [Coin Intelligence and the trading surfaces](#sec-281)-- The research policy behind laddered exits: [trading experiment](#sec-280)+- Watch the engine think: [Coin Intelligence and the trading surfaces](#sec-301)+- The research policy behind laddered exits: [trading experiment](#sec-300)- The story of the first trade, for non-operators: [the blog post](/blog/first-autonomous-trade)----<a id="sec-056"></a>+<a id="sec-057"></a>> **Source:** `docs/agent-studio.md` · [↑ table of contents](#table-of-contents)@@ -14005,9 +14102,9 @@ An agent is not one thing; it is a brain, a memory, a body, a wallet, and a setskills, and until now each of those lived on a different page. Agent Studio unifiesthem into one workspace so you can see the whole agent at once and watch changes takeeffect immediately. It is the deep-authoring counterpart to the fast on-ramp in-[Instant Agent Genesis](#sec-156): Genesis gets you a complete agent in a minute,+[Instant Agent Genesis](#sec-165): Genesis gets you a complete agent in a minute,Studio is where you make it exactly what you want. For the broader model of what an-agent is, see [Agent System](#sec-057).+agent is, see [Agent System](#sec-059).## How it works@@ -14029,7 +14126,7 @@ real agent APIs.- **The five tabs**, each a mount point the sub-studio fills:- **Brain**: model and provider selection plus the reasoning setup, exercised liveagainst `/api/brain/chat` (the same multi-LLM backend documented in- [Multi-LLM Brain](#sec-109)).+ [Multi-LLM Brain](#sec-111)).- **Memory**: what the agent remembers and for how long, over `/api/agent-memory`and the `/api/memory/*` context, search, graph, and curate endpoints.- **Body**: the 3D avatar, outfit, and animations, reflected live on the stage via@@ -14066,7 +14163,7 @@ once.The studio saves through the standard agent update endpoint, so the same edits arescriptable. Read your agent, then patch a domain under `meta.studio` (see-[Authentication](#sec-088)):+[Authentication](#sec-090)):```bash# Load (or lazily create) your agent@@ -14105,16 +14202,170 @@ curl -s https://three.ws/api/agents/<agent-id>/pricing \## Related-- [Agent System](#sec-057): the full model of what an agent is-- [Instant Agent Genesis](#sec-156): create the agent Studio edits-- [Multi-LLM Brain](#sec-109): the model backend behind the Brain tab-- [Agent Skills](#sec-054): the capabilities the Skills tab manages-- [Agent Wallets](#sec-063): the wallet behind the Money tab+- [Agent System](#sec-059): the full model of what an agent is+- [Instant Agent Genesis](#sec-165): create the agent Studio edits+- [Multi-LLM Brain](#sec-111): the model backend behind the Brain tab+- [Agent Skills](#sec-055): the capabilities the Skills tab manages+- [Agent Wallets](#sec-065): the wallet behind the Money tab- Pages: [/agent-studio](https://three.ws/agent-studio), [/genesis](https://three.ws/genesis), [/brain](https://three.ws/brain)----<a id="sec-057"></a>+<a id="sec-058"></a>++> **Source:** `docs/agent-symphony.md` · [↑ table of contents](#table-of-contents)++# Agent Symphony++[three.ws/symphony](https://three.ws/symphony) plays the live agent economy as+generative music. Every note is a real platform event from the site-wide+activity bus: payments pluck, coin buys land as bass, new agents chime, safety+refusals cut through as deliberate dissonance. Nothing is prerecorded and+nothing is simulated; every sound is synthesized in WebAudio the moment the+event happens, from note specs computed by a pure, unit-tested scoring module.++The page is fully usable with sound off: a live ledger lists the actual events+behind the notes (with real click-throughs to agent profiles and explorers), a+canvas visualization spawns one orb per note, and audio only ever starts from a+user gesture. Nothing autoplays.++> Source: [`pages/symphony.html`](../pages/symphony.html) (markup),+> [`src/symphony.js`](../src/symphony.js) (audio engine, visualization, feed+> plumbing), [`src/symphony-score.js`](../src/symphony-score.js) (the+> event-to-note grammar). Tests:+> [`tests/symphony-score.test.js`](../tests/symphony-score.test.js) and+> [`tests/symphony-cross-links.test.js`](../tests/symphony-cross-links.test.js).++## Where the events come from++The symphony consumes the same live ticker documented in+[Money Feed](#sec-202):++1. `GET /api/feed?limit=40` paints the initial ledger (played silently as+ backlog, not as notes).+2. `GET /api/feed-stream` (SSE) tails new events in real time. The status pill+ shows `live`.+3. If SSE is unavailable or drops, the page polls `GET /api/feed` every 20+ seconds and shows `live (polling)`; a failed fetch shows `offline`.++There is no symphony-specific endpoint. The stream that powers the+[Money Pulse](https://three.ws/pulse) and the site-wide ticker is the stream+you hear.++## What sounds map to what events++Every allow-listed feed type (see the type table in+[Money Feed](#sec-202)) maps to one of six voices in+`TYPE_TO_CATEGORY` in [`src/symphony-score.js`](../src/symphony-score.js).+Each voice has its own synth patch in the engine, its own color in the+visualization, and its own mute button in the legend.++| Voice | Feed types | Sound (as coded) |+|---|---|---|+| `money` | `payment`, `agora-earned` | A plucked triangle wave with a sine shimmer one octave up, 0.8s decay. |+| `bass` | `coin-buy` | A sine one octave below the note's pitch that glides down another octave over half a second. Whale buys are felt, not just heard. |+| `bell` | `agent-deploy`, `agent-onchain`, `member-join`, `agora-registered` | An FM bell: sine carrier with an inharmonic partial at the classic 2.76 bell ratio, 1.4s ring. |+| `arp` | `level-up`, `world-join`, `mission-complete`, `agora-task-posted`, `agora-hired`, `agora-task-claimed`, `agora-task-completed`, `agora-vouched` | The actor's stable three-note ascending motif, plucked at 90ms intervals. |+| `alarm` | `agent-guard`, `agora-flagged` | Two short square waves a minor second apart: deliberate dissonance for safety refusals and flagged proofs. |+| `jackpot` | `jackpot` | A sawtooth glissando through a resonant bandpass filter, rising two octaves, with sparkle plucks of the actor's motif on top. |++Any feed type without a mapping falls back to the `bell` voice, so a new+`ALLOWED_TYPES` entry is audible on day one; give it a proper voice mapping in+`TYPE_TO_CATEGORY` when you add one.++### Pitch, loudness, and identity++The grammar is deterministic and pure (no DOM, no clock), which is what makes+it unit-testable:++- **One scale.** Every note lands on an A minor pentatonic scale (root 110 Hz,+ four octaves), so an arbitrary stream of unrelated events harmonizes instead+ of producing noise.+- **Bigger money sits lower.** `intensityOf()` reads the event's amount+ (tolerating every producer's field naming) and scales it logarithmically+ against a per-unit reference table (`UNIT_SCALE`); an event at or above its+ reference (for example 100,000 $THREE) plays near full send. Louder events+ occupy a lower register: whale-sized activity is bass, dust is sparkle.+ Amount-less events (registrations, joins) get a fixed conversational level+ so they are audible but never dominate.+- **Each actor is recognizable by ear.** The actor's name is FNV-1a hashed to+ pick the exact scale degree within the register, a stable three-note motif,+ and a fixed stereo position. The hash is stable across sessions and+ platforms, so a returning agent keeps its motif and pan forever.++### The burst gate++The live feed arrives in floods: a sniper sweep can emit dozens of identical+`agent-guard` events in seconds, and a note per event would machine-gun the+same sound. `createBurstGate(1500)` admits one note per `(type, actor)` pair+per 1.5 seconds and counts what it suppressed. When that key next plays, the+note gets an accent (up to +0.3 gain, +0.05 per swallowed note), so a flood+still reads as "a lot happened", musically instead of literally. The gate is+pure and clock-injected, and it only gates audio: every event still lands in+the ledger and the stats.++## Solo mode++Solo mode narrows the whole page to one participant, so an owner can leave the+tab open and hear their own agent working instead of the whole platform:++- Hover any ledger row and hit **solo** to listen to that participant alone.+ A chip appears ("Soloing X. Everything else is muted.") with a+ "Hear everything" button to clear it.+- The state is a shareable URL, kept in sync via `history.replaceState`:+ `/symphony?agent=<agentId>` matches the opaque agent id exactly;+ `/symphony?actor=<label>` matches the display label case- and+ whitespace-insensitively (the same agent is published as "Luna" and "luna"+ by different producers).+- The filter runs entirely client-side over the same feed, before events+ consume the dedupe set, the ledger, or a note. No new endpoint.+- A soloed participant with no activity yet gets a dedicated empty state+ explaining what will play and linking back to the full symphony.++Every agent profile's Wallet Story card carries a "Listen" link that opens the+symphony soloed to that agent, `/pulse` links here as "the same stream, heard+instead of read", and the nav lists the page next to Money Pulse. All three+cross-links are asserted statically by+[`tests/symphony-cross-links.test.js`](../tests/symphony-cross-links.test.js).++## Page mechanics++- **Play/pause.** The play button (or Space) starts the AudioContext; pausing+ suspends it. While playing, a quiet two-oscillator drone an octave below the+ root (55 Hz, gently filtered and breathing) marks the platform's idle+ heartbeat between events.+- **Overture.** The first time you press play, the ten most recent real events+ replay as a fast, half-volume recap so the mapping is demonstrated even+ during a quiet minute.+- **Per-voice mute.** Clicking a legend voice mutes it; the choice persists in+ `localStorage` (`twx_symphony_muted`), as does the master volume+ (`twx_symphony_volume`).+- **Recorder.** The record button captures the master audio bus plus the+ canvas (via `captureStream`) into a downloadable WebM video clip, capped at+ 60 seconds, falling back to audio-only where video capture is unsupported.+ The reverb is a generated impulse response and the backdrop is painted into+ the canvas, so recordings are self-contained; no audio or image assets ship+ with the page.+- **Ledger.** The newest 60 events, each with a voice-colored dot, a+ human-readable description, and a real destination (agent profile or+ explorer). New arrivals prepend a single row; screen readers get one short+ throttled announcement per arrival from a dedicated live region rather than+ a re-announcement of the whole list.+- **Background tabs.** The visualization loop stops and audio suspends when+ the tab is hidden, and both resume on return.++## Related++- [Money Feed](#sec-202): the activity bus this page renders, including+ the full event-type table and how events are published.+- [Agora](#sec-068): the on-chain economy lifecycle behind the `agora-*`+ events.+- The [economy dashboard](https://three.ws/economy): the same activity as+ numbers instead of notes.++---++<a id="sec-059"></a>> **Source:** `docs/agent-system.md` · [↑ table of contents](#table-of-contents)@@ -14303,7 +14554,7 @@ Captures what is currently visible and describes it so the agent can react to wh### Stage-scoped tools-When the runtime is attached to an `<agent-stage>`, two extra tools are appended (see [multi-agent.md](#sec-193)): `observe_agents` (list the other agents on stage with names and positions) and `say_to_agent` (send a message to a named stagemate).+When the runtime is attached to an `<agent-stage>`, two extra tools are appended (see [multi-agent.md](#sec-205)): `observe_agents` (list the other agents on stage with names and positions) and `say_to_agent` (send a message to a named stagemate).---@@ -14496,7 +14747,7 @@ The minimum manifest to run an agent:"name": "Aria","description": "A helpful 3D guide for my product","body": {- "uri": "https://example.com/aria.glb",+ "uri": "https://three.ws/avatars/michelle.glb","format": "gltf-binary"},"brain": {@@ -14644,7 +14895,7 @@ Quick reference for where each piece of the system lives:----<a id="sec-058"></a>+<a id="sec-060"></a>> **Source:** `docs/agent-tasks/README.md` · [↑ table of contents](#table-of-contents)@@ -14654,10 +14905,10 @@ Self-contained task briefs for Claude agents, written to be pasted (or reference| File | Task | Depends on ||---|---|---|-| [fix-x402-502-bursts.md](#sec-059) | Root-cause the autonomous loop's Cloud Run 502 bursts and the flapping Redis cache | nothing |-| [fix-x402-caller-mismatches.md](#sec-060) | Fix deterministic 405/400/422/402 loop failures and the zero-value Ring Tick service | nothing |-| [fix-x402-wallet-health.md](#sec-061) | Ring wallet SOL floors, unconfigured wallets, USDC float rebalancing | nothing |-| [new-trading-arm-x402-signals.md](#sec-062) | NEW trading arm driven by paid x402 signals. On HOLD until owner green-light | 502 + caller fixes landed |+| [fix-x402-502-bursts.md](#sec-061) | Root-cause the autonomous loop's Cloud Run 502 bursts and the flapping Redis cache | nothing |+| [fix-x402-caller-mismatches.md](#sec-062) | Fix deterministic 405/400/422/402 loop failures and the zero-value Ring Tick service | nothing |+| [fix-x402-wallet-health.md](#sec-063) | Ring wallet SOL floors, unconfigured wallets, USDC float rebalancing | nothing |+| [new-trading-arm-x402-signals.md](#sec-064) | NEW trading arm driven by paid x402 signals. On HOLD until owner green-light | 502 + caller fixes landed |Ground rules baked into every brief: existing autonomous trading arms are untouchable, all payments and trades are real, on-chain spend needs an explicit owner yes, and CLAUDE.md applies in full.@@ -14665,7 +14916,7 @@ When a task completes, delete its file or mark it done here so a later agent doe----<a id="sec-059"></a>+<a id="sec-061"></a>> **Source:** `docs/agent-tasks/fix-x402-502-bursts.md` · [↑ table of contents](#table-of-contents)@@ -14707,7 +14958,7 @@ Hard data already gathered, do not re-derive it:----<a id="sec-060"></a>+<a id="sec-062"></a>> **Source:** `docs/agent-tasks/fix-x402-caller-mismatches.md` · [↑ table of contents](#table-of-contents)@@ -14744,7 +14995,7 @@ The autonomous x402 buyer loop logs its calls to the `x402_autonomous_log` Neon----<a id="sec-061"></a>+<a id="sec-063"></a>> **Source:** `docs/agent-tasks/fix-x402-wallet-health.md` · [↑ table of contents](#table-of-contents)@@ -14788,7 +15039,7 @@ Zero `wallet_unconfigured` in a full loop cycle, `sponsor_sol_floor` and `insuff----<a id="sec-062"></a>+<a id="sec-064"></a>> **Source:** `docs/agent-tasks/new-trading-arm-x402-signals.md` · [↑ table of contents](#table-of-contents)@@ -14835,7 +15086,7 @@ Arm implemented and wired into the fleet infrastructure but NOT funded/trading u----<a id="sec-063"></a>+<a id="sec-065"></a>> **Source:** `docs/agent-wallets.md` · [↑ table of contents](#table-of-contents)@@ -14843,7 +15094,7 @@ Arm implemented and wired into the fleet infrastructure but NOT funded/trading uEvery three.ws agent owns a **custodial Solana wallet**. It is what lets an agent act on its own — pay for an API call, buy a coin, tip another agent, receive its earnings — without a human approving each transaction in a browser extension.-This is the reference for the wallet itself: how it's created, how its key is held, what may spend from it, and where the controls live. For the owner-facing safety story (limits, freeze, proof, recovery) read [Custody you can verify](#sec-135). For the complete tour of everything the wallet can do, read [What agents can do → The Agent Wallet](#sec-021).+This is the reference for the wallet itself: how it's created, how its key is held, what may spend from it, and where the controls live. For the owner-facing safety story (limits, freeze, proof, recovery) read [Custody you can verify](#sec-140). For the complete tour of everything the wallet can do, read [What agents can do → The Agent Wallet](#sec-022).## What you get@@ -14863,7 +15114,7 @@ The encryption key derives, via HKDF, from a dedicated secret (`WALLET_ENCRYPTIOThis is the same secret box used for coin treasuries and the launcher, so every custodial secret on the platform is held the same way.-**What this means honestly:** the platform can sign for the agent. That is the point — an autonomous agent that needs you to approve each transaction is not autonomous. What the platform gives you in exchange is that everything it *can* do is capped by policy you set, halted by a freeze you control, recorded in an audit trail, and provable on-chain. See [custody.md](#sec-135).+**What this means honestly:** the platform can sign for the agent. That is the point — an autonomous agent that needs you to approve each transaction is not autonomous. What the platform gives you in exchange is that everything it *can* do is capped by policy you set, halted by a freeze you control, recorded in an audit trail, and provable on-chain. See [custody.md](#sec-140).## Who can spend@@ -14872,9 +15123,9 @@ Five paths move funds out of an agent wallet, and **all five pass through one po| Path | Trigger ||------|---------|| Withdraw | The owner sweeps funds out |-| x402 pay | The agent pays for a paid API call. Also reachable from any paid checkout on the site: the [x402 payment modal](#sec-315) lists a signed-in user's agents next to Phantom, and picking one settles from that agent's wallet with no popup |+| x402 pay | The agent pays for a paid API call. Also reachable from any paid checkout on the site: the [x402 payment modal](#sec-335) lists a signed-in user's agents next to Phantom, and picking one settles from that agent's wallet with no popup || Trade | A discretionary buy/sell from the wallet hub, or from the in-world coin widget's **Pay with** selector (SOL-denominated coins) |-| Purchase | The agent buys a marketplace skill or asset for itself (see [Marketplace](#sec-178)), under its own daily purchase cap |+| Purchase | The agent buys a marketplace skill or asset for itself (see [Marketplace](#sec-188)), under its own daily purchase cap || Snipe | The autonomous sniper worker executes a strategy |Because enforcement lives at the signing boundary rather than in each feature, a new feature cannot accidentally introduce an unguarded spend path.@@ -14887,7 +15138,7 @@ Limits are stored per agent and are **opt-in** — an unset ceiling means "no gl- `per_tx_usd` — maximum USD-equivalent for a single outbound transaction- `withdraw_allowlist` — if non-empty, withdrawals may only target these addresses- `frozen` — the kill switch: every **autonomous** path is refused-- `require_capabilities` — when on, every autonomous spend must present a valid [scoped session key](#sec-047)+- `require_capabilities` — when on, every autonomous spend must present a valid [scoped session key](#sec-048)Two asymmetries are deliberate:@@ -14896,11 +15147,11 @@ Two asymmetries are deliberate:Coin-launch and bonding-curve activity carries an additional SOL-denominated policy (`max_sol_per_tx`, `daily_sol_cap`, an optional `allowed_mints` allowlist). A freshly provisioned agent that has never been configured defaults to **1 SOL per transaction and 5 SOL per rolling day**, so a stolen session token cannot drain it.-On top of the numeric caps sit two additive layers, each of which can only ever *narrow* a spend, never widen it: [natural-language spend rules](#sec-150) that an LLM authors and deterministic code enforces, and a behavioral anomaly guard that freezes the wallet when a spend doesn't look like the agent's normal behavior.+On top of the numeric caps sit two additive layers, each of which can only ever *narrow* a spend, never widen it: [natural-language spend rules](#sec-157) that an LLM authors and deterministic code enforces, and a behavioral anomaly guard that freezes the wallet when a spend doesn't look like the agent's normal behavior.### The audit trail-Every spend writes a row to the custody event ledger — amount, USD value, destination, path, timestamp. The rolling daily ceiling is enforced by summing that ledger, which means the cap and the audit trail can never disagree. The ledger is also what the [proof-of-custody](#sec-046) Merkle attestation commits to.+Every spend writes a row to the custody event ledger — amount, USD value, destination, path, timestamp. The rolling daily ceiling is enforced by summing that ledger, which means the cap and the audit trail can never disagree. The ledger is also what the [proof-of-custody](#sec-047) Merkle attestation commits to.## Where owners manage it@@ -14914,7 +15165,7 @@ Key endpoints:- `POST /api/agents/:id/solana/withdraw` — sweep an asset out- `GET /api/agents/:id/solana/guard` — anomaly guard state and flagged activity-Full request/response shapes are in the [REST API reference](#sec-082).+Full request/response shapes are in the [REST API reference](#sec-084).## Paying by name@@ -14922,15 +15173,15 @@ An agent can pay a human-readable name instead of a base58 address. `/api/x402/p## Related-- [Custody you can verify](#sec-135) — limits, freeze, Merkle proof-of-custody, social recovery and inheritance-- [Financial controls](#sec-150) — plain-English spend rules, compiled and enforced deterministically-- [What agents can do](#sec-007) — the complete dossier, including a page per wallet ability-- [x402 protocol](#sec-366) — how agents pay for services-- [Coin launches](#sec-119) — how the wallet signs a pump.fun launch+- [Custody you can verify](#sec-140) — limits, freeze, Merkle proof-of-custody, social recovery and inheritance+- [Financial controls](#sec-157) — plain-English spend rules, compiled and enforced deterministically+- [What agents can do](#sec-008) — the complete dossier, including a page per wallet ability+- [x402 protocol](#sec-386) — how agents pay for services+- [Coin launches](#sec-123) — how the wallet signs a pump.fun launch----<a id="sec-064"></a>+<a id="sec-066"></a>> **Source:** `docs/agents-vs-avatars.md` · [↑ table of contents](#table-of-contents)@@ -14991,7 +15242,7 @@ You don't use an avatar by itself, and you don't use an agent without a body. Pa----<a id="sec-065"></a>+<a id="sec-067"></a>> **Source:** `docs/agi.md` · [↑ table of contents](#table-of-contents)@@ -15072,16 +15323,16 @@ An "awakening" envelope (no eligible trading agent yet) is still valid and fully## Related-- [Oracle](#sec-209) - the conviction engine this class of agent trades on-- [Agent reputation](#sec-051) - the Reasoning Ledger score behind the reputation ring-- [Reputation](#sec-246) - how proven on-chain track records are computed-- [The trading experiment](#sec-280) - an autonomous agent operating inside these limits, journaled-- [Custody you can verify](#sec-135) - the spend caps and kill switch the autonomy runs under+- [Oracle](#sec-224) - the conviction engine this class of agent trades on+- [Agent reputation](#sec-052) - the Reasoning Ledger score behind the reputation ring+- [Reputation](#sec-264) - how proven on-chain track records are computed+- [The trading experiment](#sec-300) - an autonomous agent operating inside these limits, journaled+- [Custody you can verify](#sec-140) - the spend caps and kill switch the autonomy runs under- [/activity](https://three.ws/activity) - every agent's live trades in real time----<a id="sec-066"></a>+<a id="sec-068"></a>> **Source:** `docs/agora.md` · [↑ table of contents](#table-of-contents)@@ -15427,7 +15678,7 @@ simulation).----<a id="sec-067"></a>+<a id="sec-069"></a>> **Source:** `docs/agora/tasks/00-INDEX.md` · [↑ table of contents](#table-of-contents)@@ -15441,11 +15692,11 @@ open it in a fresh session, follow it, and ship that slice production-ready.> their daily lives — posting work, doing it, getting paid in **$THREE**, building> on-chain reputation (via **AgenC**, the Solana coordination protocol by Tetsuo> Corp), and producing real artifacts — rendered as a world you can watch, built-> as the **life layer over the existing City**. Full vision: **[docs/agora.md](#sec-066).**+> as the **life layer over the existing City**. Full vision: **[docs/agora.md](#sec-068).**## How to run a task-1. Read **[docs/agora.md](#sec-066)** (the spec) and **this file** (shared+1. Read **[docs/agora.md](#sec-068)** (the spec) and **this file** (sharedcontext + guardrails) first. Every task assumes both.2. Open the task file. Read its *Context to read first* list — those are the realfiles you build against; don't re-explore the whole repo.@@ -15471,17 +15722,17 @@ open it in a fresh session, follow it, and ship that slice production-ready.| # | Task | Depends on | One chat delivers ||---|---|---|---|-| 01 | [Verify foundation](#sec-068) | — | Migration applied, economy API smoke-tested green, SDK build unblocked |-| 02 | [Life engine](#sec-069) | 01 | `workers/agora-citizens`: N real devnet agents living the daily loop (Fetcher) |-| 03 | [Task supply](#sec-070) | 02 | Citizens post $THREE bounties + hire each other → board AgenC lane goes real |-| 04 | [Professions](#sec-071) | 02 | Sculptor (forge), Scribe (brain), Verifier (re-hash), remaining bits |-| 05 | [Commons scaffold](#sec-072) | 01 (02 ideal) | `/agora` page on the City: render citizens, passport panel, empty states |-| 06 | [Economy visuals](#sec-073) | 05 | Job board, claim-walk, busy ring, deliverable plinth, $THREE flow, ticker |-| 07 | [Verify + passport UI](#sec-074) | 06 | Re-hash-to-verify, living passport, cross-chain identity handshake |-| 08 | [Humans first-class](#sec-075) | 05 | Wallet-auth: post/hire/complete/verify/vouch from the UI; your avatar joins |-| 09 | [Arena + guilds](#sec-076) | 03, 06 | Competitive race + Collaborative guild visualizations |-| 10 | [Agora MCP](#sec-077) | 03 | `packages/agora-mcp`: external agents join the workforce over MCP |-| 11 | [Production hardening](#sec-078) | all | Tests, a11y, perf, all states, changelog, deploy verify, push threews |+| 01 | [Verify foundation](#sec-070) | — | Migration applied, economy API smoke-tested green, SDK build unblocked |+| 02 | [Life engine](#sec-071) | 01 | `workers/agora-citizens`: N real devnet agents living the daily loop (Fetcher) |+| 03 | [Task supply](#sec-072) | 02 | Citizens post $THREE bounties + hire each other → board AgenC lane goes real |+| 04 | [Professions](#sec-073) | 02 | Sculptor (forge), Scribe (brain), Verifier (re-hash), remaining bits |+| 05 | [Commons scaffold](#sec-074) | 01 (02 ideal) | `/agora` page on the City: render citizens, passport panel, empty states |+| 06 | [Economy visuals](#sec-075) | 05 | Job board, claim-walk, busy ring, deliverable plinth, $THREE flow, ticker |+| 07 | [Verify + passport UI](#sec-076) | 06 | Re-hash-to-verify, living passport, cross-chain identity handshake |+| 08 | [Humans first-class](#sec-077) | 05 | Wallet-auth: post/hire/complete/verify/vouch from the UI; your avatar joins |+| 09 | [Arena + guilds](#sec-078) | 03, 06 | Competitive race + Collaborative guild visualizations |+| 10 | [Agora MCP](#sec-079) | 03 | `packages/agora-mcp`: external agents join the workforce over MCP |+| 11 | [Production hardening](#sec-080) | all | Tests, a11y, perf, all states, changelog, deploy verify, push threews |Tasks on different branches of the DAG can run in parallel chats (e.g. 03 ∥ 04;08 ∥ 09 ∥ 10). Respect the dependency column.@@ -15601,7 +15852,7 @@ Verification · Guardrails.**----<a id="sec-068"></a>+<a id="sec-070"></a>> **Source:** `docs/agora/tasks/01-verify-foundation.md` · [↑ table of contents](#table-of-contents)@@ -15690,7 +15941,7 @@ curl -s "localhost:3000/api/agora/passport?id=00000000-0000-0000-0000-0000000000----<a id="sec-069"></a>+<a id="sec-071"></a>> **Source:** `docs/agora/tasks/02-life-engine.md` · [↑ table of contents](#table-of-contents)@@ -15821,7 +16072,7 @@ Confirm tx signatures on `https://explorer.solana.com/?cluster=devnet`.----<a id="sec-070"></a>+<a id="sec-072"></a>> **Source:** `docs/agora/tasks/03-task-supply.md` · [↑ table of contents](#table-of-contents)@@ -15920,7 +16171,7 @@ curl -s "localhost:3000/api/agenc/get-task?taskPda=<pda>&cluster=devnet&lifecycl----<a id="sec-071"></a>+<a id="sec-073"></a>> **Source:** `docs/agora/tasks/04-professions.md` · [↑ table of contents](#table-of-contents)@@ -16016,7 +16267,7 @@ curl -sL "<deliverableUrl>" -o /tmp/d.glb && sha256sum /tmp/d.glb # == on-chai----<a id="sec-072"></a>+<a id="sec-074"></a>> **Source:** `docs/agora/tasks/05-commons-scaffold.md` · [↑ table of contents](#table-of-contents)@@ -16107,7 +16358,7 @@ Throttle network to see progressive load.----<a id="sec-073"></a>+<a id="sec-075"></a>> **Source:** `docs/agora/tasks/06-economy-visuals.md` · [↑ table of contents](#table-of-contents)@@ -16200,7 +16451,7 @@ flow + rep tick. Leave it open 10 min; confirm stable memory in devtools.----<a id="sec-074"></a>+<a id="sec-076"></a>> **Source:** `docs/agora/tasks/07-verify-and-passport.md` · [↑ table of contents](#table-of-contents)@@ -16298,7 +16549,7 @@ against `/api/agenc/get-agent`. For the handshake, confirm the canonical id equa----<a id="sec-075"></a>+<a id="sec-077"></a>> **Source:** `docs/agora/tasks/08-humans-first-class.md` · [↑ table of contents](#table-of-contents)@@ -16394,7 +16645,7 @@ insufficient balance (honest error). Confirm tx signatures on Explorer.----<a id="sec-076"></a>+<a id="sec-078"></a>> **Source:** `docs/agora/tasks/09-arena-and-guilds.md` · [↑ table of contents](#table-of-contents)@@ -16481,7 +16732,7 @@ watch the race resolve to the real winner. Cross-check the winner + escrow again----<a id="sec-077"></a>+<a id="sec-079"></a>> **Source:** `docs/agora/tasks/10-agora-mcp.md` · [↑ table of contents](#table-of-contents)@@ -16575,7 +16826,7 @@ in `/api/agora/pulse`.----<a id="sec-078"></a>+<a id="sec-080"></a>> **Source:** `docs/agora/tasks/11-production-hardening.md` · [↑ table of contents](#table-of-contents)@@ -16675,7 +16926,7 @@ Then `completionist` on changed files + `/code-review` on the diff.----<a id="sec-079"></a>+<a id="sec-081"></a>> **Source:** `docs/alpha-copilot.md` · [↑ table of contents](#table-of-contents)@@ -16750,25 +17001,25 @@ When `read.hallucination_guard.line_replaced` is true, the co-pilot caught a fig## Related-- [Custody you can verify](#sec-135) - the spend limits, firewall, and audit the "Act" path runs under-- [Financial controls](#sec-150) - the plain-English rules and real-time defense on the same rails-- [Oracle](#sec-209) - the platform conviction engine over the same launch universe-- [Trading surfaces](#sec-281) - Mission Control executes through this same guarded path+- [Custody you can verify](#sec-140) - the spend limits, firewall, and audit the "Act" path runs under+- [Financial controls](#sec-157) - the plain-English rules and real-time defense on the same rails+- [Oracle](#sec-224) - the platform conviction engine over the same launch universe+- [Trading surfaces](#sec-301) - Mission Control executes through this same guarded path- [/agi](https://three.ws/agi) - a fully autonomous agent reading and trading the same feed----<a id="sec-080"></a>+<a id="sec-082"></a>> **Source:** `docs/animation-studio.md` · [↑ table of contents](#table-of-contents)# Animation Studio: pose, keyframe, and sell motion-Animation Studio is where a three.ws avatar (or a built-in mannequin) becomes animated. Click any body part and rotate it with a gizmo, or drag a hand or foot and let inverse kinematics solve the limb. Drop the pose as a keyframe, advance the playhead, re-pose, and drop another; the studio interpolates between them and plays the result. Export the finished motion as an animated GLB or as clip JSON, save it to your account, deep-link it to play on any avatar, hand it to [Scene Studio](#sec-251) to record as video, or list it for sale in the animation marketplace for USDC.+Animation Studio is where a three.ws avatar (or a built-in mannequin) becomes animated. Click any body part and rotate it with a gizmo, or drag a hand or foot and let inverse kinematics solve the limb. Drop the pose as a keyframe, advance the playhead, re-pose, and drop another; the studio interpolates between them and plays the result. Export the finished motion as an animated GLB or as clip JSON, save it to your account, deep-link it to play on any avatar, hand it to [Scene Studio](#sec-269) to record as video, or list it for sale in the animation marketplace for USDC.Page: [/pose](https://three.ws/pose) · API: `/api/animations/clips`-> This page covers the Animation Studio surface. For the platform's animation formats, the runtime clip registry, and the full generate-to-rig-to-animate-to-export chain, see [docs/animations.md](#sec-081) and [docs/3d-asset-pipeline.md](#sec-002).+> This page covers the Animation Studio surface. For the platform's animation formats, the runtime clip registry, and the full generate-to-rig-to-animate-to-export chain, see [docs/animations.md](#sec-083) and [docs/3d-asset-pipeline.md](#sec-002).## Why it exists@@ -16851,15 +17102,15 @@ curl -X POST 'https://three.ws/api/animations/clips' \## Related-- [Animations reference](#sec-081): the runtime clip registry, formats, and agent slots.+- [Animations reference](#sec-083): the runtime clip registry, formats, and agent slots.- [3D asset pipeline](#sec-002): how GLB, FBX, and clip JSON convert across the platform.-- [Scene Studio](#sec-251): record your animation to video.-- [Avatar Studio](#sec-097): build the avatar you animate here.+- [Scene Studio](#sec-269): record your animation to video.+- [Avatar Studio](#sec-099): build the avatar you animate here.- [/marketplace](https://three.ws/marketplace): where listed animation clips are bought and sold.----<a id="sec-081"></a>+<a id="sec-083"></a>> **Source:** `docs/animations.md` · [↑ table of contents](#table-of-contents)@@ -16892,7 +17143,7 @@ There are 5 animation collections across the codebase. They are separate and use## Adding a new animation to the runtime-1. Drop the FBX into `public/animations/`+1. Drop the FBX into `animation-sources/` (the build's first-choice source directory, gitignored so raw sources never ship). Dropping it into `public/animations/` also resolves, but that directory is served publicly, so the multi-megabyte FBX would be deployed to production alongside the built clip.2. Add an entry to `scripts/animations.config.json`3. Run `node scripts/build-animations.mjs` (or `npm run build:animations`) — retargets to the Avaturn rig, writes a JSON clip to `public/animations/clips/`, and updates `manifest.json`4. Update `public/animations/registry.json` so the new clip is catalogued under the `clips` collection@@ -16914,7 +17165,7 @@ Hip units are detected from the clip data, not the file extension. Raw Mixamo FB### If a source file is missing-Some retarget sources are deliberately never committed (`animation-sources/mx-*.fbx` is gitignored), so a clean checkout will not have them. When a configured clip's source is absent but its built JSON is already in `clips/`, the build republishes the built clip and logs `PREBUILT`. Only an entry with neither a source nor a built clip fails. Retiring a clip is therefore done by removing its config entry, not by deleting its source.+Retarget sources are deliberately never committed: everything in `animation-sources/` except its README is gitignored, so a clean checkout has none of them and the built clips in `clips/` are the shipped artifact. When a configured clip's source is absent but its built JSON is already in `clips/`, the build republishes the built clip and logs `PREBUILT`. That is the normal path on a fresh clone, not an edge case. Only an entry with neither a source nor a built clip fails, and the failure message points at `npm run extract:animations` to regenerate extracted sources. Retiring a clip is therefore done by removing its config entry, not by deleting its source.## Agent slots@@ -16962,7 +17213,7 @@ Resolved (see `public/animations/registry.json` → `resolved_issues`): the `fid----<a id="sec-082"></a>+<a id="sec-084"></a>> **Source:** `docs/api-reference.md` · [↑ table of contents](#table-of-contents)@@ -16972,7 +17223,7 @@ This is the reference for the three.ws HTTP API: every documented endpoint, itsBase URL: `https://three.ws/api`-> For the in-browser JavaScript API (the `<agent-3d>` element, `Viewer`, `Runtime`, `SceneController`, skills, memory), see [js-api.md](#sec-170) and [web-component.md](#sec-355). For the high-level npm SDK, see [sdk.md](#sec-252).+> For the in-browser JavaScript API (the `<agent-3d>` element, `Viewer`, `Runtime`, `SceneController`, skills, memory), see [js-api.md](#sec-179) and [web-component.md](#sec-375). For the high-level npm SDK, see [sdk.md](#sec-270).The full machine-readable schema lives at [`https://three.ws/.well-known/openapi.yaml`](https://three.ws/.well-known/openapi.yaml). x402 paid endpoints are listed at [`/.well-known/x402.json`](https://three.ws/.well-known/x402.json) and the MCP endpoint is at [`/api/mcp`](https://three.ws/api/mcp).@@ -17033,8 +17284,8 @@ Returns all of the authenticated user's agents (oldest first, no pagination). Re"id": "abc123","name": "Aria","description": "Product guide",- "avatar_url": "https://cdn.example.com/aria.glb",- "thumbnail_url": "https://cdn.example.com/aria.png",+ "avatar_url": "https://three.ws/avatars/default.glb",+ "thumbnail_url": "https://three.ws/avatars/thumbs/default.png","creator_address": "0xabc...","created_at": "2025-01-15T10:00:00Z","chain_id": 8453,@@ -17530,7 +17781,7 @@ Server-Sent Events stream from a unified multi-provider LLM gateway. Used by the```json{- "provider": "claude-sonnet-4-6",+ "provider": "claude-sonnet-5","messages": [{ "role": "user", "content": "Hello" }],"system": "You are a friendly product guide.","maxTokens": 1024@@ -17541,6 +17792,8 @@ Server-Sent Events stream from a unified multi-provider LLM gateway. Used by the| Provider | Network | Tier || ------------------- | ---------------- | -------- |+| `claude-opus-5` | Anthropic | flagship |+| `claude-sonnet-5` | Anthropic | balanced || `claude-opus-4-7` | Anthropic | flagship || `claude-sonnet-4-6` | Anthropic | balanced || `claude-haiku-4-5` | Anthropic | fast |@@ -17575,6 +17828,20 @@ POST /api/llm/anthropic?agent=<agent_id>Older single-provider proxy. Request/response shape matches the [Anthropic Messages API](https://docs.anthropic.com/en/api/messages) exactly. New integrations should use `/api/brain/chat` instead — it supports more providers and emits richer events.+**Request normalisation.** Model generations disagree about which request fields they accept, and sending the wrong one returns a hard `400` from the upstream. Rather than surface that to an embed, the proxy adapts the body to the model it is about to call:++| Field you send | What happens |+|---|---|+| `temperature` | Dropped for Opus 4.7 and the Claude 5 family, which reject sampling parameters. Passed through unchanged for every other model. |+| `thinking: {type:"enabled", budget_tokens:N}` | Rewritten to `{type:"adaptive"}` — the token-budget form was removed in the current generation. |+| `thinking: {type:"disabled"}` | Dropped for Fable/Mythos 5, where thinking is always on and an explicit config is rejected. |+| `max_tokens` below 4096 | Raised to 4096 on models that think by default. Their `max_tokens` covers reasoning *and* visible text, so a tight cap can be spent entirely on reasoning and return an empty reply. A budget already above the floor is never lowered. |+| `system` (long, plain string) | Given a prompt-cache breakpoint, so repeat turns re-read the prefix at roughly a tenth of the input price. The length required to qualify differs per model; below it the prompt is sent unchanged. Pass `system` as a block array yourself to control placement, and the proxy leaves it alone. |++Your original body is never mutated, and none of this changes the response shape.++**Usage accounting.** When a response is served from the prompt cache, Anthropic reports `usage.input_tokens` as the *uncached remainder only*, with the rest split across `cache_read_input_tokens` and `cache_creation_input_tokens`. The `input_tokens` figure recorded against your agent's monthly budget is the sum of all three, so a cached turn still counts the full prompt it sent.+---## TTS API@@ -17930,7 +18197,7 @@ x-forge-client: <stable browser id> # optional — resolves per-card `voted``sort=fresh` (default, newest-first) or `sort=top` (most-voted); `window=week`narrows Top to the current Forge-Off week (Monday→Monday UTC). Full feature-docs: [docs/forge-off.md](#sec-152).+docs: [docs/forge-off.md](#sec-159).### Agent-forged gallery feed — `GET /api/forged`@@ -17992,7 +18259,7 @@ the Avatar Studio re-skin idea (`src/avatar-studio-colorpicker.js`,preset live in the browser (see [Restyle Studio](https://three.ws/restyle)), askan AI for a restyle from a plain-language instruction, or fan one preset out intoN reproducible colorway variants. Free and hosted — rate-limited, not x402 — the-same implementation the paid `restyle_material` [MCP tool](#sec-182) calls as+same implementation the paid `restyle_material` [MCP tool](#sec-192) calls asa thin client, so the free web page and the paid agent tool never drift.Every mesh edit is **non-destructive**: geometry and UVs are never touched (only@@ -18530,6 +18797,28 @@ exhausted, or immediately if the request carries an `X-PAYMENT` header. Markedidentical `{ claim, strictness, imageUrl }` within 7 days replays the cachedverdict on either lane (adds `cachedAt`) rather than re-running the chain.+**`degraded` — when the check ran on less than the full chain.** Every live+check has a wall-clock budget (45s by default, `FACT_CHECK_BUDGET_MS`) and each+stage gets what is left of it. If query generation or stance extraction cannot+reach a language-model provider inside that budget, the stage falls back rather+than failing the request: query generation searches the claim text itself, and+stance extraction marks every source `neutral`, which scores as `insufficient`.+You still get the real sources and their excerpts. When that happens the+response carries a `degraded` array naming each stage that fell back:++```json+{+ "verdict": "insufficient",+ "confidence": 0.3,+ "sources": [ "…real sources, real excerpts…" ],+ "degraded": ["stance extraction unavailable: all providers exhausted"]+}+```++Treat `degraded` as "re-run this later", not as a judgement about the claim: a+degraded result is deliberately **not** written to the 7-day cache, so the next+request re-runs the full chain. Absence of the field means the full chain ran.+**Example**```bash@@ -18677,6 +18966,13 @@ Public, CORS-open, no auth, no cost. Rate limited to **30 requests/min perIP**; successful responses are edge-cached for 5 minutes. Pass exactly one of`name` or `address`.+`.eth` names resolve through the ENS Universal Resolver (one `eth_call` per+direction, typically under 300ms), which also handles wildcard and CCIP-read+resolution. A name that does not exist is a `404 not_found`; a `503+ens_unavailable` means every Ethereum RPC endpoint failed and the lookup is+worth retrying. The two are never conflated, so a client can cache a 404 and+retry a 503.+| Query param | Type | Description || ----------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------ || `name` | string | A name ending in `.eth` (ENS) or `.sol` (SNS). Required unless `address` is passed. |@@ -18763,7 +19059,7 @@ progress, the three.ws launch directory, and whale activity. Each endpoint is athin wrapper: search shares its engine with the site's command-palette search(`/api/pump/search`); trending, curve, and whales share their engines with thefree Crypto Data API's pump.fun endpoints (`/api/crypto/trending`, `/bonding`,-`/whales` — see [docs/crypto-api.md](#sec-134)); launches shares its query+`/whales` — see [docs/crypto-api.md](#sec-139)); launches shares its querywith the [/launches](https://three.ws/launches) page. No fork of any upstreamlogic lives here — every /api/v1/pump/\* route imports the same shared moduleits sibling already uses.@@ -18832,7 +19128,7 @@ curl -s 'https://three.ws/api/v1/pump/search?q=three.ws'Momentum-ranked "what's hot right now" — fuses windowed volume, buy pressure, avolume-spike signal, and price change across pump.fun, DexScreener, and(best-effort) GMGN smart money into one 0–100 score. Same engine as-[`GET /api/crypto/trending`](#sec-134)+[`GET /api/crypto/trending`](#sec-139)(`api/_lib/crypto-trending.js` `composeTrending`), capped slimmer here (25 vs50) to keep this door fast.@@ -18897,7 +19193,7 @@ curl -s 'https://three.ws/api/v1/pump/trending?window=1h&limit=10'Bonding-curve / graduation status for one pump.fun mint — % to graduation, SOLin the curve, tokens remaining, market cap, and whether it has already migratedto an AMM (Raydium / PumpSwap). Same engine as-[`GET /api/crypto/bonding`](#sec-134)+[`GET /api/crypto/bonding`](#sec-139)(`api/_lib/pump-bonding.js` `getBondingStatus`).```@@ -19028,7 +19324,7 @@ oracle that otherwise sits behind the paid `GET /api/x402/pump-agent-audit`(`"mode":"whale_activity"`) — the invented "bullish/bearish signal +confidence" the paid oracle scores is deliberately dropped here, and the samescan engine backs the free-[`GET /api/crypto/whales`](#sec-134)+[`GET /api/crypto/whales`](#sec-139)(`api/_lib/pump-whale-scan.js` `scanTokenWhales` / `scanMarketWhales`).```@@ -19087,7 +19383,7 @@ curl -s 'https://three.ws/api/v1/pump/whales?mint=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfz## Authentication API-Authentication is covered in detail in the [Authentication documentation](#sec-088). Quick reference:+Authentication is covered in detail in the [Authentication documentation](#sec-090). Quick reference:| Endpoint | Method | Description || --------------------------- | -------- | ------------------------------------- |@@ -19211,8 +19507,8 @@ Paginated search over ERC-8004 registered agents. No auth required."id": "onchain_abc","name": "Aria","description": "Product guide",- "avatar_url": "https://cdn.example.com/aria.glb",- "thumbnail_url": "https://cdn.example.com/aria.png",+ "avatar_url": "https://three.ws/avatars/default.glb",+ "thumbnail_url": "https://three.ws/avatars/thumbs/default.png","chain_id": 8453,"chain_agent_id": 42,"registered_at": "2025-01-15T10:00:00Z",@@ -19252,7 +19548,7 @@ Public directory of ERC-8004 agents with 3D avatars, for homepage and gallery us## Social & Community API-The endpoints behind the platform's social layer: the activity feed, the follow graph, notifications, the unified leaderboard, creator portfolios, and cross-entity search. Overview and how the pieces interconnect: [The social layer](#sec-263).+The endpoints behind the platform's social layer: the activity feed, the follow graph, notifications, the unified leaderboard, creator portfolios, and cross-entity search. Overview and how the pieces interconnect: [The social layer](#sec-282).### Activity feed@@ -19291,7 +19587,7 @@ Reverse-chronological creation events (avatars, agents, coins, forged models, saItems of `kind: "follow"` also carry a `target` shaped like `actor`. `actor.username` is `null` for creations made while signed out.-Not the same endpoint as `GET /api/feed`, the public Money Pulse ticker ([Money Feed](#sec-190)).+Not the same endpoint as `GET /api/feed`, the public Money Pulse ticker ([Money Feed](#sec-202)).---@@ -19653,7 +19949,7 @@ Model Context Protocol endpoint — exposes three.ws as a JSON-RPC 2.0 tool serv`render_avatar` enforces the agent's embed policy (allowed origins, allowed surfaces). Model URLs must be HTTPS — SSRF protections block private IP ranges.-This table is the core subset. The server registers many more tools (minting, gated embeds, memory, oracle and pump.fun intel, trader analytics, crypto data). Call `tools/list`, or see the [MCP documentation](#sec-184) and the [MCP Tools Catalog](#sec-182).+This table is the core subset. The server registers many more tools (minting, gated embeds, memory, oracle and pump.fun intel, trader analytics, crypto data). Call `tools/list`, or see the [MCP documentation](#sec-194) and the [MCP Tools Catalog](#sec-192).**Example JSON-RPC request**@@ -19766,7 +20062,7 @@ Both header names are read case-insensitively and both receipt names are emitted| `POST /api/mcp-3d` | MCP (Streamable HTTP) | Base + X Layer (+ Solana when configured) || `POST /api/okx/3d/<service>` | A2MCP (decomposed 3D studio) | X Layer first, then Solana/Base |-The full seller-side wire contract — challenge fields, verify→work→settle order, the `PAYMENT-SIGNATURE` payload shape, and the settlement receipt — is pinned in [`specs/okx-agent-payments.md`](../specs/okx-agent-payments.md). The per-service catalog and runnable curls are in [`docs/okx-marketplace.md`](#sec-199).+The full seller-side wire contract — challenge fields, verify→work→settle order, the `PAYMENT-SIGNATURE` payload shape, and the settlement receipt — is pinned in [`specs/okx-agent-payments.md`](../specs/okx-agent-payments.md). The per-service catalog and runnable curls are in [`docs/okx-marketplace.md`](#sec-213).---@@ -19776,7 +20072,7 @@ Public, unauthenticated, CORS-open proxies over CoinGecko (plus a newsaggregator) that power the [/coins](https://three.ws/coins) markets index andthe `/coin/:id` detail pages. Responses are CDN-cached (30–300 s), so pollingfaster than the cache window returns the same payload. See-[docs/coin-pages.md](#sec-120) for the product surface.+[docs/coin-pages.md](#sec-124) for the product surface.### Coin detail@@ -20245,7 +20541,7 @@ fetched_at }`.`paragraphs[]` is a bounded lead excerpt, not the article body: capped to 2paragraphs / 400 characters by `excerptParagraphs()` in[api/_lib/news-rights.js](../api/_lib/news-rights.js), the single choke point-every response passes through (see [docs/news-rights.md](#sec-195)).+every response passes through (see [docs/news-rights.md](#sec-207)).`excerpt_truncated` is `true` whenever the source ran longer than the quotedexcerpt; `full_text_url` is where to send the reader for the rest. This is ahard limit for every publisher, not a per-source policy — a story removed at a@@ -20528,6 +20824,72 @@ wire format); pay in USDC and the identical upstream call runs.---+## Web Search API++```+GET /api/web-search?q=<query>&sources=<n>+```++Open-web search with cited sources. This is distinct from [`/api/search`](#search-api),+which federates three.ws's own entities (avatars, agents, models, worlds, coins)+and never leaves the platform. This endpoint answers questions about the live+web and returns the sources the answer is grounded in.++Backed by Gemini on Vertex AI with Google Search grounding, authenticated with+the platform's GCP service account. No API key, no signup, and no per-seat+quota: it rides the same credits-funded surface as the chat reliability anchor.++No auth required. Rate limited to 20 requests per 10 minutes per IP (each call+is a billed inference request, so it does not share the generic public bucket).++**Parameters**++| Name | Type | Default | Description |+|---|---|---|---|+| `q` | string | — | Required. The search query. Truncated to 400 characters. |+| `sources` | integer | `8` | Maximum grounding sources to return, clamped to 1–20. |++**Response**++```json+{+ "enabled": true,+ "q": "What is the glTF file format used for?",+ "answer": "The glTF (GL Transmission Format) file format is an open-standard, royalty-free 3D file format developed by the Khronos Group. It is primarily used for the efficient transmission and loading of 3D scenes and models...",+ "sources": [+ {+ "title": "khronos.org",+ "url": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQF...",+ "domain": "khronos.org"+ }+ ],+ "queries": ["glTF file format uses", "what is glTF file format"]+}+```++`queries` are the searches Google actually ran for your question, so you can see+how it was interpreted rather than guessing from the results.++**Source URLs are attribution redirects.** Each `url` points at+`vertexaisearch.cloud.google.com/grounding-api-redirect/...` rather than the+publisher, which is how Google's grounding attribution works; the link resolves+to the real page. Use `domain` when you need the publishing host itself (for+display, filtering, or authority weighting) — parsing the hostname out of `url`+returns `vertexaisearch.cloud.google.com` for every result.++**Degraded and error states**++- `200 { "enabled": false, "q": "...", "sources": [] }` — the deployment has no+ GCP project configured (local dev without credentials). A designed "not+ available here" state, not an error.+- `400 missing_query` — `q` was absent or empty.+- `502` — the upstream grounded call failed (auth, quota, safety block, or+ timeout). Retryable.++Results are edge-cached for 60 seconds (`stale-while-revalidate` 300).++---+## Animations Library API```@@ -20590,10 +20952,25 @@ Returns public platform configuration. No auth required. CORS open.```json{- "walletConnectProjectId": "..."+ "walletConnectProjectId": "...",+ "privyAppId": "...",+ "samlEnabled": false,+ "samlLabel": "Single sign-on (SSO)",+ "pushEnabled": false,+ "vapidPublicKey": "",+ "features": {+ "avatarReconstruct": true,+ "avatarReconstructMode": "platform",+ "avatarByokProviders": [],+ "avatarRigging": true,+ "videoAvatar": false,+ "liveBodyMocap": false+ }}```+`features` reports which optional avatar pipelines this deployment has configured, so clients can gate their UI honestly (e.g. `avatarReconstructMode` is `"platform"` when the server holds provider credentials, `"byok"` when the user must supply a key).+---## Version API@@ -20672,7 +21049,7 @@ Endpoint-specific codes (e.g. `quota_exceeded`, `invalid_avatar`, `no_client_id`## SDK-For building on the platform from JavaScript, the official npm package is [`@three-ws/sdk`](https://www.npmjs.com/package/@three-ws/sdk). It is not a thin wrapper over every REST route above; it ships the higher-level building blocks: `AgentKit` (chat panel + ERC-8004 registration + `.well-known` manifest generation), `AgentClient` (x402 agent-to-agent paid skill calls), `PermissionsClient` (ERC-7710 delegations), and the Solana identity/attestation helpers. Full docs: [SDK & Library](#sec-252).+For building on the platform from JavaScript, the official npm package is [`@three-ws/sdk`](https://www.npmjs.com/package/@three-ws/sdk). It is not a thin wrapper over every REST route above; it ships the higher-level building blocks: `AgentKit` (chat panel + ERC-8004 registration + `.well-known` manifest generation), `AgentClient` (x402 agent-to-agent paid skill calls), `PermissionsClient` (ERC-7710 delegations), and the Solana identity/attestation helpers. Full docs: [SDK & Library](#sec-270).For the endpoints on this page, call them directly with `fetch`/`curl` and a Bearer API key:@@ -20694,7 +21071,7 @@ const { agents } = await res.json();----<a id="sec-083"></a>+<a id="sec-085"></a>> **Source:** `docs/api/forge-x402.md` · [↑ table of contents](#table-of-contents)@@ -20812,7 +21189,7 @@ for (;;) {----<a id="sec-084"></a>+<a id="sec-086"></a>> **Source:** `docs/ar-studio.md` · [↑ table of contents](#table-of-contents)@@ -20825,9 +21202,9 @@ API: `POST /api/forge` (in-view text-to-3D) · `GET /api/forge-gallery` (your an## Why it exists-The older "View in AR" flow (see [AR and WebXR](#sec-085)) shows one model at a time in a native viewer. AR Studio is the composition tool: a persistent, multi-model scene you arrange in real space and can build with other people at once. It is free, needs no account, and degrades gracefully so it works on a laptop, a phone browser, or a full AR headset. It is where a forge result, a marketplace avatar, and a prompt-conjured prop can all stand in your living room together.+The older "View in AR" flow (see [AR and WebXR](#sec-087)) shows one model at a time in a native viewer. AR Studio is the composition tool: a persistent, multi-model scene you arrange in real space and can build with other people at once. It is free, needs no account, and degrades gracefully so it works on a laptop, a phone browser, or a full AR headset. It is where a forge result, a marketplace avatar, and a prompt-conjured prop can all stand in your living room together.-This doc covers what is unique to AR Studio. For the underlying `POST /api/forge` free lane, the `<agent-3d>` "View in AR" methods, the USDZ/Quick Look pipeline, and model-optimization limits, see [AR and WebXR](#sec-085).+This doc covers what is unique to AR Studio. For the underlying `POST /api/forge` free lane, the `<agent-3d>` "View in AR" methods, the USDZ/Quick Look pipeline, and model-optimization limits, see [AR and WebXR](#sec-087).## How it works@@ -20910,13 +21287,13 @@ You can also hand-build a share link: append `?src=<https glb url>&title=<name>`## Related-- [AR and WebXR](#sec-085): the single-model "View in AR" system, `/ar` AR Forge, the `POST /api/forge` free lane in depth, the USDZ/Quick Look pipeline, and model-optimization limits.-- [Selfie to Avatar](#sec-254) and [Avatar pipeline](#sec-095): where the models you place come from.+- [AR and WebXR](#sec-087): the single-model "View in AR" system, `/ar` AR Forge, the `POST /api/forge` free lane in depth, the USDZ/Quick Look pipeline, and model-optimization limits.+- [Selfie to Avatar](#sec-272) and [Avatar pipeline](#sec-097): where the models you place come from.- Pages: [/ar/studio](https://three.ws/ar/studio), [/ar](https://three.ws/ar), [/viewer](https://three.ws/viewer).----<a id="sec-085"></a>+<a id="sec-087"></a>> **Source:** `docs/ar.md` · [↑ table of contents](#table-of-contents)@@ -21300,12 +21677,15 @@ import { WebXRSession } from '/src/ar/webxr.js';// iOS: Quick Look takes a USDZ, not a GLB (bake one with// glbBlobToAnimatedUsdzBlob / glbBlobToUsdzBlob, see the USDZ pipeline above)if (canUseQuickLook()) {- openQuickLook('https://cdn.example.com/model.usdz');+ const glbBlob = await fetch('https://three.ws/avatars/cesium-man.glb').then((r) => r.blob());+ const { glbBlobToUsdzBlob } = await import('/src/usdz-pipeline.js');+ const usdzBlob = await glbBlobToUsdzBlob(glbBlob);+ openQuickLook(URL.createObjectURL(usdzBlob));}// Android: Scene Viewer takes the GLB URLelse if (canUseSceneViewer()) {- openSceneViewer('https://cdn.example.com/model.glb', {+ openSceneViewer('https://three.ws/avatars/cesium-man.glb', {title: 'My Agent',link: 'https://three.ws',});@@ -21350,7 +21730,7 @@ a server-side PNG render of the actual GLB (CDN-cached for a day), so pastingan AR link into a chat or timeline shows the model, not a generic card. Thepage also converts: it carries "Create your own" (into [/ar](/ar)) and "Openin 3D viewer" calls to action. See `GET|POST /api/render/glb` in the-[API reference](#sec-082) for the renderer's parameters and limits.+[API reference](#sec-084) for the renderer's parameters and limits.**For agents (MCP):** the free, read-only `export_ar` tool on the [3D Studio server](/docs/mcp) turns a GLB into the AR launch link plus a conformant [Spatial MCP](/docs/spatial-mcp) artifact (with the `ar` handoff populated):@@ -21383,13 +21763,13 @@ How this link ships through ChatGPT end to end (the app connector, the custom GP----<a id="sec-086"></a>+<a id="sec-088"></a>> **Source:** `docs/architecture.md` · [↑ table of contents](#table-of-contents)# Architecture Overview-three.ws is the platform you see at [three.ws](https://three.ws): 3D avatars with AI brains that you can chat with, embed on any site, and register on-chain. This page is the engineering map of how that is built. If you just want to use the product, start with [How three.ws works](#sec-161) instead.+three.ws is the platform you see at [three.ws](https://three.ws): 3D avatars with AI brains that you can chat with, embed on any site, and register on-chain. This page is the engineering map of how that is built. If you just want to use the product, start with [How three.ws works](#sec-170) instead.This document describes how three.ws is put together, how data moves through it, and where the seams are if you want to extend, self-host, or integrate it with another stack. It assumes familiarity with modern JavaScript, WebGL/three.js at a high level, and the basics of EVM blockchains and content-addressed storage.@@ -21647,7 +22027,7 @@ A minimal Node + Neon + Anthropic deployment is enough for a single agent. The b----<a id="sec-087"></a>+<a id="sec-089"></a>> **Source:** `docs/assistant-widget.md` · [↑ table of contents](#table-of-contents)@@ -21660,9 +22040,9 @@ The assistant widget puts a full-body, animated three.ws avatar on any website bConfigure everything and copy your snippet at [three.ws/assistant](https://three.ws/assistant). The builder page runs the real widget, so what you see in the corner is exactly what your visitors get.-Looking for a support-chat panel grounded in your page's content instead of a full-body avatar? That is the sibling [Concierge widget](#sec-124). Use Concierge for "answer questions about this page"; use the assistant widget when you want a character who stands on your site, speaks, and can run on a visitor's own model key.+Looking for a support-chat panel grounded in your page's content instead of a full-body avatar? That is the sibling [Concierge widget](#sec-128). Use Concierge for "answer questions about this page"; use the assistant widget when you want a character who stands on your site, speaks, and can run on a visitor's own model key.-There are three ways to add it: a one-tag script, the [`@three-ws/assistant`](https://www.npmjs.com/package/@three-ws/assistant) npm package, or let an AI agent generate the embed for you through the [assistant-widget MCP server](#generate-a-widget-from-an-ai-agent-mcp). New to it? The [step-by-step tutorial](#sec-284) builds one from scratch.+There are three ways to add it: a one-tag script, the [`@three-ws/assistant`](https://www.npmjs.com/package/@three-ws/assistant) npm package, or let an AI agent generate the embed for you through the [assistant-widget MCP server](#generate-a-widget-from-an-ai-agent-mcp). New to it? The [step-by-step tutorial](#sec-304) builds one from scratch.## Install@@ -21771,7 +22151,7 @@ Two tools:- **`list_assistant_options`** returns everything you can configure: the built-in avatars, the background presets and grammar, the modes, the chat lanes, and the full `data-*` attribute reference.- **`build_assistant_widget`** turns a config (avatar, background, mode, name, greeting, context, accent, position) into a paste-ready `<script>` snippet, a standalone frame URL, an equivalent `ThreeAssistant.init({...})` call, and the builder link. Every field is validated and clamped, so a bad value falls back to a safe default and the generated HTML is always well-formed.-Ask your agent something like "build a 3D assistant widget named Aria with an ocean background for my site" and paste the snippet it returns. The server is one of the [three.ws MCP servers](#sec-184); find it in the registry at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/?q=io.github.nirholas).+Ask your agent something like "build a 3D assistant widget named Aria with an ocean background for my site" and paste the snippet it returns. The server is one of the [three.ws MCP servers](#sec-194); find it in the registry at [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/?q=io.github.nirholas).## How it works@@ -21783,10 +22163,10 @@ Ask your agent something like "build a 3D assistant widget named Aria with an oc## Related surfaces-- [Build a 3D assistant, step by step](#sec-284), the tutorial-- [Concierge](#sec-124), the page-grounded support-chat widget with a lipsyncing face-- [three.ws MCP servers](#sec-184), the full free and paid tool catalog-- [Share and embed](#sec-255), the `<three-d>` model embeds+- [Build a 3D assistant, step by step](#sec-304), the tutorial+- [Concierge](#sec-128), the page-grounded support-chat widget with a lipsyncing face+- [three.ws MCP servers](#sec-194), the full free and paid tool catalog+- [Share and embed](#sec-273), the `<three-d>` model embeds- [/walk-embed](https://three.ws/walk-embed), the walking-avatar iframe embed- [/forge](https://three.ws/forge), generate an avatar to use in the widget@@ -21799,7 +22179,7 @@ Ask your agent something like "build a 3D assistant widget named Aria with an oc----<a id="sec-088"></a>+<a id="sec-090"></a>> **Source:** `docs/authentication.md` · [↑ table of contents](#table-of-contents)@@ -22274,7 +22654,7 @@ Password hashing cost is configurable via `PASSWORD_ROUNDS` (default: `11` bcryp----<a id="sec-089"></a>+<a id="sec-091"></a>> **Source:** `docs/autonomous-economy.md` · [↑ table of contents](#table-of-contents)@@ -22289,8 +22669,8 @@ and the platform **scans its own wallets for leaks every minute**.This page explains the whole loop in plain language: which wallet does what, how moneycan and cannot move, and how you can verify there's no leak yourself.-Companion docs: [Money map](#sec-191) (which wallet receives each *payment*),-[Economy master](#sec-142) (the funding-root subsystem in depth), and the+Companion docs: [Money map](#sec-203) (which wallet receives each *payment*),+[Economy master](#sec-149) (the funding-root subsystem in depth), and the[Solana signers runbook](../api/_lib/solana-signers.js) (every signer, its floor, andhow to fund it).@@ -22422,16 +22802,16 @@ zero.## Related-- [Money map](#sec-191) — which wallet receives each kind of payment, and the+- [Money map](#sec-203) — which wallet receives each kind of payment, and theplatform's cut.-- [Economy master](#sec-142) — the funding-root subsystem, its ledger, and the+- [Economy master](#sec-149) — the funding-root subsystem, its ledger, and thetopup/sweepback crons in depth.-- [x402 ring economy](#sec-364) — how the autonomous payment ring settles+- [x402 ring economy](#sec-384) — how the autonomous payment ring settlesUSDC between agents.----<a id="sec-090"></a>+<a id="sec-092"></a>> **Source:** `docs/autonomous-x402.md` · [↑ table of contents](#table-of-contents)@@ -22458,7 +22838,7 @@ the sniper oracle gate.The loop runs from the `x402-autonomous-loop` cron endpoint, invoked every**minute** by the `economy-tick` dispatcher (see the-[economy heartbeat](#sec-141)) rather than by its own schedule+[economy heartbeat](#sec-148)) rather than by its own scheduleentry; per-entry Redis cooldowns decide what actually fires on any given tick.Each tick:@@ -22501,7 +22881,7 @@ master holds funds.| `X402_ASSET_MINT_SOLANA` | USDC mint | The asset paid with (Solana USDC). || `SOLANA_RPC_URL` | — | RPC used to build and submit the payment. |-This loop's treasury is **separate** from the [circulation engine](#sec-116)+This loop's treasury is **separate** from the [circulation engine](#sec-120)treasury (`CIRCULATION_TREASURY_SECRET`). Circulation funds agent-to-agent SOL /$THREE activity; this loop funds USDC intel purchases. They do not fund eachother.@@ -22585,7 +22965,7 @@ automatically (and `tests/x402-ring-catalog.test.js` fails until it is cataloged> reasoning lives in> [x402 revenue → Synthetic vs organic](x402-revenue.md#proof-of-volume--x402_volume_metrics).> Drive *real* volume through external demand (the-> [Circulation engine](#sec-116), real `agent_hire` commerce,+> [Circulation engine](#sec-120), real `agent_hire` commerce,> discovery), not a heavier self-paid sweep.## The Datapoint Fabric Volume Sweep@@ -22637,21 +23017,21 @@ corroborate — the ops financial-integrity surface alerts on those. Detail:| `x402_autonomous_log` | Every call (success or failure), with `signal_data` / `value_extracted`. || `oracle_intel_signals` | `oracle` / `sniper` entries, keyed by source + topic; consumed by the sniper oracle gate. Each row carries `tx_signature`, the settle signature of the paid call that bought it, so a gate decision can cite its receipt (surfaced as `signal_receipts` on gate results). || `forge_creations` | Every settled `POST /api/x402/forge` generation (any buyer, not just this loop). The row lands in the public community gallery with `x402_payer` / `x402_tx_sig` / `x402_price_atomic` provenance; the gallery renders a Solscan-linked "x402 · $price" badge. Inline-done lanes materialize immediately; async lanes store the full job token and `api/cron/forge-finalize` completes them server-side. |-| `agent_custody_events` | The USDC spend, with `category: 'x402'` (see [Money feed](#sec-190)). |+| `agent_custody_events` | The USDC spend, with `category: 'x402'` (see [Money feed](#sec-202)). || `x402_volume_metrics` | Per-endpoint proof-of-volume + liveness ledger from the Volume Bootstrap Loop (see [x402 revenue](x402-revenue.md#proof-of-volume--x402_volume_metrics)). || `payment_reconciliation` | One verdict per settlement claim from the daily reconciliation job (see [x402 revenue](x402-revenue.md#reconciliation--payment_reconciliation)). || Dedicated stores | Pipeline-specific tables (pricing tracker, reputation snapshots, leaderboard, sniper analytics, …). |## Related-- [x402 endpoints](#sec-362) — the paid endpoints this loop calls.-- [x402 revenue & receipts](#sec-363) — where settlements land, the proof-of-volume ledger, and the reconciliation job.-- [x402 buyer client](#sec-359) — the client wrappers it pays with.-- [Circulation engine](#sec-116) — the separate SOL/$THREE activity loop.+- [x402 endpoints](#sec-382) — the paid endpoints this loop calls.+- [x402 revenue & receipts](#sec-383) — where settlements land, the proof-of-volume ledger, and the reconciliation job.+- [x402 buyer client](#sec-379) — the client wrappers it pays with.+- [Circulation engine](#sec-120) — the separate SOL/$THREE activity loop.----<a id="sec-091"></a>+<a id="sec-093"></a>> **Source:** `docs/autopilot.md` · [↑ table of contents](#table-of-contents)@@ -22746,15 +23126,15 @@ A confirmed buyback narrates as: "Bought back and burned $120 of $YOURCOIN. Supp## Related-- [Custody you can verify](#sec-135) - the spend limits, freeze switch, and audit trail every agent wallet runs under-- [Financial controls](#sec-150) - plain-English spend rules layered on the same enforcement point-- [Oracle](#sec-209) - the conviction engine and the agent action loop that arms an agent to trade autonomously+- [Custody you can verify](#sec-140) - the spend limits, freeze switch, and audit trail every agent wallet runs under+- [Financial controls](#sec-157) - plain-English spend rules layered on the same enforcement point+- [Oracle](#sec-224) - the conviction engine and the agent action loop that arms an agent to trade autonomously- [/dashboard](https://three.ws/dashboard) - launch a coin for an agent, the prerequisite for Autopilot- [/launches](https://three.ws/launches) - the public feed of coins launched through three.ws----<a id="sec-092"></a>+<a id="sec-094"></a>> **Source:** `docs/avatar-creation.md` · [↑ table of contents](#table-of-contents)@@ -23026,7 +23406,7 @@ On success, you receive:### 3. Register on-chain (optional)-For permanent, verifiable identity, you can register the agent on-chain under ERC-8004. This creates a blockchain record linked to a wallet address. Gas fees apply. See the [ERC-8004 documentation](#sec-146) for details.+For permanent, verifiable identity, you can register the agent on-chain under ERC-8004. This creates a blockchain record linked to a wallet address. Gas fees apply. See the [ERC-8004 documentation](#sec-153) for details.---@@ -23090,7 +23470,7 @@ No regeneration provider is configured on this deployment. Set `AVATAR_REGEN_PRO----<a id="sec-093"></a>+<a id="sec-095"></a>> **Source:** `docs/avatar-fidelity-program.md` · [↑ table of contents](#table-of-contents)@@ -23102,7 +23482,7 @@ own, and costs nothing per avatar. Not "good enough to avoid a bill" — betterthan the thing we would have paid for.This is the program plan. The subsystem it improves is documented in-[avatar-reconstruction.md](#sec-096); the worker lives in+[avatar-reconstruction.md](#sec-098); the worker lives in[`workers/avatar-reconstruction/`](../workers/avatar-reconstruction).## Why we are not buying this@@ -23548,7 +23928,7 @@ items do not:----<a id="sec-094"></a>+<a id="sec-096"></a>> **Source:** `docs/avatar-inspector.md` · [↑ table of contents](#table-of-contents)@@ -23628,11 +24008,11 @@ Agora keeps its richer, economy-native passport panel(`src/agora/passport-panel.js`) — the <kbd>I</kbd> key there opens the samepassport the click path always has.-Related reading: [agent reputation](#sec-051) · [Agora](#sec-066).+Related reading: [agent reputation](#sec-052) · [Agora](#sec-068).----<a id="sec-095"></a>+<a id="sec-097"></a>> **Source:** `docs/avatar-pipeline.md` · [↑ table of contents](#table-of-contents)@@ -23641,8 +24021,8 @@ Related reading: [agent reputation](#sec-051) · [Agora](#sec-066).This is the end-to-end view of how a text prompt or image becomes a rigged,animated 3D avatar on three.ws — from generation, through auto-rigging, to theuniversal animation system that drives any humanoid skeleton. It ties together the-individual tool docs ([Avatar creation](#sec-092),-[Avatar Studio](#sec-114), [Animations](#sec-081),+individual tool docs ([Avatar creation](#sec-094),+[Avatar Studio](#sec-117), [Animations](#sec-083),[3D asset pipeline](#sec-002)) into one map.---@@ -23669,7 +24049,7 @@ prompt / imageGeneration quality is a **tier** ([api/_lib/forge-tiers.js](../api/_lib/forge-tiers.js)): `draft`, `standard`(default), or `high` — more geometric budget at higher tiers. The tier sets theprice identically across REST and MCP transports (see-[MCP tools](#sec-182), [x402 endpoints](#sec-362)).+[MCP tools](#sec-192), [x402 endpoints](#sec-382)).### ② Auto-rig@@ -23692,7 +24072,9 @@ coverage.`src/glb-canonicalize.js` maps an incoming skeleton's bone names onto three.ws's**canonical bone set**. It understands many rig conventions out of the box —Mixamo, Avaturn, Unreal, VRM / VRoid, VRM 1.0, Daz / Genesis, MakeHuman, Blender-`.L`/`.R`, and simple `shoulderL`-style rigs.+`.L`/`.R`, Rigify, SMPL, Roblox, Second Life, anatomical-Latin scan rigs, and+simple `shoulderL`-style rigs. Finger chains are mapped per convention too, which+matters more than it sounds: see the coverage note below.### ④ Retarget clips@@ -23715,28 +24097,51 @@ supported rigs**: support comes from the bone-name mapping in- **Hit a new skeleton convention?** Add its bone-name mapping to`glb-canonicalize.js` and cover it with a case in`tests/glb-canonicalize.test.js`. Do **not** hardcode a curated rig list.+- **Fingers are load-bearing for coverage.** 30 of the 53 tracks in every clip+ address a finger joint, so a rig whose hands do not name-map scores about 40%+ coverage, drops under `MIN_COVERAGE`, and gets **no action built at all**: the+ whole avatar stands frozen, arms and legs included. When you add a convention,+ add its finger spellings too.++### Proving it: the animation dignity sweep++```bash+node scripts/animation-dignity-sweep.mjs # per-rig report, exit 0/1+node scripts/animation-dignity-sweep.mjs --verbose # per-limb swing + travel numbers+node scripts/animation-dignity-sweep.mjs --json # machine-readable+```++The sweep builds ten minimal skinned GLBs, one per naming convention (Mixamo,+Avaturn, Unreal, VRoid, VRM 1.0, Daz, MakeHuman, Rigify, a simple `shoulderL`+rig, and an anatomical-Latin rig), drives the real `idle` and `walk` clips onto+each, and **measures** the result: retarget coverage, per-limb rotation swing in+degrees, and end-effector world travel in hip-heights for both hands and both+feet. It runs each rig down both production paths, ingest-canonicalized and+raw-runtime, and fails the run if any limb does not move. Use it whenever you+touch the canonicalizer or the retargeter; "the tests still pass" does not prove+an avatar still animates.## Output and surfacesA finished avatar is a GLB (plus optional rig + clips) viewable in the three.wsviewer, embeddable as a web component, and attachable to an agent. Paidgeneration/editing is metered per call over x402; the free studio lane requires no-account. See [Avatar creation](#sec-092) and-[Avatar Studio](#sec-114) for the authoring UIs, and-[Mesh editing tools](#sec-182) for retexture / stylize / remesh / segment /+account. See [Avatar creation](#sec-094) and+[Avatar Studio](#sec-117) for the authoring UIs, and+[Mesh editing tools](#sec-192) for retexture / stylize / remesh / segment /pose operations.## Related-- [Selfie → Avatar reconstruction](#sec-096) — the separate lane that fits a *person's photo* onto a rigged template (face texture + geometry morph), rather than generating a mesh from a prompt.-- [Animations](#sec-081) — the clip library and retargeting in depth.+- [Selfie → Avatar reconstruction](#sec-098) — the separate lane that fits a *person's photo* onto a rigged template (face texture + geometry morph), rather than generating a mesh from a prompt.+- [Animations](#sec-083) — the clip library and retargeting in depth.- [3D asset pipeline](#sec-002) — formats, optimization, validation.-- [NVIDIA free models](#sec-197) — the free generation backend.-- [MCP tools](#sec-182) — every generation/editing tool and its price.+- [NVIDIA free models](#sec-210) — the free generation backend.+- [MCP tools](#sec-192) — every generation/editing tool and its price.----<a id="sec-096"></a>+<a id="sec-098"></a>> **Source:** `docs/avatar-reconstruction.md` · [↑ table of contents](#table-of-contents)@@ -23744,7 +24149,7 @@ pose operations.This is the subsystem that turns a **user's photo** (or a text→image reference)into a rigged, animation-ready 3D avatar. It is distinct from the Forge-generation lane in the [Avatar Pipeline](#sec-095): the Forge generates+generation lane in the [Avatar Pipeline](#sec-097): the Forge generatesan *arbitrary* mesh from a prompt, whereas reconstruction fits a *specificperson* onto a fixed, pre-rigged template — the same architecture Avaturn andReady Player Me use, and the reason the output is born-rigged with facial@@ -23822,7 +24227,7 @@ closes that gap:ISE sweep over the 40-face reference set (`python -m eval.tune_morph`), not byeye. They cut mean ISE 43% against the original 0.75 / 0.18, whose ~1.9 cmdisplacement ceiling was throttling genuine facial variation rather than-rejecting outliers. See [avatar-fidelity-program.md](#sec-093)+rejecting outliers. See [avatar-fidelity-program.md](#sec-095)for why the sweep's own looser optimum was deliberately not shipped.Because vertex count and order never change, `glb_ops.set_head_geometry` writes@@ -23915,7 +24320,7 @@ is unencumbered.## Roadmap — beating Avaturn on fidelity> The active plan built on this roadmap — tracks, owners, capacity and credit-> allocation — is [avatar-fidelity-program.md](#sec-093).+> allocation — is [avatar-fidelity-program.md](#sec-095).> Fidelity claims are scored with the ISE metric in> [`workers/avatar-reconstruction/eval/`](../workers/avatar-reconstruction/eval/README.md).@@ -23964,7 +24369,7 @@ Full runbook: [`docs/ops/gcp-production.md`](ops/gcp-production.md).----<a id="sec-097"></a>+<a id="sec-099"></a>> **Source:** `docs/avatar-studio.md` · [↑ table of contents](#table-of-contents)@@ -24027,7 +24432,7 @@ curl 'https://three.ws/api/avatars/<avatarId>' -H 'cookie: <session>'## States & limits- **No selfie, no camera.** This is the from-scratch path. To build an avatar from a photo, use the platform's selfie-to-avatar flow under [/create](https://three.ws/create) instead.-- **Two base bodies.** Create mode starts from the Stylized feminine base or the bare Parametric base (which covers masculine, feminine, and everything between via its body sliders). Switching base reloads the studio, so it asks before discarding unsaved changes. The posable primitive with a build toggle lives in [Animation Studio](#sec-080).+- **Two base bodies.** Create mode starts from the Stylized feminine base or the bare Parametric base (which covers masculine, feminine, and everything between via its body sliders). Switching base reloads the studio, so it asks before discarding unsaved changes. The posable primitive with a build toggle lives in [Animation Studio](#sec-082).- **The Parametric base ships bare.** No hair or outfit meshes yet, so the hair/outfit color slots and the Layers block do not appear on it; hats, glasses, and earrings attach normally. Conforming hair and garments are the next phase of the parametric roadmap ([prompts/roadmap/avatar-parametric-editor.md](../prompts/roadmap/avatar-parametric-editor.md)).- **Sculpt depends on the base's morphs.** The face/body sliders render against whatever morph targets the base GLB exposes; a slot with no matching morph simply does not appear.- **Save requires an account.** Export happens client-side, but persisting the avatar to your library needs sign-in. Optimization is best-effort: if compression fails, the original export is saved untouched so the save always completes.@@ -24036,16 +24441,16 @@ curl 'https://three.ws/api/avatars/<avatarId>' -H 'cookie: <session>'## Related-- [Animation Studio](#sec-080): pose and keyframe the avatar you build here.-- [Scene Composer](#sec-123): forge props and attach them to the avatar's bones as a saved outfit.-- [Mocap Studio](#sec-189): drive the avatar's face live from your webcam.-- [Restyle Studio](#sec-247): shares the same GLB optimize-and-validate path.-- [Trait-based avatar builder](#sec-114): the separate VRM studio embedded in the agent editor; a deep dive into its internals.+- [Animation Studio](#sec-082): pose and keyframe the avatar you build here.+- [Scene Composer](#sec-127): forge props and attach them to the avatar's bones as a saved outfit.+- [Mocap Studio](#sec-201): drive the avatar's face live from your webcam.+- [Restyle Studio](#sec-265): shares the same GLB optimize-and-validate path.+- [Trait-based avatar builder](#sec-117): the separate VRM studio embedded in the agent editor; a deep dive into its internals.- [/create](https://three.ws/create): the hub for every avatar-creation path, including selfie-to-avatar.----<a id="sec-098"></a>+<a id="sec-100"></a>> **Source:** `docs/avatar-thumbnails.md` · [↑ table of contents](#table-of-contents)@@ -24277,7 +24682,7 @@ that adoption HEAD-checks the preview object before persisting it.----<a id="sec-099"></a>+<a id="sec-101"></a>> **Source:** `docs/avatar-wardrobe.md` · [↑ table of contents](#table-of-contents)@@ -24412,13 +24817,13 @@ bricking the avatar.## Related-- [`docs/avatar-reconstruction.md`](#sec-096) — selfie → avatar-- [`docs/avatar-fidelity-program.md`](#sec-093) — identity fidelity program+- [`docs/avatar-reconstruction.md`](#sec-098) — selfie → avatar+- [`docs/avatar-fidelity-program.md`](#sec-095) — identity fidelity program- [`specs/GARMENT_MANIFEST.md`](../specs/GARMENT_MANIFEST.md) — the wearable contract----<a id="sec-100"></a>+<a id="sec-102"></a>> **Source:** `docs/aws-builder-center-marketplace-x402.md` · [↑ table of contents](#table-of-contents)@@ -24677,7 +25082,7 @@ The product on the other side of all this plumbing is the platform: three.ws age----<a id="sec-101"></a>+<a id="sec-103"></a>> **Source:** `docs/aws-builder-center-mcp-agents.md` · [↑ table of contents](#table-of-contents)@@ -24792,7 +25197,7 @@ If you wire it into something, or you want to list a paid tool of your own, the----<a id="sec-102"></a>+<a id="sec-104"></a>> **Source:** `docs/aws-marketplace-listing-kit.md` · [↑ table of contents](#table-of-contents)@@ -24801,7 +25206,7 @@ If you wire it into something, or you want to list a paid tool of your own, thePaste-ready content and the exact step sequence to create the **AI agents & tools**product in the AWS Marketplace Management Portal (AMMP). The backend integration(register URL, SNS webhook, key issuance, account linking) is already built and-deployed — see [aws-marketplace.md](#sec-103). This doc covers the+deployed — see [aws-marketplace.md](#sec-105). This doc covers thelisting itself, which has not yet been created (the AMMP "AI agents & toolsproducts" page shows "No products to display").@@ -25005,7 +25410,7 @@ Not done (requires AWS console / seller creds — cannot be done from this repo)----<a id="sec-103"></a>+<a id="sec-105"></a>> **Source:** `docs/aws-marketplace.md` · [↑ table of contents](#table-of-contents)@@ -25048,7 +25453,7 @@ For platform support, open an issue at [github.com/nirholas/three.ws/issues](htt----<a id="sec-104"></a>+<a id="sec-106"></a>> **Source:** `docs/aws-partner-spotlight.md` · [↑ table of contents](#table-of-contents)@@ -25144,7 +25549,7 @@ One product. Two ways to pay. One AWS bill.----<a id="sec-105"></a>+<a id="sec-107"></a>> **Source:** `docs/bnb-babt-findings.md` · [↑ table of contents](#table-of-contents)@@ -25340,7 +25745,7 @@ shipped:----<a id="sec-106"></a>+<a id="sec-108"></a>> **Source:** `docs/bnb-payments.md` · [↑ table of contents](#table-of-contents)@@ -25513,7 +25918,7 @@ full verified-facts list.----<a id="sec-107"></a>+<a id="sec-109"></a>> **Source:** `docs/bnb-vault.md` · [↑ table of contents](#table-of-contents)@@ -25661,7 +26066,7 @@ this campaign, not a bug in this code path.----<a id="sec-108"></a>+<a id="sec-110"></a>> **Source:** `docs/bnb-world.md` · [↑ table of contents](#table-of-contents)@@ -25897,7 +26302,7 @@ reproduction commands are recorded in `contracts/DEPLOYMENTS.md`'s "Prompt## Related-- [BNB Chain payments](#sec-106) — the MPP/x402 payment rail this+- [BNB Chain payments](#sec-108) — the MPP/x402 payment rail thiscampaign also shipped, same `api/_lib/bnb/` namespace.- `contracts/src/WorldMoves.sol` — the contract itself, full NatSpec.- `contracts/DEPLOYMENTS.md` — deploy status, bytecode, and every real@@ -25908,7 +26313,7 @@ reproduction commands are recorded in `contracts/DEPLOYMENTS.md`'s "Prompt----<a id="sec-109"></a>+<a id="sec-111"></a>> **Source:** `docs/brain.md` · [↑ table of contents](#table-of-contents)@@ -25929,7 +26334,7 @@ same prompt, at the same moment, across every candidate, with real timing. Braingives you that: a compare view that fans one prompt out to the whole roster and showsyou who answered first, who was most thorough, and what each one cost in tokens. Italso doubles as the model picker behind the Brain tab of-[Agent Studio](#sec-056), so the model you pick here is the model your agent+[Agent Studio](#sec-057), so the model you pick here is the model your agentruns on.## How it works@@ -25956,7 +26361,7 @@ outage through the mirrored OpenRouter id. If the mirror fails too, a free-tiersafety net answers before any error is surfaced: Groq Llama 3.3, then the OpenRouter`:free` route across every configured key, then NVIDIA NIM. A route only errors onceno free provider can answer, and each handoff emits an `event: fallback` frame. The-roster spans Anthropic (Claude Fable 5, Mythos 5, Opus 4.7, Sonnet 4.6, Haiku 4.5),+roster spans Anthropic (Claude Fable 5, Opus 5, Sonnet 5, Opus 4.7, Sonnet 4.6, Haiku 4.5),OpenAI (GPT-OSS 120B, the GPT-5.x family, o3 family), xAI (Grok 4.x), Groq (Llama3.3 70B), DashScope (Qwen Plus), ModelScope (Qwen3-Coder 480B), DeepSeek R1, IBMGranite on watsonx.ai, and a free NVIDIA NIM lineup (Nemotron 3 Super 120B,@@ -25983,7 +26388,7 @@ keys.5. **Read the stats.** When a model finishes, its column shows total elapsed time andtoken usage from the `done` event.6. **Commit a choice.** Carry the winner into your agent via the Brain tab of- [Agent Studio](#sec-056).+ [Agent Studio](#sec-057).## Examples@@ -25995,7 +26400,7 @@ curl -s https://three.ws/api/brain/chat```Stream one model's answer as SSE (the free default needs no auth; paid models need a-session or bearer token, see [Authentication](#sec-088)):+session or bearer token, see [Authentication](#sec-090)):```bashcurl -N -s -X POST https://three.ws/api/brain/chat \@@ -26038,15 +26443,15 @@ done; wait## Related-- [Agent Studio](#sec-056): the Brain tab uses this same backend-- [Agent System](#sec-057): how a chosen brain fits the agent model-- [Persona Hub](#sec-214): synthesizing the system prompt a brain runs-- [API reference](#sec-082) and [Authentication](#sec-088)+- [Agent Studio](#sec-057): the Brain tab uses this same backend+- [Agent System](#sec-059): how a chosen brain fits the agent model+- [Persona Hub](#sec-230): synthesizing the system prompt a brain runs+- [API reference](#sec-084) and [Authentication](#sec-090)- Pages: [/brain](https://three.ws/brain), [/agent-studio](https://three.ws/agent-studio)----<a id="sec-110"></a>+<a id="sec-112"></a>> **Source:** `docs/btn-pill-migration.md` · [↑ table of contents](#table-of-contents)@@ -26170,7 +26575,7 @@ These classes are defined across the codebase. Follow-up agents should replace t----<a id="sec-111"></a>+<a id="sec-113"></a>> **Source:** `docs/build.md` · [↑ table of contents](#table-of-contents)@@ -26333,7 +26738,7 @@ grep -l 'vite-plugin-pwa:register-sw' dist/widget.html dist/embed.html # expec----<a id="sec-112"></a>+<a id="sec-114"></a>> **Source:** `docs/capture.md` · [↑ table of contents](#table-of-contents)@@ -26427,14 +26832,14 @@ console.log(job.result_url, job.num_points); // coloured .ply + point count## Related-- [Splat Viewer](#sec-269) renders Gaussian-splat radiance fields, the photoreal cousin of point clouds.+- [Splat Viewer](#sec-288) renders Gaussian-splat radiance fields, the photoreal cousin of point clouds.- [/avatar-engines](https://three.ws/avatar-engines) covers the Geometric Context Transformer and related capture engines.-- [Forge](#sec-154) and [Image to 3D](#sec-165) for generating meshes from prompts and photos.+- [Forge](#sec-161) and [Image to 3D](#sec-174) for generating meshes from prompts and photos.- Pages: [/scene](https://three.ws/scene) (Scene Studio), [/create](https://three.ws/create).----<a id="sec-113"></a>+<a id="sec-115"></a>> **Source:** `docs/changelog.md` · [↑ table of contents](#table-of-contents)@@ -26766,7 +27171,134 @@ cd sdk && npm publish----<a id="sec-114"></a>+<a id="sec-116"></a>++> **Source:** `docs/character-library.md` · [↑ table of contents](#table-of-contents)++# Character Library: 106 rigged characters, ready to animate++The Character Library is a free, curated gallery of professionally rigged humanoid 3D characters. Every character ships as a web-ready GLB with a full skeleton, skin weights, and textures, so it drives the entire three.ws animation library (idle, walk, run, wave, dance, and the rest of the canonical clip set) out of the box via animation retargeting. No account, no payment, no upload step: browse, preview live, and send any character into a studio in one click.++Page: [/character-library](https://three.ws/character-library) · API: `GET /api/avatars/library`+Source: [`pages/character-library.html`](../pages/character-library.html) · [`src/character-library.js`](../src/character-library.js) · [`api/avatars/library.js`](../api/avatars/library.js)++> This page covers the character gallery and its API. For the motion clips these characters play, see [Animations](#sec-083). For the free prop counterpart to this library, see the [Object Library](#sec-212).++---++## What is in the library++106 professionally rigged Mixamo humanoid characters (Y Bot, X Bot, Warrok, Remy, Vanguard, zombies, knights, and more), staged as optimized GLBs on the R2 CDN. The manifest can also merge additional CC0 characters from other sources (for example Quaternius), so the API's `total` field is the authoritative count and can exceed 106.++Every entry is animation-ready: the GLB carries a skinned mesh, and the three.ws runtime retargets the canonical clip library onto it automatically (see [Animations](#sec-083) for how retargeting and the clip registry work). There is no per-character allowlist; any character in the library plays any clip.++## Using the gallery++Each card renders the character live in an auto-rotating `<model-viewer>` (with the pre-rendered thumbnail as the poster) and offers three one-click routes:++| Button | Destination | What you get |+|---|---|---|+| **Preview** | `/app#model=<glb-url>` | The full three.js [3D viewer](#sec-373) |+| **Use** | `/studio?model=<glb-url>` | [Widget Studio](#sec-377): configure and publish an embeddable widget of this character (see the [Embedding Guide](#sec-151)) |+| **Animate** | `/pose?src=<glb-url>&title=<name>` | [Animation Studio](#sec-082): pose, keyframe, and export motion on this character |++Gallery controls:++- **Search** filters by name; press `/` anywhere on the page to focus the search box.+- **Sort** by name (A to Z, Z to A) or by file size (largest or smallest first). File size is shown on every card.+- The library is small enough that the page fetches the whole manifest once and filters client-side, so search and sort are instant.+- Loading shows a skeleton grid; an empty library, an empty search result, and a fetch error each have their own designed state with a recovery action.++## API: `GET /api/avatars/library`++Public, no authentication, CORS-open to GET from web origins. The endpoint proxies a small manifest JSON from the R2 CDN (`avatars/library/manifest.json`) with an edge cache (`Cache-Control: public, s-maxage=300, stale-while-revalidate=3600`). The GLB and thumbnail bytes never pass through the API: every entry carries absolute CDN URLs the browser loads directly.++### Query parameters++| Parameter | Type | Default | Notes |+|---|---|---|---|+| `limit` | integer, 1 to 1000 | none | Opt-in pagination. Omit it to get the entire library in one response. Values are clamped into 1..1000. |+| `offset` | integer, >= 0 | 0 | Only meaningful together with `limit`. |++### Response shape++Without `limit`:++```json+{+ "avatars": [ { "...": "entry, see below" } ],+ "total": 107,+ "generated_at": "2026-07-21T13:39:15.447Z"+}+```++With `limit` (and optional `offset`), the response adds `offset` and `next_offset`. `next_offset` is `null` on the last page, and `total` is always the full library size, not the page size:++```json+{+ "avatars": [ "..." ],+ "total": 107,+ "offset": 0,+ "next_offset": 25,+ "generated_at": "2026-07-21T13:39:15.447Z"+}+```++Each entry in `avatars`:++| Field | Type | Meaning |+|---|---|---|+| `name` | string | URL-safe slug, stable identifier |+| `label` | string | Display name |+| `url` | string | Absolute CDN URL of the GLB |+| `thumb` | string (optional) | Absolute CDN URL of the PNG thumbnail; omitted when no thumbnail rendered |+| `bytes` | number | GLB file size |+| `skins` | number | Skinned mesh count in the GLB |+| `animations` | number | Animation clip count baked into the GLB itself (retargeted library clips come from the runtime, not the file) |+| `source` | string | Where the character came from, e.g. `"mixamo"` or `"quaternius"` |+| `license` | string | License tag for this entry, e.g. `"Mixamo"` or `"CC0"` (see Licensing below) |++Before the manifest is first uploaded, the endpoint returns `{ "avatars": [], "total": 0 }` rather than an error, so consumers feature-detect by emptiness.++### Example++```bash+curl -s 'https://three.ws/api/avatars/library?limit=2&offset=0'+```++Returns the first two characters plus `total`, `offset`, and `next_offset`, each entry with a directly loadable `url` (GLB) and `thumb` (PNG).++## Licensing++Every manifest entry carries a `license` field; read it per character rather than assuming one license for the whole library.++- **`"Mixamo"`**: the character is an Adobe Mixamo character, used under Adobe's Mixamo terms. The manifest records the tag only, it does not restate the terms; consult Adobe's Mixamo licensing FAQ for what those terms permit before redistributing the GLB outside three.ws.+- **`"CC0"`**: public domain. Free for any use, including commercial, with no attribution required.++Using any library character inside three.ws (previewing, animating, publishing a widget or embed) is free.++## How the library is staged (maintainers)++The gallery and API are read-only consumers of a manifest built by a local pipeline. The GLBs total several gigabytes, far too large for the deploy bundle, so all bytes live on the R2 CDN and only the manifest index is published:++1. `scripts/fetch-mixamo-avatars.mjs` downloads the source characters.+2. `scripts/convert-mixamo-avatars.mjs` converts them to web GLB.+3. `scripts/fetch-mixamo-avatar-thumbnails.mjs` stages the PNG thumbnails.+4. `scripts/build-mixamo-avatar-library.mjs` reads `public/avatars/mixamo/catalog.json`, merges the extra CC0 characters from `public/avatars/extra/characters.json`, and PUTs `avatars/library/manifest.json` to R2 (`--dry-run` prints without uploading).++R2 CORS is configured by `scripts/set-r2-cors.mjs` so browsers can GET the GLBs cross-origin.++## Related++- [Animations](#sec-083): the clip library every character drives, and how retargeting works.+- [Animation Studio](#sec-082): the `/pose` surface the Animate button opens.+- [Widget Studio](#sec-377) and the [Embedding Guide](#sec-151): turn a library character into a live embed on any site.+- [Object Library](#sec-212): the same free-library pattern for CC0 props and scene objects.+- [Marketplace](#sec-188): library characters are free; the marketplace is where priced avatars, agents, and skills are bought and sold.++---++<a id="sec-117"></a>> **Source:** `docs/character-studio.md` · [↑ table of contents](#table-of-contents)@@ -26971,8 +27503,36 @@ purchase or equip:echoes the authoritative profile back so the wardrobe, your local avatar, and every peer whocan see you all agree on your look — durable across logout and world switches.+### The public ledger: `/fits`++Every premium purchase settles USDC and splits revenue with the creator of the coin world the+fit belongs to, all of it recorded in the settled-sale ledger+(`api/_lib/cosmetics-economy.js`). That ledger has a public page at+[`/fits`](https://three.ws/fits) (`pages/fits.html` + `src/fits.js`, pure helpers in+`src/fits-lib.js`), so the economy is readable without entering a world:++| Section | Source | What it shows |+|---|---|---|+| Rarest fits | `GET /api/cosmetics/leaderboard` | Premium cosmetics ranked by how few wallets own them, rarity breaking ties. Each card deep-links to `/play?coin=<mint>`. |+| Top collectors | same call | Rarity-weighted flex score per account. Guest sessions are labelled as guests with a short tail so several stay distinguishable. |+| Top creators | same call | Real settled USDC earned, with a one-click breakdown per creator. |+| Latest sales | same call | Every settled sale, newest first. |+| Creator earnings lookup | `GET /api/cosmetics/earnings?creator=<wallet>` | Lifetime and 30-day totals, paid vs pending, and the split per cosmetic and per coin world for any wallet. No account required. |++Two rules the page holds to, both covered by `tests/fits-lib.test.js`:++- **Headline numbers are derived from the rows underneath them**, never fetched separately, so+ a KPI can never disagree with the list it summarizes. The volume tile is labelled as the+ sales window the API returned, not as an all-time total.+- **Sub-cent sales keep their precision.** Cosmetic prices run below a cent; collapsing them to+ `$0.00` would misreport what a creator is owed.++Coin mints on this page are runtime ledger values. Nothing hardcodes a mint.+Both panels are also reachable from the HUD (Shop / **My Fits** buttons,-`coincommunities-ui.js`), and now from two physical storefronts in the world itself:+`coincommunities-ui.js`), from the in-world flex panel (`src/game/cosmetics-flex.js`, which+links out to `/fits` for the full ledger), and from two physical storefronts in the world+itself:### The boutique — walking storefronts, not just a menu@@ -27013,7 +27573,173 @@ For cases that need more control than the studio provides, create your avatar in----<a id="sec-115"></a>+<a id="sec-118"></a>++> **Source:** `docs/chatgpt-3d-studio-gpt.md` · [↑ table of contents](#table-of-contents)++# The "three.ws 3D Studio" custom GPT: builder configuration++This is the canonical configuration for the **three.ws 3D Studio** custom GPT in the ChatGPT GPT Store. The action contract it calls is served from [public/.well-known/3d-studio-openapi.yaml](../public/.well-known/3d-studio-openapi.yaml) (live at `https://three.ws/.well-known/3d-studio-openapi.yaml`) and documented in [AR in ChatGPT](#sec-119). The GPT itself is configured by hand in the ChatGPT builder UI, so this file is the source of truth to paste from. If you change the GPT in the builder, mirror the change here in the same commit.++## Why this file exists++QA on 2026-07-29 found the GPT failing in two of the four suggested-prompt flows:++- "Make me a low-poly fox for my game" produced a DALL-E image, never called the action, and returned no model at all.+- "Create a dragon miniature" produced a DALL-E image plus two fabricated links (`three.ws/models/<id>.glb` and `three.ws/preview/<id>`). Neither route exists; both returned 404 when checked. Real responses carry an R2 `glbUrl` and a `three.ws/viewer?src=...` URL, never `/models/` or `/preview/` paths.+- "Create a 3D mascot" stalled on clarifying questions instead of generating.+- "Surprise me" worked end to end (action call, poll, real links, viewer loads).++Three root causes, all in builder configuration:++1. **Image Generation capability enabled.** With DALL-E available, the model sometimes satisfies "make me a fox" by painting a picture instead of calling the action. Style-section rules like "do not return .png" do not reliably stop it; only unchecking the capability does.+2. **The instruction "Always return GLB files links from https://three.ws".** Real GLB downloads live on `pub-*.r2.dev` CDN URLs, so this rule pushed the model to fabricate plausible three.ws-hosted links (`/models/...`, `/preview/...`) when it had skipped the action. The corrected instructions say the opposite: present URLs exactly as returned, and the R2 host is correct.+3. **Stale action schema.** The builder held an inline paste of an old spec revision without `arUrl`, `previewImageUrl`, `tier`, `etaSeconds`, or the title-carrying poll path, so the GPT could not offer AR links or show concept images while waiting.++## Builder settings++| Setting | Value |+|---|---|+| Name | three.ws 3D Studio |+| Description | Turn any idea into a real, downloadable 3D model. Describe it ("a low-poly fox", "a ceramic robot") and get a GLB you can open, spin, and download. Free. |+| Capabilities: Web Search | Off |+| Capabilities: Apps (Beta) | Off |+| Capabilities: Image Generation | **Off (load-bearing: with it on, the GPT paints images instead of calling the action)** |+| Capabilities: Code Interpreter & Data Analysis | Off |+| Recommended Model | None |+| Action | Import from URL: `https://three.ws/.well-known/3d-studio-openapi.yaml` (re-import after any spec change; never hand-edit the schema inline) |+| Action auth | None |+| Action privacy policy | `https://three.ws/legal/privacy.html` |+| Conversation starters | Make me a low-poly fox for my game / Sculpt a detailed dragon miniature for my tabletop campaign / Make a cute robot buddy I can put on my desk in AR / Surprise me with something cool in 3D |++Starter design rule: every starter must name ONE concrete subject so the GPT can generate immediately without clarifying questions ("Create a 3D mascot for my community" was dropped for stalling on questions), and at least one starter should surface the AR placement link. Alternates to rotate in: "Turn my initials into a chrome 3D logo", "Make a ceramic mug shaped like a sleepy cat", "Create a treasure chest prop for my indie game", "Make a crystal jellyfish I can spin in my browser".++## Instructions (paste verbatim into the builder)++```+You are three.ws 3D Studio. You turn a user's text description into a real,+downloadable 3D model (GLB) by calling the three.ws generation Actions. You+are a friendly, practical 3D-modeling assistant for hobbyists, students, game+makers, and designers.++THE ONE IRON RULE+- The ONLY way you produce a model is the generate3DModel action. Never use+ image generation, never present a picture as the result, and never show a+ URL that an action did not return in this conversation. The only image you+ may ever show is the previewImageUrl field from an action response. If you+ have no URL from an action, you have no model.++WHAT YOU DO+- When the user describes an object, character, mascot, prop, or creature,+ call generate3DModel immediately. For a single subject, do not ask+ clarifying questions first: pick tasteful defaults (style, colors, pose),+ state in one line what you chose, and generate. "Surprise me" means invent+ one concrete, fun subject and generate it right away.+- Rewrite vague requests into ONE concrete subject before calling. A good+ prompt names the subject, its style, and key colors: "a low-poly orange fox+ sitting down", "a small ceramic robot figurine with round eyes". Keep it to+ one subject. The generator models a single object best, not whole scenes.+- If the user already gives plenty of detail, pass it through largely as-is.+- If the user asks for several objects or a whole scene, say you will build it+ piece by piece, then generate the objects one at a time. If the list is+ longer than three items, confirm which ones they want first.+- Every generation produces a brand-new model; there is no in-place editing.+ When the user wants a change ("make it blue", "give it a hat"), fold the+ change into the previous prompt and call generate3DModel again with the+ revised prompt.+- Tier: omit the tier field for normal requests (standard). Use "high" only+ when the user asks for maximum detail, and warn it can take several+ minutes. Use "draft" when they want the fastest possible result.++HANDLING THE RESPONSE+- generate3DModel returns a "status".+ - status "done": the model is ready. Present THREE markdown links, clearly+ labeled:+ 1. Download (GLB): the "glbUrl" value.+ 2. Preview in your browser: the "viewerUrl" value.+ 3. See it in your room (AR, open on a phone): the "arUrl" value.+ Say they can open the viewer link to spin the model in 3D, and that the+ GLB works in Blender, Unity, Godot, three.js, and most 3D tools.+ - status "pending": generation is still running. On the first pending+ response, immediately give the user the "watchUrl" value as a markdown+ link labeled "Watch it being made live" - that three.ws page shows a+ real countdown and the concept art, and opens the finished model in the+ interactive viewer by itself. Also say roughly how long remains (the+ "etaSeconds" field counts down). If a pending response carries+ previewImageUrl, show it as a markdown image: it is the concept art the+ generator sculpts into 3D. Then call checkModelJob using the returned+ "poll" path verbatim (it already carries the job handle and title),+ waiting about etaSeconds between calls, and keep polling while the+ status stays "pending". If it is still pending after about 20 polls,+ stop, remind them the watch link updates itself, and tell them any short+ reply ("ok") makes you keep checking here too; on that reply, resume+ polling the same poll path without resubmitting the prompt.+ Never claim the model is finished until a response has status "done"+ with a glbUrl.+- Present glbUrl, viewerUrl, and arUrl exactly as returned. Never rewrite,+ shorten, or re-host them. The GLB download normally lives on a+ pub-*.r2.dev CDN URL, not on three.ws; that is correct.++WHEN THINGS GO WRONG+Generation is free, so a failed attempt never costs the user anything. Say so+when you retry.+- status "error" from checkModelJob, or a 502 from generate3DModel: the+ generator had a hiccup. Retry once automatically if the user clearly wants+ the model; if it fails again, tell them plainly and suggest trying again in+ a minute.+- A 503 means generation is temporarily unavailable. Do not retry in a loop;+ tell the user to try again a little later.+- A 429 from generate3DModel means the free hourly generation limit was hit.+ Apologize plainly and suggest trying again a little later. Do not imply a+ paid upgrade; there is not one here.+- A 429 from checkModelJob just means you polled too fast. Wait at least the+ "retry_after" seconds it returns, then continue polling. Do not tell the+ user anything failed.+- error "invalid_prompt": ask the user for a short, concrete description+ (3-1000 characters, one subject).+- error "prompt_rejected": the request was refused by the content-safety+ filter. Relay the returned "message" and steer the user toward an allowed+ idea. Do NOT reword the prompt to slip past the filter.++SAFETY (this GPT must suit ages 13-17)+- Only generate age-appropriate content. Refuse to help produce sexual or+ adult content, graphic gore, hateful or extremist symbols, or realistic+ weapons, explosives, or drug paraphernalia, even if asked indirectly or+ "for a game". Stylized fantasy props (a cartoon sword, a wizard's wand)+ are fine.+- If a request is disallowed, decline briefly and kindly and offer a wholesome+ alternative. Never explain how to bypass the filter.+- The generation endpoint enforces the same rules server-side; do not attempt+ to work around a "prompt_rejected" response.++STYLE+- Be concise and encouraging. Lead with the result (the links), then one line+ of guidance at most, e.g. an idea for a variant or a different style.+- You cannot rig, animate, texture-edit, or convert to other formats here; the+ free lane outputs a static GLB. If asked for those, say so honestly and+ point to https://three.ws, which offers rigging and higher-fidelity+ generation.+- Never bring up pricing or payment of any kind. This GPT is simply free.+```++## Known tweaks++- QA on a free account (2026-07-29) showed a pending reply printing "Concept preview:" with no image under it. If this recurs, edit the pending bullet in the instructions to: "If a pending response carries previewImageUrl, render it as a markdown image; if it does not, do not mention a concept preview at all."+- Free-tier ChatGPT shows third-party ads (observed: Meshy AI) directly beneath the GPT's replies. Not controllable from our side.+- Public-page byline requires the `three.ws` domain to be verified and selected in the owner's ChatGPT Builder profile (Settings, Builder profile, Verify new domain: add the `openai-domain-verification=dv-...` TXT record at Namecheap, host `@`). Until then the page shows "By community builder".++## Verifying a config change++Run the four suggested prompts in a fresh chat. Pass criteria:++1. Every flow calls `generate3DModel` on the first assistant turn (the action-call chip is visible in the ChatGPT UI). No flow asks a question before generating.+2. No flow produces a ChatGPT-generated image. The only image ever shown is a `previewImageUrl` from the action.+3. Every link in a "done" reply is either a `pub-*.r2.dev` GLB URL, a `three.ws/viewer?src=...` URL, or a `three.ws/api/ar?src=...` URL. Spot-check one of each in a browser.+4. A "pending" flow either resolves within the turn or resumes polling on the next user message without re-submitting the prompt.++---++<a id="sec-119"></a>> **Source:** `docs/chatgpt-ar.md` · [↑ table of contents](#table-of-contents)@@ -27050,13 +27776,13 @@ The same free lane ships into ChatGPT twice, because ChatGPT has two integration### 1. The ChatGPT app (Apps SDK / MCP connector)-The MCP connector at `https://three.ws/api/mcp-studio` (no authentication) exposes six free generation tools: `forge_free`, `text_to_avatar`, `mesh_forge`, `rig_mesh`, `forge_avatar`, and `refine_model`. Full server documentation: [3D Studio MCP](#sec-181).+The MCP connector at `https://three.ws/api/mcp-studio` (no authentication) exposes six free generation tools: `forge_free`, `text_to_avatar`, `mesh_forge`, `rig_mesh`, `forge_avatar`, and `refine_model`. Full server documentation: [3D Studio MCP](#sec-191).Every successful tool result carries `arUrl` in its `structuredContent`, and the inline 3D widget renders it as a **View in your space** button next to the rotatable model. When the result is a rigged avatar the response additionally carries `irlUrl` and the button becomes **Bring it to life**. Refined versions (`refine_model`) each carry their own `arUrl`, so any point in the version lineage can be placed in the room.### 2. The "three.ws 3D Studio" custom GPT (Actions)-Not every ChatGPT plan supports connectors, so the same lane also ships as a plain REST Actions surface for the custom GPT in the GPT Store:+Not every ChatGPT plan supports connectors, so the same lane also ships as a plain REST Actions surface for the custom GPT in the GPT Store. The GPT's builder settings and instruction text live in [chatgpt-3d-studio-gpt.md](#sec-118); the REST contract it calls:```bashcurl -s -X POST https://three.ws/api/3d/studio \@@ -27104,7 +27830,7 @@ The GPT's instructions tell it to present three links on every finished model, iResponses set `vary: user-agent` so CDN caching stays correct per device class. Bad input (non-https, non-GLB, missing `src`) returns a designed error page, never a crash.-The pure routing logic (`detectArTarget`, `buildSceneViewerUrl`, `planArLaunch`) lives dependency-free in [api/_lib/ar-launch.js](../api/_lib/ar-launch.js) and is covered by [tests/ar-export.test.js](../tests/ar-export.test.js). The deeper AR reference (WebXR sessions, USDZ pipeline details, optimization limits) is [docs/ar.md](#sec-085).+The pure routing logic (`detectArTarget`, `buildSceneViewerUrl`, `planArLaunch`) lives dependency-free in [api/_lib/ar-launch.js](../api/_lib/ar-launch.js) and is covered by [tests/ar-export.test.js](../tests/ar-export.test.js). The deeper AR reference (WebXR sessions, USDZ pipeline details, optimization limits) is [docs/ar.md](#sec-087).---@@ -27112,7 +27838,7 @@ The pure routing logic (`detectArTarget`, `buildSceneViewerUrl`, `planArLaunch`)AR on three.ws is not a prop viewer; it is how agents cross into physical space. When the generated model is a rigged avatar (an agent's body), the pipeline appends `kind=avatar` to the `arUrl`, and the launcher changes behavior:-- The launch page leads with a **Bring it to life** handoff into [`/irl?avatar=<glbUrl>`](/irl), where the avatar walks, animates, and talks with the user through the camera, standing in their real room. See [IRL](#sec-168).+- The launch page leads with a **Bring it to life** handoff into [`/irl?avatar=<glbUrl>`](/irl), where the avatar walks, animates, and talks with the user through the camera, standing in their real room. See [IRL](#sec-177).- Android is NOT blind-redirected into Scene Viewer, because that would hide the living path. It gets the launch page too, with static placement still one tap away.In ChatGPT this happens automatically: the avatar-producing tools (`text_to_avatar`, `rig_mesh`, `forge_avatar`) set the flag and return `irlUrl` alongside `arUrl`, and the inline widget swaps its button label accordingly.@@ -27135,7 +27861,7 @@ A place-in-your-room link is built to be forwarded. When it is pasted into a chaEverything above is public plumbing:- **Plain HTTP, free:** `POST /api/3d/generate` is the keyless agent-facing twin of the studio endpoint, same lane, same `arUrl`. Contract, states, and per-IP limits: [the free 3D API](#sec-001).-- **Any MCP client:** the connector at `/api/mcp-studio` works in Claude and every other MCP host, not just ChatGPT. The free, read-only `export_ar` tool also turns any existing public GLB into the full link set (`arLaunchUrl`, `sceneViewerUrl`, `viewerUrl`, and `irlUrl` for avatars) plus a [Spatial MCP](#sec-267) artifact.+- **Any MCP client:** the connector at `/api/mcp-studio` works in Claude and every other MCP host, not just ChatGPT. The free, read-only `export_ar` tool also turns any existing public GLB into the full link set (`arLaunchUrl`, `sceneViewerUrl`, `viewerUrl`, and `irlUrl` for avatars) plus a [Spatial MCP](#sec-286) artifact.- **By hand:** the `arUrl` format is stable. If you have a public GLB, you can construct `https://three.ws/api/ar?src=<encoded GLB>&title=<name>` yourself and it will route correctly on every device.The generation lane is operator-funded (NVIDIA NIM running Microsoft TRELLIS for text-to-3D), so the end user pays nothing and needs no account; real per-IP rate limits apply and are documented per endpoint.@@ -27160,14 +27886,14 @@ The generation lane is operator-funded (NVIDIA NIM running Microsoft TRELLIS for- [Your first prompt to 3D in ChatGPT](/tutorials/first-prompt-to-3d): the user-facing walkthrough of this whole flow- [Place your 3D model in AR](/tutorials/view-in-ar): the on-site AR tutorial-- [3D Studio MCP](#sec-181): the free MCP server behind the ChatGPT app+- [3D Studio MCP](#sec-191): the free MCP server behind the ChatGPT app- [The free 3D API](#sec-001): the keyless HTTP contract with `arUrl`-- [AR and WebXR reference](#sec-085): Quick Look, Scene Viewer, WebXR, and the USDZ pipeline in depth-- [IRL](#sec-168): the living-agent experience behind Bring it to life+- [AR and WebXR reference](#sec-087): Quick Look, Scene Viewer, WebXR, and the USDZ pipeline in depth+- [IRL](#sec-177): the living-agent experience behind Bring it to life----<a id="sec-116"></a>+<a id="sec-120"></a>> **Source:** `docs/circulation-engine.md` · [↑ table of contents](#table-of-contents)@@ -27270,7 +27996,7 @@ its own sake.The engine runs from the `pulse-tick` cron([api/cron/pulse-tick.js](../api/cron/pulse-tick.js)), which is fanned out every**minute** by the `economy-tick` dispatcher (see the-[economy heartbeat](#sec-141)) rather than scheduled on its own.+[economy heartbeat](#sec-148)) rather than scheduled on its own.Each tick grows the pool by up to `CIRCULATION_GROWTH_PER_TICK` agents and runs`CIRCULATION_ACTIONS_PER_TICK` everyday actions (plus any heavyweight action thatwins first refusal). The `pulse-tick` function is bounded to a 120-second@@ -27303,9 +28029,9 @@ loop as a payout.| Sink | What it holds ||---|---|| `circulation_actions` | One row per action the engine ran (kind, actors, signature, amount). |-| `agent_custody_events` | The canonical wallet ledger entry for every real spend/transfer (see [Money feed](#sec-190)). |+| `agent_custody_events` | The canonical wallet ledger entry for every real spend/transfer (see [Money feed](#sec-202)). || `pump_agent_trades` / `pump_agent_mints` | Trade and launch records, surfaced in the pump feed and `/launches`. |-| `skill_purchases` / `asset_purchases` | Marketplace settlement records (see [Marketplace](#sec-178)). |+| `skill_purchases` / `asset_purchases` | Marketplace settlement records (see [Marketplace](#sec-188)). |Real spends are written to `agent_custody_events`, which powers per-agentportfolio balances and the agent-to-agent economy volume dashboard (all-time and@@ -27340,15 +28066,15 @@ budget, so raise gradually and watch tick runtime and treasury balance.## Related-- [Money feed](#sec-190) — where circulation activity surfaces.-- [Autonomous x402 loop](#sec-090) — the separate treasury-paid loop+- [Money feed](#sec-202) — where circulation activity surfaces.+- [Autonomous x402 loop](#sec-092) — the separate treasury-paid loopthat buys polling intel from our own x402 endpoints.-- [Agent wallets](#sec-063) — the custodial key model every action uses.-- [Marketplace](#sec-178), [Coin launches](#sec-119).+- [Agent wallets](#sec-065) — the custodial key model every action uses.+- [Marketplace](#sec-188), [Coin launches](#sec-123).----<a id="sec-117"></a>+<a id="sec-121"></a>> **Source:** `docs/clash.md` · [↑ table of contents](#table-of-contents)@@ -27362,7 +28088,7 @@ API: `/api/clash/[action]` with `action` one of `state`, `enlist`, `enlist-verif## Why it exists-Coin communities already behave like tribes. Coin Clash gives that tribalism a game loop with real stakes of identity: you can only fight for a coin you actually hold, so rallying is a public act of conviction, and a community's showing on the board is a live measure of how many holders will show up. The token gate is a real balance read, not a client-side check, which makes it a working demonstration of the same "hold, do not just claim" primitive used across the platform (see [token-gated 3D embeds](#sec-276) and [hold to access](#sec-159)). Effort wins, not market cap: a battle is decided by summed taps, so a smaller, more active army can beat a larger, quieter one.+Coin communities already behave like tribes. Coin Clash gives that tribalism a game loop with real stakes of identity: you can only fight for a coin you actually hold, so rallying is a public act of conviction, and a community's showing on the board is a live measure of how many holders will show up. The token gate is a real balance read, not a client-side check, which makes it a working demonstration of the same "hold, do not just claim" primitive used across the platform (see [token-gated 3D embeds](#sec-296) and [hold to access](#sec-168)). Effort wins, not market cap: a battle is decided by summed taps, so a smaller, more active army can beat a larger, quieter one.## How it works@@ -27426,15 +28152,15 @@ The Coin Clash state and leaderboard are also exposed read-only over MCP through## Related-- [Token-gated 3D embeds](#sec-276): the same real on-chain balance gate, applied to embeds-- [Hold to access](#sec-159): the platform's broader hold-do-not-spend membership thesis-- [The social layer](#sec-263): platform-wide feed, follows, and leaderboards-- [MCP tools](#sec-184): the read-only Clash MCP server+- [Token-gated 3D embeds](#sec-296): the same real on-chain balance gate, applied to embeds+- [Hold to access](#sec-168): the platform's broader hold-do-not-spend membership thesis+- [The social layer](#sec-282): platform-wide feed, follows, and leaderboards+- [MCP tools](#sec-194): the read-only Clash MCP server- Pages: [/clash](https://three.ws/clash) · [/communities](https://three.ws/communities)----<a id="sec-118"></a>+<a id="sec-122"></a>> **Source:** `docs/clip-director.md` · [↑ table of contents](#table-of-contents)@@ -27517,14 +28243,14 @@ message instead of an error, so a card is only ever minted from a real closed ro## Related-- [Trader Card & the claim-your-wallet wedge](#sec-277)-- [Meta-Allocator: the ETF of degens](#sec-187)-- [The trading surfaces](#sec-281) · [The Arena](https://three.ws/arena)-- [Animations & gestures](#sec-081)+- [Trader Card & the claim-your-wallet wedge](#sec-297)+- [Meta-Allocator: the ETF of degens](#sec-198)+- [The trading surfaces](#sec-301) · [The Arena](https://three.ws/arena)+- [Animations & gestures](#sec-083)----<a id="sec-119"></a>+<a id="sec-123"></a>> **Source:** `docs/coin-launches.md` · [↑ table of contents](#table-of-contents)@@ -27558,12 +28284,12 @@ The user holds the keys; the platform never signs for them.The agent launcher signs and submits with the agent's **custodial** Solana keypairserver-side (`launch-agent`), through the protected execution path(`submitProtected()`). Spend caps are checked before signing (see-[Agent wallets](#sec-135)), and the mint is registered in+[Agent wallets](#sec-140)), and the mint is registered in`pump_agent_mints`. The `launcher-tick` cron (every minute) drives theautonomous launcher engine (`api/_lib/launcher-engine.js`), bounded byper-launch and daily SOL caps, an hourly ceiling, a cadence gate, and a circuitbreaker from its `launcher_config` row; a scope whose row is disabled stays-inert. The [circulation engine](#sec-116) also runs its own+inert. The [circulation engine](#sec-120) also runs its own`launch` action with separate hourly/daily caps.## What a launch carries@@ -27574,7 +28300,7 @@ inert. The [circulation engine](#sec-116) also runs its own| Quote mint | Resolved to the network-correct pairing (USDC mint or SOL-paired). || Dev buy | A small initial buy can accompany the create (the `LAUNCH_FLOOR` covers create + tiny dev buy + fees). || Buyback authority | A buyback basis-points configuration can be attached to the agent mint. |-| Mint mark | When `THREE_WS_MARK_ENFORCE` is on (the default; set `0`/`false` to disable), the mint address is vanity-ground to carry the three.ws mark (see [Mint mark](#sec-188), [Vanity protocol](#sec-005)). |+| Mint mark | When `THREE_WS_MARK_ENFORCE` is on (the default; set `0`/`false` to disable), the mint address is vanity-ground to carry the three.ws mark (see [Mint mark](#sec-199), [Vanity protocol](#sec-005)). |## Recording and surfacing@@ -27583,7 +28309,7 @@ inert. The [circulation engine](#sec-116) also runs its own| `pump_agent_mints` (mint + network keyed) | `/launches` feed, agent-profile launch history. || `pump_agent_trades` | Trade history for the mint. || `agent_custody_events` | The on-chain spend (create + dev buy). |-| Live ticker | `coin-buy` / `agent-deploy` events (see [Money feed](#sec-190)). |+| Live ticker | `coin-buy` / `agent-deploy` events (see [Money feed](#sec-202)). |The `launches`, `by-agent`, and `quote` actions on `api/pump/[action].js` readthese back for the directory and detail pages. Coin detail pages render a live@@ -27595,7 +28321,7 @@ The same dispatcher handles the full lifecycle beyond launch: `buy-prep` /`buy-confirm`, `sell-prep` / `sell-confirm`, `portfolio`, `balances`, and`withdraw-prep` / `withdraw-confirm`, plus strategy actions(`strategy-backtest`, `strategy-validate`, `strategy-close-all`) that back the-[sniper](#sec-090).+[sniper](#sec-092).## $THREE only@@ -27607,14 +28333,14 @@ hardcode or surface any other specific mint as a recommendation.## Related-- [Solana pump.fun signals](#sec-264) — reputation/intel from pump.fun activity.-- [Agent wallets](#sec-135) — custodial signing and spend caps.-- [Circulation engine](#sec-116) — autonomous launch cadence and caps.-- [Mint mark](#sec-188), [Vanity protocol](#sec-005).+- [Solana pump.fun signals](#sec-283) — reputation/intel from pump.fun activity.+- [Agent wallets](#sec-140) — custodial signing and spend caps.+- [Circulation engine](#sec-120) — autonomous launch cadence and caps.+- [Mint mark](#sec-199), [Vanity protocol](#sec-005).----<a id="sec-120"></a>+<a id="sec-124"></a>> **Source:** `docs/coin-pages.md` · [↑ table of contents](#table-of-contents)@@ -27705,10 +28431,17 @@ The detail endpoint ([`api/coin/detail.js`](../api/coin/detail.js)) requestsCoinGecko's community and developer blocks and slims the multi-hundred-KBpayload to exactly these fields; all-zero developer/community blocks (coinswith no tracked repo or socials) collapse to `null` so the page hides the-whole section rather than render a wall of zeros.+whole section rather than render a wall of zeros. A single follower count of+exactly 0 is treated the same way: it means the channel isn't tracked, not that+it's empty (Solana's subreddit has ~170k members and still reports 0), so the+stat is omitted rather than stated falsely. Developer counters keep their+zeros — "0 commits in 4 weeks" is a real reading about a real repo.Unknown ids, upstream outages, loading, and empty news/markets all have-designed states — the page never renders a blank void.+designed states — the page never renders a blank void. When a datapoint is+answered by a backup provider, the page footer names it ("Served from+CoinPaprika") so a missing field reads as *degraded right now* rather than+*this coin has no FDV*.## Data sources & failover@@ -27729,10 +28462,37 @@ through the shared [`failover-fetch`](../src/shared/failover-fetch.js) primitive`/exchanges` fail over CoinGecko → DefiLlama (keyed by the same CoinGecko id),then to live exchange tickers (Kraken → Coinbase → Bitfinex) for the mappedmajors (BTC, ETH, SOL).+- **Coin profile** (`/api/coin/detail`) — CoinGecko `/coins/{id}` → CoinPaprika+ ([`api/_lib/coin-fallbacks.js`](../api/_lib/coin-fallbacks.js)). CoinPaprika+ uses its own `<symbol>-<name-slug>` ids, so the module resolves the CoinGecko+ id in two stages and caches the result for a week. First an exact id-slug or+ name-slug match (`solana` → `sol-solana`), which covers a little over half the+ top 50. The rest miss because the two catalogues list the same asset under+ different names — one by ticker, the other by product name, or one with a+ disambiguating suffix. For those, identity is **proven, not guessed**:+ DefiLlama supplies the authoritative+ symbol and price for the requested CoinGecko id, and a same-symbol candidate is+ accepted only when its own price agrees within 2%. Two different coins sharing+ a ticker and a price to within 2% is vanishingly unlikely, so agreement is+ evidence; a name heuristic would only be a hunch, and serving a *different*+ coin's market cap is worse than serving an error. Fields this source doesn't+ carry (FDV, 24h high/low, developer stats, per-chain contract addresses) come+ back `null` and the page hides those sections. Circulating supply isn't+ published either, but market cap ÷ price recovers it exactly. The lookup by+ Solana mint (`?contract=`) has no fallback: CoinPaprika is addressed by coin+ id, not by mint.+- **Exchange listings** (`/api/coin/tickers`) — CoinGecko `/coins/{id}/tickers`+ → CoinPaprika `/coins/{id}/markets`. Derivatives venues are filtered out (the+ CoinGecko endpoint it stands in for is spot-only, and perps would otherwise+ head the table by volume). Spread and ±2% order-book depth don't exist in this+ feed, so the client drops those three columns rather than render a wall of+ em-dashes.- **Price chart** (`/api/coin/ohlc`) — CoinGecko `market_chart`, backed up for- BTC/ETH/SOL by exchange candles (Kraken OHLC → Coinbase Exchange), so the- headline charts stay live through a CoinGecko outage. Long-tail coins remain- CoinGecko-only. A 404 (unknown coin) never falls back: that is an answer.+ BTC/ETH/SOL by exchange candles (Kraken OHLC → Coinbase Exchange) — real trade+ prints, so they lead — and for **every other coin** by DefiLlama's coins+ oracle, which is addressed as `coingecko:<id>` and therefore needs no id+ mapping at all. The long tail keeps its chart through a CoinGecko outage+ instead of blanking. A 404 (unknown coin) never falls back: that is an answer.- **Derivatives table** (`/api/coin/derivatives`) — CoinGecko's cross-venue perpfeed, falling back to Hyperliquid's keyless info API([`api/_lib/hyperliquid.js`](../api/_lib/hyperliquid.js)): one venue instead of@@ -27757,9 +28517,31 @@ Every fallback is free and keyless (Binance, Bybit and OKX are excluded — theygeo-block US datacenter IPs, so from Cloud Run they would be permanently deadrungs).+### Budgeting the CoinPaprika rungs++**CoinPaprika's free tier allows 60 requests per hour** (25k/month) and returns+`402 payment_required` with a one-hour block once that is spent. A fallback is+hot exactly when CoinGecko is throttling, which is the worst possible moment to+burn the only other profile source — so the per-coin rungs are budgeted rather+than called per request:++- **Normalized payloads are cached in the shared cache for 120s.** One round-trip+ serves the whole fleet for the window, so 500 visitors to `/coin/solana` during+ an outage cost one request, not 500. This is what makes the budget survivable.+- **Concurrent misses single-flight.** A cold cache under load resolves to one+ upstream call, not one per in-flight request.+- **The id mapping is cached for a week**, so a coin costs its resolution once.+- **Paging is served from the cached response** — CoinPaprika returns every market+ in one payload, so "Load more exchanges" spends nothing.+- **A 402/429 benches the source for an hour.** A spent budget then costs zero+ further requests instead of one wasted round-trip per request until it resets.++DefiLlama carries no comparable limit and is addressed by CoinGecko id, which is+why it — not CoinPaprika — takes the high-volume chart job.+## The market tools-Four more surfaces extend Markets, all sharing the same design system+Five more surfaces extend Markets, all sharing the same design system([`src/coin-pages.css`](../src/coin-pages.css)) and real, key-free data. Everyone cross-links back into the markets table and the coin detail pages.@@ -27789,6 +28571,48 @@ hidden. Fees are read straight from the chain — `/api/coin/gas` callseach tier with the live ETH price (CoinGecko → DefiLlama failover). Nothird-party gas API, no key.+### `/screener`: the Token Screener++A live filtering workbench over the **top 250 coins by market cap**. The page+loads the whole set once (`/api/coin/markets?page=1&per_page=250`, the same+cached endpoint behind the markets table, so no new endpoint), then every+keystroke, filter change, and sort runs instantly in the browser with no+further network traffic.++The filter controls, all composable (a coin must pass every active one):++- **Search**: a debounced (200 ms) substring match against name and symbol.+- **Direction**: an All / Gainers / Losers segmented control. Gainers keeps+ only coins whose 24h change is above zero, Losers only those below; a coin+ flat at exactly 0 matches neither.+- **Min market cap**: Any, $10M+, $100M+, $1B+, $10B+, $100B+.+- **Min 24h volume**: Any, $1M+, $10M+, $100M+, $1B+.+- **Reset** restores every control and the default sort in one click (the+ zero-results empty state offers the same reset inline).++The results table reuses the shared `cv-table` pattern from the markets index:+rank, coin (icon, name, symbol), price, 24h %, 7d %, market cap, and 24h+volume. **Every column sorts**: click a header, or focus it and press+Enter/Space (headers are keyboard-reachable and announce `aria-sort`). The+first activation sorts name and rank ascending and every numeric column+descending; activating the already-active column flips the direction. Rows+link to their [`/coin/:id`](#coinid--coin-detail) detail page, and clicking+anywhere on a row navigates. A live match counter ("N of 250 coins",+`aria-live`) and an "Updated HH:MM:SS" stamp keep the state legible, and+lower-priority columns collapse at narrow widths while the coin column stays+readable.++Every state is designed: a 14-row skeleton while the single fetch is in+flight, a plain-language error state when the markets feed is unavailable,+and a zero-match empty state that suggests widening the floors and offers the+one-click reset.++Files: [`pages/screener.html`](../pages/screener.html) (shell, controls, SEO),+[`src/screener.js`](../src/screener.js) (state, filtering, sorting,+rendering), [`src/screener.css`](../src/screener.css), with shared formatters+from [`src/shared/coin-format.js`](../src/shared/coin-format.js) and the table+pattern from [`src/coins-index.js`](../src/coins-index.js).+### `/compare` — side-by-side comparisonUp to four coins head to head: an **overlay chart** of normalized price@@ -27804,9 +28628,10 @@ highlighted. Add coins with the search type-ahead; the selection is mirrored toEight further tools round out the suite, same design system, same "real key-freedata" rule:-- **`/screener`** — filter the top 250 coins by search, gainers/losers, minimum+- **`/screener`**: filter the top 250 coins by search, gainers/losers, minimummarket cap, and minimum 24h volume; every column sorts. Reuses- `/api/coin/markets` (no new endpoint).+ `/api/coin/markets` (no new endpoint). Documented in full in+ [its own section above](#screener-the-token-screener).- **`/categories`** — every crypto sector ranked by market cap with 24h change,volume, and the top coins in each. New `/api/coin/categories` (CoinGecko`/coins/categories`). Each row opens a [category detail@@ -28079,7 +28904,7 @@ server mirrors each (including the dynamic `/coin/:id` path). The pre-existing----<a id="sec-121"></a>+<a id="sec-125"></a>> **Source:** `docs/coinmarketcap-article-play.md` · [↑ table of contents](#table-of-contents)@@ -28225,7 +29050,7 @@ The chart has always told you *what* a coin is doing. /play lets you go stand wh----<a id="sec-122"></a>+<a id="sec-126"></a>> **Source:** `docs/coinmarketcap-article.md` · [↑ table of contents](#table-of-contents)@@ -28428,7 +29253,7 @@ If you've been waiting for the moment AI and crypto stop talking past each other----<a id="sec-123"></a>+<a id="sec-127"></a>> **Source:** `docs/compose.md` · [↑ table of contents](#table-of-contents)@@ -28504,15 +29329,15 @@ curl -X PATCH 'https://three.ws/api/avatars/<avatarId>' \## Related-- [Avatar Studio](#sec-097): build the avatar you dress here.-- [Animation Studio](#sec-080): pose and animate the dressed avatar.-- [Scene Studio](#sec-251): the full three.js editor for heavier scene authoring.-- [Restyle Studio](#sec-247): re-skin the forged props before attaching them.+- [Avatar Studio](#sec-099): build the avatar you dress here.+- [Animation Studio](#sec-082): pose and animate the dressed avatar.+- [Scene Studio](#sec-269): the full three.js editor for heavier scene authoring.+- [Restyle Studio](#sec-265): re-skin the forged props before attaching them.- [/forge](https://three.ws/forge): the text-to-3D generator behind the prompt box.----<a id="sec-124"></a>+<a id="sec-128"></a>> **Source:** `docs/concierge.md` · [↑ table of contents](#table-of-contents)@@ -28621,12 +29446,12 @@ Runnable examples ship with the SDK ([concierge-sdk/examples/](https://github.co## Related surfaces- [/walk](/walk): the walking page companion the avatar engine grew from-- [Share and embed](#sec-255): every other way to put a three.ws creation on your site-- [MCP](#sec-184): the full catalog of three.ws MCP servers, including this one+- [Share and embed](#sec-273): every other way to put a three.ws creation on your site+- [MCP](#sec-194): the full catalog of three.ws MCP servers, including this one----<a id="sec-125"></a>+<a id="sec-129"></a>> **Source:** `docs/configuration.md` · [↑ table of contents](#table-of-contents)@@ -28682,7 +29507,7 @@ After setting this, provision the schema:npm run db:bootstrap```-This runs all four provisioning steps (core schema + indexer + delegations + migrations) and is idempotent — safe to re-run. Do not apply `api/_lib/schema.sql` alone: the base schema does not create the migration-defined tables and leaves a half-provisioned database (see [deployment.md](#sec-138)).+This runs all four provisioning steps (core schema + indexer + delegations + migrations) and is idempotent — safe to re-run. Do not apply `api/_lib/schema.sql` alone: the base schema does not create the migration-defined tables and leaves a half-provisioned database (see [deployment.md](#sec-144)).#### `JWT_SECRET`**Required.** Long random secret used for two purposes: signing session JWTs and (via HKDF) deriving the AES-256-GCM key that encrypts agent wallet private keys.@@ -29180,7 +30005,7 @@ Before going live, verify the following:----<a id="sec-126"></a>+<a id="sec-130"></a>> **Source:** `docs/content/use-cases/README.md` · [↑ table of contents](#table-of-contents)@@ -29192,11 +30017,11 @@ Five "here's how three.ws solves *your* problem" narratives, one per audience. E| Audience | File | The job-to-be-done || --- | --- | --- |-| Indie creator | [indie-creator.md](#sec-131) | Turn a selfie or a text prompt into a 3D agent and embed it anywhere. |-| Game studio | [game-studio.md](#sec-130) | Drop a GLB pipeline, an LLM-driven NPC runtime, and a live multiplayer world into a game. |-| AI-agent developer | [ai-agent-developer.md](#sec-127) | Give an agent a body, paid endpoints (x402), an MCP/A2A interface, and on-chain identity. |-| Brand / marketer | [brand-marketer.md](#sec-128) | Put an embeddable, verifiable talking agent on a site, distributed through cloud marketplaces. |-| Crypto community | [crypto-community.md](#sec-129) | Give a token community a live 3D world, an agent economy, and on-chain reputation. |+| Indie creator | [indie-creator.md](#sec-135) | Turn a selfie or a text prompt into a 3D agent and embed it anywhere. |+| Game studio | [game-studio.md](#sec-134) | Drop a GLB pipeline, an LLM-driven NPC runtime, and a live multiplayer world into a game. |+| AI-agent developer | [ai-agent-developer.md](#sec-131) | Give an agent a body, paid endpoints (x402), an MCP/A2A interface, and on-chain identity. |+| Brand / marketer | [brand-marketer.md](#sec-132) | Put an embeddable, verifiable talking agent on a site, distributed through cloud marketplaces. |+| Crypto community | [crypto-community.md](#sec-133) | Give a token community a live 3D world, an agent economy, and on-chain reputation. |## How to read these (the honesty frame)@@ -29225,7 +30050,7 @@ Every scenario on these pages is an **example workflow** — clearly labeled "Im----<a id="sec-127"></a>+<a id="sec-131"></a>> **Source:** `docs/content/use-cases/ai-agent-developer.md` · [↑ table of contents](#table-of-contents)@@ -29245,8 +30070,8 @@ A headless agent is a black box. There's no standard way for another agent to diFour real surfaces give your agent a body, an interface, a wallet, and an identity:-1. **MCP server** — [`@three-ws/mcp-server`](#sec-184) exposes three.ws tools over MCP (JSON-RPC 2.0 over HTTP) so Claude Desktop, Cursor, Claude Code, or any MCP host can drive an avatar and its tools programmatically.-2. **x402 paid endpoints** — [native x402](#sec-366) paid endpoints on Base, BSC, and Solana let agents pay each other in USDC for API calls, asset downloads, and skill royalties. Discover and transact via the [bazaar](https://three.ws/x402); **pay-by-name** resolves `@username` / `*.sol` to a recipient so the payer verifies a human-readable name before signing.+1. **MCP server** — [`@three-ws/mcp-server`](#sec-194) exposes three.ws tools over MCP (JSON-RPC 2.0 over HTTP) so Claude Desktop, Cursor, Claude Code, or any MCP host can drive an avatar and its tools programmatically.+2. **x402 paid endpoints** — [native x402](#sec-386) paid endpoints on Base, BSC, and Solana let agents pay each other in USDC for API calls, asset downloads, and skill royalties. Discover and transact via the [bazaar](https://three.ws/x402); **pay-by-name** resolves `@username` / `*.sol` to a recipient so the payer verifies a human-readable name before signing.3. **A2A — agent-to-agent protocol** — an [A2A client + server, MCP bridge, DID resolution, and spending ledger](../README.md#a2a--agent-to-agent-protocol) so agents transact autonomously through delegated signer wallets and EIP-7710 permissions.4. **On-chain identity** — register the agent as an [ERC-8004 token on any EVM chain or a Metaplex Core asset on Solana](../README.md#on-chain-identity-erc-8004--metaplex-core). Each agent gets a stable ID, an owner wallet, a delegated signer, an IPFS-pinned manifest, and a signed action log. SDKs live in [`sdk/`](../sdk) (`@three-ws/sdk`), with EVM payments in `agent-payments-sdk/` and Solana in `solana-agent-sdk/`.@@ -29254,8 +30079,8 @@ Four real surfaces give your agent a body, an interface, a wallet, and an identi> **Imagine a developer, "Vega," who built a market-intelligence agent** and wants it to (a) be callable by other agents, (b) charge for premium queries, and (c) have an identity its callers can trust. Here's the path they'd take.-1. Vega wires the [`@three-ws/mcp-server`](#sec-184) into their MCP host config (`npx -y @three-ws/mcp-server`) so their agent's tools are reachable over MCP.-2. They expose the premium "deep snapshot" query as an [x402 paid endpoint](#sec-366): callers hit it, receive a `402` with a price manifest, pay USDC on Base (or Solana), and retry to get the data. The endpoint advertises a `recipient_name` so payers see a readable identity before signing.+1. Vega wires the [`@three-ws/mcp-server`](#sec-194) into their MCP host config (`npx -y @three-ws/mcp-server`) so their agent's tools are reachable over MCP.+2. They expose the premium "deep snapshot" query as an [x402 paid endpoint](#sec-386): callers hit it, receive a `402` with a price manifest, pay USDC on Base (or Solana), and retry to get the data. The endpoint advertises a `recipient_name` so payers see a readable identity before signing.3. They register the agent on-chain with the SDK in [`sdk/`](../sdk) — ERC-8004 on an EVM chain or a Metaplex Core asset on Solana — giving it a stable ID, a delegated signer wallet, and a signed action log. Its [on-chain passport](https://three.ws/a/sol/EXAMPLE_ASSET) renders at `/a/[chain]/[id]`.4. Another agent discovers Vega's service in the [bazaar](https://three.ws/x402), pays via x402, and consumes it over A2A — agents paying agents, settled in USDC, with both identities verifiable on-chain.5. **Deliverable:** an embodied, MCP-callable agent with a paid endpoint and a forgery-proof on-chain identity — a real economic actor other agents can find, trust, and pay.@@ -29266,14 +30091,14 @@ A standards-based interface (MCP + A2A), a working USDC payment rail (x402 on Ba## Next step / CTA-- Start: [MCP setup](#sec-184) · [x402 docs](#sec-366) · [SDK docs](#sec-252) · register via [Register On-Chain](#sec-319).+- Start: [MCP setup](#sec-194) · [x402 docs](#sec-386) · [SDK docs](#sec-270) · register via [Register On-Chain](#sec-339).- Browse: the [x402 bazaar](https://three.ws/x402) and [MCP Registry listing](https://registry.modelcontextprotocol.io/?q=three.ws).- **Social spotlight angle (G03):** "Your headless agent → MCP-callable, x402-payable, and on-chain in an afternoon."- `[REAL CASE STUDY — fill on consent: a developer whose agent earned or paid via x402 in production.]`----<a id="sec-128"></a>+<a id="sec-132"></a>> **Source:** `docs/content/use-cases/brand-marketer.md` · [↑ table of contents](#table-of-contents)@@ -29295,7 +30120,7 @@ Four real capabilities cover embodiment, reach, and trust:1. **Embeddable talking agent widget** — the [`<agent-3d>` web component](../README.md#web-component--embedding) and the [talking-agent widget](https://three.ws/studio) put a conversational 3D brand character on any page with one snippet. Pin it as a floating bubble (`mode="floating"`) so it persists as visitors scroll. Open Graph + oEmbed mean shared links get rich previews.2. **On-chain verifiable identity** — register the brand agent as an [ERC-8004 token or Metaplex Core asset](../README.md#on-chain-identity-erc-8004--metaplex-core) with a stable ID, owner wallet, and signed action log. Its [passport](https://three.ws/a/sol/EXAMPLE_ASSET) is a public proof that *this* is the official agent. Bind a [`*.threews.sol` name](../README.md#sns--threewssol-subdomains) so every surface shows a human-readable identity instead of a raw wallet.-3. **Cloud marketplace distribution** — three.ws is an **AWS Partner** with an **AWS Marketplace SaaS listing** (in review; see [docs/aws-marketplace.md](#sec-103) and [three.ws/aws](https://three.ws/aws)) and is **live on Alibaba Cloud Marketplace**. That's a procurement path for enterprise buyers — a marketplace listing, not a cloud-vendor endorsement.+3. **Cloud marketplace distribution** — three.ws is an **AWS Partner** with an **AWS Marketplace SaaS listing** (in review; see [docs/aws-marketplace.md](#sec-105) and [three.ws/aws](https://three.ws/aws)) and is **live on Alibaba Cloud Marketplace**. That's a procurement path for enterprise buyers — a marketplace listing, not a cloud-vendor endorsement.4. **IBM watsonx Granite demos** — the [`/ibm/*` showcase](https://three.ws/ibm) demonstrates brand-relevant AI surfaces (semantic agent maps, forecasting, a Guardian governance "trust layer") **built on IBM watsonx.ai** running IBM Granite. three.ws is an IBM Business Partner; the public `/ibm` demos are independent developer tools, **not** official IBM products or endorsements.## Example workflow (hypothetical)@@ -29315,7 +30140,7 @@ Four real capabilities cover embodiment, reach, and trust:width="340px" height="440px"></agent-3d>```-3. She [registers the agent on-chain](#sec-319) (Metaplex Core on Solana), binds `brand.threews.sol`, and links the public [passport](https://three.ws/a/sol/EXAMPLE_ASSET) from the site footer as a "verified official agent" badge — so look-alikes can't credibly impersonate it.+3. She [registers the agent on-chain](#sec-339) (Metaplex Core on Solana), binds `brand.threews.sol`, and links the public [passport](https://three.ws/a/sol/EXAMPLE_ASSET) from the site footer as a "verified official agent" badge — so look-alikes can't credibly impersonate it.4. For enterprise procurement, she points buyers at the [AWS Marketplace listing](https://three.ws/aws) (a listing, not an endorsement).5. **Deliverable:** a premium, on-brand talking agent on every page, provably the official one via its on-chain passport, with an enterprise procurement path.@@ -29325,14 +30150,14 @@ A conversational 3D brand presence that's easy to embed and share, plus a public## Next step / CTA-- Start: [Widget Studio](https://three.ws/studio) → [Register On-Chain](#sec-319) → claim a name at [`/threews/claim`](https://three.ws/threews/claim).-- Enterprise: [AWS Marketplace listing](#sec-103) · [Alibaba Cloud listing](https://marketplace.alibabacloud.com/products/56724001/sgcmfw00036800.html) · explore Granite on watsonx.ai at [/ibm](https://three.ws/ibm).+- Start: [Widget Studio](https://three.ws/studio) → [Register On-Chain](#sec-339) → claim a name at [`/threews/claim`](https://three.ws/threews/claim).+- Enterprise: [AWS Marketplace listing](#sec-105) · [Alibaba Cloud listing](https://marketplace.alibabacloud.com/products/56724001/sgcmfw00036800.html) · explore Granite on watsonx.ai at [/ibm](https://three.ws/ibm).- **Social spotlight angle (G03):** "A talking brand agent you can *prove* is official — embedded everywhere, verifiable on-chain."- `[REAL CASE STUDY — fill on consent: a brand that deployed a verified on-site agent and what it changed.]`----<a id="sec-129"></a>+<a id="sec-133"></a>> **Source:** `docs/content/use-cases/crypto-community.md` · [↑ table of contents](#table-of-contents)@@ -29353,7 +30178,7 @@ A token's community lives in scattered chat apps and a price chart. There's no sThree real surfaces turn a token into a living world with its own economy:1. **Coin Communities — a live 3D world per token** — [`/communities`](https://three.ws/communities) and [`/play`](https://three.ws/play) give every Solana token its own shared 3D world. Holders who pick the same world land **together**: peer avatars, chat, emotes, voxel building, and a live market-cap screen. The [`$THREE` home town](https://three.ws/play) is the flagship world.-2. **An agent economy — agents paying agents** — inside the `$THREE` home town, autonomous agents transact **on-chain via x402** (agents paying each other in USDC for services), demonstrating a real agent-exchange economy, not a simulation. This builds on the platform's [native x402 rails](#sec-366) (Base, BSC, Solana).+2. **An agent economy — agents paying agents** — inside the `$THREE` home town, autonomous agents transact **on-chain via x402** (agents paying each other in USDC for services), demonstrating a real agent-exchange economy, not a simulation. This builds on the platform's [native x402 rails](#sec-386) (Base, BSC, Solana).3. **On-chain reputation & identity** — agents and contributions carry [ERC-8004 / Metaplex Core identity](../README.md#on-chain-identity-erc-8004--metaplex-core) with signed action logs and a [reputation registry](https://three.ws/reputation), plus a pump.fun-native launch/visualize toolset at [`/pumpfun`](https://three.ws/pumpfun) and [`/pump-visualizer`](https://three.ws/pump-visualizer).## Example workflow (hypothetical)@@ -29362,7 +30187,7 @@ Three real surfaces turn a token into a living world with its own economy:1. A community lead opens [`/communities`](https://three.ws/communities), finds the `$THREE` world, and shares the direct link. Holders open it and land in the same [3D `$THREE` home town](https://three.ws/play) — they see each other's avatars, chat, drop emotes, and build with voxels while a live market-cap screen ticks in-world. (`$THREE` CA: `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`.)2. In the home town, holders watch the resident agents pay each other on-chain via x402 — a working agent-exchange where one agent buys a service from another in USDC, settled on Solana — a concrete demo of the agent economy the community is part of.-3. Active contributors register agents with [on-chain identity](#sec-319), accruing a signed action history and a [reputation](https://three.ws/reputation) score that can't be forged — a durable signal of who actually showed up.+3. Active contributors register agents with [on-chain identity](#sec-339), accruing a signed action history and a [reputation](https://three.ws/reputation) score that can't be forged — a durable signal of who actually showed up.4. The community uses [`/pump-visualizer`](https://three.ws/pump-visualizer) to surface live `$THREE` activity inside the world, tying market events to the shared space.5. **Deliverable:** a persistent, multiplayer `$THREE` world where holders gather, a live agent economy they can watch settle on-chain, and an on-chain reputation layer that rewards real participation.@@ -29373,13 +30198,13 @@ A shared 3D home for the token's holders, a real (not mocked) on-chain agent-exc## Next step / CTA- Start: [`/communities`](https://three.ws/communities) → the [`$THREE` home town](https://three.ws/play) → [`/pumpfun`](https://three.ws/pumpfun) and [`/pump-visualizer`](https://three.ws/pump-visualizer).-- Build: [x402 docs](#sec-366) for the agent-economy rails · [Register On-Chain](#sec-319) for reputation.+- Build: [x402 docs](#sec-386) for the agent-economy rails · [Register On-Chain](#sec-339) for reputation.- **Social spotlight angle (G03):** "Watch two agents pay each other on-chain inside a live 3D `$THREE` town — your community's home."- `[REAL CASE STUDY — fill on consent: a community that gathered in its 3D world and what changed for engagement.]`----<a id="sec-130"></a>+<a id="sec-134"></a>> **Source:** `docs/content/use-cases/game-studio.md` · [↑ table of contents](#table-of-contents)@@ -29420,13 +30245,13 @@ A character that renders with production-grade glTF handling, converses through## Next step / CTA- Start: [`/app`](https://three.ws/app) to render a GLB, then [`/walk`](https://three.ws/walk) for the shared world. The Colyseus server lives in `multiplayer/`.-- Learn: [Write a Custom Skill](#sec-294) · [Agent System docs](#sec-057) · [Skill spec](../specs/SKILL_SPEC.md).+- Learn: [Write a Custom Skill](#sec-314) · [Agent System docs](#sec-059) · [Skill spec](../specs/SKILL_SPEC.md).- **Social spotlight angle (G03):** "An NPC that emotes and hands out quests through a real tool-loop — plus a shared world players walk into together."- `[REAL CASE STUDY — fill on consent: a studio that shipped a three.ws-powered NPC or multiplayer hub.]`----<a id="sec-131"></a>+<a id="sec-135"></a>> **Source:** `docs/content/use-cases/indie-creator.md` · [↑ table of contents](#table-of-contents)@@ -29480,13 +30305,13 @@ A real, embedded, conversational 3D avatar that loads in any modern browser. The## Next step / CTA- Start: [`/scan`](https://three.ws/scan) (selfie) or `/forge` (text) → [Embed Editor](https://three.ws/embed).-- Learn: [Build Your First Agent](#sec-300) · [Embed on Your Website](#sec-298).+- Learn: [Build Your First Agent](#sec-320) · [Embed on Your Website](#sec-318).- **Social spotlight angle (G03):** "From one selfie to a talking 3D you, embedded in your bio — no Blender."- `[REAL CASE STUDY — fill on consent: an indie creator who shipped an embedded agent and the response it got.]`----<a id="sec-132"></a>+<a id="sec-136"></a>> **Source:** `docs/contributing.md` · [↑ table of contents](#table-of-contents)@@ -29561,7 +30386,7 @@ npm run devMost features work without the optional services. The app degrades gracefully, so basic 3D viewer work, skill development, and UI changes don't require any backend credentials.-For full backend setup — R2 storage, environment variables, and how the app is deployed — see the [Configuration Reference](#sec-125) and the [Deployment & Self-Hosting](#sec-138) guide.+For full backend setup — R2 storage, environment variables, and how the app is deployed — see the [Configuration Reference](#sec-129) and the [Deployment & Self-Hosting](#sec-144) guide.---@@ -29595,7 +30420,7 @@ src/└── components/ — vhtml JSX components (string-based, no virtual DOM)```-See the [Architecture Overview](#sec-167) for a deeper understanding of how these pieces connect.+See the [Architecture Overview](#sec-176) for a deeper understanding of how these pieces connect.---@@ -29763,7 +30588,7 @@ Skills are the best way to extend three.ws without touching core code. A skill i1. **Use the template.** Copy `examples/skills/solana-wallet/` as your starting point — its `manifest.json`, `tools.json`, `handlers.js`, and `SKILL.md` demonstrate the minimal structure a skill needs.-2. **Build your skill.** See the [Skills documentation](#sec-259) for the full format, lifecycle hooks, and message API.+2. **Build your skill.** See the [Skills documentation](#sec-278) for the full format, lifecycle hooks, and message API.3. **Host it.** GitHub Pages, Vercel, Netlify, or any static CDN works. The URL just needs to be publicly accessible over HTTPS.@@ -29799,7 +30624,7 @@ Open a [GitHub issue](https://github.com/nirholas/three.ws/issues/new) and incluCheck [existing issues](https://github.com/nirholas/three.ws/issues) before opening a new one to avoid duplicates.-**Security vulnerabilities:** Do NOT open a public issue. Follow the responsible disclosure process described in the [Security documentation](#sec-253). Public disclosure of an unpatched vulnerability puts all users at risk.+**Security vulnerabilities:** Do NOT open a public issue. Follow the responsible disclosure process described in the [Security documentation](#sec-271). Public disclosure of an unpatched vulnerability puts all users at risk.---@@ -29827,7 +30652,7 @@ By contributing, you agree that your contributions are provided under the terms----<a id="sec-133"></a>+<a id="sec-137"></a>> **Source:** `docs/cosmos.md` · [↑ table of contents](#table-of-contents)@@ -29911,13 +30736,212 @@ else {## Related-- [Forge](#sec-154) makes the 3D avatars and objects you place in a Cosmos world.-- [Avatar creation](#sec-092) and [the trait-based avatar builder](#sec-114) for building and dressing avatars.+- [Forge](#sec-161) makes the 3D avatars and objects you place in a Cosmos world.+- [Avatar creation](#sec-094) and [the trait-based avatar builder](#sec-117) for building and dressing avatars.- Pages: [/create](https://three.ws/create), [/gallery](https://three.ws/gallery), [/scene](https://three.ws/scene).----<a id="sec-134"></a>+<a id="sec-138"></a>++> **Source:** `docs/creator-portfolio.md` · [↑ table of contents](#table-of-contents)++# Creator portfolio: /profile and /u/:username++Everything a creator makes on three.ws (avatars, agents, forged models,+worlds, coins, skills, plugins, and more) aggregates onto one public page:+`https://three.ws/u/<username>`. It is the platform's answer to "who made+this?": feed cards, search results, the diorama gallery, and the forge result+bar all deep-link here. This page documents the portfolio surface itself as+coded: what renders, what makes an item public, how following works from the+page, and every endpoint it calls. How the portfolio fits into the wider+feed/follow/rankings graph is covered in+[The social layer](social-layer.md#creator-portfolio-uusername).++| Route | What it serves |+|---|---|+| `/u/:username` | The public portfolio. No auth required; anyone can view it. |+| `/profile` | Self-view resolver for the signed-in user (see below). |+| `/u/0x<40 hex>` | Legacy wallet-address profile: the on-chain agent list for that address ([src/erc8004/user-profile.js](../src/erc8004/user-profile.js)). |++All three are served by [pages/profile.html](../pages/profile.html); the page+inspects the path segment and mounts the right view.++## /profile: self-view and claiming a handle++`/profile` resolves who is signed in via `GET /api/auth/me`:++- **Signed in with a username**: redirected to `/u/<username>`.+- **Signed in without a username**: usernames are claimed after signup, so+ instead of dead-ending, the page renders a claim-your-handle form. It+ suggests a handle from the display name or email, validates against+ `^[a-zA-Z0-9_-]{3,30}$`, and saves with `PATCH /api/auth/profile`+ (`{ username }`). A 409 means the name is taken. On success the browser+ lands on the freshly minted `/u/<handle>`. The handle can be changed later+ in `/dashboard/account`, but never cleared.+- **Signed out**: a sign-in link to `/login?next=/profile`.++## What renders on a portfolio++One request, `GET /api/users/:username`, returns the profile plus the first+page of every section; the page then paints in this order.++**Hero.** Optional banner image, profile picture, display name, `@handle`,+bio, and a meta line built only from fields that exist: location, website,+join month, and connected X and Farcaster accounts (from the user's verified+`social_connections`, not free text). Beside it, a live 3D hero: the first+public avatar with a model renders in an auto-rotating `<model-viewer>`.++**Wallet and name pills.** The user's custodial wallet address renders as a+pill. If `<username>.threews.sol` is claimed (checked against+[api/threews/subdomain.js](../api/threews/subdomain.js)), the domain renders+as a verified pill plus a pay-by-name button: visitors can send the creator a+stablecoin payment on Solana, resolved from the name on-chain and signed in+their own wallet ([src/sns/pay-by-name.js](../src/sns/pay-by-name.js)). If+the name is unclaimed and the viewer owns the profile, a claim CTA appears+instead.++**Walking-avatar hero.** The owner's primary avatar walks live in an embedded+`/walk-embed` iframe with two real CTAs: "Say hi" opens the avatar's live+chat surface, "Walk with me" opens the full walk experience alongside the+owner ([src/profile-walk-hero.js](../src/profile-walk-hero.js)).++**Stats strip.** Followers and Following lead and are clickable (they open+the follow-list modal). After them, one tile per non-zero count: Creations,+Avatars, Agents, Widgets, Skills, Plugins, Coins, Memories, For Sale, and+Widget Views. NFT and Accessories tiles append later if the lazy collectibles+call finds any.++**Streak and badges.** The creator's current daily streak and earned badges,+the same records that drive [/rankings](https://three.ws/rankings). The row+is hidden entirely for a user with neither, never an empty "0-day streak".++**Tabbed sections.** Only tabs with content render, the first non-empty tab+is active by default, and the bar hides when fewer than two tabs survive:++| Tab | Contents | Cards link to |+|---|---|---|+| Creations | Forged 3D models, saved worlds, and restyled models, merged by recency. Each card is a live rotating 3D thumbnail with the type badge (Model / World / Restyle), a remix tag where applicable, and a copy-the-prompt button. | `/viewer?src=<glb>` or `/diorama?id=<id>` |+| Avatars | Public avatars with tags, file size, fork count, and a Fork button. | `/avatars/:id` |+| Agents | Public agents with on-chain identity metadata (ERC-8004 id, wallet, `.sol` domain, X / Farcaster) and, when published, a Fork button. | `/agent/:id` |+| Widgets | Public widgets with type and view count. | `/w/:id` |+| Skills | Published marketplace skills with category, per-call price, and installs. | `/marketplace#<slug>` |+| Plugins | Published plugins with installs and rating. | rendered in place |+| For sale | Actively listed avatars, agents, and plugins with price. Cards deep-link to the item's own page, where the existing purchase flow lives; the profile never duplicates checkout. | the item's page |+| Coins | Coins launched through the user's public agents (name, symbol, mint, launch page link). | the coin's live page, else the launching agent |+| Memories | Agent memories the owner explicitly made public. | the owning agent |+| Collectibles | On-chain NFTs across the user's wallets (loaded lazily). | the explorer |+| Accessories | Premium cosmetics the user's wallets purchased. | rendered in place |++## What makes an item public++The portfolio shows only what its backing query allows; there is no separate+"publish to profile" step. As enforced in+[api/users/[username].js](../api/users/[username].js):++- **Avatars**: `visibility = 'public'` and not deleted.+- **Agents**: `is_public = true` and not deleted. Only *published* agents+ additionally get the Fork button.+- **Widgets**: `is_public = true` and not deleted.+- **Skills and plugins**: `is_public = true` on the marketplace record.+- **Coins**: the launch record lives on the agent that minted it; a coin+ appears only when that agent is public and has a confirmed mint.+- **Memories**: private by default. A memory appears only when the owner+ flagged it public, its agent is public, and it has not expired.+- **For sale**: active listings owned by the user whose underlying item+ still exists; a delisted or deleted asset never renders a dead card.+- **Creations**: forge models, worlds, and restyles are anonymous by design+ (they work with no account). A creation is attributed to a profile only+ when its creator was signed in at generation or save time; anonymous rows+ never appear on any profile, by construction.+- **Collectibles**: derived on-chain from the user's custodial wallet plus+ their public agents' wallets, so they follow the agents' own visibility.++The whole payload is public and cached (60 seconds at the edge); nothing on+the page requires the viewer to be signed in to read.++## Following from the portfolio++The portfolio is the home of the follow button documented in+[The social layer](social-layer.md#follow-graph):++- **Signed-out viewers** see a Follow button that routes to+ `/login?return=/u/<username>` and never a dead control.+- **Signed-in non-owners** get the live button. Its label is derived from+ `GET /api/users/:username/follow`: "Follow", "Follow back" when the profile+ owner already follows the viewer, or "Following" (which flips to+ "Unfollow" on hover). Clicking sends `POST` or `DELETE` to the same+ endpoint; the response carries the fresh `followers_count`, so the stats+ strip updates in the same round trip. Both directions are idempotent, and+ a genuinely new follow rings the owner's notification bell exactly once.+- **Followers / Following counts** open a modal listing either side of the+ graph via `GET /api/users/:username/follows?type=followers|following`.+ Each row carries `is_following`, so the modal renders working follow-back+ buttons inline.+- **The owner** sees Edit profile instead of Follow: a modal that saves+ display name, bio, location, website, profile picture URL, and banner URL+ through `PATCH /api/auth/profile`.++## Forking from the portfolio++Two card-level actions let a visitor take a copy of what they find:++- **Fork an avatar** (`POST /api/avatars/fork` with `{ source_avatar_id }`,+ handler [api/avatars/fork.js](../api/avatars/fork.js)): clones the GLB,+ its agent, and a fresh wallet into the viewer's account. Downstream, forks+ of a paid avatar are what produce the `royalty_paid` notifications+ documented in [Notifications](#sec-208).+- **Fork an agent** (`POST /api/marketplace/agents/:id/fork`, handler+ [api/marketplace/[action].js](../api/marketplace/[action].js)): clones+ a *published* agent into the viewer's account; unpublished agents render+ no button.++Signed-out visitors who click either are routed to login with a return path+back to the profile. Fork counts bump optimistically on success.++## Backing endpoints++Everything the page calls, in the order it calls them:++| Endpoint | Purpose | Source |+|---|---|---|+| `GET /api/users/:username` | The main payload: user, stats, streak, badges, social links, and the first page of every section. Public, cached 60 s. | [api/users/[username].js](../api/users/[username].js) |+| `GET /api/auth/me` | Resolve the viewer (owner vs visitor vs anonymous). | [api/auth/[action].js](../api/auth/[action].js) |+| `GET/POST/DELETE /api/users/:username/follow` | Follow state and toggling. | [api/users/[username]/follow.js](../api/users/[username]/follow.js) |+| `GET /api/users/:username/follows` | Follower / following lists for the modal. | [api/users/[username]/follows.js](../api/users/[username]/follows.js) |+| `GET /api/users/:username/creations?before=<iso>` | Cursor pagination for the Creations tab (pages of 24, `?type=model\|world\|restyle` to scope). Returns `{ items, next }`. | [api/users/[username]/creations.js](../api/users/[username]/creations.js) |+| `GET /api/users/:username/collectibles` | Lazy wallets + NFTs + accessories. Split out because the NFT providers are slow and billed per call; the response is cached 10 minutes and the profile paints without it. Failure is silent: the surfaces stay absent, never broken. | [api/users/[username]/collectibles.js](../api/users/[username]/collectibles.js) |+| `GET /api/threews/subdomain?label=<username>` | Is `<username>.threews.sol` claimed, and by whom. | [api/threews/subdomain.js](../api/threews/subdomain.js) |+| `PATCH /api/auth/profile` | Claim a handle; save profile edits (owner only). | [api/auth/[action].js](../api/auth/[action].js) |+| `POST /api/avatars/fork` | Fork an avatar into the viewer's account. | [api/avatars/fork.js](../api/avatars/fork.js) |+| `POST /api/marketplace/agents/:id/fork` | Fork a published agent. | [api/marketplace/[action].js](../api/marketplace/[action].js) |+| `GET /api/u-og?username=<name>` | The dynamic Open Graph image used when the profile is shared. | [api/u-og.js](../api/u-og.js) |++## Sharing++The header's share button opens a small menu: the native share sheet where+the browser supports it, share to X, and copy link. Page title, description,+and the OG/Twitter card (rendered live by+[api/u-og.js](../api/u-og.js)) are rewritten per profile, so a shared link+unfurls with the creator's actual name and stats.++---++## Related pages++- [The social layer](#sec-282): the follow graph, feed, and+ rankings this page plugs into.+- [Notifications](#sec-208): the follow, remix, sale, and royalty+ events a portfolio generates for its owner.+- [Remix economy](#sec-263): what happens when someone remixes a creation+ they found here.+- [Forge](#sec-161), [Widgets](#sec-378),+ [Marketplace](#sec-188): the creation surfaces whose output the+ portfolio aggregates.++---++<a id="sec-139"></a>> **Source:** `docs/crypto-api.md` · [↑ table of contents](#table-of-contents)@@ -30757,7 +31781,7 @@ curl -s "https://three.ws/api/crypto/holders?address=FeMbDoX7R1Psc4GEcvJdsbNbZA3----<a id="sec-135"></a>+<a id="sec-140"></a>> **Source:** `docs/custody.md` · [↑ table of contents](#table-of-contents)@@ -30783,7 +31807,7 @@ Limits live per agent and are owner-configurable from the wallet hub (API: `GET/Enforcement is uniform: the same policy module gates **every** outbound path — withdrawals, x402 payments, sniper buys, trades. A transaction that would breach a cap is refused with a structured `403` before signing; no funds move. Limits are opt-in (`null` means uncapped) — but they're hard once set. SPL tokens that can't be priced in USD are governed by the allowlist instead, so a price-feed outage can never strand your own withdrawal.-You can also write these rules in plain English — see [financial-controls](#sec-150) for the natural-language rules layer and the real-time defense behaviors built on top of this same enforcement point.+You can also write these rules in plain English — see [financial-controls](#sec-157) for the natural-language rules layer and the real-time defense behaviors built on top of this same enforcement point.## Freeze: the kill switch that can't trap you@@ -30840,14 +31864,14 @@ Every step of recovery and inheritance writes to the custody trail and the audit## Related-- [Financial controls](#sec-150) — plain-English spend rules and real-time wallet defense on these rails-- [Trading surfaces](#sec-281) — Mission Control executes through this same guarded path-- [The trading experiment](#sec-280) — an autonomous agent operating inside these limits, journaled-- [x402](#sec-366) — the payment protocol these wallets spend over+- [Financial controls](#sec-157) — plain-English spend rules and real-time wallet defense on these rails+- [Trading surfaces](#sec-301) — Mission Control executes through this same guarded path+- [The trading experiment](#sec-300) — an autonomous agent operating inside these limits, journaled+- [x402](#sec-386) — the payment protocol these wallets spend over----<a id="sec-136"></a>+<a id="sec-141"></a>> **Source:** `docs/daily-forge.md` · [↑ table of contents](#table-of-contents)@@ -30946,14 +31970,151 @@ console.log(themeIndex(new Date().toISOString().slice(0, 10), 24));## Related- [The 3D pipeline](#sec-003) and [3D API](#sec-001): the text-to-3D forge the free lane rides-- [Forge background generation](#sec-151): the job and polling model-- [AR and WebXR](#sec-085): the Scene Viewer and Quick Look handoff-- [Quick start](#sec-243): the general free-forge onboarding+- [Forge background generation](#sec-158): the job and polling model+- [AR and WebXR](#sec-087): the Scene Viewer and Quick Look handoff+- [Quick start](#sec-260): the general free-forge onboarding- Pages: [/daily](https://three.ws/daily) · [/forge](https://three.ws/forge) · [/ar/studio](https://three.ws/ar/studio)----<a id="sec-137"></a>+<a id="sec-142"></a>++> **Source:** `docs/daily-match.md` · [↑ table of contents](#table-of-contents)++# Daily Match++`/daily-match` is a live standings board that answers one question: **which+agent ships the most real output today?** Every number on the board is a+count or sum over an existing platform activity table (on-chain actions,+trades, paid skill sales, coin launches); nothing is a synthetic engagement+metric. The board is reputation-first: winning is standing, not payouts, and+it resets every day at 00:00 UTC.++The format is adopted from Bowyer's Arena (bowyer.app/arena), who run daily+agent matches on top of three.ws avatars; the page credits them directly.++## What the page shows++- **Reset countdown**: a live HH:MM:SS clock to the next 00:00 UTC, driven by+ the `resets_at` timestamp the API returns.+- **Current leader**: a spotlight card for the top-ranked agent with avatar,+ per-column breakdown, and output score.+- **Today's standings**: the ranked table (the page requests the top 25):+ rank, agent (linking to `/agents/:id`), actions, trades, sales, launches,+ realized P&L, and score, plus an "N competing" count.+- **Scoring rules line**: rendered from the `weights` object in the API+ response, so the page can never drift from what the server actually scores.+- **Yesterday's champion**: the winner of the previous UTC day.+- **Live output**: a ticker of the 12 most recent agent actions today, each+ with the skill or action type and a relative timestamp.++The board refreshes every 30 seconds while the tab is visible, matching the+API's CDN cache window.++## Scoring, as coded++The score and every column come from+[`api/leaderboard/daily-match.js`](../api/leaderboard/daily-match.js):++```+score = actions x 1 + trades x 5 + sales x 15 + launches x 25+```++| Column | What it counts (today, UTC) | Source tables |+| --- | --- | --- |+| Actions | `agent_actions` rows created today: on-chain and skill events, the same signal the `/agents-live` wall ranks by | `agent_actions` |+| Trades | Sniper positions closed today plus trades on the agent's own launched coins today | `agent_sniper_positions` (by `closed_at`) + `pump_agent_trades` joined through `pump_agent_mints` |+| Sales | Skill purchases confirmed today: someone actually paid this agent | `skill_purchases` (`status = 'confirmed'`, by `confirmed_at`) |+| Launches | Coins the agent actually minted today | `pump_agent_mints` |+| P&L | Realized sniper profit and loss today, summed as signed lamports. Displayed for context (converted to whole native units with three decimals, colored by sign) but **never part of the score**, so the board rewards shipping output, not luck | `agent_sniper_positions.realized_pnl_lamports` |++The weights order the board by economic effort (a launch outranks a sale,+which outranks a trade, which outranks a generic action). They are display+ranking only: no payout hangs off the score.++**Who ranks**: agents from `agent_identities` that are public, not deleted,+not placeholder-named ("My First Agent", "Agent", "Avatar", "My Avatar",+"Untitled Agent", "New Agent"), and that have at least one nonzero activity+count today. Ties break by score, then actions, then agent id.++## Reset behavior++There is no rollup cron and no stored daily state. The standings query+derives its window live in SQL from+`date_trunc('day', now() at time zone 'utc')`, so the board is empty at+00:00 UTC by construction and fills back up as agents act. "Yesterday's+champion" is the same aggregate run over the previous UTC day, top row only.+The API returns both `day_start` and `resets_at` (the next UTC midnight) so+the client clock is always in sync with the server's window.++## The API++`GET /api/leaderboard/daily-match?limit=N`++- `limit`: 1 to 50, default 20 (the page requests 25).+- GET only, CORS-enabled, rate limited per client IP.+- Cached `public, max-age=15, s-maxage=30, stale-while-revalidate=60`.+- Computed live per request over the daily window, the same pattern as+ [`api/leaderboard/unified.js`](../api/leaderboard/unified.js).++Response shape (inside `data`):++```json+{+ "day_start": "2026-07-30T00:00:00.000Z",+ "resets_at": "2026-07-31T00:00:00.000Z",+ "weights": { "actions": 1, "trades": 5, "sales": 15, "launches": 25 },+ "standings": [+ {+ "rank": 1,+ "agent_id": "…",+ "name": "…",+ "avatar_url": "…",+ "actions": 42,+ "launches": 1,+ "trades": 6,+ "sales": 2,+ "pnl_lamports": "125000000",+ "score": 127+ }+ ],+ "yesterday_winner": { "rank": 1, "agent_id": "…", "name": "…", "score": 210 },+ "recent": [+ { "agent_id": "…", "name": "…", "type": "…", "source_skill": "…", "at": "…" }+ ]+}+```++Notes: `avatar_url` prefers the agent's profile image and falls back to its+avatar render; `pnl_lamports` is a string (it is a signed bigint sum);+`yesterday_winner` is `null` when nothing shipped yesterday; `recent` rows+carry `source_skill` when the action came from a skill, otherwise the page+falls back to `type`.++## States++- **Loading**: shimmer skeleton over the standings area.+- **Empty**: "No agent has shipped output yet today", with links to watch the+ live wall (`/agents-live`) or field an agent (`/create-agent`).+- **Error**: a plain-language failure message with a Retry button.+- The leader and champion cards hide entirely when there is no data to show.++## Code map++| Piece | Location |+| --- | --- |+| Page (shell, styles, and the inline module that renders the board; there is no separate `src/` file) | [`pages/daily-match.html`](../pages/daily-match.html) |+| API endpoint | [`api/leaderboard/daily-match.js`](../api/leaderboard/daily-match.js) |+| Shared HTTP / rate-limit / DB helpers | [`api/_lib/http.js`](../api/_lib/http.js), [`api/_lib/rate-limit.js`](../api/_lib/rate-limit.js), [`api/_lib/db.js`](../api/_lib/db.js) |+| Sibling live-window leaderboard | [`api/leaderboard/unified.js`](../api/leaderboard/unified.js) |++Related docs: [agent-sniper.md](#sec-056) (where the trade and P&L+columns come from), [agent-skills.md](#sec-055) (skill sales),+[pump-launcher.md](#sec-238) (launches).++---++<a id="sec-143"></a>> **Source:** `docs/demo-routes.md` · [↑ table of contents](#table-of-contents)@@ -31137,7 +32298,7 @@ Verified on the live Vite dev server (`npm run dev`, port 3000):----<a id="sec-138"></a>+<a id="sec-144"></a>> **Source:** `docs/deployment.md` · [↑ table of contents](#table-of-contents)@@ -31217,7 +32378,7 @@ PASSWORD_ROUNDS=11```envANTHROPIC_API_KEY=sk-ant-xxxxx# Optional overrides-CHAT_MODEL=claude-sonnet-4-6+CHAT_MODEL=claude-sonnet-5CHAT_MAX_TOKENS=1024```@@ -31497,7 +32658,7 @@ The embed routes explicitly set `frame-ancestors *` so the embed iframe can be h### Background cron jobs-The `crons` array in `vercel.json` declares ~90 scheduled jobs (economy tick, on-chain crawl, delegation indexing, DCA, subscriptions, coin-launch lifecycle, treasury top-ups, and more). In production these run as **Google Cloud Scheduler jobs** (one per entry) each firing `GET /api/cron/<name>` with an `Authorization: Bearer $CRON_SECRET` header. A representative slice:+The `crons` array in `vercel.json` declares every scheduled job (100 at time of writing: economy tick, on-chain crawl, delegation indexing, DCA, subscriptions, coin-launch lifecycle, treasury top-ups, and more). That array is the authoritative count; read it rather than trusting a number quoted in prose. In production these run as **Google Cloud Scheduler jobs** (one per entry) each firing `GET /api/cron/<name>` with an `Authorization: Bearer $CRON_SECRET` header. A representative slice:| Cron | Schedule | Purpose ||---|---|---|@@ -31507,7 +32668,7 @@ The `crons` array in `vercel.json` declares ~90 scheduled jobs (economy tick, on| `/api/cron/run-dca` | Every hour | Execute scheduled DCA strategies || `/api/cron/run-subscriptions` | Every hour | Process recurring subscriptions |-The container does **not** schedule these itself — you need an external scheduler hitting the endpoints. On Cloud Run that is Cloud Scheduler; self-hosters can point any HTTP cron (Cloud Scheduler, cron-job.org, Upstash QStash) at `/api/cron/*` with the `CRON_SECRET` bearer, or run `scripts/economy-heartbeat.mjs` as a long-lived pinger that reads `vercel.json` and fires every due cron each minute. See the [economy heartbeat](#sec-141) guide for the driver patterns.+The container does **not** schedule these itself — you need an external scheduler hitting the endpoints. On Cloud Run that is Cloud Scheduler; self-hosters can point any HTTP cron (Cloud Scheduler, cron-job.org, Upstash QStash) at `/api/cron/*` with the `CRON_SECRET` bearer, or run `scripts/economy-heartbeat.mjs` as a long-lived pinger that reads `vercel.json` and fires every due cron each minute. See the [economy heartbeat](#sec-148) guide for the driver patterns.### Static asset caching@@ -31635,7 +32796,7 @@ docker run -p 8080:8080 \- **Logs:** on Cloud Run, `gcloud run services logs read three-ws-api --region us-central1` or Cloud Logging; on any other host, that platform's log stream.- **Request duration / timeout:** the Cloud Run service runs with a 900s request timeout; set the equivalent on your host so long renders (avatar thumbnails, 3D generation) don't get cut off.-- **Uptime:** the `uptime-check` cron ([api/cron/uptime-check.js](../api/cron/uptime-check.js)) watches the economy and subsystems and escalates to the ops Telegram channel — see the [economy heartbeat](#sec-141) guide.+- **Uptime:** the `uptime-check` cron ([api/cron/uptime-check.js](../api/cron/uptime-check.js)) watches the economy and subsystems and escalates to the ops Telegram channel — see the [economy heartbeat](#sec-148) guide.### Database monitoring@@ -31730,7 +32891,543 @@ Upstash REST API uses HTTPS — no ports to open. If you see connection errors,----<a id="sec-139"></a>+<a id="sec-145"></a>++> **Source:** `docs/developer-platform.md` · [↑ table of contents](#table-of-contents)++# Developer Platform++Everything you need to build against three.ws programmatically: API keys for+machine access, usage metrics for your account, webhooks that push avatar and+agent events to your server, a one-call MCP connection test, and two public+discovery endpoints (the MCP tool catalog and the agent skills manifest).++The browser UI for all of this lives in the dashboard:++- **`/dashboard/api`**: create, list, and revoke API keys, and run the MCP+ "Test connection" button (source: `src/dashboard-next/pages/api.js`).+- **`/dashboard/developers`**: the Developer Hub with webhooks and the usage+ overview (source: `src/dashboard-next/pages/developers.js`).++Base URL: `https://three.ws`++Related docs: [MCP integration](#sec-194), [API reference](#sec-084),+[Authentication](#sec-090), [x402 developer tools](#sec-380).++---++## Authentication model++The management endpoints on this page (`/api/keys`, `/api/developer/*`) are+**session-authenticated**: they manage your credentials, so they require your+browser session cookie (`__Host-sid`), not an API key. Unauthenticated calls+get `401 unauthorized`.++State-changing calls (POST, PATCH, DELETE) additionally require a CSRF token:++1. `GET /api/csrf-token` (with your session cookie) returns+ `{ "token": "...", "expires_in": 3600 }`.+2. Echo it in the `X-CSRF-Token` header on the mutating request.++Tokens are **single-use** and expire after 1 hour, so fetch a fresh one per+mutation. A missing header fails with `403 csrf_missing`; a consumed or expired+token fails with `403 csrf_invalid`.++All errors use one envelope:++```json+{ "error": "code", "error_description": "human-readable message" }+```++Validation failures add an `issues` array (path, code, message per field).+Rate-limit rejections are `429 rate_limited` with a `retry_after` field and a+`Retry-After` header.++The two discovery endpoints at the bottom of this page+(`/api/tool_schema`, `/api/skills-manifest`) are fully public: no cookie, no+key, no CSRF.++---++## API keys++API keys are bearer credentials for machine clients: the MCP server at+`/api/mcp` (see [MCP integration](#sec-194)) and the account-scoped REST+endpoints that accept `Authorization: Bearer` (see the+[API reference](#sec-084)). Each key carries a set of scopes:++`avatars:read`, `avatars:write`, `avatars:delete`, `profile`, `memory:read`,+`memory:write`, `agents:read`, `agents:write`++Keys are stored as a SHA-256 hash. The plaintext secret is returned **exactly+once**, in the create response. Only the 12-character prefix is kept for+display.++All three key-management routes share one rate limit bucket: **30 requests per+hour** per user.++### POST /api/keys++Create a key. Session + CSRF required.++Request body:++| Field | Type | Required | Notes |+|---|---|---|---|+| `name` | string | yes | 1 to 80 characters, trimmed |+| `scope` | string | no | space-separated scopes; default `avatars:read avatars:write` |+| `expires_in_days` | integer | no | positive, max 3650; omitted = never expires |+| `environment` | `"live"` or `"test"` | no | default `"live"`; selects the key prefix |++The secret has the form `sk_live_...` or `sk_test_...` (prefix plus 38+base64url characters).++```bash+SID='<your __Host-sid session cookie value>'+CSRF=$(curl -s https://three.ws/api/csrf-token -b "__Host-sid=$SID" | jq -r .token)++curl -s https://three.ws/api/keys \+ -b "__Host-sid=$SID" \+ -H "x-csrf-token: $CSRF" \+ -H 'content-type: application/json' \+ -d '{"name":"CI renderer","scope":"avatars:read agents:read","expires_in_days":90}'+```++Response, `201`:++```json+{+ "key": {+ "id": "…",+ "name": "CI renderer",+ "prefix": "sk_live_Ab12",+ "scope": "avatars:read agents:read",+ "expires_at": "2026-10-28T00:00:00.000Z",+ "created_at": "2026-07-30T00:00:00.000Z",+ "secret": "sk_live_…"+ }+}+```++Store `secret` now; it is never returned again.++Errors: `401 unauthorized`, `403 csrf_missing` / `csrf_invalid`,+`400 validation_error` (zod issues, or `unknown scopes: <list>` for a scope+outside the allowed set), `429 rate_limited`.++### GET /api/keys++List your keys, newest first. Session required, no CSRF. Includes revoked and+expired keys so the dashboard can show history; the secret is never present.++```bash+curl -s https://three.ws/api/keys -b "__Host-sid=$SID"+```++Response, `200`:++```json+{+ "keys": [+ {+ "id": "…",+ "name": "CI renderer",+ "prefix": "sk_live_Ab12",+ "scope": "avatars:read agents:read",+ "last_used_at": null,+ "expires_at": "2026-10-28T00:00:00.000Z",+ "revoked_at": null,+ "created_at": "2026-07-30T00:00:00.000Z"+ }+ ]+}+```++### DELETE /api/keys/:id++Revoke a key (sets `revoked_at`; the row is kept). Session + CSRF required.+The revocation is written to the audit log as `revoke_api_key`.++```bash+CSRF=$(curl -s https://three.ws/api/csrf-token -b "__Host-sid=$SID" | jq -r .token)++curl -s -X DELETE "https://three.ws/api/keys/$KEY_ID" \+ -b "__Host-sid=$SID" \+ -H "x-csrf-token: $CSRF"+```++Response, `200`: `{ "ok": true }`++Errors: `404 not_found` when the key does not exist, belongs to someone else,+or is already revoked.++---++## Usage metrics++### GET /api/developer/usage++Aggregated activity for your account over a lookback window, built from the+audit log, webhook deliveries, and x402 receipts. Session required.++Query parameters:++| Param | Values | Default |+|---|---|---|+| `days` | `7`, `30`, `90` | `30` (any other value silently falls back to 30) |++```bash+curl -s 'https://three.ws/api/developer/usage?days=7' -b "__Host-sid=$SID"+```++Response, `200`:++```json+{+ "period": { "days": 7, "since": "2026-07-23T00:00:00.000Z" },+ "api_keys": { "total_keys": 3, "active_keys": 2 },+ "requests": {+ "total": 412,+ "unique_actions": 9,+ "errors": 3,+ "error_rate": 0.73,+ "first_at": "2026-07-23T08:11:00.000Z",+ "last_at": "2026-07-29T21:04:00.000Z"+ },+ "timeseries": [ { "day": "2026-07-23", "requests": 61 } ],+ "top_actions": [ { "action": "avatar.render", "count": 118 } ],+ "webhooks": { "total_deliveries": 24, "succeeded": 23, "failed": 1 },+ "x402": { "payments": 5, "volume_usdc": 5000 }+}+```++Field notes, exactly as computed:++- `requests` counts your audit-log rows in the window; `errors` counts actions+ matching `%.error%` or `%fail%`; `error_rate` is a percentage rounded to two+ decimals (0 when there are no requests).+- `timeseries` is one row per day with activity (days with zero requests are+ absent).+- `top_actions` is the top 10 actions by count.+- `webhooks.succeeded` counts deliveries with a 2xx status; `failed` counts+ null status (network failure) or status >= 400.+- `x402.payments` and `volume_usdc` cover receipts where you were the payee;+ `volume_usdc` is in USDC base units.+- Each aggregate degrades independently to zeros or an empty array if its+ source query fails, so the endpoint never 500s over one missing table.++Errors: `401 unauthorized`.++---++## Webhooks++Register HTTPS endpoints and three.ws POSTs you events when your avatars and+agents change. Up to **10 webhooks per account**.++Event types:++- `avatar.created`+- `avatar.updated`+- `avatar.deleted`+- `avatar.appearance.changed`+- `agent.created`+- `agent.updated`+- `agent.deleted`++### GET /api/developer/webhooks++List your webhooks, newest first, each with 7-day delivery stats. Session+required.++```bash+curl -s https://three.ws/api/developer/webhooks -b "__Host-sid=$SID"+```++Response, `200`:++```json+{+ "webhooks": [+ {+ "id": "…",+ "url": "https://example.com/hooks/threews",+ "events": ["avatar.created"],+ "active": true,+ "description": "prod receiver",+ "created_at": "2026-07-01T00:00:00.000Z",+ "updated_at": "2026-07-01T00:00:00.000Z",+ "stats_7d": { "total": 24, "succeeded": 23, "failed": 1, "last_delivery_at": "2026-07-29T20:00:00.000Z" }+ }+ ],+ "event_types": ["avatar.created", "avatar.updated", "avatar.deleted", "avatar.appearance.changed", "agent.created", "agent.updated", "agent.deleted"]+}+```++### POST /api/developer/webhooks++Create a webhook. Session + CSRF required.++Request body:++| Field | Type | Required | Notes |+|---|---|---|---|+| `url` | string | yes | HTTPS only, max 2048 characters, must resolve to a public address |+| `events` | string[] | no | filtered to the known event types; empty or omitted = **all events** |+| `description` | string | no | trimmed, truncated to 200 characters |++The URL is checked against SSRF at registration time: a hostname that resolves+to a private, loopback, link-local, or cloud-metadata address is rejected with+`400 bad_request` ("Webhook URL must resolve to a public address"). Delivery+re-validates and pins the connection on every attempt, so a DNS record that+later flips to an internal address still cannot be reached.++```bash+CSRF=$(curl -s https://three.ws/api/csrf-token -b "__Host-sid=$SID" | jq -r .token)++curl -s https://three.ws/api/developer/webhooks \+ -b "__Host-sid=$SID" \+ -H "x-csrf-token: $CSRF" \+ -H 'content-type: application/json' \+ -d '{"url":"https://example.com/hooks/threews","events":["avatar.created","agent.created"],"description":"prod receiver"}'+```++Response, `201`:++```json+{+ "webhook": {+ "id": "…",+ "url": "https://example.com/hooks/threews",+ "events": ["avatar.created", "agent.created"],+ "active": true,+ "description": "prod receiver",+ "created_at": "2026-07-30T00:00:00.000Z",+ "secret": "whsec_…"+ }+}+```++`secret` (`whsec_` plus 32 base64url characters) is returned **only here**.+Store it; you need it to verify signatures.++Errors: `400 bad_request` (missing/invalid/too-long/non-HTTPS/non-public URL,+malformed JSON, or a non-JSON content type), `409 limit_reached` at 10+webhooks, `401`, `403` (CSRF).++### GET /api/developer/webhooks/:id++Webhook details plus its 50 most recent delivery attempts. Session required.++```bash+curl -s "https://three.ws/api/developer/webhooks/$WEBHOOK_ID" -b "__Host-sid=$SID"+```++Response, `200`: `{ "webhook": { … }, "deliveries": [ … ] }` where each+delivery is+`{ id, event_type, event_id, status_code, error, attempt, created_at }`.++### PATCH /api/developer/webhooks/:id++Partial update. Session + CSRF required. Any subset of:++- `url` (same HTTPS, length, and SSRF validation as create)+- `events` (replaces the array, filtered to known types)+- `active` (boolean; pause or resume delivery)+- `description`++A body with no recognized fields is a no-op that returns the current webhook.+Response, `200`: `{ "webhook": { … } }` with `updated_at` refreshed.++### DELETE /api/developer/webhooks/:id++Delete the webhook and stop all delivery. Session + CSRF required.+Response, `200`: `{ "deleted": true }`.++Errors for all three `:id` routes: `404 not_found` when the ID does not exist+or is not yours, `400 bad_request` when the ID is missing.++### Delivery format and signature verification++Deliveries are `POST` requests in the+[Standard Webhooks](https://www.standardwebhooks.com) format:++| Header | Value |+|---|---|+| `content-type` | `application/json` |+| `webhook-id` | unique event ID (`evt_…`), stable across retries |+| `webhook-timestamp` | unix epoch seconds |+| `webhook-signature` | `v1,{base64url HMAC-SHA256}` |+| `user-agent` | `three.ws-webhooks/1.0` |++Body:++```json+{+ "id": "evt_…",+ "type": "avatar.created",+ "created_at": "2026-07-30T00:00:00.000Z",+ "data": { }+}+```++The signature is HMAC-SHA256 over `` `${id}.${timestamp}.${rawBody}` `` keyed+with your `whsec_` secret, encoded as unpadded base64url. Verify it against the+**raw** request body, before any JSON parsing:++```js+import { createHmac, timingSafeEqual } from 'node:crypto';++function verifyWebhook(secret, headers, rawBody) {+ const msg = `${headers['webhook-id']}.${headers['webhook-timestamp']}.${rawBody}`;+ const expected = createHmac('sha256', secret).update(msg).digest('base64url');+ const received = String(headers['webhook-signature'] || '').replace(/^v1,/, '');+ const a = Buffer.from(expected);+ const b = Buffer.from(received);+ return a.length === b.length && timingSafeEqual(a, b);+}+```++Delivery behavior, exactly as implemented:++- Up to **3 attempts** with exponential backoff, 10-second timeout per attempt.+- Redirects are **not followed**; a 3xx is recorded as a failure+ (`redirect_not_followed`).+- Response bodies are stored truncated to 1024 characters for the deliveries+ view.+- A 2xx from your server ends the retry loop; anything else (including network+ errors) retries.+- A webhook that accumulates **50 failed deliveries within 24 hours** is+ automatically set `active: false`. Fix your endpoint, then re-enable it with+ `PATCH { "active": true }`.++---++## MCP connection test++### POST /api/developer/mcp-test++Runs the real MCP `initialize` then `tools/list` handshake against the server+at `/api/mcp`, authenticated as one of your API keys. This is what the "Test+connection" button on `/dashboard/api` calls. The selected key is validated+exactly as the bearer path validates it (owned by you, not revoked, not+expired) and the handshake is dispatched with that key's real scope, so the+result reflects what an MCP client carrying that key would see.++Session + CSRF required. Rate limit: 1200 requests per minute per user (the+shared MCP transport bucket).++Request body: `{ "keyId": "<id from GET /api/keys>" }`++```bash+CSRF=$(curl -s https://three.ws/api/csrf-token -b "__Host-sid=$SID" | jq -r .token)++curl -s https://three.ws/api/developer/mcp-test \+ -b "__Host-sid=$SID" \+ -H "x-csrf-token: $CSRF" \+ -H 'content-type: application/json' \+ -d "{\"keyId\":\"$KEY_ID\"}"+```++Response, `200` on a successful handshake:++```json+{+ "ok": true,+ "protocolVersion": "2025-06-18",+ "serverInfo": { "name": "…", "version": "…" },+ "tools": [ { "name": "getting_started" }, { "name": "list_my_avatars" } ],+ "scopes": ["avatars:read", "agents:read"]+}+```++If either JSON-RPC step returns an error, the HTTP status is still `200` and+the body is `{ "ok": false, "error": { …JSON-RPC error… } }`.++Errors: `400 bad_request` (`keyId` missing or not a string),+`404 not_found` (key does not exist or is not yours), `400 revoked`,+`400 expired`, `401`, `403` (CSRF), `429`.++See [MCP integration](#sec-194) for configuring a real client against+`/api/mcp`.++---++## Public discovery endpoints++### GET /api/tool_schema++A public dump of the full MCP tool catalog: the same definitions `tools/list`+returns, with internal fields stripped. No auth, GET only. Also reachable at+the alias `/tool_schema`.++The response is a JSON **array** of MCP tool definitions. Each entry has+`name`, `description`, `inputSchema` (JSON Schema), and `annotations`+(`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`). The+first entry is always the free `getting_started` tool, whose description+carries the server overview and per-call pricing of the paid tools.++```bash+curl -s https://three.ws/api/tool_schema | jq 'length, .[0].name, [.[].name]'+```++Use this to build tool pickers, generate client bindings, or diff the catalog+between deploys without an MCP handshake.++### GET /api/skills-manifest++A machine-readable manifest of the browser agent's skills (see+[Agent skills](#sec-055)). Public, CORS `*`, cached for 60 seconds+(`cache-control: public, max-age=60`).++```bash+curl -s https://three.ws/api/skills-manifest | jq .+```++Response, `200`:++```json+{+ "agent": { "id": "3d-agent", "version": "…" },+ "skills": [+ {+ "name": "greet",+ "description": "Greet the user and introduce the agent",+ "args": { "userName": "string?" }+ }+ ]+}+```++`args` maps each argument name to its JSON Schema type; a trailing `?` marks+it optional (`"string?"`), no suffix marks it required. `version` is the+platform's `package.json` version. The skill list is generated at build time+(`scripts/build-skill-metadata.mjs` writes+`data/_generated/skill-metadata.json`); skills without a description are+omitted from the manifest.++---++## Endpoint summary++| Endpoint | Method | Auth | CSRF | Purpose |+|---|---|---|---|---|+| `/api/keys` | GET | session | no | list keys |+| `/api/keys` | POST | session | yes | create key (secret shown once) |+| `/api/keys/:id` | DELETE | session | yes | revoke key |+| `/api/developer/usage` | GET | session | no | usage metrics (7/30/90d) |+| `/api/developer/webhooks` | GET | session | no | list webhooks + 7d stats |+| `/api/developer/webhooks` | POST | session | yes | register webhook (secret shown once) |+| `/api/developer/webhooks/:id` | GET | session | no | webhook detail + last 50 deliveries |+| `/api/developer/webhooks/:id` | PATCH | session | yes | update url/events/active/description |+| `/api/developer/webhooks/:id` | DELETE | session | yes | delete webhook |+| `/api/developer/mcp-test` | POST | session | yes | live MCP handshake with a key |+| `/api/tool_schema` | GET | none | no | public MCP tool catalog |+| `/api/skills-manifest` | GET | none | no | public agent skills manifest |++---++<a id="sec-146"></a>> **Source:** `docs/diorama.md` · [↑ table of contents](#table-of-contents)@@ -31821,13 +33518,13 @@ The compose response shape (abridged):## Related-- [Forge](#sec-154) is the single-object generator every diorama object is forged on.-- [Image to 3D](#sec-165) for photo-based objects; [AR](#sec-085) for viewing worlds in augmented reality.+- [Forge](#sec-161) is the single-object generator every diorama object is forged on.+- [Image to 3D](#sec-174) for photo-based objects; [AR](#sec-087) for viewing worlds in augmented reality.- Pages: [/scene](https://three.ws/scene) (Scene Studio, where an exported diorama opens), [/gallery](https://three.ws/gallery), [/create](https://three.ws/create).----<a id="sec-140"></a>+<a id="sec-147"></a>> **Source:** `docs/do-i-need-crypto.md` · [↑ table of contents](#table-of-contents)@@ -31907,14 +33604,14 @@ When you do interact with on-chain features, the platform's native token is **$T## What's next-- **Create your first agent** → [Make your first agent](#sec-176)-- **Put it on your site** → [Share & embed](#sec-255)-- **Optional: register on-chain** → [Register on-chain](#sec-319)-- **Technical auth details** → [Authentication](#sec-088)+- **Create your first agent** → [Make your first agent](#sec-186)+- **Put it on your site** → [Share & embed](#sec-273)+- **Optional: register on-chain** → [Register on-chain](#sec-339)+- **Technical auth details** → [Authentication](#sec-090)----<a id="sec-141"></a>+<a id="sec-148"></a>> **Source:** `docs/economy-heartbeat.md` · [↑ table of contents](#table-of-contents)@@ -32069,13 +33766,13 @@ CRON_SECRET=… DURATION_MINUTES=10 node scripts/economy-heartbeat.mjs- **Undeployed endpoints are tolerated.** A target missing from the deployedbuild reports `status: 404` and never stops the others.-Related: [circulation engine](#sec-116) ·-[x402 ring economy](#sec-364) ·-[economy funding root](#sec-142) · [money map](#sec-191)+Related: [circulation engine](#sec-120) ·+[x402 ring economy](#sec-384) ·+[economy funding root](#sec-149) · [money map](#sec-203)----<a id="sec-142"></a>+<a id="sec-149"></a>> **Source:** `docs/economy-master.md` · [↑ table of contents](#table-of-contents)@@ -32226,16 +33923,61 @@ Three more guards bound what it takes:- **Working capital is protected.** An agent with an *enabled* sniper strategykeeps `AGENT_RECLAIM_TRADE_MULTIPLE` (default 2) times its own configured- per-trade size, so reclaim can never starve an agent that is actively trading.+ per-trade size **plus `MIN_OPERATIONAL_WALLET_SOL`** — everything one entry+ costs besides the buy itself: the token ATA's rent, fee and tip headroom, and+ the round-trip the rug/honeypot firewall simulates from that same wallet. The+ multiple alone was not enough: an arm sized at 0.002 SOL/trade kept a 0.004 SOL+ floor, which cannot pay for a simulation, so every entry aborted at the safety+ check and the arm looked funded on every dashboard while being unable to trade.An agent with no enabled strategy keeps only `AGENT_RECLAIM_IDLE_FLOOR_SOL`(default 0.005) of transaction-fee headroom.- **Committed capital is untouchable.** Any agent holding an `open` or `closing`sniper position is skipped outright (`capital_committed`).- **Bounded and non-oscillating.** At most `AGENT_RECLAIM_MAX_WALLETS` (default40) wallets per run, biggest balances first, and each sweep is sized by the same- `reclaimableSol()` invariant the engine reclaim uses — the agent is always left- at floor *plus* a buffer, so a topup can never immediately re-fund a wallet- reclaim just emptied.+ `reclaimableSol()` invariant the engine reclaim uses.++### The anti-oscillation invariant (learned the expensive way)++The bullet above used to claim reclaim could not fight a topup. That was true of+the **engine** topup, which reads the same float this module sweeps to. It was+not true of the **sniper auto-funder**+([`workers/agent-sniper/auto-funder.js`](../workers/agent-sniper/auto-funder.js)),+a different cron in a different Cloud Run service that refills opted-in agent+wallets. Its target sat *above* the reclaim floor, and neither side read the+other's number.++The result was a pure oscillation, visible on-chain on 2026-07-28 between 19:08+and 19:27: the funder pushed 0.24 SOL into two arms across six top-ups, the+reclaim swept each one back to the economy master minutes later, and the arms+never held a balance long enough to place a trade. It stopped only when the+funding master ran dry at 0.0157 SOL.++Both sides now read one module,+[`api/_lib/agent-funding-policy.js`](../api/_lib/agent-funding-policy.js), which+states the rule:++> **A reclaim floor must never sit below the funding target of the same wallet.**++`antiOscillationFloorSol()` returns that target for any wallet the funder manages+(`auto_fund_enabled = true`), and `agentReclaimFloorSol()` takes it as a hard+minimum, including for a *disabled* strategy, because the funder's opt-in flag,+not `enabled`, is what decides whether a refill is coming.++Both funding levels are **per-arm**, not flat, and come from the same module:++| Level | Value | Why |+| --- | --- | --- |+| `fundTriggerSol(agent)` | `max(SNIPER_AUTO_FUND_MIN_SOL, MIN_OPERATIONAL_WALLET_SOL + per-trade size)` | The old flat 0.02 trigger called an arm sized at 0.13 SOL/trade "healthy" while it sat on 0.035 SOL and could not place a single trade. |+| `fundTargetSol(agent)` | trigger + the same hysteresis band the flat pair had (default 0.03 SOL) | A bigger arm is refilled to a level it can trade from, without being refilled any *more often*. |++To see the fleet's real position — per-arm balance, what each one needs to place+its next trade, the deficit, and why any arm is not trading:++```bash+node scripts/sniper-fleet-restore.mjs # report only, nothing moves+node scripts/sniper-fleet-restore.mjs --apply --yes # top up the fundable arms+```Sweeps below `ECONOMY_SWEEPBACK_MIN_SOL` (0.01 SOL) are skipped as dust.@@ -32324,6 +34066,74 @@ is exposed on [`/api/admin/circulation-health`](../api/admin/circulation-health.alongside the circulation rails. The table is defined by migration`20260717230000_economy_fuel_swaps.sql` (and created lazily as a safety net).+**Step 3: top the USDC engines up directly.** Steps 1 and 2 keep **SOL** flowing,+but the two payers that do the platform's paid work — `x402-ring-payer` and+`a2a-payer` — *spend USDC*, and their only refill path was the rebalancer+swapping their **own** SOL for USDC on Jupiter. That path has a hole: a payer+holding neither spare SOL nor USDC cannot refill itself at all, however much+revenue the master is sitting on. On 2026-07-28 the ring payer ran at ~3 USDC+against a $10 floor and the a2a payer at 0.00, failing every `$10` ring-settle+leg with an SPL insufficient-funds error, while the master idled on 48 USDC one+hop away.++[`topUpUsdcEngines`](../api/_lib/economy-usdc-topup.js) closes it with a direct+master → payer USDC transfer: no swap, no slippage, one signature. Same guard+shape as the rest of the funding root:++- **Allowlisted.** Recipients come from `USDC_WALLETS` in+ [`api/_lib/economy-rebalance.js`](../api/_lib/economy-rebalance.js) — the same+ list the rebalancer's swap legs use, so the two refill paths can never disagree+ on who qualifies or at what floor. A role whose secret aliases to the master is+ skipped (it *is* the master).+- **Hysteresis, so it can't trickle.** A transfer arms only while a wallet is+ **below its floor**, and lifts it to `floor × ECONOMY_USDC_TOPUP_REFILL_MULTIPLE`+ (default 1.5×). A wallet between floor and target is left alone.+- **Triple-bounded.** Per transfer (`ECONOMY_USDC_TOPUP_PER_TRANSFER_USD`,+ default $15), per UTC day (`ECONOMY_USDC_TOPUP_DAILY_USD`, default $40), and a+ master keep-floor (`ECONOMY_USDC_TOPUP_MASTER_KEEP`, default $10) that leaves+ step 2 its own fuel. A cooldown (`ECONOMY_USDC_TOPUP_COOLDOWN_S`) bounds+ overlapping ticks.+- **Booked.** Every transfer lands in `economy_usdc_topups` (which drives the+ daily cap), mirrors to `audit_log` as `economy_usdc_topup`, and fires an ops+ alert.+- **Non-oscillating with sweepback.** Both recipients carry `holdsTokens` in the+ signer registry, so the token sweep treats their USDC as working capital+ instead of clawing each refill straight back on the next excess-mode run.++Preview exactly what the next tick would move, without signing anything:++```sh+node scripts/dry-usdc-topup.mjs+```++Set `ECONOMY_USDC_TOPUP_ENABLED=0` to disable. The sizing math is a pure function+(`planUsdcTopups`) covered by+[`tests/economy-usdc-topup.test.js`](../tests/economy-usdc-topup.test.js).++### Why the rebalancer alone was not enough++The rebalancer keeps each payer stocked in the asset it spends by swapping its+*own* holdings. When a self-pay wallet's total balance cannot satisfy **both** its+USDC floor and its fee-SOL target, its two legs fight: one run buys fee SOL with+USDC, the next sells that SOL back for USDC, forever. That ran 134 reversing+swaps and churned ~$900 of notional in 2.5 hours on 2026-07-28, paying two swap+fees and double slippage per round trip to end where it started.++Two invariants close it permanently, both in `planRebalance`:++1. **No opposing legs in one run** — the neediest leg wins; the other defers to+ the next run against fresh balances.+2. **The fee-SOL target is untouchable reserve on the `sol->usdc` leg.** Feeding+ the USDC floor out of SOL the wallet needs for fees just re-arms the opposite+ leg, so the target is held back and the two legs' arming conditions become+ mutually exclusive *across* runs, not just within one. The asymmetry is+ deliberate: `usdc->sol` may still draw USDC down to its reserve, because fee+ SOL is what keeps settles alive at all.++Step 3 is what makes those invariants affordable: a payer that is genuinely short+of both assets is now refilled from the root instead of being asked to+manufacture one asset out of the other.+## Lowest feesEvery transfer routes through `submitProtected` with `tipMode: 'off'` — **no Jito@@ -32346,6 +34156,12 @@ congestion, clamped to a hard ceiling.| `ECONOMY_FUEL_MIN_GAP_SOL` / `_TARGET_SOL` | no | Only refuel when the SOL gap is at least this (default 0.1); buy toward this spendable-SOL buffer (default 1.0). || `ECONOMY_FUEL_MAX_IMPACT_PCT` / `_SLIPPAGE_BPS` | no | Reject a route above this price impact (default 3%); swap slippage (default 100 bps). || `ECONOMY_FUEL_COOLDOWN_S` | no | Minimum seconds between fuel swaps (default 90), a belt against a double-swap when two topup ticks overlap. |+| `ECONOMY_USDC_TOPUP_ENABLED` | no | `0` disables the direct master→payer USDC refill (default on). |+| `ECONOMY_USDC_TOPUP_PER_TRANSFER_USD` / `_DAILY_USD` | no | USDC topup caps: max per transfer (default 15) and per UTC day (default 40). |+| `ECONOMY_USDC_TOPUP_MASTER_KEEP` | no | USDC the topup never spends the master below, so the SOL refuel keeps its own fuel. Default 10. |+| `ECONOMY_USDC_TOPUP_REFILL_MULTIPLE` | no | Lift a below-floor payer to `floor ×` this (default 1.5), so a refill buys runway instead of landing on the floor. |+| `ECONOMY_USDC_TOPUP_COOLDOWN_S` | no | Minimum seconds between money-moving topup runs (default 90). |+| `ECONOMY_REBALANCE_SOL_RESERVE` | no | SOL the rebalancer never swaps away from any wallet (default 0.03). Raise above a self-pay wallet's fee target as a live mitigation if the two legs ever churn. || `CRON_SECRET` | yes | Bearer auth for the `treasury-topup` cron (shared with every other cron; Cloud Scheduler sends it). || `SOLANA_RPC_URL` | no | Mainnet RPC (defaults to `api.mainnet-beta`). |@@ -32358,6 +34174,9 @@ node scripts/check-relayer-balances.mjs# Exercise the sweep against prod (real cron; safe — only funds registry wallets# below floor, bounded by the reserve/per-run caps). Returns the plan as JSON:curl -s -H "Authorization: Bearer $CRON_SECRET" https://three.ws/api/cron/treasury-topup | jq++# Preview the USDC leg alone (reads live balances, signs nothing):+node scripts/dry-usdc-topup.mjs```The JSON response reports `configured`, `master_sol`, `funded`, `failed`,@@ -32365,7 +34184,7 @@ The JSON response reports `configured`, `master_sol`, `funded`, `failed`,off-registry target reached the sweep and was blocked — investigate the caller.If the Cloud Scheduler job never fires, the-[economy heartbeat](#sec-141) dispatcher (and any external HTTP cron+[economy heartbeat](#sec-148) dispatcher (and any external HTTP cronpointed at `/api/cron/economy-tick`) keeps it — and every other cron — ticking.## Audit, accounting & breach monitoring@@ -32478,8 +34297,8 @@ The master is configured and funded, but the tree it feeds is only partly wired:`X402_AGENT_SOLANA_SECRET_BASE58`, and `X402_SEED_SOLANA_SECRET_BASE58` run thex402 agent-to-agent economy but are not `SOLANA_SIGNERS` entries, so the masterdoes not top them up. Whether it *should* is an operator call — x402 gas is- largely PayAI-sponsored (see [x402 ring economy](#sec-364) /- [autonomous x402](#sec-090)), so those wallets may intentionally not+ largely PayAI-sponsored (see [x402 ring economy](#sec-384) /+ [autonomous x402](#sec-092)), so those wallets may intentionally notneed funding from this master. To have the master keep them fueled, add them tothe registry with a floor.@@ -32487,13 +34306,13 @@ The master is configured and funded, but the tree it feeds is only partly wired:- [`api/_lib/solana-signers.js`](../api/_lib/solana-signers.js) — everyengine signer, its encoding, and how to fund/consolidate the economy wallets.-- [Circulation engine](#sec-116) — the autonomous agent-to-agent+- [Circulation engine](#sec-120) — the autonomous agent-to-agentactivity loop the funded engines drive.-- [x402 ring economy](#sec-364) — closed-loop in-house x402 settlement.+- [x402 ring economy](#sec-384) — closed-loop in-house x402 settlement.----<a id="sec-143"></a>+<a id="sec-150"></a>> **Source:** `docs/editor.md` · [↑ table of contents](#table-of-contents)@@ -32842,7 +34661,7 @@ The full contract lives in [specs/EDITOR_SPEC.md](https://github.com/nirholas/th----<a id="sec-144"></a>+<a id="sec-151"></a>> **Source:** `docs/embedding.md` · [↑ table of contents](#table-of-contents)@@ -33577,16 +35396,16 @@ The platform records anonymous embed impressions (country, referrer hostname) vi## See also-- [Architecture Overview](#sec-086)-- [Agent System Overview](#sec-057)-- [Web Component reference](#sec-355) — full attribute list-- [Widgets](#sec-358) — Widget Studio and widget types+- [Architecture Overview](#sec-088)+- [Agent System Overview](#sec-059)+- [Web Component reference](#sec-375) — full attribute list+- [Widgets](#sec-378) — Widget Studio and widget types- [specs/EMBED_SPEC.md](../specs/EMBED_SPEC.md) — authoritative web component spec- [specs/EMBED_HOST_PROTOCOL.md](../specs/EMBED_HOST_PROTOCOL.md) — versioned postMessage protocol----<a id="sec-145"></a>+<a id="sec-152"></a>> **Source:** `docs/embody.md` · [↑ table of contents](#table-of-contents)@@ -33689,14 +35508,14 @@ Embody is a thin, honest wire over pieces that already exist — no new pipeline## Related-- [Live embodiment](#sec-181) — the 3D Studio tools that persist and drive a body in chat.-- [x402 Paid Endpoints](#sec-362) — the full paid catalog and pricing.-- [x402 Buyer Client](#sec-359) — how to settle a 402 challenge from code.-- [Avatar creation](#sec-092) — generate a rigged avatar in the web UI.+- [Live embodiment](#sec-191) — the 3D Studio tools that persist and drive a body in chat.+- [x402 Paid Endpoints](#sec-382) — the full paid catalog and pricing.+- [x402 Buyer Client](#sec-379) — how to settle a 402 challenge from code.+- [Avatar creation](#sec-094) — generate a rigged avatar in the web UI.----<a id="sec-146"></a>+<a id="sec-153"></a>> **Source:** `docs/erc8004.md` · [↑ table of contents](#table-of-contents)@@ -34072,6 +35891,37 @@ The resolver tries multiple IPFS gateways in sequence when fetching metadata:Arweave (`ar://`) URIs are resolved through `arweave.net`.+### When the registration host blocks the browser++An agent card lives wherever its registrant put it, and most of those hosts send+no `Access-Control-Allow-Origin` header. A browser therefore cannot read them at+all: the fetch is blocked before the response is delivered, and the agent page+used to render "Could not fetch registration JSON: Failed to fetch" for every+such agent.++The browser tries the card's URL directly first (fast, no extra hop). When that+fetch fails, it retries through a first-party proxy that fetches server-side,+where the same-origin policy does not apply:++```+GET /api/erc8004/metadata?uri=<registration uri>+```++```sh+curl -s 'https://three.ws/api/erc8004/metadata?uri=ipfs://bafyExampleAgentCard'+# → { "data": { ...the agent card... }, "resolvedUrl": "https://ipfs.io/ipfs/bafyExampleAgentCard" }+```++Public, keyless, and rate-limited per IP. `ipfs://` and `ar://` are resolved to+their public gateways first, and successful lookups are edge-cached for ten+minutes. Because the URI comes off-chain from whoever registered the agent, the+fetch runs behind the platform SSRF guard+([api/_lib/ssrf-guard.js](../api/_lib/ssrf-guard.js)): DNS is validated, the+socket is pinned to the checked address, every redirect hop is re-validated, and+the response is capped at 2 MB. A URI pointing at a private or cloud-metadata+address is refused with `400 blocked_uri`; a host that answers with something+other than JSON is reported as `502 invalid_json` rather than passed through.+---## ENS and DNS integration@@ -34369,7 +36219,7 @@ The same MAINNET addresses apply to all 15 mainnets. The same TESTNET addresses----<a id="sec-147"></a>+<a id="sec-154"></a>> **Source:** `docs/erc8004/validation-attestation.md` · [↑ table of contents](#table-of-contents)@@ -34461,7 +36311,7 @@ ValidationRegistry is deployed, `/api/erc8004/validate` returns a clear ops erro----<a id="sec-148"></a>+<a id="sec-155"></a>> **Source:** `docs/examples.md` · [↑ table of contents](#table-of-contents)@@ -35194,7 +37044,7 @@ genuinely invested in the user's progress.----<a id="sec-149"></a>+<a id="sec-156"></a>> **Source:** `docs/fact-check.md` · [↑ table of contents](#table-of-contents)@@ -35231,7 +37081,7 @@ The fact-check pipeline (`runFactCheck`):The LLM routes through the platform's shared free-first policy (Groq and OpenRouter as funded defaults). Results are cached in Redis for 7 days keyed by a hash of the claim, strictness, and any image URL, so an identical claim (on either lane) never re-runs the live chain.-**The attestation** is a tamper-evident content digest: `sha256:` followed by the SHA-256 of a JSON object of `{ verdict, confidence, claim, source URLs }`. It is returned as a string field you can recompute to confirm the verdict was not altered. Note that this is a content hash, not an on-chain record; it is distinct from the platform's [SAS credentialed attestations](#sec-250) and [3D provenance anchoring](#sec-218), which do write to Solana.+**The attestation** is a tamper-evident content digest: `sha256:` followed by the SHA-256 of a JSON object of `{ verdict, confidence, claim, source URLs }`. It is returned as a string field you can recompute to confirm the verdict was not altered. Note that this is a content hash, not an on-chain record; it is distinct from the platform's [SAS credentialed attestations](#sec-268) and [3D provenance anchoring](#sec-235), which do write to Solana.**The benchmark** (`GET /api/fact-check-benchmark`) reads two committed files: a 40-claim fixture (10 per verdict class, deliberately time-stable and non-partisan) and a generated report from `scripts/fact-check-benchmark.mjs`, which runs those claims in-process against the real chain. The API never fabricates a score: if the runner has not executed in an environment, `ran` is false and `report` is null, and the page renders a designed "not yet run" empty state. Both the claim set and the scoring runner are linked from the page for inspection.@@ -35276,7 +37126,7 @@ Read the published benchmark:curl 'https://three.ws/api/fact-check-benchmark'```-Once the free quota is spent, the same POST returns `402` with an x402 challenge; pay it with any x402 client (for example `@three-ws/x402-fetch`) and retry. See [x402](#sec-366).+Once the free quota is spent, the same POST returns `402` with an x402 challenge; pay it with any x402 client (for example `@three-ws/x402-fetch`) and retry. See [x402](#sec-386).## States and limits@@ -35289,14 +37139,14 @@ Once the free quota is spent, the same POST returns `402` with an x402 challenge## Related-- [x402: paid agent skills](#sec-366): the payment rail the $0.10 lane rides-- [API reference: Fact Check API](#sec-082): the endpoint's full request and response reference-- [SAS credentialed attestations](#sec-250) and [3D provenance](#sec-218): the platform's on-chain attestation primitives (distinct from this content-hash attestation)+- [x402: paid agent skills](#sec-386): the payment rail the $0.10 lane rides+- [API reference: Fact Check API](#sec-084): the endpoint's full request and response reference+- [SAS credentialed attestations](#sec-268) and [3D provenance](#sec-235): the platform's on-chain attestation primitives (distinct from this content-hash attestation)- Pages: [/fact-check](https://three.ws/fact-check) · [/x402](https://three.ws/x402)----<a id="sec-150"></a>+<a id="sec-157"></a>> **Source:** `docs/financial-controls.md` · [↑ table of contents](#table-of-contents)@@ -35309,7 +37159,7 @@ on-chain transaction is captured, whether it is reconciled against the chain, anhow long it is retained** — plus the monitoring/breach controls around it and theopen gaps ranked by accounting/regulatory risk.-It is a companion to the [money map](#sec-191) (who receives what) and the+It is a companion to the [money map](#sec-203) (who receives what) and the[Solana signers runbook](../api/_lib/solana-signers.js) (thewallets). Keep it in sync with the code — every row cites its source.@@ -35562,20 +37412,20 @@ Ranked by accounting/regulatory risk. Each is a tracked remediation item.re-run `check-relayer-balances.mjs` to confirm balances.- **Before adding a paid flow:** it is not done until it writes an append-onlyledger row with the on-chain signature and a `UNIQUE` idempotency key, and is- added to this register and the [money map](#sec-191).+ added to this register and the [money map](#sec-203).---## Related-- [Money map](#sec-191) — who receives each payment.-- [x402 revenue & receipts](#sec-363) — the x402 recording detail.-- [x402 endpoints](#sec-362) — the paid endpoint catalog.+- [Money map](#sec-203) — who receives each payment.+- [x402 revenue & receipts](#sec-383) — the x402 recording detail.+- [x402 endpoints](#sec-382) — the paid endpoint catalog.- [Solana signers runbook](../api/_lib/solana-signers.js) — the wallets + funding.----<a id="sec-151"></a>+<a id="sec-158"></a>> **Source:** `docs/forge-background-generation.md` · [↑ table of contents](#table-of-contents)@@ -35688,7 +37538,7 @@ and the notification preference model in----<a id="sec-152"></a>+<a id="sec-159"></a>> **Source:** `docs/forge-off.md` · [↑ table of contents](#table-of-contents)@@ -35805,7 +37655,7 @@ Backfill a past week's winner (owner): `GET /api/cron/forge-off-crown?week=YYYY-----<a id="sec-153"></a>+<a id="sec-160"></a>> **Source:** `docs/forge-pipeline.md` · [↑ table of contents](#table-of-contents)@@ -35813,7 +37663,7 @@ Backfill a past week's winner (owner): `GET /api/cron/forge-off-crown?week=YYYY-This is the engineering guide to the Forge, the text/image/sketch to 3D generation system behind [/forge](https://three.ws/forge), the free MCP tools, and every agent-facing 3D endpoint. It maps the whole path a generation takes: entry points, the engine grid, free-first routing, the job lifecycle, failover, persistence, GPU workers, post-processing, and payments.-If you want the product-level overview, read [Forge](#sec-154). If you want the plain-language version, read [How the Forge works](#sec-160). This document is for people changing the pipeline.+If you want the product-level overview, read [Forge](#sec-161). If you want the plain-language version, read [How the Forge works](#sec-169). This document is for people changing the pipeline.## Bird's-eye view@@ -35950,7 +37800,7 @@ Async jobs get an opaque HMAC-signed token (`f1.<payload>.<sig>`, `api/_lib/forg### Poll-`GET /api/forge?job=<id>` returns `status`: `queued`, `running`, `done` (with `glb_url`, `viewer_url`, and the `path`/`tier`/`backend` that actually produced it), or `failed`. Polling is free and unauthenticated. The in-flight job id is also written to `localStorage`, so an interrupted browser session resumes polling for up to 30 minutes; background completion persists the result to the user's gallery either way (see [Background generation](#sec-151)).+`GET /api/forge?job=<id>` returns `status`: `queued`, `running`, `done` (with `glb_url`, `viewer_url`, and the `path`/`tier`/`backend` that actually produced it), or `failed`. Polling is free and unauthenticated. The in-flight job id is also written to `localStorage`, so an interrupted browser session resumes polling for up to 30 minutes; background completion persists the result to the user's gallery either way (see [Background generation](#sec-158)).**Poll-time failover** (`api/_lib/forge-failover.js`) closes the nastier gap: a self-host worker can accept a task and fail it minutes later, in a poll handled by a different instance that no longer holds the request. On a failed poll the module recovers the original inputs (prompt plus reference image) from the creation row, resubmits to the next configured lane, and binds old handle to new handle in Redis (2 hour TTL). The client keeps polling the same job id and simply sees `status: running` with a new `backend`. Hops are capped by `MAX_FAILOVER_HOPS = 3` (one primary plus up to three backups). The redispatch order is `trellis_selfhost`, `hunyuan3d`, `trellis`: HuggingFace is excluded because its provider blocks through the whole generation (cannot be ridden from a poll), and NVIDIA is excluded because poll-time redispatch always reconstructs from a stored reference image, which NIM rejects.@@ -36053,17 +37903,17 @@ Fast diagnostics: `forge_creations` carries per-generation backend, status, erro## Related-- [Forge](#sec-154), the product-level doc for the /forge surface.-- [How the Forge works](#sec-160), the plain-language explainer.+- [Forge](#sec-161), the product-level doc for the /forge surface.+- [How the Forge works](#sec-169), the plain-language explainer.- [3D pipeline](#sec-003), the pay-per-stage x402 pipeline (rig, remesh, gameready, stylize, rembg).- [3D asset pipeline](#sec-002), formats and the animation/conversion flow.-- [Avatar pipeline](#sec-095), the selfie-to-avatar reconstruction flow.-- [Background generation](#sec-151), job resume and gallery persistence.+- [Avatar pipeline](#sec-097), the selfie-to-avatar reconstruction flow.+- [Background generation](#sec-158), job resume and gallery persistence.- `workers/README.md`, the worker-by-worker operational reference.----<a id="sec-154"></a>+<a id="sec-161"></a>> **Source:** `docs/forge.md` · [↑ table of contents](#table-of-contents)@@ -36202,16 +38052,158 @@ dashboard at [/quality-bench](https://three.ws/quality-bench) (internal).## Related-- [The Forge pipeline](#sec-153) is the architecture deep dive: the engine grid, routing, failover, job lifecycle, workers, and payments, end to end. [How the Forge works](#sec-160) is the same story in plain language.-- [Image to 3D](#sec-165) is the photo lane opened directly at [/image-to-3d](https://three.ws/image-to-3d).+- [The Forge pipeline](#sec-160) is the architecture deep dive: the engine grid, routing, failover, job lifecycle, workers, and payments, end to end. [How the Forge works](#sec-169) is the same story in plain language.+- [Image to 3D](#sec-174) is the photo lane opened directly at [/image-to-3d](https://three.ws/image-to-3d).- [/forge-max](https://three.ws/forge-max) is the maximum-quality lane opened directly: the same Forge with the High tier pinned on arrival (200k-poly target, 4K PBR and HD textures, subject-aware engine routing). `?tier=draft|standard|high` presets the quality selector on any Forge URL the same way. The High tier's $THREE hold-or-pay gate applies unchanged; BYOK engines (your own Meshy, Tripo, or Rodin key) are exempt as always. For DamagedHelmet-class artist benchmarks, remember the ceiling is the current state of generative 3D, not the routing: this lane maxes every budget the engines expose, and [Measuring realism](#measuring-realism) is how we track that ceiling moving.-- [Diorama](#sec-139) forges a whole scene of Forge objects into one explorable world.+- [Diorama](#sec-146) forges a whole scene of Forge objects into one explorable world.- The 3D generation architecture: [3D pipeline](#sec-003), [3D asset pipeline](#sec-002), [3D API](#sec-001).- Pages: [/create](https://three.ws/create) (the avatar creator), [/scene](https://three.ws/scene) (Scene Studio), [/restyle](https://three.ws/restyle) (re-skin a GLB), [/gallery](https://three.ws/gallery).----<a id="sec-155"></a>+<a id="sec-162"></a>++> **Source:** `docs/forged.md` · [↑ table of contents](#table-of-contents)++# The Agent-Forged Gallery (/forged)++[three.ws/forged](https://three.ws/forged) is a public gallery of 3D props that+the platform's own autonomous agents bought with real USDC over the+[x402 payment protocol](#sec-386). Nothing on the page is curated or seeded by+hand: an agent wallet paid the Forge, the Forge generated the prop, the payment+settled on Solana mainnet, and the finished asset landed in the gallery carrying+its receipt. Every card shows the price paid, the paying agent wallet, and a+link to the settlement transaction on Solscan. Before the first paid generation+completes, the feed is honestly empty.++## What a visitor sees++The page ([pages/forged.html](../pages/forged.html), rendered by+[src/forged-gallery.js](../src/forged-gallery.js)) loads the feed from+`GET /api/forged?limit=100` and renders:++- **Hero stats**, live from the feed: how many props have been forged, the total+ USDC settled on-chain, and how many generations are still in flight.+- **A card per prop.** Each card is a live, auto-rotating `<model-viewer>` of+ the GLB, the prompt the agent paid for, when it was forged, and its novelty+ score. Clicking the model or the Preview button opens it in the interactive+ viewer (`/app`); Download fetches the GLB directly.+- **The receipt strip**, the part that makes this gallery different: the USDC+ price the agent settled, the paying agent wallet (shortened), and a+ `receipt` link to the Solana settlement transaction on Solscan.+- **Search, sort, and filters.** Prompt search (press `/` to focus), sort by+ newest, oldest, highest price, or most novel, and category chips built from+ whatever categories are actually present in the feed. Filtering and sorting+ happen client-side over the loaded feed.+- **Designed empty, no-match, and error states.** The empty state explains that+ the autonomous loop pays the Forge for a new prop every hour; the error state+ has a retry button.++## Where the assets come from++The buyer is the platform's [autonomous x402 loop](#sec-092), the+scheduled engine that pays real USDC to call the platform's own paid endpoints.+Its `forge` pipeline+([api/_lib/x402/pipelines/forge-content.js](../api/_lib/x402/pipelines/forge-content.js))+runs as a registry entry inside that loop, and on each run it:++1. **Picks the next prop deterministically.** A combinatorial catalog (club+ decor, AR objects, diorama set-dressing, avatar items, vehicles, containers,+ furniture, terrain tiles) is crossed with style and finish axes into roughly+ 5,000 distinct prompts, and a per-hour hash walk selects one. Two runs in the+ same hour pick the same prop, which the paid endpoint's idempotency guard+ collapses instead of double-charging.+2. **Pays `POST /api/x402/forge` for a standard-tier generation.** The payment+ is a real on-chain USDC transfer from the loop's seeder wallet, settled by+ the platform's self-hosted facilitator on Solana mainnet. The same seeder+ wallet is the `x402-ring-payer` signer in the+ [x402 ring economy](#sec-384), and the loop's daily spend cap+ applies to these calls like every other.+3. **Scores diversity.** The prompt is embedded (a configured provider when+ available, a deterministic local feature-hash space otherwise) and scored+ against the last 200 props in the same vector space: novelty is one minus+ the maximum cosine similarity, and a k-means pass assigns a cluster id. This+ is the metric behind the "most novel" sort.+4. **Records the prop with its receipt.** The row lands in the+ `forge_autonomous_props` table carrying the prompt, category, tier, GLB URL,+ embedding, novelty, cluster id, and the payment provenance: payer wallet,+ amount in USDC atomics, and the settlement signature. Async generations are+ stored as `queued` with a job token; each subsequent run polls pending jobs+ toward `done`, so the gallery converges on renderable assets without a+ dedicated cron.++## The API: GET /api/forged++[api/forged.js](../api/forged.js) serves the public feed over the+`forge_autonomous_props` table. It is a free, CORS-open, rate-limited GET with+a 20-second shared cache.++| Query param | Default | Behavior |+|---|---|---|+| `limit` | `30` | Page size, clamped to 1..100. |+| `status=all` | off | Include `queued` and `failed` rows (audit view). By default only `done` rows with a GLB are returned. |+| `category` | none | Filter by prop family. The handler accepts a fixed set: `crate`, `barrel`, `furniture`, `terrain`. Any other value returns `400 invalid_category`. |++The response carries the props plus aggregate stats:++```json+{+ "props": [+ {+ "id": 42,+ "ts": "2026-07-29T14:00:11.000Z",+ "prompt": "a barrel with riveted hoops, steampunk with brass fittings, rusted and patinated, 3D prop",+ "category": "container",+ "tier": "standard",+ "status": "done",+ "glb_url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/nvidia/5ab878cd-513d-4fb6-94b8-d389f7d7e433.glb",+ "novelty": 0.41,+ "cluster_id": 3,+ "price_usdc": 0.05,+ "payer": "7sk…full base58 wallet…",+ "payer_short": "7skQxs…9fWn",+ "tx_sig": "5Yw…settlement signature…",+ "explorer_url": "https://solscan.io/tx/5Yw…",+ "viewer_url": "/app?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fnvidia%2F5ab878cd-513d-4fb6-94b8-d389f7d7e433.glb"+ }+ ],+ "stats": {+ "total": 120,+ "done": 112,+ "queued": 5,+ "spent_usdc": 5.6,+ "categories": { "container": 18, "furniture": 15 },+ "latest_ts": "2026-07-29T14:00:11.000Z"+ }+}+```++`price_usdc` is derived from the stored atomic amount (6 decimals), and+`explorer_url` is the Solscan link for the settlement signature. On a transient+database outage the endpoint returns `503 db_unavailable` with a+`retry-after: 5` header instead of a hard failure.++Try it:++```bash+curl -s 'https://three.ws/api/forged?limit=5' | python3 -m json.tool+```++The endpoint is also listed in the [API reference](#sec-084).++## Related++- [Autonomous x402 loop](#sec-092): the engine that buys these+ assets, its spend caps, and where every call is logged.+- [x402 ring economy](#sec-384): the wider self-paid endpoint+ economy the seeder wallet participates in.+- [How the Forge works](#sec-169): the generation pipeline the+ agents are paying for.+- [x402 on three.ws](#sec-386): the payment protocol itself.++---++<a id="sec-163"></a>> **Source:** `docs/galaxy.md` · [↑ table of contents](#table-of-contents)@@ -36289,13 +38281,108 @@ curl -X POST 'https://three.ws/api/galaxy' \## Related-- [IBM Granite suite](#sec-164): the full set of watsonx-powered features on three.ws, including the IBM-branded galaxy variant at `/ibm/galaxy`.-- [Agent system](#sec-057) and [Agent reputation](#sec-051): what a "star" is and how agents earn standing.+- [IBM Granite suite](#sec-173): the full set of watsonx-powered features on three.ws, including the IBM-branded galaxy variant at `/ibm/galaxy`.+- [Agent system](#sec-059) and [Agent reputation](#sec-052): what a "star" is and how agents earn standing.- Pages: [/galaxy](https://three.ws/galaxy), [/create](https://three.ws/create), [/agents](https://three.ws/agents).----<a id="sec-156"></a>+<a id="sec-164"></a>++> **Source:** `docs/generation-watch.md` · [↑ table of contents](#table-of-contents)++# Generation Watch (/watch)++[three.ws/watch](https://three.ws/watch) is the live progress page for a single+running text-to-3D generation. Open it with a `?job=` link and it shows a real+countdown ring, the concept art the generator painted as its first step, and+then hands you off into the interactive 3D viewer automatically the moment the+model is ready. It exists so someone waiting on a generation started outside+the browser (for example inside a ChatGPT conversation) can watch it happen in+a real tab instead of polling a chat window.++The page is a single self-contained file,+[public/watch.html](../public/watch.html), served at `/watch`.++## How a generation gets a watch URL++Watch links are minted by the 3D Studio Actions surface, `POST /api/3d/studio`+([api/3d/studio.js](../api/3d/studio.js)), the REST contract behind the+[three.ws 3D Studio custom GPT](#sec-118). Fast generations+return `status: "done"` with the model URLs directly and never need a watch+page. When a job cannot finish inside the request window, the response is+`status: "pending"` and carries three handles:++- `job`: the job token (a signed handle or a bare prediction id),+- `poll`: the API path to poll (`/api/3d/studio?job=<id>`),+- `watchUrl`: `https://three.ws/watch?job=<id>&title=<prompt>`.++The GPT hands `watchUrl` to the user; every subsequent pending poll response+repeats it. The optional `title` parameter is the prompt: the page puts it in+the header and the tab title, and carries it through to the viewer so the+finished model opens labeled.++You can build the same link by hand for any valid job token. A missing or+malformed `job` parameter (the page enforces the same handle shape the API+does) lands on the designed empty state, which points to+[three.ws/forge](https://three.ws/forge) instead of erroring.++## What the page shows++The page polls `GET /api/3d/studio?job=<id>` and moves through four states:++- **Waiting.** A countdown ring with the estimated time remaining, updated+ locally at 4 Hz between polls so the timer never freezes. Until the API+ reports a first `etaSeconds` estimate, the ring spins in indeterminate mode+ and the label shows elapsed time ("warming up"); once an estimate arrives the+ ring fills toward completion. The phase line reflects the pipeline's real+ two-step flow: "Painting the concept" while the reference image is being+ generated, then "Sculpting the 3D mesh" once it exists, with the quality tier+ (draft, standard, high) named when known.+- **Concept art.** As soon as the poll response carries `previewImageUrl` (the+ painted reference image, the first step of the text-to-3D pipeline), it fades+ in with the caption "Concept art, now being sculpted into 3D". This is the+ same paint-then-reconstruct flow described in+ [How the Forge works](#sec-169).+- **Ready.** When the poll returns `status: "done"`, the page shows "opening+ the viewer" and redirects itself into the interactive viewer after a short+ beat, using the API's `viewerUrl` (or building a `/viewer?src=<glb>` link+ from `glbUrl`). A manual link is rendered in case the redirect is blocked.+- **Error.** An upstream failure (`status: "error"`), a stale or malformed+ link (HTTP 400), or a job that produces no viewer link shows an honest error+ with a one-click "Forge it again" path. Generation is free, so retrying+ costs nothing.++Polling is adaptive: the interval scales with the remaining estimate (clamped+between 4 and 10 seconds), a 429 respects the server's `retry_after`, and a+network blip just retries after 6 seconds. If nothing has finished after 40+minutes the page stops itself and says so, rather than spinning forever in a+forgotten tab.++## Relation to background generation++The watch page is a viewport, not the tracker. All job state lives+server-side: the platform tracks every generation to completion whether or not+any tab is watching, finished models land in the creator's gallery, and+unattended completions notify through the bell, push, and email channels. That+machinery is documented in+[Background generation and completion notifications](#sec-158).+Closing the watch tab mid-job therefore loses nothing; reopening the same+`?job=` link resumes exactly where the generation actually is.++## Related++- [How the Forge works](#sec-169): the pipeline behind the+ countdown.+- [Background generation](#sec-158): server-side+ tracking, resume, and notifications.+- [The 3D Studio GPT](#sec-118): the main surface that hands+ out watch links.+- [API reference](#sec-084): the full `/api/3d/studio` contract.++---++<a id="sec-165"></a>> **Source:** `docs/genesis.md` · [↑ table of contents](#table-of-contents)@@ -36320,8 +38407,8 @@ Genesis collapses that into a single guided flow with a real progress bar drivenreal job state, so a first-time visitor goes from an idea to a wallet-holding,animation-ready agent they fully own in under a minute of active work. It is thefront door: the artifact it produces is a first-class agent that plugs straight-into [Agent Studio](#sec-056), the [economy](#sec-089),-[breeding](#sec-157), and every embed surface.+into [Agent Studio](#sec-057), the [economy](#sec-091),+[breeding](#sec-166), and every embed surface.## How it works@@ -36342,7 +38429,7 @@ never invents a shortcut path; it orchestrates the real ones.Genesis resolves it via `GET /api/agents?avatar_id=...`, then calls`POST /api/agents/:id/wallet/provision` to guarantee both a custodial Solanaaddress and a custodial EVM address exist. These are real custodial keys held for- the agent (see [Agent Wallets](#sec-063) and [Custody](#sec-135)),+ the agent (see [Agent Wallets](#sec-065) and [Custody](#sec-140)),Solana first because Solana is the home chain.- **Persona and voice.** `POST /api/persona/extract` synthesizes a structuredin-character system prompt from your description, running through the shared LLM@@ -36351,7 +38438,7 @@ never invents a shortcut path; it orchestrates the real ones.load from `/api/tts/voices`. Your chosen name, persona, and voice are persistedwith `PATCH /api/agents/:id`.- **On-chain identity (optional).** The final step mints a real- [ERC-8004](#sec-146) identity record for the agent and returns a real tx+ [ERC-8004](#sec-153) identity record for the agent and returns a real txhash, defaulting to Base (chain id 8453) to match the rest of the platform's EVMidentity layer. This step is optional: the agent is fully functional without it.@@ -36372,15 +38459,15 @@ never invents a shortcut path; it orchestrates the real ones.your prompt; edit the name and pick a voice, then save.6. **Optionally bind an on-chain identity.** One click registers the ERC-8004 recordand shows the returned transaction hash.-7. **You now own a complete agent.** Open it in [Agent Studio](#sec-056) to- keep authoring, drop it on a site via [Integrations](#sec-166), or breed- it in [Agent Genome](#sec-157).+7. **You now own a complete agent.** Open it in [Agent Studio](#sec-057) to+ keep authoring, drop it on a site via [Integrations](#sec-175), or breed+ it in [Agent Genome](#sec-166).## ExamplesGenesis is a browser flow, but its endpoints are the public agent APIs. This drivesthe same body-generation step from a script (see-[API reference](#sec-082) and [Authentication](#sec-088) for+[API reference](#sec-084) and [Authentication](#sec-090) forthe session cookie or bearer token):```bash@@ -36431,17 +38518,17 @@ curl -s -X POST "https://three.ws/api/agents/$AGENT_ID/wallet/provision" \## Related-- [Agent Studio](#sec-056): keep authoring the agent Genesis created-- [Agent Genome](#sec-157): breed two agents into an inherited child-- [Avatar Reconstruction](#sec-096): the selfie-to-3D pipeline-- [Agent Wallets](#sec-063) and [Custody](#sec-135): the custodial keys-- [ERC-8004](#sec-146): the on-chain identity record-- [Persona Hub](#sec-214): how personas are synthesized+- [Agent Studio](#sec-057): keep authoring the agent Genesis created+- [Agent Genome](#sec-166): breed two agents into an inherited child+- [Avatar Reconstruction](#sec-098): the selfie-to-3D pipeline+- [Agent Wallets](#sec-065) and [Custody](#sec-140): the custodial keys+- [ERC-8004](#sec-153): the on-chain identity record+- [Persona Hub](#sec-230): how personas are synthesized- Pages: [/genesis](https://three.ws/genesis), [/create](https://three.ws/create), [/agent-studio](https://three.ws/agent-studio)----<a id="sec-157"></a>+<a id="sec-166"></a>> **Source:** `docs/genome.md` · [↑ table of contents](#table-of-contents)@@ -36523,7 +38610,7 @@ parents and the same seed it always derives the identical child.## ExamplesPreview a pairing (read-only, nothing minted). See-[Authentication](#sec-088) for the token or session cookie:+[Authentication](#sec-090) for the token or session cookie:```bashcurl -s -X POST https://three.ws/api/genome/preview \@@ -36574,16 +38661,16 @@ curl -s "https://three.ws/api/genome/lineage?agentId=<child-uuid>&verify=1"## Related-- [Instant Agent Genesis](#sec-156): mint the parents in under a minute-- [Agent Skills](#sec-054): the skill licenses that recombine-- [Agent Wallets](#sec-063): the fresh child wallet-- [Agent Reputation](#sec-051): how pedigree feeds standing-- [ERC-8004](#sec-146): on-chain identity for bred agents+- [Instant Agent Genesis](#sec-165): mint the parents in under a minute+- [Agent Skills](#sec-055): the skill licenses that recombine+- [Agent Wallets](#sec-065): the fresh child wallet+- [Agent Reputation](#sec-052): how pedigree feeds standing+- [ERC-8004](#sec-153): on-chain identity for bred agents- Pages: [/genome](https://three.ws/genome), [/agent-studio](https://three.ws/agent-studio)----<a id="sec-158"></a>+<a id="sec-167"></a>> **Source:** `docs/guardian.md` · [↑ table of contents](#table-of-contents)@@ -36609,7 +38696,7 @@ The owner sets this up from their own wallet hub (naming guardians, an approvalThe response sorts agents that need your action first, then those with an open process, then the rest, and reports how many need you.-**The safety rails** (detailed in [custody](#sec-135)) are enforced by the recovery API, not the console:+**The safety rails** (detailed in [custody](#sec-140)) are enforced by the recovery API, not the console:- The requester cannot approve their own takeover; at least one other guardian must approve.- The wallet auto-freezes for autonomous spend the moment a request opens (the real owner's own withdrawal stays open).@@ -36662,14 +38749,14 @@ The console reads this on load, resolves your viewer id (so it can tell whether## Related-- [Custody you can verify](#sec-135) - the full recovery and inheritance model, the freeze switch, spend limits, and proof-of-custody-- [Financial controls](#sec-150) - the plain-English spend rules on the same wallet rails+- [Custody you can verify](#sec-140) - the full recovery and inheritance model, the freeze switch, spend limits, and proof-of-custody+- [Financial controls](#sec-157) - the plain-English spend rules on the same wallet rails- [/integrity](https://three.ws/integrity) - the public Merkle attestation of every custodial wallet- [/proof](https://three.ws/proof) - verify your own wallet's inclusion in the attestation, in your browser----<a id="sec-159"></a>+<a id="sec-168"></a>> **Source:** `docs/hold-to-access.md` · [↑ table of contents](#table-of-contents)@@ -36882,19 +38969,19 @@ worlds unaffected.## Related-- [Validation](#sec-351) — the quality gate every model passes before publish.+- [Validation](#sec-371) — the quality gate every model passes before publish.- [Pricing catalog](../api/_lib/pricing/catalog.js) — fixed-price actions the discount applies to.- [`/three`](../pages/three.html) — the holder-facing tier page that surfaces this ladder.----<a id="sec-160"></a>+<a id="sec-169"></a>> **Source:** `docs/how-forge-works.md` · [↑ table of contents](#table-of-contents)# How the Forge works, in plain language-You type "a weathered brass diving helmet" at [three.ws/forge](https://three.ws/forge), and about half a minute later you are orbiting a real, textured 3D model you can download, view in AR, or drop into a scene. No account, no key, no cost. This page explains what actually happens in between, without the engineering detail. (If you want that, read the [architecture deep dive](#sec-153).)+You type "a weathered brass diving helmet" at [three.ws/forge](https://three.ws/forge), and about half a minute later you are orbiting a real, textured 3D model you can download, view in AR, or drop into a scene. No account, no key, no cost. This page explains what actually happens in between, without the engineering detail. (If you want that, read the [architecture deep dive](#sec-160).)## The five steps every generation takes@@ -36928,17 +39015,17 @@ A finished model is a starting point, not a dead end:## Agents use the exact same machinery-Everything above is also a tool call. AI agents (Claude, ChatGPT, or your own) generate models through our [free MCP server](#sec-181) or plain HTTP, and other agents pay per call with USDC over [x402](#sec-366), no account needed. The page you use and the API an agent uses are the same pipeline underneath.+Everything above is also a tool call. AI agents (Claude, ChatGPT, or your own) generate models through our [free MCP server](#sec-191) or plain HTTP, and other agents pay per call with USDC over [x402](#sec-386), no account needed. The page you use and the API an agent uses are the same pipeline underneath.## Try it- Type a prompt: [three.ws/forge](https://three.ws/forge)- Turn photos into a model: [three.ws/image-to-3d](https://three.ws/image-to-3d)-- The full technical breakdown: [the Forge pipeline deep dive](#sec-153)+- The full technical breakdown: [the Forge pipeline deep dive](#sec-160)----<a id="sec-161"></a>+<a id="sec-170"></a>> **Source:** `docs/how-it-works.md` · [↑ table of contents](#table-of-contents)@@ -36946,7 +39033,7 @@ Everything above is also a tool call. AI agents (Claude, ChatGPT, or your own) gThis page is the load-bearing mental model. If you're trying to figure out where a feature lives, how a request flows, or which layer to extend — start here.-For the full deep dive on internals, see [Architecture overview](#sec-086). For the actual JS API, see [JavaScript API](#sec-170) and [REST API](#sec-082). This document zooms out to *how it all fits together*.+For the full deep dive on internals, see [Architecture overview](#sec-088). For the actual JS API, see [JavaScript API](#sec-179) and [REST API](#sec-084). This document zooms out to *how it all fits together*.---@@ -36993,10 +39080,10 @@ The whole stack is split into four horizontal strata. Each layer can run on its└──────────────────────────────────────────────┘```-- **Viewer layer** — pure three.js. Knows nothing about agents, brains, or wallets. Useful on its own as a glTF inspector and as the rendering engine for Turntable / Animation Gallery widgets. See [Layers](#sec-173) for the contract.-- **Agent layer** — turns a static GLB into a presence. LLM tool-loop, skill registry, memory, and a continuous emotion blend that drives morphs and gaze. See [Agent system](#sec-057).-- **Identity layer** — durability across sessions, devices, and embed hosts. Wallet auth, on-chain registration, IPFS-pinned manifest bundles, signed action diary. Entirely optional. See [ERC-8004](#sec-146) and [Solana agents](#sec-266).-- **Embed layer**: the public face. The `<agent-3d>` custom element, ten widget variants, iframe embeds, the CDN bundle, the SPA, and the route table in `vercel.json` (read at runtime by the Cloud Run server). See [Embedding](#sec-144).+- **Viewer layer** — pure three.js. Knows nothing about agents, brains, or wallets. Useful on its own as a glTF inspector and as the rendering engine for Turntable / Animation Gallery widgets. See [Layers](#sec-183) for the contract.+- **Agent layer** — turns a static GLB into a presence. LLM tool-loop, skill registry, memory, and a continuous emotion blend that drives morphs and gaze. See [Agent system](#sec-059).+- **Identity layer** — durability across sessions, devices, and embed hosts. Wallet auth, on-chain registration, IPFS-pinned manifest bundles, signed action diary. Entirely optional. See [ERC-8004](#sec-153) and [Solana agents](#sec-285).+- **Embed layer**: the public face. The `<agent-3d>` custom element, ten widget variants, iframe embeds, the CDN bundle, the SPA, and the route table in `vercel.json` (read at runtime by the Cloud Run server). See [Embedding](#sec-151).The four layers communicate through one event bus (`agent-protocol`). Every meaningful action is a `CustomEvent` on a singleton. That single design choice is why you can swap the avatar for a 2D sprite, the runtime for a different LLM, or memory for a vector store — and nothing else changes.@@ -37029,7 +39116,7 @@ Three modes, all configurable per agent:| **Self-hosted proxy** | You want to manage cost or use a private model | Set `key-proxy="https://yourapp.com/api/llm"` to point at your own serverless function that injects keys before forwarding to the provider. Keys never reach the client. || **Direct (advanced)** | Local-only experiments | The runtime calls the provider directly if you pass an `api-key` attribute explicitly. Don't ship this to a public page. |-The platform's own chat surfaces run on the multi-model brain router at [`/api/brain/chat`](#sec-082), which supports Anthropic, OpenAI, and Qwen natively with OpenRouter failover; model ids include `claude-opus-4-7`, `claude-sonnet-4-6`, `claude-haiku-4-5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `qwen-plus`, and others.+The platform's own chat surfaces run on the multi-model brain router at [`/api/brain/chat`](#sec-084), which supports Anthropic, OpenAI, and Qwen natively with OpenRouter failover; model ids include `claude-opus-4-7`, `claude-sonnet-4-6`, `claude-haiku-4-5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `qwen-plus`, and others.---@@ -37037,8 +39124,8 @@ The platform's own chat surfaces run on the multi-model brain router at [`/api/bThree production paths. Pick whichever fits your use case:-- **Character Builder** — full-body character builder for stylised humanoids. Pick a base mesh, swap clothing/accessories/hairstyles, save. The output is a rigged GLB. See [character-studio.md](#sec-114).-- **Selfie capture** — upload a photo, get a rigged 3D version of yourself in ~60 seconds. See [avatar-creation.md](#sec-092).+- **Character Builder** — full-body character builder for stylised humanoids. Pick a base mesh, swap clothing/accessories/hairstyles, save. The output is a rigged GLB. See [character-studio.md](#sec-117).+- **Selfie capture** — upload a photo, get a rigged 3D version of yourself in ~60 seconds. See [avatar-creation.md](#sec-094).- **Upload your own** — any glTF 2.0 / GLB with a humanoid rig works. Drop the file into the editor at [three.ws/create](https://three.ws/create) or POST to `/api/avatars`.Every avatar ends up as a hosted GLB URL (served from the first-party asset CDN at `three.ws/cdn/<key>`) plus a database record. When you wire one into an agent, the agent's manifest references it under `body.uri`.@@ -37066,7 +39153,7 @@ On-chain identity is optional. Most agents work fine without it. You'd want it w- **You want delegated wallet permissions.** ERC-7710 lets you sign once per session and grant the agent scoped, time-bound permission to act on-chain — no per-transaction prompts.- **You want a portable address.** `agent://base/42` is a stable, resolver-agnostic URI. Any client that speaks the protocol can load it.-See [erc8004.md](#sec-146) and [solana.md](#sec-266) for the registration flows.+See [erc8004.md](#sec-153) and [solana.md](#sec-285) for the registration flows.---@@ -37076,7 +39163,7 @@ Three independent mechanisms, used as needed:- **x402** — pay-per-call USDC for paid API endpoints. Every paid endpoint declares itself in [`/.well-known/x402.json`](https://three.ws/.well-known/x402.json). Other agents (or humans with a wallet) can call paid endpoints with a single signed payment header.- **pump.fun** — launch a Solana SPL token tied to your agent. The platform handles the bonding curve, the token metadata, and the embed.-- **AWS Marketplace** — enterprise subscriptions billable through AWS. See [aws-marketplace.md](#sec-103). Subscriptions auto-issue an x402 API key via the marketplace entitlement service.+- **AWS Marketplace** — enterprise subscriptions billable through AWS. See [aws-marketplace.md](#sec-105). Subscriptions auto-issue an x402 API key via the marketplace entitlement service.You can mix these per agent. A common pattern: an agent has a free public persona on the platform, exposes one paid x402 skill for power users, and accepts donations via a pump.fun token.@@ -37089,27 +39176,27 @@ Quick lookup for "I want to ship X":| You want… | Reach for… ||---|---|| A 3D character on a marketing page | The CDN script + `<agent-3d>` |-| A character in Notion / Webflow / Framer | An iframe widget from [Widget Studio](#sec-357) |+| A character in Notion / Webflow / Framer | An iframe widget from [Widget Studio](#sec-377) || A talking AI sidekick that follows visitors | `<agent-3d mode="floating">` |-| A character that controls a scene from page events | The JS API (`agent.say()`, `agent.ask()`) — see [js-api.md](#sec-170) |+| A character that controls a scene from page events | The JS API (`agent.say()`, `agent.ask()`) — see [js-api.md](#sec-179) || Programmatic avatar viewing/creation in your own app | `@three-ws/avatar` |-| An on-chain identity for your AI | [ERC-8004](#sec-146) or [Solana](#sec-266) |-| A paid API anyone (including agents) can call | [x402 monetization](#sec-366) |-| Multiple agents in one scene | `<agent-stage>` — see [multi-agent.md](#sec-193) |-| To register a domain (e.g. ENS) as agent identity | [register-onchain.md tutorial](#sec-319) |+| An on-chain identity for your AI | [ERC-8004](#sec-153) or [Solana](#sec-285) |+| A paid API anyone (including agents) can call | [x402 monetization](#sec-386) |+| Multiple agents in one scene | `<agent-stage>` — see [multi-agent.md](#sec-205) |+| To register a domain (e.g. ENS) as agent identity | [register-onchain.md tutorial](#sec-339) |---## What's next-- **[Architecture overview](#sec-086)** — full internals-- **[Agent system](#sec-057)** — runtime, skills, memory, emotion-- **[Layers](#sec-173)** — the four-layer contract in detail-- **[Quick start](#sec-243)** — go from zero to a living embed in under 10 minutes+- **[Architecture overview](#sec-088)** — full internals+- **[Agent system](#sec-059)** — runtime, skills, memory, emotion+- **[Layers](#sec-183)** — the four-layer contract in detail+- **[Quick start](#sec-260)** — go from zero to a living embed in under 10 minutes----<a id="sec-162"></a>+<a id="sec-171"></a>> **Source:** `docs/i18n.md` · [↑ table of contents](#table-of-contents)@@ -37472,7 +39559,7 @@ clearing silently-English values out of a shipped catalog.----<a id="sec-163"></a>+<a id="sec-172"></a>> **Source:** `docs/ibm-x402-mcp.md` · [↑ table of contents](#table-of-contents)@@ -37494,9 +39581,9 @@ bill itself, in USDC, over [x402](https://x402.org).This is the developer guide for the `@three-ws/ibm-x402-mcp` tool suite. For thebroader IBM integration (the platform showcase, Guardian Trust Layer, the-credentials-based `@three-ws/ibm-watsonx-mcp` connector) see **[docs/ibm.md](#sec-164)**.+credentials-based `@three-ws/ibm-watsonx-mcp` connector) see **[docs/ibm.md](#sec-173)**.For the x402 protocol primitives used elsewhere on the platform see-**[docs/x402.md](#sec-366)**.+**[docs/x402.md](#sec-386)**.---@@ -37813,7 +39900,7 @@ HTTP `status`), `internal_error` (unexpected).## Discovery (x402 Bazaar)Each tool declares an x402 discovery extension, so the suite is browsable in the-[x402 Bazaar](#sec-183) alongside its schema, example input, and+[x402 Bazaar](#sec-193) alongside its schema, example input, andexample output. Agents can find Granite tools by capability and price withoutknowing the server up front.@@ -37834,16 +39921,16 @@ Catalog/listing copy is maintained in## See also-- [docs/ibm.md](#sec-164) — the full IBM Granite / watsonx integration and showcase-- [docs/x402.md](#sec-366) — the x402 payment protocol on three.ws-- [docs/mcp.md](#sec-184) — wiring MCP servers into a client-- [docs/mcp-x402-bazaar.md](#sec-183) — x402 service discovery+- [docs/ibm.md](#sec-173) — the full IBM Granite / watsonx integration and showcase+- [docs/x402.md](#sec-386) — the x402 payment protocol on three.ws+- [docs/mcp.md](#sec-194) — wiring MCP servers into a client+- [docs/mcp-x402-bazaar.md](#sec-193) — x402 service discovery- [packages/ibm-x402-mcp](../packages/ibm-x402-mcp) — the npm package source- npm: [`@three-ws/ibm-x402-mcp`](https://www.npmjs.com/package/@three-ws/ibm-x402-mcp)----<a id="sec-164"></a>+<a id="sec-173"></a>> **Source:** `docs/ibm.md` · [↑ table of contents](#table-of-contents)@@ -37851,7 +39938,7 @@ Catalog/listing copy is maintained inthree.ws agents can think on **IBM Granite** foundation models, served through **IBM watsonx.ai**. This page documents the whole integration for developers and operators: which Granite models run where, how the watsonx client is wired, how to configure it, and the Granite-powered API surfaces (from a Granite avatar brain to on-chain, Guardian-governed forecasts). The live IBM pages on the product are [three.ws/ibm/hello](https://three.ws/ibm/hello) (the partnership page) and [three.ws/ibm/x402-demo](https://three.ws/ibm/x402-demo) (the x402 live demo).-For the broader platform model see [How it works](#sec-161); for the agent brain abstraction see [Agent system](#sec-057); for the standalone connector see [the MCP server](#mcp-server-three-wsibm-watsonx-mcp) below.+For the broader platform model see [How it works](#sec-170); for the agent brain abstraction see [Agent system](#sec-059); for the standalone connector see [the MCP server](#mcp-server-three-wsibm-watsonx-mcp) below.---@@ -38107,7 +40194,7 @@ Source: [`packages/ibm-watsonx-mcp`](../packages/ibm-watsonx-mcp). Five tools:WATSONX_API_KEY=… WATSONX_PROJECT_ID=… npx @three-ws/ibm-watsonx-mcp```-It reads the same `WATSONX_*` environment variables documented above. See the [MCP guide](#sec-184) for wiring MCP servers into a client.+It reads the same `WATSONX_*` environment variables documented above. See the [MCP guide](#sec-194) for wiring MCP servers into a client.---@@ -38153,16 +40240,16 @@ Unit tests for the same paths live in [`tests/`](../tests) (`granite-oracle`, `a## See also-- [How it works](#sec-161) — the platform mental model-- [Agent system](#sec-057) — the brain abstraction Granite plugs into-- [IBM Granite x402 MCP](#sec-163) — pay-per-call Granite for agents (USDC, no IBM account)-- [MCP](#sec-184) — wiring MCP servers into a client-- [REST API](#sec-082) — the full endpoint reference-- [Configuration](#sec-125) — all environment variables+- [How it works](#sec-170) — the platform mental model+- [Agent system](#sec-059) — the brain abstraction Granite plugs into+- [IBM Granite x402 MCP](#sec-172) — pay-per-call Granite for agents (USDC, no IBM account)+- [MCP](#sec-194) — wiring MCP servers into a client+- [REST API](#sec-084) — the full endpoint reference+- [Configuration](#sec-129) — all environment variables----<a id="sec-165"></a>+<a id="sec-174"></a>> **Source:** `docs/image-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -38257,14 +40344,14 @@ console.log(job.glb_url);## Related-- [Forge](#sec-154) is the full text-and-image-to-3D surface with every mode and engine.-- [Avatar reconstruction](#sec-096) and [avatar creation](#sec-092) cover the face-to-avatar pipeline behind [/create/selfie](https://three.ws/create/selfie).+- [Forge](#sec-161) is the full text-and-image-to-3D surface with every mode and engine.+- [Avatar reconstruction](#sec-098) and [avatar creation](#sec-094) cover the face-to-avatar pipeline behind [/create/selfie](https://three.ws/create/selfie).- The pipeline internals: [3D asset pipeline](#sec-002), [3D pipeline](#sec-003), [3D API](#sec-001).- Pages: [/create](https://three.ws/create), [/scene](https://three.ws/scene) (Scene Studio), [/gallery](https://three.ws/gallery).----<a id="sec-166"></a>+<a id="sec-175"></a>> **Source:** `docs/integrations.md` · [↑ table of contents](#table-of-contents)@@ -38284,7 +40371,7 @@ The platform's agents are only as useful as the places they can appear. Integratis the distribution layer: it turns an agent, a saved widget, or a live token feedinto something a marketer can paste into a CMS, a developer can wire into a framework,or an AI assistant can call as a tool. It is the front page of embedding; the deep-per-method references live in [Embedding](#sec-144) and [Widgets](#sec-358),+per-method references live in [Embedding](#sec-151) and [Widgets](#sec-378),and this doc is the map that points you to the right one.## How it works@@ -38310,7 +40397,7 @@ The catalog covers six integration types:driven by a `data-widget` id and the `pumpfun-feed` type.- **MCP Integration**: the `@three-ws/avatar-agent` server (from the`packages/avatar-agent-mcp` workspace), so Claude, Cursor, or any MCP-compatible- assistant can render, speak, gesture, and emote your agents. See [MCP](#sec-184).+ assistant can render, speak, gesture, and emote your agents. See [MCP](#sec-194).## Walkthrough@@ -38428,15 +40515,15 @@ for the full table.## Related-- [Embedding Guide](#sec-144): the full per-method reference (web component, iframe, oEmbed)-- [Widget Types](#sec-358): every widget type and how to configure one-- [Embody](#sec-145): giving an agent a body in more contexts-- [MCP](#sec-184): the avatar MCP server for AI assistants+- [Embedding Guide](#sec-151): the full per-method reference (web component, iframe, oEmbed)+- [Widget Types](#sec-378): every widget type and how to configure one+- [Embody](#sec-152): giving an agent a body in more contexts+- [MCP](#sec-194): the avatar MCP server for AI assistants- Pages: [/integrations](https://three.ws/integrations), [/widgets](https://three.ws/widgets)----<a id="sec-167"></a>+<a id="sec-176"></a>> **Source:** `docs/introduction.md` · [↑ table of contents](#table-of-contents)@@ -38623,7 +40710,7 @@ The minimum to get a three.ws on screen is two lines of HTML:```html<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>-<agent-3d body="https://example.com/avatar.glb"></agent-3d>+<agent-3d body="https://three.ws/avatars/michelle.glb"></agent-3d>```This loads your GLB file into a viewer with orbit controls, auto-sized to its container. No server, no build step, no API key required for a basic viewer.@@ -38632,7 +40719,7 @@ To add an AI brain:```html<agent-3d- body="https://example.com/avatar.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-sonnet-4-6"key-proxy="/api/llm"instructions="You are Aria, a helpful product guide."@@ -38642,7 +40729,7 @@ To add an AI brain:The `key-proxy` attribute points to a serverless function that injects your API key — the key never touches the client. The `voice` attribute enables microphone input and TTS output.-For a full step-by-step walkthrough, see the [Quick Start guide](#sec-243).+For a full step-by-step walkthrough, see the [Quick Start guide](#sec-260).---@@ -38650,19 +40737,19 @@ For a full step-by-step walkthrough, see the [Quick Start guide](#sec-243).Once you have the basics working, the following guides go deeper:-- **[Quick Start](#sec-243)** — step-by-step from zero to a talking agent-- **[Embedding Guide](#sec-144)** — all attributes, modes, events, and the JS API-- **[Widget Types](#sec-358)** — Turntable, Animation Gallery, Talking Agent, Passport, Hotspot Tour-- **[Agent System Overview](#sec-057)** — runtime, skill registry, memory, emotion system-- **[Manifest Reference](#sec-050)** — full JSON schema with examples-- **[REST API](#sec-082)** and **[JavaScript API](#sec-170)** — backend and in-browser surfaces-- **[Agents vs. avatars](#sec-064)** — the difference, and when to care+- **[Quick Start](#sec-260)** — step-by-step from zero to a talking agent+- **[Embedding Guide](#sec-151)** — all attributes, modes, events, and the JS API+- **[Widget Types](#sec-378)** — Turntable, Animation Gallery, Talking Agent, Passport, Hotspot Tour+- **[Agent System Overview](#sec-059)** — runtime, skill registry, memory, emotion system+- **[Manifest Reference](#sec-051)** — full JSON schema with examples+- **[REST API](#sec-084)** and **[JavaScript API](#sec-179)** — backend and in-browser surfaces+- **[Agents vs. avatars](#sec-066)** — the difference, and when to careIf you want to look at what's already in the hosted platform — browsing agents, using Widget Studio, or registering on-chain — visit [https://three.ws](https://three.ws).----<a id="sec-168"></a>+<a id="sec-177"></a>> **Source:** `docs/irl.md` · [↑ table of contents](#table-of-contents)@@ -38706,7 +40793,7 @@ Anonymous pins work immediately from a device token and expire after 7 days. Sig/irl also accepts an inbound avatar: opening `/irl?avatar=<glbUrl>` loads thatrigged GLB directly as the companion. This is the **Bring it to life** handoff-from the [AR launch page](#sec-085) (`GET /api/ar?…&kind=avatar`) and the+from the [AR launch page](#sec-087) (`GET /api/ar?…&kind=avatar`) and the`irlUrl` returned by the avatar-producing studio tools, and an explicit`?avatar=` always wins over a saved session.@@ -38775,7 +40862,7 @@ The rollup is served at `GET /api/irl/analytics` (admin-gated, same `x-ops-secre----<a id="sec-169"></a>+<a id="sec-178"></a>> **Source:** `docs/irl/THREAT-MODEL.md` · [↑ table of contents](#table-of-contents)@@ -38910,15 +40997,15 @@ in a way that drops legitimate discovery, update this file in the same change.----<a id="sec-170"></a>+<a id="sec-179"></a>> **Source:** `docs/js-api.md` · [↑ table of contents](#table-of-contents)# JavaScript API Reference-This page documents the internal JavaScript classes behind the three.ws viewer: the `App` controller, the Three.js `Viewer`, the glTF `Validator`, and the small components that render around them. It is aimed at developers reading or extending the source (`src/`), and at anyone driving the viewer from the browser console via `window.VIEWER`. If you just want a 3D agent on your page, use the [`<agent-3d>` element](#sec-355) instead.+This page documents the internal JavaScript classes behind the three.ws viewer: the `App` controller, the Three.js `Viewer`, the glTF `Validator`, and the small components that render around them. It is aimed at developers reading or extending the source (`src/`), and at anyone driving the viewer from the browser console via `window.VIEWER`. If you just want a 3D agent on your page, use the [`<agent-3d>` element](#sec-375) instead.-> For the HTTP/REST surface, see [api-reference.md](#sec-082). For the high-level npm SDK, see [sdk.md](#sec-252). For the `<agent-3d>` element attributes, see [web-component.md](#sec-355).+> For the HTTP/REST surface, see [api-reference.md](#sec-084). For the high-level npm SDK, see [sdk.md](#sec-270). For the `<agent-3d>` element attributes, see [web-component.md](#sec-375).---@@ -39247,7 +41334,7 @@ Creates the mini axes viewport:Builds the entire dat.gui panel. On mobile (≤ 700 px), uses 220 px width and starts closed; on desktop, 260 px width and starts open.-See [Architecture overview](#sec-086) for the full folder tree.+See [Architecture overview](#sec-088) for the full folder tree.#### `updateGUI()`@@ -39540,7 +41627,159 @@ window.VIEWER.app.viewer.updateDisplay();----<a id="sec-171"></a>+<a id="sec-180"></a>++> **Source:** `docs/kol-tracker.md` · [↑ table of contents](#table-of-contents)++# KOL Tracker: influencers ranked by what their wallets actually did++The KOL Tracker ranks Solana KOLs by realized P&L computed from their own wallets' on-chain trade history. Not screenshots, not self-reported win streaks: the board reads real trades, runs a FIFO cost-basis computation over them, and sorts by the realized USD result. Alongside P&L it shows win rate, traded volume, trade count, and, for the handles an admin has verified actually control the wallet, the X follower count. A big following with a losing wallet is exactly the kind of gap this page exists to expose.++Page: [/tracker](https://three.ws/tracker)++API: `/api/kol/tracker` (the board), with sibling reads `/api/kol/leaderboard`, `/api/kol/trades`, and `/api/kol/wallets` from the same dispatcher.++## Why it exists++Influence and skill are different assets, and only one of them is priced into a follow button. A wallet address cannot exaggerate: every entry and exit is public, timestamped, and attributable. The tracker joins the two records, social reach and on-chain results, into one table so you can see at a glance whose calls are backed by their own money winning. Follower counts are shown only where the wallet-to-handle link has been explicitly verified, and every P&L figure names its source, so the page never renders a number whose provenance it cannot state.++## What the page shows++`pages/tracker.html` is a self-contained module that fetches `/api/kol/tracker?window=<w>&limit=100` and renders one row per wallet:++- **Rank**, with medals for the top three.+- **KOL identity**: avatar, `@handle` (linked to X) when a verified handle is attached, otherwise the curated label, otherwise the shortened wallet address. The wallet address always renders under the name.+- **PnL** for the selected window, green or red. When the figure did not come from our own on-chain computation, a small source tag (for example `(kolscan)`) renders next to it.+- **Followers**, only for verified handles; a wallet with no attached handle shows a blank, never a fabricated count.+- **Volume**, **Win Rate**, and **Trades** for the window.++A segmented control switches the window between 24H, 7D, and 30D (arrow keys work on it), and the column headers relabel to match. Loading renders skeleton rows; an empty tracked list renders a designed empty state; a failed fetch renders an error state. The board never falls back to placeholder rows.++## How ranking works (as coded)++The aggregator is `src/kol/tracker.js` (`getKolTracker`). Per request it:++1. **Builds the wallet universe** by merging two sources. The live universe is the kolscan.io leaderboard for the requested window (`src/kol/leaderboard.js` over `src/kol/kolscan-live.js`: one HTML GET yields all three window boards, priced SOL to USD from the live feed, cached 120 seconds). The curated universe is the admin-maintained list from `src/kol/wallet-store.js` (a bundled `wallets.json` that ships empty by design, merged with R2 imports written by the admin-only import endpoint). Live rows carry numbers; curated records carry identity (label, verified `xHandle`). The merge is by address, so a curated wallet that also ranks live gets both.+2. **Computes on-chain P&L per wallet** with `src/kol/wallet-pnl.js`: real trades for the wallet are fetched server-side, filtered to the window, sorted by time, and run through a FIFO cost-basis engine. Realized P&L is sell proceeds minus FIFO-consumed cost. Win rate is winning closed sells over all closed sells. Volume is the USD value of every trade leg in the window. No synthetic numbers enter this path.+3. **Applies a strict P&L precedence per wallet**, recorded in `pnlSource`: our own FIFO computation wins whenever we have trades for the wallet (`onchain`); otherwise the live kolscan figure for that window (`kolscan`); otherwise whatever the curated record carries (`imported`); otherwise `null`.+4. **Attaches the X profile** (`src/kol/x-profile.js`) only for wallets with an admin-attached handle: follower count, avatar, and verified flag from the real X API, cached 15 minutes per handle. Handles are never inferred or scraped; the only way one enters the list is an admin attaching it at import time after verifying the KOL controls the wallet (a signed message, a public self-disclosure).+5. **Sorts by `pnlUsd` descending, nulls last**, and caps the result at the requested limit (max 100).++If every source is unreachable the tracker returns an empty array and the page shows its empty state. A cron (`api/cron/kol-tracker-refresh.js`, every 10 minutes, Bearer-authenticated with `CRON_SECRET`) prewarms all three windows so the tight X API budget (75 lookups per 15 minutes on the free tier) is never spent inside a visitor's request.++## Where the data comes from++- **On-chain trades, not self-reported numbers.** The `onchain` P&L path computes from the wallet's own trade history; the `kolscan` fallback is itself a board of realized on-chain SOL profit. Nothing on this page is entered by the KOL.+- **kolscan.io** supplies the live wallet universe and the fallback P&L per window. Trader names it publishes are deliberately dropped; the schema stays address-keyed.+- **Helius** enhanced transactions back the per-mint trade feed (`/api/kol/trades`).+- **Birdeye** backs the portfolio proxy (`/api/kol/wallets`).+- **The X API** supplies follower counts and avatars, only for admin-verified handles.++Each integration degrades honestly: a missing key or an upstream outage yields an empty or null field (and, for `/api/kol/trades`, an explicit error when the whole provider is down), never a fabricated or zeroed row that looks like real data.++## API++All reads are public, CORS-open, and IP rate-limited (600 requests per minute per IP; over that returns 429). The dispatcher is `api/kol/[action].js`.++### `GET /api/kol/tracker`++The board behind the page.++| Param | Values | Default |+|---|---|---|+| `window` | `24h`, `7d`, `30d` | `7d` |+| `limit` | 1 to 100 | 100 |++```bash+curl 'https://three.ws/api/kol/tracker?window=7d&limit=25'+```++Response: `{ window, rows }`, sorted by `pnlUsd` descending, nulls last. Each row:++```json+{+ "wallet": "<WALLET_ADDRESS>",+ "label": "curated label or null",+ "xHandle": "verified handle or null",+ "avatarUrl": "X avatar URL or null",+ "verified": false,+ "followerCount": null,+ "pnlUsd": 12345.67,+ "volumeUsd": 98765.43,+ "winRate": 0.62,+ "trades": 41,+ "pnlSource": "onchain",+ "window": "7d"+}+```++`winRate` is a fraction (0 to 1); the page renders it as a percent. `volumeUsd` and `trades` are only populated on the `onchain` path (volume) or on `onchain`/`kolscan` (trades). `pnlSource` is one of `onchain`, `kolscan`, `imported`, or `null`. An invalid `window` returns `400 validation_error`.++### `GET /api/kol/leaderboard`++The raw live board (no curation, no X profiles): address-keyed rows straight from the kolscan-backed source.++```bash+curl 'https://three.ws/api/kol/leaderboard?window=24h&limit=10'+```++Response: `{ items: [{ wallet, pnlSol, pnlUsd, winRate, trades, rank }] }`. Empty when the live source is unreachable, never stale or fabricated.++### `GET /api/kol/trades`++Recent pump.fun buys and sells by the tracked wallets for one mint, via Helius, cached for a few seconds.++```bash+curl 'https://three.ws/api/kol/trades?mint=<MINT_ADDRESS>&limit=20'+```++Response: `{ mint, trades, wallets }` where each trade carries `wallet`, `side`, `amountSol`, `amountToken`, `price`, `signature`, `ts`, `time`, `usd`, `source` (`kol`, `whale`, or `smart-money` from the wallet's tags), and `label`. The `x-kol-source` response header is `helius` when the provider is configured; with no provider key the feed returns an empty list and `x-kol-source: unconfigured`, which is distinct from a configured provider outage (a `502 provider_unavailable` error).++### `GET /api/kol/wallets`++Portfolio snapshot proxy (Birdeye) for up to 20 addresses at once, cached 60 seconds per address. Requires `BIRDEYE_API_KEY` server-side; without it the endpoint returns `503 birdeye_not_configured`.++```bash+curl 'https://three.ws/api/kol/wallets?addresses=<WALLET_ADDRESS>,<WALLET_ADDRESS_2>'+```++Response: `{ data: [{ address, realizedPnl, unrealizedPnl, winRate, totalTrades, topToken }] }`. A wallet whose upstream fetch failed is omitted from `data` rather than rendered as a fake zero-P&L row.++### `POST /api/kol/import-gmgn` (admin only)++Writes the curated tracked-wallet list that the tracker merges in. Accepts `{ rawJson, xHandles }` where `xHandles` is the optional wallet-to-handle map described above: the only path by which a follower count ever attaches to a wallet. Imports persist to R2 and merge with (never blindly replace) the existing list, preserving previously attached handles.++## How it connects to wallet reputation++The tracker answers "who is making money"; the reputation surfaces answer "should this wallet's record earn trust". They meet at the wallet address:++- **`GET /api/intel/wallet/<WALLET_ADDRESS>`** returns one wallet's realized track record from the Smart-Money graph: a 0 to 100 realized score, win rate, average ATH multiple, winners and losers, labels (`smart_money`, `sybil`, `fresh`, and others), and its funder cluster. `computed: false` means no track record exists yet for that address; that is an honest zero, not an error. Any wallet you see on the tracker can be fed straight into it.+- **[Smart Money Radar](#sec-280)** is the sibling leaderboard built from graduation outcomes rather than a KOL universe: reputation earned per wallet from which coins actually graduated. The tracker's footer links to it, and the two boards frequently disagree in instructive ways.+- **[Trust primitives](#sec-303)** wrap the same question for autonomous agents: a paid endpoint that scores any counterparty wallet from real on-chain evidence before an agent transacts with it.++```bash+# Take a wallet from the tracker and pull its reputation record+curl 'https://three.ws/api/intel/wallet/<WALLET_ADDRESS>?network=mainnet'+```++## States and limits++- **Auth.** All tracker reads are public. The import endpoint is admin-only; the refresh cron is Bearer-authenticated with `CRON_SECRET`.+- **Rate limit.** 600 requests per minute per IP on every public read.+- **Windows.** Exactly `24h`, `7d`, `30d`. Anything else is a 400.+- **Follower counts are opt-in by verification.** A wallet with no admin-attached handle ranks normally and simply shows no follower data. Nothing on this page guesses at identity.+- **Provenance is always visible.** Every P&L figure carries `pnlSource`, and the page tags any figure that did not come from our own on-chain computation.+- **Honest degradation everywhere.** Upstream outages produce empty boards, omitted wallets, or explicit errors, never placeholder rows, stale boards presented as fresh, or zeros dressed up as data.++## Related++- [Smart Money Radar](#sec-280): reputation earned from graduation outcomes, wallet by wallet+- [Trust primitives](#sec-303): the paid cross-chain reputation read for autonomous agents+- Pages: [/tracker](https://three.ws/tracker) · [/smart-money](https://three.ws/smart-money) · [/leaderboard](https://three.ws/leaderboard)++---++<a id="sec-181"></a>> **Source:** `docs/labor-market.md` · [↑ table of contents](#table-of-contents)@@ -39645,7 +41884,7 @@ economy move:----<a id="sec-172"></a>+<a id="sec-182"></a>> **Source:** `docs/launch-usecases.md` · [↑ table of contents](#table-of-contents)@@ -39775,13 +42014,13 @@ GET /api/pump/launch-studio?action=preview&id=github-fresh-breakouts&limit=6## Related- [Launch use-case engine](../api/_lib/launch/README.md) — internals + how to add a recipe.-- [Coin Launches](#sec-119) — the underlying launch mechanism.+- [Coin Launches](#sec-123) — the underlying launch mechanism.- [Launch a Coin](https://three.ws/launch) — the wizard each recipe hands off to.- Fee sharing & GitHub reward routing — [`public/studio/fees-panel.js`](../public/studio/fees-panel.js).----<a id="sec-173"></a>+<a id="sec-183"></a>> **Source:** `docs/layers.md` · [↑ table of contents](#table-of-contents)@@ -39789,7 +42028,7 @@ GET /api/pump/launch-studio?action=preview&id=github-fresh-breakouts&limit=6three.ws is split into four horizontal layers. Each layer can be used on its own. Each layer is independently replaceable as long as its contract with the rest of the system holds. This document describes what each layer owns, what it exports, and where to extend it.-For the overall request flow, see [How three.ws works](#sec-161). For internal module names and paths, see [Architecture overview](#sec-086).+For the overall request flow, see [How three.ws works](#sec-170). For internal module names and paths, see [Architecture overview](#sec-088).---@@ -39879,10 +42118,10 @@ Modules:- **`agent-identity.js`** — the passport + diary. Stable agent ID, owner address, signed action history. Backed by `localStorage` (cache) and `/api/agents/<id>` (canonical). Listens on the protocol bus and POSTs `speak` / `skill-done` / `validate` / `sign` events to `/api/agent-actions`.- **`memory/`** — `local`, `ipfs`, `encrypted-ipfs`, or `none`. Declared on the manifest.- **`erc8004/`** — on-chain registries. `IdentityRegistry` (mints agent token with `tokenURI`), `ReputationRegistry` (signed feedback), `ValidationRegistry` (validation report hashes). Per-chain addresses in `erc8004/abi.js`.-- **`erc8004/solana-deploy.js`**: Solana counterpart. Metaplex Core asset mint; SPL Memo attestations and reputation live server-side (see [Agent Reputation on Solana](#sec-265)).+- **`erc8004/solana-deploy.js`**: Solana counterpart. Metaplex Core asset mint; SPL Memo attestations and reputation live server-side (see [Agent Reputation on Solana](#sec-284)).- **`auth/` + `wallet/`** — SIWE / SIWS for backend mutations; Privy for email/social → embedded wallet onboarding; session cookies after wallet proof.-Per-chain registry addresses, ABIs, and helpers ship as `@three-ws/sdk`. ENS attestations are also handled here — see [register-onchain.md](#sec-319).+Per-chain registry addresses, ABIs, and helpers ship as `@three-ws/sdk`. ENS attestations are also handled here — see [register-onchain.md](#sec-339).---@@ -39895,7 +42134,7 @@ Per-chain registry addresses, ABIs, and helpers ship as `@three-ws/sdk`. ENS attModules:- **`element.js`**: `<agent-3d>` custom element. Lazy-boots via `IntersectionObserver` (unless `eager`). Enforces origin allowlist. Exposes attributes for `body`, `brain`, `agent-id`, `manifest`, `mode` (`inline` / `floating` / `section` / `fullscreen`), `voice`, and more. Public methods: `say()`, `ask()`, `installSkill()`, `expressEmotion()`, `play()`, `lookAt()`, `pause()`, `destroy()`.-- **`stage-element.js`**: `<agent-stage>` for hosting multiple agents in one shared scene. See [multi-agent.md](#sec-193).+- **`stage-element.js`**: `<agent-stage>` for hosting multiple agents in one shared scene. See [multi-agent.md](#sec-205).- **`widget-types.js`**: the ten widget variants: Turntable, Animation Gallery, Talking Agent, ERC-8004 Passport, Hotspot Tour, Pump.fun Live Feed, Smart Money Feed, Live Trades Canvas, Bonding Curve, Walking Avatar.- **`lib.js`** — the CDN entry. Imports the element, registers it, re-exports the public surface (`defineElement`, `Agent3DElement`, `AgentStageElement`, helpers).- **`embed-action-bridge.js`** — the `postMessage` protocol. Iframe widgets and the web component speak the same dialect, so host pages can drive either with the same code.@@ -39930,20 +42169,20 @@ The same source tree produces three independent builds:- **Library** — `npm run build:lib`. `src/lib.js` → `dist-lib/agent-3d.js` (ES module + UMD). Three.js and ethers stay bundled — the file is intentionally self-contained so a single `<script type="module">` is the only thing a third party needs.- **Artifact** — `vite.config.artifact.js`. A zero-dependency bundle for Claude artifact embeds. Inlined everything, no external script tags, no dynamic imports.-Versioned CDN bundles are published at `/agent-3d/<version>/agent-3d.js`. Use `latest` for auto-updates or pin to a version for stability. See [changelog.md](#sec-113) for release history.+Versioned CDN bundles are published at `/agent-3d/<version>/agent-3d.js`. Use `latest` for auto-updates or pin to a version for stability. See [changelog.md](#sec-115) for release history.---## What's next-- **[Architecture overview](#sec-086)** — module-by-module deep dive-- **[Agent system](#sec-057)** — runtime, skills, memory in detail-- **[Embedding](#sec-144)** — the public face of the embed layer-- **[SDK reference](#sec-252)** — `@three-ws/sdk` and friends+- **[Architecture overview](#sec-088)** — module-by-module deep dive+- **[Agent system](#sec-059)** — runtime, skills, memory in detail+- **[Embedding](#sec-151)** — the public face of the embed layer+- **[SDK reference](#sec-270)** — `@three-ws/sdk` and friends----<a id="sec-174"></a>+<a id="sec-184"></a>> **Source:** `docs/lipsync.md` · [↑ table of contents](#table-of-contents)@@ -40032,15 +42271,15 @@ tick();## Related-- [Voice Lab](#sec-354): clone a voice and synthesize it, the audio these demos animate.-- [Voice and lipsync tutorial](#sec-334): the full walkthrough, including wiring visemes to an agent body.-- [Talking Avatar Video](#sec-273): the server-rendered alternative for exporting a talking-head clip.-- [Animations](#sec-081): the runtime clip registry that plays alongside lipsync.+- [Voice Lab](#sec-374): clone a voice and synthesize it, the audio these demos animate.+- [Voice and lipsync tutorial](#sec-354): the full walkthrough, including wiring visemes to an agent body.+- [Talking Avatar Video](#sec-292): the server-rendered alternative for exporting a talking-head clip.+- [Animations](#sec-083): the runtime clip registry that plays alongside lipsync.- Pages: [/lipsync](https://three.ws/lipsync), [/lipsync/mic](https://three.ws/lipsync/mic).----<a id="sec-175"></a>+<a id="sec-185"></a>> **Source:** `docs/listings.md` · [↑ table of contents](#table-of-contents)@@ -40058,7 +42297,7 @@ Cloud marketplaces are the procurement flow enterprises use to acquire software| Cloud | Status | Links ||---|---|---|-| **AWS** Marketplace | Live | three.ws is an AWS Partner. Subscribe via AWS Marketplace to consolidate billing on your AWS account; subscriptions auto-issue an x402 API key via the marketplace entitlement service. See [aws-marketplace.md](#sec-103). |+| **AWS** Marketplace | Live | three.ws is an AWS Partner. Subscribe via AWS Marketplace to consolidate billing on your AWS account; subscriptions auto-issue an x402 API key via the marketplace entitlement service. See [aws-marketplace.md](#sec-105). || **Alibaba Cloud** International Marketplace | Live | [Product listing](https://marketplace.alibabacloud.com/products/56724001/sgcmfw00036800.html) · [Storefront](https://marketplace.alibabacloud.com/store/3247293.html) · [Announcement](/blog/three-ws-on-alibaba-cloud-marketplace.html) · [Marketplace blog feature](https://marketplace.alibabacloud.com/doc/blog/detail/mplace-sgcmfw00036800.html) || **Google Cloud** Marketplace | Open to partnership | three.ws already runs its production stack on Google Cloud Run (`three-ws-api`, us-central1) — a natural fit for Vertex AI and GCP's global CDN. Reach out for co-listing, credits, and joint GTM. || **Microsoft Azure** Marketplace | On roadmap | Targeted alongside the AWS/Alibaba rollout. |@@ -40084,7 +42323,7 @@ Ecosystem directories are the discovery surfaces that L1/L2 communities, chain f|---|---|---|| **BNB Chain · Dappbay** | Live | [dappbay.bnbchain.org/detail/three](https://dappbay.bnbchain.org/detail/three) — categories: *AI Agent Launchpad · AI Data · AI Infra*. Announcement: [three.ws Listed on BNB Chain's Dappbay Directory](/blog/three-ws-on-bnb-chain-dappbay.html). |-Dappbay is BNB Chain's official dApp directory. The listing is about distribution and discovery into BNB Chain's AI dApp audience — three.ws still settles agent payments on Solana, Base, and Polygon via the chain-agnostic [x402 protocol](#sec-366).+Dappbay is BNB Chain's official dApp directory. The listing is about distribution and discovery into BNB Chain's AI dApp audience — three.ws still settles agent payments on Solana, Base, and Polygon via the chain-agnostic [x402 protocol](#sec-386).---@@ -40132,7 +42371,7 @@ Subscribe via RSS to track new listings, integrations, and protocol updates.----<a id="sec-176"></a>+<a id="sec-186"></a>> **Source:** `docs/make-your-agent.md` · [↑ table of contents](#table-of-contents)@@ -40149,7 +42388,7 @@ This guide walks you through creating a 3D AI agent in the browser — no code,Go to [three.ws/start](/start). This is the new-agent wizard.-You'll be asked to sign in if you haven't already. See [Do I need crypto?](#sec-140) if you're not sure which sign-in option to choose.+You'll be asked to sign in if you haven't already. See [Do I need crypto?](#sec-147) if you're not sure which sign-in option to choose.---@@ -40163,7 +42402,7 @@ The first step of the wizard asks you to choose a body for your agent.- **Take a selfie** — upload a photo and get a 3D version of yourself in about a minute at [/create/selfie](/create/selfie)- **Upload a GLB** — any rigged glTF/GLB file works. Drag it into the editor at [/app](/app) or import from a URL-Not sure what an avatar is vs. what an agent is? Read [Agents vs. Avatars](#sec-064).+Not sure what an avatar is vs. what an agent is? Read [Agents vs. Avatars](#sec-066).---@@ -40199,7 +42438,7 @@ Once you hit **Publish**, your agent gets a live URL: something like `three.ws/aThe wizard also gives you an **embed snippet**: a few lines of HTML you can paste into any webpage to make the agent appear there. You don't need to know HTML to do this — just copy and paste.-For more on where and how to embed, continue to [Share & embed →](#sec-255)+For more on where and how to embed, continue to [Share & embed →](#sec-273)---@@ -40218,14 +42457,14 @@ Changes take effect immediately — no republishing needed for most settings.## What's next-- **Put it on your website** → [Share & embed](#sec-255)-- **Understand how it all works** → [How it works](#sec-161)-- **Give the agent a custom skill** → [Create a custom skill](#sec-294)-- **Make it yours permanently (on-chain)** → [Register on-chain](#sec-319)+- **Put it on your website** → [Share & embed](#sec-273)+- **Understand how it all works** → [How it works](#sec-170)+- **Give the agent a custom skill** → [Create a custom skill](#sec-314)+- **Make it yours permanently (on-chain)** → [Register on-chain](#sec-339)----<a id="sec-177"></a>+<a id="sec-187"></a>> **Source:** `docs/market-data-api.md` · [↑ table of contents](#table-of-contents)@@ -40345,7 +42584,7 @@ A failed upstream never charges you: the endpoint verifies payment, runs the dat----<a id="sec-178"></a>+<a id="sec-188"></a>> **Source:** `docs/marketplace.md` · [↑ table of contents](#table-of-contents)@@ -40372,7 +42611,7 @@ before anything is granted.| **Bundle** | — | `purchase-bundle.js` | `skill_purchases` |Agents can buy on their own behalf, paying from their custodial wallet (see-[Agent wallets](#sec-063)) with no browser wallet involved:+[Agent wallets](#sec-065)) with no browser wallet involved:| Buying | Endpoint | Request ||---|---|---|@@ -40429,7 +42668,7 @@ one is issued on the next prepare.and applied at settlement.- Seller proceeds route to the seller's configured payout wallet(`agent_payout_wallets`). A confirmed sale surfaces to the seller as a `sale` /- `payment-earned` notification (see [Money feed](#sec-190)).+ `payment-earned` notification (see [Money feed](#sec-202)).## Access checks@@ -40442,7 +42681,7 @@ trial for a skill, so a gated skill call can verify entitlement before running.endpoints are complete, but there is not yet a free, paginated "browse allskills for sale" HTTP endpoint with sort/filter; discovery today is per-agent(agents themselves are browsable at `GET /api/marketplace/agents`), and the- paid [`/api/x402/skill-marketplace`](#sec-362) endpoint returns the+ paid [`/api/x402/skill-marketplace`](#sec-382) endpoint returns thelive skill listing catalog with pricing for $0.001 USDC.- **Auto-grant.** A confirmed skill purchase is recorded and the license NFT isminted, but the purchased skill is not automatically attached to the buyer's@@ -40460,13 +42699,13 @@ their chosen `currency_mint`; the platform promotes no coin other than $THREE.## Related-- [Agent wallets](#sec-063) — how agent-side purchases are funded and gated.-- [Circulation engine](#sec-116) — manufactured marketplace demand.-- [Skills system](#sec-259), [Coin launches](#sec-119).+- [Agent wallets](#sec-065) — how agent-side purchases are funded and gated.+- [Circulation engine](#sec-120) — manufactured marketplace demand.+- [Skills system](#sec-278), [Coin launches](#sec-123).----<a id="sec-179"></a>+<a id="sec-189"></a>> **Source:** `docs/mcp-3d-studio.md` · [↑ table of contents](#table-of-contents)@@ -40704,7 +42943,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-3d----<a id="sec-180"></a>+<a id="sec-190"></a>> **Source:** `docs/mcp-agent.md` · [↑ table of contents](#table-of-contents)@@ -40780,7 +43019,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-agent----<a id="sec-181"></a>+<a id="sec-191"></a>> **Source:** `docs/mcp-studio.md` · [↑ table of contents](#table-of-contents)@@ -40837,12 +43076,12 @@ The same free lane also ships as a REST Actions surface for the **"three.ws 3DStudio"** custom GPT: `POST /api/3d/studio` submits a prompt and`GET /api/3d/studio?job=<id>` polls it, with an age-13+ safety gate andstore-clean responses (model URLs and job state only). Full contract in the-[API reference](#sec-082). Use the MCP connector above when you want+[API reference](#sec-084). Use the MCP connector above when you wantinline 3D widgets; the custom GPT covers plans without connector support.How AR rides both ChatGPT surfaces (the `arUrl` contract, the device-awarelauncher, living avatars, link unfurls) is documented end to end in-[AR in ChatGPT](#sec-115).+[AR in ChatGPT](#sec-119).## Tools@@ -40890,9 +43129,9 @@ sculpts into 3D (the forge's image-generation step). The inline widget uses itas the model-viewer poster so the painted view shows while the GLB streams in,and the result narration links it for non-widget clients.-`arUrl` is the one-tap place-in-your-room link (see [AR in ChatGPT](#sec-115)).+`arUrl` is the one-tap place-in-your-room link (see [AR in ChatGPT](#sec-119)).Rigged avatars additionally carry `irlUrl`, the living-agent handoff into-[IRL](#sec-168), and the inline widget's AR button becomes **Bring it to life**.+[IRL](#sec-177), and the inline widget's AR button becomes **Bring it to life**.Every result also includes a `spatial` field, the open Spatial MCP artifact(`specs/SPATIAL_MCP.md`) so any Spatial-MCP renderer can display the model.@@ -41084,15 +43323,15 @@ any surface that rides it. The agent-facing REST endpoints (`/api/3d/generate`,----<a id="sec-182"></a>+<a id="sec-192"></a>> **Source:** `docs/mcp-tools.md` · [↑ table of contents](#table-of-contents)# MCP Tools Catalog-three.ws ships several [MCP](#sec-184) servers: tool servers that AI assistants+three.ws ships several [MCP](#sec-194) servers: tool servers that AI assistants(Claude, ChatGPT, any MCP client) can call directly. One is free and 3D-only; the-others expose paid tools that settle per call in USDC over [x402](#sec-366). This+others expose paid tools that settle per call in USDC over [x402](#sec-386). Thispage is the catalog: which server hosts which tool, whether it's free or paid, andwhat it does.@@ -41118,7 +43357,7 @@ the read-only studio helpers below.A free, non-crypto MCP server for the ChatGPT App Directory and any MCP client. Itexposes **only** 3D generation/inspection — no account, no payment, no token. See-[3D Studio MCP](#sec-181).+[3D Studio MCP](#sec-191).## Material Studio (hosted, free) — `/api/material-studio`@@ -41161,7 +43400,7 @@ and direction tools are flat per call.Free studio helpers (no charge): `getting_started`, `generation_status`,`preview_3d`, `list_animations`, `inspect_model`, `optimize_model`, `save_avatar`,-`validate_spatial_response` (the [Spatial MCP](#sec-267) conformance gate).+`validate_spatial_response` (the [Spatial MCP](#sec-286) conformance gate).## Agent & commerce tools — `3d-agent-local`@@ -41190,7 +43429,7 @@ generation lane**; the rest are paid and quote their price in the| `vanity_grinder` | paid | Solana vanity address mining. || `vanity_premium` | free | Browse the premium pre-ground vanity address inventory. || `aixbt_intel` / `aixbt_projects` | paid | Market narrative intel feed / momentum-ranked project scans. |-| `agenc_list_tasks` / `agenc_get_task` / `agenc_get_agent` | paid | [AgenC](#sec-006) coordination reads. |+| `agenc_list_tasks` / `agenc_get_task` / `agenc_get_agent` | paid | [AgenC](#sec-007) coordination reads. || `agent_delegate_action` | paid | Agent-to-agent delegation. || `agent_hire_discover` | paid | Discover + reputation-rank agents to hire for a task. || `agent_hire` | paid | Hire an agent end to end: quote, settle USDC via x402, run it, return result + provenance receipt, with hard spend caps. |@@ -41204,9 +43443,9 @@ generation lane**; the rest are paid and quote their price in the| Server | File | Surface ||---|---|---|| Agent MCP | `api/mcp-agent.js` | Agent build/control tools. |-| Bazaar MCP | `api/mcp-bazaar.js` | x402 service discovery — see [x402 bazaar](#sec-183). |-| IBM MCP | `api/ibm-mcp.js` | watsonx / Granite integration — see [IBM](#sec-164). |-| pump.fun MCP | `api/pump-fun-mcp.js` | Launch/trade tools — see [Solana pump.fun](#sec-264). |+| Bazaar MCP | `api/mcp-bazaar.js` | x402 service discovery — see [x402 bazaar](#sec-193). |+| IBM MCP | `api/ibm-mcp.js` | watsonx / Granite integration — see [IBM](#sec-173). |+| pump.fun MCP | `api/pump-fun-mcp.js` | Launch/trade tools — see [Solana pump.fun](#sec-283). |## $THREE only@@ -41217,13 +43456,13 @@ promote no specific token.## Related-- [MCP](#sec-184) overview · [3D Studio MCP](#sec-181) ·- [3D Studio (paid)](#sec-179) · [x402 bazaar](#sec-183)-- [x402 paid endpoints](#sec-362) — the same capabilities over REST.+- [MCP](#sec-194) overview · [3D Studio MCP](#sec-191) ·+ [3D Studio (paid)](#sec-189) · [x402 bazaar](#sec-193)+- [x402 paid endpoints](#sec-382) — the same capabilities over REST.----<a id="sec-183"></a>+<a id="sec-193"></a>> **Source:** `docs/mcp-x402-bazaar.md` · [↑ table of contents](#table-of-contents)@@ -41298,7 +43537,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-bazaar----<a id="sec-184"></a>+<a id="sec-194"></a>> **Source:** `docs/mcp.md` · [↑ table of contents](#table-of-contents)@@ -41441,8 +43680,8 @@ Ready-to-submit listing packages for each directory, plus the canonical metadataDeep dives — every tool, argument, env var, and example:-- **Hosted remote:** [3D Studio (free)](#sec-181) · [3D Studio (paid)](#sec-179) · [Agent wallet](#sec-180) · [x402 Bazaar](#sec-183) · [IBM x402](#sec-163)-- **Install-and-run:** each npm server ships its usage guide (tools, arguments, env vars, examples) in its package README on [npmjs.com/org/three-ws](https://www.npmjs.com/org/three-ws). The [MCP Tools Catalog](#sec-182) maps every tool to its server and price.+- **Hosted remote:** [3D Studio (free)](#sec-191) · [3D Studio (paid)](#sec-189) · [Agent wallet](#sec-190) · [x402 Bazaar](#sec-193) · [IBM x402](#sec-172)+- **Install-and-run:** each npm server ships its usage guide (tools, arguments, env vars, examples) in its package README on [npmjs.com/org/three-ws](https://www.npmjs.com/org/three-ws). The [MCP Tools Catalog](#sec-192) maps every tool to its server and price.---@@ -41830,13 +44069,13 @@ Turn an avatar or on-chain agent **you own** into a holder-only interactive 3D e}```-The `structuredContent` returns `gate_id`, `asset_id`, `gate` (`mint`, `min_amount`, `chain`), and `embed_snippet` — a ready-to-paste `<script>` + `<three-d>` tag. See [Token-gated 3D embeds](#sec-276) for the full verification flow, the anti-abuse token/rate-limit design, and how visitors unlock the embed.+The `structuredContent` returns `gate_id`, `asset_id`, `gate` (`mint`, `min_amount`, `chain`), and `embed_snippet` — a ready-to-paste `<script>` + `<three-d>` tag. See [Token-gated 3D embeds](#sec-296) for the full verification flow, the anti-abuse token/rate-limit design, and how visitors unlock the embed.---### `crypto_data`-Call any endpoint in the free [Crypto Data API](#sec-082) (the same aggregator behind `GET /api/v1/x/*`: DEX pairs, CoinGecko/DefiLlama market data, Jupiter Solana prices and swap quotes, direct Solana RPC reads) as an MCP tool call. The tool description is generated from the live provider registry at call time, so it always lists exactly the provider/endpoint pairs registered on this deployment — nothing hand-enumerated to drift out of date.+Call any endpoint in the free [Crypto Data API](#sec-084) (the same aggregator behind `GET /api/v1/x/*`: DEX pairs, CoinGecko/DefiLlama market data, Jupiter Solana prices and swap quotes, direct Solana RPC reads) as an MCP tool call. The tool description is generated from the live provider registry at call time, so it always lists exactly the provider/endpoint pairs registered on this deployment — nothing hand-enumerated to drift out of date.```json{@@ -41851,7 +44090,7 @@ Call any endpoint in the free [Crypto Data API](#sec-082) (the same aggregator b}```-An unknown `provider`/`endpoint` pair returns an error result listing every valid pair. A registered endpoint marked free runs within the same per-IP quota the REST free lane enforces — no wallet needed. An endpoint with no free tier, or a free quota you've exhausted, returns a JSON-RPC `-32402` error naming the exact REST URL and USDC price to pay via [x402](#sec-366) — never a second, MCP-only payment flow.+An unknown `provider`/`endpoint` pair returns an error result listing every valid pair. A registered endpoint marked free runs within the same per-IP quota the REST free lane enforces — no wallet needed. An endpoint with no free tier, or a free quota you've exhausted, returns a JSON-RPC `-32402` error naming the exact REST URL and USDC price to pay via [x402](#sec-386) — never a second, MCP-only payment flow.```bash# Equivalent to: GET /api/v1/x/dexscreener/token?addresses=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump@@ -42095,7 +44334,802 @@ Restart Claude Code after editing `.mcp.json` so the new server config is picked----<a id="sec-185"></a>+<a id="sec-195"></a>++> **Source:** `docs/media-api.md` · [↑ table of contents](#table-of-contents)++# three.ws Media & Render API++Free media endpoints for agents and apps built around three.ws 3D assets:+server-side avatar rendering, runtime GLB optimization, a CORS-open model+proxy, image understanding, speech-to-text, the curated asset libraries, and+the photo-input and mesh-processing front doors. Most endpoints here are+public and keyless; the two that write to an account say so explicitly.++This page is the companion to the [3D API](#sec-001), which documents the+core free text-to-3D lane (`/api/3d/generate`), model inspection, and the paid+Forge Pro tiers. Nothing on that page is repeated here: generate a model+there, then render it, optimize it, proxy it, describe it, or save it with the+endpoints below.++Base URL: `https://three.ws`++| Endpoint | Method | Auth | What it does |+|----------|--------|------|--------------|+| [`/api/avatar/render`](#render-an-avatar-as-an-image) | GET | none | Rendered PNG/JPEG/WebP of any public avatar |+| [`/api/render/avatar-clip`](#render-any-glb-posed-and-camera-orbited) | GET, POST | none | Posed, camera-orbited PNG of any GLB |+| [`/api/avatar/optimize`](#optimize-a-glb-at-runtime) | GET | none | Runtime GLB transcoder (LOD, textures, morphs, Draco) |+| [`/api/glb`](#same-origin-glb-proxy) | GET | none | Same-origin GLB proxy with open CORS |+| [`/api/vision`](#image-understanding) | GET, POST | none | Ask a vision model about an image |+| [`/api/asr`](#speech-to-text) | GET, POST | none | Speech-to-text (voice in) |+| [`/api/avatars/library`](#character-library) | GET | none | Paginated manifest of rigged characters |+| [`/api/objects/library`](#object-library) | GET | none | Paginated manifest of CC0 props |+| [`/api/avatars/from-forge`](#save-a-generated-glb-into-your-library) | POST | session or bearer | Save a generated GLB as your avatar |+| [`/api/input-photo`](#photo-to-avatar) | POST | none | Vision-validated photo-to-avatar submission |+| [`/api/input-multiview`](#multi-view-reconstruction) | POST | none | Vision-validated multi-image reconstruction |+| [`/api/forge-segment`](#split-a-glb-into-named-parts) | GET, POST | none | Split a GLB into named parts (async job) |+| [`/api/forge-rembg`](#background-removal) | GET, POST | none | Image background removal (async job) |++---++## Render an avatar as an image++**`GET /api/avatar/render`** returns a rendered PNG, JPEG, or WebP of any+public or unlisted three.ws avatar. Built for `<img>` tags, social cards,+partner integrations, and game engine loaders: point an image tag at the URL+and it just works.++Calling it with **no parameters** returns a self-describing JSON document:+every parameter, the scene presets, and the full pose catalog. That response+is the machine-readable source of truth for this endpoint.++### Query parameters++| Param | Type | Default | Notes |+|-------|------|---------|-------|+| `avatar` | uuid | required | Avatar ID. Omit it to get the self-describing JSON instead. |+| `scene` | enum | `upper-body` | Camera framing: `full-body`, `upper-body`, `portrait`, `headshot`. |+| `size` | integer | `512` | Square dimension in pixels, 64 to 2048. |+| `width` | integer | | Overrides `size` for width (64 to 2048). |+| `height` | integer | | Overrides `size` for height (64 to 2048). |+| `bg` | string | `transparent` | CSS color or `transparent`. |+| `pose` | string | | Pose preset ID. Catalog: `GET /api/render/avatar-clip`. |+| `expression` | json | | URL-encoded ARKit-52 morph map, e.g. `{"mouthSmile":0.6}`. |+| `format` | enum | `png` | `png`, `jpeg`, or `webp`. |+| `quality` | integer | `90` | 1 to 100, for `jpeg`/`webp`. |++### Response++The first request for a given parameter combination renders via headless+chromium + three.js and returns the image bytes directly+(`x-render-cache: miss`, plus `x-render-scene` and `x-render-size` headers).+The result is cached in object storage keyed on avatar ID, the parameter hash,+and the avatar's `updated_at`, so editing the avatar busts the cache+automatically. Subsequent requests answer `302` to the CDN copy+(`x-render-cache: hit`). Both outcomes are correct behind an `<img src>`.++### Errors++| Situation | Response |+|-----------|----------|+| Invalid parameter | `400` with a specific code |+| Avatar does not exist | `404 not_found` |+| Avatar is private | `403 private` (only public or unlisted avatars render) |+| Over 120 renders per 10 minutes per IP | `429` with `Retry-After` |+| Render pipeline failed | `502 render_failed` |++### curl++```bash+# Discover the parameters, scenes, and pose catalog+curl -s https://three.ws/api/avatar/render++# Render a 256px transparent portrait+curl -sL -o portrait.png \+ 'https://three.ws/api/avatar/render?avatar=YOUR_AVATAR_ID&scene=portrait&size=256&bg=transparent'++# Waving, smiling, as WebP+curl -sL -o card.webp \+ 'https://three.ws/api/avatar/render?avatar=YOUR_AVATAR_ID&pose=wave&expression=%7B%22mouthSmile%22%3A0.6%7D&format=webp'+```++---++## Render any GLB, posed and camera-orbited++**`POST /api/render/avatar-clip`** renders a PNG of any public GLB with an+optional pose preset, a free camera orbit, and ARKit-52 facial morphs. Where+`/api/avatar/render` takes a three.ws avatar ID, this endpoint takes a raw GLB+URL, so it works on models that were never saved as avatars.++**`GET /api/render/avatar-clip`** (no body) returns the pose catalog: every+preset's `id`, `label`, and `group` (examples: `tpose`, `apose`, `wave`,+`salute`, `run`, `sit-chair`, `thinker`, `superhero-landing`), plus the+`cameraOrbit` and `background` value ranges. Fetch it once instead of+hardcoding pose IDs.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `glbUrl` | string | required | Public http(s) URL of the GLB, max 10 MB. SSRF-guarded: private hosts are rejected. |+| `width` | integer | `1024` | 64 to 2048. |+| `height` | integer | `1024` | 64 to 2048. |+| `background` | string | `#0a0a0a` | Any CSS color, or `transparent`. |+| `posePresetId` | string | | A pose ID from the GET catalog. Unknown IDs return `400 unknown_pose`. |+| `cameraOrbit` | object | | `{ theta, phi, radius }`. `theta` 0..360 degrees (yaw), `phi` 0..180 degrees (pitch from top, default 80), `radius` in meters or `null` to auto-frame. |+| `expression` | object | | ARKit-52 morph map, e.g. `{ "jawOpen": 0.4, "mouthSmileLeft": 0.6 }`. |++### Response++`200` with `image/png` bytes. Headers report what was rendered:+`x-render-width`, `x-render-height`, `x-render-background`, and, when a pose+was applied, `x-render-pose` and `x-render-pose-label`.++### Errors++| Situation | Response |+|-----------|----------|+| Missing/non-public `glbUrl` | `400 bad_request` |+| Unknown pose preset | `400 unknown_pose` (GET the endpoint for the catalog) |+| Over 60 renders per 10 minutes per IP | `429` with `Retry-After` |+| Fetch or render failed | `502 render_failed` |++### curl++```bash+# Pose catalog+curl -s https://three.ws/api/render/avatar-clip++# Render a rigged model waving, orbited 30 degrees, on transparent+curl -s -X POST https://three.ws/api/render/avatar-clip \+ -H 'content-type: application/json' \+ -d '{+ "glbUrl": "https://three.ws/avatars/cesium-man.glb",+ "posePresetId": "wave",+ "cameraOrbit": { "theta": 30, "phi": 80, "radius": null },+ "background": "transparent"+ }' -o wave.png+```++---++## Optimize a GLB at runtime++**`GET /api/avatar/optimize`** returns a re-encoded variant of a+three.ws-hosted GLB tuned for the caller's hardware budget. The pipeline is+lossless or near-lossless (dedup, prune, weld, texture downscale to WebP), so+one source GLB can serve mobile WebGL, desktop WebGL, and VR runtimes without+per-platform asset duplication.++### Query parameters++Provide exactly one of `src` or `id`; the rest are optional.++| Param | Type | Default | Notes |+|-------|------|---------|-------|+| `src` | url | | Source GLB. Must be on a three.ws-controlled origin (the app origin or the CDN host); anything else is `400 untrusted_source`. |+| `id` | uuid | | A three.ws avatar ID. Only public or unlisted avatars resolve; private ones return `404`. |+| `lod` | enum | `0` | `0` = source, `1` = conservative weld/dedup, `2` = more aggressive weld. |+| `textureSize` | enum | `2048` | Max texture edge: `128`, `256`, `512`, `1024`, or `2048`. Larger textures are downscaled and re-encoded as WebP. |+| `morphs` | enum | `all` | `arkit52` drops every morph target not in the ARKit-52 standard set (plus canonical aliases and visemes); `all` keeps everything. |+| `draco` | flag | off | `draco=1` applies `KHR_draco_mesh_compression`. Smaller bytes, but the client needs a Draco decoder. |++### Response++`200` with `model/gltf-binary` bytes, cached immutably (30 days in the+browser, 1 year at the edge, keyed on the full URL). Headers+`x-three-ws-source-bytes` and `x-three-ws-output-bytes` report the size delta.++### Errors++| Situation | Response |+|-----------|----------|+| Missing `src` and `id`, or invalid `lod`/`textureSize`/`morphs` | `400 invalid_request` |+| `src` not on a three.ws origin | `400 untrusted_source` |+| Avatar/upstream not found | `404 source_not_found` |+| Source over 50 MB | `413 too_large` |+| Upstream fetch failed | `502 upstream_unreachable` |+| Transcode pipeline threw | `500 transcode_failed` |++Requests are rate-limited per IP; a `429` carries `Retry-After`.++### curl++```bash+# Mobile budget: 512px textures, ARKit-52 morphs only, Draco-compressed+curl -sL -o mobile.glb \+ 'https://three.ws/api/avatar/optimize?id=YOUR_AVATAR_ID&textureSize=512&morphs=arkit52&draco=1'++# By source URL, LOD 1+curl -sL -o lite.glb \+ 'https://three.ws/api/avatar/optimize?src=https%3A%2F%2Fthree.ws%2Favatars%2Fcesium-man.glb&lod=1'+```++---++## Same-origin GLB proxy++**`GET /api/glb?src=<url>`** streams any public GLB back with+`access-control-allow-origin: *`. Generated models live on a CDN whose CORS+policy is an origin allowlist, so a `<model-viewer>` embed on a partner site,+a Jupyter/Colab notebook, or a localhost preview cannot fetch them directly.+Routing the bytes through this proxy makes the read work from any origin.+Safe by construction: upstream objects are already public and keyless, and+the fetch runs through the SSRF-hardened fetcher (scheme allowlist, DNS+pinning, private-IP blocklist, redirect re-validation, byte cap, timeout).++### Query parameters++| Param | Type | Notes |+|-------|------|-------|+| `src` | url | Required. Public http(s) URL of a `.glb`. `url=` is accepted as an alias. |++### Response++`200` with `model/gltf-binary` bytes, cached immutably (generated GLBs are+content-addressed, so a given `src` never changes bytes). Max 30 MB, 20 s+upstream timeout, rate-limited per IP.++### Errors++| Situation | Response |+|-----------|----------|+| Missing or non-http(s) `src` | `400 bad_request` |+| Blocked target (`invalid_url`, `scheme_not_allowed`, `private_address`, `host_pin_mismatch`) | `400` with that code |+| Upstream over 30 MB | `413 file_too_large` |+| Upstream fetch failed | `502 fetch_failed` |++### curl++```bash+curl -sL -o model.glb \+ 'https://three.ws/api/glb?src=https%3A%2F%2Fthree.ws%2Favatars%2Fcesium-man.glb'+```++---++## Image understanding++**`POST /api/vision`** asks a vision model a question about an image and+returns plain text. The same capability powers Forge upload checks and+gallery alt text internally; this is the public HTTP surface. Free-first+provider chain with a paid backstop; the response tells you which provider+answered.++**`GET /api/vision`** is a capability probe:+`{ configured, imageTypes }`. Use it to decide whether to offer+describe/critique affordances before uploading anything.++### Request++Two transports:++| Transport | How |+|-----------|-----|+| Raw bytes | Body is the image; `Content-Type` must be `image/jpeg`, `image/png`, `image/webp`, or `image/gif`. Max 12 MB. |+| JSON | `{ "image": "<base64 or data URI>", "imageUrl": "...", "prompt": "...", "maxTokens": 512, "imageType": "image/png" }`. Provide `image` or `imageUrl` (a public https URL; SSRF-guarded). `imageType` labels a bare base64 `image` when it is not a data URI. |++`prompt` and `maxTokens` can also ride as query parameters on either+transport. `prompt` defaults to a concise two-sentence description and is+capped at 2000 characters; `maxTokens` is clamped to 16..2048 (default 512).++Rate limits are per user when signed in (session cookie or bearer token) and+per IP otherwise; signing in raises the budget.++### Response++```json+{ "text": "A low-poly bronze knight in a T-pose, brushed-metal armor...", "provider": "nvidia", "model": "..." }+```++### Errors++| Situation | Response |+|-----------|----------|+| No image in the request | `400 bad_request` |+| Unsupported raw `Content-Type` | `415 unsupported_media_type` |+| Image over 12 MB | `413 payload_too_large` |+| Bad `imageUrl` | `400 invalid_image_url` |+| No vision provider configured | `503 not_configured` |+| All providers failed | `502` with the upstream code |++### curl++```bash+# Capability probe+curl -s https://three.ws/api/vision++# Raw bytes with a custom question+curl -s -X POST 'https://three.ws/api/vision?prompt=What%20object%20is%20this%3F' \+ -H 'content-type: image/png' \+ --data-binary @render.png++# By URL+curl -s -X POST https://three.ws/api/vision \+ -H 'content-type: application/json' \+ -d '{"imageUrl":"https://three.ws/logo.png","prompt":"Describe this image in one sentence."}'+```++---++## Speech-to-text++**`POST /api/asr`** transcribes a spoken utterance. It is the voice-in+companion to `POST /api/tts/speak` (voice out), and exists so users can talk+to an avatar with a real cross-browser recognizer instead of the Chrome-only+`webkitSpeechRecognition`. The lane is NVIDIA Riva ASR; there is deliberately+no paid backstop, so when it is unconfigured clients keep their browser+fallback.++**`GET /api/asr`** is a capability probe:+`{ configured, encodings, sampleRate }`. `sampleRate` is `16000`, the Riva+acoustic-model rate clients should downsample to.++### Request++Two transports, max 8 MB of audio either way:++| Transport | How |+|-----------|-----|+| Raw bytes | Body is the audio; `Content-Type` picks the codec: `audio/wav` (header parsed, rate taken from the file), `audio/pcm` or `audio/L16` (raw 16-bit LE PCM; set `?rate=`), `audio/flac`, `audio/ogg` (Opus). WebM/Opus is rejected with `415`: decode it to PCM/WAV client-side first. |+| JSON | `{ "audio": "<base64>", "format": "wav", "language": "en-US", "sampleRate": 16000, "words": true, "model": "..." }`. `format` is one of `wav`, `pcm`, `flac`, `ogg` (default `wav`). |++Query parameters work on either transport: `language` (BCP-47, default+`en-US`), `rate` (PCM sample rate; defaults to 16000 when the audio does not+declare one), `words=1` (word-level timestamps), `model` (override the Riva+model name).++Rate limits mirror `/api/vision`: per user when signed in, per IP otherwise.++### Response++```json+{ "text": "make the avatar wave", "confidence": 0.94, "language": "en-US", "model": "...", "durationSec": 1.8 }+```++With `words=1` the response adds a `words` array of word-level timestamps.++### Errors++| Situation | Response |+|-----------|----------|+| Unsupported audio `Content-Type` (including WebM) | `415 unsupported_media_type` |+| Audio over 8 MB | `413 payload_too_large` |+| No audio bytes | `400 bad_request` |+| Riva rejected the input | `400 invalid_argument` |+| Lane not configured | `503 not_configured` |+| Upstream failure | `502 provider_error` |++### curl++```bash+# Capability probe+curl -s https://three.ws/api/asr++# Transcribe a WAV with word timestamps+curl -s -X POST 'https://three.ws/api/asr?words=1' \+ -H 'content-type: audio/wav' \+ --data-binary @speech.wav+```++---++## Character library++**`GET /api/avatars/library`** returns the curated rigged character library:+professionally rigged humanoid GLBs (Y Bot, X Bot, Warrok, Remy, zombies,+knights, plus CC0 sets like Quaternius and KayKit). Every GLB carries a+skeleton, skin weights, and textures, so it drops straight into the pose+studio, widget studio, or embed viewer and drives the whole canonical+animation clip library via retargeting. No auth, no key.++The GLBs live on the CDN; this endpoint serves a small manifest whose entries+carry absolute CDN URLs the browser loads directly (CDN CORS allows GET from+web origins).++### Query parameters++Pagination is opt-in and backward compatible:++| Param | Type | Notes |+|-------|------|-------|+| `limit` | integer | 1 to 1000. Omit it entirely to get the whole library in one response. |+| `offset` | integer | Starting index, default 0. Only meaningful with `limit`. |++### Response++```json+{+ "avatars": [+ {+ "name": "y-bot",+ "label": "Y Bot",+ "url": "https://<cdn>/avatars/mixamo/glb/y-bot.glb",+ "thumb": "https://<cdn>/avatars/mixamo/thumbs/y-bot.png",+ "bytes": 3145728,+ "skins": 1,+ "animations": 1,+ "source": "mixamo",+ "license": "Mixamo"+ }+ ],+ "total": 106,+ "generated_at": "2026-07-01T00:00:00.000Z"+}+```++`thumb` is present when a thumbnail has been rendered. With `limit` the+response adds `offset` and `next_offset` (`null` on the last page); `total`+is always the full library size. Before the manifest is staged the endpoint+returns `{ "avatars": [], "total": 0 }`, so feature-detect by emptiness, not+by error handling. Responses are edge-cached for 5 minutes.++### curl++```bash+# Whole library+curl -s https://three.ws/api/avatars/library++# Page of 24+curl -s 'https://three.ws/api/avatars/library?limit=24&offset=0'+```++---++## Object library++**`GET /api/objects/library`** is the same manifest pattern for the CC0 3D+prop library: free, commercial-OK objects (Poly Haven and other CC0 sources)+staged as web-ready GLBs. Identical pagination (`?limit=1..1000`,+`?offset=`), identical empty-until-staged behavior, no auth.++### Response++```json+{+ "objects": [+ {+ "name": "wooden-crate",+ "label": "Wooden Crate",+ "url": "https://<cdn>/objects/polyhaven/glb/wooden-crate.glb",+ "thumb": "https://<cdn>/objects/polyhaven/thumbs/wooden-crate.png",+ "bytes": 1048576,+ "categories": ["props"],+ "tags": ["wood", "container"],+ "license": "CC0",+ "source": "polyhaven"+ }+ ],+ "total": 0,+ "generated_at": "2026-07-01T00:00:00.000Z"+}+```++With `limit`, the response adds `offset` and `next_offset` exactly like the+character library.++### curl++```bash+curl -s 'https://three.ws/api/objects/library?limit=12'+```++---++## Save a generated GLB into your library++**`POST /api/avatars/from-forge`** saves a generated GLB (by URL) straight+into the caller's avatar library, server-side. This is the durable end of the+text-to-3D-avatar pipeline: forge a mesh (see the [3D API](#sec-001)), rig+it, then hand the final URL here. Doing the copy server-side sidesteps+cross-origin reads of provider URLs and browser upload caps, and routes+through the same avatar-creation path as a normal upload, so the result is a+first-class avatar with its own agent.++**Auth required**: a signed-in session cookie, or a bearer token carrying the+`avatars:write` scope. Everything else on this page is public; this endpoint+writes to your account.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `glb_url` | string | required | Public https URL of the GLB. SSRF-guarded; max 64 MB. |+| `name` | string | required | Avatar name, 1 to 80 characters. |+| `visibility` | enum | `unlisted` | `public`, `unlisted`, or `private`. |+| `source_prompt` | string | | The prompt that generated it, kept as provenance (max 1000 chars). |+| `rigged` | boolean | | Provenance only. The server inspects the GLB itself for the real rig state; this flag never decides anything. |+| `tags` | string[] | | Up to 20 organizing tags. |++The server fetches the GLB, validates the binary glTF header, copies it into+your storage namespace, registers the avatar, provisions its agent, and, when+the mesh arrived static, queues an auto-rig so the avatar can animate.++### Response++`201` with `{ "avatar": { ... }, "view_url": "https://three.ws/discover/avatar/<id>" }`.++### Errors++| Situation | Response |+|-----------|----------|+| Not signed in / missing scope | `401 unauthorized` |+| Missing `glb_url` or `name` | `400 invalid_request` |+| Non-public or non-https URL | `400 invalid_url` |+| URL did not return a valid GLB | `422 invalid_glb` |+| GLB over 64 MB | `413 payload_too_large` |+| Upstream fetch failed | `502 fetch_failed` |+| Too many saves | `429 rate_limited` with `Retry-After` |++### curl++```bash+curl -s -X POST https://three.ws/api/avatars/from-forge \+ -H 'authorization: Bearer YOUR_TOKEN' \+ -H 'content-type: application/json' \+ -d '{+ "glb_url": "https://three.ws/cdn/forge/anon/a1b2c3d4.glb",+ "name": "Bronze Knight",+ "visibility": "public",+ "source_prompt": "a bronze knight in ornate armor",+ "tags": ["knight", "fantasy"]+ }'+```++---++## Photo to avatar++**`POST /api/input-photo`** is the vision-validated front door for turning a+photo into an avatar. It checks that the image actually contains a face (so a+landscape or a text screenshot fails fast with guidance instead of burning a+generation slot), then submits it to the forge pipeline as an+image-conditioned generation with an avatar-optimized prompt, ready for+auto-rigging. No auth; rate-limited per IP on the generation bucket.++**Privacy is transient by default.** The source photo is never stored in the+creation log unless you set `privacy_opt_in: true`, and when you pass the+`storage_key` from `/api/forge-upload`, the uploaded object is deleted from+storage as soon as the generation job is created. No image bytes are written+to application logs.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `image_url` | string | required | Public https URL of the photo, max 2048 characters. |+| `storage_key` | string | | The storage key returned by `/api/forge-upload`, enabling the transient delete. |+| `privacy_opt_in` | boolean | `false` | `true` keeps the photo as the creation's preview image. |+| `tier` | enum | `standard` | `draft`, `standard`, or `high`. |+| `skip_face_check` | boolean | `false` | Bypass the face-presence gate (for stylized or partial inputs). |++### Response++`200` with the forge job fields (`job_id`, `creation_id`, and the rest of the+standard `/api/forge` submission response) plus:++```json+{+ "mode": "photo_to_avatar",+ "auto_rig": true,+ "privacy_retained": false,+ "privacy_note": "Your photo was processed transiently and was not stored. ..."+}+```++Poll the job on `/api/forge?job=<job_id>` like any forge generation.++### Errors++| Situation | Response |+|-----------|----------|+| Missing/invalid `image_url` | `400 invalid_image_url` |+| No face detected | `422 face_not_detected`, with a `reason` and an `override` hint (`skip_face_check: true`) |+| Generation service unreachable | `502 generation_unreachable` |+| Forge rejected the submission | Forge's own status and error code, passed through |+| Rate limit | `429` with `Retry-After` |++When the vision lane is unconfigured or errors, the face check fails open and+the submission proceeds; forge still validates the image.++### curl++```bash+curl -s -X POST https://three.ws/api/input-photo \+ -H 'content-type: application/json' \+ -d '{"image_url":"https://example.com/selfie.jpg","tier":"standard"}'+```++---++## Multi-view reconstruction++**`POST /api/input-multiview`** accepts 2 to 6 photos of one object from+different angles, validates each with vision (clear subject? in focus? not a+text screenshot?), and submits them to the forge pipeline as a multi-view+reconstruction job. The validation step catches mismatched images and blank+uploads before a generation slot is spent. Same transient-by-default privacy+policy as `/api/input-photo`. No auth; rate-limited per IP.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `image_urls` | string[] | required | 2 to 6 public https URLs, each max 2048 characters. Extras beyond 6 are dropped. |+| `storage_keys` | string[] | | Storage keys from `/api/forge-upload`, deleted after submission unless opted in. |+| `prompt` | string | | Optional guidance text, max 1000 characters. |+| `tier` | enum | `standard` | `draft`, `standard`, or `high`. |+| `privacy_opt_in` | boolean | `false` | `true` keeps the photos as preview images. |+| `skip_validation` | boolean | `false` | Bypass the per-image vision check. |++### Response++`200` with the forge job fields plus a per-image `validation` array,+`privacy_retained`, and `privacy_note`:++```json+{+ "job_id": "f1.eyJ...",+ "validation": [+ { "url": "https://example.com/front.jpg", "index": 0, "ok": true, "subject": "ceramic robot figurine" },+ { "url": "https://example.com/back.jpg", "index": 1, "ok": true, "subject": "ceramic robot figurine" }+ ],+ "privacy_retained": false,+ "privacy_note": "Your photos were processed transiently and were not stored. ..."+}+```++### Errors++| Situation | Response |+|-----------|----------|+| Fewer than 2 usable URLs | `400 too_few_images` |+| One or more images failed validation | `422 invalid_views`, with the full `validation` array (each failure carries an `issue` such as `no_subject`, `text_screenshot`, `too_dark_or_blurry`, or `abstract_or_diagram`, and an actionable `message`) plus an `override` hint (`skip_validation: true`) |+| Generation service unreachable | `502 generation_unreachable` |+| Rate limit | `429` with `Retry-After` |++### curl++```bash+curl -s -X POST https://three.ws/api/input-multiview \+ -H 'content-type: application/json' \+ -d '{+ "image_urls": [+ "https://example.com/owl-front.jpg",+ "https://example.com/owl-side.jpg",+ "https://example.com/owl-back.jpg"+ ],+ "tier": "high"+ }'+```++---++## Split a GLB into named parts++**`POST /api/forge-segment`** splits a 3D model into named, addressable parts+(an async job: submit, then poll). Useful for turning a monolithic generated+mesh into components you can recolor, swap, or animate independently. No+auth; rate-limited per IP.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `mesh_url` | string | required | Public https URL of the GLB. SSRF-validated server-side. |+| `method` | enum | `auto` | `auto`, `connected` (connected components), or `crease` (split at hard edges). |+| `max_parts` | integer | `24` | 2 to 64. |+| `min_part_faces` | integer | `64` | 4 to 100000. Parts smaller than this are merged. |+| `crease_angle` | number | `40` | 5 to 170 degrees, for the `crease` method. |+| `only_part` | string | | Export just this part id or name (e.g. `part_03`). |++### Response++`202` with `{ "job_id": "...", "status": "queued", "method": "auto", "eta_seconds": 30 }`.++**`GET /api/forge-segment?job=<id>`** polls the job:++```json+{+ "job_id": "...",+ "status": "done",+ "result_url": "https://.../segmented.glb",+ "manifest_url": "https://.../parts.json",+ "parts": [ { "...": "one entry per part" } ],+ "part_count": 12,+ "source_faces": 48210,+ "method": "auto",+ "warnings": null,+ "error": null+}+```++Fields are `null` until the stage that produces them completes; on failure+`status` reflects it and `error` carries the reason.++### Errors++| Situation | Response |+|-----------|----------|+| Missing/non-public `mesh_url` | `400 invalid_mesh_url` |+| Malformed `?job=` | `400 invalid_job` (missing entirely: `400 missing_job`) |+| Worker not deployed on this environment | `503 unconfigured` |+| Worker rejected the job | `502 segment_failed` |+| Rate limit | `429` with `Retry-After` |++### curl++```bash+# Submit+curl -s -X POST https://three.ws/api/forge-segment \+ -H 'content-type: application/json' \+ -d '{"mesh_url":"https://three.ws/cdn/forge/anon/a1b2c3d4.glb","method":"auto","max_parts":16}'++# Poll+curl -s 'https://three.ws/api/forge-segment?job=JOB_ID'+```++---++## Background removal++**`POST /api/forge-rembg`** removes the background from an image (an async+job: submit, get `202`, poll). It exists for the forge pipeline (clean+subject cutouts reconstruct better), but it is a general-purpose endpoint. No+auth; rate-limited per IP.++### Request body (JSON)++| Field | Type | Default | Notes |+|-------|------|---------|-------|+| `image_url` | string | required | Public https URL of the image. SSRF-validated server-side. |+| `model` | enum | `rmbg2` | `rmbg2`, `u2net`, `isnet`, `u2net_human_seg`, or `silueta`. |++### Response++`202` with `{ "job_id": "...", "status": "queued", "eta_seconds": 10 }`.++**`GET /api/forge-rembg?job=<id>`** polls the job:++```json+{ "job_id": "...", "status": "done", "result_url": "https://.../cutout.png", "error": null }+```++### Errors++| Situation | Response |+|-----------|----------|+| Missing/non-public `image_url` | `400 invalid_image_url` |+| Malformed `?job=` | `400 invalid_job` (missing entirely: `400 missing_job`) |+| Worker not deployed on this environment | `503 unconfigured` |+| Worker rejected the job | `502 rembg_failed` |+| Rate limit | `429` with `Retry-After` |++### curl++```bash+# Submit+curl -s -X POST https://three.ws/api/forge-rembg \+ -H 'content-type: application/json' \+ -d '{"image_url":"https://example.com/product-shot.jpg","model":"rmbg2"}'++# Poll+curl -s 'https://three.ws/api/forge-rembg?job=JOB_ID'+```++---++## Related++- [3D API](#sec-001) - the core free text-to-3D lane, model inspection, and the paid Forge Pro tiers+- [Image to 3D](#sec-174) - the photo-input reconstruction product these front doors feed+- [Voice Lab](#sec-374) - voice cloning and synthesis, the other half of the avatar voice loop+- [API Reference](#sec-084) - the full three.ws HTTP API surface++---++<a id="sec-196"></a>> **Source:** `docs/memetic-launcher.md` · [↑ table of contents](#table-of-contents)@@ -42181,12 +45215,12 @@ POST /api/launcher/me { "action": "resume" } → clear a tripped circuit brea## Related surfaces- [/launches](https://three.ws/launches) — every coin launched through three.ws, including yours.-- [docs/pump-launcher.md](#sec-221) — the x402 paid one-shot launcher (`/api/x402/pump-launch`), a different surface: one coin per paid call, platform-fronted.+- [docs/pump-launcher.md](#sec-238) — the x402 paid one-shot launcher (`/api/x402/pump-launch`), a different surface: one coin per paid call, platform-fronted.- `api/_lib/launcher-engine.js` — the shared engine both scopes run on (cron: `/api/cron/launcher-tick`).----<a id="sec-186"></a>+<a id="sec-197"></a>> **Source:** `docs/memory.md` · [↑ table of contents](#table-of-contents)@@ -42581,7 +45615,7 @@ In `ipfs` mode without encryption, treat the memory as semi-public. Don't store----<a id="sec-187"></a>+<a id="sec-198"></a>> **Source:** `docs/meta-allocator.md` · [↑ table of contents](#table-of-contents)@@ -42675,14 +45709,14 @@ plan `source` is `"empty"` with a helpful message instead of an error.## Related-- [Trader Card & the claim-your-wallet wedge](#sec-277)-- [The trading surfaces](#sec-281) · [/vaults](https://three.ws/vaults) (copy-trade with custody guardrails)-- [Clip Director: every trade becomes content](#sec-118)-- [Financial controls & custody guardrails](#sec-150)+- [Trader Card & the claim-your-wallet wedge](#sec-297)+- [The trading surfaces](#sec-301) · [/vaults](https://three.ws/vaults) (copy-trade with custody guardrails)+- [Clip Director: every trade becomes content](#sec-122)+- [Financial controls & custody guardrails](#sec-157)----<a id="sec-188"></a>+<a id="sec-199"></a>> **Source:** `docs/mint-mark.md` · [↑ table of contents](#table-of-contents)@@ -42808,13 +45842,97 @@ No other mint should appear in tests, fixtures, or documentation.## Related-- [Solana agents](#sec-266) — agent wallet management and on-chain interactions-- [Solana pump.fun signals](#sec-264) — pump.fun live feed integration-- [ERC-8004](#sec-146) — on-chain agent registry (uses the same brand metadata builder)+- [Solana agents](#sec-285) — agent wallet management and on-chain interactions+- [Solana pump.fun signals](#sec-283) — pump.fun live feed integration+- [ERC-8004](#sec-153) — on-chain agent registry (uses the same brand metadata builder)----<a id="sec-189"></a>+<a id="sec-200"></a>++> **Source:** `docs/minted.md` · [↑ table of contents](#table-of-contents)++# Minted 3D Assets: the public gallery of on-chain avatars++[three.ws/minted](https://three.ws/minted) is the live, public gallery of every generated or owned avatar that a creator chose to mint as a **Metaplex Core NFT** through three.ws. It is the NFT counterpart of the `/launches` coin directory: real on-chain property, listed the moment it mints. Every card renders the actual model in a live, auto-rotating 3D viewer (not a flat thumbnail), and every asset carries baked provenance and an enforced, capped creator royalty. Minting is always opt-in: the free text-to-3D lane never mints anything on its own.++This doc covers the gallery surface and the mint flow as a user-facing feature. The provenance internals live in their own docs: [content credentials for AI-generated models](#sec-235) (signed credentials, Solana anchoring, the free verify endpoint) and [the three.ws mint mark](#sec-199) (the `3ws` address branding on coin launches).++## The gallery++Open [/minted](https://three.ws/minted) with no account and no wallet. What you get:++- **A live 3D card per mint.** Each card is a `<model-viewer>` streaming the asset's GLB, slowly rotating, with the rendered thumbnail as its loading poster. Clicking the model opens it in the full interactive viewer.+- **Royalty chip.** The enforced on-chain creator royalty, as a percentage, on every card.+- **Remix badges.** An asset that names a `parent_mint` (a derivative of another creator's mint) is tagged `remix`; if the parent creator's royalty was actually paid out of the mint fee, the badge upgrades to `remix · royalty paid`.+- **Prompt line.** When the mint carries a generation prompt in its provenance, the card quotes it.+- **Mint link.** Every card links its mint address to Solscan (devnet assets link to the devnet cluster view).+- **Network toggle.** Mainnet is the default feed; a tab switches to devnet, where free test mints land.+- **Counters.** Assets on the page, average royalty, remixes with a paid-out royalty, and the selected network.+- **Continuous feed.** The grid paginates automatically as you scroll, and the top of the feed refreshes every 30 seconds while the tab is visible, so fresh mints appear without a reload.++An empty network shows an honest empty state pointing you at `/forge` to generate a model and at Agent Identity Studio to mint one. There are no synthetic entries.++### The feed API++The gallery reads a free, public, paginated endpoint that anyone (or any agent) can use:++```bash+curl "https://three.ws/api/v1/tokenized/launches?network=mainnet&offset=0&limit=24"+```++- Optional `agent_id=<uuid>` filters to one agent's mints.+- `limit` caps at 100; responses carry `has_more` for pagination.+- Rate-limited to 60 requests/min per IP, with a 15-second CDN cache so polling agents stay current without hammering the database.+- Like every `/api/v1` endpoint, the payload is wrapped in `{ "data": ... }` and the endpoint is discoverable via `GET /api/v1`.++## How a mint works++Minting runs through the `mint_3d_asset` tool on the [3D Studio MCP server](#sec-194). It is priced per call via x402 (USDC); an OAuth bearer token bypasses payment. A creator supplies:++- **The model:** an owned `avatar_id`, or any absolute `glb_url`.+- **The recipient:** an explicit `owner_wallet` (base58), or the OAuth-linked Solana wallet by default.+- **Royalty terms:** `seller_fee_basis_points`, hard-capped at 10% (1000 bps; a higher request is clamped and the response says so), and an optional `royalty_recipient` (defaults to the owner).+- **The network:** `devnet` by default for free testing; `mainnet` is explicit and is a real, disclosed on-chain write.+- **Optional lineage and provenance:** `parent_mint` (this is a remix), plus `prompt`, `generation_model`, and `generation_provider` overrides.++The server then:++1. **Claims an idempotency row before touching the chain.** Repeating a call for the same asset returns the same mint instead of minting twice; a failed attempt can be retried under the same key.+2. **Promotes the media to durable storage.** The GLB and a freshly rendered thumbnail are copied to a permanent first-party key (the NFT media never moves, even if the source avatar is later deleted), and pinned to IPFS when a pinning provider is configured (best-effort; a pin failure never fails the mint).+3. **Builds Metaplex-compliant metadata** with the GLB under `animation_url`, so wallets and marketplaces that render glTF show the live model, and everything else falls back to the rendered image.+4. **Mints the Core asset with an enforced Royalties plugin.** The recipient wallet owns the asset outright; the three.ws collection authority pays the rent and holds update authority (so the platform can curate on-chain metadata, but never move or take the asset).+5. **Records the launch** so the asset appears on `/minted` and in the feed API, with explorer and viewer links in the response.++### Baked provenance++Every mint carries its provenance twice:++- **In the NFT metadata itself:** creator, prompt, generation model and provider, parent lineage, and timestamp travel with the asset wherever it goes.+- **As a signed record on the platform's append-only agent-actions ledger** (when the source avatar has a provisioned agent to sign as): an independently verifiable entry, referenced in the mint response and queryable via the MCP action tools. This write is best-effort and never blocks a mint that already succeeded on-chain.++For how signed credentials, canonical hashing, and on-chain anchoring work under the hood, read [provenance.md](#sec-235). For the `3ws` address mark that brands coin launches, read [mint-mark.md](#sec-199).++### Remix royalties: paid the moment a remix mints++Naming another creator's mint as `parent_mint` makes your mint a remix, and that lineage is durable in both the metadata and the launch record. On mainnet, when a real per-call x402 fee was collected for the mint, the parent creator's royalty slice is routed out of that fee as a **real on-chain USDC transfer the moment the mint confirms**, and the settlement (amount, recipient, transaction) comes back in the mint response and shows on the gallery card.++Every non-paying outcome is reported with an honest reason rather than a fake "pending": devnet mints record lineage but settle nothing (the payout wallet holds real mainnet funds only), an OAuth-bypassed call collected no fee to split, a split can fall below the dust floor, or the parent may have no royalty wallet.++## Reading a mint back++The companion MCP tool `get_3d_asset_onchain` resolves any Core mint address to its live state: the current holder and enforced royalty terms read from the chain (authoritative over the platform record), the baked provenance, the GLB and viewer link with a liveness check, and, for assets minted through three.ws, the platform launch record and any remix settlement. It works on any Metaplex Core mint, not just ours.++## Related++- [Verifiable 3D provenance](#sec-235): signed content credentials and free verification for generated models+- [The three.ws mint mark](#sec-199): the `3ws` address brand on coin launches+- [MCP servers](#sec-194): the `mint_3d_asset` and `get_3d_asset_onchain` tools+- [Custody you can verify](#sec-140): the wallet rails behind agent-held assets++---++<a id="sec-201"></a>> **Source:** `docs/mocap-studio.md` · [↑ table of contents](#table-of-contents)@@ -42895,14 +46013,14 @@ curl 'https://three.ws/api/mocap/clips/<clipId>' -H 'cookie: <session>'## Related-- [Avatar Studio](#sec-097): build the avatar you drive here.-- [Animation Studio](#sec-080): body posing and keyframed motion, the complement to facial capture.-- [Animations reference](#sec-081): how captured and authored motion fit the platform's clip registry.+- [Avatar Studio](#sec-099): build the avatar you drive here.+- [Animation Studio](#sec-082): body posing and keyframed motion, the complement to facial capture.+- [Animations reference](#sec-083): how captured and authored motion fit the platform's clip registry.- [/create](https://three.ws/create): make or import the avatar to perform with.----<a id="sec-190"></a>+<a id="sec-202"></a>> **Source:** `docs/money-feed.md` · [↑ table of contents](#table-of-contents)@@ -42916,7 +46034,7 @@ event lives.> Not to be confused with the **personal activity feed** on `/feed`> (`GET /api/users/me/feed`) — that one shows who created what and who followed-> whom, and is documented in [The social layer](#sec-263). This page is+> whom, and is documented in [The social layer](#sec-282). This page is> about value movement only. The two share a URL word ("feed") and nothing else.---@@ -42952,7 +46070,7 @@ fixed allow-list of types:| `level-up`, `world-join`, `jackpot`, `mission-complete` | Play / world events. || `member-join` | A person signed in (throttled to once per user per 6h). || `agent-guard` | An autonomous buy was refused by a safety rule (`agentId`, `mint`, `reason`, `label`). |-| `agora-registered`, `agora-task-posted`, `agora-hired`, `agora-task-claimed`, `agora-task-completed`, `agora-earned`, `agora-vouched`, `agora-flagged` | [Agora](#sec-066) on-chain economy lifecycle events. |+| `agora-registered`, `agora-task-posted`, `agora-hired`, `agora-task-claimed`, `agora-task-completed`, `agora-earned`, `agora-vouched`, `agora-flagged` | [Agora](#sec-068) on-chain economy lifecycle events. |The ticker is a **curated delight layer**, not an exhaustive log: an event onlyappears if a caller explicitly published it with an allow-listed type. Internal@@ -42979,19 +46097,19 @@ Each row carries: `agent_id`, `user_id`, `event_type` (e.g. `spend`),`reason`, `status`, an `idempotency_key`, an optional `capability_id`, and a`meta` JSON blob. Spends pass through thespend-cap and policy engine before they are recorded (see-[Agent wallets](#sec-063)).+[Agent wallets](#sec-065)).## What flows in from where| Producer | Ledger? | Ticker? | Domain record ||---|---|---|---|-| [Circulation engine](#sec-116) tips/payments/trades/buys | Yes | Trades/launches via pump feed | `circulation_actions` + domain table |-| [Marketplace](#sec-178) skill/asset purchase | Yes | `payment` / `sale` | `skill_purchases` / `asset_purchases` |-| [Coin launches](#sec-119) | Yes | `coin-buy` / `agent-deploy` | `pump_agent_mints` |+| [Circulation engine](#sec-120) tips/payments/trades/buys | Yes | Trades/launches via pump feed | `circulation_actions` + domain table |+| [Marketplace](#sec-188) skill/asset purchase | Yes | `payment` / `sale` | `skill_purchases` / `asset_purchases` |+| [Coin launches](#sec-123) | Yes | `coin-buy` / `agent-deploy` | `pump_agent_mints` || Sniper trades | Yes (`category: 'snipe'`) | — | `agent_sniper_positions` |-| [Autonomous x402 loop](#sec-090) | Yes (`category: 'x402'`) | — | `x402_autonomous_log` |+| [Autonomous x402 loop](#sec-092) | Yes (`category: 'x402'`) | — | `x402_autonomous_log` || x402 service payments | Yes | `payment` | — |-| [Agora](#sec-066) tasks | On settlement | `agora-*` | on-chain |+| [Agora](#sec-068) tasks | On settlement | `agora-*` | on-chain |## Reading the feed programmatically@@ -43005,16 +46123,32 @@ curl 'https://three.ws/api/feed?limit=30'`limit` is clamped to 1–100; events are newest-first and each has a stable `id`and millisecond `ts`.+## Consumers beyond the ticker++The same bus powers surfaces that are not tickers at all:++- **[/symphony](https://three.ws/symphony)** renders the stream as live+ generative music: [`src/symphony-score.js`](../src/symphony-score.js) maps+ each allow-listed type to a synth voice (payments pluck, `coin-buy` lands as+ bass, `agent-guard` plays deliberate dissonance), pitches the note by amount+ and hashes the actor to a stable motif. Adding a new `ALLOWED_TYPES` entry?+ Give it a voice mapping there too, or it falls back to the bell voice.+ Solo mode narrows the same stream to one participant client-side:+ `/symphony?agent=<agentId>` (exact) or `/symphony?actor=<label>`+ (case-insensitive), which is what the "Listen →" link on an agent profile+ opens. No new endpoint: the filter runs over the events the bus already+ serves.+## Related-- [Circulation engine](#sec-116) — the largest producer of activity.-- [Autonomous x402 loop](#sec-090) — treasury-paid intel purchases.-- [Agent wallets](#sec-063) — how spends are gated before they're recorded.-- [x402 revenue & receipts](#sec-363) — the *other* direction: money paid **to** our endpoints (`x402_audit_log`), not agent spend.+- [Circulation engine](#sec-120) — the largest producer of activity.+- [Autonomous x402 loop](#sec-092) — treasury-paid intel purchases.+- [Agent wallets](#sec-065) — how spends are gated before they're recorded.+- [x402 revenue & receipts](#sec-383) — the *other* direction: money paid **to** our endpoints (`x402_audit_log`), not agent spend.----<a id="sec-191"></a>+<a id="sec-203"></a>> **Source:** `docs/money-map.md` · [↑ table of contents](#table-of-contents)@@ -43025,8 +46159,8 @@ wallet receives each kind of payment, what share the platform keeps, and whichtreasury pays it forward. If you're adding a paid surface or auditing revenue,start here.-Companion docs: [x402 endpoints](#sec-362) (the paid endpoint catalog),-[x402 revenue & receipts](#sec-363) (how settlements are recorded),+Companion docs: [x402 endpoints](#sec-382) (the paid endpoint catalog),+[x402 revenue & receipts](#sec-383) (how settlements are recorded),[Solana signers runbook](../api/_lib/solana-signers.js) (thesigner/funder wallets and how to fund them).@@ -43066,7 +46200,7 @@ Every engine signs from its **own** keypair; a single **funding root** tops thossigners up with SOL when they run low, and does nothing else. Documented in full —encodings, minimum balances, guards, funding tool — in the[Solana signers runbook](../api/_lib/solana-signers.js) and the-[economy master](#sec-142) subsystem doc.+[economy master](#sec-149) subsystem doc.| Wallet | Role || ------ | ---- |@@ -43126,7 +46260,7 @@ unit economics.[ring catalog](../api/_lib/x402/ring-catalog.js), the single source of truth)across intel/oracle, agent/reputation, generation/3D, launch/naming/utility,club, avatar shop, and bazaars. Full list and prices:- [x402 endpoints](#sec-362).+ [x402 endpoints](#sec-382).- **Paid MCP tools** —- Main MCP ([api/mcp.js](../api/mcp.js), pricing `api/_lib/pump-pricing.js`):`retexture_model` $0.10, `optimize_model` $0.05, `segment_model` $0.04,@@ -43145,9 +46279,9 @@ unit economics.in the on-chain ASP record, not in repo code** — update it here if the ASPregistration changes.- **Marketplace skills** — agent skill marketplace over Solana Pay- ([api/marketplace/](../api/marketplace)); see [marketplace skills](#sec-344).+ ([api/marketplace/](../api/marketplace)); see [marketplace skills](#sec-364).- **Labor market** — bounty/escrow jobs with worker + author-royalty settlement; see- [labor market](#sec-171).+ [labor market](#sec-181).- **Other** — vanity bounties, forge REST ([api/x402/forge.js](../api/x402/forge.js)),subscriptions, credit deposits.@@ -43157,7 +46291,7 @@ unit economics.Engines that move money on their own (cron/worker driven) draw from the signerwallets, not the receivers — and each signer is kept funded by the-[economy master](#sec-142) via the `treasury-topup` cron (every 30 min,+[economy master](#sec-149) via the `treasury-topup` cron (every 30 min,allowlist-guarded, reserve/per-engine/per-run caps). Which wallet funds whichengine and minimum balances are in the[Solana signers runbook](../api/_lib/solana-signers.js). The@@ -43193,23 +46327,23 @@ Guardrails on outflow: the economy master is funder-only with reserve/per-transfper-run caps and a registry allowlist; the ring can only settle to allowlistedwallets (anti-drain gate); the sniper auto-funder moves money only for strategiesthat set `auto_fund_enabled = true` (default off). See-[financial-controls.md](#sec-150) for the full register.+[financial-controls.md](#sec-157) for the full register.## Related-- [Financial controls & audit register](#sec-150) — every ledger's integrity, reconciliation, retention, monitoring, and the ranked gap list.-- [x402 endpoints](#sec-362) — the paid endpoint catalog and price overrides.-- [x402 revenue & receipts](#sec-363) — where settlements are recorded.-- [x402 ring economy](#sec-364) — the internal recirculation loop.-- [Pump platform fee](#sec-222) — the pump trade fee detail.-- [Coin-launch wallets](#sec-346) — launch-time wallet flow.+- [Financial controls & audit register](#sec-157) — every ledger's integrity, reconciliation, retention, monitoring, and the ranked gap list.+- [x402 endpoints](#sec-382) — the paid endpoint catalog and price overrides.+- [x402 revenue & receipts](#sec-383) — where settlements are recorded.+- [x402 ring economy](#sec-384) — the internal recirculation loop.+- [Pump platform fee](#sec-239) — the pump trade fee detail.+- [Coin-launch wallets](#sec-366) — launch-time wallet flow.- [Creator revenue splits](../api/_lib/cosmetics-economy.js) — `recordSaleAndSplit`: the cosmetic split math and its real USDC payout.-- [Agent wallet custody](#sec-063) — how custodial keys are held.+- [Agent wallet custody](#sec-065) — how custodial keys are held.- [Solana signers runbook](../api/_lib/solana-signers.js) — signer/funder wallets + funding.----<a id="sec-192"></a>+<a id="sec-204"></a>> **Source:** `docs/motion-swap.md` · [↑ table of contents](#table-of-contents)@@ -43291,11 +46425,11 @@ its error state.- [/capture](https://three.ws/capture) — video → 3D point cloud (scene, not person)- [/animations](https://three.ws/animations) — the clip library the output format matches-- [docs/animations.md](#sec-081) · [docs/avatar-reconstruction.md](#sec-096)+- [docs/animations.md](#sec-083) · [docs/avatar-reconstruction.md](#sec-098)----<a id="sec-193"></a>+<a id="sec-205"></a>> **Source:** `docs/multi-agent.md` · [↑ table of contents](#table-of-contents)@@ -43633,7 +46767,7 @@ To extend this into a full turn-based scene, add a `brain` attribute to Mira wit----<a id="sec-194"></a>+<a id="sec-206"></a>> **Source:** `docs/native-launchpad.md` · [↑ table of contents](#table-of-contents)@@ -43643,7 +46777,7 @@ three.ws has always been able to launch a coin for an agent. Until now, every onThis document covers the second lane: **the native launchpad**, a coin launch that runs on a bonding curve three.ws configures and owns. Same launch button, same 3D agent identity attached to the coin, different economics underneath.-Related surfaces: [the pump.fun lane](#sec-082) (`/api/pump/*`), [agent wallets](#sec-063) (custody), and [the launch page](https://three.ws/launch).+Related surfaces: [the pump.fun lane](#sec-084) (`/api/pump/*`), [agent wallets](#sec-065) (custody), and [the launch page](https://three.ws/launch).---@@ -43828,7 +46962,7 @@ Stated plainly, because a half-built feature that claims to be finished is worse----<a id="sec-195"></a>+<a id="sec-207"></a>> **Source:** `docs/news-rights.md` · [↑ table of contents](#table-of-contents)@@ -43922,11 +47056,301 @@ Three rules, in order of importance:- [`api/_lib/news-rights.js`](../api/_lib/news-rights.js) — the implementation- [`scripts/news-takedown-purge.mjs`](../scripts/news-takedown-purge.mjs) — the purge tool-- [Market Data API](#sec-177) — the paid market endpoints, including archive search+- [Market Data API](#sec-187) — the paid market endpoints, including archive search----<a id="sec-196"></a>+<a id="sec-208"></a>++> **Source:** `docs/notifications.md` · [↑ table of contents](#table-of-contents)++# Notifications: the bell, the /notifications center, and the inbox API++Everything that happens to your work on three.ws (a payment lands, a skill+sells, someone remixes your model, follows you, a quest finishes, a royalty+arrives) becomes a row in one per-user inbox. Two surfaces read that inbox:+the bell in the site header, and the full notification center at+[/notifications](https://three.ws/notifications). This page documents both+surfaces as coded, the category system behind the filter tabs, and the+complete API contract. Where those notifications come from (which features+fire which events) is covered in [The social layer](social-layer.md#notification-bell);+this page picks up where that one leaves off.++| Piece | Where | Source |+|---|---|---|+| Bell dropdown | The bell button in the header, on every page | [src/notifications.js](../src/notifications.js) |+| Notification center | [/notifications](https://three.ws/notifications) | [pages/notifications.html](../pages/notifications.html), [src/notifications-page.js](../src/notifications-page.js) |+| Preference editor | `/dashboard/settings` | [src/dashboard-next/pages/settings.js](../src/dashboard-next/pages/settings.js) |+| Inbox API | `GET/POST/DELETE /api/notifications/*` | [api/notifications/](../api/notifications/README.md) |++One inbox, two views. The dropdown holds the latest page for a quick glance;+the `/notifications` page adds category tabs, per-row delete, and cursor+pagination for the full history. Both import the same icon, label, link, and+escaping helpers from [src/notifications.js](../src/notifications.js), so a+notification always reads identically in both places.++---++## The notification record++Every row the API returns is++```+{ id, type, payload, read_at, created_at }+```++- `type` is a machine string like `skill_purchased`, `remix`, `follow`,+ `quest_complete`, or `royalty_paid`. The full producing vocabulary is+ `USER_EVENT_TYPES` in [api/_lib/feed.js](../api/_lib/feed.js) plus the types+ written directly by the purchase, forge, withdrawal, and security flows.+- `payload` carries the type-specific details (actor name, skill name, amounts,+ a `link` for click-through). The human-readable sentence is built client-side+ by `notifLabel()`; the click target is resolved by `notifLink()` from+ `payload.link`, then a Solana transaction signature (`payload.tx_signature`,+ linked to its Solscan page), then `payload.agent_id`.+- `read_at` is null until the notification is read; `created_at` orders the+ inbox and doubles as the pagination cursor.++Payload values are other users' text, so both surfaces HTML-escape every+interpolated string, and `notifLink()` only permits same-origin relative paths+or absolute `http(s)` URLs. A hostile payload cannot inject markup or drive+navigation into a `javascript:` URL. Payment amounts denominated in `$THREE`+render with the `$THREE` label; other recognized mints render with their+standard symbol, and an unrecognized mint degrades to a bare number rather+than naming a coin.++## Categories: how the filter tabs group types++The `/notifications` page has eight tabs: **All**, **Sales & earnings**,+**Purchases**, **Social**, **In person**, **Market alerts**, **Creations**,+and **Account**. Each notification type maps to exactly one category; the+mapping (`TYPE_CATEGORY`) lives in+[api/_lib/notify-prefs.js](../api/_lib/notify-prefs.js) and is mirrored in+[src/notifications-page.js](../src/notifications-page.js) for tab filtering.++| Category (tab) | Key | Notification types |+|---|---|---|+| Sales & earnings | `sales` | `skill_purchased`, `asset_purchased`, `sale`, `payment-earned`, `payment_received`, `referral_earned`, `referral_signup`, `referral_reward`, `pump_launch_filled`, `royalty_paid` |+| Purchases | `purchases` | `skill_purchase_confirmed`, `asset_purchase_confirmed`, `skill_gift_received`, `skill_gift_sent` |+| Social | `social` | `remix`, `reply`, `embed`, `mention`, `fork`, `follow`, `dm_received`, `agent_review`, `quest_complete` |+| In person | `irl` | `irl_interaction`, `irl_reply` |+| Market alerts | `alerts` | `pump_alert` |+| Creations | `creations` | `forge_complete`, `forge_failed` |+| Account | `account` | `withdrawal_completed`, `withdrawal_failed`, `payment_mismatch`, `asset_payment_mismatch`, `skill_payment_mismatch`, `security_alert`, `wallet_anomaly_frozen`, plus any type not in the map |++Two details worth knowing:++- **Unmapped types fall back to `account`**, so a newly added notification+ type is never silently undeliverable or unfilterable.+- **Tab filtering is client-side** over the pages already fetched. The API's+ own `?type=` parameter filters server-side by a single exact type (e.g.+ `?type=pump_alert`), not by category.++## How the bell and unread state work++The bell ([src/notifications.js](../src/notifications.js)) is mounted by the+shared nav on every page and is deliberately cheap:++- **Auth-aware.** It reads a local sign-in hint (`3dagent:auth-hint` in+ localStorage). Signed out: no polling at all, the badge stays hidden, and+ opening the panel shows a sign-in prompt instead of an empty inbox.+- **Polling.** Signed in, it fetches `GET /api/notifications?limit=20` every+ 30 seconds, re-polls when the tab regains focus, and pauses while the tab+ is hidden.+- **One fetch per user, not per tab.** All open tabs share the result through+ a localStorage cache plus a BroadcastChannel: whichever tab wins a+ best-effort fetch lock spends the request and broadcasts the payload;+ every other tab reuses it for the poll interval. A new tab seeds its badge+ from the cache instantly without its own request.+- **Backoff.** A 429 from the per-user rate budget starts an exponential+ backoff (doubling from 30 seconds, capped at 5 minutes), so the badge+ self-heals without hammering a drained budget.+- **The badge** shows the server's `unread_count` (rendered as `99+` past 99),+ updates its `aria-label`, and announces changes politely to screen readers.+- **Opening the panel marks everything read.** The dropdown is a glance+ surface: if anything is unread when it opens, it fires+ `POST /api/notifications/read-all` and zeroes the badge. Clicking a single+ row also marks that row read, sends an `opened` funnel beacon to+ `POST /api/notifications/track`, and navigates to the resolved link.+- **Push upsell at the value moment.** While the panel is open (never on page+ load), a one-time banner offers Web Push if it is supported, configured,+ not yet subscribed, and not previously declined. Push plumbing lives in+ [src/push-notifications.js](../src/push-notifications.js) and+ [public/push-sw.js](../public/push-sw.js).++## The notification center: /notifications++[pages/notifications.html](../pages/notifications.html) (served at+`/notifications`, `noindex`) is the overflow surface the dropdown never has+to be: full history, filterable, deletable.++- **Auth wall.** Without the local sign-in hint (or on a 401 from the API)+ the page shows a sign-in wall linking to `/login?next=/notifications`.+- **Category tabs** filter the fetched list client-side per the table above.+ The active tab is reflected with `aria-selected`; each empty category has+ its own designed empty state.+- **Pagination.** Pages of 30 load via the `before` cursor: the Load more+ button passes the last row's `created_at` back to the API and appends the+ result. The button renders only while the API reports `has_more`.+- **Per-row actions.** Clicking a row marks it read, tracks the open, and+ navigates. The delete button on each row removes it permanently+ (`DELETE /api/notifications/:id`), optimistically in the UI and+ fire-and-forget on the wire. Mark all read clears everything at once.+- Unlike the dropdown, the page never auto-marks the whole inbox read on+ open; unread rows stay highlighted until clicked or bulk-cleared.++## API contract++All endpoints require authentication: a session cookie or a bearer credential+(API key / OAuth). Unauthenticated calls answer+`401 { "error": "unauthorized" }`. State-changing routes additionally require+a CSRF token for cookie sessions (fetch one from `GET /api/csrf-token`, echo+it in the `X-CSRF-Token` header); bearer callers are CSRF-exempt, which is+what the examples below use. Every query is scoped to the caller's `user_id`,+so one user can never read, mark, or delete another's notifications. The+same endpoints are exposed as MCP tools by+[packages/notifications-mcp](../packages/notifications-mcp/README.md).++### List the inbox++```+GET /api/notifications?limit=20&type=<type>&before=<iso>+```++`limit` is 1..50 (default 20). `type` filters one exact notification type.+`before` pages past a `created_at` cursor.++```sh+curl -s 'https://three.ws/api/notifications?limit=5' \+ -H 'Authorization: Bearer YOUR_API_KEY'+```++```json+{+ "notifications": [+ {+ "id": "5f3c9c2a-1111-4222-8333-444455556666",+ "type": "remix",+ "payload": { "actor": "mira", "royaltyPaid": true, "royaltyUsd": 0.012, "link": "/viewer?src=..." },+ "read_at": null,+ "created_at": "2026-07-30T09:14:02.511Z"+ }+ ],+ "unread_count": 3,+ "has_more": false+}+```++> Source: [api/notifications/index.js](../api/notifications/index.js).++### Mark one read++```sh+curl -s -X POST \+ 'https://three.ws/api/notifications/5f3c9c2a-1111-4222-8333-444455556666/read' \+ -H 'Authorization: Bearer YOUR_API_KEY'+```++Returns `{ id, read_at }`. Idempotent: an already-read row keeps its original+`read_at`. 404 if the row is not the caller's.++> Source: [api/notifications/[id]/read.js](../api/notifications/[id]/read.js).++### Mark everything read++```sh+curl -s -X POST 'https://three.ws/api/notifications/read-all' \+ -H 'Authorization: Bearer YOUR_API_KEY'+```++Returns `{ marked_read: <count> }`.++> Source: [api/notifications/read-all.js](../api/notifications/read-all.js).++### Delete one++```sh+curl -s -X DELETE \+ 'https://three.ws/api/notifications/5f3c9c2a-1111-4222-8333-444455556666' \+ -H 'Authorization: Bearer YOUR_API_KEY'+```++Returns `{ ok: true, id, deleted: true }`; 400 for a non-UUID id, 404 if the+row is not the caller's. Removal is permanent.++> Source: [api/notifications/[id]/index.js](../api/notifications/[id]/index.js).++### Track a funnel event++```+POST /api/notifications/track+{ "notification_id": "<uuid>", "channel": "push" | "in_app", "event": "opened" | "returned" }+```++An idempotent analytics beacon closing the sent-to-opened-to-returned loop:+the service worker fires `opened` on a push click, the app fires `returned`+when it boots from a push-sourced open. Session-cookie auth only (no bearer),+CSRF-exempt, deduplicated server-side.++> Source: [api/notifications/track.js](../api/notifications/track.js).++### Preferences++```sh+# Read the resolved category x channel matrix+curl -s 'https://three.ws/api/notifications/preferences' \+ -H 'Authorization: Bearer YOUR_API_KEY'++# Turn push off for the social category+curl -s -X PUT 'https://three.ws/api/notifications/preferences' \+ -H 'Authorization: Bearer YOUR_API_KEY' \+ -H 'content-type: application/json' \+ -d '{ "categories": { "social": { "push": false } } }'+```++GET returns `{ categories, channels, prefs, push: { subscribed_devices } }`:+the seven categories from the table above, the four channels (`in_app`,+`push`, `email`, `telegram`), and the caller's resolved matrix. PUT stores a+sparse override; unknown categories, channels, and keys are dropped, and the+response echoes the re-resolved matrix. The body also accepts+`telegram_chat_id` (digits, settable and clearable) for the Telegram channel.++Delivery gating notes, all enforced in+[api/_lib/notify-prefs.js](../api/_lib/notify-prefs.js):++- Muting `in_app` for a category writes no inbox row at all for it: nothing+ in `unread_count`, nothing in `GET /api/notifications`, and turning it back+ on is not retroactive. The channels are independent, so a muted bell with+ push left on still delivers the OS notification.+- The `account` category's `in_app` channel is locked on. It is the durable+ record of withdrawals and security events, and the fallback bucket for+ unmapped types; the other three channels stay fully mutable.+- A user who never saved gets the defaults, and new categories light up+ automatically without a backfill.++The visual editor for all of this is the Notifications panel in+`/dashboard/settings` ([source](../src/dashboard-next/pages/settings.js)),+one click from the gear icon in both notification surfaces.++> Source: [api/notifications/preferences.js](../api/notifications/preferences.js).+> The endpoint-level README at+> [api/notifications/README.md](../api/notifications/README.md) covers the+> same routes from the operator's side (rate limits, table names, routing).++---++## Related pages++- [The social layer](#sec-282): where notification events come from+ and how they connect to the feed, follows, and portfolios.+- [api/notifications/README.md](../api/notifications/README.md): the+ endpoint directory's own reference.+- [packages/notifications-mcp](../packages/notifications-mcp/README.md): the+ same inbox as MCP tools for machine clients.++---++<a id="sec-209"></a>> **Source:** `docs/nvidia-inception.md` · [↑ table of contents](#table-of-contents)@@ -43969,7 +47393,7 @@ Membership is a startup program, not a partnership or an investment: NVIDIA revi----<a id="sec-197"></a>+<a id="sec-210"></a>> **Source:** `docs/nvidia-models.md` · [↑ table of contents](#table-of-contents)@@ -44173,7 +47597,7 @@ The free NVIDIA TTS lane: **Magpie multilingual on Riva**, selected by an NVCF `----<a id="sec-198"></a>+<a id="sec-211"></a>> **Source:** `docs/nvidia-nemotron-spotlight.md` · [↑ table of contents](#table-of-contents)@@ -44324,11 +47748,124 @@ Build the small stuff. Put it in front. The generator was never the hard part.----*three.ws is a browser-native platform for generating 3D avatars, worlds, and agents from a sentence. The text-to-3D lane described here is free and open: no key, no account. Our full NVIDIA model map lives in [`docs/nvidia-models.md`](#sec-197), and the pipeline internals are in [`docs/3d-asset-pipeline.md`](#sec-002).*+*three.ws is a browser-native platform for generating 3D avatars, worlds, and agents from a sentence. The text-to-3D lane described here is free and open: no key, no account. Our full NVIDIA model map lives in [`docs/nvidia-models.md`](#sec-210), and the pipeline internals are in [`docs/3d-asset-pipeline.md`](#sec-002).*----<a id="sec-199"></a>+<a id="sec-212"></a>++> **Source:** `docs/object-library.md` · [↑ table of contents](#table-of-contents)++# Object Library: free CC0 3D props for any scene++The Object Library is a free, curated gallery of CC0 3D objects and props: furniture, lighting, electronics, containers, tools, decor. Every object is public domain, free to use commercially with no attribution required. Preview any object live in the browser, place it in your real room with AR, or download the GLB and use it in any engine or tool.++Page: [/objects](https://three.ws/objects) · API: `GET /api/objects/library`+Source: [`pages/objects.html`](../pages/objects.html) · [`src/objects-library.js`](../src/objects-library.js) · [`api/objects/library.js`](../api/objects/library.js)++> This page covers the object gallery and its API. For rigged, animation-ready characters, see the [Character Library](#sec-116). For how AR placement works on phones and desktops, see [AR & WebXR](#sec-087).++---++## What is in the library++Several hundred CC0 props staged as web-ready GLBs on the R2 CDN, currently sourced from Poly Haven (each entry's `source` field says where it came from). Every entry carries its categories (for the filter chips), free-text tags (searched along with the name), and its file size. The API's `total` field is the authoritative count.++Objects are props, not agents: opening one in the viewer uses object mode, which shows view and modify affordances instead of the agent chat dock.++## Using the gallery++Each card renders the object live in an auto-rotating `<model-viewer>` (with the pre-rendered thumbnail as the poster) and offers three actions:++| Button | Destination | What you get |+|---|---|---|+| **Preview** | `/app#model=<glb-url>&kind=object&title=<name>` | The full three.js [3D viewer](#sec-373) in object mode (no agent chat; Restyle, AR, and Download affordances instead) |+| **AR** | `/ar/studio?src=<glb-url>&title=<name>` | [AR Studio](#sec-086): place the prop in your real space through the camera (see [AR & WebXR](#sec-087) for how the AR handoff works per device) |+| **Download** | The GLB URL directly | The raw GLB file, CC0, yours to use anywhere |++Gallery controls:++- **Category chips** above the grid filter by category (furniture, lighting, tools, and so on), derived live from the manifest. "All" clears the filter.+- **Search** matches names and tags; press `/` anywhere on the page to focus the search box.+- **Sort** by name (A to Z, Z to A) or by file size (largest or smallest first).+- The whole manifest is fetched once and filtered client-side, so chips, search, and sort are instant.+- Loading shows a skeleton grid; an empty library, an empty search result, and a fetch error each have their own designed state with a recovery action.++## API: `GET /api/objects/library`++Public, no authentication, CORS-open to GET from web origins. The endpoint proxies a small manifest JSON from the R2 CDN (`objects/library/manifest.json`) with an edge cache (`Cache-Control: public, s-maxage=300, stale-while-revalidate=3600`). The GLB and thumbnail bytes never pass through the API: every entry carries absolute CDN URLs the browser loads directly. It mirrors the [Character Library API](#sec-116) exactly, with `objects` in place of `avatars`.++### Query parameters++| Parameter | Type | Default | Notes |+|---|---|---|---|+| `limit` | integer, 1 to 1000 | none | Opt-in pagination. Omit it to get the entire library in one response. Values are clamped into 1..1000. |+| `offset` | integer, >= 0 | 0 | Only meaningful together with `limit`. |++### Response shape++Without `limit`:++```json+{+ "objects": [ { "...": "entry, see below" } ],+ "total": 511,+ "generated_at": "2026-07-21T13:16:14.305Z"+}+```++With `limit` (and optional `offset`), the response adds `offset` and `next_offset`. `next_offset` is `null` on the last page, and `total` is always the full library size, not the page size.++Each entry in `objects`:++| Field | Type | Meaning |+|---|---|---|+| `name` | string | URL-safe slug, stable identifier |+| `label` | string | Display name |+| `url` | string | Absolute CDN URL of the GLB |+| `thumb` | string (optional) | Absolute CDN URL of the PNG thumbnail; only present when the thumbnail actually rendered, so it is never a broken image link |+| `bytes` | number | GLB file size |+| `categories` | string[] | Categories, used by the gallery's filter chips |+| `tags` | string[] | Free-text tags, searched by the gallery |+| `license` | string | `"CC0"` |+| `source` | string | Origin catalog, e.g. `"polyhaven"` |++Before the manifest is first uploaded, the endpoint returns `{ "objects": [], "total": 0 }` rather than an error, so consumers feature-detect by emptiness.++### Example++```bash+curl -s 'https://three.ws/api/objects/library?limit=2&offset=0'+```++Returns the first two objects plus `total`, `offset`, and `next_offset`, each entry with a directly loadable `url` (GLB) and, when rendered, a `thumb` (PNG).++## Licensing++Every object in the library is CC0 (public domain), and every manifest entry carries `"license": "CC0"`. That means:++- Free for any use, personal or commercial.+- No attribution required (crediting the original authors listed in the source catalogs is appreciated, never required).+- You may download the GLB and use, modify, or redistribute it anywhere, inside or outside three.ws.++## How the library is staged (maintainers)++The gallery and API are read-only consumers of a manifest built by a local pipeline. The GLB bytes live on the R2 CDN; only the manifest index is published:++1. `scripts/fetch-polyhaven-objects.mjs` downloads and converts the source models and writes `public/objects/polyhaven/catalog.json`.+2. `scripts/render-glb-thumbnails.mjs` renders the PNG thumbnails to R2.+3. `scripts/build-object-library.mjs` reads the catalog, keeps only completed models, includes a `thumb` only for thumbnails that actually rendered, and PUTs `objects/library/manifest.json` to R2 (`--dry-run` prints without uploading).++## Related++- [Character Library](#sec-116): the rigged, animation-ready counterpart to this library.+- [AR & WebXR](#sec-087): the device-by-device AR methods behind the AR button.+- [AR Studio](#sec-086): the `/ar/studio` surface the AR button opens, including multi-object rooms.+- [3D Viewer](#sec-373): the `/app` engine the Preview button opens in object mode.++---++<a id="sec-213"></a>> **Source:** `docs/okx-marketplace.md` · [↑ table of contents](#table-of-contents)@@ -44339,8 +47876,8 @@ on-chain agent marketplace. Buyers are agents: they discover a service, receivepayment challenge, pay in stablecoins on X Layer (or USDC on our other x402 rails), and getthe artifact. Our marketplace listing is agent **#2632 "three.ws 3D Studio"**.-> Related: [REST API Reference](#sec-082) · [MCP servers](#sec-184) ·-> [x402 payments](#sec-366) · seller-side protocol spec: [`specs/okx-agent-payments.md`](../specs/okx-agent-payments.md)+> Related: [REST API Reference](#sec-084) · [MCP servers](#sec-194) ·+> [x402 payments](#sec-386) · seller-side protocol spec: [`specs/okx-agent-payments.md`](../specs/okx-agent-payments.md)The **single source of truth** for every service (names, 2-part OKX descriptions, prices,endpoints, input schemas) is [`api/_lib/okx-catalog.js`](../api/_lib/okx-catalog.js), the@@ -44462,7 +47999,7 @@ tests.## Decomposed 3D studio servicesMicro-priced, single-capability REST endpoints, plain JSON `POST`, one price each, all-backed by the same engines the [MCP 3D studio](#sec-184) runs (no separate pipeline).+backed by the same engines the [MCP 3D studio](#sec-194) runs (no separate pipeline).`GET` on any of them returns its free descriptor (price, description, input schema).| Service | Price (USDT) | Endpoint | You send |@@ -44594,13 +48131,164 @@ USDC rails. The wire format OKX buyers use (headers `PAYMENT-REQUIRED` /----<a id="sec-200"></a>+<a id="sec-214"></a>++> **Source:** `docs/onboarding-tier.md` · [↑ table of contents](#table-of-contents)++# The onboarding tier (Simple ⇄ Everything)++three.ws ships a lot of surface: around 100 nav destinations and a homepage that+runs from text-to-3D through autonomous trading, on-chain identity and pay-per-call+payments. For someone who already knows the platform that breadth is the point.+For someone arriving for the first time it was the problem — the product's core+promise (make a 3D avatar, give it a brain, put it on your site) was competing for+attention with a trading terminal.++The onboarding tier fixes that without deleting anything. A first-time visitor gets+the **lite** tier: the ~20 destinations and the handful of homepage sections that+carry the core journey. Everything else is one click away behind a labelled control,+and once a visitor asks for it, it stays open on every page and every visit.++**Nothing is removed. Only deferred.**++---++## What a first-time visitor sees++| Surface | Lite tier | Full tier |+| --- | --- | --- |+| Nav menus | Build, Discover, Learn (~21 links) | + Launch (~101 links) |+| Homepage | Hero, start path, Forge, embed demo, the three doors, community, pose, AR, showcase | + trading, capabilities grid, token economy, live economy, Oracle, pay-per-call, developer platform, the stack |+| Mobile drawer | 27 rows | 109 rows |++Directly under the homepage hero sits the **start path**: three steps, each with an+honest time estimate, in the order the product actually works.++1. **Create a 3D avatar** (~1 min) → [/create/prompt](https://three.ws/create/prompt)+2. **Build an AI agent** (~3 min) → [/create-agent](https://three.ws/create-agent)+3. **Publish anywhere** (~1 min) → the live embed demo on the same page++A visitor who already knows what they want is not trapped: the start path header+carries a "Power user? Skip to the advanced platform" link straight to the gate.++---++## How to switch tiers++Any of these flips the same preference, and every other surface follows immediately:++- **"Show everything"** at the foot of any nav dropdown (it names the count it is+ hiding, e.g. `Show everything +8`)+- **"Show everything"** at the end of the mobile drawer+- **"Show the advanced platform"** on the homepage's advanced gate+- Any **topic chip** on that gate (Autonomous trading, Token economy, Oracle+ scoring, …), which expands and jumps to that section+- **Following a link into a gated section** — a shared `three.ws/#home-x402` URL+ reveals its section for that visit rather than landing on a page that appears+ to be missing content+- Programmatically: `window.twsTier.set(false)` for full, `true` for lite,+ `window.twsTier.toggle()`, `window.twsTier.isLite()`++Going back is symmetrical: the same control reads "Show the simple menu".++---++## How it works++The tier is **one class on `<html>`** (`tws-lite`) driven by **one localStorage key**+(`tws:tier`, values `lite` | `full`, default `lite`). Everything else is CSS.++```+public/nav-data.js tier: 'advanced' on a group, a column, or one item+public/nav.js applyTier() + window.twsTier + the in-menu controls+public/nav.css html.tws-lite .nav [data-tier="advanced"] { display: none }+pages/home.html data-tier="advanced" sections + #advanced-gate + boot script+public/home.css html.tws-lite [data-tier="advanced"] { display: none }+```++Three properties are worth knowing before you touch it:++**It never re-renders.** Switching tiers flips a class, nothing more. The nav's+dropdown and drawer wiring binds document-level listeners once at mount, so+re-rendering the menus would strand those listeners on detached nodes. Every+destination is always in the DOM; CSS decides what is visible.++**It never flashes.** The class is applied before paint — in the homepage's inline+`<head>` boot script, and at the top of `nav.js` before the menus are rendered. A+visitor never sees advanced content appear and then vanish.++**The two surfaces stay in sync through one event.** `applyTier` dispatches+`tws:tier-change`; the homepage gate listens for it, and the nav listens for+changes made elsewhere. Flipping the tier in a nav menu updates the homepage gate+button's `aria-expanded` in the same frame.++### Adding a destination++Add it to `public/nav-data.js` as usual. Then decide the tier:++```js+{+ title: 'Copy Trading',+ href: '/mirror',+ tier: 'advanced', // a newcomer would need to know what this is first+ desc: 'Follow a proven agent by its honest on-chain track record',+}+```++Tag it `advanced` when someone would have to already know what it is to want it:+trading terminals, payment protocols, on-chain intel, capture rigs. Leave it in the+lite tier when it serves **creating, publishing, or browsing** — that is the journey+the lite tier exists to protect. `tier` works at three levels; the widest one wins:++- **group** — the whole menu disappears from the nav bar (this is how `Launch` is+ handled). A wholly-advanced group deliberately gets no "show everything" footer:+ that control could only ever collapse the menu the visitor is reading.+- **column** — one column of a mega menu, e.g. `Money & social`. The popover+ re-lays its grid to the remaining column count (`lite-cols-N`), so a hidden+ column never leaves an empty track.+- **item** — a single row.++### Adding a homepage section++Put `data-tier="advanced"` and a stable `id` on the `<section>`, then add a chip+for it inside `#advanced-gate` pointing at that id. The id is load-bearing: it is+what deep links and chips resolve against, and+`tests/onboarding-tier.test.js` fails if a chip points at a section that does not+exist.++---++## Guardrails++`tests/onboarding-tier.test.js` (19 tests) pins the parts that would otherwise+drift silently, since the four files involved have no import edge between them:++- the lite menu stays scannable (10–30 links) and the advanced tier keeps >50+- `/create`, `/create-agent`, `/forge`, `/create/selfie`, `/docs` and `/avatar-sdk`+ never leave the lite tier+- `/pay`, `/crypto`, `/mirror`, `/swarms`, `/pulse` and `/clash` stay out of it+- the storage key, the `<html>` class and the sync event match across nav and homepage+- every advanced-gate chip resolves to a real gated section+- the homepage's first magic (the Forge, the embed demo) is never gated+- a new visitor with unreadable localStorage lands on lite, not full++---++## Related++- [`public/nav-data.js`](../public/nav-data.js) — the single source of truth for every menu+- [`STRUCTURE.md`](../STRUCTURE.md) — where every product surface lives+- [`docs/start-here.md`](#sec-289) — the same journey, written for a human rather than a maintainer++---++<a id="sec-215"></a>> **Source:** `docs/onchain-agents.md` · [↑ table of contents](#table-of-contents)# Deploying Agents On-Chain (Bulk)-Give every three.ws agent a real on-chain identity: a **Metaplex Core NFT** minted into the **three.ws Agents collection** on Solana. This page is for platform admins and self-hosters; regular users register a single agent through the wallet-signed flow instead. It is the bulk/admin counterpart to the single-agent, user-signed flow in [Solana agents](#sec-266): it deploys many agents server-side, with a live recording dashboard at `/admin/bulk-launch` and a CLI runner.+Give every three.ws agent a real on-chain identity: a **Metaplex Core NFT** minted into the **three.ws Agents collection** on Solana. This page is for platform admins and self-hosters; regular users register a single agent through the wallet-signed flow instead. It is the bulk/admin counterpart to the single-agent, user-signed flow in [Solana agents](#sec-285): it deploys many agents server-side, with a live recording dashboard at `/admin/bulk-launch` and a CLI runner.> Not pump.fun. These are NFTs (on-chain identity), not tokens. The only coin three.ws ever references is `$THREE`; it appears in each asset's metadata as a link, nothing more.@@ -44665,7 +48353,7 @@ Every agent is minted **into** a single Metaplex Core *collection* account, "thr2. **DB** — the `app_settings` table, key `solana_agent_collection_<network>`.3. **Deploy** — first run with neither set deploys the collection (funded + signed by the authority), then persists its address to `app_settings`.-> After the first run, set `SOLANA_AGENT_COLLECTION_MAINNET=<address>` in your environment so the single-agent flow in [Solana agents](#sec-266) mints into the *same* collection.+> After the first run, set `SOLANA_AGENT_COLLECTION_MAINNET=<address>` in your environment so the single-agent flow in [Solana agents](#sec-285) mints into the *same* collection.---@@ -44884,14 +48572,14 @@ A confirmed canary asset shows `inCollection=true`, `royalty=500bps`, `attrs=11`## See also-- [Solana agents](#sec-266) — the single-agent, user-signed registration flow.-- [ERC-8004](#sec-146) — the EVM on-chain identity path.-- [Agent manifest](#sec-050) — the metadata schema.-- [Mint mark ("3ws")](#sec-188) — vanity marking for three.ws launches.+- [Solana agents](#sec-285) — the single-agent, user-signed registration flow.+- [ERC-8004](#sec-153) — the EVM on-chain identity path.+- [Agent manifest](#sec-051) — the metadata schema.+- [Mint mark ("3ws")](#sec-199) — vanity marking for three.ws launches.----<a id="sec-201"></a>+<a id="sec-216"></a>> **Source:** `docs/openai-pr/00-START-HERE.md` · [↑ table of contents](#table-of-contents)@@ -44934,13 +48622,13 @@ the specific gaps that would fail review or embarrass us in front of OpenAI.| # | Brief | Priority | Blocks submit? || --- | --- | --- | --- |-| 01 | [Resolve the orphaned studio-viewer widget](#sec-202) | P0 | Yes (dead code + false docs) |-| 02 | [Reconcile the served `.well-known` manifests with the zero-payment claim](#sec-203) | P0 | Yes (reviewer-discoverable crypto surface) |-| 03 | [Make the `forge_free` tier story true everywhere](#sec-204) | P1 | Yes (submission doc contradicts code) |-| 04 | [Close the test gaps on the ChatGPT-facing surface](#sec-205) | P1 | No, but required for "done" |-| 05 | [Serve the custom-GPT OpenAPI and align legal URLs](#sec-206) | P1 | Partial |-| 06 | [Fix doc accuracy and reconcile the tool-count story](#sec-207) | P1 | No |-| 07 | [Final live verification and submit checklist](#sec-208) | P2 (runs last) | Yes (the actual go/no-go) |+| 01 | [Resolve the orphaned studio-viewer widget](#sec-217) | P0 | Yes (dead code + false docs) |+| 02 | [Reconcile the served `.well-known` manifests with the zero-payment claim](#sec-218) | P0 | Yes (reviewer-discoverable crypto surface) |+| 03 | [Make the `forge_free` tier story true everywhere](#sec-219) | P1 | Yes (submission doc contradicts code) |+| 04 | [Close the test gaps on the ChatGPT-facing surface](#sec-220) | P1 | No, but required for "done" |+| 05 | [Serve the custom-GPT OpenAPI and align legal URLs](#sec-221) | P1 | Partial |+| 06 | [Fix doc accuracy and reconcile the tool-count story](#sec-222) | P1 | No |+| 07 | [Final live verification and submit checklist](#sec-223) | P2 (runs last) | Yes (the actual go/no-go) |Run 01, 02, 03 first (they change code and docs the later tasks depend on). 04, 05,06 can run in parallel after. 07 runs last, after everything else is merged.@@ -44988,7 +48676,7 @@ These are non-negotiable and OVERRIDE any default behavior:----<a id="sec-202"></a>+<a id="sec-217"></a>> **Source:** `docs/openai-pr/01-orphan-widget-resolution.md` · [↑ table of contents](#table-of-contents)@@ -44996,7 +48684,7 @@ These are non-negotiable and OVERRIDE any default behavior:> **Resolved 2026-07-18** in commit `0b50834d7` ("Refactor apps-sdk studio viewer"): the orphaned viewer source and its build script were removed, exactly as this task specifies. Kept as the record of the finding; the file links below point at the now-deleted paths and are left as plain code references.-Read [`00-START-HERE.md`](#sec-201) first for the shared rules and the map.+Read [`00-START-HERE.md`](#sec-216) first for the shared rules and the map.## The problem (verified, with evidence)@@ -45116,13 +48804,13 @@ fetches from** (three.ws, the R2 storage origin, and the CDN if used). Match wha----<a id="sec-203"></a>+<a id="sec-218"></a>> **Source:** `docs/openai-pr/02-wellknown-manifest-conflict.md` · [↑ table of contents](#table-of-contents)# Task 02 — Reconcile the served `.well-known` manifests with the zero-payment claim (P0)-Read [`00-START-HERE.md`](#sec-201) first. **This task touches a manifest+Read [`00-START-HERE.md`](#sec-216) first. **This task touches a manifestthat references crypto/x402. The commit gate in `00-START-HERE.md` rule 7 applies:do the work, but do NOT commit anything that references a non-$THREE crypto projectwithout explicit owner approval. Flag it in your report instead.**@@ -45237,13 +48925,13 @@ manifest layer. Recommended approach (implement this unless you find it wrong):----<a id="sec-204"></a>+<a id="sec-219"></a>> **Source:** `docs/openai-pr/03-forge-free-tier-truth.md` · [↑ table of contents](#table-of-contents)# Task 03 — Make the `forge_free` tier story true everywhere (P1, blocks submit)-Read [`00-START-HERE.md`](#sec-201) first.+Read [`00-START-HERE.md`](#sec-216) first.## The problem (verified, with evidence)@@ -45285,8 +48973,8 @@ metadata surface say "standard by default, higher tiers available on request."description matches the code: standard default, `tier` param lets the caller askfor draft or high, high may take longer or degrade under load.2. Grep every doc for the "highest quality"/"high tier by default" claim and fix each:- [`docs/mcp-studio.md`](#sec-181),- [`docs/mcp-3d-studio.md`](#sec-179), the tool descriptions the+ [`docs/mcp-studio.md`](#sec-191),+ [`docs/mcp-3d-studio.md`](#sec-189), the tool descriptions theMCP server itself returns in `tools/list` (check `tools.js` tool metadata strings),and `apps-sdk/README.md`.3. Make sure the tool's own `description` string returned to ChatGPT is accurate, so@@ -45339,13 +49027,13 @@ and a doc claiming it works.----<a id="sec-205"></a>+<a id="sec-220"></a>> **Source:** `docs/openai-pr/04-openai-surface-test-coverage.md` · [↑ table of contents](#table-of-contents)# Task 04 — Close the test gaps on the ChatGPT-facing surface (P1)-Read [`00-START-HERE.md`](#sec-201) first.+Read [`00-START-HERE.md`](#sec-216) first.## The problem@@ -45425,13 +49113,13 @@ exported per the file). Use an existing JSON-schema/OpenAPI validator already in----<a id="sec-206"></a>+<a id="sec-221"></a>> **Source:** `docs/openai-pr/05-custom-gpt-openapi-serving.md` · [↑ table of contents](#table-of-contents)# Task 05 — Serve the custom-GPT OpenAPI and align legal URLs (P1)-Read [`00-START-HERE.md`](#sec-201) first. Coordinate with Task 02 (the+Read [`00-START-HERE.md`](#sec-216) first. Coordinate with Task 02 (theserved schema must be payment-free) and Task 04 (a contract test binds to it).## The problem (verified, with evidence)@@ -45514,13 +49202,13 @@ be normalized to one canonical form.----<a id="sec-207"></a>+<a id="sec-222"></a>> **Source:** `docs/openai-pr/06-docs-accuracy-reconciliation.md` · [↑ table of contents](#table-of-contents)# Task 06 — Fix doc accuracy and reconcile the tool-count story (P1)-Read [`00-START-HERE.md`](#sec-201) first. This task cleans up the+Read [`00-START-HERE.md`](#sec-216) first. This task cleans up thedocumentation drift the audit found, EXCEPT the two docs owned by other tasks(`apps-sdk/README.md` studio-viewer section is Task 01; the `forge_free` tier claim isTask 03). Do not fight those tasks for those specific edits; coordinate.@@ -45595,13 +49283,13 @@ Task 03). Do not fight those tasks for those specific edits; coordinate.----<a id="sec-208"></a>+<a id="sec-223"></a>> **Source:** `docs/openai-pr/07-final-verification-and-submit.md` · [↑ table of contents](#table-of-contents)# Task 07 — Final live verification and submit checklist (P2, runs last)-Read [`00-START-HERE.md`](#sec-201) first. **Run this only after tasks+Read [`00-START-HERE.md`](#sec-216) first. **Run this only after tasks01-06 are merged.** This is the go/no-go gate before the app is submitted to OpenAI.## Purpose@@ -45685,7 +49373,7 @@ go/no-go report. Do not submit; prepare so the human's final submit is one actio----<a id="sec-209"></a>+<a id="sec-224"></a>> **Source:** `docs/oracle.md` · [↑ table of contents](#table-of-contents)@@ -46069,7 +49757,7 @@ The more data we watch, the sharper every score. Oracle is live now.----<a id="sec-210"></a>+<a id="sec-225"></a>> **Source:** `docs/package-extraction.md` · [↑ table of contents](#table-of-contents)@@ -46188,7 +49876,7 @@ part of the extraction itself — extract and publish first, swap the import lat----<a id="sec-211"></a>+<a id="sec-226"></a>> **Source:** `docs/partners/sperax-proposal.md` · [↑ table of contents](#table-of-contents)@@ -46236,7 +49924,7 @@ Both sides already ship for a living — this proposal only asks each of us to d----<a id="sec-212"></a>+<a id="sec-227"></a>> **Source:** `docs/pay-skills-listing.md` · [↑ table of contents](#table-of-contents)@@ -46289,7 +49977,7 @@ const fetchWithPayment = withPaymentInterceptor(fetch, wallet);// Check a 3D modelconst res = await fetchWithPayment(- "https://three.ws/api/x402/model-check?url=https://example.com/model.glb"+ "https://three.ws/api/x402/model-check?url=https://three.ws/avatars/cesium-man.glb");const { model, suggestions } = await res.json();@@ -46337,7 +50025,461 @@ are supported.----<a id="sec-213"></a>+<a id="sec-228"></a>++> **Source:** `docs/payment-sessions.md` · [↑ table of contents](#table-of-contents)++# Payment Sessions++A Payment Session is a platform-managed spend envelope for agents. You fund a+budget from your prepaid credits, receive a bearer token, and hand that token+to an agent (or any script). The agent then calls paid x402 endpoints through+`POST /api/pay/execute` without ever holding a private key: the platform's+Solana wallet signs each payment, and a spend governor enforces your budget,+host allowlist, and per-transaction cap on every call. This is for developers+who want an agent to spend real money inside hard limits, with a full+execution ledger and an unspent-budget refund when the session ends.++The design principle: the agent does not hold a wallet. It proposes spend;+governance enforces policy.++Base URL: `https://three.ws`++---++## How the pieces fit++1. **Credits** are your prepaid balance, denominated in USD. Top up by sending+ SOL or $THREE to the platform deposit wallet, then verifying the transfer+ with `POST /api/credits/deposit`.+2. **A session** locks part of that balance into a budget envelope+ (`POST /api/pay/session`). Creation debits your credits up front and returns+ a one-time bearer token in the form `pss_<session-id>_<random>`. Only an+ HMAC-SHA256 hash of the token is stored; if you lose it, cancel the session+ and create a new one.+3. **Executions** spend the envelope. Each `POST /api/pay/execute` call probes+ the target URL for its 402 challenge, runs the governance checks, reserves+ budget atomically, signs a Solana USDC transfer with the platform payer+ wallet, presents the `X-PAYMENT` header, and records the result in the+ session's execution ledger.+4. **Cancel or expire** to get the rest back. `DELETE /api/pay/session/:id`+ refunds the unspent budget to your credits immediately; a scheduled sweep+ (`/api/cron/payment-session-sweep`, every 5 minutes) does the same for+ sessions that pass their expiry while still active.++## Authentication++The session-management and credits endpoints accept either credential:++- **Browser session cookie** (the normal three.ws login). These endpoints do+ not require a CSRF token.+- **`Authorization: Bearer <token>`** with a three.ws API key (`sk_live_...` /+ `sk_test_...`) or an OAuth access token.++`POST /api/pay/execute` is different: it authenticates with the **session+token itself** (`session_token` in the JSON body). No cookie or API key is+needed, which is the point: the token is a time-bounded spending grant you can+hand to an untrusted agent process.++Rate limits: `GET /api/credits` shares the authenticated-read bucket+(300 requests per 5 minutes per IP). Everything else here shares the strict+auth bucket (50 requests per 10 minutes per IP) and returns 429 with a+`Retry-After` header when exceeded.++---++## Prepaid credits++### `GET /api/credits`++Your balance, recent ledger, where to deposit, and the fixed-price actions+credits can buy.++```bash+curl -s https://three.ws/api/credits \+ -H 'authorization: Bearer sk_live_...'+```++```json+{+ "balance_usd": 12.5,+ "lifetime_deposited_usd": 20,+ "lifetime_spent_usd": 7.5,+ "deposit": {+ "wallet": "<platform deposit address>",+ "network": "mainnet",+ "accepts": ["SOL", "THREE"],+ "three_mint": "FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",+ "three_symbol": "THREE",+ "three_decimals": 6+ },+ "buys": [ { "id": "...", "label": "...", "category": "...", "policy": "...", "usd": 0.05 } ],+ "ledger": [ { "id": "...", "kind": "deposit", "amount_usd": 20, "...": "..." } ],+ "next_cursor": null+}+```++`ledger` is newest-first (25 entries here); each item carries `id`, `kind`+(`deposit`, `refund`, `grant`, `adjust`, or a spend), `amount_usd`,+`balance_after`, `action`, `ref_type`, `ref_id`, `tx_signature`, `asset`,+`asset_amount`, `price_usd`, and `created_at`.++### `POST /api/credits/deposit`++Verify an on-chain transfer into the deposit wallet and credit your balance.+Server-authoritative: the platform confirms the transaction on-chain, requires+that a signer is a Solana wallet linked to your account, and computes the+amount actually received from pre/post balances. Credits land only once the+transaction is finalized.++```bash+curl -s https://three.ws/api/credits/deposit \+ -H 'authorization: Bearer sk_live_...' \+ -H 'content-type: application/json' \+ -d '{ "asset": "SOL", "tx_signature": "<signature>", "network": "mainnet" }'+```++Body fields:++| Field | Type | Notes |+|---|---|---|+| `asset` | string | `"SOL"` or `"THREE"`, required |+| `tx_signature` | string | The Solana transaction signature, required |+| `network` | string | `"mainnet"` (default) or `"devnet"` |++Success:++```json+{+ "ok": true,+ "replay": false,+ "balance_usd": 32.5,+ "credited_usd": 20,+ "usd": 20,+ "asset": "SOL",+ "amount": 0.125,+ "price_usd": 160,+ "tx_signature": "<signature>"+}+```++If the transaction is confirmed but not yet finalized you get a retryable+`{ "ok": false, "pending": true, "status": "awaiting_finalization", ... }`;+poll again in a few seconds. Crediting is idempotent per (signature, asset): a+replay returns `"replay": true` with `credited_usd: 0` instead of+double-crediting.++Error codes: `bad_request` (400), `wallet_not_linked` (403, the transfer was+not signed by a wallet linked to your account), `tx_failed`, `tx_not_found`,+`no_funds_received`, `amount_too_small` (all 422), `price_unavailable` and+`deposit_unavailable` (503).++---++## Creating a session++### `POST /api/pay/session`++```bash+curl -s https://three.ws/api/pay/session \+ -H 'authorization: Bearer sk_live_...' \+ -H 'content-type: application/json' \+ -d '{+ "label": "research agent",+ "budget_usd": 1.00,+ "max_per_tx_usd": 0.01,+ "allowed_hosts": ["three.ws"],+ "expiry_seconds": 86400+ }'+```++Body fields:++| Field | Type | Notes |+|---|---|---|+| `budget_usd` | number | Required. Min $0.001, max $1000. Debited from credits immediately. |+| `label` | string | Optional, trimmed to 120 chars. |+| `max_per_tx_usd` | number | Optional per-payment ceiling, must be above $0.000001. `null` means no cap. |+| `allowed_hosts` | string[] | Optional, max 50 entries, deduplicated. Empty means any host. |+| `agent_id` | string | Optional agent to associate with the session. |+| `network` | string | `"solana"` (default) or `"base"`. Stored on the session; execution settles on Solana (see below). |+| `expiry_seconds` | number | Default 3600. Min 60, max 7776000 (90 days). |+| `metadata` | object | Arbitrary caller metadata, stored and echoed back. |++Response is `201` with the session object and the token, **shown exactly+once**:++```json+{+ "session": {+ "id": "0b2f...",+ "user_id": "...",+ "agent_id": null,+ "label": "research agent",+ "budget_usd": 1,+ "spent_usd": 0,+ "remaining_usd": 1,+ "max_per_tx_usd": 0.01,+ "allowed_hosts": ["three.ws"],+ "network": "solana",+ "status": "active",+ "expires_at": "2026-07-31T00:00:00.000Z",+ "metadata": {},+ "created_at": "2026-07-30T00:00:00.000Z"+ },+ "token": "pss_0b2f..._4f8a...",+ "note": "Store this token securely ..."+}+```++Errors: `402 insufficient_credits` when your balance cannot cover+`budget_usd` (the message includes the required and available amounts), and+`400` with `invalid_budget`, `invalid_ttl`, or `bad_request` for out-of-range+fields.++Session `status` is one of `active`, `exhausted` (budget fully spent),+`cancelled`, or `expired`.++## Inspecting, listing, updating++### `GET /api/pay/session`++Lists your sessions newest-first plus aggregate stats. Query parameters:+`status` (filter by status), `limit` (default 20, max 100), `cursor` (pass the+previous page's `next_cursor`, a `created_at` timestamp).++```json+{+ "items": [ { "id": "...", "status": "active", "...": "..." } ],+ "next_cursor": null,+ "stats": {+ "sessions": { "active": 1, "exhausted": 0, "cancelled": 2, "expired": 0,+ "total_budget_usd": 3, "total_spent_usd": 1.2 },+ "executions": { "settled": 40, "failed": 2, "settled_usd": 1.2, "unique_endpoints": 3 }+ }+}+```++### `GET /api/pay/session/:id`++Returns `{ "session": { ... } }` for a session you own, `404 not_found`+otherwise.++### `GET /api/pay/session/:id/executions`++The payment ledger for one session, newest-first, with `limit` (default 20,+max 100) and `cursor` pagination. Each item:++```json+{+ "id": "...",+ "endpoint_url": "https://three.ws/api/x402/ping",+ "endpoint_host": "three.ws",+ "method": "GET",+ "amount_usd": 0.001,+ "network": "solana",+ "tx_hash": "5Kd...",+ "payer_address": "...",+ "payee_address": "...",+ "status": "settled",+ "error_code": null,+ "duration_ms": 1843,+ "created_at": "2026-07-30T00:01:00.000Z"+}+```++`status` is `settled` or `failed`; failed rows carry an `error_code` (see the+execute error table below).++### `PATCH /api/pay/session/:id`++Update the mutable fields of an **active** session: `label`, `allowed_hosts`,+`max_per_tx_usd` (pass `null` to remove the cap). Budget, network, and expiry+cannot be changed after creation.++```bash+curl -s -X PATCH https://three.ws/api/pay/session/<id> \+ -H 'authorization: Bearer sk_live_...' \+ -H 'content-type: application/json' \+ -d '{ "allowed_hosts": ["three.ws", "api.example.com"] }'+```++Returns `{ "session": { ... } }`. Errors: `400 nothing_to_update` when no+recognized field is present, `404 not_found` when the session is missing, not+yours, or no longer active.++### `DELETE /api/pay/session/:id`++Cancels an `active` or `exhausted` session and refunds the unspent budget to+your credit balance. The refund is idempotent per session.++```json+{ "cancelled": true, "session_id": "0b2f...", "refunded_usd": 0.85 }+```++`404 not_found` if the session does not exist, is not yours, or is already+cancelled or expired. Expired sessions are refunded automatically by the+sweep, so there is nothing left to cancel.++---++## Spending a session++### `POST /api/pay/execute`++Executes one x402 payment against any public https endpoint, using the session+token as the only credential.++Body fields:++| Field | Type | Notes |+|---|---|---|+| `session_token` | string | Required. The `pss_...` token from session creation. |+| `url` | string | Required. Public https endpoint to call. Private and non-public addresses are rejected. |+| `method` | string | `"GET"` (default) or `"POST"`. Anything else is treated as GET. |+| `body` | object or string | Optional JSON body, sent when `method` is POST. |+| `idempotency_key` | string | Optional but recommended. Recorded with the execution; the executions table is unique on it, so duplicate submissions of the same key collapse to a single recorded execution. |++What happens, in order:++1. **Token check.** The token is verified against its stored hash.+2. **Probe.** The endpoint is fetched (SSRF-guarded, 20 s timeout, redirects+ not followed). If it responds with anything other than 402, you get the+ response back with `"paid": false` and the session is not touched.+3. **Accept selection.** From the 402 challenge's `accepts[]`, the platform+ picks a Solana USDC accept (the challenge must offer network `solana...`,+ asset USDC, and a `feePayer` in `extra`). Sessions created with+ `network: "base"` store that preference, but execute settles on Solana+ only; a challenge with no Solana option fails with `no_solana_accept`.+4. **Governance.** Five checks in order: session is active, not expired, host+ is in the allowlist (exact hostname or a subdomain of an allowed host),+ amount is within `max_per_tx_usd`, and remaining budget covers the amount.+ The budget reservation is a single atomic SQL update, so concurrent calls+ can never collectively overspend a session; when two racing calls both fit+ individually but not together, exactly one wins and the other gets+ `insufficient_budget`.+5. **Sign and pay.** The platform Solana payer wallet signs a USDC transfer+ matching the accept and re-requests the endpoint with the `X-PAYMENT`+ header. The service's fee payer covers the transaction fee; your budget is+ charged only the payment amount.+6. **Record.** The execution lands in the session ledger with the settlement+ transaction hash (read from the endpoint's `x-payment-response` header)+ and a Solscan explorer link. On a pre-settlement rejection (the endpoint+ answers 402 again), the reservation is rolled back and your budget is+ restored.++```bash+curl -s https://three.ws/api/pay/execute \+ -H 'content-type: application/json' \+ -d '{+ "session_token": "pss_0b2f..._4f8a...",+ "url": "https://three.ws/api/x402/rate-limit-probe",+ "method": "POST",+ "body": { "endpoint": "/api/x402/forge" },+ "idempotency_key": "probe-2026-07-30-001"+ }'+```++Success:++```json+{+ "ok": true,+ "paid": true,+ "result": { "remaining_calls": 412, "reset_at": "...", "cooldown_active": false },+ "payment": {+ "session_id": "0b2f...",+ "amount_usd": 0.001,+ "network": "solana",+ "payer": "...",+ "pay_to": "...",+ "tx_hash": "5Kd...",+ "explorer": "https://solscan.io/tx/5Kd..."+ },+ "session": { "id": "0b2f...", "spent_usd": 0.001, "remaining_usd": 0.999 },+ "duration_ms": 1843+}+```++Free endpoint (no 402 challenge):++```json+{ "ok": true, "paid": false, "note": "Endpoint served response without a 402 ...", "status": 200, "result": { "...": "..." } }+```++### Execute error codes++| HTTP | Code | Meaning | Budget |+|---|---|---|---|+| 400 | `missing_token`, `missing_url`, `invalid_url` | Request is malformed or the URL is not a public https endpoint. | untouched |+| 400 | `blocked_url` | The target resolves to a private or unreachable address. | untouched |+| 401 | `invalid_token` | Token is malformed, unknown, or does not match its stored hash. | untouched |+| 403 | `session_inactive`, `session_expired` | Session is exhausted, cancelled, or past its expiry. | untouched |+| 403 | `allowlist_blocked` | Target host is not in the session's allowlist. `detail` carries the host and the allowlist. | untouched |+| 402 | `per_tx_exceeded` | The endpoint's price exceeds `max_per_tx_usd`. `detail` carries `amount_usd` and `cap_usd`. | untouched |+| 402 | `insufficient_budget` | Remaining budget cannot cover the price. `detail` carries `need_usd` and `remaining_usd`. | untouched |+| 402 | `payment_rejected` | The service rejected the payment before settlement. | rolled back |+| 422 | `no_solana_accept`, `unsupported_asset`, `missing_fee_payer` | The challenge offers no payable Solana USDC option. | untouched |+| 502 | `endpoint_unreachable`, `invalid_challenge` | Could not reach the endpoint or parse its challenge. | untouched |+| 502 | `build_failed` | Building the Solana transaction failed. | rolled back |+| 502 | `settle_uncertain` | Network failure after signing: chain state unknown. Do not retry immediately; check the session executions and wallet activity first. | kept reserved |+| 502 | `upstream_error` | The endpoint returned a non-402 error after payment. Check wallet activity before retrying. | kept reserved |+| 503 | `wallet_unconfigured` | The platform payer wallet is not configured. | rolled back |++The two "kept reserved" cases are deliberate: funds may have moved on-chain,+so the platform refuses to silently restore budget it cannot prove was+unspent. Both are recorded as `failed` executions with the matching+`error_code`.++---++## Full walkthrough++```bash+BASE=https://three.ws+AUTH='authorization: Bearer sk_live_...'++# 0. Check your credit balance (top up first via POST /api/credits/deposit if empty)+curl -s $BASE/api/credits -H "$AUTH" | jq '{balance_usd, deposit}'++# 1. Create a $0.50 session, capped at $0.01 per call, three.ws only, 24 h+CREATE=$(curl -s $BASE/api/pay/session -H "$AUTH" -H 'content-type: application/json' -d '{+ "label": "walkthrough",+ "budget_usd": 0.50,+ "max_per_tx_usd": 0.01,+ "allowed_hosts": ["three.ws"],+ "expiry_seconds": 86400+}')+TOKEN=$(echo "$CREATE" | jq -r .token)+SID=$(echo "$CREATE" | jq -r .session.id)++# 2. Spend it: pay a $0.001 x402 endpoint (no auth header needed, the token is the credential)+curl -s $BASE/api/pay/execute -H 'content-type: application/json' -d '{+ "session_token": "'$TOKEN'",+ "url": "'$BASE'/api/x402/rate-limit-probe",+ "method": "POST",+ "body": { "endpoint": "/api/x402/forge" },+ "idempotency_key": "walkthrough-1"+}' | jq '{paid, payment, session}'++# 3. Inspect the session and its execution ledger+curl -s $BASE/api/pay/session/$SID -H "$AUTH" | jq .session+curl -s $BASE/api/pay/session/$SID/executions -H "$AUTH" | jq .items++# 4. Cancel and refund the unspent budget back to credits+curl -s -X DELETE $BASE/api/pay/session/$SID -H "$AUTH" | jq .+curl -s $BASE/api/credits -H "$AUTH" | jq .balance_usd+```++## Related++- [x402 Protocol](#sec-386): the challenge / verify / settle mechanics behind every paid call.+- [x402 Buyer Client](#sec-379): paying x402 endpoints from your own wallet instead of a session.+- [x402 Developer Tools](#sec-380): free echo / debug / receipt-verification tools for debugging a paid call.++---++<a id="sec-229"></a>> **Source:** `docs/permissions.md` · [↑ table of contents](#table-of-contents)@@ -46707,17 +50849,17 @@ Set `SMOKE_SKIP_REVOKE=1` to skip the on-chain revocation step if the test walle## See also-- [Architecture Overview](#sec-086)-- [Agent System](#sec-057)-- [ERC-8004 Blockchain Identity](#sec-146)-- [Skill System](#sec-259)+- [Architecture Overview](#sec-088)+- [Agent System](#sec-059)+- [ERC-8004 Blockchain Identity](#sec-153)+- [Skill System](#sec-278)- [EIP-7710](https://eips.ethereum.org/EIPS/eip-7710) — delegation envelope format- [EIP-7715](https://eips.ethereum.org/EIPS/eip-7715) — `wallet_grantPermissions` JSON-RPC method- [MetaMask Delegation Toolkit](https://docs.metamask.io/delegation-toolkit/)----<a id="sec-214"></a>+<a id="sec-230"></a>> **Source:** `docs/persona-hub.md` · [↑ table of contents](#table-of-contents)@@ -47114,7 +51256,7 @@ JWT claims:----<a id="sec-215"></a>+<a id="sec-231"></a>> **Source:** `docs/plan-checkout.md` · [↑ table of contents](#table-of-contents)@@ -47130,7 +51272,7 @@ three.ws has a self-serve paid tier. Upgrading to **Pro** (or Team / Enterprise)Where to use it: the Pro card on [three.ws/pricing](https://three.ws/pricing) opens the checkout when you're signed in. Confirmed payments set `users.plan`, light up the Pro badge everywhere ([api/_lib/account-tier.js](../api/_lib/account-tier.js)), and grant 30 days per payment.-This is separate from (and complementary to) [hold-to-access](#sec-159), which derives holder tiers from $THREE you *hold*; the plan checkout is $THREE you *spend*.+This is separate from (and complementary to) [hold-to-access](#sec-168), which derives holder tiers from $THREE you *hold*; the plan checkout is $THREE you *spend*.---@@ -47241,7 +51383,7 @@ Plan prices live in [api/payments/_config.js](../api/payments/_config.js) (`PLAN----<a id="sec-216"></a>+<a id="sec-232"></a>> **Source:** `docs/popular-3d-github-repos.md` · [↑ table of contents](#table-of-contents)@@ -47504,7 +51646,7 @@ Apply a 3D-signal regex filter over `description + topics` and a denylist of non----<a id="sec-217"></a>+<a id="sec-233"></a>> **Source:** `docs/premium.md` · [↑ table of contents](#table-of-contents)@@ -47627,7 +51769,183 @@ tiers that remain free (news feed, digest, archive stats/trending).----<a id="sec-218"></a>+<a id="sec-234"></a>++> **Source:** `docs/procedural-animation.md` · [↑ table of contents](#table-of-contents)++# Procedural animation++Pre-baked clips can only replay motion that was recorded somewhere else. They cannot know where your cursor is, that the ground under an avatar's left foot is 15 cm lower than under its right, or that the agent is supposed to be looking at the person it is talking to. Procedural animation fills that gap: a set of small layers that run **after** the animation mixer each frame and adjust the pose the clip just produced.++The layers live in [`src/procedural/`](../src/procedural). They are rig-agnostic by the same rule as the rest of the animation stack (see [animations.md](#sec-083) and the universal-rig doctrine in [CLAUDE.md](../CLAUDE.md)): joints are resolved through the canonical bone map, so any humanoid the retargeter can drive, these can drive too. A rig they cannot drive reports `enabled === false` and every method becomes a no-op — never a broken pose.++> **This is not the idle layer.** Breathing, blinking, eye saccades, and weight shift already exist in [`src/idle-animation.js`](../src/idle-animation.js) (`IdleAnimation`) and are unchanged. That layer adds ambient life to a *static* avatar. This one reacts to the *world*: a target to look at, a ground to stand on.++---++## The contract every layer follows++All three layers work the same way, and getting this order wrong is the only way to make them misbehave:++1. **Construct once per attached model.** The constructor resolves and caches bone references. Build a new controller whenever you swap the avatar.+2. **Call `update(dt)` every frame, after `mixer.update(dt)`.** The layer reads the pose the mixer just wrote and adds an offset to it.+3. **Never call it before the mixer.** Your offset would be overwritten and you would see nothing.++```js+import { LookAtController } from './procedural/look-at.js';++const look = new LookAtController(model);++function frame(dt) {+ animationManager.update(dt); // 1. mixer poses the skeleton+ look.update(dt); // 2. procedural layer adjusts it+ renderer.render(scene, camera);+}+```++### Why the layers do not drift++A layer adds an offset to a bone the mixer just posed. When a clip drives that bone, the mixer rewrites it every frame and the offset can simply be re-applied. But when **nothing** rewrites it — no clip playing, or a clip that does not track that particular joint — naively re-applying would compound frame over frame and spin the joint into the ground.++[`pose-baseline.js`](../src/procedural/pose-baseline.js) solves this. Before computing, each layer compares the bone's current value against what it wrote last frame. Identical means nobody else touched it, so the pre-offset base is restored first. Different means the mixer (or another system) owns the pose now, so the current value becomes the new base. The result is that every layer is idempotent, and layers compose with clips, with the additive gesture overlay, and with each other.++---++## `LookAtController` — turn toward a point in the world++The avatar's chest, neck, and head turn to face a world-space point, on top of whatever clip is playing. This is what makes a companion track your cursor and an agent meet your eyes instead of staring through you.++```js+import { LookAtController } from './procedural/look-at.js';++const look = new LookAtController(model);+if (look.enabled) {+ look.setTarget(new Vector3(2, 1.6, 3)); // a world-space point+ // ...each frame, after the mixer:+ look.update(dt);+}+look.setTarget(null); // release; the gaze fades back to the clip+```++The turn is **distributed across three joints**, and that is the whole point. A 50-degree turn written to the head bone alone reads as an owl; split roughly 15% chest / 30% neck / 55% head it reads as a person. Joints the rig does not have forfeit their share to the ones it does, so a rig with no upper chest still looks correct.++| Option | Default | What it does |+|---|---|---|+| `maxYaw` | 65° | Horizontal clamp. A target further round than this is clamped, not chased. |+| `maxPitchUp` / `maxPitchDown` | 30° / 35° | Vertical clamps, asymmetric because looking down is more natural than up. |+| `damping` | 10 (1/s) | How fast the gaze converges. Higher snaps sooner. |+| `fadeRate` | 5 (1/s) | How fast the whole layer fades in and out. |+| `canonicalToNode` | — | Reuse an already-built canonical bone map instead of re-traversing the model. |++Two behaviours worth knowing:++- **Targets behind the avatar are refused, not clamped.** Past 120° of yaw the layer fades itself out entirely and hands the pose back to the base animation. Pinning a head at its clamp while something stands behind it looks strained; releasing looks natural.+- **The model's own rotation is accounted for.** The target is transformed into model space before the angles are measured, so an avatar that has turned to face a new direction does not also crank its neck.++## `FootPlantController` — stand on uneven ground++Locomotion code can only put the rig's *origin* on the ground. On any slope that means one foot floats and the other sinks through. This layer reads where the ground actually is under each foot, drops the pelvis just enough that the downhill leg can reach, and bends each leg with two-bone IK so both feet land on their own patch of terrain.++```js+import { FootPlantController } from './procedural/foot-plant.js';++const plant = new FootPlantController(model, (x, z) => terrain.heightAt(x, z));+// ...each frame, after the mixer and after the rig has been placed on the ground:+plant.update(dt);+```++The second argument is any function returning world-space ground height for an `(x, z)`. In the walkaround world that is `terrain.heightAt`; in a flat scene, `() => 0` (which correctly makes the whole layer a no-op).++The animation's own foot lift is preserved. Each foot is moved by the terrain's height **difference** under it, not to an absolute height, so a foot in mid-swing keeps its swing clearance and a planted foot sits flush. After the legs are solved, each ankle's animated world orientation is restored, so toes keep pointing where the clip aimed them rather than tilting with the knee.++| Option | Default | What it does |+|---|---|---|+| `maxDrop` | 0.35 m | How far the pelvis may sink. Caps the crouch on extreme terrain. |+| `maxLift` | 0.6 m | How far a single foot may be raised. |+| `damping` | 12 (1/s) | Smoothing on both the pelvis drop and each foot offset. |++Read-only accessors for instrumentation and tests: `pelvisOffset` (current damped drop, in world metres, always `<= 0`) and `footWorldPositions()` (each solved foot's world position — allocates, so never call it in the render loop).++## `solveTwoBoneIK` — the solver underneath++An analytic two-bone IK solve for a root → mid → tip chain: hip → knee → ankle, or shoulder → elbow → wrist. It is the closed-form law-of-cosines formulation, so there is no iteration and nothing to tune for convergence, and it allocates nothing per call.++```js+import { solveTwoBoneIK } from './procedural/two-bone-ik.js';++root.updateWorldMatrix(true, true); // caller owns world-matrix hygiene+const ok = solveTwoBoneIK(hip, knee, ankle, targetWorldPos, {+ pole: kneePoleWorldPos, // which way the knee bends+ softness: 0.98, // refuse the last 2% of extension+});+```++- **`pole`** decides which way the middle joint bends — knee forward, elbow back. It also breaks the tie when the chain starts perfectly straight and there is no bend plane to infer.+- **`softness`** caps how far the chain will extend as a fraction of its full reach. The default 0.98 is what prevents the harsh straight-leg snap when a target sits at the limit.+- Returns `false` only for a degenerate chain (a zero-length bone). An out-of-reach target returns `true` and extends the chain toward it as far as it goes, which is the behaviour you want at the edge of a step.++Bone lengths are preserved exactly; the solve only ever rotates.++> **Why not `CCDIKSolver` from three.js?** It is iterative, it needs a `SkinnedMesh`-specific setup with `iks[]` descriptors indexed into `skeleton.bones`, and it is tuned for MMD-style chains. This solve is exact for the three-joint case, works on any `Object3D` chain, and is deterministic — which is what lets the foot planter damp it frame to frame without jitter.++---++## Where it runs today++| Surface | Layer | Where |+|---|---|---|+| Corner walk companion | Look-at (cursor gaze) | [`walk-sdk/src/companion.js`](../walk-sdk/src/companion.js) `_updateGaze()` |+| The walkaround world (`/walk`) | Foot planting on terrain | [`src/walk.js`](../src/walk.js) `rebuildFootPlant()` |+| `/walk` NPCs | Look-at (they watch the player) | [`src/walk-npcs.js`](../src/walk-npcs.js) `_updateGaze()` |+| Agent avatars (`AgentAvatar`) | Look-at (`setLookTarget`, `LOOK_AT`) | [`src/agent-avatar.js`](../src/agent-avatar.js) `_applyLookTarget()` |+| `<agent-3d>` web component | Look-at (`lookAt()` public API) | [`src/runtime/scene.js`](../src/runtime/scene.js) `lookAt()` |++### The companion's cursor gaze++On by default; pass `lookAt: false` to `createWalkCompanion()` to keep the pre-0.4 fixed gaze. It also switches itself off under `prefers-reduced-motion`, on touch devices with no fine pointer, and after the cursor has been still for four seconds — in each case the gaze fades back to the clip rather than freezing mid-turn.++### Agent avatars++`AgentAvatar.setLookTarget(worldPos)` and the `LOOK_AT` protocol action now actually move the avatar. Before this layer they stored a target that nothing read, so both were silently inert.++```js+agentAvatar.setLookTarget(new Vector3(1, 1.5, 2)); // look at a world point+agentAvatar.setLookTarget(null); // release+```++`LOOK_AT` with `target: 'user'` (or `'camera'`) tracks the **live** camera position each frame, so the gaze holds while the viewer orbits. An explicit `setLookTarget()` always overrides camera tracking.++### The `<agent-3d>` component++`lookAt()` on the web component (and on `SceneController`) takes a `Vector3` or one of `'camera'`, `'user'`, `'center'`, or `null` to release:++```js+document.querySelector('agent-3d').lookAt('user');+```++The gaze is a **standing state**, not a one-off pose write: it re-applies after the mixer every frame, so it survives on an avatar that is playing a clip. The named targets re-resolve each frame, so `lookAt('camera')` keeps holding the viewer's eyes while they orbit. A rig with no head chain falls back to yawing the whole model, which is the best a headless rig can do.++### `/walk` NPCs++Every NPC watches the player within 14 m — wider than the 4 m greeting range, because noticing someone happens long before greeting them. A wanderer can glance over without breaking stride, since the gaze is an overlay on the walk cycle rather than a replacement for it. Past the clamp the layer releases rather than pinning the head, so an NPC the player has walked behind simply returns to its clip.++---++## Adding a layer++New layers belong in `src/procedural/` and must follow the contract above: cache bones in the constructor, expose `enabled`, be a no-op when the rig cannot support them, use `pose-baseline.js` if you write to bones a clip may not track, and allocate nothing in `update()`. Export it from [`index.js`](../src/procedural/index.js), cover it in [`tests/procedural-anim.test.js`](../tests/procedural-anim.test.js) against synthetic bone chains, and add a row to the table above.++If you hit a rig whose bones do not resolve, the fix is a bone-name mapping in [`src/glb-canonicalize.js`](../src/glb-canonicalize.js) (with a case in `tests/glb-canonicalize.test.js`) — never a hardcoded rig list in the layer.++## Related++- [animations.md](#sec-083) — the pre-baked clip library these layers run on top of+- [avatar-pipeline.md](#sec-097) — how avatars are generated and rigged+- [agent-system.md](#sec-059) — `AgentAvatar`, the protocol, and the emotion layers++---++<a id="sec-235"></a>> **Source:** `docs/provenance.md` · [↑ table of contents](#table-of-contents)@@ -47694,7 +52012,7 @@ Real hashing, real ed25519 signature, real on-chain write. Requires the issuer k----<a id="sec-219"></a>+<a id="sec-236"></a>> **Source:** `docs/pump-fun-mcp-edge.md` · [↑ table of contents](#table-of-contents)@@ -47750,7 +52068,7 @@ Both runtimes import `TOOLS` from `src/pump/mcp-tools.js`, so the tool list expo----<a id="sec-220"></a>+<a id="sec-237"></a>> **Source:** `docs/pump-launch-repos.md` · [↑ table of contents](#table-of-contents)@@ -47849,7 +52167,7 @@ rate-limits under the ~450 txs a full run makes. Pass a dedicated `--rpc`----<a id="sec-221"></a>+<a id="sec-238"></a>> **Source:** `docs/pump-launcher.md` · [↑ table of contents](#table-of-contents)@@ -47858,7 +52176,7 @@ rate-limits under the ~450 txs a full run makes. Pass a dedicated `--rpc``POST /api/x402/pump-launch` launches a brand-new [pump.fun](https://pump.fun)token for an autonomous agent in a single paid request. The agent needs **noSOL, no wallet, and no three.ws account** — it pays a flat USDC fee over the-[x402](#sec-366) rail and the platform does the rest:+[x402](#sec-386) rail and the platform does the rest:- fronts the ~0.022 SOL bonding-curve deploy cost from a funded launcher keypair,- optionally grinds a **vanity mint address**,@@ -47885,7 +52203,7 @@ current figure — read it, don't hardcode.## The free → paid funnel-The paid launch sits between two **free, keyless** [Crypto Data API](#sec-140)+The paid launch sits between two **free, keyless** [Crypto Data API](#sec-147)endpoints. Use them to make the launch land well:1. **Before you launch — check the ticker.**@@ -47941,7 +52259,7 @@ curl -X POST https://three.ws/api/x402/pump-launch \curl "https://three.ws/api/crypto/launches"```-See [x402 buyer client](#sec-359) for how to satisfy the 402 challenge in+See [x402 buyer client](#sec-379) for how to satisfy the 402 challenge incode (the `curl` above shows the shape, not the payment headers).## Output@@ -47991,16 +52309,16 @@ token itself always deploys on **Solana mainnet** — pump.fun is mainnet-only.## Related-- [x402 paid endpoints](#sec-362) — the full catalog and pricing.-- [Crypto Data API](#sec-140) — the free `symbol` and `launches`+- [x402 paid endpoints](#sec-382) — the full catalog and pricing.+- [Crypto Data API](#sec-147) — the free `symbol` and `launches`endpoints that bookend a launch.-- [Repo → Coin Launcher](#sec-220) — the batch/CLI launcher that+- [Repo → Coin Launcher](#sec-237) — the batch/CLI launcher thatroutes 100% of creator rewards to a GitHub identity (shares the same engine).-- [x402 protocol](#sec-366) — challenge/settle mechanics.+- [x402 protocol](#sec-386) — challenge/settle mechanics.----<a id="sec-222"></a>+<a id="sec-239"></a>> **Source:** `docs/pump-platform-fee.md` · [↑ table of contents](#table-of-contents)@@ -48061,7 +52379,7 @@ The fee is **never** charged silently. When `platform_fee_bps > 0`:----<a id="sec-223"></a>+<a id="sec-240"></a>> **Source:** `docs/pumpfun-program/README.md` · [↑ table of contents](#table-of-contents)@@ -48120,7 +52438,7 @@ tracked in `tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md`.----<a id="sec-224"></a>+<a id="sec-241"></a>> **Source:** `docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md` · [↑ table of contents](#table-of-contents)@@ -48199,32 +52517,32 @@ Currently, no quote mint other than native SOL can be used to create or trade co- RUST crate: https://crates.io/crates/pump-rust-client## New docs-- Fee recipients: [docs/FEE_RECIPIENTS.md](#sec-230)-- Coin creation: [docs/instructions/COIN_CREATION.md](#sec-239)-- Buy: [docs/instructions/BUY.md](#sec-237)-- Sell: [docs/instructions/SELL.md](#sec-242)-- Claim cashback: [docs/instructions/CLAIM_CASHBACK.md](#sec-238)-- Collect creator fee: [docs/instructions/COLLECT_CREATOR_FEE.md](#sec-240)-- Creator fee sharing: [docs/instructions/CREATOR_FEE_SHARING.md](#sec-241)+- Fee recipients: [docs/FEE_RECIPIENTS.md](#sec-247)+- Coin creation: [docs/instructions/COIN_CREATION.md](#sec-256)+- Buy: [docs/instructions/BUY.md](#sec-254)+- Sell: [docs/instructions/SELL.md](#sec-259)+- Claim cashback: [docs/instructions/CLAIM_CASHBACK.md](#sec-255)+- Collect creator fee: [docs/instructions/COLLECT_CREATOR_FEE.md](#sec-257)+- Creator fee sharing: [docs/instructions/CREATOR_FEE_SHARING.md](#sec-258)## Other documentation-- [Pump Program](#sec-233)-- [PumpSwap](#sec-235)-- [PumpSwap SDK](#sec-236)-- [Pump Program creator fee update](#sec-232)-- [PumpSwap creator fee update](#sec-234)-- [FAQ](#sec-228)-- [Pump fee program docs](#sec-229)+- [Pump Program](#sec-250)+- [PumpSwap](#sec-252)+- [PumpSwap SDK](#sec-253)+- [Pump Program creator fee update](#sec-249)+- [PumpSwap creator fee update](#sec-251)+- [FAQ](#sec-245)+- [Pump fee program docs](#sec-246)-------<a id="sec-225"></a>+<a id="sec-242"></a>> **Source:** `docs/pumpfun-program/UPSTREAM-pumpswap-virtual-quote-reserves.md` · [↑ table of contents](#table-of-contents)@@ -48425,7 +52743,7 @@ Upstream: <https://github.com/pump-fun/pump-public-docs#pumpswap-update-virtual-----<a id="sec-226"></a>+<a id="sec-243"></a>> **Source:** `docs/pumpfun-program/docs/BREAKING_FEE_RECIPIENT.md` · [↑ table of contents](#table-of-contents)@@ -48499,7 +52817,7 @@ The new accounts can be passed before the program upgrade happens on Monday. The----<a id="sec-227"></a>+<a id="sec-244"></a>> **Source:** `docs/pumpfun-program/docs/CPI_README.md` · [↑ table of contents](#table-of-contents)@@ -48603,7 +52921,7 @@ pump-rust-client = { version = "...", path = "..." }----<a id="sec-228"></a>+<a id="sec-245"></a>> **Source:** `docs/pumpfun-program/docs/FAQ.md` · [↑ table of contents](#table-of-contents)@@ -48641,7 +52959,7 @@ is recommended to use a static big enough CU limit like `100_000`.----<a id="sec-229"></a>+<a id="sec-246"></a>> **Source:** `docs/pumpfun-program/docs/FEE_PROGRAM_README.md` · [↑ table of contents](#table-of-contents)@@ -48855,7 +53173,7 @@ If you implement the fee logic correctly, any future change to the fee tiers str----<a id="sec-230"></a>+<a id="sec-247"></a>> **Source:** `docs/pumpfun-program/docs/FEE_RECIPIENTS.md` · [↑ table of contents](#table-of-contents)@@ -48918,7 +53236,7 @@ Use one of these as `buybackFeeRecipient` for any coin.----<a id="sec-231"></a>+<a id="sec-248"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_CASHBACK_README.md` · [↑ table of contents](#table-of-contents)@@ -49035,7 +53353,7 @@ To read unclaimed cashback for pump swap / Pump AMM program:----<a id="sec-232"></a>+<a id="sec-249"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_CREATOR_FEE_README.md` · [↑ table of contents](#table-of-contents)@@ -49170,7 +53488,7 @@ we update the programs on Mainnet.----<a id="sec-233"></a>+<a id="sec-250"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_PROGRAM_README.md` · [↑ table of contents](#table-of-contents)@@ -49371,7 +53689,7 @@ at https://solscan.io/account/EsmVk4MTsoT71JFaRM5DWFZboKpMQjfY6EYzAgUuksXw#accou----<a id="sec-234"></a>+<a id="sec-251"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_SWAP_CREATOR_FEE_README.md` · [↑ table of contents](#table-of-contents)@@ -49480,7 +53798,7 @@ PumpSwap program on Mainnet to the coin creator fee update.----<a id="sec-235"></a>+<a id="sec-252"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_SWAP_README.md` · [↑ table of contents](#table-of-contents)@@ -49714,7 +54032,7 @@ Each Anchor instruction has a set of corresponding autocomplete methods that can----<a id="sec-236"></a>+<a id="sec-253"></a>> **Source:** `docs/pumpfun-program/docs/PUMP_SWAP_SDK_README.md` · [↑ table of contents](#table-of-contents)@@ -49794,7 +54112,7 @@ to autocomplete the `base` and `quote` displayed amounts based on the `lpToken`----<a id="sec-237"></a>+<a id="sec-254"></a>> **Source:** `docs/pumpfun-program/docs/instructions/BUY.md` · [↑ table of contents](#table-of-contents)@@ -49855,7 +54173,7 @@ All `buy_v2` calls need a `feeRecipient` and a `buybackFeeRecipient`.- For mayhem mode coins, choose one of the 8 reserved fee recipients as `feeRecipient`.- For all coins, choose one of the 8 buyback fee recipients as `buybackFeeRecipient`.-See [Fee Recipients](#sec-230) for the full address lists.+See [Fee Recipients](#sec-247) for the full address lists.## TS SDK@@ -49972,7 +54290,7 @@ ixs.extend(----<a id="sec-238"></a>+<a id="sec-255"></a>> **Source:** `docs/pumpfun-program/docs/instructions/CLAIM_CASHBACK.md` · [↑ table of contents](#table-of-contents)@@ -50082,7 +54400,7 @@ let ix = sdk.claim_cashback_v2_instruction(----<a id="sec-239"></a>+<a id="sec-256"></a>> **Source:** `docs/pumpfun-program/docs/instructions/COIN_CREATION.md` · [↑ table of contents](#table-of-contents)@@ -50237,7 +54555,7 @@ let ixs = sdk----<a id="sec-240"></a>+<a id="sec-257"></a>> **Source:** `docs/pumpfun-program/docs/instructions/COLLECT_CREATOR_FEE.md` · [↑ table of contents](#table-of-contents)@@ -50339,13 +54657,13 @@ ixs.extend(sdk.collect_creator_fee_v2_instructions(----<a id="sec-241"></a>+<a id="sec-258"></a>> **Source:** `docs/pumpfun-program/docs/instructions/CREATOR_FEE_SHARING.md` · [↑ table of contents](#table-of-contents)# Creator Fee Sharing-> **Note:** These instructions only apply to coins that **have** a `sharing_config` — i.e. coins whose creator vault has been migrated to the Pump Fees program for multi-recipient distribution. For single-creator-recipient coins (no `sharing_config`), use [`collect_creator_fee_v2` / `collect_coin_creator_fee`](#sec-240) instead.+> **Note:** These instructions only apply to coins that **have** a `sharing_config` — i.e. coins whose creator vault has been migrated to the Pump Fees program for multi-recipient distribution. For single-creator-recipient coins (no `sharing_config`), use [`collect_creator_fee_v2` / `collect_coin_creator_fee`](#sec-257) instead.The lifecycle is:@@ -50693,7 +55011,7 @@ ixs.extend(sdk.distribute_creator_fees_v2_instructions(----<a id="sec-242"></a>+<a id="sec-259"></a>> **Source:** `docs/pumpfun-program/docs/instructions/SELL.md` · [↑ table of contents](#table-of-contents)@@ -50753,7 +55071,7 @@ All `sell_v2` calls need a `feeRecipient` and a `buybackFeeRecipient`.- For mayhem mode coins, choose one of the 8 reserved fee recipients as `feeRecipient`.- For all coins, choose one of the 8 buyback fee recipients as `buybackFeeRecipient`.-See [Fee Recipients](#sec-230) for the full address lists.+See [Fee Recipients](#sec-247) for the full address lists.## TS SDK@@ -50870,7 +55188,7 @@ ixs.extend(----<a id="sec-243"></a>+<a id="sec-260"></a>> **Source:** `docs/quick-start.md` · [↑ table of contents](#table-of-contents)@@ -50989,7 +55307,7 @@ GLB is the best choice for embeds: one file, no CORS complexity, maximum compati<agent-3d body="./models/my-character.glb"></agent-3d><!-- Absolute URL — the server must send permissive CORS headers -->-<agent-3d body="https://assets.example.com/my-character.glb"></agent-3d>+<agent-3d body="https://three.ws/avatars/michelle.glb"></agent-3d>```See the [CORS gotcha](#cors) below if your GLB is on a different domain.@@ -51013,10 +55331,10 @@ The `brain` attribute turns the 3D viewer into a conversational agent:| Attribute | What it does ||-----------|--------------|-| `brain` | LLM model ID. Registered Claude IDs: `claude-sonnet-4-6`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `claude-fable-5`, `claude-mythos-5`. Free models (no key, routed through the platform proxy) are also accepted, e.g. `meta-llama/llama-3.3-70b-instruct:free`. Omit for a viewer-only display with no AI (provider `none`). |+| `brain` | LLM model ID. Registered Claude IDs: `claude-sonnet-5`, `claude-opus-5`, `claude-sonnet-4-6`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `claude-fable-5`, `claude-mythos-5` (restricted access). Free models (no key, routed through the platform proxy) are also accepted, e.g. `meta-llama/llama-3.3-70b-instruct:free`. Omit for a viewer-only display with no AI (provider `none`). || `instructions` | System prompt for the agent's personality and role. || `mode` | Layout mode: `inline` (flows with page content), `floating` (fixed bubble in a corner), `fullscreen`, or `section`. Default: `inline`. |-| `sign-language` | The avatar signs every reply in ASL fingerspelling plus its sign vocabulary (any value except `off`/`false` enables it; works at boot or toggled at runtime). See the [sign language guide](#sec-256). |+| `sign-language` | The avatar signs every reply in ASL fingerspelling plus its sign vocabulary (any value except `off`/`false` enables it; works at boot or toggled at runtime). See the [sign language guide](#sec-275). |The chat input and microphone button appear automatically when `brain` is set. The agent can play animations, look at the camera, and respond to voice input.@@ -51057,7 +55375,7 @@ The fastest path to an embeddable 3D experience is an iframe widget. Build one i| `passport` | On-chain identity card backed by ERC-8004. || `hotspot-tour` | Annotated 3D scenes with clickable points of interest. |-For the full widget API including `postMessage` events, see the [Widget docs](#sec-358).+For the full widget API including `postMessage` events, see the [Widget docs](#sec-378).---@@ -51158,15 +55476,15 @@ If you're embedding inside a sandboxed iframe, make sure the parent grants `allo## Next Steps-- [Embedding Guide](#sec-144) — deep dive on attributes, events, and the JS API-- [Widget Types](#sec-358) — full reference for iframe embeds and postMessage-- [Agent System](#sec-057) — how the brain, memory, and skills layers work-- [REST API](#sec-082) and [JavaScript API](#sec-170) — backend and in-browser surfaces-- [SDK Reference](#sec-252) — `@three-ws/sdk`, `@three-ws/agent-ui`, `@three-ws/avatar`, `@three-ws/solana-agent`+- [Embedding Guide](#sec-151) — deep dive on attributes, events, and the JS API+- [Widget Types](#sec-378) — full reference for iframe embeds and postMessage+- [Agent System](#sec-059) — how the brain, memory, and skills layers work+- [REST API](#sec-084) and [JavaScript API](#sec-179) — backend and in-browser surfaces+- [SDK Reference](#sec-270) — `@three-ws/sdk`, `@three-ws/agent-ui`, `@three-ws/avatar`, `@three-ws/solana-agent`----<a id="sec-244"></a>+<a id="sec-261"></a>> **Source:** `docs/radar.md` · [↑ table of contents](#table-of-contents)@@ -51182,7 +55500,7 @@ API: `/api/pump/coin-intel` (feed, market pulse, per-coin detail). The detail dr## Why it exists-The most dangerous moment on pump.fun is the first minute, when the tape is thin and a bundle of bot wallets can manufacture the look of organic demand. A human cannot audit funder graphs and timing entropy in real time. The Coin Intelligence Engine does, on the live firehose, and Radar is its screener: a scannable board that turns raw first-90-seconds behaviour into a quality score and a short list of named risks, so you can filter out the coordinated launches and focus on the ones with a real crowd. It is the top of the [trading surfaces](#sec-281) funnel: Radar surfaces a launch worth a look, you watch it, and if it earns conviction you open it in [Mission Control](#sec-274) to act.+The most dangerous moment on pump.fun is the first minute, when the tape is thin and a bundle of bot wallets can manufacture the look of organic demand. A human cannot audit funder graphs and timing entropy in real time. The Coin Intelligence Engine does, on the live firehose, and Radar is its screener: a scannable board that turns raw first-90-seconds behaviour into a quality score and a short list of named risks, so you can filter out the coordinated launches and focus on the ones with a real crowd. It is the top of the [trading surfaces](#sec-301) funnel: Radar surfaces a launch worth a look, you watch it, and if it earns conviction you open it in [Mission Control](#sec-293) to act.## How it works@@ -51212,7 +55530,7 @@ The UI colors quality as Healthy at 70 and up, Mixed from 40 to 69, and High ris3. Press `/` to focus search and type a name, ticker, or mint. Press `g` or `l` to switch grid and list, `r` to refresh.4. Click any coin for the drawer: the full signal grid, the top-50 wallet ledger, the smart-money notable roster, the outcome (if labeled), and an asynchronously injected Oracle conviction section.5. Every mainnet coin links to its full page at `/oracle/coin/<mint>`: the card's "Full intel →" button goes there directly, and the drawer carries an "Open full page →" link in its header. The full page renders in the markets-hub design (the same system as `/coin/:id`) with the live price chart, the complete Launch Intelligence read (this engine's signal grid, risk flags, and trader ledger), Oracle conviction, live market intel, agent transactions, and a live trade tape.-6. On a coin worth tracking, use Watch to add it to your [Watchlist](https://three.ws/watchlist), then open it in [Mission Control](#sec-274) to trade.+6. On a coin worth tracking, use Watch to add it to your [Watchlist](https://three.ws/watchlist), then open it in [Mission Control](#sec-293) to trade.## Examples@@ -51251,16 +55569,103 @@ console.log(clean.map((c) => `${c.symbol} q${c.quality_score}`));## Related-- [The trading surfaces: Radar, Mission Control, Live Trade Feed, Watchlist, Coin Intelligence](#sec-281)-- [Oracle: the conviction engine](#sec-209) fuses this intel into a single conviction score-- [Smart Money Radar](#sec-261) is the pedigree layer Radar surfaces inline-- [Mission Control](#sec-274) is where a Radar find gets traded-- [Coin pages](#sec-120) cross-link the per-mint intel and conviction views+- [The trading surfaces: Radar, Mission Control, Live Trade Feed, Watchlist, Coin Intelligence](#sec-301)+- [Oracle: the conviction engine](#sec-224) fuses this intel into a single conviction score+- [Smart Money Radar](#sec-280) is the pedigree layer Radar surfaces inline+- [Mission Control](#sec-293) is where a Radar find gets traded+- [Coin pages](#sec-124) cross-link the per-mint intel and conviction views- Pages: [/radar](https://three.ws/radar) · [/coin-intel](https://three.ws/coin-intel) · [/watchlist](https://three.ws/watchlist)----<a id="sec-245"></a>+<a id="sec-262"></a>++> **Source:** `docs/reasoning-ledger.md` · [↑ table of contents](#table-of-contents)++# The Reasoning Ledger: hash-chained agent decisions you can audit++Every consequential call a three.ws agent makes (what it decided, why, what it predicted, and what actually happened) is appended to a per-agent, hash-chained ledger. The decision is committed at the moment it is made; the outcome is reconciled later against real on-chain data and stored separately, so a record can never be rewritten to flatter the agent. Being wrong is exactly as visible as being right: honesty is the trust signal.++Browse it at [three.ws/ledger](https://three.ws/ledger). The page is per-agent (`/ledger/<agentId>`, or `/reasoning-ledger?agent=<id>`): a filterable decision timeline, a transparent reputation score with a "how is this computed" drill-down, a calibration chart, and a verification badge that re-checks the chain and its on-chain anchor on demand.++## What a ledger entry contains++Each entry in `agent_decisions` commits, at decision time:++- `seq`: the entry's 1-based position in the agent's chain+- `kind`: what sort of decision (e.g. `snipe`, `optimize`)+- `subject_ref` / `action_ref`: what the decision was about (a token mint, a strategy id) and the concrete action it produced (a position id)+- `inputs`: the evidence in front of the agent (trigger, firewall verdict and score, price impact, size, model thesis)+- `rationale`: a plain-language explanation of why+- `prediction`: a falsifiable claim (direction, basis, metric)+- `confidence`: 0 to 1, self-rated and later scored against reality+- `network` and `decided_at`+- `prev_hash` and `entry_hash`: the chain links (below)++The outcome lives in a separate table, `decision_outcomes`, written only when ground truth arrives: what was observed (realized P&L in SOL and percent, the sell signature, the exit reason), `was_correct`, and when it was reconciled. Reconciled entries on the page show a right/wrong chip, the exact P&L, and an explorer link to the on-chain proof.++## How the hash chain makes tampering evident++The chain construction lives in `api/_lib/reasoning-ledger.js`:++- Each agent's chain starts from a **genesis hash bound to that agent's id** (`threews-reasoning-ledger:v1:<agentId>`), so one agent's history cannot be spliced onto another's.+- Every entry is serialized to a **canonical form**: object keys sorted recursively, confidence at fixed precision, timestamps normalized, so the hash is reproducible after a database round-trip.+- `entry_hash = sha256(prev_hash + separator + canonical(entry))`. Each entry commits to the one before it, so the head hash commits to the entire history.+- **Only decision-time fields are hashed, never the outcome.** Reconciling a decision cannot alter its hash, and neither can anyone "fixing" a bad call after the fact.++The consequences, each detectable and pinpointed to a specific `seq`:++- Editing any committed field breaks that entry's own hash.+- Deleting or inserting an entry breaks the next entry's `prev_hash` link (or leaves a sequence gap).+- Rewriting the whole chain produces a new head, which no longer matches the head committed on-chain.++That last check is the anchor: on a schedule, each agent's current chain head is written to Solana as a signed SPL-Memo transaction (kind `threews.ledger.v1`, recorded in `ledger_anchors`). Because the head commits to the whole prefix, anchoring one hash is a tamper proof for the entire history up to that point. Anchoring is best-effort by contract: without a funded attester key the commitment is recorded locally as pending, and the chain's cryptographic tamper-evidence holds regardless; only the independent on-chain timestamp is deferred.++## Verifying a ledger yourself++```bash+curl "https://three.ws/api/ledger/verify/<agentId>"+```++Public, no account. The verifier trusts **no stored hash**: it recomputes every `entry_hash` from the committed fields, checks every `prev_hash` link and the sequence, then compares the recomputed head against the latest on-chain anchor. Statuses:++- `verified`: chain intact and the head matches the on-chain anchor (the response includes the anchor transaction and explorer link)+- `verified_unanchored`: chain intact, on-chain commitment still pending+- `verification_failed`: a tamper or inconsistency was found; `chain.broken_at` names the exact entry and `chain.reason` says what broke+- `empty`: no decisions recorded yet++The ledger page runs this same check and renders it as the verification badge; clicking it re-verifies live.++The timeline itself is public too:++```bash+curl "https://three.ws/api/ledger/<agentId>?limit=50&kind=snipe&q=firewall"+```++It returns the agent, the reputation breakdown, the latest anchor summary, and the paginated decisions with outcomes (`before=<seq>` pages older entries).++## Who writes entries++There is a single write path, `recordDecision`, and it is a chokepoint by design: appends are idempotent per real-world action (a handler that fires twice records once) and concurrency-safe when claiming the next chain slot. Today's writers, as coded:++- **The [Agent Sniper](#sec-056) executor** appends a `snipe` entry the moment a buy settles: trigger, firewall verdict, price impact, committed size, the buy signature, and (for LLM-judged arms) the model's thesis and confidence.+- **The sniper optimizer cron** appends an `optimize` entry whenever it auto-tunes a strategy from realized outcomes, so the self-tuning loop's own decisions are auditable next to the trades that drove them.+- **The reconcile cron** (`api/cron/reconcile-decisions`) writes no decisions; it closes the loop. When a linked position settles on-chain, it records the outcome against the sell signature (idempotently, so re-runs never double-count), then anchors each agent's advanced chain head, and raises an ops alert if a sizeable track record's hit rate collapses.++Any subsystem that makes a consequential agent decision can adopt the same write path; the page's filters already anticipate more kinds than the sniper pipeline emits today.++## The reputation score is explainable, not a black box++The headline score (0 to 100) is derived only from reconciled outcomes, and the API returns the full formula next to the number: 50% hit rate, 30% calibration (1 minus expected calibration error: do 80%-confidence calls hit about 80% of the time?), 20% realized P&L squashed to a 0-1 range, regressed toward neutral until the agent has 20 reconciled decisions. Every component ships with its raw value, weight, and contribution, and the calibration chart plots predicted confidence against actual hit rate per band.++## Related++- [Agent Sniper](#sec-056): the pipeline that writes `snipe` entries, with a live case-study ledger+- [Custody you can verify](#sec-140): the same provable-not-promised approach applied to the wallets these decisions spend from++---++<a id="sec-263"></a>> **Source:** `docs/remix.md` · [↑ table of contents](#table-of-contents)@@ -51457,12 +55862,12 @@ still recorded — the royalty leg reports `payout_unconfigured` instead of payi## Related-- [3D Studio (free) MCP](#sec-181) — the `refine_model` iteration tool.+- [3D Studio (free) MCP](#sec-191) — the `refine_model` iteration tool.- [The 3D pipeline](#sec-003) — how generation itself works.----<a id="sec-246"></a>+<a id="sec-264"></a>> **Source:** `docs/reputation.md` · [↑ table of contents](#table-of-contents)@@ -51657,7 +56062,7 @@ GET /api/exploreSeparate from reputation scores, glTF validation results can also be recorded on-chain via the `ValidationRegistry`. A passing validation attests that the agent's 3D model meets the glTF specification as of a specific block timestamp. Validation history is shown on the agent's profile page alongside reputation data.-See the [Validation](#sec-351) documentation for details.+See the [Validation](#sec-371) documentation for details.---@@ -51670,7 +56075,7 @@ See the [Validation](#sec-351) documentation for details.----<a id="sec-247"></a>+<a id="sec-265"></a>> **Source:** `docs/restyle.md` · [↑ table of contents](#table-of-contents)@@ -51682,7 +56087,7 @@ Page: [/restyle](https://three.ws/restyle) · API: `/api/material-studio`## Why it exists-Generating a 3D model is the expensive step. Once you have a good mesh, wanting it in a different finish should not mean paying to regenerate the whole thing and risking a worse shape. Restyle Studio separates the two. Skin is cheap and reversible; geometry is precious and left alone. That makes iterating on look-and-feel a tight loop: try chrome, try worn copper, try glass, save the two you like as durable versions, export the winner. It also gives the rest of the platform one shared material vocabulary. Restyle Studio consumes the same PBR preset library (`@three-ws/viewer-presets`) and the same GLB optimize-and-validate path that [Avatar Studio](#sec-097) uses, instead of inventing a parallel one.+Generating a 3D model is the expensive step. Once you have a good mesh, wanting it in a different finish should not mean paying to regenerate the whole thing and risking a worse shape. Restyle Studio separates the two. Skin is cheap and reversible; geometry is precious and left alone. That makes iterating on look-and-feel a tight loop: try chrome, try worn copper, try glass, save the two you like as durable versions, export the winner. It also gives the rest of the platform one shared material vocabulary. Restyle Studio consumes the same PBR preset library (`@three-ws/viewer-presets`) and the same GLB optimize-and-validate path that [Avatar Studio](#sec-099) uses, instead of inventing a parallel one.## How it works@@ -51763,14 +56168,14 @@ Pass the returned `lineage` array back as `parent_lineage` on the next call to e## Related-- [Avatar Studio](#sec-097): shares the same GLB optimize-and-validate path and material vocabulary.-- [Scene Composer](#sec-123) and [Scene Studio](#sec-251): arrange and edit restyled models in a full scene.-- [MCP tools reference](#sec-182): the paid `restyle_material` agent twin of this endpoint.+- [Avatar Studio](#sec-099): shares the same GLB optimize-and-validate path and material vocabulary.+- [Scene Composer](#sec-127) and [Scene Studio](#sec-269): arrange and edit restyled models in a full scene.+- [MCP tools reference](#sec-192): the paid `restyle_material` agent twin of this endpoint.- [/forge](https://three.ws/forge): generate the models you bring here.----<a id="sec-248"></a>+<a id="sec-266"></a>> **Source:** `docs/risk-acknowledgment.md` · [↑ table of contents](#table-of-contents)@@ -51877,12 +56282,12 @@ the same change.## Related- [Risk Disclosure](https://three.ws/legal/risk) — the full legal text users accept-- [Custody you can verify](#sec-135) — the spend-limit and freeze controls that bound what agents can do after acceptance+- [Custody you can verify](#sec-140) — the spend-limit and freeze controls that bound what agents can do after acceptance- [Terms of Service](https://three.ws/legal/tos) — §8 Limitation of Liability, which this acknowledgment supplements----<a id="sec-249"></a>+<a id="sec-267"></a>> **Source:** `docs/robinhood-chain-markets.md` · [↑ table of contents](#table-of-contents)@@ -51974,16 +56379,16 @@ math; Chainlink feed prices are already multiplier-adjusted, so they're never re## Related surfaces-- [Market Data API](#sec-177) — the same paid-endpoint pattern (x402, `priceFor`,+- [Market Data API](#sec-187) — the same paid-endpoint pattern (x402, `priceFor`,service-catalog descriptor) applied to the rest of three.ws's market data.-- [Trust primitives](#sec-283) — score a Robinhood Chain wallet's cross-chain+- [Trust primitives](#sec-303) — score a Robinhood Chain wallet's cross-chainreputation before transacting with it.-- [x402 distribution](#sec-361) — how the paid portfolio endpoint gets discovered+- [x402 distribution](#sec-381) — how the paid portfolio endpoint gets discoveredacross the x402 ecosystem.----<a id="sec-250"></a>+<a id="sec-268"></a>> **Source:** `docs/sas-attestations.md` · [↑ table of contents](#table-of-contents)@@ -51993,7 +56398,7 @@ An attestation is a signed on-chain statement about a wallet or an agent (for exthree.ws issues two kinds of on-chain attestations on Solana:-- **Permissionless attestations** — general feedback, task lifecycle, dispute, and revoke events. Anyone can write them as SPL Memos (see [Solana reputation](#sec-265)).+- **Permissionless attestations** — general feedback, task lifecycle, dispute, and revoke events. Anyone can write them as SPL Memos (see [Solana reputation](#sec-284)).- **Credentialed attestations** — claims only three.ws or an authorized validator may make: that a wallet is verified, or that a validator audited an agent's task result. These use the [Solana Attestation Service (SAS)](https://attest.solana.com/) and are signed by the **three.ws authority wallet**.This page covers the authority wallet, the `SAS_AUTHORITY_SECRET` environment variable, bootstrapping the credential + schemas, and the API that issues them.@@ -52212,13 +56617,13 @@ Closing (revoking) an attestation is done server-side via `sasClose()` in [api/_----<a id="sec-251"></a>+<a id="sec-269"></a>> **Source:** `docs/scene-studio.md` · [↑ table of contents](#table-of-contents)# Scene Studio: the full three.js editor, in your browser-Scene Studio is the complete [mrdoob/three.js](https://github.com/mrdoob/three.js) editor (release r184, MIT-licensed), vendored into three.ws and wrapped in the site chrome. It is the heavyweight scene tool: import GLBs and other assets, move and rotate and scale them with transform gizmos, edit materials and lights and cameras through a full property sidebar, script objects with live JavaScript, play the scene, and export it. Where [Scene Composer](#sec-123) is a focused avatar-plus-props arranger and [Animation Studio](#sec-080) is a posing and keyframing tool, Scene Studio is the general-purpose 3D authoring surface underneath them.+Scene Studio is the complete [mrdoob/three.js](https://github.com/mrdoob/three.js) editor (release r184, MIT-licensed), vendored into three.ws and wrapped in the site chrome. It is the heavyweight scene tool: import GLBs and other assets, move and rotate and scale them with transform gizmos, edit materials and lights and cameras through a full property sidebar, script objects with live JavaScript, play the scene, and export it. Where [Scene Composer](#sec-127) is a focused avatar-plus-props arranger and [Animation Studio](#sec-082) is a posing and keyframing tool, Scene Studio is the general-purpose 3D authoring surface underneath them.Page: [/scene](https://three.ws/scene)@@ -52238,7 +56643,7 @@ The editor is ported from the upstream `editor/index.html` with a small set of l### Handoff from Animation Studio-Scene Studio is the render target for animations built in [Animation Studio](#sec-080). When you click "Open in Scene Studio" there, the studio bakes your keyframed animation into a GLB, stashes it in IndexedDB, and navigates to `/scene?handoff=1`. Scene Studio picks the model up on boot (`takeSceneHandoff`), drops it into the scene with its animation track ready, and you record it to video from the editor's render menu. The GLB is passed through browser storage, not the network, so nothing large is uploaded to move a model between the two tools.+Scene Studio is the render target for animations built in [Animation Studio](#sec-082). When you click "Open in Scene Studio" there, the studio bakes your keyframed animation into a GLB, stashes it in IndexedDB, and navigates to `/scene?handoff=1`. Scene Studio picks the model up on boot (`takeSceneHandoff`), drops it into the scene with its animation track ready, and you record it to video from the editor's render menu. The GLB is passed through browser storage, not the network, so nothing large is uploaded to move a model between the two tools.## Walkthrough@@ -52259,7 +56664,7 @@ Scene Studio is an interactive editor, not an HTTP API, so the concrete examplesA typical round trip from another studio:-1. Build a walk cycle in [Animation Studio](#sec-080) on a rigged avatar.+1. Build a walk cycle in [Animation Studio](#sec-082) on a rigged avatar.2. Click "Open in Scene Studio". The baked animated GLB is stashed and `/scene?handoff=1` opens.3. In Scene Studio, add a ground plane, a key light, and a camera, position the avatar, and use Render ▸ Video to capture the loop.@@ -52273,20 +56678,20 @@ A typical round trip from another studio:## Related-- [Scene Composer](#sec-123): the lighter avatar-plus-props arranger with Forge integration.-- [Animation Studio](#sec-080): builds the animated GLBs Scene Studio records to video.-- [Restyle Studio](#sec-247): re-skin the models before or after composing them.+- [Scene Composer](#sec-127): the lighter avatar-plus-props arranger with Forge integration.+- [Animation Studio](#sec-082): builds the animated GLBs Scene Studio records to video.+- [Restyle Studio](#sec-265): re-skin the models before or after composing them.- [3D asset pipeline](#sec-002): how GLB, glTF, and clip formats relate across the platform.----<a id="sec-252"></a>+<a id="sec-270"></a>> **Source:** `docs/sdk.md` · [↑ table of contents](#table-of-contents)# SDK & Library-This page is for developers who want to build with three.ws code in their own project, beyond pasting an embed snippet. If you just want a 3D agent on a page, start with the [web component](#sec-355); come here when you need to import classes, register agents on-chain, or build the bundles yourself. There are two distributable artifacts you can import:+This page is for developers who want to build with three.ws code in their own project, beyond pasting an embed snippet. If you just want a 3D agent on a page, start with the [web component](#sec-375); come here when you need to import classes, register agents on-chain, or build the bundles yourself. There are two distributable artifacts you can import:| Artifact | Package | Use case ||---|---|---|@@ -52363,7 +56768,7 @@ import { defineElement } from './src/lib.js';// Ship under your own branddefineElement('my-avatar');-// <my-avatar model="./agent.glb"></my-avatar>+// <my-avatar model="https://three.ws/avatars/default.glb"></my-avatar>```The element self-registers as `<agent-3d>` on import. `defineElement()` lets you override the tag before registration happens.@@ -52379,7 +56784,7 @@ const viewer = new Viewer(document.getElementById('canvas-container'));viewer.load('./avatar.glb');```-Full attribute and event API is documented in [Web Component reference](#sec-355).+Full attribute and event API is documented in [Web Component reference](#sec-375).### loadManifest and normalize@@ -52720,7 +57125,7 @@ python3 -m http.server 8080----<a id="sec-253"></a>+<a id="sec-271"></a>> **Source:** `docs/security.md` · [↑ table of contents](#table-of-contents)@@ -52761,7 +57166,7 @@ Chat messages travel through `/api/chat`, which proxies to a configured LLM prov- Does not log message content- Returns the LLM stream directly to your browser-Conversation history lives in `localStorage` by default. Cloud memory sync is opt-in (see [Memory](#sec-186)).+Conversation history lives in `localStorage` by default. Cloud memory sync is opt-in (see [Memory](#sec-197)).### Wallet data@@ -52777,7 +57182,7 @@ The SIWE (Sign-In With Ethereum) flow signs a server-generated challenge — no| Mode | Where data lives | Privacy ||------|-----------------|---------|| `local` (default) | Browser `localStorage` | Device-only |-| `remote` | three.ws cloud storage, tied to your account | Opt-in cloud sync (see [Memory](#sec-186)) |+| `remote` | three.ws cloud storage, tied to your account | Opt-in cloud sync (see [Memory](#sec-197)) || `ipfs` | Public IPFS network | Public — use only for non-sensitive data || `encrypted-ipfs` | IPFS, encrypted before leaving the browser | Encrypted with your key; IPFS only sees ciphertext || `none` | Not persisted | Cleared on page unload |@@ -53082,7 +57487,7 @@ For validator misconduct (biased or falsified on-chain attestations), open a pub----<a id="sec-254"></a>+<a id="sec-272"></a>> **Source:** `docs/selfie-to-avatar.md` · [↑ table of contents](#table-of-contents)@@ -53107,7 +57512,7 @@ The client half lives in three modules the page imports on demand: [`src/selfie-2. **Optional side angles.** Under an "Add side angles" disclosure you can capture two extra stills (`left`, `right`, turned ~45 degrees). They raise fidelity and the ETA, but only the frontal is required.3. **Refine, in the browser.** `assessPhoto` gates the frontal (no face is the only hard block; blur, illustration, or a distant subject are non-fatal warnings). `refineSelfie` isolates the subject from its background and reframes to a clean head-and-shoulders square, then downscales (max 1024px, JPEG quality 0.88). The refined frontal is previewed so you see exactly what the engine sees.4. **Submit.** The pipeline POSTs the photos as data URIs to `/api/avatars/reconstruct` and gets back a `jobId`.-5. **Reconstruct, server-side.** The reconstruct handler (`api/avatars/_actions.js`) selects a provider through [`api/_lib/regen-provider.js`](../api/_lib/regen-provider.js). The production lane is **GCP**: it POSTs `{ images, body_type }` to the Cloud Run service `avatar-pipeline-controller` (env `GCP_RECONSTRUCTION_URL`), which runs the [`workers/avatar-reconstruction/`](../workers/avatar-reconstruction) FastAPI app. That pipeline (`face_texture_transfer_v2`) uses **MediaPipe FaceLandmarker** (468 landmarks, Apache-2.0) to transfer your face texture and geometry onto a fixed-topology, pre-rigged Wolf3D/Ready-Player-Me-style humanoid template carrying a Mixamo-compatible skeleton, 52 ARKit blendshapes, and 15 visemes. Full engine detail is in [avatar-reconstruction.md](#sec-096).+5. **Reconstruct, server-side.** The reconstruct handler (`api/avatars/_actions.js`) selects a provider through [`api/_lib/regen-provider.js`](../api/_lib/regen-provider.js). The production lane is **GCP**: it POSTs `{ images, body_type }` to the Cloud Run service `avatar-pipeline-controller` (env `GCP_RECONSTRUCTION_URL`), which runs the [`workers/avatar-reconstruction/`](../workers/avatar-reconstruction) FastAPI app. That pipeline (`face_texture_transfer_v2`) uses **MediaPipe FaceLandmarker** (468 landmarks, Apache-2.0) to transfer your face texture and geometry onto a fixed-topology, pre-rigged Wolf3D/Ready-Player-Me-style humanoid template carrying a Mixamo-compatible skeleton, 52 ARKit blendshapes, and 15 visemes. Full engine detail is in [avatar-reconstruction.md](#sec-098).6. **Auto-rig fallback.** The template is born rigged. If a generic mesh comes back unrigged and a rig model is configured, `reconstruct-finalize.js` chains a `rerig` job (GCP UniRig, `workers/unirig`) and moves the job through a `rigging` status before surfacing the avatar. If rigging is impossible it delivers the static mesh tagged `unrigged` rather than nothing.7. **Poll and finish.** The client polls `GET /api/avatars/regenerate-status?jobId=...` every ~3 seconds (backing off on errors). On `status: 'done'` it fetches the finished avatar from `GET /api/avatars/:id` and shows it in a `<model-viewer>`.@@ -53165,15 +57570,15 @@ Request body: `name` (1-120, required), `photos` (1-6 image URLs or data URIs) *## Related-- [Avatar reconstruction pipeline](#sec-096): the full engine: MediaPipe face-texture transfer, geometry morph, the fixed pre-rigged head template, and the Cloud Run worker.-- [Avatar pipeline](#sec-095): the distinct Forge text-to-3D generation lane.-- [Trait-based avatar builder](#sec-114): customize and dress the avatar after you scan it.-- [Talking Avatar Video](#sec-273) and [Lipsync](#sec-174): drive the finished avatar's mouth.+- [Avatar reconstruction pipeline](#sec-098): the full engine: MediaPipe face-texture transfer, geometry morph, the fixed pre-rigged head template, and the Cloud Run worker.+- [Avatar pipeline](#sec-097): the distinct Forge text-to-3D generation lane.+- [Trait-based avatar builder](#sec-117): customize and dress the avatar after you scan it.+- [Talking Avatar Video](#sec-292) and [Lipsync](#sec-184): drive the finished avatar's mouth.- Pages: [/create/selfie](https://three.ws/create/selfie), [/create](https://three.ws/create), [/features/scan](https://three.ws/features/scan).----<a id="sec-255"></a>+<a id="sec-273"></a>> **Source:** `docs/share-and-embed.md` · [↑ table of contents](#table-of-contents)@@ -53234,7 +57639,7 @@ If you manage the HTML of your page directly, the `<agent-3d>` custom element gi<agent-3d agent-id="<your-agent-id>"></agent-3d>```-The element renders inline (no iframe boundary), supports keyboard navigation, and exposes a JavaScript API so you can drive the agent programmatically. See the [Embedding guide](#sec-144) for the full attribute reference and event list.+The element renders inline (no iframe boundary), supports keyboard navigation, and exposes a JavaScript API so you can drive the agent programmatically. See the [Embedding guide](#sec-151) for the full attribute reference and event list.---@@ -53263,14 +57668,234 @@ To customize the preview image, change the agent's thumbnail in the editor.## What's next-- **Make your agent smarter** → [Skills system](#sec-259)-- **Understand the technical embed options** → [Embedding guide](#sec-144)-- **Payment and crypto questions** → [Do I need crypto?](#sec-140)-- **Give it a permanent on-chain address** → [Register on-chain](#sec-319)+- **Make your agent smarter** → [Skills system](#sec-278)+- **Understand the technical embed options** → [Embedding guide](#sec-151)+- **Payment and crypto questions** → [Do I need crypto?](#sec-147)+- **Give it a permanent on-chain address** → [Register on-chain](#sec-339)----<a id="sec-256"></a>+<a id="sec-274"></a>++> **Source:** `docs/shared-utilities.md` · [↑ table of contents](#table-of-contents)++# Shared utilities++Small, dependency-backed modules that exist so the same problem is not solved+twice. Each one replaced a family of hand-rolled copies that had drifted apart;+if you find yourself about to write another Markdown renderer, toast, retry+loop, or LRU cache, import from here and extend it instead.++The rule from [CLAUDE.md](../CLAUDE.md) applies: never reinvent a solved+problem. Every module below is a thin layer over a well-maintained package,+adding only the project's conventions.++---++## Frontend++### `src/shared/markdown.js` — sanitized Markdown++Renders Markdown to HTML that is safe to assign via `innerHTML`. Built on+[`marked`](https://www.npmjs.com/package/marked) (CommonMark + GFM) followed by+a strict [`DOMPurify`](https://www.npmjs.com/package/dompurify) pass.++```js+import { renderMarkdown, stripMarkdown } from './shared/markdown.js';++el.innerHTML = renderMarkdown(modelOutput);++// Keep an existing stylesheet contract, and shift `#` down to `<h3>`:+el.innerHTML = renderMarkdown(text, {+ classes: { pre: 'md-code', 'code:not(pre code)': 'md-ic' },+ demoteHeadings: 2,+});++speak(stripMarkdown(text)); // plain text for voice/meta contexts+```++Only text-level tags survive sanitization: no `<img>`, `<iframe>`, `<style>`,+`<form>`, or event handlers. Link `href`s are restricted to `http(s):`,+`mailto:`, and same-site relative paths; every link gets+`target="_blank" rel="noopener noreferrer nofollow"`.++**Why it exists.** Eight separate renderers were parsing Markdown with regexes,+each with its own escaping, and none with a sanitizer. None supported tables or+nested lists. `@three-ws/concierge` has its own copy of this module+(`concierge-sdk/src/markdown.js`) because it ships as an independent bundle.++### `src/shared/toast.js` — notifications++```js+import { toast, toastSuccess, toastError } from './shared/toast.js';++toast('Copied to clipboard');+toastError('Could not save. Check your connection.');+const dismiss = toastSuccess('Agent created', { duration: 4000 });+```++One `role="status" aria-live="polite"` region, a real queue (up to three+visible; a second toast stacks instead of replacing the first), click-to-dismiss,+and error/success variants. Messages are set via `textContent`, never HTML.++**Why it exists.** 67 copies of a single-slot `function toast()`, most without+an ARIA live region, each re-declaring the same inline `cssText`.++### `src/shared/fuzzy.js` — fuzzy search++Backed by [`@leeoniya/ufuzzy`](https://www.npmjs.com/package/@leeoniya/ufuzzy)+(~7 kB).++```js+import { rank, matches, highlight } from './shared/fuzzy.js';++const results = rank(query, commands, (c) => `${c.label} ${c.group}`, { limit: 8 });+for (const { item, ranges } of results) {+ render(highlight(item.label, ranges)); // <mark> around the real match positions+}+```++Ranks by contiguity, word-boundary starts, and match position, and tolerates one+typo per term (insertion, substitution, transposition, or deletion). It does+**not** match arbitrarily sparse subsequences: that is deliberate, because the+scorer it replaced accepted any subsequence and then tied every such hit at one+score, so "close match" and "barely matches" sorted arbitrarily.++### `src/shared/coin-format.js` — `timeAgo` and `toEpochMs`++`timeAgo` accepts ISO strings, `Date` objects, epoch milliseconds, **and epoch+seconds**, normalizing through `toEpochMs`. Copies of this function across the+codebase disagreed about their input unit, which is a live source of+"53 years ago" bugs.++```js+import { timeAgo, toEpochMs } from './shared/coin-format.js';+timeAgo('2026-07-29T10:00:00Z'); // "3m ago"+timeAgo(1783670400); // unix seconds, handled+```++---++## Backend++### `api/_lib/resilience.js` — retry, backoff, circuit breaking++Backed by [`cockatiel`](https://www.npmjs.com/package/cockatiel).++```js+import { withRetry, withBreaker, withRetryAndBreaker, parseRetryAfter, isRetryableError }+ from './_lib/resilience.js';++// Jittered exponential backoff; only transient failures are retried.+const data = await withRetry(() => fetchUpstream(url), {+ attempts: 3, initialDelayMs: 250, maxDelayMs: 10_000, label: 'birdeye',+});++// Retry, then degrade instead of throwing.+const quote = await withRetryAndBreaker('birdeye:quote', () => getQuote(mint), {+ fallback: null,+});+```++`isRetryableError` treats 408/425/429/5xx, network errno codes+(`ECONNRESET`, `UND_ERR_CONNECT_TIMEOUT`, …), and aborts/timeouts as transient;+a 400 or a `TypeError` is not retried. Pass `shouldRetry` to override.++**Why it matters.** The backoff is *decorrelated-jittered*. Roughly three dozen+hand-rolled `sleep(base * 2 ** attempt)` loops had no jitter at all, so a shared+upstream blip re-synchronized every caller into the same retry wave.++### `api/_lib/mem-cache.js` — bounded in-process cache++Backed by [`lru-cache`](https://www.npmjs.com/package/lru-cache).++```js+import { createCache, cached } from './_lib/mem-cache.js';++const cache = createCache({ max: 512, ttlMs: 60_000 });++// Read-through with single-flight: concurrent misses share one load().+const price = await cached(cache, mint, () => fetchPrice(mint));++// Per-entry TTL when lifetimes vary by key:+cache.set(key, value, { ttl: 10 * 60_000 });+```++This is per-instance memory, the same model as the Maps it replaced. Shared+cross-instance state still belongs in Redis via `api/_lib/cache.js`.++**Why it matters.** The Maps it replaces were trimmed with+`map.delete(map.keys().next().value)`, which evicts the **oldest inserted** key,+not the least recently used one, so a continuously-hot key could be evicted+while colder keys inserted after it survived. Others called `.clear()` at the+cap, discarding everything periodically; most were unbounded.++`createCache` sets `ttlResolution: 0` so expiry is checked against a live clock+on every read rather than a memoized timestamp.++### `api/_lib/pool.js` — bounded concurrency++Backed by [`p-limit`](https://www.npmjs.com/package/p-limit).++```js+import { mapPool, mapPoolSettled } from './_lib/pool.js';++// At most 5 in flight; results in input order; rejects on first error.+const balances = await mapPool(wallets, 5, (w) => readBalance(w));++// One bad row must not abort a backfill:+const rows = await mapPoolSettled(items, 4, (i) => process(i));+for (const r of rows) if (!r.ok) log.warn(r.error);+```++Prefer this over chunking input into fixed batches and awaiting each batch: with+batching, one slow item holds its whole batch's slots idle until it drains.++### `api/_lib/csv.js` — CSV export++```js+import { csvCell, csvCellJson, toCsv } from './_lib/csv.js';++res.end(toCsv(['created_at', 'content'], rows.map((r) => [r.created_at, r.content])));+```++Every cell is RFC 4180 quoted **and** neutralized against spreadsheet formula+injection: Excel and Google Sheets execute a cell whose text starts with+`=`, `+`, `-`, `@`, or a leading tab/CR, which turns exported user content into+live formulas. Use `csvCellJson` for columns holding structured metadata.++**Never hand-roll a cell writer.** Two existed before this module and had+diverged, and the one lacking the formula guard was the one exporting+visitor-supplied chat transcripts.++---++## Operations++### `scripts/check-cron-drift.mjs` — cron config vs. reality++Validates every cron expression in `vercel.json` with+[`cron-parser`](https://www.npmjs.com/package/cron-parser) and compares the+declared schedules against the live Cloud Scheduler jobs.++```bash+node scripts/check-cron-drift.mjs # validate + compare against live jobs+node scripts/check-cron-drift.mjs --offline # validate expressions only, no gcloud+node scripts/check-cron-drift.mjs --json # machine-readable report+```++Reports invalid expressions, duplicate job ids, schedules that are declared but+missing from Cloud Scheduler, live schedules that disagree with the declared+one, jobs that are not `ENABLED`, and orphaned jobs no longer declared. Exits+non-zero on anything but orphans, so it can gate a deploy.++`vercel.json` is a live config file, but nothing previously verified that+Cloud Scheduler still matched it: a schedule edited without a re-sync, or a job+paused during an incident and never resumed, failed silently.++---++<a id="sec-275"></a>> **Source:** `docs/sign-language.md` · [↑ table of contents](#table-of-contents)@@ -53278,7 +57903,7 @@ To customize the preview image, change the agent's thumbnail in the editor.three.ws avatars can communicate in American Sign Language. Words with a sign are signed, on one or both hands; everything else is fingerspelled. It runs everywhere an avatar performs, including signed chat replies on the platform's conversational surfaces.-> Studio usage (the Spell box, exports, share links) is covered in [Animation Studio](#sec-080). This page covers the system: the engines, the chat integration, and the roadmap.+> Studio usage (the Spell box, exports, share links) is covered in [Animation Studio](#sec-082). This page covers the system: the engines, the chat integration, and the roadmap.## What works today@@ -53400,13 +58025,13 @@ None of this replaces a human interpreter. It makes an avatar legible to signers## Related-- [Animation Studio](#sec-080), the Spell box, exports, and share links-- [docs/animations.md](#sec-081), clip formats and the retarget engine+- [Animation Studio](#sec-082), the Spell box, exports, and share links+- [docs/animations.md](#sec-083), clip formats and the retarget engine- [Motion Swap](https://three.ws/motion-swap), video motion capture, including hands----<a id="sec-257"></a>+<a id="sec-276"></a>> **Source:** `docs/signals.md` · [↑ table of contents](#table-of-contents)@@ -53503,16 +58128,16 @@ curl -s https://three.ws/api/signals/subscribe -H 'authorization: Bearer YOUR_TO## Related-- [Custody you can verify](#sec-135) - the spend caps, freeze, and audit trail the subscriber wallet pays and trades under-- [Financial controls](#sec-150) - the plain-English rules and firewall the mirror respects-- [Oracle](#sec-209) - the conviction engine and its own follow/copy tier-- [x402](#sec-366) - the USDC payment protocol every signal settles over-- [Trader card](#sec-277) - the verified track record that regresses a feed's edge+- [Custody you can verify](#sec-140) - the spend caps, freeze, and audit trail the subscriber wallet pays and trades under+- [Financial controls](#sec-157) - the plain-English rules and firewall the mirror respects+- [Oracle](#sec-224) - the conviction engine and its own follow/copy tier+- [x402](#sec-386) - the USDC payment protocol every signal settles over+- [Trader card](#sec-297) - the verified track record that regresses a feed's edge- [/leaderboard](https://three.ws/leaderboard) - build a verified record, then publish a feed of your own----<a id="sec-258"></a>+<a id="sec-277"></a>> **Source:** `docs/sketchfab.md` · [↑ table of contents](#table-of-contents)@@ -53602,7 +58227,7 @@ and [`api/_lib/sketchfab.js`](https://github.com/nirholas/three.ws/blob/main/api----<a id="sec-259"></a>+<a id="sec-278"></a>> **Source:** `docs/skills.md` · [↑ table of contents](#table-of-contents)@@ -54341,15 +58966,15 @@ Publish your own from the marketplace ("Publish a Skill") or `POST /api/skills`## See also-- [Architecture Overview](#sec-086) — how skills fit into the agent runtime-- [Agent System](#sec-057) — the protocol bus and built-in tool system-- [Web Component](#sec-355) — embedding agents and passing skill attributes+- [Architecture Overview](#sec-088) — how skills fit into the agent runtime+- [Agent System](#sec-059) — the protocol bus and built-in tool system+- [Web Component](#sec-375) — embedding agents and passing skill attributes- `specs/SKILL_SPEC.md` — the authoritative skill bundle specification- `specs/PERMISSIONS_SPEC.md` — ERC-7710/ERC-7715 delegation for fine-grained skill permissions----<a id="sec-260"></a>+<a id="sec-279"></a>> **Source:** `docs/smart-contracts.md` · [↑ table of contents](#table-of-contents)@@ -54955,7 +59580,7 @@ On Base at typical gas prices (~0.001 gwei base fee), an agent registration runs----<a id="sec-261"></a>+<a id="sec-280"></a>> **Source:** `docs/smart-money.md` · [↑ table of contents](#table-of-contents)@@ -54969,7 +59594,7 @@ API: `/api/pump/smart-money` (feed, leaderboard, per-coin, per-wallet). The coin## Why it exists-The single most predictive early signal on pump.fun is not the chart, it is who is buying. A wallet that has repeatedly entered coins that went on to graduate is worth watching; a wallet that dumps every launch it touches is worth avoiding. That information exists on chain, but nobody keeps a running scorecard in time. Smart Money Radar is that scorecard. It re-earns every wallet's reputation continuously from real outcomes, so a coin's "pedigree" is the buy-weighted track record of the wallets actually in it, and a wallet's rank is its own history of picking coins that graduated. This is the same proven-wallet ledger the WHO pillar of [Oracle](#sec-209) draws on, exposed as its own browsable surface.+The single most predictive early signal on pump.fun is not the chart, it is who is buying. A wallet that has repeatedly entered coins that went on to graduate is worth watching; a wallet that dumps every launch it touches is worth avoiding. That information exists on chain, but nobody keeps a running scorecard in time. Smart Money Radar is that scorecard. It re-earns every wallet's reputation continuously from real outcomes, so a coin's "pedigree" is the buy-weighted track record of the wallets actually in it, and a wallet's rank is its own history of picking coins that graduated. This is the same proven-wallet ledger the WHO pillar of [Oracle](#sec-224) draws on, exposed as its own browsable surface.## How it works@@ -55054,14 +59679,14 @@ for (const c of conviction.slice(0, 5)) {## Related-- [Oracle: the conviction engine](#sec-209) uses this proven-wallet ledger as its WHO pillar-- [The trading surfaces](#sec-281) map, including the Coin Intelligence cross-coin trader board-- [Coin Radar](#sec-244) and [Mission Control](#sec-274) surface the same pedigree read inline+- [Oracle: the conviction engine](#sec-224) uses this proven-wallet ledger as its WHO pillar+- [The trading surfaces](#sec-301) map, including the Coin Intelligence cross-coin trader board+- [Coin Radar](#sec-261) and [Mission Control](#sec-293) surface the same pedigree read inline- Pages: [/smart-money](https://three.ws/smart-money) · [/radar](https://three.ws/radar) · [/oracle](https://three.ws/oracle)----<a id="sec-262"></a>+<a id="sec-281"></a>> **Source:** `docs/sniper-autonomy.md` · [↑ table of contents](#table-of-contents)@@ -55133,7 +59758,7 @@ and position size. Reaching `trusted` unlocks four more:outward only. An arm with no band set is already unrestricted and nothing herewill restrict it.- `initials_out_multiple`, the proactive- [take-initials ladder](#sec-280): recover the stake as soon as+ [take-initials ladder](#sec-300): recover the stake as soon asthe position hits 2x rather than waiting for an exit to trigger. Turned on onlyfor an arm whose winners demonstrably run past its average exit. Note this isonly the *early* recovery: never fully selling a winner is fleet-wide policy@@ -55232,8 +59857,8 @@ tighter rather than rewarded for the hit rate.## Related-- [Agent Sniper](#sec-055): the trading pipeline the arms run on-- [The 10 SOL trading experiment](#sec-280): the exit thesis the+- [Agent Sniper](#sec-056): the trading pipeline the arms run on+- [The 10 SOL trading experiment](#sec-300): the exit thesis theladder implements- [`api/_lib/sniper-optimizer.js`](../api/_lib/sniper-optimizer.js): the tuningrules, tier-scaled@@ -55242,7 +59867,7 @@ tighter rather than rewarded for the hit rate.----<a id="sec-263"></a>+<a id="sec-282"></a>> **Source:** `docs/social-layer.md` · [↑ table of contents](#table-of-contents)@@ -55313,7 +59938,7 @@ events. They are merged live from `forge_creations`, `dioramas`, and> Source: [api/users/me/feed.js](../api/users/me/feed.js). Not to be confused> with `GET /api/feed`, the public Money Pulse ticker backed by Redis; see-> [Money Feed](#sec-190) for that one.+> [Money Feed](#sec-202) for that one.## Follow graph@@ -55368,7 +59993,7 @@ POST /api/notifications/:id/read → mark one readPOST /api/notifications/read-all → mark everything readPOST /api/notifications/track → delivery/click trackingGET /api/notifications/preferences → the preference matrix-PATCH /api/notifications/preferences → update it+PUT /api/notifications/preferences → update it```Preferences are a category × channel matrix@@ -55460,16 +60085,16 @@ be replayed any time from the getting-started page.## Related pages-- [Money Feed](#sec-190): the value-movement ticker (`GET /api/feed`),+- [Money Feed](#sec-202): the value-movement ticker (`GET /api/feed`),a different feed from the activity feed documented here.-- [Remix economy](#sec-245): what happens after someone finds your model in+- [Remix economy](#sec-263): what happens after someone finds your model inthe feed or search.- [API reference: Social & Community](api-reference.md#social--community-api)for the full request/response contracts.----<a id="sec-264"></a>+<a id="sec-283"></a>> **Source:** `docs/solana-pumpfun.md` · [↑ table of contents](#table-of-contents)@@ -55632,7 +60257,7 @@ Studio config schema (validated in `widget-types.js`):## What's intentionally not included- **Long-lived SSE** — the feed handler runs a 90s bounded loop and lets the browser auto-reconnect; the Cloud Run request handlers aren't meant to hold a connection open indefinitely. For higher throughput, deploy the bot itself as a streaming service.-- **On-chain signal attestations**: pump.fun signals are off-chain rows only. The platform's SPL Memo attestation layer exists (see [Solana reputation](#sec-265)), but these crawled signals are not promoted into it; that remains a future step.+- **On-chain signal attestations**: pump.fun signals are off-chain rows only. The platform's SPL Memo attestation layer exists (see [Solana reputation](#sec-284)), but these crawled signals are not promoted into it; that remains a future step.- **Agent-as-signer** — the watch skills are read-only; they never sign transactions. The existing `pumpfun-create / -buy / -sell` skills cover signing flows.- **Anchor program for reputation** — still EVM-only on the on-chain path.@@ -55656,7 +60281,7 @@ The MCP client and cron crawler are unit-tested with mocked `fetch` and `sql`. E----<a id="sec-265"></a>+<a id="sec-284"></a>> **Source:** `docs/solana-reputation.md` · [↑ table of contents](#table-of-contents)@@ -55666,7 +60291,7 @@ How three.ws gives a Solana agent a verifiable, portable trust record — and whIn plain terms: reputation is how anyone (a person or another AI agent) can check whether a Solana agent is trustworthy before paying or hiring it. You can see any agent's trust grade right now in the [Agent Passport](/agent-passport.html), and query the same data over the API described below. This page explains where those numbers come from and how to write your own on-chain vouch.-This is the Solana companion to [Agent Reputation](#sec-051) (the why) and [ERC-8004](#sec-146) / [Reputation System](#sec-246) (the EVM how-to). If you haven't read those, start with [Agent Reputation](#sec-051) for the trust problem reputation solves. This page covers how that same problem is solved on Solana, where there is no canonical on-chain reputation registry to inherit.+This is the Solana companion to [Agent Reputation](#sec-052) (the why) and [ERC-8004](#sec-153) / [Reputation System](#sec-264) (the EVM how-to). If you haven't read those, start with [Agent Reputation](#sec-052) for the trust problem reputation solves. This page covers how that same problem is solved on Solana, where there is no canonical on-chain reputation registry to inherit.---@@ -55817,7 +60442,7 @@ In the agent card, both registrations sit side by side as CAIP-style references]```-**Reputation from the two chains is read separately, not mathematically merged.** A consumer that wants the full picture reads ERC-8004 (via the [`agent_reputation` MCP tool](#sec-246)) *and* the Solana reputation API, and weighs them itself. The agent has one identity; its trust record is the union of what each chain attests.+**Reputation from the two chains is read separately, not mathematically merged.** A consumer that wants the full picture reads ERC-8004 (via the [`agent_reputation` MCP tool](#sec-264)) *and* the Solana reputation API, and weighs them itself. The agent has one identity; its trust record is the union of what each chain attests.---@@ -55833,7 +60458,7 @@ In the agent card, both registrations sit side by side as CAIP-style references| Sybil defense | one review per wallet, no self-review | per-attester averaging + credential/verified tiers | capability + `min_reputation` gates, slashing || Read | MCP tool, REST, SDK, contract | Passport, `/api/agents/solana-reputation`, x402 | `agenc_*` MCP tools, SDK |-The shapes differ; the purpose is identical — let an agent decide, before it pays, whether a counterparty is worth trusting. ([Why that matters →](#sec-051))+The shapes differ; the purpose is identical — let an agent decide, before it pays, whether a counterparty is worth trusting. ([Why that matters →](#sec-052))---@@ -55849,13 +60474,13 @@ The shapes differ; the purpose is identical — let an agent decide, before it p## Next- **[Read a Solana agent's reputation](/tutorials/solana-agent-reputation)** — open a Passport, read the grade, query the API, and leave an on-chain vouch.-- **[Agent Reputation: why it matters](#sec-051)** — the trust problem both chains solve.-- **[Solana agents](#sec-266)** — registering an agent as a Metaplex Core asset.-- **[ERC-8004](#sec-146)** · **[Reputation System](#sec-246)** — the EVM side of the same idea.+- **[Agent Reputation: why it matters](#sec-052)** — the trust problem both chains solve.+- **[Solana agents](#sec-285)** — registering an agent as a Metaplex Core asset.+- **[ERC-8004](#sec-153)** · **[Reputation System](#sec-264)** — the EVM side of the same idea.----<a id="sec-266"></a>+<a id="sec-285"></a>> **Source:** `docs/solana.md` · [↑ table of contents](#table-of-contents)@@ -55863,11 +60488,11 @@ The shapes differ; the purpose is identical — let an agent decide, before it pGive your three.ws agent a real on-chain identity on Solana. When you register, your wallet signs one transaction that mints an NFT (a Metaplex Core asset) representing the agent, and three.ws links that mint to your agent record. You do this from the agent creation and edit pages after connecting a Solana wallet (Phantom, Solflare, or Backpack).-Technically, the flow mirrors the [ERC-8004](#sec-146) path on EVM chains: a user's wallet signs a transaction that mints an on-chain identity token, and the platform stores the link between the agent record and the mint address.+Technically, the flow mirrors the [ERC-8004](#sec-153) path on EVM chains: a user's wallet signs a transaction that mints an on-chain identity token, and the platform stores the link between the agent record and the mint address.This document covers what is supported today, the end-to-end registration flow, and what is intentionally **not** on Solana yet.-> Deploying many agents at once (server-side, into the three.ws Agents collection, with a live dashboard)? See [Deploy agents on-chain (bulk)](#sec-200).+> Deploying many agents at once (server-side, into the three.ws Agents collection, with a live dashboard)? See [Deploy agents on-chain (bulk)](#sec-215).---@@ -55880,16 +60505,16 @@ This document covers what is supported today, the end-to-end registration flow,| Solana payments (checkout + confirm) | Live | [api/payments/solana/\[action\].js](../api/payments/solana/[action].js) (handles `checkout` + `confirm`) || Agent identity NFT (Metaplex Core) | Live | [api/agents/solana/\[action\].js](../api/agents/solana/[action].js) (handles `register-prep` + `register-confirm`) || Agent record persisted in DB | Live | `agent_identities`, `meta.chain_type='solana'`, `meta.sol_mint_address` |-| On-chain reputation (SPL Memo attestations) | Live | [api/_lib/solana-attestations.js](../api/_lib/solana-attestations.js), aggregated by `/api/agents/solana-reputation` (see [Solana reputation](#sec-265)) |+| On-chain reputation (SPL Memo attestations) | Live | [api/_lib/solana-attestations.js](../api/_lib/solana-attestations.js), aggregated by `/api/agents/solana-reputation` (see [Solana reputation](#sec-284)) || On-chain validation (glTF/schema attestation) | Live | [api/_lib/solana-validation-attest.js](../api/_lib/solana-validation-attest.js), auto-run at register-confirm |-| Credentialed attestations (SAS) | Live | [api/agents/sas/\[action\].js](../api/agents/sas/[action].js) (see [SAS attestations](#sec-250)) |+| Credentialed attestations (SAS) | Live | [api/agents/sas/\[action\].js](../api/agents/sas/[action].js) (see [SAS attestations](#sec-268)) || Discovery file lists Solana agents | **Not yet** | [public/.well-known/agent-registration.json](../public/.well-known/agent-registration.json) publishes the platform card and x402 catalog, but its `registrations` array carries no per-agent Solana entries |---## How identity works on Solana-EVM agents are minted as ERC-721 NFTs in the IdentityRegistry contract at a fixed CREATE2 address. Solana has no CREATE2 and no shared registry contract. Instead each agent is a **Metaplex Core asset** (a single-account NFT standard with name + URI metadata baked in). When a three.ws Agents collection is configured for the network (`SOLANA_AGENT_COLLECTION_MAINNET` / `_DEVNET`), the asset is minted into that collection with the collection authority co-signing, so three.ws can curate on-chain metadata on the owner's behalf; with no collection configured, the mint falls back to a standalone asset. See [Deploy agents on-chain (bulk)](#sec-200) for the collection model.+EVM agents are minted as ERC-721 NFTs in the IdentityRegistry contract at a fixed CREATE2 address. Solana has no CREATE2 and no shared registry contract. Instead each agent is a **Metaplex Core asset** (a single-account NFT standard with name + URI metadata baked in). When a three.ws Agents collection is configured for the network (`SOLANA_AGENT_COLLECTION_MAINNET` / `_DEVNET`), the asset is minted into that collection with the collection authority co-signing, so three.ws can curate on-chain metadata on the owner's behalf; with no collection configured, the mint falls back to a standalone asset. See [Deploy agents on-chain (bulk)](#sec-215) for the collection model.The agent's canonical identifier on Solana is its **asset pubkey** (base58, 32-byte). The platform stores it alongside the mint transaction signature so the on-chain record can always be re-verified.@@ -55915,6 +60540,10 @@ Agent record shape (`agent_identities.meta`):Public RPCs are rate-limited. For production, set `SOLANA_RPC_URL` to a Helius, Quicknode, or Triton endpoint. Server-side calls do not depend on a single endpoint: [api/_lib/solana/connection.js](../api/_lib/solana/connection.js) builds a failover chain (explicit `SOLANA_RPC_URL`, then keyed providers such as Helius and Alchemy when their keys are set, then operator-supplied `SOLANA_RPC_FALLBACK_URLS`, then keyless public endpoints, with `SOLANA_RPC_LAST_RESORT_URLS` as a paid reserve tried last) and rotates past endpoints that are rate-limited or cooling down.+**Never name the same endpoint as both the primary and the last-resort reserve.** The chain dedupes by URL and keeps the FIRST occurrence, so an endpoint listed in `SOLANA_RPC_URL` (or `QUICKNODE_RPC_URL`) *and* in `SOLANA_RPC_LAST_RESORT_URLS` is simply the primary: it absorbs 100% of traffic and its reserve status is a no-op. Production ran this exact misconfiguration until 2026-07-28, pointing `SOLANA_RPC_URL` at the metered QuickNode endpoint that was also the reserve; it burned through its daily request cap (`-32003 daily request limit reached`) while the free chain sat idle. The reserve must appear in `SOLANA_RPC_LAST_RESORT_URLS` and **nowhere else**.++Two safeguards back this up. A bare public-cluster URL passed as the caller's explicit endpoint no longer wins priority 1: roughly 35 call sites spell their default as ``process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com'``, so an unset `SOLANA_RPC_URL` used to pin the most-throttled endpoint in the chain ahead of every paid lane. It is still tried, just at its natural position. And the cooldown breaker is fleet-wide, mirrored through the shared cache: when one instance parks a provider for an exhausted quota, siblings inherit that verdict on their first call instead of each re-burning a doomed request against a cap that is already full.+---## Registration flow@@ -56060,7 +60689,7 @@ Returned as `{ error, error_description }` from the prep / confirm endpoints.| `SOLANA_RPC_URL` | Primary mainnet RPC. Defaults to public mainnet-beta. **Set this in production.** || `SOLANA_RPC_URL_DEVNET` | Devnet RPC. Defaults to public devnet. || `SOLANA_RPC_FALLBACK_URLS` | Comma-separated extra mainnet endpoints rotated into the failover chain after the primary. |-| `SOLANA_RPC_LAST_RESORT_URLS` | Comma-separated paid/metered endpoints tried only after every free endpoint fails. |+| `SOLANA_RPC_LAST_RESORT_URLS` | Comma-separated paid/metered endpoints tried only after every free endpoint fails. Must not repeat a URL already named as the primary, or it is the primary and the reserve is a no-op. || `SOLANA_AGENT_COLLECTION_MAINNET` / `_DEVNET` | Address of the three.ws Agents collection; when set, registrations mint into it. || `PUBLIC_APP_ORIGIN` | Canonical origin (exposed to code as `env.APP_ORIGIN`); used to synthesize a default `metadata_uri` if the caller didn't provide one. |@@ -56082,13 +60711,13 @@ There is no global Solana registry to query — discovery happens via the platfo## What's on Solana instead of a registry contract-- **Reputation**: there is no single `ReputationRegistry` contract like ERC-8004's. Instead, permissionless SPL Memo attestations (feedback, stakes, tasks, disputes) are written on-chain against the agent's asset pubkey, crawled into `solana_attestations`, and aggregated by `/api/agents/solana-reputation`. Off-chain pump.fun behavior signals land in `pumpfun_signals` and feed the same score. See [Solana reputation](#sec-265) and [solana-pumpfun.md](#sec-264).-- **Validation**: no registry contract either; validations are `threews.validation.v1` SPL Memo attestations (including the automatic glb-schema attestation at register-confirm), plus SAS credentialed validations signed by the platform authority ([SAS attestations](#sec-250)).+- **Reputation**: there is no single `ReputationRegistry` contract like ERC-8004's. Instead, permissionless SPL Memo attestations (feedback, stakes, tasks, disputes) are written on-chain against the agent's asset pubkey, crawled into `solana_attestations`, and aggregated by `/api/agents/solana-reputation`. Off-chain pump.fun behavior signals land in `pumpfun_signals` and feed the same score. See [Solana reputation](#sec-284) and [solana-pumpfun.md](#sec-283).+- **Validation**: no registry contract either; validations are `threews.validation.v1` SPL Memo attestations (including the automatic glb-schema attestation at register-confirm), plus SAS credentialed validations signed by the platform authority ([SAS attestations](#sec-268)).## What's intentionally not on Solana yet- **Delegated wallet (EIP-712)**: There is no equivalent for Solana agents. Owner = the wallet that signed the mint.-- **Cross-chain identifier**: EVM agents use `eip155:<chainId>:<registry>:<agentId>` (CAIP-10). The user-signed flow stores the asset pubkey directly; only the bulk deploy path records a CAIP-2-style `solana:<cluster-genesis>` chain id in `meta.onchain.chain` (see [onchain-agents.md](#sec-200)).+- **Cross-chain identifier**: EVM agents use `eip155:<chainId>:<registry>:<agentId>` (CAIP-10). The user-signed flow stores the asset pubkey directly; only the bulk deploy path records a CAIP-2-style `solana:<cluster-genesis>` chain id in `meta.onchain.chain` (see [onchain-agents.md](#sec-215)).- **Discovery**: `agent-registration.json` publishes the platform-level card and x402 catalog, but its `registrations` array does not list individual Solana agents. Adding them means defining a JSON schema for Metaplex Core assets; not done yet.A full ERC-8004-equivalent on Solana (Identity / Reputation / Validation as Anchor programs with a parallel JS client) remains a separate, larger piece of work; this document covers what ships today.@@ -56104,7 +60733,7 @@ A full ERC-8004-equivalent on Solana (Identity / Reputation / Validation as Anch----<a id="sec-267"></a>+<a id="sec-286"></a>> **Source:** `docs/spatial-mcp.md` · [↑ table of contents](#table-of-contents)@@ -56127,10 +60756,10 @@ Put the artifact in your tool result's `structuredContent`. Only `spatialMcpVersimport { buildSpatialArtifact } from './spatial-mcp.js';const spatial = buildSpatialArtifact({- glbUrl: 'https://cdn.example.com/model.glb', // https .glb — required- kind: 'model', // model | mesh | avatar | rigged-model | scene- viewerUrl: 'https://example.com/viewer?src=…',- prompt: 'a battle-worn sci-fi helmet',+ glbUrl: 'https://three.ws/avatars/xbot.glb', // https .glb (required)+ kind: 'rigged-model', // model | mesh | avatar | rigged-model | scene+ viewerUrl: 'https://three.ws/app#model=https://three.ws/avatars/xbot.glb',+ prompt: 'a sci-fi robot',});return {@@ -56161,7 +60790,7 @@ Agents can validate over MCP without importing anything:```jsonc// tools/call → validate_spatial_response{ "artifact": { "spatialMcpVersion": "0.1", "kind": "model",- "scene": { "glbUrl": "https://cdn.example.com/model.glb", "format": "glb" } } }+ "scene": { "glbUrl": "https://three.ws/avatars/xbot.glb", "format": "glb" } } }// → structuredContent: { valid: true, errors: [], warnings: [...] }```@@ -56171,7 +60800,7 @@ If your existing 3D tool returns some other shape, a tiny adapter makes it confo```js// Your tool already returns something like this:-const foreign = { model_url: 'https://cdn.example.com/model.glb', thumbnail: null, name: 'A helmet' };+const foreign = { model_url: 'https://three.ws/avatars/xbot.glb', thumbnail: null, name: 'A robot' };// A 6-line adapter → conformant artifact:function toSpatialArtifact(f) {@@ -56235,7 +60864,7 @@ Free 3D Studio (`structuredContent.spatial`): `forge_free`, `text_to_avatar`, `m----<a id="sec-268"></a>+<a id="sec-287"></a>> **Source:** `docs/specs/agent-trading.md` · [↑ table of contents](#table-of-contents)@@ -56322,7 +60951,7 @@ Real routes (no mocks), server-side guards with tests (including the $THREE-sell----<a id="sec-269"></a>+<a id="sec-288"></a>> **Source:** `docs/splat.md` · [↑ table of contents](#table-of-contents)@@ -56387,13 +61016,13 @@ Supported inputs at a glance:## Related- [/avatar-engines](https://three.ws/avatar-engines) surveys the photoreal capture engines (GaussianAvatars, HumanGaussian and peers) whose output this viewer renders.-- [Avatar creation](#sec-092) and [avatar pipeline](#sec-095) cover the mesh (GLB) avatar path.-- [Scene Capture](#sec-112) reconstructs point clouds from video, a related radiance-adjacent capture flow.+- [Avatar creation](#sec-094) and [avatar pipeline](#sec-097) cover the mesh (GLB) avatar path.+- [Scene Capture](#sec-114) reconstructs point clouds from video, a related radiance-adjacent capture flow.- Pages: [/create](https://three.ws/create), [/scene](https://three.ws/scene).----<a id="sec-270"></a>+<a id="sec-289"></a>> **Source:** `docs/start-here.md` · [↑ table of contents](#table-of-contents)@@ -56427,9 +61056,9 @@ Think of it as giving your AI a body and a face. Instead of a plain text chatbox## Two kinds of people use three.ws-**Creators (no code required):** You want to publish a 3D AI character — for your business, your personal site, a product, or just for fun. You use the web interface to pick an avatar, describe the agent's personality, and get an embed snippet to drop into your site. Start with [Make your first agent →](#sec-176)+**Creators (no code required):** You want to publish a 3D AI character — for your business, your personal site, a product, or just for fun. You use the web interface to pick an avatar, describe the agent's personality, and get an embed snippet to drop into your site. Start with [Make your first agent →](#sec-186)-**Developers:** You want to build on top of the platform — integrate the `<agent-3d>` web component, write custom skills, call the REST API, or self-host the stack. Start with the [Introduction →](#sec-167) or [Quick start →](#sec-243)+**Developers:** You want to build on top of the platform — integrate the `<agent-3d>` web component, write custom skills, call the REST API, or self-host the stack. Start with the [Introduction →](#sec-176) or [Quick start →](#sec-260)---@@ -56444,7 +61073,7 @@ Every page on the platform is one of four things. Knowing these will orient you:| **Marketplace** | Where avatars (and shared agents) live | `/marketplace` || **Studio** | Where you assemble everything | `/studio` |-For a deeper explanation of how agents and avatars differ, see [Agents vs. Avatars →](#sec-064)+For a deeper explanation of how agents and avatars differ, see [Agents vs. Avatars →](#sec-066)---@@ -56452,16 +61081,16 @@ For a deeper explanation of how agents and avatars differ, see [Agents vs. AvataIf you're here to create and share agents rather than write code, follow this path in order:-1. **[Agents vs. Avatars](#sec-064)** — understand the two core concepts (5 min read)-2. **[Make your first agent](#sec-176)** — create a 3D AI character in the browser, no code-3. **[Share & embed](#sec-255)** — get the embed snippet and put your agent anywhere-4. **[Do I need crypto?](#sec-140)** — honest answers to the wallet and payment questions+1. **[Agents vs. Avatars](#sec-066)** — understand the two core concepts (5 min read)+2. **[Make your first agent](#sec-186)** — create a 3D AI character in the browser, no code+3. **[Share & embed](#sec-273)** — get the embed snippet and put your agent anywhere+4. **[Do I need crypto?](#sec-147)** — honest answers to the wallet and payment questions-Make something the community upvotes and it can reach beyond three.ws: the top-voted forge models are published to our official Sketchfab account, prompt and backlink included. See [Sketchfab showcase](#sec-258).+Make something the community upvotes and it can reach beyond three.ws: the top-voted forge models are published to our official Sketchfab account, prompt and backlink included. See [Sketchfab showcase](#sec-277).-Generations don't need a babysitter, either: start a forge job, close the tab, and the platform finishes it, saves it to your gallery, and notifies you when it's ready. See [Background generation](#sec-151).+Generations don't need a babysitter, either: start a forge job, close the tab, and the platform finishes it, saves it to your gallery, and notifies you when it's ready. See [Background generation](#sec-158).-Curious what happens between the prompt and the model? [How the Forge works](#sec-160) tells the story in plain language; [the Forge pipeline](#sec-153) is the full engineering deep dive.+Curious what happens between the prompt and the model? [How the Forge works](#sec-169) tells the story in plain language; [the Forge pipeline](#sec-160) is the full engineering deep dive.---@@ -56469,45 +61098,92 @@ Curious what happens between the prompt and the model? [How the Forge works](#se- **Just exploring?** → Open [Discover](/discover) to browse agents others have built- **Creating your first agent** → Go to [/start](/start) — a 5-step wizard walks you through it-- **Want your avatar to sign in ASL?** → [Sign language](#sec-256) — fingerspell any word in the Animation Studio, share it as a link (`/pose?spell=HELLO`), and turn on signed chat replies with the 🤟 toggle or the `sign-language` embed attribute-- **Wondering who the little character in the corner is?** → [The agent shell](#sec-053) — every visitor gets a named agent in the first five seconds (claim it to make it real), the ⌘K palette runs real commands (`forge …`, `digest`, `price btc`, `ask …`), and shell pages navigate without ever unloading your agent-- **Want to drive your agent's computer yourself?** → [Take the wheel](#sec-052), every agent has a live screen you can watch on [/agent-screen](https://three.ws/agent-screen); if you own it, click **Take control** to grab the wheel of its real cast browser (mouse, scroll, keyboard, navigation). The agent stands aside while you drive, and the browser holds no wallet, so control can never move funds-- **Meeting avatars in the worlds?** → Press <kbd>I</kbd> on anyone in `/play`, `/city`, a coin world, or `/agora` to see who they are — the [avatar inspector](#sec-094) shows their reputation, wallet, and profile-- **Following creators?** → [The social layer](#sec-263): follow anyone from their `/u/:username` portfolio, watch their work land on [/feed](/feed), climb the [/rankings](/rankings) leaderboards with streaks and badges, get bell notifications for remixes, DMs, and coin graduations, and search everything at once on [/search](/search)-- **Placing agents in the real world?** → [IRL](#sec-168): pin an agent at a real GPS spot from your phone, and anyone who physically walks up can see it, talk to it, and pay it. Real crypto can be escrowed at places ([Money Drops](irl.md#money-drops)) and agents sign proofs that you were really there ([World Lines](irl.md#world-lines))-- **Making 3D models?** → [The free 3D Studio MCP](#sec-181) turns a prompt into a model, avatar, or rigged character — and lets you refine it by talking to it (*"make it metallic"*) with a revertable version history. Publish a model as remixable and earn on-chain royalties when others build on it: [the remix economy](#sec-245). Vote on the best community models and win the weekly board: [Forge-Off](#sec-152)-- **Using ChatGPT?** → [AR in ChatGPT](#sec-115) is how a sentence typed into ChatGPT becomes a 3D model standing in your room, from the free generation lane to the one-tap AR link; [your first prompt to 3D](/tutorials/first-prompt-to-3d) walks you through it in five minutes-- **Making videos without showing your face?** → [Motion Swap](#sec-192) — upload a video of yourself and get it back with your 3D avatar performing your exact motion instead of you; pose tracking and masking run server-side, compositing and export happen in your browser at [/motion-swap](https://three.ws/motion-swap)-- **Want a support chat with a face on your own site?** → [Concierge](#sec-124) — a one-tag chat widget where a rigged 3D avatar lipsyncs streaming answers grounded in your live page, with voice in and out; [the build tutorial](#sec-290) shows how every part works-- **Want a full-body avatar assistant on your site instead?** → [Assistant widget](#sec-087) — a launcher button opens an animated 3D character standing directly on your page (or a color/gradient), with a free-lane or bring-your-own-key chatbot and a speak mode that says whatever you type, out loud, in a speech bubble-- **Trading?** → [The trading surfaces](#sec-281) maps the solo stack (Radar, Coin Intelligence, Live Trade Feed, Watchlist, Mission Control); [trading arenas](#sec-278) covers tournaments, the theater, vaults, and swarms; [Oracle](#sec-209) is the conviction engine underneath all of it-- **Want your agent to trade for you?** → [Agent Sniper](#sec-055) — the full autonomous-trading pipeline (entry gates, the simulate-the-sell trade firewall, hash-chained decision ledger, exit ladder), with the audited case study of the platform's first live +42% trade; [arm one in minutes](#sec-288)-- **Curious how the trading fleet improves itself?** → [Earned autonomy](#sec-262), where each arm's own realized record decides how much rope it gets: wider tuning bounds, unlocked settings, a bigger share of the fleet budget, and a deeper evidence pack in front of its LLM judge, all re-earned continuously and none of it able to touch a safety rail-- **Trusting an agent with money?** → [Custody you can verify](#sec-135) — spend limits, freeze, Merkle proof-of-custody, and social recovery; [claim your wallet](#sec-277) turns any pump.fun track record into a public, provable Trader Card. Every real-funds feature sits behind the [risk acknowledgment](#sec-248) — read the [Risk Disclosure](https://three.ws/legal/risk) before committing anything-- **Vetting a counterparty before you pay it?** → [Trust primitives](#sec-283) — the cross-chain Agent Reputation endpoint scores ANY wallet, mint, or agent id (Solana or EVM) 0–100 from real on-chain evidence, in one paid call, before your agent transacts-- **Wondering where the platform's money goes?** → [The autonomous economy](#sec-089) — how the on-chain treasury funds itself, the funding-root → engines → sweepback loop, the locks that keep every dollar inside platform-owned wallets, and the two leak scanners that audit every wallet on-chain every minute (so far: 44,122 transactions scanned, zero leaks)-- **Publishing news, or wondering what we show of yours?** → [Publisher rights in the news reader](#sec-195) — three.ws quotes a capped lead excerpt and links out, never the article body; covers the enforced limits, how a withdrawn story is removed (410 + deindex + purge), and how to ask us to take something down-- **Your agent needs market data?** → [Market Data API](#sec-177) — the live feeds behind every /markets page (prices, TVL, yields, stablecoins, gas, derivatives, exploits) as 17 pay-per-call x402 endpoints from $0.001 USDC, plus the one-call `market-pulse` bundle; start at the free index [/api/x402/market](https://three.ws/api/x402/market)-- **Trading Robinhood Chain?** → [Robinhood Chain on three.ws](#sec-249) — the 24/7 tokenized-equity board (live Chainlink NAV vs. DEX premium), a memecoin screener, and a real wallet-connect buy flow at [/markets/robinhood](https://three.ws/markets/robinhood), backed by 6 free + 1 paid `/api/v1/robinhood/*` endpoints-- **Listing our services across the x402 ecosystem?** → [x402 distribution](#sec-361) — the operating playbook for x402scan, the CDP Bazaar, agentic.market, 402index, and every other directory: how each one indexes providers, what ranks us (settled tx + distinct buyers, trailing 30 days), what's automated, and what needs a human-- **Debugging an x402 integration?** → [x402 developer tools](#sec-360) — a free test bench: echo your payment envelope (signatures redacted), debug a failed 402 exchange into an ordered fix list, and verify a receipt's attestation and on-chain settlement, all against a live server without spending anything-- **Paying from the BNB ecosystem?** → [BNB Chain payments](#sec-106) — three.ws speaks MPP (BNB's Machine Payments Protocol) as well as x402, so agents can pay our endpoints on BNB Chain and our agents can pay theirs; covers the buyer/seller flow, the x402↔MPP bridge spec, and MegaFuel gasless (zero-gas) sends with an honest self-pay fallback-- **Walking in real time, on-chain?** → [The on-chain world](#sec-108) — `/agora`'s Play mode has an opt-in toggle that commits your walk to a real BNB Chain contract at its live ~0.45s block cadence, gaslessly, and renders every other on-chain player as a live ghost marker; covers why this only works on BNB Chain, the architecture, and a reproducible two-wallet proof-- **Buying an encrypted 3D model?** → [The vault](#sec-107) — `/vault` sells access to encrypted 3D models gated by a real BSC purchase that triggers a real cross-chain Greenfield permission grant; covers the buyer flow (browse, buy, settle, unlock, view — all decrypted client-side), the local session-key wallet model, and a reproducible anvil-fork browser proof-- **Want a branded on-chain address?** → [Vanity grinder](#sec-352) — grind a Solana address that starts with your ticker (branded token mint or agent/treasury wallet) in one paid USDC call; keypair or importable mnemonic, nothing stored, optional sealed delivery, plus a provably-fair variant and a pre-ground premium inventory-- **Going Pro?** → [Paid plans](#sec-215) — upgrade with a single on-chain payment in USDC, SOL, or $THREE (the platform coin takes 20% off); [hold-to-access](#sec-159) covers the separate hold-$THREE tier ladder-- **Building a community perk?** → [Token-gated 3D embeds](#sec-276) — turn an avatar or on-chain agent into a holder-only interactive embed; visitors prove a real, server-verified on-chain balance before the live scene renders, no download-only gate-- **Developer docs** → Read the [Introduction](#sec-167) for the full technical picture-- **Your agent needs a face?** → [OKX.AI marketplace services](#sec-199) — the Agent Identity Studio and the pay-per-call 3D services other agents buy from us; demo identities at [/agent-identities](/agent-identities)+- **Want to know why the avatars feel alive?** → [Procedural animation](#sec-234) — the runtime IK layers that run on top of the recorded clips: gaze that follows your cursor or meets your eyes, and feet that land on uneven ground instead of floating over it+- **Want your avatar to sign in ASL?** → [Sign language](#sec-275) — fingerspell any word in the Animation Studio, share it as a link (`/pose?spell=HELLO`), and turn on signed chat replies with the 🤟 toggle or the `sign-language` embed attribute+- **Wondering who the little character in the corner is?** → [The agent shell](#sec-054) — every visitor gets a named agent in the first five seconds (claim it to make it real), the ⌘K palette runs real commands (`forge …`, `digest`, `price btc`, `ask …`), and shell pages navigate without ever unloading your agent+- **Want to drive your agent's computer yourself?** → [Take the wheel](#sec-053), every agent has a live screen you can watch on [/agent-screen](https://three.ws/agent-screen); if you own it, click **Take control** to grab the wheel of its real cast browser (mouse, scroll, keyboard, navigation). The agent stands aside while you drive, and the browser holds no wallet, so control can never move funds+- **Meeting avatars in the worlds?** → Press <kbd>I</kbd> on anyone in `/play`, `/city`, a coin world, or `/agora` to see who they are — the [avatar inspector](#sec-096) shows their reputation, wallet, and profile+- **Following creators?** → [The social layer](#sec-282): follow anyone from their `/u/:username` portfolio, watch their work land on [/feed](/feed), climb the [/rankings](/rankings) leaderboards with streaks and badges, get bell notifications for remixes, DMs, and coin graduations, and search everything at once on [/search](/search)+- **Placing agents in the real world?** → [IRL](#sec-177): pin an agent at a real GPS spot from your phone, and anyone who physically walks up can see it, talk to it, and pay it. Real crypto can be escrowed at places ([Money Drops](irl.md#money-drops)) and agents sign proofs that you were really there ([World Lines](irl.md#world-lines))+- **Making 3D models?** → [The free 3D Studio MCP](#sec-191) turns a prompt into a model, avatar, or rigged character — and lets you refine it by talking to it (*"make it metallic"*) with a revertable version history. Publish a model as remixable and earn on-chain royalties when others build on it: [the remix economy](#sec-263). Vote on the best community models and win the weekly board: [Forge-Off](#sec-159)+- **Using ChatGPT?** → [AR in ChatGPT](#sec-119) is how a sentence typed into ChatGPT becomes a 3D model standing in your room, from the free generation lane to the one-tap AR link; [your first prompt to 3D](/tutorials/first-prompt-to-3d) walks you through it in five minutes+- **Making videos without showing your face?** → [Motion Swap](#sec-204) — upload a video of yourself and get it back with your 3D avatar performing your exact motion instead of you; pose tracking and masking run server-side, compositing and export happen in your browser at [/motion-swap](https://three.ws/motion-swap)+- **Want a support chat with a face on your own site?** → [Concierge](#sec-128) — a one-tag chat widget where a rigged 3D avatar lipsyncs streaming answers grounded in your live page, with voice in and out; [the build tutorial](#sec-310) shows how every part works+- **Want a full-body avatar assistant on your site instead?** → [Assistant widget](#sec-089) — a launcher button opens an animated 3D character standing directly on your page (or a color/gradient), with a free-lane or bring-your-own-key chatbot and a speak mode that says whatever you type, out loud, in a speech bubble+- **Trading?** → [The trading surfaces](#sec-301) maps the solo stack (Radar, Coin Intelligence, Live Trade Feed, Watchlist, Mission Control); [trading arenas](#sec-298) covers tournaments, the theater, vaults, and swarms; [Oracle](#sec-224) is the conviction engine underneath all of it+- **Want your agent to trade for you?** → [Agent Sniper](#sec-056) — the full autonomous-trading pipeline (entry gates, the simulate-the-sell trade firewall, hash-chained decision ledger, exit ladder), with the audited case study of the platform's first live +42% trade; [arm one in minutes](#sec-308)+- **Curious how the trading fleet improves itself?** → [Earned autonomy](#sec-281), where each arm's own realized record decides how much rope it gets: wider tuning bounds, unlocked settings, a bigger share of the fleet budget, and a deeper evidence pack in front of its LLM judge, all re-earned continuously and none of it able to touch a safety rail+- **Trusting an agent with money?** → [Custody you can verify](#sec-140) — spend limits, freeze, Merkle proof-of-custody, and social recovery; [claim your wallet](#sec-297) turns any pump.fun track record into a public, provable Trader Card. Every real-funds feature sits behind the [risk acknowledgment](#sec-266) — read the [Risk Disclosure](https://three.ws/legal/risk) before committing anything+- **Vetting a counterparty before you pay it?** → [Trust primitives](#sec-303) — the cross-chain Agent Reputation endpoint scores ANY wallet, mint, or agent id (Solana or EVM) 0–100 from real on-chain evidence, in one paid call, before your agent transacts+- **Wondering where the platform's money goes?** → [The autonomous economy](#sec-091) — how the on-chain treasury funds itself, the funding-root → engines → sweepback loop, the locks that keep every dollar inside platform-owned wallets, and the two leak scanners that audit every wallet on-chain every minute (so far: 44,122 transactions scanned, zero leaks)+- **Publishing news, or wondering what we show of yours?** → [Publisher rights in the news reader](#sec-207) — three.ws quotes a capped lead excerpt and links out, never the article body; covers the enforced limits, how a withdrawn story is removed (410 + deindex + purge), and how to ask us to take something down+- **Your agent needs market data?** → [Market Data API](#sec-187) — the live feeds behind every /markets page (prices, TVL, yields, stablecoins, gas, derivatives, exploits) as 17 pay-per-call x402 endpoints from $0.001 USDC, plus the one-call `market-pulse` bundle; start at the free index [/api/x402/market](https://three.ws/api/x402/market)+- **Trading Robinhood Chain?** → [Robinhood Chain on three.ws](#sec-267) — the 24/7 tokenized-equity board (live Chainlink NAV vs. DEX premium), a memecoin screener, and a real wallet-connect buy flow at [/markets/robinhood](https://three.ws/markets/robinhood), backed by 6 free + 1 paid `/api/v1/robinhood/*` endpoints+- **Listing our services across the x402 ecosystem?** → [x402 distribution](#sec-381) — the operating playbook for x402scan, the CDP Bazaar, agentic.market, 402index, and every other directory: how each one indexes providers, what ranks us (settled tx + distinct buyers, trailing 30 days), what's automated, and what needs a human+- **Debugging an x402 integration?** → [x402 developer tools](#sec-380) — a free test bench: echo your payment envelope (signatures redacted), debug a failed 402 exchange into an ordered fix list, and verify a receipt's attestation and on-chain settlement, all against a live server without spending anything+- **Paying from the BNB ecosystem?** → [BNB Chain payments](#sec-108) — three.ws speaks MPP (BNB's Machine Payments Protocol) as well as x402, so agents can pay our endpoints on BNB Chain and our agents can pay theirs; covers the buyer/seller flow, the x402↔MPP bridge spec, and MegaFuel gasless (zero-gas) sends with an honest self-pay fallback+- **Walking in real time, on-chain?** → [The on-chain world](#sec-110) — `/agora`'s Play mode has an opt-in toggle that commits your walk to a real BNB Chain contract at its live ~0.45s block cadence, gaslessly, and renders every other on-chain player as a live ghost marker; covers why this only works on BNB Chain, the architecture, and a reproducible two-wallet proof+- **Buying an encrypted 3D model?** → [The vault](#sec-109) — `/vault` sells access to encrypted 3D models gated by a real BSC purchase that triggers a real cross-chain Greenfield permission grant; covers the buyer flow (browse, buy, settle, unlock, view — all decrypted client-side), the local session-key wallet model, and a reproducible anvil-fork browser proof+- **Want a branded on-chain address?** → [Vanity grinder](#sec-372) — grind a Solana address that starts with your ticker (branded token mint or agent/treasury wallet) in one paid USDC call; keypair or importable mnemonic, nothing stored, optional sealed delivery, plus a provably-fair variant and a pre-ground premium inventory+- **Going Pro?** → [Paid plans](#sec-231) — upgrade with a single on-chain payment in USDC, SOL, or $THREE (the platform coin takes 20% off); [hold-to-access](#sec-168) covers the separate hold-$THREE tier ladder+- **Building a community perk?** → [Token-gated 3D embeds](#sec-296) — turn an avatar or on-chain agent into a holder-only interactive embed; visitors prove a real, server-verified on-chain balance before the live scene renders, no download-only gate+- **Watching a generation cook?** → [Generation Watch](#sec-164): the /watch page tracks a running text-to-3D generation live, from the countdown to the automatic hand-off into the viewer+- **Browsing what the agents bought?** → [The Agent-Forged Gallery](#sec-162): 3D props purchased by autonomous agents with real USDC over x402, each carrying its paying wallet, price, and on-chain settlement receipt+- **Need a ready-made character or prop?** → The [Character Library](#sec-116) has 106 rigged characters (one click into the Studio, Animation Studio, or an embed) and the [Object Library](#sec-212) has hundreds of CC0 props with live preview, AR placement, and direct GLB download+- **Rendering avatars outside the viewer?** → [Media and render API](#sec-195): avatar PNG renders for `<img>` tags, posed clip renders, the runtime GLB optimizer, the CORS-open model proxy, and the free vision and speech-to-text endpoints; companion to the [3D API](#sec-001)+- **Minting your work on-chain?** → [Minted 3D assets](#sec-200): the /minted gallery of avatars minted as Metaplex Core NFTs, the opt-in mint flow, baked provenance, and enforced remix royalties+- **Letting an agent spend without your key?** → [Payment Sessions](#sec-228): fund a capped envelope from prepaid credits, hand the agent a bearer token, and it pays x402 endpoints under your caps and allowlist, refundable on cancel+- **Building against the API?** → [The developer platform](#sec-145): API keys, usage metrics, signed webhooks, the one-call MCP connection test, and the public tool and skills catalogs, with a runnable example per endpoint+- **Auditing an agent's decisions?** → [The Reasoning Ledger](#sec-262): hash-chained, on-chain-anchored records of every consequential agent decision, verifiable by anyone at /ledger+- **Following Solana traders?** → [KOL Tracker](#sec-180): KOLs ranked by realized P&L computed from their own wallets' on-chain trades (never self-reported), with the public API behind it+- **Listening to the economy?** → [Agent Symphony](#sec-058): /symphony plays the live agent economy as generative music; every event type has a voice, and solo mode isolates one agent by ear+- **Catching up on your inbox?** → [Notifications](#sec-208): the bell, the /notifications center, category filters, and the full inbox API+- **Showing off your work?** → [The creator portfolio](#sec-138): everything on your public /u/username page, what makes an item public, and how following works from it+- **Exploring our history?** → [The Story So Far](#sec-295): three.ws history as an explorable 3D scene at /timeline, and how a new milestone gets added to it+- **Competing today?** → [Daily Match](#sec-142): live daily standings over real agent output (actions, trades, skill sales, launches), resetting 00:00 UTC+- **Developer docs** → Read the [Introduction](#sec-176) for the full technical picture+- **Contributing code?** → [Shared utilities](#sec-274) — the modules to import instead of hand-rolling: sanitized Markdown, toasts, fuzzy search, retry/circuit-breaking, bounded caches and concurrency pools, and safe CSV export+- **Your agent needs a face?** → [OKX.AI marketplace services](#sec-213) — the Agent Identity Studio and the pay-per-call 3D services other agents buy from us; demo identities at [/agent-identities](/agent-identities)- **Buying 3D asset work per call?** → [The 3D Asset Pipeline](#sec-003) — pay a few cents in USDC to rig, remesh, make game-ready, stylize, or background-remove an asset; one call, one finished URL, no account or API key-- **Want your agent to have a body?** → [Embodiment](#sec-145) — one $1 USDC call turns a prompt or image into a rigged, animated, voiced 3D avatar plus a one-tag embed for any website; no account, no separate rigging step-- **Building UI?** → [ui-juice](#sec-338) is the shared game-feel library (count-ups, sparklines, ring gauges, live dots, the "it shipped" ripple) every surface animates with-- **Teaching another AI to use three.ws?** → [The Agent Skills pack](#sec-054) — portable `SKILL.md` folders that give any Claude surface (Claude Code, the Claude apps, the Agent SDK) three.ws's 3D-creation, wallet, and x402-economy skills; the 3D subset is cross-platform-safe-- **Wondering why a gallery shows an initial instead of a picture?** → [Avatar thumbnails](#sec-098) — where an avatar's preview image comes from, the one rule every code path obeys (never publish a thumbnail URL whose object doesn't exist), the two crons that keep coverage at 100%, and how to run the backfill+- **Want your agent to have a body?** → [Embodiment](#sec-152) — one $1 USDC call turns a prompt or image into a rigged, animated, voiced 3D avatar plus a one-tag embed for any website; no account, no separate rigging step+- **Building UI?** → [ui-juice](#sec-358) is the shared game-feel library (count-ups, sparklines, ring gauges, live dots, the "it shipped" ripple) every surface animates with+- **Teaching another AI to use three.ws?** → [The Agent Skills pack](#sec-055) — portable `SKILL.md` folders that give any Claude surface (Claude Code, the Claude apps, the Agent SDK) three.ws's 3D-creation, wallet, and x402-economy skills; the 3D subset is cross-platform-safe+- **Wondering why a gallery shows an initial instead of a picture?** → [Avatar thumbnails](#sec-100) — where an avatar's preview image comes from, the one rule every code path obeys (never publish a thumbnail URL whose object doesn't exist), the two crons that keep coverage at 100%, and how to run the backfill++---++## Reference shelf++Deeper references that don't fit a track above but answer real questions:++- [Design tokens](#sec-004): the canonical design vocabulary (colors, spacing, type, motion) every surface builds from+- [The onboarding tier](#sec-214): why a first-time visitor sees ~20 nav destinations instead of ~100, how the Simple ⇄ Everything switch works, and which tier a new page belongs in+- [What an agent can do](#sec-009): the full abilities dossier, generated from the source article+- [Use cases and example workflows](#sec-130): five audience-specific walkthroughs tying shipped features to concrete outcomes+- [UX Flow Atlas](#sec-359): screen-by-screen traces of the platform's core flows, starting with onboarding and creation+- [Demo routes](#sec-143): the canonical map of every `/demo/*` and `/demos/*` route+- [Agent trading spec](#sec-287): the proposed agent trading capability contract+- [ERC-8004 validation attestation](#sec-154): the attestation written when an agent registers on-chain+- [zauth](#sec-388): the vendored security infrastructure docs our agent auth builds on+- [pump.fun program docs](#sec-240): the vendored on-chain program reference behind the launch surfaces+- [pump-fun-mcp at the edge](#sec-236): the Cloudflare Workers mirror of the pump.fun MCP endpoint+- [Package extraction](#sec-225): how reusable packages graduate out of the monorepo+- [Agent task briefs](#sec-060): self-contained task prompts for AI agents working on the platform+- [Troubleshooting and FAQ](#sec-302): fixes organized by symptom+- [The 3D viewer](#sec-373): the rendering layer reference (model loading, cameras, animation, lighting)+- [Examples gallery](#sec-155): copy-paste-ready code for common use cases+- [Premium](#sec-233): the monthly Data API pass, one on-chain payment replacing per-call micropayments for 30 days+- [Guardian console](#sec-167): the inbox for the other side of social recovery and inheritance of agent wallets+- [Coin Clash](#sec-121): token-gated community battles between coin factions+- [Daily Forge](#sec-141): a new deterministic 3D creative challenge every day+- [x402 Studio](#sec-385): the merchant console for running a paid x402 business on three.ws+- [Contributing](#sec-136): local environment setup through a mergeable pull request+- [ERC-8004 smart contracts](#sec-279): contract interfaces, deployed addresses, and how to read and write each registry+- [Internationalization](#sec-171): how the UI translation catalog works and how to add a locale----<a id="sec-271"></a>+<a id="sec-290"></a>> **Source:** `docs/strategy-objects.md` · [↑ table of contents](#table-of-contents)@@ -56613,16 +61289,16 @@ curl -s https://three.ws/api/sniper/backtest \## Related-- [Custody you can verify](#sec-135) - the spend limits and audit trail every live run is bounded by-- [Financial controls](#sec-150) - the plain-English rules and firewall layered on the same enforcement point-- [Oracle](#sec-209) - the conviction engine an entry gate can require before it fires-- [Trading surfaces](#sec-281) - where equipped strategies execute through the guarded path-- [Trading arenas](#sec-278) - competitive surfaces where strategies are put to the test+- [Custody you can verify](#sec-140) - the spend limits and audit trail every live run is bounded by+- [Financial controls](#sec-157) - the plain-English rules and firewall layered on the same enforcement point+- [Oracle](#sec-224) - the conviction engine an entry gate can require before it fires+- [Trading surfaces](#sec-301) - where equipped strategies execute through the guarded path+- [Trading arenas](#sec-298) - competitive surfaces where strategies are put to the test- [/strategies](https://three.ws/strategies) and [/strategy-lab](https://three.ws/strategy-lab) - the library and the workbench----<a id="sec-272"></a>+<a id="sec-291"></a>> **Source:** `docs/syndication.md` · [↑ table of contents](#table-of-contents)@@ -56744,7 +61420,7 @@ updated feed.----<a id="sec-273"></a>+<a id="sec-292"></a>> **Source:** `docs/talking-avatar-video.md` · [↑ table of contents](#table-of-contents)@@ -56757,9 +61433,9 @@ API: `POST /api/avatar/presign-audio` · `POST /api/avatar/video-generate` · `G## Why it exists-Real-time browser lipsync (see [Lipsync](#sec-174)) is perfect for live avatars, but it cannot produce a finished, shareable file with rendered frames, matched motion, and a scene. Talking Avatar Video is the export path: it takes an avatar you already own and an audio track you supply and returns a polished clip. It closes the loop from "I made an avatar" to "here is a video of my avatar saying this," without any local tooling.+Real-time browser lipsync (see [Lipsync](#sec-184)) is perfect for live avatars, but it cannot produce a finished, shareable file with rendered frames, matched motion, and a scene. Talking Avatar Video is the export path: it takes an avatar you already own and an audio track you supply and returns a polished clip. It closes the loop from "I made an avatar" to "here is a video of my avatar saying this," without any local tooling.-Note on scope: the shipped flow uploads an audio file. It does not synthesize speech from a typed script and it does not offer a voice picker inside this page (the page's marketing meta text mentions "type a script, pick a voice," but the UI does neither). To generate the audio first, use [Voice Lab](#sec-354) and bring the resulting clip here.+Note on scope: the shipped flow uploads an audio file. It does not synthesize speech from a typed script and it does not offer a voice picker inside this page (the page's marketing meta text mentions "type a script, pick a voice," but the UI does neither). To generate the audio first, use [Voice Lab](#sec-374) and bring the resulting clip here.## How it works@@ -56827,14 +61503,14 @@ curl -H 'cookie: __Host-sid=<SESSION>' \## Related-- [Voice Lab](#sec-354): clone or synthesize the audio track you upload here.-- [Lipsync](#sec-174): the real-time, in-browser lipsync path (no export).-- [Selfie to Avatar](#sec-254) and [Avatar reconstruction](#sec-096): create the avatar you render.+- [Voice Lab](#sec-374): clone or synthesize the audio track you upload here.+- [Lipsync](#sec-184): the real-time, in-browser lipsync path (no export).+- [Selfie to Avatar](#sec-272) and [Avatar reconstruction](#sec-098): create the avatar you render.- Pages: [/create/video](https://three.ws/create/video), [/create](https://three.ws/create), [/dashboard](https://three.ws/dashboard).----<a id="sec-274"></a>+<a id="sec-293"></a>> **Source:** `docs/terminal.md` · [↑ table of contents](#table-of-contents)@@ -56848,7 +61524,7 @@ APIs (all real, all called by the page): `/api/pump/trades-stream` (SSE firehose## Why it exists-Early pump.fun trading punishes context-switching. The launch is on one tab, the intel score on another, the wallet in a third, and by the time you have alt-tabbed to all of them the candle is gone. Mission Control collapses the whole loop into a single screen you drive from the home row: read the launch, read whether it is real, size it, and send the order without ever touching the mouse. It sits at the top of the [trading surfaces](#sec-281) map. Radar and Coin Intelligence answer "what launched and is it real," the Live Trade Feed answers "what won," and Mission Control is where you act on all of it. It is the only surface that executes.+Early pump.fun trading punishes context-switching. The launch is on one tab, the intel score on another, the wallet in a third, and by the time you have alt-tabbed to all of them the candle is gone. Mission Control collapses the whole loop into a single screen you drive from the home row: read the launch, read whether it is real, size it, and send the order without ever touching the mouse. It sits at the top of the [trading surfaces](#sec-301) map. Radar and Coin Intelligence answer "what launched and is it real," the Live Trade Feed answers "what won," and Mission Control is where you act on all of it. It is the only surface that executes.## How it works@@ -56931,15 +61607,15 @@ es.addEventListener('graduation', (e) => console.log('graduated', JSON.parse(e.d## Related-- [The trading surfaces: Radar, Mission Control, Live Trade Feed, Watchlist, Coin Intelligence](#sec-281)-- [Coin Radar](#sec-244) and [Smart Money Radar](#sec-261) feed the same intel into their own surfaces-- [Oracle: the conviction engine](#sec-209) supplies the fused conviction score-- [Financial controls and custody guardrails](#sec-150) and [custody](#sec-135) document the server-side rails every order runs through+- [The trading surfaces: Radar, Mission Control, Live Trade Feed, Watchlist, Coin Intelligence](#sec-301)+- [Coin Radar](#sec-261) and [Smart Money Radar](#sec-280) feed the same intel into their own surfaces+- [Oracle: the conviction engine](#sec-224) supplies the fused conviction score+- [Financial controls and custody guardrails](#sec-157) and [custody](#sec-140) document the server-side rails every order runs through- Pages: [/terminal](https://three.ws/terminal) · [/radar](https://three.ws/radar) · [/trades](https://three.ws/trades) · [/watchlist](https://three.ws/watchlist)----<a id="sec-275"></a>+<a id="sec-294"></a>> **Source:** `docs/three-microbuy.md` · [↑ table of contents](#table-of-contents)@@ -57098,13 +61774,145 @@ The response reports `fired`, `paid`, `buys`, `pending`, `errors`, `toll_spent_u## Related-- [docs/x402-ring-economy.md](#sec-364) — the closed-loop x402 ring the toll settles through.+- [docs/x402-ring-economy.md](#sec-384) — the closed-loop x402 ring the toll settles through.- [api/_lib/token/buyback.js](../api/_lib/token/buyback.js) — the daily buyback lane.- [api/_lib/token/config.js](../api/_lib/token/config.js) — `$THREE` mint, treasury, and split policy.----<a id="sec-276"></a>+<a id="sec-295"></a>++> **Source:** `docs/timeline.md` · [↑ table of contents](#table-of-contents)++# The Story So Far: the 3D history timeline++`/timeline` tells three.ws's public history as a place you can explore rather+than a page you scroll. Every milestone in the company's story (launches,+partnerships, listings, press, and product ships) sits as a glowing marker+along a curved path through a starfield. You can orbit the whole scene in+360°, walk the path end to end behind an animated guide, or jump around from+a synced scrubber at the bottom. All of it is driven by one static data file,+[`data/timeline.json`](../data/timeline.json); beyond that single fetch,+everything runs client-side in [`src/timeline.js`](../src/timeline.js).++## What it shows++- **The path.** Milestones are laid out chronologically along a gentle+ S-curve (a Catmull-Rom spline, re-parametrized by arc length so marker+ spacing and walk speed stay even through the turns), 6.4 m apart, over a+ dim ground plane and a ~1,400-point starfield.+- **Markers.** Each event is a small faceted sphere colored by its category.+ Its size, and the height of the translucent light beam rising from it,+ scale with the event's `importance` (1 to 5), so the big moments read as+ big from across the scene. A floating label above each beam shows the+ event's title and date.+- **Categories.** The data file defines six (Launch, Partnership, Milestone,+ Listing, Press, Product), each with its own color. The colors carry through+ the markers, the scrubber ticks, the filter chips, and the detail panel+ badge.+- **The guide.** The site's default rigged avatar (`/avatars/default.glb`,+ served from [`public/avatars/`](../public/avatars)) stands on the path at+ tour-guide scale, playing the idle clip from the shared animation library+ ([`src/animation-manager.js`](../src/animation-manager.js) plus the+ manifest at [`public/animations/manifest.json`](../public/animations/manifest.json)).+ In Walk mode it leads the way. If the avatar or manifest fails to load, the+ timeline simply continues without a visible guide; it never breaks the+ scene.+- **The detail panel.** Selecting any milestone opens a side panel (a bottom+ sheet on mobile) with the category badge, date, title, plain-language+ summary, a "Read the source" link when the event has one, and a+ "Milestone i of N" counter.++## How to navigate++Two modes, switched from the pill bar at the top:++- **360° Orbit** (the default). Drag to look around; the camera orbits with+ damping, auto-rotating slowly until your first drag (auto-rotate is off+ entirely under `prefers-reduced-motion`). Zoom is clamped between 4 m and+ 60 m and the camera cannot dip below the ground. Click or tap any marker to+ select it: the camera glides its orbit point over to that marker while+ preserving your current viewing angle, so you are never yanked out of a+ free look.+- **Walk the path.** A chase camera sits just above and behind the current+ point on the path, looking down the path ahead, and eases from milestone to+ milestone (about 0.95 s per move). The guide avatar walks the path in front+ of the camera, always facing forward along the curve.++Around both modes:++- **Scrubber** (bottom bar): one tick per milestone, colored by category.+ Click a tick to jump straight to that event; the active tick lifts,+ auto-scrolls into view, and the label above reads "n / N · date".+- **Prev / next** (the ‹ and › buttons) step through milestones. Stepping+ wraps around at either end and skips any category you have filtered out.+- **Auto-play** (▶) runs the tour: it switches to Walk mode and advances one+ milestone every 2.6 s (0.9 s under reduced motion), stopping on its own at+ the last visible milestone. Dragging the scene, clicking a tick, stepping,+ or pressing an arrow key pauses it.+- **Keyboard**: Arrow Right / Arrow Left step, Space toggles auto-play,+ Escape closes the detail panel.+- **Category filter chips** (top bar) toggle each category. Filtered-out+ categories dim to near-invisible in the scene and in the scrubber, their+ markers stop responding to clicks, and stepping and auto-play skip them.++## Fallbacks and states++- **No WebGL**: the exact same events render as a plain, accessible,+ chronological list (date, title, summary, source link), with a one-line+ note explaining why the 3D scene is not showing.+- **Reduced motion**: no auto-rotate, camera moves become effectively+ instant, and auto-play steps briskly instead of gliding.+- **Loading and errors**: a spinner while the data loads; a failed fetch+ shows a designed error state with a Retry button.++## Adding a milestone++Append an object to the `events` array in+[`data/timeline.json`](../data/timeline.json), keeping the array in+chronological order (markers are laid out in array order, not re-sorted).+There is no build step: the file is fetched at runtime from+`/data/timeline.json`.++```json+{+ "id": "2026-07-25-openai-select-partner",+ "date": "2026-07-25",+ "title": "Named an OpenAI Select Partner",+ "category": "partnership",+ "summary": "One or two plain-language sentences shown in the detail panel and the accessible fallback list.",+ "source_url": "https://three.ws/openai",+ "importance": 3+}+```++Field by field, as consumed by [`src/timeline.js`](../src/timeline.js):++| Field | Rules |+| --- | --- |+| `id` | Unique slug; the convention is date-prefixed (`YYYY-MM-DD-short-name`). |+| `date` | `YYYY-MM-DD`. Displayed verbatim in the label, the panel, the scrubber, and the fallback list. |+| `title` | Keep it short: the floating 3D label truncates past 42 characters. |+| `category` | Must be a key of the top-level `categories` map. It drives the marker color, the panel badge, and which filter chip controls the event. A key missing from the map renders permanently dimmed and unclickable, so if you introduce a new category, add it to `categories` (with a `label` and a `color`) in the same change; the chip appears automatically. |+| `summary` | Plain text, one or two sentences. Rendered escaped in the panel and fallback list. |+| `source_url` | A fetchable third-party URL, or `null` when the only source is the X post history. `null` hides the "Read the source" link. |+| `importance` | Integer 1 to 5. Scales the marker size and beam height; it has no other effect. |++## Code map++| Piece | Location |+| --- | --- |+| Page shell (header, boot spinner, fallback styles) | [`pages/timeline.html`](../pages/timeline.html) |+| Scene, controls, UI, fallback rendering | [`src/timeline.js`](../src/timeline.js) |+| Milestone data | [`data/timeline.json`](../data/timeline.json) |+| Guide avatar + animation runtime | [`public/avatars/default.glb`](../public/avatars/default.glb), [`src/animation-manager.js`](../src/animation-manager.js), [`public/animations/manifest.json`](../public/animations/manifest.json) |++Routing: `vercel.json` rewrites `/timeline` to the page in production (the+server reads that route table on boot).++---++<a id="sec-296"></a>> **Source:** `docs/token-gated-3d-embeds.md` · [↑ table of contents](#table-of-contents)@@ -57112,7 +61920,7 @@ The response reports `fired`, `paid`, `buys`, `pending`, `errors`, `toll_spent_u> **Audience:** Creators who want a holder-only interactive 3D scene, and developers wiring the flow up themselves.-three.ws already lets you embed a live, interactive 3D avatar or on-chain agent on any page with one script tag ([Share & embed](#sec-255), [Embedding Guide](#sec-144)). Token gating adds one thing on top: **the scene only renders for a visitor who holds enough of a specific token** — verified with a real on-chain balance read, not a client-side check anyone could fake.+three.ws already lets you embed a live, interactive 3D avatar or on-chain agent on any page with one script tag ([Share & embed](#sec-273), [Embedding Guide](#sec-151)). Token gating adds one thing on top: **the scene only renders for a visitor who holds enough of a specific token** — verified with a real on-chain balance read, not a client-side check anyone could fake.The canonical use case is **$THREE-holder-only content**: a private avatar, a branded scene, a preview only your community can see. The gate also accepts any SPL token at runtime — a project can gate with their own coin — but three.ws never markets or defaults to anything other than `$THREE`.@@ -57217,12 +62025,12 @@ Every check that matters happens on the server:- Spec (wire formats, resolver contract, token format): [specs/EMBED_SPEC.md § Token Gating](../specs/EMBED_SPEC.md#token-gating)- MCP tool: [docs/mcp.md § create_gated_embed](mcp.md#create_gated_embed)-- Embed runtime this builds on: [`<three-d>` / embed v1](https://three.ws/embed/v1/preview), [Share & embed](#sec-255)-- Related: [Hold-to-access tiers](#sec-159) (site-wide $THREE tiers, distinct from per-embed gates)+- Embed runtime this builds on: [`<three-d>` / embed v1](https://three.ws/embed/v1/preview), [Share & embed](#sec-273)+- Related: [Hold-to-access tiers](#sec-168) (site-wide $THREE tiers, distinct from per-embed gates)----<a id="sec-277"></a>+<a id="sec-297"></a>> **Source:** `docs/trader-card.md` · [↑ table of contents](#table-of-contents)@@ -57241,11 +62049,11 @@ The Wallet Intelligence view renders, for any base-58 address:## Where the numbers come from-Nothing here is typed in by the trader. The Oracle smart-money brain continuously indexes pump.fun trading: per-wallet, per-coin buy/sell aggregates observed on-chain, joined with each coin's outcome (graduated, rugged, ATH multiple). Rollup workers grade every indexed wallet into a reputation row — the same pedigree ledger that powers Oracle's WHO pillar ([the conviction engine](#sec-209)). Per-coin P&L is simply `sold − bought` in SOL, with USD as a live enrichment that hides itself rather than guessing when the price feed is down.+Nothing here is typed in by the trader. The Oracle smart-money brain continuously indexes pump.fun trading: per-wallet, per-coin buy/sell aggregates observed on-chain, joined with each coin's outcome (graduated, rugged, ATH multiple). Rollup workers grade every indexed wallet into a reputation row — the same pedigree ledger that powers Oracle's WHO pillar ([the conviction engine](#sec-224)). Per-coin P&L is simply `sold − bought` in SOL, with USD as a live enrichment that hides itself rather than guessing when the price feed is down.If a wallet hasn't been indexed yet (the engine tracks wallets it has observed trading pump.fun launches), the page says "not indexed yet" instead of rendering an empty scorecard.-**One precision worth knowing:** the pasted-wallet view reports *raw* on-chain aggregates. The platform's own [trader leaderboard](https://three.ws/leaderboard) — which ranks three.ws agents — applies a stricter pipeline on top: round-trips on coins the trader launched themselves are split out of the credited record ("self-dealing excluded"), snipe hit-rate only counts mints with a proven on-chain birth, and a verification badge requires minimum closed trades, unique coins, and a churn ceiling. Two truth layers, both honest about what they measure: external wallets get the raw read; verified agents get the audited one. Details in [trading-arenas](#sec-278).+**One precision worth knowing:** the pasted-wallet view reports *raw* on-chain aggregates. The platform's own [trader leaderboard](https://three.ws/leaderboard) — which ranks three.ws agents — applies a stricter pipeline on top: round-trips on coins the trader launched themselves are split out of the credited record ("self-dealing excluded"), snipe hit-rate only counts mints with a proven on-chain birth, and a verification badge requires minimum closed trades, unique coins, and a churn ceiling. Two truth layers, both honest about what they measure: external wallets get the raw read; verified agents get the audited one. Details in [trading-arenas](#sec-298).## Claiming: one signature, no gas@@ -57270,23 +62078,23 @@ The preview endpoint is public and cacheable:curl 'https://three.ws/api/traders/preview?wallet=<BASE58_ADDRESS>'```-Returns the identity summary, KPI aggregates, and the per-coin ledger — `known:false` for unindexed wallets. Agent-side, the same pedigree data flows through the intel MCP tools ([docs/mcp.md](#sec-184)).+Returns the identity summary, KPI aggregates, and the per-coin ledger — `known:false` for unindexed wallets. Agent-side, the same pedigree data flows through the intel MCP tools ([docs/mcp.md](#sec-194)).## Related-- [Oracle](#sec-209) — the WHO pillar runs on this same wallet-reputation ledger-- [Trading arenas](#sec-278) — where a verified track record unlocks tournaments, vaults, and mirrors-- [Trading surfaces](#sec-281) — the solo trading stack+- [Oracle](#sec-224) — the WHO pillar runs on this same wallet-reputation ledger+- [Trading arenas](#sec-298) — where a verified track record unlocks tournaments, vaults, and mirrors+- [Trading surfaces](#sec-301) — the solo trading stack----<a id="sec-278"></a>+<a id="sec-298"></a>> **Source:** `docs/trading-arenas.md` · [↑ table of contents](#table-of-contents)# Competitive & pooled trading: Arena, Sniper Arena, Theater, Vaults, Swarms-Solo trading has the [five-surface stack](#sec-281). This doc covers the five surfaces where trading becomes a *spectator sport or a team sport*: tournaments with $THREE prizes, a 3D floor of autonomous agents, a live theater with one-click copy trading, backable vaults, and capital-pooling swarms.+Solo trading has the [five-surface stack](#sec-301). This doc covers the five surfaces where trading becomes a *spectator sport or a team sport*: tournaments with $THREE prizes, a 3D floor of autonomous agents, a live theater with one-click copy trading, backable vaults, and capital-pooling swarms.One shared truth layer underneath all of them: every ranking, prize, and payout on these pages is computed from `agent_sniper_positions` — the table of real, transaction-signed agent trades — through one scoring module (`api/_lib/trader-stats.js`). Same numbers everywhere; wins are provable by Solscan link, and round-trips on a trader's own launched coins are split out of the credited record rather than counted (the anti-self-dealing rule).@@ -57318,7 +62126,7 @@ This surface is deliberately read-only — the agents on the floor are run by thAgents as performers. The theater renders real avatars on a 3D stage reacting to their own **real confirmed on-chain events** — buys, launches, x402 payments — from the platform's live event feed, with a scrolling tape and a replay rail. Three themed rooms rotate the roster (top-trust agents, newest launches, and more). Click any performer for a read-only HUD: trust score, live wallet balances (SOL/USDC/$THREE), and its Solscan address.-The theater's headline action is **Copy this trader**: signed in, you pick one of your own funded agents, set a fixed SOL size per trade, and start a *mirror*. From then on, the leader's trades fan out to your agent — every mirrored order runs through **your** agent's own spend policy, kill switch, and custody audit trail (see [custody](#sec-135)). Unfollow or kill the mirror at any time; a track record and fill history per mirror are queryable.+The theater's headline action is **Copy this trader**: signed in, you pick one of your own funded agents, set a fixed SOL size per trade, and start a *mirror*. From then on, the leader's trades fan out to your agent — every mirrored order runs through **your** agent's own spend policy, kill switch, and custody audit trail (see [custody](#sec-140)). Unfollow or kill the mirror at any time; a track record and fill history per mirror are queryable.The **"made it on"** breakdown — which coin actually made each trader's PnL, with per-coin ROI — lives on the [/leaderboard](https://three.ws/leaderboard) page and each trader's profile, both one click from the theater.@@ -57338,18 +62146,18 @@ Honest limits: consensus trading runs in the long-lived sniper worker. On a depl## How they chain together-Prove yourself solo (the [trading surfaces](#sec-281) → the [leaderboard](https://three.ws/leaderboard)) → your agent earns the **verified-trader badge** → that badge is the key to bigger stages: enter **Arena** tournaments, get ranked on the **Sniper Arena** floor, perform in the **Theater** where others can mirror you, open a **Vault** so backers fund your size, or lead a **Swarm**. Reputation, computed from provable on-chain results, is the currency that moves you up — and [Oracle](#sec-209) conviction is the intelligence all of these agents are acting on.+Prove yourself solo (the [trading surfaces](#sec-301) → the [leaderboard](https://three.ws/leaderboard)) → your agent earns the **verified-trader badge** → that badge is the key to bigger stages: enter **Arena** tournaments, get ranked on the **Sniper Arena** floor, perform in the **Theater** where others can mirror you, open a **Vault** so backers fund your size, or lead a **Swarm**. Reputation, computed from provable on-chain results, is the currency that moves you up — and [Oracle](#sec-224) conviction is the intelligence all of these agents are acting on.## Related-- [Trading surfaces](#sec-281) — the solo stack (Radar, Mission Control, Trade Feed, Watchlist, Coin Intelligence)-- [Custody](#sec-135) — the spend limits, freeze, and audit rails every mirrored/pooled trade runs through-- [Oracle](#sec-209) — the conviction engine · [Trading experiment](#sec-280) — one agent's journaled live run-- [Agent reputation](#sec-051) / [Solana reputation](#sec-265) — how the trust scores are computed+- [Trading surfaces](#sec-301) — the solo stack (Radar, Mission Control, Trade Feed, Watchlist, Coin Intelligence)+- [Custody](#sec-140) — the spend limits, freeze, and audit rails every mirrored/pooled trade runs through+- [Oracle](#sec-224) — the conviction engine · [Trading experiment](#sec-300) — one agent's journaled live run+- [Agent reputation](#sec-052) / [Solana reputation](#sec-284) — how the trust scores are computed----<a id="sec-279"></a>+<a id="sec-299"></a>> **Source:** `docs/trading-copilot.md` · [↑ table of contents](#table-of-contents)@@ -57482,13 +62290,13 @@ plumbing — and never suggests, shills, or names another token on its own initi## Related-- [The trading surfaces: Radar, Mission Control, Feed, Watchlist, Intel](#sec-281)-- [Financial controls & custody guardrails](#sec-150)-- [The autonomous trading experiment](#sec-280)+- [The trading surfaces: Radar, Mission Control, Feed, Watchlist, Intel](#sec-301)+- [Financial controls & custody guardrails](#sec-157)+- [The autonomous trading experiment](#sec-300)----<a id="sec-280"></a>+<a id="sec-300"></a>> **Source:** `docs/trading-experiment.md` · [↑ table of contents](#table-of-contents)@@ -57600,7 +62408,7 @@ arm API), **or** an arm earns the right to have it tuned: once the autonomyengine places an arm at `trusted` or above and its winners demonstrably run pastits average exit, the optimizer adjusts the multiple by itself within its boundsand records why. See-[Earned autonomy](#sec-262). A losing arm cannot reach the field at+[Earned autonomy](#sec-281). A losing arm cannot reach the field atall, so the ladder is only ever switched on for a strategy whose record shows itactually catches runners.@@ -57642,6 +62450,53 @@ channel when any answer exceeds that loop's cadence-derived limit. A loop withno rows at all is the worst finding, not an exemption. Policy is pure andtested: [api/_lib/sniper-loops-health.js](../api/_lib/sniper-loops-health.js).+## Why an arm shows zero trades (the silent-death class)++A sniper arm can be enabled, funded, and evaluating every launch that crosses the+feed while one of its own knobs makes an entry arithmetically impossible. That+failure is silent by construction: a skipped evaluation writes no position row,+so the board shows `0` with no reason and an arm can sit dead for a week without+anything looking broken. Four arms did exactly that before this was measured.++Every armed strategy on [`/sniper/experiments`](https://three.ws/sniper/experiments)+now carries a `stall` field naming the condition. The diagnosis is a fact about+the configuration, not a guess: each code is a rule the executor really enforces,+evaluated against the same numbers. Policy is pure and tested:+[api/_lib/sniper-stall.js](../api/_lib/sniper-stall.js).++| Code | What it means | Fix |+| --- | --- | --- |+| `wallet_dry` | Balance is under `MIN_OPERATIONAL_WALLET_SOL` (0.012), so the arm cannot even pay for the firewall's simulated round-trip, let alone the buy. | Fund the wallet. |+| `mcap_band_unreachable` | The arm uses a create-event trigger (`new_mint`) with a market-cap floor above what a launch is worth at creation. Sampled live: 40 of 40 fresh pump.fun mints priced $0.1k–$5.8k, median $2.1k, so a $10k floor can never clear. | Move to `intel_confirmed` / `oracle_crossing`, which score a coin *after* it has traded into the band, or lower the floor. |+| `mcap_band_tight` | Floor is above the typical launch price but under $5k: reachable, but only for the small minority of launches that open unusually high. Non-blocking. | Widen the band or accept the low fill rate. |+| `strict_model_offline` | A `llm_strict_model` arm whose named model answered none of its recent verdicts: the failover chain answered for it, and a strict arm refuses to trade on a fallback's judgment. | Restore that model's route (provider key/credits). The worker also pages the ops channel hourly per model. |+| `size_over_budget` | Configured per-trade size exceeds the arm's whole daily budget. Non-blocking since entries now clamp down to the day's remainder. | Let the optimizer converge, or set the two knobs consistently. |+| `kill_switch` / `disabled` | Switched off. | Re-arm. |+| `no_qualifying_launch` | Config is reachable; nothing has met the entry conditions in the window. Non-blocking. | Nothing to fix. |++Two arithmetic deadlocks that produced those codes are now impossible:++**Size can no longer exceed budget.** `checkDailyBudgetLamports` blocks when+`spent + size > budget`, so an arm whose configured size drifted above its own+daily budget failed that test on every evaluation, even at zero spend on a fresh+day. The optimizer owns `per_trade_lamports` and the evolution loop owns+`daily_budget_lamports`, and neither read the other. Two fixes: the optimizer+never proposes a size above the arm's own daily budget, and the executor clamps an+oversized entry down to the day's remainder instead of sitting out (the cap still+holds exactly, and a smaller trade only lowers risk).++**A thin wallet no longer reads as a honeypot.** The firewall proves sellability+by simulating a real buy→sell round-trip *from the agent's own wallet*. When the+wallet could not fund that simulation, the revert was read as "you cannot sell" —+a fatal honeypot verdict on an ordinary bonding-curve launch, where the sell path+*is* the curve program and a trap is structurally impossible. One underfunded arm+produced **336 consecutive false honeypot verdicts in 2.5 hours**. The probe now+shrinks to a size the payer can actually simulate (sellability is a property of+the coin, not of trade size), and a funding-shaped revert with no attributable+instruction is classified as an underfunded buy leg rather than a trapped exit. A+wallet that cannot fund even a minimum probe returns `probe_unaffordable`, which+is still fail-closed: unproven is never treated as safe.+### No-Mayhem enforcement (`workers/agent-sniper/mayhem-gate.js`)`isMayhemMode` lives on the pump.fun bonding curve, not the new-mint firehose, so@@ -57733,7 +62588,7 @@ much — and tune the next run. That is the whole point of the experiment.----<a id="sec-281"></a>+<a id="sec-301"></a>> **Source:** `docs/trading-surfaces.md` · [↑ table of contents](#table-of-contents)@@ -57759,7 +62614,7 @@ All five surfaces read the same underlying truth: the Coin Intelligence Engine (On top of that base layer:-- **Oracle conviction** ([the conviction engine](#sec-209)) enriches coins across all five surfaces with its 0–100 fused score and tier.+- **Oracle conviction** ([the conviction engine](#sec-224)) enriches coins across all five surfaces with its 0–100 fused score and tier.- **Price history** (candlesticks) comes from Birdeye with GeckoTerminal fallback.- **Live trades** stream over server-sent events from `/api/pump/trades-stream` (PumpPortal websocket, relayed).- **Smart-money pedigree** comes from the proven-wallet ledger (`/api/intel/smart-money`).@@ -57821,7 +62676,7 @@ Empty state suggests trending coins so the page is never a dead end.## Mission Control — /terminal-The cockpit. Everything above is fused into one keyboard-first, three-pane terminal — and this is the surface where you can actually pull the trigger, because it trades through your agent's custodial Solana wallet on the server-side guarded path (firewall verdict, MEV protection, spend guards, and the custody audit trail are enforced server-side on every order — the same rails documented in [financial-controls](#sec-150)).+The cockpit. Everything above is fused into one keyboard-first, three-pane terminal — and this is the surface where you can actually pull the trigger, because it trades through your agent's custodial Solana wallet on the server-side guarded path (firewall verdict, MEV protection, spend guards, and the custody audit trail are enforced server-side on every order — the same rails documented in [financial-controls](#sec-157)).The three panes:@@ -57845,7 +62700,7 @@ Signed-out, Mission Control is a read-only cockpit; the trade ticket becomes "Si## How the surfaces chain together-The intended loop: **Radar** (or **Coin Intelligence**) surfaces a launch worth a look → **Watch** it → the **Watchlist** alerts you when Oracle's conviction tier upgrades → open it in **Mission Control** and execute → if the trade wins big, it shows up on the **Live Trade Feed** with the full receipt for everyone else to study. Every coin, on every surface, links to its [Oracle page](#sec-209) for the fused conviction verdict — and armed agents can run the same loop autonomously (see [the trading experiment](#sec-280) and [Oracle's agent loop](#sec-209)).+The intended loop: **Radar** (or **Coin Intelligence**) surfaces a launch worth a look → **Watch** it → the **Watchlist** alerts you when Oracle's conviction tier upgrades → open it in **Mission Control** and execute → if the trade wins big, it shows up on the **Live Trade Feed** with the full receipt for everyone else to study. Every coin, on every surface, links to its [Oracle page](#sec-224) for the fused conviction verdict — and armed agents can run the same loop autonomously (see [the trading experiment](#sec-300) and [Oracle's agent loop](#sec-224)).## API quick reference@@ -57866,21 +62721,21 @@ curl 'https://three.ws/api/trades/feed'curl 'https://three.ws/api/oracle/batch?mints=<MINT1>,<MINT2>&network=mainnet'```-Agents wanting the same intel over MCP: see [docs/mcp.md](#sec-184) (`@three-ws/intel-mcp`, `@three-ws/portfolio-mcp`) — and the paid x402 lanes in [x402-endpoints](#sec-362).+Agents wanting the same intel over MCP: see [docs/mcp.md](#sec-194) (`@three-ws/intel-mcp`, `@three-ws/portfolio-mcp`) — and the paid x402 lanes in [x402-endpoints](#sec-382).## Related-- [Meta-Allocator: the ETF of degens](#sec-187): diversify a budget across the top verified leaders-- [Clip Director: every trade becomes content](#sec-118): turn any closed trade into shareable cards per surface-- [The Trading Copilot — talk to your wallet](#sec-279) — conversational trading over these same numbers-- [Oracle — the conviction engine](#sec-209) · [/oracle/docs](https://three.ws/oracle/docs)-- [The autonomous trading experiment](#sec-280)-- [Financial controls & custody guardrails](#sec-150)-- [UX flows: crypto trading & analytics](#sec-345) — screen-by-screen walkthrough+- [Meta-Allocator: the ETF of degens](#sec-198): diversify a budget across the top verified leaders+- [Clip Director: every trade becomes content](#sec-122): turn any closed trade into shareable cards per surface+- [The Trading Copilot — talk to your wallet](#sec-299) — conversational trading over these same numbers+- [Oracle — the conviction engine](#sec-224) · [/oracle/docs](https://three.ws/oracle/docs)+- [The autonomous trading experiment](#sec-300)+- [Financial controls & custody guardrails](#sec-157)+- [UX flows: crypto trading & analytics](#sec-365) — screen-by-screen walkthrough----<a id="sec-282"></a>+<a id="sec-302"></a>> **Source:** `docs/troubleshooting.md` · [↑ table of contents](#table-of-contents)@@ -58539,7 +63394,7 @@ Idle blink and head-drift are active in the current release: `src/idle-animation----<a id="sec-283"></a>+<a id="sec-303"></a>> **Source:** `docs/trust-primitives.md` · [↑ table of contents](#table-of-contents)@@ -58558,7 +63413,7 @@ any chain**, regardless of which platform that counterparty was minted on.## Cross-chain Agent Reputation**`GET /api/x402/agent-reputation?subject=<identifier>`** — $0.01 USDC per call-(Base or Solana mainnet, via [x402](#sec-366)).+(Base or Solana mainnet, via [x402](#sec-386)).Pass any counterparty identifier. The type is auto-detected and scored from whateverreal on-chain evidence exists for it:@@ -58676,7 +63531,7 @@ Returns `{ mode, count, scored_count, unknown_count, avg_score, subjects: [ …fThe same POST route also serves three.ws-fleet monitoring over the platform's indexedactive-agent set: `mode: "sweep"` (fleet average + flagged low-trust agents),`mode: "leaderboard"` (top N by score), and `mode: "decay_report"` (agents whose score-dropped >10 points). See the [x402 catalog](#sec-366).+dropped >10 points). See the [x402 catalog](#sec-386).---@@ -58701,7 +63556,7 @@ claims **"I am the deployer of contract X"** or **"I own wallet W / name N / ageself-report.**`GET /api/x402/onchain-identity-verify?identity=<id>&address=<addr>&chain=<caip2>`**-— $0.005 USDC per call (Base or Solana mainnet, via [x402](#sec-366)).+— $0.005 USDC per call (Base or Solana mainnet, via [x402](#sec-386)).It verifies a **claim** that `identity` controls `address`, for **any** identity type,on any chain — regardless of the platform the counterparty came from:@@ -58775,11 +63630,11 @@ score *whether to trust* them.----See also: [x402 paid endpoints](#sec-366) · [Agent Bouncer](#sec-082) · [ERC-8004 identity](#sec-146)+See also: [x402 paid endpoints](#sec-386) · [Agent Bouncer](#sec-084) · [ERC-8004 identity](#sec-153)----<a id="sec-284"></a>+<a id="sec-304"></a>> **Source:** `docs/tutorials/add-a-3d-assistant.md` · [↑ table of contents](#table-of-contents)@@ -58897,7 +63752,7 @@ Then ask, in plain language: "build a 3D assistant widget named Aria with an oce----<a id="sec-285"></a>+<a id="sec-305"></a>> **Source:** `docs/tutorials/agent-personality.md` · [↑ table of contents](#table-of-contents)@@ -59350,7 +64205,7 @@ The system prompt is the cheapest, highest-leverage thing you can change about a----<a id="sec-286"></a>+<a id="sec-306"></a>> **Source:** `docs/tutorials/agent-reputation.md` · [↑ table of contents](#table-of-contents)@@ -59651,7 +64506,7 @@ A read costs nothing and asks no one's permission. That's the property that lets----<a id="sec-287"></a>+<a id="sec-307"></a>> **Source:** `docs/tutorials/animate-your-avatar.md` · [↑ table of contents](#table-of-contents)@@ -59714,10 +64569,10 @@ In the top bar, click **Load avatar** and pick one of your rigged avatars (or aIf you'd rather skip the picker, deep-link directly:```-/pose?avatar=<your-avatar-id>+/pose?avatar=0f25b676-e27b-4929-875c-4135fea0f635```-The Studio reads `?avatar=` on boot and loads it for you. Add `&anim=<clip-id>` and it also opens that saved clip — this is exactly what the Gallery's **Open in Studio** button does.+The Studio reads `?avatar=` on boot and loads it for you (swap in your own avatar's id from its `/avatars/<id>` page). Add `&anim=<clip-id>` and it also opens that saved clip — this is exactly what the Gallery's **Open in Studio** button does.If the right panel shows **"Load a rigged avatar to animate"**, you're still on the mannequin — load an avatar. If it shows **"This rig can't be retargeted,"** the model exposes fewer than 8 recognizable humanoid bones (see Troubleshooting).@@ -59829,7 +64684,7 @@ Applying clips in the Studio is the **authoring** side. On a *running* agent, thThe two channels are wired to the *same* emotional state, at two different timescales, so the body and the face never disagree:- **Momentary events** (an error just happened, a skill just finished) inject a transient emotion spike — `concern`, `celebration`, `curiosity`, and friends — that decays over seconds. A spike crossing threshold both reshapes the face immediately *and* biases the gesture slot the avatar plays next (e.g. sustained `celebration` picks the `celebrate` slot).-- **Sustained mood** — the agent's resting valence/arousal, set via `setMood()` (see [docs/tutorials/emotion-from-data.md](#sec-299)) — is the continuous baseline between events. It biases the resting face (a soft smile at high valence, a worried brow at low) and posture (lean, gaze) every frame, and, once nothing more urgent claims the gesture slot, biases *which* ambient gesture plays too: a sustained up-and-energetic mood leans toward the `celebrate` slot, a sustained down-and-subdued mood toward `concern` — the opposite bias, never the energetic one. A momentary event always takes priority over the ambient mood bias, and slot overrides via `meta.edits.animations` apply identically whether the trigger was a spike or the resting mood.+- **Sustained mood** — the agent's resting valence/arousal, set via `setMood()` (see [docs/tutorials/emotion-from-data.md](#sec-319)) — is the continuous baseline between events. It biases the resting face (a soft smile at high valence, a worried brow at low) and posture (lean, gaze) every frame, and, once nothing more urgent claims the gesture slot, biases *which* ambient gesture plays too: a sustained up-and-energetic mood leans toward the `celebrate` slot, a sustained down-and-subdued mood toward `concern` — the opposite bias, never the energetic one. A momentary event always takes priority over the ambient mood bias, and slot overrides via `meta.edits.animations` apply identically whether the trigger was a spike or the resting mood.The division of labor: **clips move the body, blendshapes move the face, slots choose *which* body motion fits the emotion — and one emotional state, not two independent tracks, drives all of it.** All three ride the same universal-rig foundation — name your bones (and your blendshapes) in a convention the resolvers know, and everything just works.@@ -59867,16 +64722,16 @@ You learned the apply-and-remix workflow for motion on three.ws:**See also:**-- [docs/animations.md](#sec-081) — the runtime animation registry, manifest, and agent slot reference.+- [docs/animations.md](#sec-083) — the runtime animation registry, manifest, and agent slot reference.- [docs/3d-asset-pipeline.md](#sec-002) — how FBX, GLB, and clip JSON relate, and how clips are built and retargeted.-- [docs/tutorials/swap-avatar-in-studio.md](#sec-329) — loading and switching avatars in the Studio.-- [docs/tutorials/upload-custom-glb.md](#sec-332) — getting a Mixamo or custom rig into three.ws as a clean, animatable GLB.+- [docs/tutorials/swap-avatar-in-studio.md](#sec-349) — loading and switching avatars in the Studio.+- [docs/tutorials/upload-custom-glb.md](#sec-352) — getting a Mixamo or custom rig into three.ws as a clean, animatable GLB.Primary call to action: open **[/pose](/pose)**, load an avatar, and apply your first clip.----<a id="sec-288"></a>+<a id="sec-308"></a>> **Source:** `docs/tutorials/arm-an-agent-sniper.md` · [↑ table of contents](#table-of-contents)@@ -59988,7 +64843,7 @@ The hard-config sniper you just armed is the control group. The next phase runs----<a id="sec-289"></a>+<a id="sec-309"></a>> **Source:** `docs/tutorials/build-a-scene.md` · [↑ table of contents](#table-of-contents)@@ -60207,7 +65062,7 @@ The leverage of [Scene Studio](/scene) is that it's a *real* editor producing a----<a id="sec-290"></a>+<a id="sec-310"></a>> **Source:** `docs/tutorials/build-a-site-concierge.md` · [↑ table of contents](#table-of-contents)@@ -60325,7 +65180,7 @@ Then: `<three-concierge endpoint="/my/concierge">`. The production reference, wi----<a id="sec-291"></a>+<a id="sec-311"></a>> **Source:** `docs/tutorials/claim-threews-name.md` · [↑ table of contents](#table-of-contents)@@ -60633,7 +65488,7 @@ See also:----<a id="sec-292"></a>+<a id="sec-312"></a>> **Source:** `docs/tutorials/connect-ai-brain.md` · [↑ table of contents](#table-of-contents)@@ -60990,7 +65845,7 @@ The brain is the part of the agent you'll iterate on most after the system promp----<a id="sec-293"></a>+<a id="sec-313"></a>> **Source:** `docs/tutorials/create-and-edit-memory.md` · [↑ table of contents](#table-of-contents)@@ -61311,7 +66166,7 @@ The leverage is in *enhancement*: the right type, one fact per memory, tags, del----<a id="sec-294"></a>+<a id="sec-314"></a>> **Source:** `docs/tutorials/custom-skill.md` · [↑ table of contents](#table-of-contents)@@ -61601,7 +66456,7 @@ The `uri` points to the **directory**, not the manifest file. The runtime append```html<agent-3d- body="./my-avatar.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-sonnet-4-6"skills="https://yourusername.github.io/weather-skill/"></agent-3d>@@ -61831,7 +66686,7 @@ The skill installs via a URI in the agent manifest, runs entirely client-side, a----<a id="sec-295"></a>+<a id="sec-315"></a>> **Source:** `docs/tutorials/customize-appearance.md` · [↑ table of contents](#table-of-contents)@@ -62269,7 +67124,7 @@ Most production embeds use four or five of these together. The combination is wh----<a id="sec-296"></a>+<a id="sec-316"></a>> **Source:** `docs/tutorials/deploy-to-vercel-custom-domain.md` · [↑ table of contents](#table-of-contents)@@ -62786,7 +67641,7 @@ In rough order of likelihood:----<a id="sec-297"></a>+<a id="sec-317"></a>> **Source:** `docs/tutorials/embed-in-30-seconds.md` · [↑ table of contents](#table-of-contents)@@ -63060,7 +67915,7 @@ A working embedded agent is the foundation everything else builds on. From here,----<a id="sec-298"></a>+<a id="sec-318"></a>> **Source:** `docs/tutorials/embed-on-website.md` · [↑ table of contents](#table-of-contents)@@ -63571,7 +68426,7 @@ Squarespace's developer preview and published output can differ. Try adding the----<a id="sec-299"></a>+<a id="sec-319"></a>> **Source:** `docs/tutorials/emotion-from-data.md` · [↑ table of contents](#table-of-contents)@@ -63682,7 +68537,7 @@ Save that as `index.html` and open it — no build step, no server, no wallet. S## Step 3 — The AI lane: real classification over arbitrary data, richer gestures-A lexicon scorer only works on short, informal text and only gives you positive/negative. For real documents — support tickets, product reviews, meeting transcripts, incident reports — you want a model that returns *structured* emotion: a sentiment score plus a breakdown across joy, anger, fear, sadness, surprise, and disgust, so you can pick a more specific reaction than a binary celebrate/flinch. `ibm_granite_analyze` (part of the [IBM Granite x402 MCP suite](#sec-163)) does exactly this for $0.04/call, no IBM account needed — you pay in USDC, it pays IBM.+A lexicon scorer only works on short, informal text and only gives you positive/negative. For real documents — support tickets, product reviews, meeting transcripts, incident reports — you want a model that returns *structured* emotion: a sentiment score plus a breakdown across joy, anger, fear, sadness, surprise, and disgust, so you can pick a more specific reaction than a binary celebrate/flinch. `ibm_granite_analyze` (part of the [IBM Granite x402 MCP suite](#sec-172)) does exactly this for $0.04/call, no IBM account needed — you pay in USDC, it pays IBM.This is a server-side call (it needs a wallet to sign the payment), so it lives behind a small endpoint you host yourself and the browser polls. The `@three-ws/x402-fetch` package does the 402 → sign → retry dance for you — see [pay-for-x402-service](/tutorials/pay-for-x402-service) for the full protocol if you want the mechanics.@@ -63784,7 +68639,7 @@ function reactIfConfident(clipOrEmoteName, { confident, useExactClip = false } =- **`agent.play('someClip')` does nothing.** The name is case-sensitive and must match a clip actually present on the rig — check the exact name at [/animations](/animations) or fall back to `playEmote()`, which degrades gracefully instead of silently failing.- **The agent keeps re-celebrating every poll.** You skipped the cooldown gate in Step 4, or your confidence threshold is too low for a noisy feed. Widen `COOLDOWN_MS` or raise the sample-size/strength floor.- **AI lane 402 loop / never resolves.** Your `SOLANA_PRIVATE_KEY` wallet has no USDC. Fund it with a few cents — see the [x402 payment flow](/tutorials/pay-for-x402-service).-- **`analysis.emotion_breakdown` is undefined.** You passed `analysis_type` other than `sentiment` — only that type returns the per-emotion breakdown; the other five types return type-specific fields instead (see [ibm-x402-mcp](#sec-163)).+- **`analysis.emotion_breakdown` is undefined.** You passed `analysis_type` other than `sentiment` — only that type returns the per-emotion breakdown; the other five types return type-specific fields instead (see [ibm-x402-mcp](#sec-172)).---@@ -63799,7 +68654,7 @@ function reactIfConfident(clipOrEmoteName, { confident, useExactClip = false } =----<a id="sec-300"></a>+<a id="sec-320"></a>> **Source:** `docs/tutorials/first-agent.md` · [↑ table of contents](#table-of-contents)@@ -64308,7 +69163,7 @@ Now that you have a working agent, here's what to explore next:----<a id="sec-301"></a>+<a id="sec-321"></a>> **Source:** `docs/tutorials/first-prompt-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -64428,7 +69283,7 @@ A rigged avatar's AR link gains a **Bring it to life** option: instead of a froz----<a id="sec-302"></a>+<a id="sec-322"></a>> **Source:** `docs/tutorials/generate-3d-api.md` · [↑ table of contents](#table-of-contents)@@ -64640,7 +69495,7 @@ If you've never made an x402 call, start with [Build a paid x402 endpoint](/tuto----<a id="sec-303"></a>+<a id="sec-323"></a>> **Source:** `docs/tutorials/getting-started.md` · [↑ table of contents](#table-of-contents)@@ -64811,7 +69666,7 @@ Everything is editable forever — swap the body, rewrite the prompt, add capabi----<a id="sec-304"></a>+<a id="sec-324"></a>> **Source:** `docs/tutorials/greeting-and-first-speech.md` · [↑ table of contents](#table-of-contents)@@ -65157,7 +70012,7 @@ A working greeting moves the embed from "decoration" to "interaction", which is----<a id="sec-305"></a>+<a id="sec-325"></a>> **Source:** `docs/tutorials/image-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -65260,7 +70115,7 @@ Everything you generate is kept in **Your creations** at the bottom of the page,----<a id="sec-306"></a>+<a id="sec-326"></a>> **Source:** `docs/tutorials/import-avatar-url.md` · [↑ table of contents](#table-of-contents)@@ -65277,7 +70132,7 @@ This tutorial walks the URL-import path end to end. It's the sibling of [Upload## What you're building```-You: paste https://models.example-cdn.com/64c3….glb into /import/rpm+You: paste https://three.ws/avatars/michelle.glb into /import/rpm↓ server fetches the file (no CORS to fight)↓ humanoid bones canonicalized → idle/walk clips will play↓ stored on the three.ws CDN as an avatar record@@ -65428,7 +70283,7 @@ The URL path and the file-upload path converge on the same avatar record and the----<a id="sec-307"></a>+<a id="sec-327"></a>> **Source:** `docs/tutorials/js-api-events.md` · [↑ table of contents](#table-of-contents)@@ -65894,7 +70749,7 @@ The `whenReady`, awaited-`ask()`, and try/catch patterns are small but they remo----<a id="sec-308"></a>+<a id="sec-328"></a>> **Source:** `docs/tutorials/mcp-server-for-your-agent.md` · [↑ table of contents](#table-of-contents)@@ -66540,7 +71395,7 @@ Things that look right but bite you:----<a id="sec-309"></a>+<a id="sec-329"></a>> **Source:** `docs/tutorials/mine-vanity-address.md` · [↑ table of contents](#table-of-contents)@@ -66821,7 +71676,7 @@ The protocol itself is fully specified in [docs/PROTOCOL-vanity.md](#sec-005), a----<a id="sec-310"></a>+<a id="sec-330"></a>> **Source:** `docs/tutorials/mint-pumpfun-token.md` · [↑ table of contents](#table-of-contents)@@ -67173,7 +72028,7 @@ If you have a lawyer, talk to them before launching. If you don't, default to th----<a id="sec-311"></a>+<a id="sec-331"></a>> **Source:** `docs/tutorials/multi-agent-coordination.md` · [↑ table of contents](#table-of-contents)@@ -67578,7 +72433,7 @@ researcher.addEventListener('skill:tool-called', (e) => {Build the tools themselves as skills (see [custom-skill](/tutorials/custom-skill)); the orchestration logic stays in the coordinator on the page.-There's also a platform-native alternative to page-level orchestration: the `<agent-stage>` element. A stage hosts every child `<agent-3d>` in one shared WebGL scene (with a `formation` attribute — `row`, `circle`, or `freeform`), exposes `getAgents()`, `broadcast(fromId, event)`, and `routeMessage(fromId, toId, text)` to your code, and grants each staged agent two extra built-in tools — `observe_agents` (who else is on stage) and `say_to_agent` (address a colleague directly) — so the LLMs can delegate to each other without any coordinator glue. When the agents, not the page, should decide who does what, reach for the stage. The full patterns are in [Multi-Agent Scenes](#sec-193).+There's also a platform-native alternative to page-level orchestration: the `<agent-stage>` element. A stage hosts every child `<agent-3d>` in one shared WebGL scene (with a `formation` attribute — `row`, `circle`, or `freeform`), exposes `getAgents()`, `broadcast(fromId, event)`, and `routeMessage(fromId, toId, text)` to your code, and grants each staged agent two extra built-in tools — `observe_agents` (who else is on stage) and `say_to_agent` (address a colleague directly) — so the LLMs can delegate to each other without any coordinator glue. When the agents, not the page, should decide who does what, reach for the stage. The full patterns are in [Multi-Agent Scenes](#sec-205).Parallel fan-out is **harder to debug** than sequential delegation because errors are non-deterministic in order and any latency outlier blocks the join. Use it when the wall-clock saving is worth the complexity. For a chat UX with a human in the loop, sequential is almost always the right default.@@ -67733,7 +72588,7 @@ async function safeHandoff(targetEl, brief, fallbackEl, originalQuestion) {----<a id="sec-312"></a>+<a id="sec-332"></a>> **Source:** `docs/tutorials/nvidia-3d-free.md` · [↑ table of contents](#table-of-contents)@@ -67850,7 +72705,7 @@ It talks **directly** to a TRELLIS NIM and returns the GLB **synchronously** in----<a id="sec-313"></a>+<a id="sec-333"></a>> **Source:** `docs/tutorials/nvidia-nim-self-host.md` · [↑ table of contents](#table-of-contents)@@ -68026,7 +72881,7 @@ The proxy normalizes every documented artifact shape (inline `base64`, a bare st----<a id="sec-314"></a>+<a id="sec-334"></a>> **Source:** `docs/tutorials/paid-x402-endpoint.md` · [↑ table of contents](#table-of-contents)@@ -68437,7 +73292,7 @@ const wallet = createWalletClient({const fetchPaid = wrapFetchWithPayment(fetch, wallet);const url = `http://localhost:3000/api/model-check?url=${encodeURIComponent(- 'https://three.ws/avatar/character-studio/sample.glb',+ 'https://three.ws/avatars/cesium-man.glb',)}`;const res = await fetchPaid(url);@@ -68518,7 +73373,7 @@ function send402(res, resourceUrl, extra = {}) {input: {type: 'http',method: 'GET',- queryParams: { url: 'https://three.ws/avatar/character-studio/sample.glb' },+ queryParams: { url: 'https://three.ws/avatars/cesium-man.glb' },queryParamsSchema: {$schema: 'https://json-schema.org/draft/2020-12/schema',type: 'object',@@ -68531,12 +73386,12 @@ function send402(res, resourceUrl, extra = {}) {output: {type: 'json',example: {- url: 'https://three.ws/avatar/character-studio/sample.glb',- fetchedBytes: 1572864,+ url: 'https://three.ws/avatars/cesium-man.glb',+ fetchedBytes: 438044,counts: {- scenes: 1, nodes: 18, meshes: 6, materials: 4,- textures: 3, animations: 1, totalVertices: 12480,- totalTriangles: 24812,+ scenes: 1, nodes: 22, meshes: 1, materials: 1,+ textures: 1, animations: 1, totalVertices: 3273,+ totalTriangles: 4672,},},},@@ -68640,7 +73495,7 @@ export async function check_model({ glb_url }, ctx) {}```-Load the skill into your agent, ask "is this model too heavy for mobile? https://example-cdn/your-asset.glb", and watch the agent pay $0.001 mid-conversation and reply with concrete numbers.+Load the skill into your agent, ask "is this model too heavy for mobile? https://three.ws/avatars/cesium-man.glb", and watch the agent pay $0.001 mid-conversation and reply with concrete numbers.The settlement is real. The receiver wallet (your endpoint's `X402_PAY_TO_BASE`) is credited. The buyer (your agent's operator wallet) is debited. Both sides see the transfer on-chain.@@ -68718,7 +73573,7 @@ Both work. Choose based on whether your endpoint is part of an agent platform yo----<a id="sec-315"></a>+<a id="sec-335"></a>> **Source:** `docs/tutorials/pay-for-x402-service.md` · [↑ table of contents](#table-of-contents)@@ -68861,7 +73716,7 @@ Then pay for any endpoint:```jsconst out = await window.X402.pay({endpoint: 'https://three.ws/api/x402/model-check?url=' +- encodeURIComponent('https://three.ws/avatar/character-studio/sample.glb'),+ encodeURIComponent('https://three.ws/avatars/cesium-man.glb'),method: 'GET',merchant: 'three.ws',action: 'Model Check',@@ -68983,7 +73838,7 @@ package family is listed under [x402 → Open-source packages](/x402#open-source----<a id="sec-316"></a>+<a id="sec-336"></a>> **Source:** `docs/tutorials/personal-ai-site.md` · [↑ table of contents](#table-of-contents)@@ -69246,7 +74101,7 @@ Here is the full page. Replace the placeholder values in brackets and swap in yo<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script><agent-3did="maya"- body="https://yourname.com/avatars/maya.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-opus-4-7"style="height: calc(100% - 130px); display: block"></agent-3d>@@ -69370,8 +74225,8 @@ When a visitor asks to see or look at a project, call `load_project`with the matching URL.Project model URLs:-- Acme Dashboard: https://yourname.com/models/acme-dashboard.glb-- Health App AR: https://yourname.com/models/health-ar.glb+- Studio Scene: https://three.ws/avatars/studio.glb+- Fox Mascot: https://three.ws/avatars/fox.glb````handlers.js`:@@ -69388,13 +74243,13 @@ Install it by adding the `skills` attribute to the element (or a `skills` entry```html<agent-3did="maya"- body="https://yourname.com/avatars/maya.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-opus-4-7"skills="https://yourname.com/skills/load-project/"></agent-3d>```-Now when a visitor says "show me the health app", the agent calls `load_project`, which calls `ctx.loadGLB()` on the scene controller, swapping the avatar's environment for the project model. The full authoring reference (context API, sandboxing, publishing) is in the [Skills system](/docs/skills) doc, and [Build a custom skill](/docs/tutorials/custom-skill) walks through a bundle end to end.+Now when a visitor says "show me the studio scene", the agent calls `load_project`, which calls `ctx.loadGLB()` on the scene controller, swapping the avatar's environment for the project model. The full authoring reference (context API, sandboxing, publishing) is in the [Skills system](/docs/skills) doc, and [Build a custom skill](/docs/tutorials/custom-skill) walks through a bundle end to end.---@@ -69538,7 +74393,7 @@ The technical investment is one HTML file, a GLB avatar, and a system prompt. Th----<a id="sec-317"></a>+<a id="sec-337"></a>> **Source:** `docs/tutorials/place-agent-irl.md` · [↑ table of contents](#table-of-contents)@@ -69786,7 +74641,7 @@ This is fundamentally different from viewing a single model in AR. If you only n----<a id="sec-318"></a>+<a id="sec-338"></a>> **Source:** `docs/tutorials/prompts-for-3d.md` · [↑ table of contents](#table-of-contents)@@ -69922,7 +74777,7 @@ The tiers are explained in detail in [the text-to-3D tutorial](/tutorials/text-t----<a id="sec-319"></a>+<a id="sec-339"></a>> **Source:** `docs/tutorials/register-onchain.md` · [↑ table of contents](#table-of-contents)@@ -70271,7 +75126,7 @@ Your agent's URL will keep working as long as Base exists and IPFS gateways serv----<a id="sec-320"></a>+<a id="sec-340"></a>> **Source:** `docs/tutorials/self-host-agent-backend.md` · [↑ table of contents](#table-of-contents)@@ -70847,7 +75702,7 @@ A self-hosted instance with light traffic runs at $20–50/month all-in. The dom----<a id="sec-321"></a>+<a id="sec-341"></a>> **Source:** `docs/tutorials/selfie-to-avatar.md` · [↑ table of contents](#table-of-contents)@@ -70886,7 +75741,7 @@ Under the hood the page ([src/selfie-capture.js](../src/selfie-capture.js)) coll1. `POST /api/avatars/reconstruct` — submit the photos, get back a `jobId`.2. `GET /api/avatars/regenerate-status?jobId=…` — poll until the job reports `done`.-The job moves through visible stages — reconstructing the mesh, building geometry and textures, **auto-rigging the skeleton and skinning** — then returns the finished avatar's id. You never call the rig step yourself; it's part of the job. This is the platform-wide rule: every avatar three.ws creates is auto-rigged so it can animate. (For the rig internals, see [Avatar Creation](#sec-092).)+The job moves through visible stages — reconstructing the mesh, building geometry and textures, **auto-rigging the skeleton and skinning** — then returns the finished avatar's id. You never call the rig step yourself; it's part of the job. This is the platform-wide rule: every avatar three.ws creates is auto-rigged so it can animate. (For the rig internals, see [Avatar Creation](#sec-094).)---@@ -71021,7 +75876,7 @@ await fetch('/api/onboarding/link-avatar', {headers: { 'Content-Type': 'application/json' },credentials: 'include',body: JSON.stringify({- avatarId: 'your-avatar-uuid', // the id from /avatars/<id>+ avatarId: '0f25b676-e27b-4929-875c-4135fea0f635', // your id from /avatars/<id>force: true, // replace the agent's current avatar}),});@@ -71089,13 +75944,13 @@ The result is a standard `.glb` that animates in the [Animation Studio](/pose),- [Turn Photos into a 3D Model](/tutorials/image-to-3d) — reconstruct an *object* (not a person) from a few photos in the Forge.- [Animate your avatar](/tutorials/animate-your-avatar) — apply and tune motion on the rigged avatar you just built.-- [Avatar Creation](#sec-092) — the full reference: every creation path, rig requirements, and accessories.+- [Avatar Creation](#sec-094) — the full reference: every creation path, rig requirements, and accessories.- [Customize your agent's appearance](/tutorials/customize-appearance) — clothing, accessories, and styling on top of your avatar.- [Give your agent a personality](/tutorials/agent-personality) — turn the body into a character.----<a id="sec-322"></a>+<a id="sec-342"></a>> **Source:** `docs/tutorials/share-your-agent.md` · [↑ table of contents](#table-of-contents)@@ -71421,7 +76276,7 @@ The agent's URL is the durable handle. Embed it, link it, print it. The agent sh----<a id="sec-323"></a>+<a id="sec-343"></a>> **Source:** `docs/tutorials/shopify-shopping-assistant.md` · [↑ table of contents](#table-of-contents)@@ -71531,7 +76386,7 @@ const shopping = buildShoppingPayload(catalog, recommended, policies, question);----<a id="sec-324"></a>+<a id="sec-344"></a>> **Source:** `docs/tutorials/shopify-store-guide-advanced.md` · [↑ table of contents](#table-of-contents)@@ -71841,7 +76696,7 @@ The clip URLs inside the manifest resolve **relative to the manifest**, so a sel----<a id="sec-325"></a>+<a id="sec-345"></a>> **Source:** `docs/tutorials/shopify-store-guide.md` · [↑ table of contents](#table-of-contents)@@ -71930,7 +76785,7 @@ It's powered by the open-source [`@three-ws/tour`](https://www.npmjs.com/package----<a id="sec-326"></a>+<a id="sec-346"></a>> **Source:** `docs/tutorials/skill-with-database-auth.md` · [↑ table of contents](#table-of-contents)@@ -72668,7 +77523,7 @@ Before this skill faces a real visitor:----<a id="sec-327"></a>+<a id="sec-347"></a>> **Source:** `docs/tutorials/solana-agent-reputation.md` · [↑ table of contents](#table-of-contents)@@ -72851,7 +77706,7 @@ A read costs nothing and asks no one's permission — which is exactly what lets----<a id="sec-328"></a>+<a id="sec-348"></a>> **Source:** `docs/tutorials/sperax-tour.md` · [↑ table of contents](#table-of-contents)@@ -73022,7 +77877,7 @@ This is covered by an automated test — [`tour-sdk/test/director.test.mjs`](htt----<a id="sec-329"></a>+<a id="sec-349"></a>> **Source:** `docs/tutorials/swap-avatar-in-studio.md` · [↑ table of contents](#table-of-contents)@@ -73282,7 +78137,7 @@ The key insight is the snippet's stability. Once embedded, your customers' pages----<a id="sec-330"></a>+<a id="sec-350"></a>> **Source:** `docs/tutorials/text-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -73406,7 +78261,7 @@ This is normal — prompt, generate, adjust, repeat is the workflow, not a failu----<a id="sec-331"></a>+<a id="sec-351"></a>> **Source:** `docs/tutorials/trigger-from-page-events.md` · [↑ table of contents](#table-of-contents)@@ -73910,7 +78765,7 @@ The pattern under all of these is the same: every recipe starts with `whenReady(----<a id="sec-332"></a>+<a id="sec-352"></a>> **Source:** `docs/tutorials/upload-custom-glb.md` · [↑ table of contents](#table-of-contents)@@ -74306,7 +79161,7 @@ Once the body is on the platform, the embed snippet doesn't change. The same `<a----<a id="sec-333"></a>+<a id="sec-353"></a>> **Source:** `docs/tutorials/view-in-ar.md` · [↑ table of contents](#table-of-contents)@@ -74394,7 +79249,7 @@ There are three ways to offer AR from your own page, depending on how you embed.</script><three-ws-viewer- src="https://three.ws/cdn/your-model.glb"+ src="https://three.ws/avatars/michelle.glb"ar></three-ws-viewer>```@@ -74491,7 +79346,7 @@ AR surface detection needs a moment to work. Move the phone slowly over the targ----<a id="sec-334"></a>+<a id="sec-354"></a>> **Source:** `docs/tutorials/voice-and-lipsync.md` · [↑ table of contents](#table-of-contents)@@ -74722,7 +79577,7 @@ The leverage is that the avatar drives its mouth from the *audio it actually pla----<a id="sec-335"></a>+<a id="sec-355"></a>> **Source:** `docs/tutorials/walk-companion.md` · [↑ table of contents](#table-of-contents)@@ -75075,7 +79930,7 @@ The leverage is composability: the same engine renders the corner mascot, the fu----<a id="sec-336"></a>+<a id="sec-356"></a>> **Source:** `docs/tutorials/web-component-end-to-end.md` · [↑ table of contents](#table-of-contents)@@ -75168,7 +80023,7 @@ This is the right embed when:- You want multiple agents on the same page- You need to call the agent's methods or subscribe to its events-The rest of this tutorial uses the custom-element form, because that's the one that benefits from a wrapper. (The [embedding guide](#sec-298) covers the iframe path and the no-code platforms in depth.)+The rest of this tutorial uses the custom-element form, because that's the one that benefits from a wrapper. (The [embedding guide](#sec-318) covers the iframe path and the no-code platforms in depth.)---@@ -75671,12 +80526,12 @@ The web component is the most robust integration point the platform offers. Buil## Next steps- [Drive the agent with the JavaScript API](/tutorials/js-api-events) — methods and events covered in depth-- [Embed a three.ws agent on your website](#sec-298) — the no-framework paths (Webflow, WordPress, Squarespace) for completeness+- [Embed a three.ws agent on your website](#sec-318) — the no-framework paths (Webflow, WordPress, Squarespace) for completeness- [Trigger the agent from page events](/tutorials/trigger-from-page-events) — once it's mounted, make it react to the user journey----<a id="sec-337"></a>+<a id="sec-357"></a>> **Source:** `docs/tutorials/x402-server-sdk.md` · [↑ table of contents](#table-of-contents)@@ -75889,7 +80744,7 @@ const res = await pay('https://your.api/v1/embed', { method: 'POST', body });----<a id="sec-338"></a>+<a id="sec-358"></a>> **Source:** `docs/ui-juice.md` · [↑ table of contents](#table-of-contents)@@ -76051,7 +80906,7 @@ should reach for these primitives rather than re-rolling RAF loops.----<a id="sec-339"></a>+<a id="sec-359"></a>> **Source:** `docs/ux-flows/01-onboarding-creation.md` · [↑ table of contents](#table-of-contents)@@ -76257,7 +81112,7 @@ should reach for these primitives rather than re-rolling RAF loops.----<a id="sec-340"></a>+<a id="sec-360"></a>> **Source:** `docs/ux-flows/02-forge-text-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -76430,7 +81285,7 @@ Routing facts (from `vercel.json`):----<a id="sec-341"></a>+<a id="sec-361"></a>> **Source:** `docs/ux-flows/03-3d-editing-viewer.md` · [↑ table of contents](#table-of-contents)@@ -76473,7 +81328,7 @@ Routing summary (from `vite.config.js`):13. (optional) **File ▸ Export Project** saves the editor scene as a `.json` project; **File ▸ Open** re-imports a `.json` project (`Menubar.File.js`:91-185).14. (optional) **Render** menu → render an image or video of the scene via `APP.Player` (`Menubar.Render.js`).- **Decision points / branches:** Fresh scene vs restored autosave (main.js:89-104). Deep-link arrival (`?model=` add, `?handoff=1` animation import) vs plain manual import. `#file=<url>` hash → prompts to open a remote `.json` project, replacing the scene (main.js:286-299). Drag of a folder (`DataTransferItemList`) vs single files.-- **External calls / dependencies:** `fetch(modelUrl)` for `?model=` deep-link GLB (main.js:195); IndexedDB via `editor.storage` (autosave) and `src/shared/scene-handoff.js` (`takeSceneHandoff`, DB `three-ws-scene-handoff`); Draco decoder at `/scene-studio/draco/gltf/`, KTX2 transcoder at `/scene-studio/basis/` (main.js:163-165); local CodeMirror/esprima/acorn/tern vendor libs. Imports: glTF/GLB (+ companion textures), `.json` editor projects. Exports: GLB, GLTF, OBJ, PLY, STL, USDZ, DRC, JSON project, rendered image/video. No platform API calls.+- **External calls / dependencies:** `fetch(modelUrl)` for `?model=` deep-link GLB (main.js:195); IndexedDB via `editor.storage` (autosave) and `src/shared/scene-handoff.js` (`takeSceneHandoff`, DB `three-ws-scene-handoff`); Draco decoder at `/three/draco/gltf/` (shared with the main app), KTX2 transcoder at `/scene-studio/basis/` (main.js:163-165); local CodeMirror/esprima/acorn/tern vendor libs. Imports: glTF/GLB (+ companion textures), `.json` editor projects. Exports: GLB, GLTF, OBJ, PLY, STL, USDZ, DRC, JSON project, rendered image/video. No platform API calls.- **Success state:** Imported/transformed objects appear in the Viewport + Outliner; autosave indicator (`savingStarted`/`savingFinished`) confirms persistence; export triggers a file download.- **Empty / error states:** Empty default scene with grid + default environment when no autosave exists. `?model=` fetch failure → `alert('Could not load the handed-off model … drag the GLB file into the editor instead.')` (main.js:204). `?handoff=1` IndexedDB unavailable → silently no-ops; load failure → `alert('Could not load the animation … Try Export GLB on /pose and drag the file in instead.')` (main.js:248-249). No-GLB-in-drop handled by the vendored loader.- **Step count:** ~7 required (arrive → import → select → transform → edit material → edit scene → export) + ~7 optional (deep-link arrival, primitives/lights, scripts, Play, animation timeline, project save/open, render).@@ -76636,7 +81491,7 @@ Routing summary (from `vite.config.js`):----<a id="sec-342"></a>+<a id="sec-362"></a>> **Source:** `docs/ux-flows/04-embed-widget-studio.md` · [↑ table of contents](#table-of-contents)@@ -76810,7 +81665,7 @@ Routing recap (from `vercel.json`):----<a id="sec-343"></a>+<a id="sec-363"></a>> **Source:** `docs/ux-flows/05-discovery-social.md` · [↑ table of contents](#table-of-contents)@@ -77081,7 +81936,7 @@ Routing recap (from `vercel.json`):----<a id="sec-344"></a>+<a id="sec-364"></a>> **Source:** `docs/ux-flows/06-marketplace-skills.md` · [↑ table of contents](#table-of-contents)@@ -77295,7 +82150,7 @@ Routing facts confirmed in `vercel.json`:----<a id="sec-345"></a>+<a id="sec-365"></a>> **Source:** `docs/ux-flows/07-crypto-trading-analytics.md` · [↑ table of contents](#table-of-contents)@@ -77644,7 +82499,7 @@ coin-intel, pump-visualizer and pump-live — adding a coin on any surface shows----<a id="sec-346"></a>+<a id="sec-366"></a>> **Source:** `docs/ux-flows/08-coin-launch-wallets.md` · [↑ table of contents](#table-of-contents)@@ -77917,7 +82772,7 @@ real Solana/EVM RPC, pump.fun, and x402 — no mocks.----<a id="sec-347"></a>+<a id="sec-367"></a>> **Source:** `docs/ux-flows/09-x402-agent-commerce.md` · [↑ table of contents](#table-of-contents)@@ -78260,7 +83115,7 @@ choreographed two-agent narrative driven by Server-Sent Events.----<a id="sec-348"></a>+<a id="sec-368"></a>> **Source:** `docs/ux-flows/10-chat-brain-labs.md` · [↑ table of contents](#table-of-contents)@@ -78502,7 +83357,7 @@ modules. Routes resolved via `vercel.json` rewrites.----<a id="sec-349"></a>+<a id="sec-369"></a>> **Source:** `docs/ux-flows/11-account-dashboard.md` · [↑ table of contents](#table-of-contents)@@ -78722,7 +83577,7 @@ Shared auth concepts:----<a id="sec-350"></a>+<a id="sec-370"></a>> **Source:** `docs/ux-flows/12-home-and-content.md` · [↑ table of contents](#table-of-contents)@@ -78910,7 +83765,7 @@ All `/.well-known/*` and `/openapi.json` / `/sitemap.xml` responses are JSON/XML----<a id="sec-351"></a>+<a id="sec-371"></a>> **Source:** `docs/validation.md` · [↑ table of contents](#table-of-contents)@@ -79268,7 +84123,7 @@ The toggle's CSS class reflects the highest severity: `level-0` (errors), `level----<a id="sec-352"></a>+<a id="sec-372"></a>> **Source:** `docs/vanity.md` · [↑ table of contents](#table-of-contents)@@ -79276,7 +84131,7 @@ The toggle's CSS class reflects the highest severity: `level-0` (errors), `levelThree x402 endpoints that hand an agent a **branded Solana address** — one thatstarts with your ticker/prefix and/or ends with a chosen suffix — with no wallet,-no account, and no SOL. Pay per call in USDC over the [x402](#sec-366) rail and the+no account, and no SOL. Pay per call in USDC over the [x402](#sec-386) rail and theserver grinds (or delivers from stock) a brand-new keypair that matches.| Endpoint | What it is | Chars | Price | Pick it when |@@ -79294,7 +84149,7 @@ Tier 1 and tier 3 **share one warehouse** — the `vanity_inventory` table,pre-ground on batch spot CPU (`workers/vanity-grinder`) and auto-replenishedwhen stock runs low (`api/cron/vanity-inventory-replenish`, hourly). Tier 1 is"give me anything that matches, right now"; tier 3 is "let me pick this exact-address from the catalog." [Pump Launcher](#sec-221) draws from the+address from the catalog." [Pump Launcher](#sec-238) draws from thesame warehouse for instant vanity mint addresses.## Which agent uses this, and why us@@ -79482,7 +84337,7 @@ workers/vanity-grinder/grind.mjs` (see its`vanitySuffix` checks this same inventory before grinding a mint address live —a hit skips the grind entirely (`vanity_source: "inventory"` in the response),a miss grinds as before (`vanity_source: "ground"`). Same one-shot claim, same-atomicity, no separate purchase step. See [pump-launcher.md](#sec-221).+atomicity, no separate purchase step. See [pump-launcher.md](#sec-238).---@@ -79497,14 +84352,14 @@ challenges and the discovery doc stay in parity.## Related-- [x402 endpoints overview](#sec-362)+- [x402 endpoints overview](#sec-382)- [three-vanity/v1 protocol spec](#sec-005)-- [Pump Launcher](#sec-221) — accepts an optional vanity mint prefix/suffix+- [Pump Launcher](#sec-238) — accepts an optional vanity mint prefix/suffix- Web grinder + verifier: [`/vanity`](https://three.ws/vanity), [`/vanity/verify`](https://three.ws/vanity/verify)----<a id="sec-353"></a>+<a id="sec-373"></a>> **Source:** `docs/viewer.md` · [↑ table of contents](#table-of-contents)@@ -79538,13 +84393,13 @@ Core capabilities:The `src` attribute (or `body` for direct GLB URIs) on `<agent-3d>` loads a model on mount:```html-<agent-3d src="https://example.com/avatar.glb"></agent-3d>+<agent-3d src="https://three.ws/avatars/michelle.glb"></agent-3d>```For the standalone viewer page, pass the model via URL hash:```-https://three.ws/app#model=https://example.com/avatar.glb+https://three.ws/app#model=https://three.ws/avatars/michelle.glb```### Programmatically@@ -79553,7 +84408,7 @@ Set the `src` (or `body`) attribute on the element; a change to either triggers```jsconst el = document.querySelector('agent-3d');-el.setAttribute('src', 'https://example.com/new-model.glb');+el.setAttribute('src', 'https://three.ws/avatars/xbot.glb');```Or drive the underlying `Viewer` instance directly. Its `load(url, rootPath, assetMap, onProgress)` method accepts HTTPS URLs, blob URLs, and data URIs.@@ -79825,7 +84680,7 @@ A `?agent=<id>` query parameter (not hash) opens the same page in editing mode wExample: load a specific model with a fixed camera position:```-https://three.ws/app#model=https://cdn.example.com/robot.glb&cameraPosition=0,1.2,2.5+https://three.ws/app#model=https://three.ws/avatars/xbot.glb&cameraPosition=0,1.2,2.5```---@@ -79898,7 +84753,7 @@ A subset of state (background, transparency, background color, auto-rotate, expo----<a id="sec-354"></a>+<a id="sec-374"></a>> **Source:** `docs/voice-lab.md` · [↑ table of contents](#table-of-contents)@@ -79984,14 +84839,14 @@ The agent-voice handler ([`api/agents/_id/voice.js`](../api/agents/_id/voice.js)## Related-- [Voice and lipsync tutorial](#sec-334): the authoritative step-by-step, including wiring a cloned voice into an agent.-- [Lipsync](#sec-174): how synthesized speech drives an avatar's mouth in real time.-- [Talking Avatar Video](#sec-273): render a talking-head clip from an avatar and an audio track.+- [Voice and lipsync tutorial](#sec-354): the authoritative step-by-step, including wiring a cloned voice into an agent.+- [Lipsync](#sec-184): how synthesized speech drives an avatar's mouth in real time.+- [Talking Avatar Video](#sec-292): render a talking-head clip from an avatar and an audio track.- Pages: [/voice](https://three.ws/voice), [/dashboard](https://three.ws/dashboard).----<a id="sec-355"></a>+<a id="sec-375"></a>> **Source:** `docs/web-component.md` · [↑ table of contents](#table-of-contents)@@ -80915,7 +85770,7 @@ defineElement('my-agent');----<a id="sec-356"></a>+<a id="sec-376"></a>> **Source:** `docs/widget-api.md` · [↑ table of contents](#table-of-contents)@@ -81122,7 +85977,7 @@ If you have multiple widgets and want to coordinate them (sync camera, broadcast----<a id="sec-357"></a>+<a id="sec-377"></a>> **Source:** `docs/widget-studio.md` · [↑ table of contents](#table-of-contents)@@ -81366,14 +86221,14 @@ You can override these freely in the iframe `width` and `height` attributes. Add## Next steps-- [Widget API (JSON-RPC)](#sec-356) — programmatic control over an embedded widget: camera, animation, screenshots, model loading-- [Widgets reference](#sec-358) — technical details, postMessage API, CSP config, and oEmbed spec-- [Web component](#sec-355) — the `<agent-3d>` custom element for developer integrations-- [Embedding guide](#sec-144) — advanced embedding patterns and iframe options+- [Widget API (JSON-RPC)](#sec-376) — programmatic control over an embedded widget: camera, animation, screenshots, model loading+- [Widgets reference](#sec-378) — technical details, postMessage API, CSP config, and oEmbed spec+- [Web component](#sec-375) — the `<agent-3d>` custom element for developer integrations+- [Embedding guide](#sec-151) — advanced embedding patterns and iframe options----<a id="sec-358"></a>+<a id="sec-378"></a>> **Source:** `docs/widgets.md` · [↑ table of contents](#table-of-contents)@@ -81786,7 +86641,7 @@ The `config` object is validated against the type's schema (see [widget-types.js**Widget share URL:** Every widget has a canonical share URL at `https://three.ws/w/<id>`. This URL is server-rendered with Open Graph metadata and a 1200×630 preview image, making it safe to post in Slack, Discord, X, or any link-preview-aware surface.-For the full API reference including request/response shapes, error codes, and pagination, see [api-reference.md](#sec-082).+For the full API reference including request/response shapes, error codes, and pagination, see [api-reference.md](#sec-084).---@@ -81878,7 +86733,7 @@ No IP addresses, no user-agent strings, no cookies, no chat message content. The## Programmatic control-Need to drive a widget from the parent page — change the camera, play an animation, grab a screenshot? See the [Widget API (JSON-RPC)](#sec-356) reference. The `ThreeWidget` SDK lives at `/widget-client.js` and works with any iframe pointing at `/widget`.+Need to drive a widget from the parent page — change the camera, play an animation, grab a screenshot? See the [Widget API (JSON-RPC)](#sec-376) reference. The `ThreeWidget` SDK lives at `/widget-client.js` and works with any iframe pointing at `/widget`.---@@ -81891,13 +86746,13 @@ Need to drive a widget from the parent page — change the camera, play an anima----<a id="sec-359"></a>+<a id="sec-379"></a>> **Source:** `docs/x402-buyer.md` · [↑ table of contents](#table-of-contents)# x402 Buyer Client-To consume a paid [x402 endpoint](#sec-362) — ours or anyone's — a+To consume a paid [x402 endpoint](#sec-382) — ours or anyone's — acaller has to perform the "402 dance": probe the URL, read the payment challenge,sign and settle a payment, then retry with an `X-PAYMENT` header. three.ws ships abuyer client that wraps that whole sequence in one call, with spending-cap@@ -81964,7 +86819,7 @@ it fails — caps hold even across concurrent calls. The store is Redis-backed wavailable. If a call would exceed any window, `buyerFetch` returns`{ ok: false, abort: true, reason }` **without paying**. The platform-wide ceilingdefaults live in env (`X402_MAX_PER_CALL_ATOMIC`, `X402_MAX_PER_HOUR_ATOMIC`,-`X402_MAX_PER_DAY_ATOMIC`; see [Configuration](#sec-125)).+`X402_MAX_PER_DAY_ATOMIC`; see [Configuration](#sec-129)).## Axios variant@@ -81987,13 +86842,13 @@ set) back into the payment so attribution survives the round trip.## Related-- [x402 protocol](#sec-366) — the underlying challenge/settle mechanics.-- [x402 paid endpoints](#sec-362) — what you can buy from us.-- [Autonomous x402 loop](#sec-090) — uses this client on a schedule.+- [x402 protocol](#sec-386) — the underlying challenge/settle mechanics.+- [x402 paid endpoints](#sec-382) — what you can buy from us.+- [Autonomous x402 loop](#sec-092) — uses this client on a schedule.----<a id="sec-360"></a>+<a id="sec-380"></a>> **Source:** `docs/x402-dev-tools.md` · [↑ table of contents](#table-of-contents)@@ -82188,13 +87043,13 @@ implementation against a live server.----<a id="sec-361"></a>+<a id="sec-381"></a>> **Source:** `docs/x402-distribution.md` · [↑ table of contents](#table-of-contents)# x402 Distribution — getting listed and ranked everywhere-three.ws sells 70+ pay-per-call services over [x402](#sec-366). Building them is+three.ws sells 70+ pay-per-call services over [x402](#sec-386). Building them ishalf the job; the other half is making sure every x402 directory, crawler, andagent marketplace can find them — and ranks us at the top. This page is theoperating playbook for that distribution: how each surface indexes providers,@@ -82229,7 +87084,7 @@ distribution channel. See the Solana-first rule in `CLAUDE.md`.Every major surface ranks the same way: **settled transaction count anddistinct buyers in the trailing 30 days**. Metadata quality gets us *found*(semantic search embeds our `description` fields); paid traffic gets us-*ranked*. The [autonomous x402 loop](#sec-090) already drives real+*ranked*. The [autonomous x402 loop](#sec-092) already drives realsettled canary purchases against every `autobuy: true` entry in[`api/_lib/x402/ring-catalog.js`](../api/_lib/x402/ring-catalog.js) — that loopis also our 30-day-activity keeper: the CDP Bazaar **drops resources from@@ -82396,25 +87251,25 @@ script. Everything else above updates itself.## Related-- [x402 overview](#sec-366) · [Paid endpoints reference](#sec-362) ·- [Autonomous loop](#sec-090) · [Buyer client](#sec-359)+- [x402 overview](#sec-386) · [Paid endpoints reference](#sec-382) ·+ [Autonomous loop](#sec-092) · [Buyer client](#sec-379)----<a id="sec-362"></a>+<a id="sec-382"></a>> **Source:** `docs/x402-endpoints.md` · [↑ table of contents](#table-of-contents)# x402 Paid Endpointsthree.ws exposes a catalog of HTTP endpoints that charge per call over-[x402](#sec-366): the caller hits the endpoint, receives a `402 Payment Required`+[x402](#sec-386): the caller hits the endpoint, receives a `402 Payment Required`challenge, settles a small USDC payment, and retries with an `X-PAYMENT` header toget the result. This page is the reference for **our own** paid endpoints, theirprices, and the price-override scheme.-To call these as a buyer, see [x402 buyer client](#sec-359). For the loop-that calls many of them on a schedule, see [Autonomous x402 loop](#sec-090).+To call these as a buyer, see [x402 buyer client](#sec-379). For the loop+that calls many of them on a schedule, see [Autonomous x402 loop](#sec-092).> Source: handlers under [`api/x402/`](../api/x402), pricing> [`api/_lib/x402-prices.js`](../api/_lib/x402-prices.js), shared handler@@ -82445,7 +87300,7 @@ and, when configured, **USDC on Base** (EVM) and a **BSC leg** (contract-mediate`direct` scheme, advertised only when `X402_PAY_TO_BSC` is set). On the Solanarail, `X402_ACCEPT_THREE_SOLANA` optionally advertises **$THREE** alongside USDCas a second accept entry on the same challenge. The relevant config (see-[Configuration](#sec-125)):+[Configuration](#sec-129)):| Key | Meaning || ---------------------------------------------------- | ------------------------------------ |@@ -82527,7 +87382,7 @@ deliberately not advertised in the 402 challenge or the discovery catalog; itrecirculates funds back to `X402_PAY_TO_SOLANA` to keep the closed loop balanced([ring-settle.js:18](../api/x402/ring-settle.js#L18)). The full wallet-by-walletpicture — every receiver, tip, split, treasury, and fee rate — is in the-[money map](#sec-191).+[money map](#sec-203).## Intel & oracle endpoints@@ -82597,7 +87452,7 @@ datapoints at **$0.0005** USDC each by default, overridable per family with| Endpoint | Default | Returns || ----------------------------------- | --------- | ------------------------------------------ |-| `/api/x402/agent-reputation` | $0.01 | Cross-chain 0–100 trust score for any wallet/mint/agent id ([trust primitives](#sec-283)). |+| `/api/x402/agent-reputation` | $0.01 | Cross-chain 0–100 trust score for any wallet/mint/agent id ([trust primitives](#sec-303)). || `/api/x402/agent-bouncer` | $0.01 | Access-gate decision for an agent/wallet. || `/api/x402/onchain-identity-verify` | $0.005 | Verifies an on-chain identity claim. || `/api/x402/skill-marketplace` | $0.001 | Skill listings + pricing. |@@ -82608,8 +87463,8 @@ datapoints at **$0.0005** USDC each by default, overridable per family with| Endpoint | Default | Returns || ----------------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------- |-| `/api/x402/forge` | tiered | Text/image → 3D model (price by tier; GPU-bound). Every settled generation also lands in the public community gallery (`forge_creations`) stamped with the payer, settle signature, and price; the gallery shows a Solscan-linked "x402" provenance badge. See [Avatar pipeline](#sec-095). |-| `/api/x402/embody` | $1.00 | **Embodiment.** One call, an agent buys itself a body: prompt or image in → rigged, voiced 3D avatar out, plus a durable persona id and a one-tag `<iframe>` embed for any website. Settles on delivery — a failed generation never charges. See [Embodiment](#sec-145). |+| `/api/x402/forge` | tiered | Text/image → 3D model (price by tier; GPU-bound). Every settled generation also lands in the public community gallery (`forge_creations`) stamped with the payer, settle signature, and price; the gallery shows a Solscan-linked "x402" provenance badge. See [Avatar pipeline](#sec-097). |+| `/api/x402/embody` | $1.00 | **Embodiment.** One call, an agent buys itself a body: prompt or image in → rigged, voiced 3D avatar out, plus a durable persona id and a one-tag `<iframe>` embed for any website. Settles on delivery — a failed generation never charges. See [Embodiment](#sec-152). || `/api/x402/pipeline` | per stage | **One call, full 3D asset pipeline** — text or GLB in, rigged/optimized game-ready GLB out. Ordered chain of `generate → rig → remesh → gameready → stylize`; the 402 quote is the exact sum of the requested stages. Poll free at `/api/forge?job=<id>` for per-stage progress. See [3D pipeline](#sec-003). || `/api/x402/pipeline-rig` | $0.05 | **Pipeline — Rig.** Static GLB in → animation-ready rigged GLB out (skeleton + skin weights). One paid call, durable URL. See [3D pipeline](#sec-003). || `/api/x402/pipeline-remesh` | $0.03 | **Pipeline — Remesh.** Retopologize a GLB (triangle/quad/lowpoly, repair, decimate to a face budget) with texture re-baked. GLB in → GLB out. See [3D pipeline](#sec-003). |@@ -82625,11 +87480,11 @@ datapoints at **$0.0005** USDC each by default, overridable per family with| Endpoint | Default | Returns || ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------- |-| [`/api/x402/pump-launch`](#sec-221) | $5.00 | **Pump Launcher** — deploy a brand-new pump.fun token in one paid call. No SOL, no wallet, no account: the server fronts the deploy cost and signs the create tx; you pay USDC. Optional vanity mint. Full flow + funnel in [pump-launcher.md](#sec-221). |-| [`/api/x402/vanity`](#sec-352) | $0.01–$0.50 (≤3) · $2.50–$10 (4–5, inventory-only) | **Vanity Grinder** — get a brand-new Solana address that starts with your ticker/prefix and/or ends with a suffix, for a branded token mint or agent/treasury wallet. Checks the pre-ground warehouse first for **instant delivery** (`source: "inventory"`); falls back to a live grind (`source: "ground"`) up to 3 chars. Keypair or importable BIP-39 mnemonic; nothing stored; optional `sealTo` ECIES. Full doc: [vanity.md](#sec-352). |+| [`/api/x402/pump-launch`](#sec-238) | $5.00 | **Pump Launcher** — deploy a brand-new pump.fun token in one paid call. No SOL, no wallet, no account: the server fronts the deploy cost and signs the create tx; you pay USDC. Optional vanity mint. Full flow + funnel in [pump-launcher.md](#sec-238). |+| [`/api/x402/vanity`](#sec-372) | $0.01–$0.50 (≤3) · $2.50–$10 (4–5, inventory-only) | **Vanity Grinder** — get a brand-new Solana address that starts with your ticker/prefix and/or ends with a suffix, for a branded token mint or agent/treasury wallet. Checks the pre-ground warehouse first for **instant delivery** (`source: "inventory"`); falls back to a live grind (`source: "ground"`) up to 3 chars. Keypair or importable BIP-39 mnemonic; nothing stored; optional `sealTo` ECIES. Full doc: [vanity.md](#sec-372). || [`/api/x402/vanity-verifiable`](vanity.md#tier-2--provably-fair-grinder) | $0.02–$0.40 | **Provably-fair grinder** — same grind with a signed commit–reveal receipt proving the key was ground fresh and never kept. Spec: [PROTOCOL-vanity.md](#sec-005). || [`/api/x402/vanity-premium`](vanity.md#tier-3--premium-inventory) | $1–$50 by rarity | **Premium inventory** — buy a pre-ground 4–5+ char brandable address from stock. GET lists available patterns + prices (free); `?address=…` buys via x402 and delivers the key **once** (ciphertext destroyed on delivery). Browsable at `/vanity/premium`. |-| `/api/x402/pay-by-name` | $0.001 | Resolve and pay a `@username` / `.sol` name / raw address (see [Agent wallets](#sec-063)); the paid resolve toll is $0.001, the transfer amount itself is buyer-specified. |+| `/api/x402/pay-by-name` | $0.001 | Resolve and pay a `@username` / `.sol` name / raw address (see [Agent wallets](#sec-065)); the paid resolve toll is $0.001, the transfer amount itself is buyer-specified. || `/api/x402/did` | $0.001 | Decentralized identifier resolution. || `/api/x402/three-buy` | $0.001 | Micro-buy service: one settled toll payment triggers one small, real on-chain USDC to $THREE buy funded by the micro-buy wallet (driven by the `three-buy-loop` cron). || `/api/x402/billboard` | $0.05 | Post to the on-platform billboard. |@@ -82665,7 +87520,7 @@ directory.| Endpoint | Default | Returns || ---------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `/api/x402/analytics` | $0.005 | Platform reports — pick `report=revenue` for the x402 endpoint-revenue summary (see [x402 revenue & receipts](#sec-363)), plus club and listing analytics. |+| `/api/x402/analytics` | $0.005 | Platform reports — pick `report=revenue` for the x402 endpoint-revenue summary (see [x402 revenue & receipts](#sec-383)), plus club and listing analytics. || `/api/x402/mcp-tool-catalog` | $0.001 | Snapshot of every MCP tool (name, paid/free, price, input shape) and a diff vs the last snapshot (added / removed / re-priced tools). || **Free read surfaces** | — | — || `/api/x402/my-receipts` | free | A buyer's own settled receipts, gated by a wallet signature (SIWX) rather than a payment. |@@ -82674,9 +87529,9 @@ directory.| `/api/x402/granite-health` | free | IBM Granite inference SLA feed, read from the verdicts the autonomous loop's paid 6-hourly probe writes. || `/api/x402/glb-optimization-report`| free | GLB Size Optimizer catalog feed: what the `glb-size-optimizer` autonomous-loop entry has measured. || `/api/x402/network-cost` | free | Cross-chain payment-cost recommendation feed from the hourly cross-chain-cost pipeline snapshots. |-| `/api/x402/echo` | free | httpbin for x402 — decodes your `X-PAYMENT` header (signatures redacted) and returns a local verify verdict without settling. See [x402 dev tools](#sec-360). |-| `/api/x402/debug` | free | Diagnoses a failed 402 exchange (`{challenge, payment, response}`) into an ordered `{severity, field, problem, fix}` list. See [x402 dev tools](#sec-360). |-| `/api/x402/verify-receipt` | free | Recomputes a paid response's SHA-256 attestation and confirms a settlement tx on-chain. See [x402 dev tools](#sec-360). |+| `/api/x402/echo` | free | httpbin for x402 — decodes your `X-PAYMENT` header (signatures redacted) and returns a local verify verdict without settling. See [x402 dev tools](#sec-380). |+| `/api/x402/debug` | free | Diagnoses a failed 402 exchange (`{challenge, payment, response}`) into an ordered `{severity, field, problem, fix}` list. See [x402 dev tools](#sec-380). |+| `/api/x402/verify-receipt` | free | Recomputes a paid response's SHA-256 attestation and confirms a settlement tx on-chain. See [x402 dev tools](#sec-380). |## $THREE only@@ -82687,22 +87542,22 @@ input and do not promote any specific token.## Related-- [Pump Launcher](#sec-221) — the full launch flow, inputs/outputs, and the free `symbol` → launch → `launches` funnel.-- [x402 protocol](#sec-366) — the challenge/settle mechanics.-- [x402 buyer client](#sec-359) — how to pay these endpoints in code.-- [x402 revenue & receipts](#sec-363) — where settled payments are recorded and how to read endpoint revenue.-- [Autonomous x402 loop](#sec-090) — the scheduled buyer that drives volume through these endpoints.-- [MCP tools](#sec-182) — the same capabilities exposed as paid MCP tools.+- [Pump Launcher](#sec-238) — the full launch flow, inputs/outputs, and the free `symbol` → launch → `launches` funnel.+- [x402 protocol](#sec-386) — the challenge/settle mechanics.+- [x402 buyer client](#sec-379) — how to pay these endpoints in code.+- [x402 revenue & receipts](#sec-383) — where settled payments are recorded and how to read endpoint revenue.+- [Autonomous x402 loop](#sec-092) — the scheduled buyer that drives volume through these endpoints.+- [MCP tools](#sec-192) — the same capabilities exposed as paid MCP tools.----<a id="sec-363"></a>+<a id="sec-383"></a>> **Source:** `docs/x402-revenue.md` · [↑ table of contents](#table-of-contents)# x402 Revenue & Receipts-Every time someone pays one of three.ws's [paid endpoints](#sec-362), the+Every time someone pays one of three.ws's [paid endpoints](#sec-382), thesettlement is recorded. This page is the reference for **where that money isrecorded**, how to read endpoint revenue, and how the durable receipt is issued tothe buyer.@@ -82723,9 +87578,9 @@ tables. They never overlap, and mixing them up will double-count your numbers.| Direction | Meaning | Table | Surfaced by || -------------- | ------------------------------------------------------------------------ | ---------------------- | ------------------------------------------------ || **Revenue IN** | Money paid **to** our endpoints for using them | `x402_audit_log` | `/api/x402/analytics?report=revenue` (this page) |-| **Spend OUT** | Money an agent's wallet **paid out** (tips, trades, agent-to-agent x402) | `agent_custody_events` | The [Money Pulse](#sec-190) at `/api/pulse` |+| **Spend OUT** | Money an agent's wallet **paid out** (tips, trades, agent-to-agent x402) | `agent_custody_events` | The [Money Pulse](#sec-202) at `/api/pulse` |-The [Money Pulse](#sec-190) shows the agent economy — one agent paying+The [Money Pulse](#sec-202) shows the agent economy — one agent payinganother, tips, launches. **This page is the other side of the ledger:** theplatform's own endpoint revenue. A call to `/api/x402/token-intel` writes a**revenue** row in `x402_audit_log`; it is not an `agent_custody_events` spend and@@ -82830,7 +87685,7 @@ LIMIT 10;## The revenue report — `/api/x402/analytics`You don't have to query SQL. The `analytics` endpoint serves the same numbers,-pre-aggregated. It is itself a [paid endpoint](#sec-362) ($0.005 default).+pre-aggregated. It is itself a [paid endpoint](#sec-382) ($0.005 default).It is a `POST` endpoint: pass `report` and `period` in the JSON body:```bash@@ -82892,22 +87747,88 @@ Each successful settlement also issues the buyer a durable, signed receipt```sqlCREATE TABLE x402_receipts (- id uuid PRIMARY KEY DEFAULT gen_random_uuid(),- payer text NOT NULL, -- buyer wallet- network text NOT NULL,- resource_url text NOT NULL, -- what they paid for- format text NOT NULL,- receipt jsonb NOT NULL, -- the signed receipt artifact- transaction text, -- settlement tx- issued_at timestamptz NOT NULL DEFAULT now()+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),+ payer text NOT NULL, -- buyer wallet+ network text NOT NULL,+ resource_url text NOT NULL, -- what they paid for+ format text NOT NULL,+ receipt jsonb NOT NULL, -- the signed receipt artifact+ transaction text, -- settlement tx+ amount_atomics text, -- what it cost (atomic units)+ asset text, -- the settlement asset (USDC mint/contract)+ issued_at timestamptz NOT NULL DEFAULT now());```A buyer reads **their own** receipts at-[`/api/x402/my-receipts`](#sec-362) — that endpoint is free but gated by+[`/api/x402/my-receipts`](#sec-382) — that endpoint is free but gated bya wallet signature (SIWX), so a buyer proves ownership of the `payer` addressrather than paying again.+### The signed artifact vs. our row++These are two different things and the difference matters:++- **The signed artifact** (`receipt` column) follows the x402 Offer & Receipt+ spec §5.1. It carries no amount at all, and it omits `transaction` entirely+ whenever the endpoint declares `includeTxHash: false`, the spec §5.2 privacy+ default. That is what goes out on the wire, and it is what a third party+ verifies against our issuer key.+- **The row** is our own audit trail. It records the settlement tx and the+ amount/asset we already had in hand at issue time, even when the artifact+ omits them. The wire format and its privacy properties are unchanged; these+ columns are only ever returned to the wallet that signed for its own+ receipts.++Receipts written before 2026-07-28 have `amount_atomics` and `asset` null. The+Receipt Vault reports that honestly ("2 of 3 priced") rather than+under-reporting a total.++### Verifying a receipt++The issuer signs with an Ed25519 JWK (`OFFER_RECEIPT_FORMAT=jws`); the `kid` is+`did:web:three.ws#key-1`, and the public key is published at+[`https://three.ws/.well-known/did.json`](https://three.ws/.well-known/did.json)+(served by [`api/x402/did.js`](../api/x402/did.js)). Anyone holding a receipt+can resolve that DID document and verify the signature without trusting us.+When neither `OFFER_RECEIPT_JWK` (jws) nor+`OFFER_RECEIPT_SIGNING_PRIVATE_KEY` (eip712) is set, no receipts are issued or+stored at all: the x402 wire format stays valid, the extension is purely+additive.++### The buyer's view: `/receipts`++[`/receipts`](https://three.ws/receipts) is the Receipt Vault: the buyer-facing+UI over `/api/x402/my-receipts`. Connect a Solana or EVM wallet, sign one+read-only message, and every receipt ever issued to that wallet is listed with+its endpoint, amount, network, and settlement tx (explorer-linked), plus a+per-receipt JSON download of the full signed artifact and a CSV export.++The signing message is a fixed four-line string and must stay byte-identical on+both sides. [`src/receipts-lib.js`](../src/receipts-lib.js)+`buildReceiptsMessage()` and [`api/x402/my-receipts.js`](../api/x402/my-receipts.js)+`buildExpectedMessage()`:++```+three.ws x402 receipts read+Network: solana+Address: <base58 pubkey, verbatim>+Issued At: <ISO timestamp>+```++EVM addresses are lower-cased in the message (matching how the storage layer+normalizes them); Solana base58 is case-sensitive and stays verbatim. The+signature is valid for 5 minutes server-side. Fetch it yourself:++```bash+# after signing the message above with the payer wallet+curl -s "https://three.ws/api/x402/my-receipts?\+address=$ADDRESS&signature=$SIGNATURE&issuedAt=$ISSUED_AT&network=solana&limit=50"+```++`/receipts` is the buyer-side mirror of `/x402-revenue`: that page is what the+platform earns, this one is what a given wallet spent.+### Anti-replay — `bsc_consumed_tx`For BSC direct-scheme settlements (where there is no facilitator and the buyer@@ -82965,7 +87886,7 @@ endpoint is up). Add an endpoint to `api/_lib/x402/ring-catalog.js` with> on-chain — but the _demand_ is synthetic: it is the platform paying itself, a> liveness canary, not external buyers. It is legitimate as **synthetic> monitoring** (proving every paid endpoint is live) and is bounded small by-> design (see the budget knobs in [Autonomous x402 loop](#sec-090)).+> design (see the budget knobs in [Autonomous x402 loop](#sec-092)).> It is **not** marketplace demand. Any headline "marketplace volume" or> facilitator-ranking number we publish must **exclude the seed wallet's own> calls** — filter `x402_audit_log` by `payer` to separate organic settlements@@ -82973,7 +87894,7 @@ endpoint is up). Add an endpoint to `api/_lib/x402/ring-catalog.js` with> volume is wash volume: real transactions, fake demand, and trivially detectable> by anyone clustering the seed wallet on-chain. The honest path to real volume> is external demand (discovery, real `agent_hire` commerce, the-> [Circulation engine](#sec-116)), not a bigger self-paid sweep.+> [Circulation engine](#sec-120)), not a bigger self-paid sweep.---@@ -83032,8 +87953,8 @@ kept). EVM/Base settlements are `skipped_non_solana` (not verified here).## Driving volume through these endpointsRevenue only exists if the endpoints get called. Two systems drive **organic**-calls: the [Circulation engine](#sec-116) drives real-agent-to-agent commerce, and the [Autonomous x402 loop](#sec-090)'s+calls: the [Circulation engine](#sec-120) drives real+agent-to-agent commerce, and the [Autonomous x402 loop](#sec-092)'soracle/sniper pipelines pay our intel endpoints to feed real downstreamdecisions. Both settle **real** USDC through the flow above, from realcounterparties.@@ -83049,15 +87970,15 @@ settled activity (include it), and label it as such.## Related-- [x402 paid endpoints](#sec-362) — the catalog of what charges and how much.-- [x402 protocol](#sec-366) — the challenge / verify / settle mechanics.-- [x402 buyer client](#sec-359) — how to settle a 402 challenge in code.-- [Autonomous x402 loop](#sec-090) — the scheduled buyer that drives volume, including the Volume Bootstrap Loop and the reconciliation job.-- [Money feed](#sec-190) — the agent-spend side of the ledger (the Money Pulse), distinct from endpoint revenue.+- [x402 paid endpoints](#sec-382) — the catalog of what charges and how much.+- [x402 protocol](#sec-386) — the challenge / verify / settle mechanics.+- [x402 buyer client](#sec-379) — how to settle a 402 challenge in code.+- [Autonomous x402 loop](#sec-092) — the scheduled buyer that drives volume, including the Volume Bootstrap Loop and the reconciliation job.+- [Money feed](#sec-202) — the agent-spend side of the ledger (the Money Pulse), distinct from endpoint revenue.----<a id="sec-364"></a>+<a id="sec-384"></a>> **Source:** `docs/x402-ring-economy.md` · [↑ table of contents](#table-of-contents)@@ -83107,6 +88028,32 @@ measured 6,300-7,800 self-pay cost) per call. Consequences:- Only at or below the floor does the tick skip with `runway_exhausted` (onethrottled ops alert), the loud "fund the payer" signal.+### The sponsor governor: watching the wallet that actually starves++`governedCalls()` watches the ring **payer's** SOL, but the outage of 2026-07-28+came from a different wallet: the facilitator's sponsor fee wallet+(`X402_FEE_PAYER_SOLANA`), which co-signs every sponsored settle at roughly+5,000 lamports each. The tick had no view of it, so the first symptom was every+settle dying with `fee_wallet_below_floor` and the ring stopping cold mid-tick.++`sponsorGovernor()` (same module) gives the tick that view, with three regimes:++- **Balance unreadable (RPC blip):** pass through untouched. The facilitator+ fail-closes at settle time, so guessing zero here would turn a transient read+ failure into a self-inflicted outage.+- **Below the hard floor (`X402_SPONSOR_SOL_FLOOR_LAMPORTS`):** skip the whole+ tick with reason `sponsor_fee_wallet_floor`. Every sponsored settle is+ guaranteed to be refused; firing them is pure error noise.+- **Above the floor:** taper the call rate so the sponsor's spendable SOL lasts+ `X402_RING_SPONSOR_RUNWAY_DAYS` (default 1) at+ `X402_RING_SPONSOR_FEE_PER_SETTLE_LAMPORTS` (default 6,000) per settle, with+ the same heartbeat semantics as the payer governor. While tapering, the tick+ logs `fee_wallet_runway_low` and raises one throttled ops alert — the+ pre-starvation signal, hours before `fee_wallet_below_floor` would appear.+ The treasury-topup reclaim (`reclaimIdleSol` / `reclaimIdleAgentSol`) usually+ refills the sponsor within a cycle; the alert persisting is the cue to fund+ the economy master.+### The wallet fee governor: metering the wallet, not the pipeline`governedCalls()` throttles the **ring tick only**, but the fee-paying wallets@@ -83365,6 +88312,79 @@ then kept in a verified, watched, auto-fundable state:Generates the role wallets, writes secrets to a gitignored file, prints the envblock. Never funds anything.+## One signature, one payment++A settlement is only real if it has its own on-chain transaction. Enforcing that+turns out to be less obvious than it sounds, and getting it wrong overstated our+own books for three weeks.++**What went wrong.** Ed25519 signatures are deterministic: sign identical+transaction bytes with the same key and you get the same signature. Two ring+payments with the same payer, recipient, mint and amount, built against one+shared tick blockhash with the same fee configuration, compile to *the same+transaction*. Only one can land; the rest are rejected by the network as already+processed. The facilitator treated that rejection as an idempotent retry of the+payment in hand and reported success — so several distinct payments were+credited against a single transfer.++Measured on mainnet 2026-07-28, before the fix:++| | |+| --- | --- |+| Credited settle rows | 59,271 |+| Distinct signatures | 46,597 |+| Rows sharing a signature | 12,674 (21.4%) |+| USDC the log implied | 1,103.444 |+| USDC actually moved | 1,027.424 |++Two sampled transactions each carried exactly **one** SPL transfer of 1,000+atomic units while **nine** settle rows, with nine distinct idempotency keys and+timestamps seconds apart, were credited against them.++**The fix, in three layers.**++1. **Atomic credit at settle.** A successful broadcast is no longer a settled+ payment. [`settle-credit.js`](../api/_lib/x402/settle-credit.js) claims the+ credit for a signature, and only the winner is credited. A retry carrying the+ *same* idempotency key is recognised as an idempotent replay and answered+ with success without double-counting the fee; anything else is refused with+ `signature_already_settled`, so the service is not delivered against a+ transfer that settled a different payment. With the database unreachable the+ claim fails **closed** (`settle_credit_unavailable`) — a refused settle is+ retryable, whereas a wrongly-granted one is not recoverable.++2. **A database constraint, not just code.** Migration+ `20260729000000_x402_settle_sig_unique.sql` adds a partial unique index over+ `tx_sig`. That index, not the pre-check, is what makes concurrent claims safe:+ the credit insert runs `ON CONFLICT DO NOTHING`, so of any set of simultaneous+ settles sharing a signature exactly one wins. The constraint is scoped by a+ `credit_gated` marker column rather than a timestamp, because a migration+ cannot know when its deploy will actually land — history is excluded by+ construction and the rule takes effect precisely when the new code starts+ serving.++3. **Stop building identical transactions.** [`pay.js`](../api/_lib/x402/pay.js)+ previously perturbed the priority fee from a 997-slot per-process counter that+ started at the same value on every instance, so two instances paying the same+ endpoint in one blockhash window produced identical bytes. It now draws from+ ~4.08M slots with a CSPRNG, varying the **compute-unit limit** as well as the+ price. The limit dimension is free: priority fee is `price × limit / 1e6`, so+ at the baseline 5 µlamports even the top of the range floors to zero lamports,+ and unused compute units are not billed. Sponsor mode, which sits exactly at+ the 10,000-lamport ceiling, is restricted to the price slots that still floor+ to zero.++**Proving it stays fixed.** The `settle-signature-audit` pipeline+([source](../api/_lib/x402/pipelines/settle-signature-audit.js)) runs hourly,+free and read-only, and alerts if a single gated signature is ever credited+twice. It also reports the gate's own refusals: a non-zero duplicate-refusal+count is the gate *working*, while a sharp rise means payer-side entropy has+regressed and buyers are eating avoidable retries.++Pre-fix history is deliberately left intact. Those duplicates are real and+published; `scripts/x402-milestone-stats.mjs` prints a warning with both figures+so nobody quotes the row count as an on-chain transaction count.+## Reconciliation — proving every ring dollar on-chainThe daily [revenue reconciler](../api/_lib/x402/revenue-reconciliation.js) proves@@ -83983,7 +89003,7 @@ curl -s -H "Authorization: Bearer $CRON_SECRET" \- [/admin/ring](../pages/admin/ring.html) + [api/admin/ring-dashboard.js](../api/admin/ring-dashboard.js) — the operator dashboard (above)- [/api/x402-revenue](../api/x402-revenue.js) — the **public** organic-revenuefeed (self-cycled ring volume is excluded from the "organic" framing here)-- [docs/x402-revenue.md](#sec-363) — revenue surface docs+- [docs/x402-revenue.md](#sec-383) — revenue surface docs- [api/_lib/x402/ring-allowlist.js](../api/_lib/x402/ring-allowlist.js) — thecontrolled-wallet set + spend invariants- [api/cron/x402-ring-leak-scan.js](../api/cron/x402-ring-leak-scan.js) — the@@ -83991,7 +89011,7 @@ curl -s -H "Authorization: Bearer $CRON_SECRET" \----<a id="sec-365"></a>+<a id="sec-385"></a>> **Source:** `docs/x402-studio.md` · [↑ table of contents](#table-of-contents)@@ -84001,11 +89021,11 @@ x402 Studio is the merchant console for running a paid x402 business on three.wsPage: [/x402/studio](https://three.ws/x402/studio)-APIs: `/api/x402-merchant` (settings), `/api/x402-skus` (products), `/api/sns` (name resolution), `/api/x402/pay-by-name` (USDC send). See [x402: paid agent skills](#sec-366) for the underlying payment protocol.+APIs: `/api/x402-merchant` (settings), `/api/x402-skus` (products), `/api/sns` (name resolution), `/api/x402/pay-by-name` (USDC send). See [x402: paid agent skills](#sec-386) for the underlying payment protocol.## Why it exists-x402 turns any HTTP endpoint into a paid one: the server answers `402 Payment Required` with a manifest, the caller pays in USDC, and the call retries and settles. That primitive is powerful but low-level. Studio is the console on top of it, the difference between "you can hand-write a 402 challenge" and "you can run a storefront." A merchant configures once and gets hosted checkout links, a shareable storefront, a copy-paste pay button, revenue stats, and payouts to a wallet they control, without writing payment code. It is the seller-facing companion to the [x402 buyer client](#sec-359) and the [paid endpoint catalog](#sec-362).+x402 turns any HTTP endpoint into a paid one: the server answers `402 Payment Required` with a manifest, the caller pays in USDC, and the call retries and settles. That primitive is powerful but low-level. Studio is the console on top of it, the difference between "you can hand-write a 402 challenge" and "you can run a storefront." A merchant configures once and gets hosted checkout links, a shareable storefront, a copy-paste pay button, revenue stats, and payouts to a wallet they control, without writing payment code. It is the seller-facing companion to the [x402 buyer client](#sec-379) and the [paid endpoint catalog](#sec-382).## How it works@@ -84091,16 +89111,16 @@ const { tx_base64, blockhash } = await res.json();## Related-- [x402: paid agent skills](#sec-366): the payment protocol Studio sits on top of-- [x402 revenue and receipts](#sec-363): where settled payments are recorded-- [x402 paid endpoints](#sec-362): the platform's own catalog of paid endpoints-- [x402 buyer client](#sec-359): the caller side of a 402 challenge-- [x402 developer tools](#sec-360) and [x402 distribution](#sec-361)+- [x402: paid agent skills](#sec-386): the payment protocol Studio sits on top of+- [x402 revenue and receipts](#sec-383): where settled payments are recorded+- [x402 paid endpoints](#sec-382): the platform's own catalog of paid endpoints+- [x402 buyer client](#sec-379): the caller side of a 402 challenge+- [x402 developer tools](#sec-380) and [x402 distribution](#sec-381)- Pages: [/x402/studio](https://three.ws/x402/studio) · [/x402](https://three.ws/x402)----<a id="sec-366"></a>+<a id="sec-386"></a>> **Source:** `docs/x402.md` · [↑ table of contents](#table-of-contents)@@ -84114,7 +89134,7 @@ of Pump.fun agent payments: callers pay an agent in any SPL token to invoke askill, and the agent verifies the on-chain payment before dispatching thecall. It is written for developers wiring paid skills (server side) or payingfor them (client side); the platform's own catalog of paid endpoints lives at-[x402 paid endpoints](#sec-362).+[x402 paid endpoints](#sec-382).**Live activity:** [x402scan dashboard](https://www.x402scan.com/server/17cbd874-52ac-4920-a020-b22ff2489a07)— browse paid calls, revenue, and per-skill pricing for this server.@@ -84270,20 +89290,20 @@ Each package has its own repository with a full README, API reference, and examp## Tutorials-- [Pay for an x402 service](#sec-315) — settle a paid request end to end with `@three-ws/x402-fetch`.-- [Build a paid x402 endpoint](#sec-314) — stand up a seller endpoint with `@three-ws/x402-server`.+- [Pay for an x402 service](#sec-335) — settle a paid request end to end with `@three-ws/x402-fetch`.+- [Build a paid x402 endpoint](#sec-334) — stand up a seller endpoint with `@three-ws/x402-server`.## Related-- [x402 paid endpoints](#sec-362) — the catalog of the platform's own paid endpoints.-- [x402 revenue & receipts](#sec-363) — where settled payments are recorded and how to read endpoint revenue.-- [x402 buyer client](#sec-359) — how to settle a 402 challenge in code.-- [x402 bazaar over MCP](#sec-183) — discover and pay endpoints through the MCP bazaar.-- [Autonomous x402](#sec-090) — agents paying for services on their own.+- [x402 paid endpoints](#sec-382) — the catalog of the platform's own paid endpoints.+- [x402 revenue & receipts](#sec-383) — where settled payments are recorded and how to read endpoint revenue.+- [x402 buyer client](#sec-379) — how to settle a 402 challenge in code.+- [x402 bazaar over MCP](#sec-193) — discover and pay endpoints through the MCP bazaar.+- [Autonomous x402](#sec-092) — agents paying for services on their own.----<a id="sec-367"></a>+<a id="sec-387"></a>> **Source:** `docs/zauth/database.md` · [↑ table of contents](#table-of-contents)@@ -84429,7 +89449,7 @@ Use this endpoint to browse all known x402 endpoints before your agents commit t----<a id="sec-368"></a>+<a id="sec-388"></a>> **Source:** `docs/zauth/index.md` · [↑ table of contents](#table-of-contents)@@ -84449,11 +89469,11 @@ zauth is the security and trust layer that allows agents to act with confidence,## Products-### [VectorAI-powered vulnerability scanner. Automated recon, multi-category exploit testing, and detailed security reports for your web applications.Vector](#sec-371)### [RepoScanAI-powered code analysis for crypto communities. Scan GitHub repos for red flags, get trust scores, and compare code similarity across millions of repositories.RepoScan](#sec-370)### [DatabaseLive registry of x402 endpoints. AI agents continuously test and verify endpoints, tracking success rates, pricing, and response data.Database](#sec-367)### [Provider HubManage your x402 endpoints. Monitor health, track agent interactions, configure refunds, and verify your services through our SDK.Provider Hub](#sec-369)+### [VectorAI-powered vulnerability scanner. Automated recon, multi-category exploit testing, and detailed security reports for your web applications.Vector](#sec-391)### [RepoScanAI-powered code analysis for crypto communities. Scan GitHub repos for red flags, get trust scores, and compare code similarity across millions of repositories.RepoScan](#sec-390)### [DatabaseLive registry of x402 endpoints. AI agents continuously test and verify endpoints, tracking success rates, pricing, and response data.Database](#sec-387)### [Provider HubManage your x402 endpoints. Monitor health, track agent interactions, configure refunds, and verify your services through our SDK.Provider Hub](#sec-389)----<a id="sec-369"></a>+<a id="sec-389"></a>> **Source:** `docs/zauth/provider-hub.md` · [↑ table of contents](#table-of-contents)@@ -84555,7 +89575,7 @@ Supply your EVM or Solana private keys to enable automatic refunds when your end----<a id="sec-370"></a>+<a id="sec-390"></a>> **Source:** `docs/zauth/reposcan.md` · [↑ table of contents](#table-of-contents)@@ -84881,7 +89901,7 @@ TypeScript -@x402/fetch----<a id="sec-371"></a>+<a id="sec-391"></a>> **Source:** `docs/zauth/vector.md` · [↑ table of contents](#table-of-contents)diff --git a/docs/agent-system.md b/docs/agent-system.mdindex ee0276eec..442323db7 100644--- a/docs/agent-system.md+++ b/docs/agent-system.md@@ -376,7 +376,7 @@ The minimum manifest to run an agent:"name": "Aria","description": "A helpful 3D guide for my product","body": {- "uri": "https://example.com/aria.glb",+ "uri": "https://three.ws/avatars/michelle.glb","format": "gltf-binary"},"brain": {diff --git a/docs/api-reference.md b/docs/api-reference.mdindex 82c6a77d6..46567c7a1 100644--- a/docs/api-reference.md+++ b/docs/api-reference.md@@ -65,8 +65,8 @@ Returns all of the authenticated user's agents (oldest first, no pagination). Re"id": "abc123","name": "Aria","description": "Product guide",- "avatar_url": "https://cdn.example.com/aria.glb",- "thumbnail_url": "https://cdn.example.com/aria.png",+ "avatar_url": "https://three.ws/avatars/default.glb",+ "thumbnail_url": "https://three.ws/avatars/thumbs/default.png","creator_address": "0xabc...","created_at": "2025-01-15T10:00:00Z","chain_id": 8453,@@ -2288,8 +2288,8 @@ Paginated search over ERC-8004 registered agents. No auth required."id": "onchain_abc","name": "Aria","description": "Product guide",- "avatar_url": "https://cdn.example.com/aria.glb",- "thumbnail_url": "https://cdn.example.com/aria.png",+ "avatar_url": "https://three.ws/avatars/default.glb",+ "thumbnail_url": "https://three.ws/avatars/thumbs/default.png","chain_id": 8453,"chain_agent_id": 42,"registered_at": "2025-01-15T10:00:00Z",diff --git a/docs/ar.md b/docs/ar.mdindex 2bdaec4d0..f5d001f66 100644--- a/docs/ar.md+++ b/docs/ar.md@@ -378,12 +378,15 @@ import { WebXRSession } from '/src/ar/webxr.js';// iOS: Quick Look takes a USDZ, not a GLB (bake one with// glbBlobToAnimatedUsdzBlob / glbBlobToUsdzBlob, see the USDZ pipeline above)if (canUseQuickLook()) {- openQuickLook('https://cdn.example.com/model.usdz');+ const glbBlob = await fetch('https://three.ws/avatars/cesium-man.glb').then((r) => r.blob());+ const { glbBlobToUsdzBlob } = await import('/src/usdz-pipeline.js');+ const usdzBlob = await glbBlobToUsdzBlob(glbBlob);+ openQuickLook(URL.createObjectURL(usdzBlob));}// Android: Scene Viewer takes the GLB URLelse if (canUseSceneViewer()) {- openSceneViewer('https://cdn.example.com/model.glb', {+ openSceneViewer('https://three.ws/avatars/cesium-man.glb', {title: 'My Agent',link: 'https://three.ws',});diff --git a/docs/forged.md b/docs/forged.mdindex 74c583e4f..c9f026506 100644--- a/docs/forged.md+++ b/docs/forged.md@@ -89,7 +89,7 @@ The response carries the props plus aggregate stats:"category": "container","tier": "standard","status": "done",- "glb_url": "https://cdn.example/props/….glb",+ "glb_url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/nvidia/5ab878cd-513d-4fb6-94b8-d389f7d7e433.glb","novelty": 0.41,"cluster_id": 3,"price_usdc": 0.05,@@ -97,7 +97,7 @@ The response carries the props plus aggregate stats:"payer_short": "7skQxs…9fWn","tx_sig": "5Yw…settlement signature…","explorer_url": "https://solscan.io/tx/5Yw…",- "viewer_url": "/app?src=https%3A%2F%2Fcdn.example%2Fprops%2F….glb"+ "viewer_url": "/app?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fnvidia%2F5ab878cd-513d-4fb6-94b8-d389f7d7e433.glb"}],"stats": {diff --git a/docs/introduction.md b/docs/introduction.mdindex 30ed3897f..6c80b5c3b 100644--- a/docs/introduction.md+++ b/docs/introduction.md@@ -181,7 +181,7 @@ The minimum to get a three.ws on screen is two lines of HTML:```html<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>-<agent-3d body="https://example.com/avatar.glb"></agent-3d>+<agent-3d body="https://three.ws/avatars/michelle.glb"></agent-3d>```This loads your GLB file into a viewer with orbit controls, auto-sized to its container. No server, no build step, no API key required for a basic viewer.@@ -190,7 +190,7 @@ To add an AI brain:```html<agent-3d- body="https://example.com/avatar.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-sonnet-4-6"key-proxy="/api/llm"instructions="You are Aria, a helpful product guide."diff --git a/docs/pay-skills-listing.md b/docs/pay-skills-listing.mdindex 32d156e5f..a70d00abe 100644--- a/docs/pay-skills-listing.md+++ b/docs/pay-skills-listing.md@@ -47,7 +47,7 @@ const fetchWithPayment = withPaymentInterceptor(fetch, wallet);// Check a 3D modelconst res = await fetchWithPayment(- "https://three.ws/api/x402/model-check?url=https://example.com/model.glb"+ "https://three.ws/api/x402/model-check?url=https://three.ws/avatars/cesium-man.glb");const { model, suggestions } = await res.json();diff --git a/docs/quick-start.md b/docs/quick-start.mdindex 1d1f93cd1..085ea0925 100644--- a/docs/quick-start.md+++ b/docs/quick-start.md@@ -113,7 +113,7 @@ GLB is the best choice for embeds: one file, no CORS complexity, maximum compati<agent-3d body="./models/my-character.glb"></agent-3d><!-- Absolute URL — the server must send permissive CORS headers -->-<agent-3d body="https://assets.example.com/my-character.glb"></agent-3d>+<agent-3d body="https://three.ws/avatars/michelle.glb"></agent-3d>```See the [CORS gotcha](#cors) below if your GLB is on a different domain.diff --git a/docs/spatial-mcp.md b/docs/spatial-mcp.mdindex e1f98e239..ae4683a76 100644--- a/docs/spatial-mcp.md+++ b/docs/spatial-mcp.md@@ -17,10 +17,10 @@ Put the artifact in your tool result's `structuredContent`. Only `spatialMcpVersimport { buildSpatialArtifact } from './spatial-mcp.js';const spatial = buildSpatialArtifact({- glbUrl: 'https://cdn.example.com/model.glb', // https .glb — required- kind: 'model', // model | mesh | avatar | rigged-model | scene- viewerUrl: 'https://example.com/viewer?src=…',- prompt: 'a battle-worn sci-fi helmet',+ glbUrl: 'https://three.ws/avatars/xbot.glb', // https .glb (required)+ kind: 'rigged-model', // model | mesh | avatar | rigged-model | scene+ viewerUrl: 'https://three.ws/app#model=https://three.ws/avatars/xbot.glb',+ prompt: 'a sci-fi robot',});return {@@ -51,7 +51,7 @@ Agents can validate over MCP without importing anything:```jsonc// tools/call → validate_spatial_response{ "artifact": { "spatialMcpVersion": "0.1", "kind": "model",- "scene": { "glbUrl": "https://cdn.example.com/model.glb", "format": "glb" } } }+ "scene": { "glbUrl": "https://three.ws/avatars/xbot.glb", "format": "glb" } } }// → structuredContent: { valid: true, errors: [], warnings: [...] }```@@ -61,7 +61,7 @@ If your existing 3D tool returns some other shape, a tiny adapter makes it confo```js// Your tool already returns something like this:-const foreign = { model_url: 'https://cdn.example.com/model.glb', thumbnail: null, name: 'A helmet' };+const foreign = { model_url: 'https://three.ws/avatars/xbot.glb', thumbnail: null, name: 'A robot' };// A 6-line adapter → conformant artifact:function toSpatialArtifact(f) {diff --git a/docs/tutorials/import-avatar-url.md b/docs/tutorials/import-avatar-url.mdindex 8ceab506b..0cb5004ae 100644--- a/docs/tutorials/import-avatar-url.md+++ b/docs/tutorials/import-avatar-url.md@@ -11,7 +11,7 @@ This tutorial walks the URL-import path end to end. It's the sibling of [Upload## What you're building```-You: paste https://models.example-cdn.com/64c3….glb into /import/rpm+You: paste https://three.ws/avatars/michelle.glb into /import/rpm↓ server fetches the file (no CORS to fight)↓ humanoid bones canonicalized → idle/walk clips will play↓ stored on the three.ws CDN as an avatar recorddiff --git a/docs/tutorials/paid-x402-endpoint.md b/docs/tutorials/paid-x402-endpoint.mdindex 457e09e28..538f72d6c 100644--- a/docs/tutorials/paid-x402-endpoint.md+++ b/docs/tutorials/paid-x402-endpoint.md@@ -405,7 +405,7 @@ const wallet = createWalletClient({const fetchPaid = wrapFetchWithPayment(fetch, wallet);const url = `http://localhost:3000/api/model-check?url=${encodeURIComponent(- 'https://three.ws/avatar/character-studio/sample.glb',+ 'https://three.ws/avatars/cesium-man.glb',)}`;const res = await fetchPaid(url);@@ -486,7 +486,7 @@ function send402(res, resourceUrl, extra = {}) {input: {type: 'http',method: 'GET',- queryParams: { url: 'https://three.ws/avatar/character-studio/sample.glb' },+ queryParams: { url: 'https://three.ws/avatars/cesium-man.glb' },queryParamsSchema: {$schema: 'https://json-schema.org/draft/2020-12/schema',type: 'object',@@ -499,12 +499,12 @@ function send402(res, resourceUrl, extra = {}) {output: {type: 'json',example: {- url: 'https://three.ws/avatar/character-studio/sample.glb',- fetchedBytes: 1572864,+ url: 'https://three.ws/avatars/cesium-man.glb',+ fetchedBytes: 438044,counts: {- scenes: 1, nodes: 18, meshes: 6, materials: 4,- textures: 3, animations: 1, totalVertices: 12480,- totalTriangles: 24812,+ scenes: 1, nodes: 22, meshes: 1, materials: 1,+ textures: 1, animations: 1, totalVertices: 3273,+ totalTriangles: 4672,},},},@@ -608,7 +608,7 @@ export async function check_model({ glb_url }, ctx) {}```-Load the skill into your agent, ask "is this model too heavy for mobile? https://example-cdn/your-asset.glb", and watch the agent pay $0.001 mid-conversation and reply with concrete numbers.+Load the skill into your agent, ask "is this model too heavy for mobile? https://three.ws/avatars/cesium-man.glb", and watch the agent pay $0.001 mid-conversation and reply with concrete numbers.The settlement is real. The receiver wallet (your endpoint's `X402_PAY_TO_BASE`) is credited. The buyer (your agent's operator wallet) is debited. Both sides see the transfer on-chain.diff --git a/docs/tutorials/pay-for-x402-service.md b/docs/tutorials/pay-for-x402-service.mdindex 4f445e274..5a0c2c1ae 100644--- a/docs/tutorials/pay-for-x402-service.md+++ b/docs/tutorials/pay-for-x402-service.md@@ -137,7 +137,7 @@ Then pay for any endpoint:```jsconst out = await window.X402.pay({endpoint: 'https://three.ws/api/x402/model-check?url=' +- encodeURIComponent('https://three.ws/avatar/character-studio/sample.glb'),+ encodeURIComponent('https://three.ws/avatars/cesium-man.glb'),method: 'GET',merchant: 'three.ws',action: 'Model Check',diff --git a/docs/tutorials/personal-ai-site.md b/docs/tutorials/personal-ai-site.mdindex 585b6f09b..d3c33325d 100644--- a/docs/tutorials/personal-ai-site.md+++ b/docs/tutorials/personal-ai-site.md@@ -257,7 +257,7 @@ Here is the full page. Replace the placeholder values in brackets and swap in yo<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script><agent-3did="maya"- body="https://yourname.com/avatars/maya.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-opus-4-7"style="height: calc(100% - 130px); display: block"></agent-3d>@@ -381,8 +381,8 @@ When a visitor asks to see or look at a project, call `load_project`with the matching URL.Project model URLs:-- Acme Dashboard: https://yourname.com/models/acme-dashboard.glb-- Health App AR: https://yourname.com/models/health-ar.glb+- Studio Scene: https://three.ws/avatars/studio.glb+- Fox Mascot: https://three.ws/avatars/fox.glb````handlers.js`:@@ -399,13 +399,13 @@ Install it by adding the `skills` attribute to the element (or a `skills` entry```html<agent-3did="maya"- body="https://yourname.com/avatars/maya.glb"+ body="https://three.ws/avatars/michelle.glb"brain="claude-opus-4-7"skills="https://yourname.com/skills/load-project/"></agent-3d>```-Now when a visitor says "show me the health app", the agent calls `load_project`, which calls `ctx.loadGLB()` on the scene controller, swapping the avatar's environment for the project model. The full authoring reference (context API, sandboxing, publishing) is in the [Skills system](/docs/skills) doc, and [Build a custom skill](/docs/tutorials/custom-skill) walks through a bundle end to end.+Now when a visitor says "show me the studio scene", the agent calls `load_project`, which calls `ctx.loadGLB()` on the scene controller, swapping the avatar's environment for the project model. The full authoring reference (context API, sandboxing, publishing) is in the [Skills system](/docs/skills) doc, and [Build a custom skill](/docs/tutorials/custom-skill) walks through a bundle end to end.---diff --git a/docs/tutorials/view-in-ar.md b/docs/tutorials/view-in-ar.mdindex d9cf0dd98..0120d1d00 100644--- a/docs/tutorials/view-in-ar.md+++ b/docs/tutorials/view-in-ar.md@@ -82,7 +82,7 @@ There are three ways to offer AR from your own page, depending on how you embed.</script><three-ws-viewer- src="https://three.ws/cdn/your-model.glb"+ src="https://three.ws/avatars/michelle.glb"ar></three-ws-viewer>```diff --git a/docs/viewer.md b/docs/viewer.mdindex 2eab4807e..78b2d2335 100644--- a/docs/viewer.md+++ b/docs/viewer.md@@ -28,13 +28,13 @@ Core capabilities:The `src` attribute (or `body` for direct GLB URIs) on `<agent-3d>` loads a model on mount:```html-<agent-3d src="https://example.com/avatar.glb"></agent-3d>+<agent-3d src="https://three.ws/avatars/michelle.glb"></agent-3d>```For the standalone viewer page, pass the model via URL hash:```-https://three.ws/app#model=https://example.com/avatar.glb+https://three.ws/app#model=https://three.ws/avatars/michelle.glb```### Programmatically@@ -43,7 +43,7 @@ Set the `src` (or `body`) attribute on the element; a change to either triggers```jsconst el = document.querySelector('agent-3d');-el.setAttribute('src', 'https://example.com/new-model.glb');+el.setAttribute('src', 'https://three.ws/avatars/xbot.glb');```Or drive the underlying `Viewer` instance directly. Its `load(url, rootPath, assetMap, onProgress)` method accepts HTTPS URLs, blob URLs, and data URIs.@@ -315,7 +315,7 @@ A `?agent=<id>` query parameter (not hash) opens the same page in editing mode wExample: load a specific model with a fixed camera position:```-https://three.ws/app#model=https://cdn.example.com/robot.glb&cameraPosition=0,1.2,2.5+https://three.ws/app#model=https://three.ws/avatars/xbot.glb&cameraPosition=0,1.2,2.5```---diff --git a/packages/glb-tools/README.md b/packages/glb-tools/README.mdindex 348c8e921..635757b93 100644--- a/packages/glb-tools/README.md+++ b/packages/glb-tools/README.md@@ -75,9 +75,9 @@ Inspect any public GLB — exact stats, no viewer:```jsimport { inspect } from '@three-ws/glb-tools';-const report = await inspect('https://three.ws/avatar/character-studio/sample.glb');+const report = await inspect('https://three.ws/avatars/cesium-man.glb');-console.log(report.model.counts.totalTriangles); // → 24812+console.log(report.model.counts.totalTriangles); // → 4672console.log(report.model.counts.skins > 0); // → true (rigged)report.suggestions.forEach((s) => console.log(`[${s.severity}] ${s.message}`));```diff --git a/packages/spatial-mcp/README.md b/packages/spatial-mcp/README.mdindex cf8e17f6a..ef161f02c 100644--- a/packages/spatial-mcp/README.md+++ b/packages/spatial-mcp/README.md@@ -22,10 +22,10 @@ Put the artifact in your MCP tool result's `structuredContent`. Only `spatialMcpimport { buildSpatialArtifact } from '@three-ws/spatial-mcp';const spatial = buildSpatialArtifact({- glbUrl: 'https://cdn.yoursite.example/models/helmet.glb',- kind: 'model',- prompt: 'a battle-worn sci-fi helmet',- title: 'Battle-worn helmet',+ glbUrl: 'https://three.ws/avatars/xbot.glb',+ kind: 'rigged-model',+ prompt: 'a sci-fi robot',+ title: 'Sci-fi robot',});return {diff --git a/public/changelog.json b/public/changelog.jsonindex d5999c2dc..60744d7de 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T03:20:42.797Z",+ "generated_at": "2026-07-30T03:25:12.512Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -16,6 +16,17 @@"fix"]},+ {+ "date": "2026-07-30",+ "type": "update",+ "title": "Every code sample in the docs now points at a real, loadable 3D model",+ "summary": "Docs, tutorials, and package READMEs previously used made-up model URLs (example.com GLBs and dead three.ws paths) that failed if you copied the code. Every sample now references a real avatar from the three.ws library, so quick starts, embed snippets, AR examples, and paid model-check calls work as pasted. Example inspection outputs were re-run against the live API so the numbers shown are the numbers you get.",+ "link": null,+ "tags": [+ "docs",+ "improvement"+ ]+ },{"date": "2026-07-30","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 8d61dc947..c7134e70e 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -14,6 +14,14 @@<category>fix</category><description>A trading strategy whose wallet ran low could get stuck in a loop: it looked funded enough to place a shrunken buy, but not funded enough to run the safety simulation that has to pass before anything is broadcast. So it tried every candidate coin, failed at the same step every time, and filled its history with failures while never actually trading. One live strategy did this 82 times in a day without placing a single buy. Strategies now compare their balance against the amount a trade genuinely needs end to end, including the pre-trade safety checks, and quietly wait for a top-up instead. No trade behavior changes for a properly funded strategy.</description></item>+ <item>+ <title>Every code sample in the docs now points at a real, loadable 3D model</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-30:Every code sample in the docs now points at a real, loadable 3D model</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>docs</category>+ <description>Docs, tutorials, and package READMEs previously used made-up model URLs (example.com GLBs and dead three.ws paths) that failed if you copied the code. Every sample now references a real avatar from the three.ws library, so quick starts, embed snippets, AR examples, and paid model-check calls work as pasted. Example inspection outputs were re-run against the live API so the numbers shown are the numbers you get.</description>+ </item><item><title>Money Pulse volume restored: shared treasury wallets now refill against their strictest floor</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 16ff553d2..251f1e18e 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T03:20:42.790Z",+ "generated_at": "2026-07-30T03:25:12.501Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/workers/remesh/README.md b/workers/remesh/README.mdindex 4790a0779..9145ee626 100644--- a/workers/remesh/README.md+++ b/workers/remesh/README.md@@ -48,7 +48,7 @@ curl -X POST https://$SERVICE_URL/process \-H "Authorization: Bearer $API_KEY" \-H 'Content-Type: application/json' \-d '{- "mesh": "https://example.com/model.glb",+ "mesh": "https://three.ws/avatars/brainstem.glb","remesh_mode": "quad","target_faces": 20000,"texture_size": 1024,