Skip to content

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

security(irl): publish the location-budget fix and unblock the world-lines test mock

nirholasd7d3c969916d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77887cfa7..6fd76aa72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **AI replies no longer come back blank when a model stalls**: The chat router picks a model, and if that model fails it quietly moves to the next healthy one. That handoff missed one case: a model that answered with nothing at all, and reported no error, was treated as a success. The reply ended empty, and none of the working models behind it were ever tried. A model that produces no text now counts as a failed attempt, so the next one takes over and you get a real answer. If every route genuinely comes up empty, you see a clear error instead of silence. (`/chat`) `[fix]`
- **Code links in the docs no longer dead-end**: Documentation on three.ws cites the source constantly, and every one of those citations pointed nowhere: a link to a file like api/_lib/x402-spec.js was read as a page on the site, which does not exist, so it 404ed. Roughly 1,900 of them across the docs now open the real file on GitHub in a new tab instead. Cross-document links that also point at a heading work too: they take you to the right document and scroll to the right section, where before they did not move at all. (`/docs`) `[fix, docs]`
- **File uploads work again across speech, vision, and 3D endpoints**: Uploading a file directly to the API silently arrived empty. Sending a .glb to the 3D inspector, a .wav to speech-to-text, an image to vision, audio to the face animator, a GLB to Material Studio, or a voice sample to voice cloning all answered as though you had sent nothing at all. The cause was the server treating "the whole request has arrived" as "somebody already read it", so it discarded bodies that were sitting there ready to read. Every one of those endpoints now receives the bytes you send. Uploads over the size limit also return a readable 413 instead of dropping the connection. `[fix]`
+- **Location reads on /irl get their own privacy budget again**: The three reads that reveal where someone placed an agent in the real world (nearby pins, nearby drops, nearby World Lines) are capped per IP so nobody can drive around the map collecting coordinates. That cap used to be shared with the general-purpose limit every public page read uses, and when the shared limit was raised for unrelated page-loading reasons, the location cap quietly rose with it: a bulk sweep became four times cheaper than the published security write-up said it was. Location reads now draw on a dedicated budget that only they use, pinned at the documented rate and covered by a test that fails if it ever drifts again. Ordinary use is unaffected: viewing the world around you polls roughly six times a minute against a ceiling of sixty. The nearby-drops read also now refuses rather than waves requests through if its limiter is unavailable, matching how the pin read has always behaved. `[security]`
- **Market data that refuses to go down: 20+ free data sources joined the platform**: Prices, charts, gas, news, and safety checks now stand on far more legs. Public market data from seven major exchanges backs up every price and chart if a primary source stumbles, and two more oracle networks back SOL pricing. Token safety reads now combine two independent rug checkers on Solana and simulate an actual sell on Ethereum-side tokens to catch honeypots. New free endpoints let anyone fetch normalized gas prices for 12 chains and read-only swap quotes on 6 chains, no key needed. Derivatives pages gained real options data, the news feed now listens to six crypto subreddits, and on-chain fundamentals like active addresses and fees flow in for BTC, ETH, and SOL. All of it runs on free public APIs with automatic failover. (`/changelog`) `[feature, improvement, infra]`
- **Play worlds now load in seconds and connect on the first try**: Big pre-event tune-up for the 3D coin worlds at /play. Dropping into a world used to wait on the entire animation library downloading before you even appeared, which is why the game could sit on 'connecting' with a frozen character; now it loads just what it needs, joins the world at the same time, and lets you walk the moment your avatar lands. Your gold, inventory, and builds are now durably saved on the server across restarts. Holder-gated worlds work again, one town now holds up to 100 people before splitting, chat and names filter hate speech, and the online counter shows real players only. If the page ever fails to load, you get a proper error card with a retry button instead of an endless spinner. (`/play`) `[improvement, fix]`
- **Settings saves that actually save, and account deletion that actually deletes**: Two things on the settings page looked like they worked and did not. Saving your display name or username showed "Saved!" while the server was quietly rejecting the request, and revoking a session removed the row from the list without revoking anything. Both now carry the security token the server asks for, and a rejected write says so instead of pretending. The Danger Zone is real too: deleting your account was calling an endpoint that did not exist, so it always ended in "please contact support". Deleting now retires your avatars, agents, and embeds so nothing of yours keeps serving, frees your /u/ handle for someone else, signs you out everywhere, and blocks every future sign-in, including with a linked wallet. It still takes typing the confirmation phrase, and that phrase is checked on the server as well as in the browser. (`/settings`) `[fix, security]`
diff --git a/data/changelog.json b/data/changelog.json
index 4d867e726..6496c20eb 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-08-06",
+ "title": "Location reads on /irl get their own privacy budget again",
+ "summary": "The three reads that reveal where someone placed an agent in the real world (nearby pins, nearby drops, nearby World Lines) are capped per IP so nobody can drive around the map collecting coordinates. That cap used to be shared with the general-purpose limit every public page read uses, and when the shared limit was raised for unrelated page-loading reasons, the location cap quietly rose with it: a bulk sweep became four times cheaper than the published security write-up said it was. Location reads now draw on a dedicated budget that only they use, pinned at the documented rate and covered by a test that fails if it ever drifts again. Ordinary use is unaffected: viewing the world around you polls roughly six times a minute against a ceiling of sixty. The nearby-drops read also now refuses rather than waves requests through if its limiter is unavailable, matching how the pin read has always behaved.",
+ "tags": [
+ "security"
+ ]
+ },
{
"date": "2026-08-06",
"title": "File uploads work again across speech, vision, and 3D endpoints",
diff --git a/public/changelog.json b/public/changelog.json
index 07c6d75bd..1e89719aa 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-06T03:43:29.124Z",
+ "generated_at": "2026-08-06T03:55:44.921Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -58,6 +58,16 @@
"fix"
]
},
+ {
+ "date": "2026-08-06",
+ "type": "update",
+ "title": "Location reads on /irl get their own privacy budget again",
+ "summary": "The three reads that reveal where someone placed an agent in the real world (nearby pins, nearby drops, nearby World Lines) are capped per IP so nobody can drive around the map collecting coordinates. That cap used to be shared with the general-purpose limit every public page read uses, and when the shared limit was raised for unrelated page-loading reasons, the location cap quietly rose with it: a bulk sweep became four times cheaper than the published security write-up said it was. Location reads now draw on a dedicated budget that only they use, pinned at the documented rate and covered by a test that fails if it ever drifts again. Ordinary use is unaffected: viewing the world around you polls roughly six times a minute against a ceiling of sixty. The nearby-drops read also now refuses rather than waves requests through if its limiter is unavailable, matching how the pin read has always behaved.",
+ "link": null,
+ "tags": [
+ "security"
+ ]
+ },
{
"date": "2026-08-06",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 9aee05cff..566a46aae 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -46,6 +46,14 @@
<category>fix</category>
<description>Uploading a file directly to the API silently arrived empty. Sending a .glb to the 3D inspector, a .wav to speech-to-text, an image to vision, audio to the face animator, a GLB to Material Studio, or a voice sample to voice cloning all answered as though you had sent nothing at all. The cause was the server treating &quot;the whole request has arrived&quot; as &quot;somebody already read it&quot;, so it discarded bodies that were sitting there ready to read. Every one of those endpoints now receives the bytes you send. Uploads over the size limit also return a readable 413 instead of dropping the connection.</description>
</item>
+ <item>
+ <title>Location reads on /irl get their own privacy budget again</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-08-06:Location reads on /irl get their own privacy budget again</guid>
+ <pubDate>Thu, 06 Aug 2026 12:00:00 GMT</pubDate>
+ <category>security</category>
+ <description>The three reads that reveal where someone placed an agent in the real world (nearby pins, nearby drops, nearby World Lines) are capped per IP so nobody can drive around the map collecting coordinates. That cap used to be shared with the general-purpose limit every public page read uses, and when the shared limit was raised for unrelated page-loading reasons, the location cap quietly rose with it: a bulk sweep became four times cheaper than the published security write-up said it was. Location reads now draw on a dedicated budget that only they use, pinned at the documented rate and covered by a test that fails if it ever drifts again. Ordinary use is unaffected: viewing the world around you polls roughly six times a minute against a ceiling of sixty. The nearby-drops read also now refuses rather than waves requests through if its limiter is unavailable, matching how the pin read has always behaved.</description>
+ </item>
<item>
<title>Market data that refuses to go down: 20+ free data sources joined the platform</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 0e3969add..5dd9e7483 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-06T03:43:29.110Z",
+ "generated_at": "2026-08-06T03:55:44.913Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/api/world-lines.test.js b/tests/api/world-lines.test.js
index ff0be95da..a38578308 100644
--- a/tests/api/world-lines.test.js
+++ b/tests/api/world-lines.test.js
@@ -130,6 +130,12 @@ vi.mock('../../api/_lib/notify.js', () => ({ insertNotification: vi.fn() }));
vi.mock('../../api/_lib/csrf.js', () => ({ requireCsrf: vi.fn(async () => true) }));
vi.mock('../../api/_lib/rate-limit.js', () => ({
limits: new Proxy({}, { get: () => async () => ({ success: true }) }),
+ // The coordinate reads call their limiter through the fail-closed wrapper; its
+ // own behaviour is covered by tests/api/irl-nearby-limit.test.js.
+ limitFailClosedRead: async (_name, fn, ...args) => {
+ try { return await fn(...args); }
+ catch { return { success: false, reason: 'rate_limiter_unavailable', reset: Date.now() + 60_000 }; }
+ },
clientIp: () => '1.2.3.4',
}));
vi.mock('../../api/_lib/agent-wallet.js', () => ({