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(storage): treat Cloudflare R2 NotEntitled as a storage outage so avatar GLB downloads reach the public-domain failover
nirholas3480497ed69c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4a62888f4..4d4dd0667 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-10-13- **Docs · Staked Event Markets** (`/docs/event-markets-staking`): Decision record for staked Event Markets on Solana: the parimutuel model, fee and buyback split, limits, void and refund rules, and the jurisdiction and age questions that stay with the owner.+- **Avatar downloads fail over when object storage is not entitled**: When the Cloudflare R2 account stopped serving objects, avatar model downloads answered a bare error instead of trying the bucket public domain. That fault is now recognised as a storage outage, so the failover runs. `[fix]`+- **Free voice is back: the Edge lane speaks again**: Microsoft changed the handshake on its free Read Aloud service, so the default Edge voice lane answered every request with an error. The lane now speaks the current protocol, so the /voice page and every agent that uses the free voice can talk again. (`/voice`) `[fix]`## 2026-10-12diff --git a/api/_lib/r2.js b/api/_lib/r2.jsindex 42ae1ea2a..cffcbfe4f 100644--- a/api/_lib/r2.js+++ b/api/_lib/r2.js@@ -87,7 +87,7 @@ export function objectStorageConfigured() {// above), so `Unauthorized` from S3 is always the credential and never the// object: classifying it as infrastructure blames nothing that deserves blame.export const STORAGE_ERROR_PATTERN =- 'missing required env var: s3_|invalidaccesskeyid|signaturedoesnotmatch|does not match the signature|unauthorized|nosuchbucket|access denied|econnrefused|enotfound|socket hang up|econnreset';+ 'missing required env var: s3_|invalidaccesskeyid|signaturedoesnotmatch|does not match the signature|unauthorized|nosuchbucket|notentitled|enable r2 through|access denied|econnrefused|enotfound|socket hang up|econnreset';const STORAGE_ERROR_RE = new RegExp(STORAGE_ERROR_PATTERN, 'i');diff --git a/data/changelog.json b/data/changelog.jsonindex 938cd717b..1f3f68ecc 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,12 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-10-13",+ "title": "Avatar downloads fail over when object storage is not entitled",+ "summary": "When the Cloudflare R2 account stopped serving objects, avatar model downloads answered a bare error instead of trying the bucket public domain. That fault is now recognised as a storage outage, so the failover runs.",+ "tags": ["fix"]+ },{"date": "2026-10-13","title": "Free voice is back: the Edge lane speaks again",diff --git a/public/changelog-recent.json b/public/changelog-recent.jsonindex 0a313622b..948c502ba 100644--- a/public/changelog-recent.json+++ b/public/changelog-recent.json@@ -1,11 +1,11 @@{- "generated_at": "2026-10-12T02:46:57.125Z",+ "generated_at": "2026-10-13T19:05:27.716Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},- "total": 4007,+ "total": 4009,"complete": false,"full_feed": "/changelog.json","entries": [@@ -19,6 +19,26 @@"launch"]},+ {+ "date": "2026-10-13",+ "type": "update",+ "title": "Avatar downloads fail over when object storage is not entitled",+ "summary": "When the Cloudflare R2 account stopped serving objects, avatar model downloads answered a bare error instead of trying the bucket public domain. That fault is now recognised as a storage outage, so the failover runs.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-10-13",+ "type": "update",+ "title": "Free voice is back: the Edge lane speaks again",+ "summary": "Microsoft changed the handshake on its free Read Aloud service, so the default Edge voice lane answered every request with an error. The lane now speaks the current protocol, so the /voice page and every agent that uses the free voice can talk again.",+ "link": "/voice",+ "tags": [+ "fix"+ ]+ },{"date": "2026-10-12","type": "launch",@@ -1527,27 +1547,6 @@"feature","security"]- },- {- "date": "2026-10-09",- "type": "update",- "title": "Create, Forge and Launch are easier for screen readers and AI agents to operate",- "summary": "Buttons and cards on Create and Forge now announce the same words you see on screen, the search hint and the walking companion can be reached with the keyboard, and the Launch form fields keep stable names while their character counters change.",- "link": "/forge",- "tags": [- "improvement"- ]- },- {- "date": "2026-10-09",- "type": "update",- "title": "Creator rewards include fees pump.fun now holds on the curve and pool",- "summary": "pump.fun's October program update changed where creator rewards land: newer trades leave the creator fee on the coin's bonding curve or pool until someone sweeps it into the creator's vault. Without handling that, those rewards were invisible to a claim and read as already claimed on coin pages. Every claim on three.ws now sweeps your coins first and collects everything in the same transaction, from your wallet, an agent wallet or the automatic claimer. Reward balances, coin pages and earnings history count the held fees as unclaimed, fee-sharing changes and distributions no longer fail on unswept fees, and the biggest buy a coin ever sees (the one that completes its curve) is now reported at its full size in trade feeds and whale alerts. The automatic claimer for agent sniper wallets also had a bug that stopped every claim; that is fixed.",- "link": "/launch",- "tags": [- "improvement",- "fix"- ]}]}diff --git a/public/changelog.json b/public/changelog.jsonindex aa89cf5bc..2ee046248 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-10-12T02:46:57.101Z",+ "generated_at": "2026-10-13T19:05:27.695Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -16,6 +16,26 @@"launch"]},+ {+ "date": "2026-10-13",+ "type": "update",+ "title": "Avatar downloads fail over when object storage is not entitled",+ "summary": "When the Cloudflare R2 account stopped serving objects, avatar model downloads answered a bare error instead of trying the bucket public domain. That fault is now recognised as a storage outage, so the failover runs.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-10-13",+ "type": "update",+ "title": "Free voice is back: the Edge lane speaks again",+ "summary": "Microsoft changed the handshake on its free Read Aloud service, so the default Edge voice lane answered every request with an error. The lane now speaks the current protocol, so the /voice page and every agent that uses the free voice can talk again.",+ "link": "/voice",+ "tags": [+ "fix"+ ]+ },{"date": "2026-10-12","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 3a5347469..b0fd596b7 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -14,6 +14,22 @@<category>launch</category><description>Decision record for staked Event Markets on Solana: the parimutuel model, fee and buyback split, limits, void and refund rules, and the jurisdiction and age questions that stay with the owner.</description></item>+ <item>+ <title>Avatar downloads fail over when object storage is not entitled</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-10-13:Avatar downloads fail over when object storage is not entitled</guid>+ <pubDate>Tue, 13 Oct 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>When the Cloudflare R2 account stopped serving objects, avatar model downloads answered a bare error instead of trying the bucket public domain. That fault is now recognised as a storage outage, so the failover runs.</description>+ </item>+ <item>+ <title>Free voice is back: the Edge lane speaks again</title>+ <link>https://three.ws/voice</link>+ <guid isPermaLink="false">2026-10-13:Free voice is back: the Edge lane speaks again</guid>+ <pubDate>Tue, 13 Oct 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Microsoft changed the handshake on its free Read Aloud service, so the default Edge voice lane answered every request with an error. The lane now speaks the current protocol, so the /voice page and every agent that uses the free voice can talk again.</description>+ </item><item><title>Dissolve</title><link>https://three.ws/dissolve</link>diff --git a/public/features.json b/public/features.jsonindex fe27d48fd..3c3272b3f 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-10-12T02:46:57.087Z",+ "generated_at": "2026-10-13T19:05:27.682Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tests/r2-not-entitled.test.js b/tests/r2-not-entitled.test.jsnew file mode 100644index 000000000..9c8536333--- /dev/null+++ b/tests/r2-not-entitled.test.js@@ -0,0 +1,22 @@+/**+ * An R2 account that is not entitled (Cloudflare answers NotEntitled: "Please+ * enable R2 through the Cloudflare Dashboard") is a storage-infrastructure+ * fault, not a missing object. Production on 2026-10-13 answered a bare 502+ * for every avatar GLB because this shape skipped the public-domain failover.+ */+import { describe, it, expect } from 'vitest';+import { isStorageInfrastructureError } from '../api/_lib/r2.js';++describe('isStorageInfrastructureError, R2 not entitled', () => {+ it('classifies the SDK NotEntitled error as infrastructure', () => {+ const err = Object.assign(new Error('Please enable R2 through the Cloudflare Dashboard.'), {+ name: 'NotEntitled',+ });+ expect(isStorageInfrastructureError(err)).toBe(true);+ });++ it('still treats a missing object as the caller\'s problem', () => {+ const err = Object.assign(new Error('The specified key does not exist.'), { name: 'NoSuchKey' });+ expect(isStorageInfrastructureError(err)).toBe(false);+ });+});