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
feat: enhance auto-rigging capabilities and improve AR experience
qrqk4b8bbe250860
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 91ca3e3d0..f6e881feb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,8 +12,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Agent Reputation Leaderboard — top agents promoted in marketplace by on-chain trust score** — The platform now autonomously ranks the top 10 three.ws agents by behavioral trust score every 30 minutes via a real x402 payment to the agent-reputation endpoint. Scores are synthesized from real on-chain pump.fun agent-payments activity, distribution/buyback success, and signed Solana attestations — not a subjective rating. The top 10 are promoted to the front of the marketplace recommended feed and marked with a ◈ Top Trust badge. The ranking is also stored as an oracle signal (topic: agent_reputation_leaderboard) for downstream systems to query. Full snapshot history is written to agent_reputation_leaderboard_snapshots so trust trends are auditable over time. (`/marketplace`) `[feature, improvement]`- **Agent Studio's Brain editor is now a clean form, not a node graph** — Designing your agent's mind no longer means dragging wires around a flow-chart. The Brain tab is now an ordered stack of cards — Persona, Memory, Skills, Market signals, Model, and Avatar output — that you simply fill in. The wiring happens automatically: a card that's present is part of your agent's reasoning; remove it and it's gone. Templates, the live test chat, the behavior preview, and the 'watch it think' highlight all carry over unchanged, and everything you already built loads straight into the new editor. (`/agent-studio`) `[improvement]`- **API Key Validity Health — the platform verifies its own access keys every hour** — A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: "autonomous_loop" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses. `[infra, feature]`+- **AR avatars look right on iPhone, and AR tells you what to do on a desktop** — Two fixes to the "View in AR" experience. Avatars with position-only props or accessories were exported to iOS Quick Look without surface normals, so those parts showed up flat and mis-lit; every mesh now gets correct normals before the USDZ is built, so avatars are shaded properly in your room. And on a desktop or any device that can't do AR, the "Place in your space" button used to do nothing when clicked — it now copies the page link and tells you to open it on your iPhone or Android, where AR actually works. (`/features/ar`) `[fix, improvement]`- **Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes** — A broken auth subsystem — a JWT signer that stops working, a verifier that accepts expired tokens, or a misconfigured issuer — can lock users out silently or, worse, leave a security hole open. The platform now detects both within 30 minutes. Every half-hour an autonomous agent makes a real on-chain payment to a new /api/x402/auth-health endpoint and runs a four-step session lifecycle canary: mint a canary access token, verify it with the full JWT verifier, issue a replacement token and re-verify it (the rotation path), and confirm that an already-expired token is rejected. Each step is timed independently; a failure names exactly which step broke and why. The result — all_pass, failed_step, and per-step latency — is recorded as an actionable signal so ops can read auth health off a single log row without a separate query. `[infra, security]`- **Avatar generation rides out engine outages by failing over between backends** — Describe-it-to-3D and Instant Agent Genesis no longer dead-end with "the avatar engine rejected this job" when one 3D backend has a hiccup. A request now tries every configured engine in turn — and your own Meshy or Tripo key as a backstop — before giving up, so a single provider's cold start, throttle, or outage is invisible to you. On the rare moment every engine is down at once, the error now points you straight to the selfie scanner and offers a one-tap retry instead of stranding the build. (`/create/prompt`) `[fix]`+- **Building a strategy is now a real page, not a cramped pop-up** — Creating or editing a Strategy Object on the Strategies page (/strategies) opened a small modal that squeezed a long, multi-section form — entry rules, sizing, take-profit, stop-loss, risk — into a scrolling box. It now opens as a full builder page with room to work: the rules on the left and a sticky "Your strategy" panel on the right that shows a plain-language summary of your plan as you type, the safety guarantees, and the Create button always in reach. The builder is shareable and reload-safe (it lives at /strategies?editor=new) and the browser back button returns you to the library. Editing a strategy in-context from an agent's profile still uses the quick inline editor. (`/strategies`) `[improvement]`- **Changelog Telegram bot health check** — The autonomous x402 loop now pings the changelog Telegram bot every 5 minutes by paying $0.001 USDC to the new /api/x402/telegram-health endpoint. It verifies the bot can reach the Telegram API, measures round-trip latency, and raises a Redis alert when it can't — so ops knows immediately when $THREE holders would miss a changelog entry. `[infra, feature]`- **Club Social Activity — the platform tracks its own nightlife economy on-chain** — The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "clubs", period: "24h" } for a live snapshot of the Pole Club's social economy. The report reads straight from the real ledgers — settled tips (club_tips), the stage roster (club_dancer_wallets) and settled door cover charges (x402_audit_log) — and returns how many stages are active, how many distinct patrons showed up, the tip count and USDC volume, the cover charges collected at the door, and a fastest-growing-stage leaderboard. Every snapshot is appended to a club_social_analytics time series so a dashboard can chart whether the nightlife is heating up or cooling down and spot which stages are on the rise. `[feature, infra]`- **Create an agent by describing it — the wizard now builds itself** — Spinning up an agent no longer means filling out five steps of fields. At the top of the Create flow there's now a single box: describe your agent in a sentence — "a witty crypto market analyst that explains charts in plain English" — and we generate the whole thing for you: name, description, tags, the right skills, a fitting 3D body, a marketplace category, a greeting, and its personality. No idea where to start? Tap an example or hit "Surprise me" and get a complete agent with zero typing. Everything lands on the Review step pre-filled, so you read it over, tweak anything you like, and ship. The by-hand form is still right there for anyone who wants it. (`/create-agent`) `[feature]`@@ -21,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Forge Content Health — the platform canaries its own generation engine every 10 minutes** — Every 3D generation the Forge produces begins by running a prompt through the platform's generative AI lane, so if that lane slows down or goes dark, creations stall before a mesh is ever built. The platform now watches for this automatically. Every ten minutes an autonomous agent makes a real on-chain payment to a new lightweight health_check mode on /api/x402/forge, which runs one fast text completion over the same free-first model chain Forge depends on — no expensive 3D reconstruction — and reports back whether content was generated, how long it took, and the token count. A completion slower than five seconds, or an outright generator outage, raises a Forge performance alert that an on-call dashboard reads in a single lookup and that clears itself once generation is healthy again. The new health_check mode is also available to any x402 agent on the bazaar for a fraction of a cent, far cheaper than a full generation, for callers that just want to confirm the engine is live. `[infra, feature]`- **Forge Image Generation Canary — the platform validates its own image pipeline every 5 minutes** — Every Forge job that reconstructs a 3D mesh starts with a text-to-image call. If the image provider chain is down or hung, every paid Forge generation silently fails — before users even hit the paywall. The platform now detects this automatically. Every five minutes an autonomous agent makes a real on-chain $0.001 USDC payment to /api/x402/forge with body { mode: "health_check", type: "image", prompt: "A simple blue circle." }. The endpoint runs one real text-to-image call through the free-first provider chain (NIM FLUX → Vertex Imagen → Replicate backstop) and uploads the result to R2 CDN — proving the full image generation and CDN upload path end-to-end. The extracted signal { generated, url, latency_ms } lands in x402_autonomous_log.signal_data. When generation fails or latency exceeds 30 seconds, a Redis alert (x402:forge-image-health:alert) is raised so ops can investigate before users see broken generations. The image alert key is separate from the existing text LLM canary alert so both lanes can degrade independently. `[infra, feature]`- **Forge no longer dead-ends on "Generator not configured" when a free lane is live** — When the free NVIDIA text→3D lane was briefly down, Forge could return "Generator not configured" even on deployments where the free Hugging Face lane was fully set up — because the degrade step looked for a paid Replicate key that wasn't required. Forge now falls through to whichever free engine is configured (Hugging Face Spaces) instead of stopping, so a single free key keeps text and photo generation working through upstream blips. (`/forge`) `[fix]`+- **Forged avatars get auto-rigged whenever a rigging lane is available** — Avatars you forge are meant to come out animation-ready — rigged with a skeleton so they can idle, walk, and play poses. The auto-rig step was only ever asking the single highest-priority generation provider whether it could rig; when that provider handled mesh generation but not rigging, the step gave up and shipped a static, un-rigged mesh — even though a capable rigging service was configured and ready. The pipeline now looks across every configured provider and routes rigging to the first one that actually supports it, so a forged avatar is rigged whenever any rigging lane exists. The same fix applies to selfie/prompt reconstruction, saved uploads, and the background backfill that rigs older avatars. `[fix]`- **LLM Proxy Latency Benchmark — p95 alerting when inference exceeds 3 seconds** — The autonomous loop now benchmarks LLM inference latency every 10 minutes by making a real $0.005 USDC x402 payment to /api/x402/llm-proxy with a minimal 'Count to 3.' prompt. Each run records { latency_ms, tokens_used, model, provider } to x402_autonomous_log. After 3+ samples accumulate, the platform computes rolling p95 latency from the last 20 successful calls and raises a Redis alert (x402:llm-proxy-latency:p95-alert) when p95 exceeds 3 seconds — giving ops a heads-up on provider degradation before end users notice slow AI responses. `[infra, feature]`- **LLM Proxy Output Quality Probe — the platform verifies its own AI inference returns correct answers** — Every agent that calls /api/x402/llm-proxy pays for a completion it trusts to be correct. Silent LLM degradation — garbled output, hallucinated answers, truncated responses — is invisible without a correctness check. The platform now catches this automatically. Every ten minutes an autonomous agent makes a real on-chain $0.005 USDC payment to /api/x402/llm-proxy with body { model: "reasoning", prompt: "What is 7 + 8? Reply with only the number.", max_tokens: 5 }. The extracted signal { output, correct, provider, latency_ms } lands in x402_autonomous_log.signal_data. When the response is anything other than "15", a Redis alert (x402:llm-proxy:quality-alert) is raised immediately so ops can investigate model degradation before downstream agents experience silent failures. `[infra, feature]`- **Marketplace Catalog Stats — live listing count, pricing, and engagement via x402** — The autonomous loop now pays /api/x402/analytics every 5 minutes with { report: "marketplace", period: "7d" } to confirm the public agent marketplace is alive and measure its health. The report returns the total active listing count split into priced vs free, the price distribution normalised to both USD and SOL at the live Jupiter rate, the count of new listings in the selected window, and the most-viewed and most-forked listing by ID and name. The extracted signal — listing_count, avg_price_sol, most_viewed_id — is recorded to x402_autonomous_log so a health dashboard can read marketplace vitals without querying the catalog tables directly. A listing_count of 0 trips an ops alert within one 5-minute window; a null avg_price_sol flags a SOL oracle outage. `[feature, infra]`diff --git a/api/cron/auto-rig-sweep.js b/api/cron/auto-rig-sweep.jsindex 488fd9fec..0eaec5c50 100644--- a/api/cron/auto-rig-sweep.js+++ b/api/cron/auto-rig-sweep.js@@ -13,15 +13,16 @@// fails) them. It deliberately ignores jobs touched in the last few minutes so// it never races the webhook for a job that's completing normally.//-// Auto-rig only ever runs on the platform Replicate provider (rerig is the only-// mode it supports), so a single getRegenProvider() resolves every job here —-// no per-job BYOK key juggling.+// Every job here is a rerig job, so resolve the first platform provider that+// actually supports rerig (Replicate with a rerig model, or the self-hosted GCP+// UniRig pipeline) — deterministic precedence means it matches the provider the+// submit path chose. No per-job BYOK key juggling.import { error, json, method, wrapCron } from '../_lib/http.js';import { env } from '../_lib/env.js';import { constantTimeEquals } from '../_lib/crypto.js';import { sql } from '../_lib/db.js';-import { getRegenProvider } from '../_lib/regen-provider.js';+import { getRegenProviderForMode } from '../_lib/regen-provider.js';import { finalizeAutoRigStage } from '../_lib/auto-rig.js';import { isAllowedProviderResultUrl } from '../_lib/provider-result-url.js';@@ -140,7 +141,7 @@ export default wrapCron(async (req, res) => {if (!providerResolved) {providerResolved = true;try {- provider = await getRegenProvider();+ provider = await getRegenProviderForMode('rerig');} catch (err) {console.warn('[auto-rig-sweep] provider resolve failed', { error: err?.message });provider = null;diff --git a/api/forge.js b/api/forge.jsindex 82f59231a..54aa59e59 100644--- a/api/forge.js+++ b/api/forge.js@@ -1699,25 +1699,54 @@ async function startRigJob(req, res) {});}- let provider;- try {- provider = createRegenProvider();- } catch {- return unconfigured(res);+ // Prefer the self-hosted GCP UniRig pipeline when it's configured — it supports+ // rerig out of the box via its /rig endpoint — and fall back to Replicate when+ // a REPLICATE_RERIG_MODEL is set. Mirrors the gcp-first resolution the MCP+ // studio path uses, so rigging works whenever ANY rerig-capable lane exists,+ // not only when the highest-precedence provider happens to be the rigger.+ let provider = null;+ let providerName = 'replicate';+ if (process.env.GCP_RECONSTRUCTION_KEY) {+ try {+ const gcp = createGcpProvider();+ if (gcp.supportsMode('rerig')) {+ provider = gcp;+ providerName = 'gcp';+ }+ } catch {+ // fall through to Replicate+ }+ }+ if (!provider) {+ try {+ const rep = createRegenProvider();+ if (rep.supportsMode('rerig')) {+ provider = rep;+ providerName = 'replicate';+ }+ } catch {+ return unconfigured(res);+ }}- // Rigging stays dormant until a rerig model is configured — surface a clean+ // Rigging stays dormant until a rerig lane is configured — surface a clean// 501 rather than a generic provider error so callers can branch on it.- if (!provider.supportsMode('rerig')) {+ if (!provider) {return json(res, 501, {error: 'rig_unconfigured',message:- 'Auto-rigging is not configured on this deployment (REPLICATE_RERIG_MODEL is not set).',+ 'Auto-rigging is not configured on this deployment (set GCP_RECONSTRUCTION_URL + GCP_RECONSTRUCTION_KEY, or REPLICATE_RERIG_MODEL).',});}try {const job = await provider.submit({ mode: 'rerig', sourceUrl: glbUrl, params: {} });+ // GCP rig jobs poll through a token-encoded handle so /api/forge?action=status+ // routes back to the GCP worker; Replicate jobs use the bare prediction id.+ const jobToken =+ providerName === 'gcp'+ ? encodeJobToken({ provider: 'gcp', kind: null, taskId: job.extJobId })+ : job.extJobId;const creationId = await createCreation({clientKey: clientKeyFrom(req),ipHash: hashIp(ip),@@ -1728,7 +1757,7 @@ async function startRigJob(req, res) {textToImageModel: null,});return json(res, 200, {- job_id: job.extJobId,+ job_id: jobToken,creation_id: creationId,status: 'queued',mode: 'rig',diff --git a/data/changelog.json b/data/changelog.jsonindex 6a82411f1..c0e31d8c9 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,33 @@{"$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-06-28",+ "title": "Forged avatars get auto-rigged whenever a rigging lane is available",+ "summary": "Avatars you forge are meant to come out animation-ready — rigged with a skeleton so they can idle, walk, and play poses. The auto-rig step was only ever asking the single highest-priority generation provider whether it could rig; when that provider handled mesh generation but not rigging, the step gave up and shipped a static, un-rigged mesh — even though a capable rigging service was configured and ready. The pipeline now looks across every configured provider and routes rigging to the first one that actually supports it, so a forged avatar is rigged whenever any rigging lane exists. The same fix applies to selfie/prompt reconstruction, saved uploads, and the background backfill that rigs older avatars.",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-28",+ "title": "Building a strategy is now a real page, not a cramped pop-up",+ "summary": "Creating or editing a Strategy Object on the Strategies page (/strategies) opened a small modal that squeezed a long, multi-section form — entry rules, sizing, take-profit, stop-loss, risk — into a scrolling box. It now opens as a full builder page with room to work: the rules on the left and a sticky \"Your strategy\" panel on the right that shows a plain-language summary of your plan as you type, the safety guarantees, and the Create button always in reach. The builder is shareable and reload-safe (it lives at /strategies?editor=new) and the browser back button returns you to the library. Editing a strategy in-context from an agent's profile still uses the quick inline editor.",+ "tags": [+ "improvement"+ ],+ "link": "/strategies"+ },+ {+ "date": "2026-06-28",+ "title": "AR avatars look right on iPhone, and AR tells you what to do on a desktop",+ "summary": "Two fixes to the \"View in AR\" experience. Avatars with position-only props or accessories were exported to iOS Quick Look without surface normals, so those parts showed up flat and mis-lit; every mesh now gets correct normals before the USDZ is built, so avatars are shaded properly in your room. And on a desktop or any device that can't do AR, the \"Place in your space\" button used to do nothing when clicked — it now copies the page link and tells you to open it on your iPhone or Android, where AR actually works.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/features/ar"+ },{"date": "2026-06-28","title": "The \"Save to my avatars\" button is readable on every theme",diff --git a/public/changelog.json b/public/changelog.jsonindex 33734f052..a59c20a13 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T06:56:56.701Z",+ "generated_at": "2026-06-28T07:03:01.292Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -68,6 +68,17 @@"feature"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "AR avatars look right on iPhone, and AR tells you what to do on a desktop",+ "summary": "Two fixes to the \"View in AR\" experience. Avatars with position-only props or accessories were exported to iOS Quick Look without surface normals, so those parts showed up flat and mis-lit; every mesh now gets correct normals before the USDZ is built, so avatars are shaded properly in your room. And on a desktop or any device that can't do AR, the \"Place in your space\" button used to do nothing when clicked — it now copies the page link and tells you to open it on your iPhone or Android, where AR actually works.",+ "link": "/features/ar",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-06-28","type": "update",@@ -89,6 +100,16 @@"fix"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Building a strategy is now a real page, not a cramped pop-up",+ "summary": "Creating or editing a Strategy Object on the Strategies page (/strategies) opened a small modal that squeezed a long, multi-section form — entry rules, sizing, take-profit, stop-loss, risk — into a scrolling box. It now opens as a full builder page with room to work: the rules on the left and a sticky \"Your strategy\" panel on the right that shows a plain-language summary of your plan as you type, the safety guarantees, and the Create button always in reach. The builder is shareable and reload-safe (it lives at /strategies?editor=new) and the browser back button returns you to the library. Editing a strategy in-context from an agent's profile still uses the quick inline editor.",+ "link": "/strategies",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-28","type": "update",@@ -163,6 +184,16 @@"fix"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Forged avatars get auto-rigged whenever a rigging lane is available",+ "summary": "Avatars you forge are meant to come out animation-ready — rigged with a skeleton so they can idle, walk, and play poses. The auto-rig step was only ever asking the single highest-priority generation provider whether it could rig; when that provider handled mesh generation but not rigging, the step gave up and shipped a static, un-rigged mesh — even though a capable rigging service was configured and ready. The pipeline now looks across every configured provider and routes rigging to the first one that actually supports it, so a forged avatar is rigged whenever any rigging lane exists. The same fix applies to selfie/prompt reconstruction, saved uploads, and the background backfill that rigs older avatars.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex af7a7d9c9..0374c59b2 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -54,6 +54,14 @@<category>infra</category><description>A lapsed or missing access key for the autonomous loop means every self-call in the pipeline hits the paywall cold — legitimate tool calls start failing, recovery is manual, and the outage is invisible until someone investigates why the spend log went quiet. The platform now detects this automatically. Every hour an autonomous agent makes a real on-chain payment to a new /api/x402/api-key-health endpoint with body { scope: "autonomous_loop" }. The endpoint checks whether any active subscription key covers the requested scope, falling back to the INTERNAL_API_KEY env var, and returns { valid, scopes, expires_at }. The extracted signal surfaces hours_until_expiry in x402_autonomous_log.signal_data. When expiry is within 24 hours the storeValue hook writes a Redis alert (x402:api-key-health:expiry-alert) so the ops surface can surface the warning before the key lapses.</description></item>+ <item>+ <title>AR avatars look right on iPhone, and AR tells you what to do on a desktop</title>+ <link>https://three.ws/features/ar</link>+ <guid isPermaLink="false">2026-06-28:AR avatars look right on iPhone, and AR tells you what to do on a desktop</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Two fixes to the "View in AR" experience. Avatars with position-only props or accessories were exported to iOS Quick Look without surface normals, so those parts showed up flat and mis-lit; every mesh now gets correct normals before the USDZ is built, so avatars are shaded properly in your room. And on a desktop or any device that can't do AR, the "Place in your space" button used to do nothing when clicked — it now copies the page link and tells you to open it on your iPhone or Android, where AR actually works.</description>+ </item><item><title>Auth Session Lifecycle Health — the platform canaries its own JWT auth pipeline every 30 minutes</title><link>https://three.ws/changelog</link>@@ -70,6 +78,14 @@<category>fix</category><description>Describe-it-to-3D and Instant Agent Genesis no longer dead-end with "the avatar engine rejected this job" when one 3D backend has a hiccup. A request now tries every configured engine in turn — and your own Meshy or Tripo key as a backstop — before giving up, so a single provider's cold start, throttle, or outage is invisible to you. On the rare moment every engine is down at once, the error now points you straight to the selfie scanner and offers a one-tap retry instead of stranding the build.</description></item>+ <item>+ <title>Building a strategy is now a real page, not a cramped pop-up</title>+ <link>https://three.ws/strategies</link>+ <guid isPermaLink="false">2026-06-28:Building a strategy is now a real page, not a cramped pop-up</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Creating or editing a Strategy Object on the Strategies page (/strategies) opened a small modal that squeezed a long, multi-section form — entry rules, sizing, take-profit, stop-loss, risk — into a scrolling box. It now opens as a full builder page with room to work: the rules on the left and a sticky "Your strategy" panel on the right that shows a plain-language summary of your plan as you type, the safety guarantees, and the Create button always in reach. The builder is shareable and reload-safe (it lives at /strategies?editor=new) and the browser back button returns you to the library. Editing a strategy in-context from an agent's profile still uses the quick inline editor.</description>+ </item><item><title>Changelog Telegram bot health check</title><link>https://three.ws/changelog</link>@@ -126,6 +142,14 @@<category>fix</category><description>When the free NVIDIA text→3D lane was briefly down, Forge could return "Generator not configured" even on deployments where the free Hugging Face lane was fully set up — because the degrade step looked for a paid Replicate key that wasn't required. Forge now falls through to whichever free engine is configured (Hugging Face Spaces) instead of stopping, so a single free key keeps text and photo generation working through upstream blips.</description></item>+ <item>+ <title>Forged avatars get auto-rigged whenever a rigging lane is available</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:Forged avatars get auto-rigged whenever a rigging lane is available</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Avatars you forge are meant to come out animation-ready — rigged with a skeleton so they can idle, walk, and play poses. The auto-rig step was only ever asking the single highest-priority generation provider whether it could rig; when that provider handled mesh generation but not rigging, the step gave up and shipped a static, un-rigged mesh — even though a capable rigging service was configured and ready. The pipeline now looks across every configured provider and routes rigging to the first one that actually supports it, so a forged avatar is rigged whenever any rigging lane exists. The same fix applies to selfie/prompt reconstruction, saved uploads, and the background backfill that rigs older avatars.</description>+ </item><item><title>LLM Proxy Latency Benchmark — p95 alerting when inference exceeds 3 seconds</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex c0830d113..d65015c1a 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T06:56:56.682Z",+ "generated_at": "2026-06-28T07:03:01.273Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/ar-page.js b/src/ar-page.jsindex cb2199820..c1145dca4 100644--- a/src/ar-page.js+++ b/src/ar-page.js@@ -173,12 +173,32 @@ async function shareAvatar(avatar) {}}+// Tell the user how to actually get into AR when this device can't. Desktop+// browsers and embedded webviews report canActivateAR === false; calling+// activateAR() there just logs model-viewer's "No AR Mode can be activated"+// warning and does nothing visible. A copy-link CTA gets them onto a phone,+// where WebXR / Scene Viewer / Quick Look take over.+async function offerArOnPhone() {+ const statusEl = $('ar-status');+ statusEl.classList.remove('is-error');+ try {+ await navigator.clipboard.writeText(location.href);+ setStatus('AR needs a phone — link copied. Open it on your iPhone or Android.');+ } catch {+ setStatus('AR needs a phone — open this page on your iPhone or Android device.');+ }+ setTimeout(() => setStatus(null), 6000);+}+// Wire the "Place in your space" button to model-viewer's activateAR()document.addEventListener('DOMContentLoaded', () => {$('ar-launch-btn').addEventListener('click', () => {const viewer = $('ar-viewer');- if (viewer.activateAR) {+ // canActivateAR is true only when the device exposes a usable AR mode.+ if (viewer?.canActivateAR) {viewer.activateAR();+ } else {+ offerArOnPhone();}});diff --git a/src/strategies.js b/src/strategies.jsindex a9ae78720..36a5bd126 100644--- a/src/strategies.js+++ b/src/strategies.js@@ -12,13 +12,92 @@import { apiFetch } from './api.js';import {esc, shortAddr, fmtSol, timeAgo, toast, configSummary,- openStrategyEditor, openEquipPicker,+ mountStrategyComposer, openEquipPicker,} from './shared/strategy-forms.js';const grid = document.getElementById('sp-grid');const scopeSeg = document.getElementById('sp-scope');const searchInput = document.getElementById('sp-search');+// ── full-page builder ──────────────────────────────────────────────────────────+// The "New strategy" / "Edit" flow renders the builder inline as a page (not a+// modal) — a multi-section form deserves room. State lives in the URL (?editor=new+// or ?editor=<id>) so it survives reload and works with the back button.+const shell = document.querySelector('.sp-shell');+const heroEl = shell?.querySelector('.sp-hero');+const barEl = shell?.querySelector('.sp-bar');+let composeHost = null;+let composing = false;+let lastStrategy = null; // cache so editing from a card needs no extra fetch++function showLibraryChrome(on) {+ if (heroEl) heroEl.hidden = !on;+ if (barEl) barEl.hidden = !on;+ if (grid) grid.hidden = !on;+}++function enterCompose(existing) {+ composing = true;+ if (!composeHost) {+ composeHost = document.createElement('section');+ composeHost.id = 'sp-compose';+ shell?.appendChild(composeHost);+ }+ showLibraryChrome(false);+ composeHost.hidden = false;+ window.scrollTo({ top: 0 });+ mountStrategyComposer(composeHost, {+ existing,+ onSaved: () => exitCompose({ toScope: 'mine' }),+ onCancel: () => exitCompose({}),+ });+}++function leaveComposeView() {+ composing = false;+ if (composeHost) { composeHost.hidden = true; composeHost.innerHTML = ''; }+ showLibraryChrome(true);+}++// Return to the library, cleaning ?editor from the URL (replaceState — no junk+// history entry). toScope optionally switches the active tab (e.g. to "mine"+// after a create so the new strategy is visible).+function exitCompose({ toScope } = {}) {+ const u = new URL(location.href);+ u.searchParams.delete('editor');+ if (toScope) u.searchParams.set('scope', toScope);+ history.replaceState(null, '', u);+ leaveComposeView();+ if (toScope) { scope = toScope; syncSeg(); }+ load();+}++async function fetchStrategy(id) {+ try {+ const res = await apiFetch(`/api/strategies/${encodeURIComponent(id)}`, { allowAnonymous: true });+ if (!res.ok) return null;+ return (await res.json()).data;+ } catch { return null; }+}++// Reconcile the view with the URL — runs on first load and on every back/forward.+async function syncFromUrl() {+ const editor = new URL(location.href).searchParams.get('editor');+ if (!editor) { if (composing) leaveComposeView(); load(); return; }+ if (composing) return; // already on the builder for this URL+ if (!(await ensureAuthed())) { location.href = `/login?next=${encodeURIComponent('/strategies?editor=' + editor)}`; return; }+ let existing = null;+ if (editor !== 'new') {+ existing = lastStrategy && lastStrategy.id === editor ? lastStrategy : await fetchStrategy(editor);+ if (!existing) {+ toast('That strategy is no longer available');+ const u = new URL(location.href); u.searchParams.delete('editor'); history.replaceState(null, '', u);+ leaveComposeView(); load(); return;+ }+ }+ enterCompose(existing);+}+let scope = new URL(location.href).searchParams.get('scope') || 'published';let query = '';let authed = null; // resolved lazily@@ -143,9 +222,10 @@ async function doFork(s, btn) {finally { btn.disabled = false; btn.textContent = '🍴 Fork'; }}-async function doEdit(s) {- const updated = await openStrategyEditor({ existing: s });- if (updated) load();+function doEdit(s) {+ lastStrategy = s;+ const u = new URL(location.href); u.searchParams.set('editor', s.id); history.pushState(null, '', u);+ enterCompose(s);}async function doPublish(s, btn) {@@ -170,9 +250,9 @@ async function doDelete(s) {}async function createNew() {- if (!(await ensureAuthed())) { location.href = `/login?next=${encodeURIComponent('/strategies')}`; return; }- const created = await openStrategyEditor({});- if (created) { scope = 'mine'; syncSeg(); load(); }+ if (!(await ensureAuthed())) { location.href = `/login?next=${encodeURIComponent('/strategies?editor=new')}`; return; }+ const u = new URL(location.href); u.searchParams.set('editor', 'new'); history.pushState(null, '', u);+ enterCompose(null);}async function ensureAuthed() {@@ -205,5 +285,7 @@ searchInput?.addEventListener('input', () => {document.getElementById('sp-new')?.addEventListener('click', createNew);+window.addEventListener('popstate', () => { syncFromUrl(); });+syncSeg();-load();+syncFromUrl();diff --git a/src/usdz-animated.js b/src/usdz-animated.jsindex 5441f733b..c8c722651 100644--- a/src/usdz-animated.js+++ b/src/usdz-animated.js@@ -25,6 +25,7 @@ import {_loadGlbBlob,_bakedLocalPositions,_coerceMaterialsToStandard,+ _ensureNormals,} from './usdz-pipeline.js';import { retargetClipToObject } from './animation-retarget.js';@@ -274,6 +275,9 @@ export async function glbBlobToAnimatedUsdzBlob(glbBlob, opts = {}) {const animated = buildFrame0Scene(scene, framesByMesh);_coerceMaterialsToStandard(scene);+ // Cover any non-skinned meshes (static props/accessories) that ship without+ // normals so the base export doesn't warn or render them flat in Quick Look.+ _ensureNormals(scene);// Base export: proven materials / textures / alignment from the static path.const exporter = new USDZExporter();diff --git a/src/usdz-pipeline.js b/src/usdz-pipeline.jsindex 7d51795bd..14227b74c 100644--- a/src/usdz-pipeline.js+++ b/src/usdz-pipeline.js@@ -127,6 +127,26 @@ export function _coerceMaterialsToStandard(scene) {});}+/**+ * Guarantee every renderable mesh in the scene carries a `normal` attribute.+ * three's USDZExporter logs "USDZExporter: Normals missing." and writes flat,+ * lighting-broken geometry for any mesh without normals — common for procedural+ * or decimated props that ship position-only. The skinned-mesh bake already+ * recomputes normals on the geometry it replaces; this covers everything else+ * (static meshes, accessories) right before export. Shared by both USDZ paths.+ *+ * @param {import('three').Object3D} scene+ */+export function _ensureNormals(scene) {+ scene.traverse((obj) => {+ if (!obj.isMesh || !obj.geometry) return;+ const geom = obj.geometry;+ if (geom.getAttribute('normal')) return;+ if (!geom.getAttribute('position')) return;+ geom.computeVertexNormals();+ });+}+export function _bakeSkinnedMeshesForExport(scene) {scene.updateMatrixWorld(true);@@ -187,6 +207,10 @@ export async function glbBlobToUsdzBlob(glbBlob) {// visual result is close-to-identical for the typical avatar PBR setup._coerceMaterialsToStandard(scene);+ // Position-only meshes (props, decimated accessories) would export flat-shaded+ // and trigger the exporter's "Normals missing" warning — fill them in first.+ _ensureNormals(scene);+const exporter = new USDZExporter();const usdzBytes = await exporter.parseAsync(scene);return new Blob([usdzBytes], { type: 'model/vnd.usdz+zip' });diff --git a/tests/api/auto-rig-finalize.test.js b/tests/api/auto-rig-finalize.test.jsindex 71405c80a..8d72f4cec 100644--- a/tests/api/auto-rig-finalize.test.js+++ b/tests/api/auto-rig-finalize.test.js@@ -107,7 +107,7 @@ vi.mock('../../api/_lib/glb-inspect.js', () => ({}));vi.mock('../../api/_lib/webhook-dispatch.js', () => ({ dispatchWebhooks: vi.fn(async () => {}) }));-vi.mock('../../api/_lib/regen-provider.js', () => ({ getRegenProvider: async () => ({ name: 'replicate', instance: null }) }));+vi.mock('../../api/_lib/regen-provider.js', () => ({ getRegenProvider: async () => ({ name: 'replicate', instance: null }), getRegenProviderForMode: async () => ({ name: 'replicate', instance: null }) }));// The rigged-GLB fetch now flows through the shared provider-result-url guard// (host allowlist + IP-pinned SSRF connect), which uses raw node http — not thediff --git a/tests/api/reconstruct-finalize.test.js b/tests/api/reconstruct-finalize.test.jsindex f23bf9434..1617b7bbc 100644--- a/tests/api/reconstruct-finalize.test.js+++ b/tests/api/reconstruct-finalize.test.js@@ -32,6 +32,9 @@ vi.mock('../../api/_lib/webhook-dispatch.js', () => ({ dispatchWebhooks: async (const providerMock = { name: 'replicate', instance: null };vi.mock('../../api/_lib/regen-provider.js', () => ({getRegenProvider: async () => providerMock,+ // Mirror the real resolver: return the provider only when it supports the mode.+ getRegenProviderForMode: async (mode) =>+ providerMock.instance?.supportsMode?.(mode) ? providerMock : { name: 'none', instance: null },}));// Provider/result GLBs (the reconstruct output, the rigged result, and the bare@@ -104,7 +107,7 @@ describe('pollRiggingStage', () => {it('materializes the rigged GLB when the rig job completes', async () => {inspectGlbMock.mockReturnValue(RIGGED);- providerMock.instance = { status: vi.fn(async () => ({ status: 'done', resultGlbUrl: 'https://x/rigged.glb' })) };+ providerMock.instance = { supportsMode: (m) => m === 'rerig', status: vi.fn(async () => ({ status: 'done', resultGlbUrl: 'https://x/rigged.glb' })) };const out = await pollRiggingStage({ userId: 'u1', jobId: 'j1', job: rigJob });expect(out).toEqual({ status: 'done', resultAvatarId: 'avatar-1' });expect(createAvatarMock.mock.calls[0][0].input.source_meta.rigged).toBe(true);@@ -112,14 +115,14 @@ describe('pollRiggingStage', () => {it('falls back to the bare mesh when the rig job fails', async () => {inspectGlbMock.mockReturnValue(UNRIGGED);- providerMock.instance = { status: vi.fn(async () => ({ status: 'failed', error: 'rig oom' })) };+ providerMock.instance = { supportsMode: (m) => m === 'rerig', status: vi.fn(async () => ({ status: 'failed', error: 'rig oom' })) };const out = await pollRiggingStage({ userId: 'u1', jobId: 'j1', job: rigJob });expect(out.status).toBe('done');expect(createAvatarMock.mock.calls[0][0].input.tags).toContain('unrigged');});it('stays in rigging while the rig job is still running', async () => {- providerMock.instance = { status: vi.fn(async () => ({ status: 'running' })) };+ providerMock.instance = { supportsMode: (m) => m === 'rerig', status: vi.fn(async () => ({ status: 'running' })) };const out = await pollRiggingStage({ userId: 'u1', jobId: 'j1', job: rigJob });expect(out).toEqual({ status: 'rigging' });expect(createAvatarMock).not.toHaveBeenCalled();diff --git a/tests/auto-rig-gates.test.js b/tests/auto-rig-gates.test.jsindex 0dfd9b0be..1ba73cf3a 100644--- a/tests/auto-rig-gates.test.js+++ b/tests/auto-rig-gates.test.js@@ -31,6 +31,10 @@ vi.mock('../api/_lib/regen-provider.js', () => ({name: 'replicate',instance: { supportsMode: (m) => m === 'rerig', submit },}),+ getRegenProviderForMode: async (mode) =>+ mode === 'rerig'+ ? { name: 'replicate', instance: { supportsMode: (m) => m === 'rerig', submit } }+ : { name: 'none', instance: null },}));// In-memory limiter, each bucket independently togglable.diff --git a/tests/auto-rig-ssrf.test.js b/tests/auto-rig-ssrf.test.jsindex bb2759731..fc97ec323 100644--- a/tests/auto-rig-ssrf.test.js+++ b/tests/auto-rig-ssrf.test.js@@ -67,6 +67,7 @@ vi.mock('../api/_lib/auth.js', () => ({const providerInstance = { status: vi.fn(async () => state.statusReturn) };vi.mock('../api/_lib/regen-provider.js', () => ({getRegenProvider: async () => ({ name: 'replicate', instance: providerInstance }),+ getRegenProviderForMode: async () => ({ name: 'replicate', instance: providerInstance }),getRegenProviderForJob: async () => ({ name: 'replicate', instance: providerInstance }),getRegenProviderByName: async () => ({ name: 'replicate', instance: providerInstance }),BYOK_REGEN_PROVIDERS: [],diff --git a/tests/usdz-skinning-bake.test.js b/tests/usdz-skinning-bake.test.jsindex df3c3ccdd..5578b74ef 100644--- a/tests/usdz-skinning-bake.test.js+++ b/tests/usdz-skinning-bake.test.js@@ -23,7 +23,7 @@ import {Scene,} from 'three';-import { _bakeSkinnedMeshesForExport } from '../src/usdz-pipeline.js';+import { _bakeSkinnedMeshesForExport, _ensureNormals } from '../src/usdz-pipeline.js';function buildSkinnedTriangle() {const geo = new BufferGeometry();@@ -86,3 +86,40 @@ describe('_bakeSkinnedMeshesForExport', () => {expect(scene.children).toContain(plain);});});++describe('_ensureNormals', () => {+ it('computes normals for a position-only mesh so USDZExporter does not warn', () => {+ const geo = new BufferGeometry();+ geo.setAttribute('position', new Float32BufferAttribute([0, 1, 0, 1, 0, 0, 0, 0, 1], 3));+ expect(geo.getAttribute('normal')).toBeUndefined();++ const scene = new Scene();+ scene.add(new Mesh(geo, new MeshStandardMaterial()));++ _ensureNormals(scene);++ const normal = geo.getAttribute('normal');+ expect(normal).toBeDefined();+ expect(normal.count).toBe(3);+ });++ it('leaves an existing normal attribute untouched', () => {+ const geo = new BufferGeometry();+ geo.setAttribute('position', new Float32BufferAttribute([0, 1, 0, 1, 0, 0, 0, 0, 1], 3));+ const authored = new Float32BufferAttribute([0, 0, 1, 0, 0, 1, 0, 0, 1], 3);+ geo.setAttribute('normal', authored);++ const scene = new Scene();+ scene.add(new Mesh(geo, new MeshStandardMaterial()));++ _ensureNormals(scene);++ expect(geo.getAttribute('normal')).toBe(authored);+ });++ it('ignores meshes without a position attribute', () => {+ const scene = new Scene();+ scene.add(new Mesh(new BufferGeometry(), new MeshStandardMaterial()));+ expect(() => _ensureNormals(scene)).not.toThrow();+ });+});