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
test(irl): e2e lock + liveness probe for pin idle animation, docs + changelog
nirholasad6444d8cd5d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 831649f96..d6c6bf061 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- **Docs · AR in ChatGPT** (`/docs/chatgpt-ar`) — How a sentence typed into ChatGPT becomes a 3D model standing in your room: the free generation lane, the arUrl contract, the device-aware AR launcher, living avatars, and link unfurls.- **Tutorial · Your First Prompt to 3D in ChatGPT** (`/tutorials/first-prompt-to-3d`) — Type one sentence into ChatGPT, get a real 3D model back, and place it in your room: adding the 3D Studio, writing a prompt that generates well, iterating in plain words, and bringing a rigged avatar to life.+- **Agents placed in the real world are now truly alive** — Before today, an agent you discovered on /irl stood frozen in a stiff T-pose while only your own companion moved. Now every placed agent breathes: the platform idle animation is retargeted onto each avatar's own skeleton the moment it loads (any humanoid rig works), each agent idles at its own rhythm, and walking up still makes it turn and look at you, now on top of the running animation. The whole camera view also got a cinematic upgrade with filmic tone mapping, richer lighting, softer shadows, and sharper textures, so agents finally look like they are standing in your room, matching the quality of the iOS AR Quick Look view. (`/irl`) `[improvement]`- **AR avatars now come alive in your room** — Avatars no longer land in AR as frozen statues. Every rigged avatar generated on three.ws now carries a Bring it to life link that opens IRL: the agent walks, animates, and talks with you through your camera, standing in your real space. Static placement is still one tap away for props or anyone who just wants the model on a desk. The living link ships everywhere avatars are made: the AR launch page, the 3D Studio tools in ChatGPT and Claude, and the developer MCP tools. (`/irl`) `[feature, improvement]`- **Shared AR links now unfurl with the model itself** — Paste a place-in-your-room link into a chat and it now shows a real rendered picture of that exact model instead of a bare URL. The AR page also shows the model's name, a proper loading state, and a Create your own link, so a friend who receives a model can make one of their own in a tap. Behind it, the public model renderer gained a URL form: point any image tag at /api/render/glb with a public GLB link and get a PNG back. (`/ar`) `[improvement]`- **The ChatGPT AR pipeline, fully documented** — New docs tell the whole story of how a sentence typed into ChatGPT becomes a 3D model standing in your room: the free generation lane ChatGPT calls, the one-tap AR link every generation carries, what happens on iPhone, Android, and a computer when you open it, and how a shared link unfurls with a real render of the model. A companion tutorial walks a first-timer from their first prompt to a model on their desk in about five minutes. (`/docs/chatgpt-ar`) `[docs]`diff --git a/STRUCTURE.md b/STRUCTURE.mdindex 16b6b6c6a..c39ccc0bb 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -46,7 +46,7 @@ bottom.| Spatial MCP (3D as a native response type) | Spec [specs/SPATIAL_MCP.md](specs/SPATIAL_MCP.md), pure validator/builder [api/_lib/spatial-mcp.js](api/_lib/spatial-mcp.js), validator tool [api/_mcp3d/tools/spatial.js](api/_mcp3d/tools/spatial.js) (`validate_spatial_response`, free), reference renderer [public/spatial-mcp/spatial-renderer.js](public/spatial-mcp/spatial-renderer.js) + demo [public/spatial-mcp/index.html](public/spatial-mcp/index.html) `→ /spatial-mcp`, docs [docs/spatial-mcp.md](docs/spatial-mcp.md). | Live · both stores | Open (CC0) shape for returning a live, interactive 3D scene as a first-class MCP tool result (scene GLB, camera, environment, animation, AR handoff, affordances) instead of a URL. Every three.ws 3D generator emits a conformant artifact under `structuredContent.spatial`; the validator returns actionable errors, not a boolean; the framework-free reference renderer displays any conformant payload — including one transformed from a foreign tool result (portability proof at `/spatial-mcp`). Zero coin surface — reusable in the OpenAI free app. Tests: [tests/spatial-mcp.test.js](tests/spatial-mcp.test.js). Evidence: [prompts/store-submissions/_generated/spatial-mcp/](prompts/store-submissions/_generated/spatial-mcp/). Store-submission prompt 20. || AR-ready exports ("View in your space") | Device-routing core [api/_lib/ar-launch.js](api/_lib/ar-launch.js), UA-branched launch endpoint [api/ar.js](api/ar.js) `→ /api/ar`, MCP tool [api/_mcp3d/tools/ar.js](api/_mcp3d/tools/ar.js) (`export_ar`, free), in-viewer AR button [public/viewer.html](public/viewer.html), docs [docs/ar.md](docs/ar.md). | Live · both stores | `GET /api/ar?src=<glb>` branches on the request User-Agent server-side: iOS → Apple Quick Look (USDZ generated from the GLB on the fly by model-viewer's three.js USDZExporter — real conversion, no server USD tooling), Android → 302 Google Scene Viewer ARCore intent with browser fallback, desktop → WebGL viewer. Bad input rejected at the boundary with a designed error page. `export_ar` returns the AR launch link + a conformant Spatial-MCP artifact; response is OpenAI-clean (no ids/coin surface). `kind=avatar` is the living-agent lane: the launch page leads with a "Bring it to life" handoff into `/irl?avatar=<glb>` (avatar-producing tools return `irlUrl` automatically), and Android serves the launch page instead of the blind Scene Viewer redirect so the living path stays visible. Shared links unfurl: the launch page's `og:image` points at `GET /api/render/glb?glbUrl=` ([api/render/glb.js](api/render/glb.js), server-side PNG of the actual model, CDN-cached a day) and the page carries "Create your own" → `/ar` conversion CTAs. Tests: [tests/ar-export.test.js](tests/ar-export.test.js). Evidence: [prompts/store-submissions/_generated/ar/](prompts/store-submissions/_generated/ar/). Store-submission prompt 21. || AR Forge (prompt → model → your room) | [public/ar-forge.html](public/ar-forge.html) `→ /ar` (self-contained page, CDN model-viewer + local meshopt decoder, no Vite registration needed; vercel route sets `xr-spatial-tracking` permissions-policy) | Live | Mobile-first app: one prompt hits the free NVIDIA lane (`POST /api/forge {backend:"nvidia"}`, poll `?job=`), the result renders in an AR-capable `<model-viewer>` with "View in your space" (WebXR / Scene Viewer / Quick Look). Non-AR devices get a QR handoff to `GET /api/ar?src=` (server-side UA routing) plus a copyable `/viewer?src=` share link. Deep link `/ar?src=<glb>&title=` reopens any shared model; recent forges persist in localStorage. Designed idle/working/failed/result states; https-only GLB guard. |-| IRL (agents in the real world) | [pages/irl.html](pages/irl.html) `→ /irl` + [src/irl.js](src/irl.js), WebXR placement [src/ar/webxr.js](src/ar/webxr.js) + pinch [src/ar/pinch-scale.js](src/ar/pinch-scale.js), animated Quick Look bake [src/usdz-animated.js](src/usdz-animated.js) (static fallback [src/usdz-pipeline.js](src/usdz-pipeline.js)), backend [api/irl/](api/irl) | Live | Pin an agent at a real GPS spot; discovery is presence-proof-gated ([docs/irl/THREAT-MODEL.md](docs/irl/THREAT-MODEL.md)). **Place in AR** leads the dock on AR-capable devices: WebXR hit-test anchoring on Android with two-finger pinch resize (25%..400%) persisted to the pin (`anchor_scale`; the pinch lands as a follow-up `PATCH /api/irl/pins {id, scale}` after the placement tap), and ARKit Quick Look on iOS with the idle clip baked into the USDZ so the agent moves instead of standing in a T-pose. Inbound `/irl?avatar=<glb>` is the living-agent handoff from `GET /api/ar?…&kind=avatar` (explicit `?avatar=` wins over a saved session). Money Drops and World Lines: [docs/irl.md](docs/irl.md). SDK: [packages/irl/](packages/irl) |+| IRL (agents in the real world) | [pages/irl.html](pages/irl.html) `→ /irl` + [src/irl.js](src/irl.js), WebXR placement [src/ar/webxr.js](src/ar/webxr.js) + pinch [src/ar/pinch-scale.js](src/ar/pinch-scale.js), animated Quick Look bake [src/usdz-animated.js](src/usdz-animated.js) (static fallback [src/usdz-pipeline.js](src/usdz-pipeline.js)), backend [api/irl/](api/irl) | Live | Pin an agent at a real GPS spot; discovery is presence-proof-gated ([docs/irl/THREAT-MODEL.md](docs/irl/THREAT-MODEL.md)). **Place in AR** leads the dock on AR-capable devices: WebXR hit-test anchoring on Android with two-finger pinch resize (25%..400%) persisted to the pin (`anchor_scale`; the pinch lands as a follow-up `PATCH /api/irl/pins {id, scale}` after the placement tap), and ARKit Quick Look on iOS with the idle clip baked into the USDZ so the agent moves instead of standing in a T-pose. Discovered pins are equally alive in the in-page camera view: every mounted humanoid GLB plays the retargeted idle clip via a per-pin mixer ([src/irl/pin-idle.js](src/irl/pin-idle.js), phase-randomized, LOD-bounded), camera-aware gaze composes on top of the running animation, and the scene renders with ACES tone mapping + IBL + soft shadows (e2e: [tests/e2e/irl-pin-idle.spec.js](tests/e2e/irl-pin-idle.spec.js)). Inbound `/irl?avatar=<glb>` is the living-agent handoff from `GET /api/ar?…&kind=avatar` (explicit `?avatar=` wins over a saved session). Money Drops and World Lines: [docs/irl.md](docs/irl.md). SDK: [packages/irl/](packages/irl) || Verifiable 3D provenance (content credentials) | Spec [specs/PROVENANCE_3D.md](specs/PROVENANCE_3D.md), pure core [api/_lib/provenance-3d.js](api/_lib/provenance-3d.js), Solana anchor [api/_lib/provenance-anchor.js](api/_lib/provenance-anchor.js), MCP tools [api/_mcp3d/tools/provenance.js](api/_mcp3d/tools/provenance.js) (`verify_provenance` free, `anchor_provenance` paid $0.05), free REST verify [api/provenance.js](api/provenance.js) `→ /api/provenance`, viewer badge [public/viewer.html](public/viewer.html), docs [docs/provenance.md](docs/provenance.md). | Live (verify) · anchor gated on issuer key + devnet funds | C2PA-style signed content credentials for AI 3D: creator, prompt, model/provider, lineage, timestamp, and the GLB's sha256, ed25519-signed by the three.ws issuer with the credential hash anchored on Solana. Free public `verify_provenance` / `GET /api/provenance?src=…` recompute the hash and return `verified | tampered | unknown` (a single changed byte → tampered); the verify path and response are coin-clean (both stores). `anchor_provenance` signs + writes the SPL Memo anchor + stores the credential in R2. Tests: [tests/provenance-3d.test.js](tests/provenance-3d.test.js). Evidence: [prompts/store-submissions/_generated/provenance/](prompts/store-submissions/_generated/provenance/). Store-submission prompt 19. || Sperax partnership + SperaxOS plugin | [pages/sperax.html](pages/sperax.html) `→ /sperax`, plugin [public/sperax/](public/sperax/README.md), manifest `→ /.well-known/sperax-plugin.json`, tools [api/chat-plugin/[tool].js](api/chat-plugin/%5Btool%5D.js) `→ /api/chat-plugin/*`, panel `→ /sperax/iframe/` | In-repo · Live | Partnership landing for the SperaxOS integration: three.ws ships as a standalone `plugin.delivery` plugin that gives a SperaxOS agent an embodied 3D avatar (speak/gesture/emote/render_agent), bound to an ERC-8004 identity, settling over Base x402. Launch offer: free AI credits for three.ws users on [chat.sperax.io](https://chat.sperax.io) — page explains what it is and how to claim. Blog: [/blog/three-ws-speraxusd-integration](blog/three-ws-speraxusd-integration.html) || Live Agents wall (mission control) | [pages/agents-live.html](pages/agents-live.html) + [src/agents-live.js](src/agents-live.js) `→ /agents-live` | In-repo · roster [api/agents/public.js](api/agents/public.js) (`sort=live`), per-agent SSE [api/agent-screen-stream.js](api/agent-screen-stream.js) | Real-time grid of every meaningful agent, ranked by most-recent on-chain/skill action (never-used placeholders suppressed). Each card streams a live caster feed when watched, else its real `agent_actions` as a terminal + an "active Nm ago" recency chip. Layers: showrunner spotlight ([src/showrunner.js](src/showrunner.js)), reputation arena ([src/agents-live-arena.js](src/agents-live-arena.js)), platform ticker ([src/theater-feed.js](src/theater-feed.js)) |diff --git a/data/changelog.json b/data/changelog.jsonindex dfaab6eec..a44eafaa4 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -13818,6 +13818,15 @@"docs"],"link": "/docs/mcp-studio"+ },+ {+ "date": "2026-07-15",+ "title": "Agents placed in the real world are now truly alive",+ "summary": "Before today, an agent you discovered on /irl stood frozen in a stiff T-pose while only your own companion moved. Now every placed agent breathes: the platform idle animation is retargeted onto each avatar's own skeleton the moment it loads (any humanoid rig works), each agent idles at its own rhythm, and walking up still makes it turn and look at you, now on top of the running animation. The whole camera view also got a cinematic upgrade with filmic tone mapping, richer lighting, softer shadows, and sharper textures, so agents finally look like they are standing in your room, matching the quality of the iOS AR Quick Look view.",+ "tags": [+ "improvement"+ ],+ "link": "/irl"}]}diff --git a/docs/irl.md b/docs/irl.mdindex 777997005..61494d45f 100644--- a/docs/irl.md+++ b/docs/irl.md@@ -46,6 +46,8 @@ from the [AR launch page](./ar.md) (`GET /api/ar?…&kind=avatar`) and theStanding near a pinned agent, you check in: your live GPS fix mints a short-lived proof-of-presence token, and the nearby feed answers only for the small area that token was minted in (40 m radius by default, 60 m maximum, at most 50 pins). Nearby agents appear in your camera view with name labels and a directional nudge toward the closest one.+Every discovered agent is alive in the camera view, not a statue: any humanoid avatar plays the platform idle clip, retargeted onto its own skeleton on the spot (Mixamo, Avaturn, VRM, and every other rig the universal retargeter maps), each one breathing at its own phase. Walk close and it turns to look at you; the gaze composes on top of the running animation, so the agent keeps moving while it tracks you. The scene itself renders with filmic tone mapping, image-based lighting, and soft shadows, so a placed agent reads like an object standing in the room rather than a flat cutout over the camera feed.+### Interact and payTapping an agent opens its inspect card:diff --git a/public/changelog.json b/public/changelog.jsonindex 8f39f97f4..2f2c2d4cf 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-15T10:34:44.291Z",+ "generated_at": "2026-07-15T11:24:15.470Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,16 @@"launch"]},+ {+ "date": "2026-07-15",+ "type": "update",+ "title": "Agents placed in the real world are now truly alive",+ "summary": "Before today, an agent you discovered on /irl stood frozen in a stiff T-pose while only your own companion moved. Now every placed agent breathes: the platform idle animation is retargeted onto each avatar's own skeleton the moment it loads (any humanoid rig works), each agent idles at its own rhythm, and walking up still makes it turn and look at you, now on top of the running animation. The whole camera view also got a cinematic upgrade with filmic tone mapping, richer lighting, softer shadows, and sharper textures, so agents finally look like they are standing in your room, matching the quality of the iOS AR Quick Look view.",+ "link": "/irl",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-07-15","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 034e57afa..6014c62a4 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>launch</category><description>Type one sentence into ChatGPT, get a real 3D model back, and place it in your room: adding the 3D Studio, writing a prompt that generates well, iterating in plain words, and bringing a rigged avatar to life.</description></item>+ <item>+ <title>Agents placed in the real world are now truly alive</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-07-15:Agents placed in the real world are now truly alive</guid>+ <pubDate>Wed, 15 Jul 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Before today, an agent you discovered on /irl stood frozen in a stiff T-pose while only your own companion moved. Now every placed agent breathes: the platform idle animation is retargeted onto each avatar's own skeleton the moment it loads (any humanoid rig works), each agent idles at its own rhythm, and walking up still makes it turn and look at you, now on top of the running animation. The whole camera view also got a cinematic upgrade with filmic tone mapping, richer lighting, softer shadows, and sharper textures, so agents finally look like they are standing in your room, matching the quality of the iOS AR Quick Look view.</description>+ </item><item><title>AR avatars now come alive in your room</title><link>https://three.ws/irl</link>diff --git a/public/features.json b/public/features.jsonindex 58282000f..7b6f5fc1a 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-15T10:34:44.277Z",+ "generated_at": "2026-07-15T11:24:15.457Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/irl.js b/src/irl.jsindex 0ac14508d..eb94a7f6c 100644--- a/src/irl.js+++ b/src/irl.js@@ -8054,5 +8054,26 @@ if (import.meta.env.DEV) {const mLng = 111320 * Math.cos(lat * (Math.PI / 180));return { lat: lat + north / mLat, lng: lng + east / mLng };},+ // Liveness probe for the T-pose regression: is the pin's full model mounted,+ // does it carry a running idle mixer, and where is its skeleton right now?+ // Sampling the bone quaternions twice a few frames apart proves the agent+ // is actually moving — a statue returns identical samples.+ pinAnim: (id) => {+ const p = nearbyPins.find((x) => x.id === id);+ if (!p || !p.model) return { mounted: false, animated: false, bones: null };+ const bones = [];+ p.model.traverse((n) => {+ if (n.isBone && bones.length < 400) {+ const q = n.quaternion;+ bones.push(+q.x.toFixed(5), +q.y.toFixed(5), +q.z.toFixed(5), +q.w.toFixed(5));+ }+ });+ return {+ mounted: true,+ animated: !!p.animMgr,+ clip: p.animMgr?.currentName || null,+ bones,+ };+ },};}diff --git a/tests/e2e/irl-pin-idle.spec.js b/tests/e2e/irl-pin-idle.spec.jsnew file mode 100644index 000000000..f1e08b0f5--- /dev/null+++ b/tests/e2e/irl-pin-idle.spec.js@@ -0,0 +1,123 @@+/**+ * /irl pin idle animation — Playwright e2e for the "T-posed statue" regression.+ *+ * Pins used to mount their GLB in the authored bind pose and never move (the+ * carried avatar animated; placed agents did not). This spec drives the REAL+ * pin pipeline — proximity band → LOD full mount → per-pin retargeted idle+ * mixer — in a real browser and proves the placed agent's skeleton is actually+ * moving frame to frame.+ *+ * Hermetic like irl-discovery.spec.js: /api/irl/pins is routed to a+ * deterministic row (avatar = the committed /avatars/default.glb), the+ * fix-token mint is stubbed, and the DEV-only window.__irlE2E seam supplies+ * GPS + a one-shot reconcile + the pinAnim() liveness probe.+ */++import { test, expect } from '@playwright/test';++const VIEWER = { lat: 37.7749, lng: -122.4194 };++function pinRow(id, lat, lng, name) {+ return {+ id,+ lat,+ lng,+ heading: 0,+ avatar_url: '/avatars/default.glb',+ avatar_name: name,+ caption: '',+ x402_endpoint: null,+ agent_id: null,+ placed_at: '2026-01-01T00:00:00Z',+ view_count: 0,+ room_id: null,+ rel_east_m: null,+ rel_north_m: null,+ origin_lat: null,+ origin_lng: null,+ origin_yaw_deg: null,+ gps_accuracy_m: 8,+ altitude_m: null,+ anchor_source: null,+ avatar_version: 0,+ };+}++function offset(lat, lng, north, east) {+ const mLat = 110540;+ const mLng = 111320 * Math.cos(lat * (Math.PI / 180));+ return { lat: lat + north / mLat, lng: lng + east / mLng };+}++async function installRoutes(page) {+ let served = [];+ await page.route(/\/api\/irl\/pins\?/, (route) =>+ route.fulfill({ json: { pins: served } }),+ );+ await page.route('**/api/irl/fix-token', (route) =>+ route.fulfill({ json: { token: 'e2e-fix', expires_in: 300 } }),+ );+ return (rows) => { served = rows; };+}++async function bootIrl(page) {+ await page.goto('/irl');+ await page.waitForFunction(() => !!window.__irlE2E, null, { timeout: 90_000 });+}++function trackConsoleErrors(page) {+ const errors = [];+ page.on('console', (m) => {+ if (m.type() !== 'error') return;+ const t = m.text();+ if (/websocket|hmr|wss:|vite|favicon|net::ERR/i.test(t)) return;+ if (/status of 401/i.test(t) && !/\/api\/irl\//i.test(m.location()?.url || '')) return;+ errors.push(t);+ });+ page.on('pageerror', (err) => {+ if (/websocket|hmr|wss:/i.test(err.message)) return;+ errors.push(`pageerror: ${err.message}`);+ });+ return errors;+}++test.describe('/irl pin idle animation', () => {+ test('a placed agent mounts with a running idle mixer and its skeleton moves', async ({ page }) => {+ test.setTimeout(180_000);+ const errors = trackConsoleErrors(page);+ const setServed = await installRoutes(page);++ await bootIrl(page);+ await page.evaluate((v) => window.__irlE2E.setGps(v.lat, v.lng), VIEWER);++ // Plant one agent 8 m away — inside the ENTER gate AND the full-GLB LOD band+ // on every device tier, so enforceLOD mounts the skinned mesh.+ const near = offset(VIEWER.lat, VIEWER.lng, 8, 0);+ setServed([pinRow('pin-idle', near.lat, near.lng, 'Idler')]);+ await page.evaluate(() => window.__irlE2E.poll());++ // Wait for the full model to mount (GLB fetch + decode + idle clip fetch ++ // retarget). The tick loop's 4 Hz enforceLOD drives the queued load.+ await page.waitForFunction(+ () => window.__irlE2E.pinAnim('pin-idle').mounted,+ null,+ { timeout: 60_000 },+ );++ const first = await page.evaluate(() => window.__irlE2E.pinAnim('pin-idle'));+ expect(first.animated).toBe(true);+ expect(first.clip).toBe('idle');+ expect(Array.isArray(first.bones)).toBe(true);+ expect(first.bones.length).toBeGreaterThan(0);++ // Sample the skeleton again after a few hundred ms of real frames. A statue+ // (the old behavior) returns byte-identical quaternions; a breathing agent+ // cannot.+ await page.waitForTimeout(600);+ const second = await page.evaluate(() => window.__irlE2E.pinAnim('pin-idle'));+ expect(second.mounted).toBe(true);+ expect(second.bones).not.toEqual(first.bones);++ expect(errors).toEqual([]);+ });+});