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.

fix(world): repair world.three.ws void-fall + hardening runbook and health probe

nirholasfd30a62b6429
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5fd7eaa70..845f8f62f 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
- **New /launches page: every agent-launched coin in one live feed** — There is now a public feed of every coin launched by a three.ws agent at /launches — live market caps, graduation badges, buyback rates, and a card linking straight to the agent behind each launch. Agent profile pages also gained a launch history: every coin an agent has ever launched is listed on its page with a live market cap and a link into the public feed. Find it in the nav under Discover → Agent Launches. (`/launches`) `[feature]`
- **Pay a real x402 oracle inside the $THREE town** — The $THREE town in /play now has an Intel Kiosk by the plaza: walk up, press E, and buy live $THREE market intel — price, 24 h change, market cap, and a bullish/bearish/neutral signal — for $0.01 USDC paid from your own wallet over x402, settled on-chain on Solana. The oracle behind it (/api/x402/three-intel) is also listed in the bazaar, so any agent can buy the same feed. The Agent Wallet demo is now linked from the /play menu too. (`/play`) `[feature]`
- **Reliability sweep: faster galleries, working voices, sturdier pages** — A pass over every error in the production logs. Avatar thumbnails and 3D models now load through three.ws itself instead of a rate-limited storage domain, so gallery pages stop dropping images under load. Text-to-speech voices are back (the upstream voice service had changed its protocol). Leaving a world on /play no longer hits a crash that could leave the session connected in the background. The homepage 3D demos politely step aside on devices without WebGL instead of breaking, payment demo requests get more time to settle on-chain, and the $THREE market stats failover stops hammering an exhausted data provider. `[fix, improvement, infra]`
+- **The 3D world is back on solid ground — and locked against griefing** — world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again. `[fix, security, infra]`
- **zauth's security agent moves into the $THREE town** — A new character stands in the $THREE town plaza on /play: the security agent from zauth, the x402 trust company. Walk up and it calls zauth's live paid API on the spot, quoting the real on-chain price for a RepoScan — name any GitHub repository and for $0.05 USDC, paid from your own wallet straight to zauth on Solana or Base, it scans the code for provenance, contributor verification, and vulnerabilities, then hands back a 0–100 trust score with a full written report. Scans keep running while you play; the agent calls out when your report is ready. (`/play`) `[feature]`
## 2026-06-11
diff --git a/data/changelog.json b/data/changelog.json
index 71abd83f3..44cdc10ce 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1069,6 +1069,16 @@
"improvement",
"infra"
]
+ },
+ {
+ "date": "2026-06-12",
+ "title": "The 3D world is back on solid ground — and locked against griefing",
+ "summary": "world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again.",
+ "tags": [
+ "fix",
+ "security",
+ "infra"
+ ]
}
]
}
diff --git a/deploy/world/apply-hardening.sh b/deploy/world/apply-hardening.sh
new file mode 100755
index 000000000..28d07db70
--- /dev/null
+++ b/deploy/world/apply-hardening.sh
@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+# One-shot hardening for world.three.ws (Hyperfy on Cloud Run).
+#
+# Why: without ADMIN_CODE, Hyperfy grants EVERY visitor admin rights — anyone
+# can delete the ground, replace the scene, or fill the world with broken GLBs.
+# This is what broke the world on 2026-06-12 (scene script asset lost, every
+# player fell into the void on join).
+#
+# Run from the repo root with an account that has Cloud Run, Secret Manager,
+# and Cloud Build access on project aerial-vehicle-466722-p5:
+# bash deploy/world/apply-hardening.sh
+#
+# It prints the generated admin code once. Store it in a password manager —
+# in-world, builders claim rights with the chat command: /admin <code>
+
+set -euo pipefail
+
+PROJECT=aerial-vehicle-466722-p5
+REGION=us-central1
+SERVICE=hyperfy-world
+RUNTIME_SA=hyperfy-world-sa@${PROJECT}.iam.gserviceaccount.com
+SECRET=hyperfy-admin-code
+
+gcloud config set project "$PROJECT" >/dev/null
+
+if gcloud secrets describe "$SECRET" >/dev/null 2>&1; then
+ echo "Secret $SECRET already exists — keeping the existing code."
+else
+ CODE=$(openssl rand -base64 24 | tr -dc 'a-zA-Z0-9' | head -c 24)
+ printf '%s' "$CODE" | gcloud secrets create "$SECRET" --data-file=-
+ echo "Created secret $SECRET."
+ echo "ADMIN CODE (store this now, it is not shown again): $CODE"
+fi
+
+gcloud secrets add-iam-policy-binding "$SECRET" \
+ --member="serviceAccount:$RUNTIME_SA" \
+ --role=roles/secretmanager.secretAccessor >/dev/null
+echo "Granted secretAccessor to $RUNTIME_SA."
+
+# Rebuild the image: picks up the pinned upstream ref and the server-side
+# upload-size patch in patches/.
+gcloud builds submit --config deploy/world/cloudbuild.yaml deploy/world/
+
+# Apply the service config: ADMIN_CODE + PUBLIC_MAX_UPLOAD_SIZE=16.
+gcloud run services replace deploy/world/cloudrun.yaml --region="$REGION"
+
+echo "Waiting for the new revision to serve..."
+sleep 20
+STATUS=$(curl -fsS https://world.three.ws/status)
+echo "live /status: $STATUS"
+case "$STATUS" in
+ *'"protected":true'*) echo "OK — world is protected. Visitors can no longer build." ;;
+ *) echo "WARNING — /status does not report protected:true yet. Check the revision rollout:"
+ echo " gcloud run revisions list --service=$SERVICE --region=$REGION" ;;
+esac
diff --git a/public/changelog.json b/public/changelog.json
index 0fc91db13..31ad212e6 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-12T01:11:40.430Z",
+ "generated_at": "2026-06-12T01:44:15.440Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -58,6 +58,18 @@
"infra"
]
},
+ {
+ "date": "2026-06-12",
+ "type": "update",
+ "title": "The 3D world is back on solid ground — and locked against griefing",
+ "summary": "world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again.",
+ "link": null,
+ "tags": [
+ "fix",
+ "security",
+ "infra"
+ ]
+ },
{
"date": "2026-06-12",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 2ca36e0d8..791794086 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -46,6 +46,14 @@
<category>fix</category>
<description>A pass over every error in the production logs. Avatar thumbnails and 3D models now load through three.ws itself instead of a rate-limited storage domain, so gallery pages stop dropping images under load. Text-to-speech voices are back (the upstream voice service had changed its protocol). Leaving a world on /play no longer hits a crash that could leave the session connected in the background. The homepage 3D demos politely step aside on devices without WebGL instead of breaking, payment demo requests get more time to settle on-chain, and the $THREE market stats failover stops hammering an exhausted data provider.</description>
</item>
+ <item>
+ <title>The 3D world is back on solid ground — and locked against griefing</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-12:The 3D world is back on solid ground — and locked against griefing</guid>
+ <pubDate>Fri, 12 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again.</description>
+ </item>
<item>
<title>zauth's security agent moves into the $THREE town</title>
<link>https://three.ws/play</link>
diff --git a/scripts/world-health.mjs b/scripts/world-health.mjs
new file mode 100755
index 000000000..4cca9ff57
--- /dev/null
+++ b/scripts/world-health.mjs
@@ -0,0 +1,81 @@
+#!/usr/bin/env node
+// Health check for world.three.ws (Hyperfy on Cloud Run).
+//
+// Connects as a spectator, pulls the world snapshot, and verifies that every
+// asset referenced by a blueprint actually exists in asset storage. A missing
+// asset is exactly how the world broke on 2026-06-12: the $scene script file
+// vanished from the GCS bucket, the scene app crashed on every client, the
+// ground unloaded, and every player fell into the void.
+//
+// Usage: node scripts/world-health.mjs
+// Exit 0 = healthy, 1 = problems found (suitable for cron/uptime alerting).
+
+import { execSync } from 'node:child_process'
+import { createRequire } from 'node:module'
+import { existsSync } from 'node:fs'
+import os from 'node:os'
+import path from 'node:path'
+
+const WORLD = process.env.WORLD_URL || 'https://world.three.ws'
+
+// msgpackr is only needed by this script; provision it in a cache dir so the
+// shared package.json/lockfile stay untouched.
+const depDir = path.join(os.homedir(), '.cache', 'three-ws-world-health')
+if (!existsSync(path.join(depDir, 'node_modules', 'msgpackr'))) {
+ execSync(`npm install --prefix ${depDir} --no-audit --no-fund --silent msgpackr ws`, { stdio: 'inherit' })
+}
+const require = createRequire(path.join(depDir, 'node_modules', '/'))
+const { Packr } = require('msgpackr')
+const WebSocket = require('ws')
+
+const problems = []
+
+const status = await (await fetch(`${WORLD}/status`)).json()
+console.log(`/status: uptime=${status.uptime}s protected=${status.protected}`)
+if (!status.protected) {
+ problems.push('world is UNPROTECTED — no ADMIN_CODE set, every visitor has build rights (run deploy/world/apply-hardening.sh)')
+}
+
+const snapshot = await new Promise((resolve, reject) => {
+ const packr = new Packr({ structuredClone: true })
+ const ws = new WebSocket(`${WORLD.replace('http', 'ws')}/ws?name=healthcheck`)
+ ws.binaryType = 'arraybuffer'
+ const timer = setTimeout(() => reject(new Error('no snapshot within 15s')), 15000)
+ ws.on('message', buf => {
+ const [id, data] = packr.unpack(Buffer.from(buf))
+ if (id !== 0) return // 0 = snapshot
+ clearTimeout(timer)
+ ws.close()
+ resolve(data)
+ })
+ ws.on('error', reject)
+})
+
+console.log(`snapshot: ${snapshot.blueprints.length} blueprints, ${snapshot.entities.length} entities`)
+
+const assetRefs = new Map() // filename -> [blueprint names]
+const collect = (obj, owner) => {
+ for (const m of JSON.stringify(obj).matchAll(/asset:\/\/([a-f0-9]{64}\.\w+)/g)) {
+ if (!assetRefs.has(m[1])) assetRefs.set(m[1], new Set())
+ assetRefs.get(m[1]).add(owner)
+ }
+}
+for (const bp of snapshot.blueprints) collect(bp, `blueprint ${bp.id} (${bp.name || 'unnamed'})`)
+collect(snapshot.settings, 'world settings')
+
+console.log(`checking ${assetRefs.size} referenced assets...`)
+const checks = [...assetRefs.keys()].map(async file => {
+ const res = await fetch(`${WORLD}/assets/${file}`, { method: 'HEAD' })
+ if (!res.ok) problems.push(`asset MISSING (${res.status}): ${file} — used by ${[...assetRefs.get(file)].join(', ')}`)
+})
+await Promise.all(checks)
+
+const scene = snapshot.blueprints.find(b => b.id === '$scene')
+if (!scene) problems.push('no $scene blueprint — the world has no environment')
+
+if (problems.length) {
+ console.error(`\nUNHEALTHY — ${problems.length} problem(s):`)
+ for (const p of problems) console.error(` - ${p}`)
+ process.exit(1)
+}
+console.log('\nHEALTHY — all referenced assets present, scene intact.')