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
fix(rpc): stop the metered Solana reserve from serving as the primary lane
nirholas2529fb4a1314
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ca1e21784..4b2dafd13 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Generation Watch** (`/watch`) — Live progress page for a running text-to-3D generation: real countdown, the painted concept art, and an automatic hand-off into the interactive viewer the moment the model is ready.- **Press kit** (`/press`) — Logos, announcement graphics, boilerplate, and usage rules for three.ws. Every asset is downloadable and current, and editorial use needs no permission.+- **Solana RPC failover fixed: the paid reserve is no longer the primary lane** — The platform routes every Solana call through a chain of RPC providers so no single one becomes a bottleneck, with a paid endpoint held back as an emergency reserve. A configuration mistake had that reserve listed as the primary as well, and because the chain keeps the first entry for a repeated address, it quietly served all traffic and burned through its daily request cap while the free providers sat idle. The reserve is now held back as intended and the premium provider leads. Two safeguards prevent a repeat: the slowest public endpoint can no longer outrank a paid provider by being used as a default, and when one server discovers a provider is out of quota, the rest of the fleet now inherits that verdict immediately instead of each wasting another request against a cap that is already full. `[infra, fix]`- **Watch your 3D model being made, live** — Free text-to-3D generations now come with a live progress page. When a generation is still running, the API (and the three.ws 3D Studio GPT in ChatGPT) hands you a three.ws/watch link showing a real countdown, the painted concept art the generator sculpts from, and an automatic jump into the interactive 3D viewer with download and AR links the moment your model is ready. No more staring at a chat window wondering how long is left. (`/watch`) `[feature]`## 2026-07-28@@ -22,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **More avatar rigs animate out of the box, including research-generated characters** — Avatars rigged with SMPL-style skeletons (the convention most research text-to-3D and mocap tools export, with bones named like left_hip, left_knee, left_elbow) previously uploaded fine but froze in a T-pose or slid around on stiff legs, because their bone names were not recognized. The bone matcher now understands these skeletons, correctly tells a collarbone apart from an upper arm when both share a name, and never gives two bones the same name (which could make animations grab the wrong joint). Full body animation, legs and arms included, now works for these characters the moment they are uploaded. `[improvement, fix]`- **Reliable .eth name lookups and a fixed docs link** — The free name-resolution API (/api/v1/resolve) kept timing out on .eth lookups because it leaned on rate-limited public Ethereum RPCs and gave up after five seconds. It now leads with the platform-configured mainnet RPC and dedicated keys, fails over across endpoints faster, and allows a more realistic time budget, so .eth names resolve as dependably as .sol names. Also, the old agent-3d docs address now lands on the web-component reference instead of an empty page. `[fix]`- **Site quality sweep: sharing, search visibility, and accessibility fixes** — A full audit of the live site turned up a batch of quiet problems, now fixed. The Create pages were accidentally hidden from search engines by a leftover tag, so Google could not index the main way people start on three.ws; they are indexable again. Links to the Docs and Get Started pages now unfurl with a proper preview card when shared on X, Telegram, or Slack, and the AR Forge page got a complete share card too. For screen reader users: the Studio's preview-size buttons, the homepage minimap, and the AR QR code are now properly labeled, and footer sections are real headings you can navigate by. Legal pages got readable text contrast, copying the contract address now tells you if the copy was blocked instead of failing silently, and the homepage embed playground shows a helpful message with a way forward if a live avatar cannot load. `[improvement, fix]`+- **Stopped agent trading wallets from being drained and refilled in a loop** — The safeguard that keeps an auto-funded trading wallet from being swept below the level it gets topped up to was reading a setting that never actually loaded, so it never took effect. Auto-funded agent wallets could be emptied and refilled repeatedly, paying network fees on every leg and draining the funding wallet. The safeguard now loads the setting it depends on, and a new test pins every field it needs so it cannot silently switch off again. `[fix]`- **The agent economy now paces its spending to its fuel level, wallet by wallet** — The autonomous agent economy runs about a dozen paid pipelines that share a small set of platform wallets to pay Solana network fees. Until now each pipeline throttled only itself, so under scarcity they raced each other and could drain a shared wallet in hours, halting everything at once until someone topped it up. Every settlement now draws from a single daily fee budget per wallet, sized to that wallet's live balance: activity tapers smoothly as funds run low and speeds back up the moment the wallet is refueled, whichever pipeline is spending. External customers paying for three.ws services are never rate-limited by this; it governs only the platform's own wallets. `[infra, improvement]`- **The agent economy now refills its own fuel tank instead of quietly running dry** — The live activity feed on /pulse had gone almost silent, and the cause turned out to be a plumbing problem rather than a lack of money. The platform funds its agents by sending them SOL to trade and launch with, but that path only ever ran one way. Agents kept what they were given plus whatever their trades returned, and the small shared wallet that pays the network fee on every agent-to-agent payment had no way to get any of it back. It eventually fell a fraction of a cent below the minimum it needs to sign a transaction, and every paid request across the platform started failing, even though the wider fleet was holding plenty. The funding cycle is now a full loop: when the fee wallet runs short, the platform automatically pulls idle SOL back from its own agent wallets to cover the gap. Agents that are actively trading keep their trading capital, agents holding an open position are left alone entirely, and wallets belonging to real users are never touched. We also added an audit tool that reports where every lamport in the fleet is sitting and where it has been moving. (`/pulse`) `[fix, infra]`- **The agent economy now warns and slows down before it runs out of fuel, instead of stopping cold** — The autonomous agent economy pays a tiny Solana network fee from a shared platform wallet every time two agents settle a payment. Earlier today that wallet drifted a fraction of a cent below its safety floor and every settlement was refused at once until the self-refill caught up. The economy now watches that exact wallet continuously: as it approaches the floor, activity tapers gradually and an early warning fires hours in advance, and only genuinely reaching the floor pauses payments, which the automatic refill then fixes on its own. Holders watching the live pulse should see smooth slowdowns instead of sudden flatlines. `[infra, improvement]`diff --git a/data/changelog.json b/data/changelog.jsonindex ada95d080..11bbacde0 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,14 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-28",+ "title": "Stopped agent trading wallets from being drained and refilled in a loop",+ "summary": "The safeguard that keeps an auto-funded trading wallet from being swept below the level it gets topped up to was reading a setting that never actually loaded, so it never took effect. Auto-funded agent wallets could be emptied and refilled repeatedly, paying network fees on every leg and draining the funding wallet. The safeguard now loads the setting it depends on, and a new test pins every field it needs so it cannot silently switch off again.",+ "tags": [+ "fix"+ ]+ },{"date": "2026-07-28","title": "Fixed a wallet-balancing loop that was quietly burning swap fees",@@ -16455,6 +16463,15 @@"feature"],"link": "/watch"+ },+ {+ "date": "2026-07-29",+ "title": "Solana RPC failover fixed: the paid reserve is no longer the primary lane",+ "summary": "The platform routes every Solana call through a chain of RPC providers so no single one becomes a bottleneck, with a paid endpoint held back as an emergency reserve. A configuration mistake had that reserve listed as the primary as well, and because the chain keeps the first entry for a repeated address, it quietly served all traffic and burned through its daily request cap while the free providers sat idle. The reserve is now held back as intended and the premium provider leads. Two safeguards prevent a repeat: the slowest public endpoint can no longer outrank a paid provider by being used as a default, and when one server discovers a provider is out of quota, the rest of the fleet now inherits that verdict immediately instead of each wasting another request against a cap that is already full.",+ "tags": [+ "infra",+ "fix"+ ]}]}diff --git a/docs/solana.md b/docs/solana.mdindex 27a89be8a..98d87d46d 100644--- a/docs/solana.md+++ b/docs/solana.md@@ -54,6 +54,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@@ -199,7 +203,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. |diff --git a/public/changelog.json b/public/changelog.jsonindex 295dea590..18ebd2733 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-29T04:58:11.293Z",+ "generated_at": "2026-07-29T05:01:46.467Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,17 @@"launch"]},+ {+ "date": "2026-07-29",+ "type": "update",+ "title": "Solana RPC failover fixed: the paid reserve is no longer the primary lane",+ "summary": "The platform routes every Solana call through a chain of RPC providers so no single one becomes a bottleneck, with a paid endpoint held back as an emergency reserve. A configuration mistake had that reserve listed as the primary as well, and because the chain keeps the first entry for a repeated address, it quietly served all traffic and burned through its daily request cap while the free providers sat idle. The reserve is now held back as intended and the premium provider leads. Two safeguards prevent a repeat: the slowest public endpoint can no longer outrank a paid provider by being used as a default, and when one server discovers a provider is out of quota, the rest of the fleet now inherits that verdict immediately instead of each wasting another request against a cap that is already full.",+ "link": null,+ "tags": [+ "infra",+ "fix"+ ]+ },{"date": "2026-07-29","type": "update",@@ -142,6 +153,16 @@"fix"]},+ {+ "date": "2026-07-28",+ "type": "update",+ "title": "Stopped agent trading wallets from being drained and refilled in a loop",+ "summary": "The safeguard that keeps an auto-funded trading wallet from being swept below the level it gets topped up to was reading a setting that never actually loaded, so it never took effect. Auto-funded agent wallets could be emptied and refilled repeatedly, paying network fees on every leg and draining the funding wallet. The safeguard now loads the setting it depends on, and a new test pins every field it needs so it cannot silently switch off again.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-07-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 654eb4f7b..21b1dc7ba 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>launch</category><description>Logos, announcement graphics, boilerplate, and usage rules for three.ws. Every asset is downloadable and current, and editorial use needs no permission.</description></item>+ <item>+ <title>Solana RPC failover fixed: the paid reserve is no longer the primary lane</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-29:Solana RPC failover fixed: the paid reserve is no longer the primary lane</guid>+ <pubDate>Wed, 29 Jul 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>The platform routes every Solana call through a chain of RPC providers so no single one becomes a bottleneck, with a paid endpoint held back as an emergency reserve. A configuration mistake had that reserve listed as the primary as well, and because the chain keeps the first entry for a repeated address, it quietly served all traffic and burned through its daily request cap while the free providers sat idle. The reserve is now held back as intended and the premium provider leads. Two safeguards prevent a repeat: the slowest public endpoint can no longer outrank a paid provider by being used as a default, and when one server discovers a provider is out of quota, the rest of the fleet now inherits that verdict immediately instead of each wasting another request against a cap that is already full.</description>+ </item><item><title>Watch your 3D model being made, live</title><link>https://three.ws/watch</link>@@ -110,6 +118,14 @@<category>improvement</category><description>A full audit of the live site turned up a batch of quiet problems, now fixed. The Create pages were accidentally hidden from search engines by a leftover tag, so Google could not index the main way people start on three.ws; they are indexable again. Links to the Docs and Get Started pages now unfurl with a proper preview card when shared on X, Telegram, or Slack, and the AR Forge page got a complete share card too. For screen reader users: the Studio's preview-size buttons, the homepage minimap, and the AR QR code are now properly labeled, and footer sections are real headings you can navigate by. Legal pages got readable text contrast, copying the contract address now tells you if the copy was blocked instead of failing silently, and the homepage embed playground shows a helpful message with a way forward if a live avatar cannot load.</description></item>+ <item>+ <title>Stopped agent trading wallets from being drained and refilled in a loop</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-28:Stopped agent trading wallets from being drained and refilled in a loop</guid>+ <pubDate>Tue, 28 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The safeguard that keeps an auto-funded trading wallet from being swept below the level it gets topped up to was reading a setting that never actually loaded, so it never took effect. Auto-funded agent wallets could be emptied and refilled repeatedly, paying network fees on every leg and draining the funding wallet. The safeguard now loads the setting it depends on, and a new test pins every field it needs so it cannot silently switch off again.</description>+ </item><item><title>The agent economy now paces its spending to its fuel level, wallet by wallet</title><link>https://three.ws/changelog</link>