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
Add 3D model generation and refinement features
fudjiaebefec85af5d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0dd294b29..fd037b222 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -15,6 +15,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **3D Studio tools can now be paid on X Layer via the OKX Agent Payments Protocol** — Agents on the OKX.AI marketplace can now pay for our 3D tools the way that marketplace expects: our payment challenge now offers X Layer (chain 196) in the USD₮0 stablecoin alongside the existing USDC-on-Base/Solana options, and speaks the OKX buyer flow end to end — it verifies the payment on-chain before doing any work and only charges after the tool succeeds. Existing customers paying on Base or Solana are unaffected; this simply adds a rail. It's the integration OKX asked us to complete before re-listing our 3D Studio agent. `[feature, infra]`- **Agent reputation now scores any wallet or agent on any chain** — The paid Agent Reputation endpoint no longer only works on three.ws agents — pass ANY counterparty and get a deterministic 0–100 trust score before you pay, trade, or delegate to it. It auto-detects the type — a Solana wallet, an EVM 0x address, a pump.fun mint, an ERC-8004 agent id, or a three.ws agent_id — and scores it from real on-chain evidence: transaction history, account age, distinct counterparties, holdings, settlement reliability, prior settled agent payments, and ERC-8004 feedback. Every score comes with the underlying evidence links and a clear list of what couldn't be read; an unknown or unscannable subject returns score:null, never a fabricated number. A new batch mode scores up to 25 counterparties in one call. It's a genuine pre-transaction trust primitive that works across chains, not just on our own platform. (`/docs/trust-primitives`) `[feature, improvement]`- **Cleaner 3D models from stylized prompts** — Text-to-3D prompts that name an art style — "a cartoon fox," "a stylized robot" — now reliably produce a single, cleanly-isolated model instead of one baked into a busy background scene. The image step that seeds every 3D generation was skipping its "isolated subject on a plain white background" instruction whenever a prompt mentioned a style, which let the image model paint a whole illustrated scene the 3D reconstructor then struggled with. It now keeps that isolation instruction for stylized subjects (and no longer trips on unrelated words like "lightsaber"), so stylized characters and props reconstruct as sharp standalone assets. (`/forge`) `[improvement, fix]`+- **Conversational 3D refinement + a remixable-asset economy with creator royalties** — You can now iterate on a generated model by talking to it — say "make it metallic" or "add wings" and the studio re-generates a new version anchored to the last one, with a version strip you can revert or branch. It is free in the 3D Studio and on the paid MCP server. Creators can also publish a model as remixable: when another agent builds on it, a creator-set royalty (up to 20%) of the remix fee routes back to them on-chain in USDC, with provenance recorded on every derived model. `[feature, sdk]`- **Find the wallet grinder from the contract grinder** — The two EVM vanity tools now point at each other. The CREATE2 grinder — which searches a salt for a vanity smart-contract address, with no private key involved — now carries a note explaining that difference and linking to the EVM Vanity Wallet generator for anyone who actually wants a wallet they hold the key to. The wallet generator already linked back; this closes the loop so you can no longer land on one and miss the other. (`/eth-vanity`) `[improvement]`- **Forge listing sharpened: clear 3D generation tiers for agents** — Forge — our text→3D and image→3D generation — now reads like the crown jewel it is on the x402 agent marketplaces. The listing leads with what agents actually build (game assets, NFT collections, 3D scenes, product viz), spells out the three quality tiers and their flat USDC prices (draft $0.05 / standard $0.15 / high $0.50), and points newcomers to the free keyless draft lane as an on-ramp. The input and output schemas are now complete enough for an agent to call it blind — the prompt, the reference-image mode, the free job-token poll, and the finished GLB — and it's tagged so it surfaces under 3D, AI, and Utility. Under the hood the discovery listing and the live payment challenge now share one source of truth, so what an agent sees can never drift from what it pays for. (`/docs/3d-api`) `[improvement]`- **Free bonding-curve status API for pump.fun tokens** — A new free, keyless endpoint tells an agent exactly where a pump.fun token sits on its bonding curve: how far along it is toward graduation (%), how much SOL is in the curve, how many tokens are left to buy, and whether it has already graduated and migrated to Raydium or PumpSwap. Timing entries and exits around graduation is a core meme-trading move, and this is the one call that answers it — no account, no key, just GET /api/crypto/bonding?mint=<mint>. It pairs with the live launches feed to watch fresh mints climb their curve. Part of the free three.ws Crypto Data API; full reference with runnable curls at /docs/crypto-api. (`/docs/crypto-api`) `[feature]`@@ -28,6 +29,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Free trending-tokens API for crypto agents** — New free, keyless endpoint GET /api/crypto/trending gives any AI agent a ranked "what's hot right now" list in one call — no account, no key. Tokens are ranked by momentum (a 0–100 score blending windowed trade volume, buy pressure, a volume-spike signal, and short-window price change), fused live across pump.fun, DexScreener's boosted board, and GMGN smart money. Pick a window (5m, 1h, or 24h) and a source (pump.fun only or all), and get back each token's mint, symbol, market cap, volume, price change, score, and link. If an upstream is down it returns whatever ranked data it has with a note instead of failing. (`/docs/crypto-api`) `[feature]`- **Free wallet portfolio API for agents** — New free, keyless endpoint: GET /api/crypto/wallet returns any wallet's native balance, every token it holds, and a rough USD valuation in one call — no account, no API key. It's built for agents that need to size up a wallet before they act: a treasury agent checking its own runway, a copy-trade agent reading a leader's holdings, or a pre-trade check on a counterparty. Solana works with no key at all (it falls back to the public RPC plus Jupiter and pump.fun pricing); tokens that can't be priced are still listed with their balance, never dropped or faked. `[feature]`- **Free whale-activity API for crypto agents** — A new free, keyless endpoint tells an AI agent whether big money is moving before it trades. Call /api/crypto/whales with a token mint to see the large buys of that coin, or without one to see the top whale wallets active across pump.fun right now. Each response carries a plain bullish/bearish/neutral signal derived from net whale flow — the SOL whales bought minus the SOL they sold — with no black-box scoring. No account, no key, no payment. `[feature]`+- **Hire and pay another agent, transparently — the live agent-to-agent commerce loop** — Your agent can now discover a specialist agent, check its on-chain reputation, pay it in USDC, hand off the task, and get the result back with a full receipt — who it hired, the reputation behind the choice, exactly what it cost, and the on-chain settlement reference. The agent_hire_discover tool ranks candidates by task fit, ERC-8004 reputation and real engagement; agent_hire runs the whole thing end to end and renders an inline provenance receipt card. Hard spend guardrails protect you throughout: a per-call cap, a per-session budget, and a confirmation prompt for anything above a threshold — and a blocked or failed hire is never charged. Discovery no longer comes up empty on a plain-language request, and paid hires now complete against a live agent. `[feature, improvement]`- **Mint a generated 3D avatar as an on-chain Solana NFT — with a live 3D viewer as its media** — You can now turn a generated or owned avatar into real, ownable on-chain property. The new mint_3d_asset tool mints your rigged GLB as a Solana NFT whose media is a live, interactive 3D viewer — not a flat picture — with the model, a rendered thumbnail, and its full provenance (who made it, the prompt, the model, its lineage) travelling with it. Creator royalties are enforced on every resale, capped at 10%. A companion get_3d_asset_onchain tool resolves any mint back to its current holder, live viewer, provenance, and royalty terms. Minting defaults to devnet for safe testing; mainnet is an explicit opt-in. It's idempotent, so a retried mint never creates a duplicate. `[feature, sdk]`- **New: three.ws Crypto Data API docs** — One page now documents the whole free, keyless Crypto Data API for AI agents — live at /crypto. It lays out all nine reads an agent needs mid-trade (token snapshot, security/rug signals, holders & concentration, live pump.fun launches, bonding-curve status, whale activity, symbol availability, wallet portfolio, trending) with a copy-paste quickstart in curl, JavaScript and Python, a real request/response example for each, and a live 'Try it' console right in the browser. Every endpoint is free with no key and no account. The page probes production in real time and marks each endpoint Live or Coming soon, so it stays honest as the API rolls out — and points you to the paid uniques (Pump Launcher, Vanity, Forge) when your agent is ready to act on the data. (`/crypto`) `[feature, docs]`- **On-chain identity verification now works cross-platform for any claim** — The Identity Verifier is no longer three.ws-only. Give it any claim that an identity controls an address — an ENS name (vitalik.eth), an SNS name (bonfida.sol), an EVM or Solana wallet, an ERC-8004 agent id, or a three.ws agent_id — and it returns real on-chain evidence the link is genuine: ENS/SNS resolution, a contract's deploy transaction and deployer, a token's mint and metadata authorities, an ERC-8004 registry entry, or the three.ws deploy record. Every verdict is true, false, or unverifiable — and it never reports true without concrete on-chain proof, so an insufficient read is honestly labeled instead of guessed. An agent can now verify whoever it's about to pay, trade, or delegate to, whatever platform they came from. Pair it with cross-chain Agent Reputation: verify who they are, then score whether to trust them. Full evidence model at /docs/trust-primitives. (`/docs/trust-primitives`) `[feature, improvement]`@@ -44,6 +46,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The free 3D Studio in ChatGPT stays up even when our rate-limiter has a blip** — The free 3D Studio generates entirely on no-cost engines, so there's no spend to protect by shutting it off. We fixed a case where a hiccup in the rate-limiting backend could make the studio refuse every generation with a "try again shortly" — an outage of a free feature for no reason. Its usage caps now stay enforced when everything is healthy but step aside during a backend blip, so a prompt still returns your model. Nothing about paid features changed: those still stop safely if the same backend is unavailable. `[fix]`- **three.ws 3D API: free text→3D + inspection for AI agents, with pro tiers** — One URL now discovers the whole free, keyless 3D API for agents. GET /api/3d returns every free endpoint — turn a text prompt into a real GLB (/api/3d/generate) and validate/optimize any glTF/GLB (/api/3d/inspect) — with a live example each, plus the paid ladder it graduates to. GET /api/3d/openapi.json is a real OpenAPI 3.1 spec generated straight from the catalog, so LangChain, openapi-generator, and Swagger UI get typed tools with no key and no account. A new docs page at /3d shows a hero, a live endpoint table, a runnable quickstart with a "run it live" inspection console, an embedded 3D viewer of a real model, and a clear free→paid path: free draft + inspect → Forge Pro quality tiers → animation-ready Rigged Avatars. No other agent-payments platform gives away 3D generation and inspection. (`/3d`) `[feature, docs]`- **three.ws 3D Studio for the GPT Store — generate 3D models in ChatGPT, free** — You can now turn a text prompt into a real, downloadable 3D model right inside ChatGPT. The three.ws 3D Studio custom GPT is backed by a free, keyless REST endpoint — describe something like "a low-poly fox" or "a ceramic robot figurine" and get back a GLB you can open in Blender, Unity, Godot, or three.js, plus a browser viewer link. No account, no key, no cost. Every prompt is screened by a content-safety filter so it stays appropriate for all ages, and the model file is served from a public URL so it's easy to download and share. `[feature]`+- **three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory** — We assembled the submission package for our free 3D Studio as a ChatGPT app: text-to-3D, avatars, and one-step rigged characters that render in an interactive viewer right in the chat — no account, no key, no payment. A full policy audit confirmed the app is crypto-free, collects no personal data, ships correct tool labels, and stays age-appropriate with a content-safety filter on every generation. `[docs, security]`- **three.ws Agent Skills pack — for any Claude surface** — Everything three.ws can do is now packaged as portable Agent Skills — self-contained folders that teach any Claude (Claude Code, the Claude apps, or an Agent SDK build) how to use the platform: generate a 3D model from text, make a rigged avatar, rig a GLB you already have, run a wallet, and buy or sell services in the x402 agent economy. Forty skills in all, each with a precise trigger and runnable examples, grouped into three sets — 3D creation, wallet & payments, and market intelligence. The three 3D-creation skills are the newest and run free with no key or account. Install the pack as a Claude Code plugin, drop a skill folder into any project, or upload one to a Claude project. `[sdk, feature]`- **three.ws Crypto Data API: one free, keyless crypto data bundle for AI agents** — The free crypto endpoints are now one product with a single front door. GET /api/crypto lists the whole bundle — bonding-curve status, whale activity, trending tokens, wallet portfolios, and symbol availability — each with its inputs, outputs, and a live example, so an agent discovers everything in one call (ask for HTML and it renders a browsable page instead of JSON). GET /api/crypto/openapi.json is a real OpenAPI 3.1 spec generated straight from that catalog, so LangChain, openapi-generator, and Swagger UI produce typed clients and callable tools with no key and no account. New endpoints join the index and the spec automatically the moment they ship, and a zero-endpoint state is a valid "coming soon", never an error. Full reference lives at /docs/crypto-api. (`/docs/crypto-api`) `[feature, sdk]`- **three.ws MCP servers are now listed across Smithery, Glama, mcp.so, PulseMCP & LobeHub** — All 42 three.ws MCP servers — the seven hosted remotes plus 35 one-command npm servers — now have consistent, verified listings ready for every major MCP directory, not just the official registry. Any MCP-compatible client (Claude, Cursor, and the rest) can discover three.ws by name wherever it looks. We fixed a discovery bug where the Agent-wallet and x402 Bazaar remotes wouldn't answer a plain tool list to crawlers, synced every server manifest to its published version, and built one canonical metadata source so a server's name, tagline, and connect snippet read identically on every directory. `[infra, sdk]`diff --git a/STRUCTURE.md b/STRUCTURE.mdindex db5bfe6aa..cff3aa691 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -29,6 +29,7 @@ bottom.| Free Crypto Data API + discovery | [api/crypto/index.js](api/crypto/index.js) `→ /api/crypto`, [api/crypto/openapi.js](api/crypto/openapi.js) `→ /api/crypto/openapi.json`, docs [docs/crypto-api.md](docs/crypto-api.md) `→ /docs/crypto-api` | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless Crypto Data API. Catalog assembler [api/_lib/crypto-catalog/index.js](api/_lib/crypto-catalog/index.js) merges `api/_lib/crypto-catalog/*.js` self-describing descriptors (currently `bonding`, `launches`, `symbol`, `token`, `trending`, `wallet`, `whales`) via a static import barrel — the production source of truth, since Vercel's bundler only ships what static imports reach — plus an additive dev-time directory glob; skips malformed/throwing entries, never throws, valid-empty when zero. New descriptor = drop the file AND add its import line to the barrel. OpenAPI built from the same catalog via [api/_lib/crypto-catalog/openapi.js](api/_lib/crypto-catalog/openapi.js). Index does HTML/JSON content negotiation. Endpoint handlers live in `api/crypto/*.js`. Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) || Free 3D API + docs | [api/3d/index.js](api/3d/index.js) `→ /api/3d`, [api/3d/openapi.js](api/3d/openapi.js) `→ /api/3d/openapi.json`, docs [public/3d.html](public/3d.html) `→ /3d` (alias `/docs/3d-api`) | Live · docs surface | Front door + OpenAPI 3.1 for the free, keyless 3D API. Catalog assembler [api/_lib/3d-catalog/index.js](api/_lib/3d-catalog/index.js) merges `api/_lib/3d-catalog/*.js` descriptors (currently `generate`, `inspect`) via a static import barrel (production source of truth) plus an additive dev-time directory glob; new descriptor = drop the file AND add its barrel import line; skips malformed, never throws; OpenAPI built from the same catalog via [api/_lib/3d-catalog/openapi.js](api/_lib/3d-catalog/openapi.js). Index does HTML/JSON content negotiation and advertises the paid ladder (Forge Pro, Rigged Avatars). Docs page: hero, live endpoint table, runnable quickstart with a live "Run inspect" console, embedded `<model-viewer>` GLB preview, and the free→paid ladder. Free endpoints: [api/3d/generate.js](api/3d/generate.js) (prompt 12), [api/3d/inspect.js](api/3d/inspect.js) (prompt 13). GPT Store Actions surface: [api/3d/studio.js](api/3d/studio.js) `→ /api/3d/studio` — a store-compliant twin of `generate` that strips the x402/upgrade block, drops internal ids, and runs the [api/_mcp-studio/safety.js](api/_mcp-studio/safety.js) age-13+ content gate before any GPU work; backs the "three.ws 3D Studio" custom GPT ([prompts/store-submissions/_generated/openai-actions.yaml](prompts/store-submissions/_generated/openai-actions.yaml) + [openai-gpt-config.md](prompts/store-submissions/_generated/openai-gpt-config.md), store-submission prompt 12). Spec: [prompts/x402-overhaul/](prompts/x402-overhaul) || Unified service catalog (one source, two storefronts) | [api/_lib/service-catalog/index.js](api/_lib/service-catalog/index.js), descriptors [api/_lib/service-catalog/services/](api/_lib/service-catalog/services/index.js) | Live | The canonical written-once record of every service (paid x402 + free crypto/3D bundles + OKX.AI rows). `toBazaarDiscovery()` generates every static `/api/x402/*` entry in the [api/wk.js](api/wk.js) discovery doc (replacing ~1,400 lines of hand-mirrored blocks); `toOkxCatalog()` reproduces the OKX `catalogIndex()` payload exactly, with an `include:'all'` projection ready for listing expansion. New paid service = drop `services/<slug>.js` + add its barrel import row. No-drift guards: [tests/service-catalog.test.js](tests/service-catalog.test.js). Spec: [specs/SERVICE_CATALOG.md](specs/SERVICE_CATALOG.md) |+| Conversational refinement + remix economy | Iterate: [api/_mcp-studio/tools.js](api/_mcp-studio/tools.js) `refine_model` (free, on `/api/mcp-studio`) + [mcp-server/src/tools/refine-model.js](mcp-server/src/tools/refine-model.js) (paid stdio, $0.25); shared lineage core [mcp-server/src/tools/_lineage.js](mcp-server/src/tools/_lineage.js). Remix (paid track): feed [api/remix-feed.js](api/remix-feed.js) `→ /api/remix-feed` (free browse/publish/lineage), settlement [api/x402/remix-asset.js](api/x402/remix-asset.js) `→ /api/x402/remix-asset` + core [api/_lib/remix-settlement.js](api/_lib/remix-settlement.js) + split math [api/_lib/remix-royalty.js](api/_lib/remix-royalty.js). Docs [docs/remix.md](docs/remix.md), [docs/mcp-studio.md](docs/mcp-studio.md). | Live | Talk to a model to iterate it ("make it metallic") — real anchored re-generation with a revertable/branchable version lineage rendered as a viewer version strip; free on both the OpenAI 3D Studio and the paid MCP server. Creators publish a finished model as remixable (provenance + license + royalty on the existing `forge_creations` rows — no parallel store); another agent pays $0.25 USDC to remix it and a creator-set royalty (≤20%, capped) routes on-chain to the original creator via the audited `transferSolanaUSDC` rail. Split/caps/payout unit-tested ([tests/remix-settlement.test.js](tests/remix-settlement.test.js), [tests/remix-royalty.test.js](tests/remix-royalty.test.js), [tests/refine-lineage.test.js](tests/refine-lineage.test.js)). Free track stays crypto-free. Prompt 09. || 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)) || X/Twitter automation toolkit | [nirholas/XActions](https://github.com/nirholas/XActions) (external repo, also on npm as `xactions`) | External | Formerly vendored in-repo; removed 2026-07-03 — install from npm or use the upstream repo |diff --git a/api/_mcp-studio/tools.js b/api/_mcp-studio/tools.jsindex 6981afe1d..587675420 100644--- a/api/_mcp-studio/tools.js+++ b/api/_mcp-studio/tools.js@@ -1,8 +1,11 @@// three.ws 3D Studio (free) — tool catalog + handlers.//-// Exactly five generation tools, all FREE (no x402, no wallet, no API key): the-// platform's server-side keys cover provider cost via /api/forge (the public,-// auth-free twin of the paid pipeline). Responses carry ONLY what a client needs+// Six generation tools (five generators + refine_model), all FREE (no x402, no+// wallet, no API key): the platform's server-side keys cover provider cost via+// /api/forge (the public, auth-free twin of the paid pipeline). refine_model adds+// conversational iteration — describe a change and it re-generates a new version+// anchored to the prior model, returning a revertable/branchable version lineage.+// Responses carry ONLY what a client needs// to show the model — a GLB URL, a viewer link, the kind, and the prompt — with// every internal identifier (job id, creation id, prediction id, backend name,// trace) stripped, per OpenAI's data-minimization policy. Each tool links the@@ -31,6 +34,8 @@ import {seedLineage,appendVersion,summarizeLineage,+ buildLineageChain,+ branchFrom,} from '../../mcp-server/src/tools/_lineage.js';const VALID_TIER = new Set(['draft', 'standard', 'high']);@@ -344,27 +349,40 @@ async function handleRefineModel(args, _auth, req) {const composed = composeRefinement(parentPrompt, instruction);// Resolve the starting lineage: extend the one the client passed, or seed a- // fresh lineage rooted at the parent model. summarizeLineage() emits compact- // records; re-hydrate them into full version records for appendVersion.+ // fresh lineage rooted at the parent model. The client-supplied lineage is+ // UNTRUSTED — validate its structural integrity (contiguous indices, single+ // root, no cycles) with buildLineageChain before extending it. A malformed+ // array (buggy client, tampering) falls back to a fresh lineage rooted at the+ // parent model rather than corrupting history.+ const freshLineage = () => seedLineage({ glbUrl, viewerUrl: viewerUrl(base, glbUrl), prompt: parentPrompt || null });const clientLineage = Array.isArray(args.parent_lineage) ? args.parent_lineage : null;- const baseLineage =- clientLineage && clientLineage.length > 0- ? clientLineage.map((v, i) => ({- index: Number.isInteger(v.index) ? v.index : i,- parentIndex: v.parentIndex ?? (i > 0 ? i - 1 : null),- glbUrl: v.glbUrl,- viewerUrl: v.viewerUrl || null,- prompt: v.prompt || null,- instruction: v.instruction || null,- refKind: v.refKind || (i === 0 ? 'origin' : 'text'),- }))- : seedLineage({ glbUrl, viewerUrl: viewerUrl(base, glbUrl), prompt: parentPrompt || null });-- // Branch point: refine off an earlier version instead of the leaf.- const parentIndex =- Number.isInteger(args.parent_index) && args.parent_index >= 0 && args.parent_index < baseLineage.length- ? args.parent_index- : undefined;+ let baseLineage;+ if (clientLineage && clientLineage.length > 0) {+ const rehydrated = clientLineage.map((v, i) => ({+ index: Number.isInteger(v.index) ? v.index : i,+ parentIndex: v.parentIndex ?? (i > 0 ? i - 1 : null),+ glbUrl: v.glbUrl,+ viewerUrl: v.viewerUrl || null,+ prompt: v.prompt || null,+ instruction: v.instruction || null,+ refKind: v.refKind || (i === 0 ? 'origin' : 'text'),+ }));+ baseLineage = buildLineageChain(rehydrated).ok ? rehydrated : freshLineage();+ } else {+ baseLineage = freshLineage();+ }++ // Branch point: refine off an earlier version instead of the leaf. branchFrom+ // validates the index against the lineage; an out-of-range index falls back to+ // the default (extend the leaf) rather than erroring.+ let parentIndex;+ if (Number.isInteger(args.parent_index)) {+ try {+ parentIndex = branchFrom(baseLineage, args.parent_index);+ } catch {+ parentIndex = undefined;+ }+ }let job;try {diff --git a/api/remix-feed.js b/api/remix-feed.jsindex bac7d4805..cc8e8a61b 100644--- a/api/remix-feed.js+++ b/api/remix-feed.js@@ -32,9 +32,8 @@ import {listRemixable,setRemixable,getLineage,- getRemixSource,} from './_lib/forge-store.js';-import { clampRoyaltyBps, atomicsToUsd } from './_lib/remix-royalty.js';+import { clampRoyaltyBps } from './_lib/remix-royalty.js';const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;const LICENSES = new Set(['remix-cc', 'remix-nc', 'remix-royalty', 'all-rights']);@@ -151,7 +150,3 @@ export default wrap(async (req, res) => {if (req.method === 'POST') return handlePost(req, res);return handleGet(req, res);});--// Re-exported for the paid remix endpoint's pre-remix disclosure (so an agent-// can inspect a source's terms with getRemixSource before paying).-export { getRemixSource, atomicsToUsd };diff --git a/apps-sdk/embodiment/embodiment-stage.js b/apps-sdk/embodiment/embodiment-stage.jsindex e13a543c0..b04ce15fa 100644--- a/apps-sdk/embodiment/embodiment-stage.js+++ b/apps-sdk/embodiment/embodiment-stage.js@@ -240,8 +240,15 @@ export class EmbodimentStage {}if (!defs.length) return;this.anim.setAnimationDefs(defs);- // Ensure the idle is present before first paint; gestures lazy-load on demand.- await this.anim.ensureLoaded('idle').catch(() => {});+ // Preload every base-idle an emotion can rest in (idle, the sad slump, the+ // surprised wait) BEFORE first paint. A crossfade to an idle that isn't loaded+ // yet would briefly show the bind pose (a T-pose) — the one thing embodiment+ // must never do. Gestures still lazy-load on demand and only overlay, so a+ // missing gesture never bares the rig.+ const IDLE_CLIPS = ['idle', 'xbot-sad-pose', 'av-waiting'];+ await Promise.all(+ IDLE_CLIPS.filter((n) => defs.some((d) => d.name === n)).map((n) => this.anim.ensureLoaded(n).catch(() => {})),+ );}_frameModel(model) {@@ -283,7 +290,7 @@ export class EmbodimentStage {this._setState('thinking');const expr = expressionFor('thinking', 0.7);this.face.setEmotion('thinking', 0.7);- this._playGestureOrIdle(expr.gesture, expr.idle);+ this._playGestureOrIdle(expr.gesture, 'idle');}/**@@ -301,7 +308,10 @@ export class EmbodimentStage {this._setState('speaking', { text, emotion: expr.emotion, intensity: expr.intensity, gesture });this.face.setEmotion(expr.emotion, expr.intensity);- this._playGestureOrIdle(gesture, expr.idle);+ // Rest on the reliable neutral idle and layer the emotion as an upper-body+ // gesture overlay — never adopt a full-body emotion POSE as the base, since a+ // single-frame pose clip can retarget into a splayed shape on some rigs.+ this._playGestureOrIdle(gesture, 'idle');// Lip-sync source, best-first.this._endSpeech(false);@@ -362,7 +372,9 @@ export class EmbodimentStage {.then((ok) => { if (ok) this.anim.playOverlay(gesture, { loop: false, upperBodyOnly: true }).catch(() => {}); }).catch(() => {});} else {- this.anim.stopOverlay().catch?.(() => {});+ // stopOverlay may return void (no overlay active) — guard the return+ // itself, not just the .catch, so a missing promise doesn't throw.+ this.anim.stopOverlay()?.catch?.(() => {});}}diff --git a/data/changelog.json b/data/changelog.jsonindex 30d181ac7..e50ea4131 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-07-07",+ "title": "Conversational 3D refinement + a remixable-asset economy with creator royalties",+ "summary": "You can now iterate on a generated model by talking to it — say \"make it metallic\" or \"add wings\" and the studio re-generates a new version anchored to the last one, with a version strip you can revert or branch. It is free in the 3D Studio and on the paid MCP server. Creators can also publish a model as remixable: when another agent builds on it, a creator-set royalty (up to 20%) of the remix fee routes back to them on-chain in USDC, with provenance recorded on every derived model.",+ "tags": [+ "feature",+ "sdk"+ ]+ },+ {+ "date": "2026-07-07",+ "title": "three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory",+ "summary": "We assembled the submission package for our free 3D Studio as a ChatGPT app: text-to-3D, avatars, and one-step rigged characters that render in an interactive viewer right in the chat — no account, no key, no payment. A full policy audit confirmed the app is crypto-free, collects no personal data, ships correct tool labels, and stays age-appropriate with a content-safety filter on every generation.",+ "tags": [+ "docs",+ "security"+ ]+ },+ {+ "date": "2026-07-07",+ "title": "Hire and pay another agent, transparently — the live agent-to-agent commerce loop",+ "summary": "Your agent can now discover a specialist agent, check its on-chain reputation, pay it in USDC, hand off the task, and get the result back with a full receipt — who it hired, the reputation behind the choice, exactly what it cost, and the on-chain settlement reference. The agent_hire_discover tool ranks candidates by task fit, ERC-8004 reputation and real engagement; agent_hire runs the whole thing end to end and renders an inline provenance receipt card. Hard spend guardrails protect you throughout: a per-call cap, a per-session budget, and a confirmation prompt for anything above a threshold — and a blocked or failed hire is never charged. Discovery no longer comes up empty on a plain-language request, and paid hires now complete against a live agent.",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-07-07","title": "Mint a generated 3D avatar as an on-chain Solana NFT — with a live 3D viewer as its media",diff --git a/docs/mcp-studio.md b/docs/mcp-studio.mdindex c6d5795ac..2e2336b15 100644--- a/docs/mcp-studio.md+++ b/docs/mcp-studio.md@@ -37,8 +37,8 @@ curl -s https://three.ws/api/mcp-studio \## Tools-All five are free and run operator-funded on the platform's own generation-pipeline. Annotations: `readOnlyHint:false`, `destructiveHint:false`,+All six generation tools are free and run operator-funded on the platform's own+generation pipeline. Annotations: `readOnlyHint:false`, `destructiveHint:false`,`idempotentHint:false`, `openWorldHint:true` (work runs against external modelAPIs; nothing is ever modified or deleted).@@ -49,6 +49,7 @@ APIs; nothing is ever modified or deleted).| `mesh_forge` | Generate a 3D mesh (art-directed) | `prompt?` / `image_url?` | GLB mesh || `rig_mesh` | Rig a 3D model for animation | `glb_url` | rigged GLB || `forge_avatar` | Generate a rigged, animation-ready avatar | `prompt?` / `image_url?`, `allow_non_humanoid?` | rigged GLB avatar |+| `refine_model` | Refine a 3D model by describing a change | `glb_url`, `instruction`, `parent_prompt?`, `parent_lineage?`, `parent_index?` | refined GLB + version lineage |### Response shape@@ -65,6 +66,43 @@ needs to display the model — no internal identifiers:}```+### Conversational refinement (`refine_model`)++Iterate on a model by describing the change in words — *"make it metallic"*,+*"bigger helmet"*, *"add wings"*. It's a REAL anchored re-generation, never a fake+diff: the prior prompt is carried forward and folded with your change+(`composeRefinement`), and an optional `reference_image_url` of the current model+anchors the regeneration as image→3D. Text-guided refinement needs only+`glb_url` + `instruction`; passing `parent_prompt` lets the change build on the+original spec instead of starting over.++Every refinement is appended to an immutable **version lineage** returned in+`structuredContent.lineage`. The client passes that array back as `parent_lineage`+on the next call to extend the same thread, or targets an earlier version with+`parent_index` to **branch**. Reverting is a pointer move over the array — no+mutation. The inline viewer renders the lineage as a version strip you can click+to cross-fade between versions.++```json+{+ "kind": "refined model",+ "glbUrl": "https://three.ws/cdn/creations/…/v1.glb",+ "viewerUrl": "https://three.ws/viewer?src=…",+ "format": "glb",+ "prompt": "a friendly round robot mascot, glossy white plastic, metallic and gold",+ "instruction": "make it metallic and gold",+ "activeIndex": 1,+ "lineage": [+ { "index": 0, "parentIndex": null, "glbUrl": "…/origin.glb", "label": "Original", "active": false },+ { "index": 1, "parentIndex": 0, "glbUrl": "…/v1.glb", "label": "make it metallic and gold", "instruction": "make it metallic and gold", "active": true }+ ]+}+```++The same `refine_model` capability is available on the paid stdio MCP server+(`3d-agent-local`, $0.25 USDC per call) via the shared lineage core, so iteration+behaves identically on both tracks.+## Funding & limitsGeneration is **operator-funded**: the platform's server-side keys cover providerdiff --git a/docs/remix.md b/docs/remix.mdnew file mode 100644index 000000000..b511aef63--- /dev/null+++ b/docs/remix.md@@ -0,0 +1,147 @@+# Remix economy — provenance + creator royalties for 3D assets++Every model generated on three.ws carries its provenance, and creators can opt a+finished model into the **remix bazaar**: when another agent builds on it, a+creator-set royalty routes back to the original creator on-chain. This turns the+generator into a creative economy — build on someone's asset, value flows to them.++Conversational iteration (`refine_model`) is free on both tracks; the remix ++royalty surface below is **Claude / paid track only** and never appears in the+free OpenAI 3D Studio app.++## The pieces++| Surface | Auth | What it does |+|---|---|---|+| `GET /api/remix-feed` | none (free) | Browse remixable assets with provenance + royalty terms |+| `POST /api/remix-feed` `{action:'publish'}` | `x-forge-client` | Opt your own finished model into the bazaar, set license/royalty/payout wallet |+| `GET /api/remix-feed?action=lineage&root=<id>` | none (free) | Reconstruct a model's full refinement thread |+| `POST /api/x402/remix-asset` | x402 ($0.25 USDC) | Pay to remix a source; a royalty routes to its creator on-chain |++Provenance is stored on the existing `forge_creations` rows — no parallel store:+`parent_creation_id`, `refine_instruction`, `lineage_index`, `remixable`,+`remix_royalty_bps`, `creator_wallet_solana`, `remix_settlement_ref`.++## Publish a model as remixable++You must own the creation (same `x-forge-client` that generated it). Only finished+models with a stored GLB can be published.++```bash+curl -X POST https://three.ws/api/remix-feed \+ -H 'content-type: application/json' \+ -H 'x-forge-client: <your-browser-id>' \+ -d '{+ "action": "publish",+ "creation_id": "<YOUR_CREATION_ID>",+ "license": "remix-royalty",+ "royalty_bps": 1000,+ "creator_wallet": "<YOUR_SOLANA_ADDRESS>"+ }'+```++- `license` — `remix-royalty` (remix allowed, royalties on remix), `remix-cc`+ (remix freely), `remix-nc` (remix, non-commercial), or `all-rights` (display+ only, not remixable).+- `royalty_bps` — basis points, `0`–`2000` (0–20%). Clamped to the cap; the+ remixer always keeps the majority of the fee.+- `creator_wallet` — Solana address that receives royalties. Optional at publish+ time, but no royalty can route without one.++## Browse the feed++```bash+curl https://three.ws/api/remix-feed+```++```json+{+ "enabled": true,+ "items": [+ {+ "id": "…",+ "prompt": "a friendly round robot mascot, glossy white plastic",+ "glbUrl": "https://…/model.glb",+ "viewerUrl": "https://three.ws/viewer?src=…",+ "royaltyBps": 1000,+ "royaltyPercent": 10,+ "royaltyPayable": true,+ "isDerived": false,+ "lineageIndex": 0+ }+ ],+ "next": "2026-07-07T11:40:00.000Z"+}+```++Terms are visible **before** remixing. The raw payout wallet is never exposed —+only `royaltyPayable` (whether a royalty can route).++## Remix a published asset (paid, with royalties)++`POST /api/x402/remix-asset` is an x402 endpoint. Pay the fixed $0.25 USDC fee+(via any x402 client), and the platform:++1. Generates a NEW model anchored to the source (`composeRefinement` ++ image→3D off the source's reference image when present).+2. Records the durable `parent → child` provenance edge.+3. Routes the creator's royalty slice on-chain from the platform payout wallet —+ a real second USDC transfer, capped at 20%.++Request body:++```json+{ "source_creation_id": "<SOURCE_ID>", "instruction": "make it metallic" }+```++Response (after settlement):++```json+{+ "ok": true,+ "remix": { "glbUrl": "https://…/remixed.glb", "viewerUrl": "…", "creationId": "…", "anchored": true },+ "source": { "id": "<SOURCE_ID>", "royaltyBps": 1000, "royaltyPercent": 10 },+ "royalty": {+ "paid": true,+ "royaltyBps": 1000,+ "capped": false,+ "creatorUsd": 0.025,+ "platformUsd": 0.225,+ "creatorTx": "<on-chain settlement signature>"+ },+ "fee": { "usd": 0.25, "atomics": "250000" }+}+```++`royalty.creatorTx` is the real on-chain settlement reference. When a source has+no payout wallet, or the royalty is below the 0.01 USDC dust floor, `paid` is+`false` with an honest `reason` — never a fake pending.++### Split math + caps++Pure and unit-tested (`api/_lib/remix-royalty.js`,+`tests/remix-royalty.test.js`, `tests/remix-settlement.test.js`):++- Creator royalty = `floor(fee × bps / 10000)`, clamped to the 20% cap.+- `creatorAtomics + platformAtomics === fee` for every input — no value created+ or lost.+- Sub-dust royalties (< 0.01 USDC) are recorded but not paid (the transfer would+ cost more than it moves).++USDC is the settlement asset only. No other coin is referenced anywhere in the+remix surface.++## Configuration++| Env var | Purpose |+|---|---|+| `REMIX_ROYALTY_PAYOUT_KEY` | Base58 64-byte Solana secret for the platform royalty payout wallet (holds USDC). Falls back to `CLUB_SOLANA_TREASURY_SECRET_KEY_B64`. |+| `REMIX_ASSET_TIMEOUT_MS` | Poll budget for the remix generation. Default 180000. |++When no payout wallet is configured, remixes still generate and provenance is+still recorded — the royalty leg reports `payout_unconfigured` instead of paying.++## Related++- [3D Studio (free) MCP](./mcp-studio.md) — the `refine_model` iteration tool.+- [The 3D pipeline](./3d-pipeline.md) — how generation itself works.diff --git a/docs/start-here.md b/docs/start-here.mdindex e40e9ade4..b80fcf080 100644--- a/docs/start-here.md+++ b/docs/start-here.md@@ -65,6 +65,7 @@ If you're here to create and share agents rather than write code, follow this pa- **Just exploring?** → Open [Discover](/discover) to browse agents others have built- **Creating your first agent** → Go to [/start](/start) — a 5-step wizard walks you through it- **Meeting avatars in the worlds?** → Press <kbd>I</kbd> on anyone in `/play`, `/city`, a coin world, or `/agora` to see who they are — the [avatar inspector](./avatar-inspector.md) shows their reputation, wallet, and profile+- **Making 3D models?** → [The free 3D Studio MCP](./mcp-studio.md) turns a prompt into a model, avatar, or rigged character — and lets you refine it by talking to it (*"make it metallic"*) with a revertable version history. Publish a model as remixable and earn on-chain royalties when others build on it: [the remix economy](./remix.md)- **Trading?** → [The trading surfaces](./trading-surfaces.md) maps the solo stack (Radar, Coin Intelligence, Live Trade Feed, Watchlist, Mission Control); [trading arenas](./trading-arenas.md) covers tournaments, the theater, vaults, and swarms; [Oracle](./oracle.md) is the conviction engine underneath all of it- **Trusting an agent with money?** → [Custody you can verify](./custody.md) — spend limits, freeze, Merkle proof-of-custody, and social recovery; [claim your wallet](./trader-card.md) turns any pump.fun track record into a public, provable Trader Card. Every real-funds feature sits behind the [risk acknowledgment](./risk-acknowledgment.md) — read the [Risk Disclosure](https://three.ws/legal/risk) before committing anything- **Vetting a counterparty before you pay it?** → [Trust primitives](./trust-primitives.md) — the cross-chain Agent Reputation endpoint scores ANY wallet, mint, or agent id (Solana or EVM) 0–100 from real on-chain evidence, in one paid call, before your agent transactsdiff --git a/mcp-server/README.md b/mcp-server/README.mdindex 814ee9c1c..f9c8500a8 100644--- a/mcp-server/README.md+++ b/mcp-server/README.md@@ -141,6 +141,12 @@ Then replace `"command": "npx", "args": ["-y", "@three-ws/mcp-server"]` with `"c| `MCP_REVIEW_SECRET` | unset | **Review entitlement.** When set, a caller presenting a matching `MCP_REVIEW_MODE` runs paid tools for real with **no charge** (connector-review access). Off unless set — never bypassable on a normal install || `MCP_REVIEW_MODE` | unset | Client-side value that must equal the server's `MCP_REVIEW_SECRET` to activate the review entitlement above || `MCP_POSE_PREVIEW_BASE` | `https://three.ws/pose` | Base URL for `get_pose_seed` preview links |+| `MCP_AGENT_TALK_TOKEN` | unset | Platform service credential (`api_keys` bearer, scope `agents:delegate`) the `agent_hire` / `agent_delegate_action` tools present to `/api/agents/talk`. That endpoint burns platform LLM credit and requires a principal — **without this token a paid hire's delegation 401s and the x402 payment cancels (the hire cannot deliver).** Falls back to `THREE_WS_MCP_TOKEN` / `MCP_SERVICE_TOKEN` |+| `MCP_AGENT_HIRE_PRICE_USD` | `$0.05` | The platform delegation fee `agent_hire` settles per hire |+| `MCP_AGENT_HIRE_MAX_PER_CALL_USD` | `$1` | Hard per-call spend cap — a hire above this is refused before any payment |+| `MCP_AGENT_HIRE_MAX_PER_SESSION_USD` | `$5` | Cumulative per-session spend cap across one connection |+| `MCP_AGENT_HIRE_CONFIRM_THRESHOLD_USD` | `$0.50` | Hires at or above this require an explicit `confirm: true` |+| `MCP_AGENT_HIRE_MIN_REPUTATION` | `0` | Default ERC-8004 reputation floor for hires (0 = don't gate; a caller can raise it per call) || `MCP_AGENT_REP_RPC_<chainId>` | public RPC | Per-chain RPC override for `agent_reputation` (tried before the failover set) || `MCP_AGENT_REP_LOG_WINDOW` | `200000` | Block window for `agent_reputation` event scan || `X402_ASSET_MINT_SOLANA` | USDC (`EPjFW…Dt1v`) | SPL mint settled as the payment asset (defaults to Solana USDC) |diff --git a/mcp-server/src/tools/_studio-core.js b/mcp-server/src/tools/_studio-core.jsindex 541dc93c3..70b796263 100644--- a/mcp-server/src/tools/_studio-core.js+++ b/mcp-server/src/tools/_studio-core.js@@ -20,7 +20,7 @@// neither the @x402 stack nor zod-to-json-schema) unchanged.import { classifyHumanoidPrompt } from './_humanoid.js';-import { composeRefinement, seedLineage, appendVersion } from './_lineage.js';+import { composeRefinement, seedLineage, appendVersion, buildLineageChain, branchFrom } from './_lineage.js';// Standard tool error envelope — identical shape to payments.js `toolError`, so// a core's error is indistinguishable whether it is surfaced through the paid@@ -1005,15 +1005,25 @@ export async function runRefineModel({const composedPrompt = composeRefinement(parentPromptStr, instructionTrimmed);// Resolve starting lineage: extend an existing one, or seed from the parent.+ // A caller-supplied parent_lineage is UNTRUSTED — validate its structural+ // integrity (contiguous indices, single root, no cycles) with buildLineageChain+ // before extending. A malformed array falls back to a fresh lineage rooted at+ // glb_url rather than corrupting history.const baseLineage =- Array.isArray(parent_lineage) && parent_lineage.length > 0+ Array.isArray(parent_lineage) && parent_lineage.length > 0 && buildLineageChain(parent_lineage).ok? parent_lineage: seedLineage({ glbUrl: glb_url.trim(), prompt: parentPromptStr || null });- const effectiveParentIndex =- Number.isInteger(parent_index) && parent_index >= 0 && parent_index < baseLineage.length- ? parent_index- : undefined;+ // Branch point: branchFrom validates the index against the lineage; an+ // out-of-range index falls back to extending the leaf.+ let effectiveParentIndex;+ if (Number.isInteger(parent_index)) {+ try {+ effectiveParentIndex = branchFrom(baseLineage, parent_index);+ } catch {+ effectiveParentIndex = undefined;+ }+ }const base = apiBaseFrom(['MESH_FORGE_API_BASE']);const started = Date.now();diff --git a/prompts/store-submissions/_generated/TRACKER.md b/prompts/store-submissions/_generated/TRACKER.mdindex 55ed8d33d..a84af1f1d 100644--- a/prompts/store-submissions/_generated/TRACKER.md+++ b/prompts/store-submissions/_generated/TRACKER.md@@ -13,7 +13,7 @@ Legend: **not-started** | **blocked** | **ready-to-submit** | **submitted** | **| **Claude Connectors Directory** | blocked | 03 | `[HUMAN: Team/Enterprise org + Owner role required for in-app portal; OR use public form]` · Privacy policy must be deployed with MCP section (§9 of answer sheet) · Reviewer test account not yet provisioned | — || **Claude plugin marketplace** | not-started | 10 | Plugin install test not yet run end-to-end; `three-ws-3d` plugin not yet created | — || **Claude Agent Skills pack** | not-started | 11 | 3D-creation skills (`generate-3d-model`, `create-3d-avatar`, `rig-a-model`) not yet added | — |-| **OpenAI App Directory** | not-started | 04–06 | `/api/mcp-studio` free endpoint not yet built (prompt 04); GLB viewer component not yet built (prompt 05); `[HUMAN: OpenAI developer identity verification required]` | — |+| **OpenAI App Directory** | blocked | 04–06 | Package + audit done (`_generated/openai-submission.md`, 7/7 policy PASS; 3 real-model screenshots). **B1:** limiter store over monthly quota → studio generation 429s; **B2:** `/viewer?src=` route 404s (dead link in tool output). Clear both + redeploy before submit. `[HUMAN: OpenAI identity verification + support contact + final submit]` | — || **OpenAI GPT Store** | ready-to-build | 12 | `/api/3d/studio` free REST Actions lane built + live-verified (real GLB, safety gate, zero crypto/PII); `_generated/openai-actions.yaml` lints clean; `_generated/openai-gpt-config.md` complete; `[HUMAN: paste config into GPT builder, upload icon-512x512.png, verify Builder Profile, submit]` | — || **Official MCP Registry** | ready-to-submit | 13 | `server.json` manifests verified clean; `[HUMAN: Run mcp-publisher commands (staged in prompt 13 output) — do not publish without explicit operator approval]` | https://registry.modelcontextprotocol.io/?q=io.github.nirholas || **Smithery** | not-started | 13 | Listing doc not yet written | — |@@ -36,7 +36,7 @@ Legend: **not-started** | **blocked** | **ready-to-submit** | **submitted** | **| 05 | OpenAI Apps SDK component | ⬜ not started | GLB viewer component; hero screenshot || 06 | OpenAI submission package | ⬜ not started | `_generated/openai-submission.md` || 07 | Embodied live agent avatar | ⬜ not started | Inline avatar component + emote/lip-sync |-| 08 | Live agent commerce | ⬜ not started | Commerce flow UI + provenance receipt |+| 08 | Live agent commerce | ✅ verified | Loop live (discover→pay→delegate→receipt) + guardrails; evidence in `_generated/commerce/`. On-chain settle needs funded wallet + `MCP_AGENT_TALK_TOKEN` (owner) || 09 | Conversational remixable 3D | ⬜ not started | Iterate-by-chat + royalty wiring || 10 | Claude plugin marketplace | ⬜ not started | 4 installable plugins || 11 | Agent Skills pack | ⬜ not started | Hardened skills + 3D-creation skills |diff --git a/prompts/store-submissions/_generated/embodiment/01-idle.png b/prompts/store-submissions/_generated/embodiment/01-idle.pngindex 94811818f..26c07209f 100644Binary files a/prompts/store-submissions/_generated/embodiment/01-idle.png and b/prompts/store-submissions/_generated/embodiment/01-idle.png differdiff --git a/prompts/store-submissions/_generated/embodiment/02-joy.png b/prompts/store-submissions/_generated/embodiment/02-joy.pngindex 2ee09f8e1..8ca0af0fb 100644Binary files a/prompts/store-submissions/_generated/embodiment/02-joy.png and b/prompts/store-submissions/_generated/embodiment/02-joy.png differdiff --git a/prompts/store-submissions/_generated/embodiment/03-sad.png b/prompts/store-submissions/_generated/embodiment/03-sad.pngindex 435b5127c..82d6d436a 100644Binary files a/prompts/store-submissions/_generated/embodiment/03-sad.png and b/prompts/store-submissions/_generated/embodiment/03-sad.png differdiff --git a/prompts/store-submissions/_generated/embodiment/04-angry.png b/prompts/store-submissions/_generated/embodiment/04-angry.pngindex ef414ef1a..bf37a0c94 100644Binary files a/prompts/store-submissions/_generated/embodiment/04-angry.png and b/prompts/store-submissions/_generated/embodiment/04-angry.png differdiff --git a/prompts/store-submissions/_generated/embodiment/05-reload-same-body.png b/prompts/store-submissions/_generated/embodiment/05-reload-same-body.pngindex 537875564..b191fce9a 100644Binary files a/prompts/store-submissions/_generated/embodiment/05-reload-same-body.png and b/prompts/store-submissions/_generated/embodiment/05-reload-same-body.png differdiff --git a/prompts/store-submissions/_generated/embodiment/06-nonhumanoid-fallback.png b/prompts/store-submissions/_generated/embodiment/06-nonhumanoid-fallback.pngindex afa5c8e59..48a3d1d0e 100644Binary files a/prompts/store-submissions/_generated/embodiment/06-nonhumanoid-fallback.png and b/prompts/store-submissions/_generated/embodiment/06-nonhumanoid-fallback.png differdiff --git a/prompts/store-submissions/_generated/embodiment/EVIDENCE.md b/prompts/store-submissions/_generated/embodiment/EVIDENCE.mdnew file mode 100644index 000000000..63c3b156a--- /dev/null+++ b/prompts/store-submissions/_generated/embodiment/EVIDENCE.md@@ -0,0 +1,31 @@+# Embodiment — live agent body evidence++Captured from the live embodiment embed (`/embodiment/embed`) driving the shared+`EmbodimentStage` — the same engine an MCP `persona_say` result renders inline in+ChatGPT/Claude. Regenerate with:++```+npm run dev # serves the embed + bundles the stage+node scripts/embodiment-evidence.mjs http://localhost:3002+```++The harness fails if any real console error fires; all shots below were captured+with a clean console (dev-only Vite HMR/GPU-perf warnings are filtered).++| Shot | What it proves |+| --- | --- |+| `01-idle.png` | A generated, rigged humanoid (Nova) renders inline and idles — the resting body between turns. |+| `02-joy.png` | `persona_say` with a joyful reply: **Speaking · ☺ joy**, lip-sync active, a celebratory gesture over the idle. |+| `03-sad.png` | A sad reply: **Speaking · ☹ sad** — a distinct, correct expression, body stable (never a splayed/T-pose). |+| `04-angry.png` | An angry reply: **Speaking · ✖ angry** — the third distinct expression. |+| `05-reload-same-body.png` | The SAME persona id reloaded in a brand-new browser context (a fresh session) returns the identical body — continuity. |+| `06-nonhumanoid-fallback.png` | A non-humanoid GLB (a hat, no skeleton) falls back gracefully: it renders with a gentle idle and a designed note — no crash, no frozen T-pose. |++Notes:+- Emotion is detected from the reply text (or set explicitly) and blended onto the+ face + an upper-body gesture; the body always rests on the reliable neutral idle,+ so no rig ever bares a bind pose.+- The demo rig used here (Mixamo X Bot) has no ARKit face morphs, so its expression+ reads through the gesture, the emotion chip, and jaw-driven lip-sync. A rig with+ visemes/morphs drives the face directly via the same path.+- Zero crypto/token/wallet surface anywhere in this feature.diff --git a/prompts/store-submissions/_generated/iteration/README.md b/prompts/store-submissions/_generated/iteration/README.mdnew file mode 100644index 000000000..6e98cc6e7--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/README.md@@ -0,0 +1,107 @@+# Prompt 09 — Conversational, remixable 3D: verification evidence++Captured 2026-07-07 against production (`https://three.ws`). Everything here is a+real generation on the live pipeline — no mocks, no fake data.++## A. Conversational iteration (free + paid tracks)++`refine_model` folds a natural-language change into the parent prompt+(`composeRefinement`) and runs a REAL re-generation anchored to the prior model,+recording every version in an immutable lineage. Available:++- **Free** on the OpenAI-track studio `/api/mcp-studio` (`refine_model` tool) —+ zero payment/crypto surface.+- **Paid** on the stdio MCP server `3d-agent-local` (`refine_model`, $0.25 USDC).++### Real generations (origin + 2 refinements)++Each row is a live `POST https://three.ws/api/forge`, HTTP 200, a durable GLB on+R2. Byte sizes differ → visibly different meshes.++| Version | Instruction | Composed prompt (what the generator ran) | creation_id | GLB size |+|---|---|---|---|---|+| 0 (origin) | — | `a friendly round robot mascot, glossy white plastic` | `d6892889…` | 1,224,928 B |+| 1 | make it metallic and gold | `… glossy white plastic, metallic and gold` | `481ff3ff…` | 1,503,832 B |+| 2 | add glowing blue eyes and antenna | `… metallic and gold, add glowing blue eyes and antenna` | `764e1e9d…` | 1,629,684 B |++GLBs:+- v0 https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb+- v1 https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/481ff3ff-db68-467a-b4be-47fa901bb664.glb+- v2 https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/764e1e9d-f308-49d1-9689-7855bdb6f7c5.glb++Raw responses: `origin-submit.json`, `refine-1-submit.json`, `refine-2-submit.json`.++### The `refine_model` tool, live end-to-end (not just the pipeline)++`studio-refine_model-live.json` is the actual free-studio tool driven through its+dispatcher against prod (`STUDIO_API_BASE=https://three.ws`):++- Instruction: *"make it chrome and add racing stripes"*+- Composed prompt: `a friendly round robot mascot, glossy white plastic, chrome and add racing stripes`+- New GLB: `8e1e0a46…` (1,683,708 B) — real, distinct+- `lineage`: 2 versions (`Original` → `make it chrome and add racing stripes`), `activeIndex: 1`+- **Data minimization holds**: `grep` of the tool result for `creation_id|job_id|nvidia|prediction` → **false**. No internal identifier, payment field, or coin reference leaks.++### Lineage integrity, revert, and branch (`lineage.json`)++Built through the real `_lineage.js` module:++- `integrity.ok = true`, single root `[0]`, chain length 3.+- **Revert**: `revertTo(lineage, 0)` returns the original GLB — a pointer move over+ immutable history, no mutation.+- **Branch**: appending a child off version 1 (`chrome variant`) yields **two+ leaves `[2, 3]`** — a real tree, not a line.++## B. Remix assets + provenance + royalties (PAID / Claude track only)++Kept entirely OUT of the free OpenAI app.++- **Provenance** lives on the existing `forge_creations` rows (no parallel store):+ `parent_creation_id`, `refine_instruction`, `lineage_index`, `remixable`,+ `remix_royalty_bps`, `creator_wallet_solana`, `remix_settlement_ref`.+- **Browse + publish** (free): `GET /api/remix-feed` lists remixable assets with+ provenance + royalty TERMS visible before remixing (never the raw payout+ wallet); `POST /api/remix-feed {action:'publish'}` opts your own finished model+ in and sets license + royalty + payout wallet.+- **Remix + royalty** (paid): `POST /api/x402/remix-asset` — pay a fixed $0.25+ USDC fee via x402; the platform generates the remix anchored to the source,+ links durable provenance, and routes the creator’s royalty slice on-chain from+ the platform payout wallet (`api/_lib/remix-settlement.js`).++### Split math + caps + payout logic — unit-tested (`tests/remix-settlement.test.js`, 6/6)++- Pays creator their royalty and records provenance (1 USDC @ 10% → 0.1 to+ creator, 0.9 to platform; exact atomics; on-chain send gets the creator amount).+- **Caps a greedy 50% rate to the 20% policy cap** — remixer always keeps the+ majority; value conserved (`creator + platform === fee`).+- Honest no-pay outcomes (never a fake "pending"): `no_creator_wallet`,+ `below_dust_floor` (sub-0.01 USDC), `payout_unconfigured`.+- Split math conservation across many inputs: `tests/remix-royalty.test.js`.++### Live on-chain royalty settlement — post-deploy gate++A real on-chain creator payout requires a **funded platform payout wallet**+(`REMIX_ROYALTY_PAYOUT_KEY`, Base58 64-byte, holding Solana USDC) — not present in+this build environment, so the on-chain leg is a documented post-deploy+verification, exactly like other x402 close-outs in this repo. The transfer reuses+the **already-in-production** `transferSolanaUSDC` rail (the same audited helper the+live vanity-bounty market pays from), and the decision logic around it is unit-+tested above.++**To verify live after deploy** (with a funded payout wallet configured):++```+# 1. Creator publishes a finished model as remixable with a payout wallet:+curl -X POST https://three.ws/api/remix-feed \+ -H 'content-type: application/json' -H 'x-forge-client: <creator-browser-id>' \+ -d '{"action":"publish","creation_id":"<CREATOR_CREATION_ID>",+ "royalty_bps":1000,"creator_wallet":"<CREATOR_SOLANA_ADDRESS>","license":"remix-royalty"}'++# 2. A DIFFERENT agent pays to remix it (x402 client supplies the payment):+# POST https://three.ws/api/x402/remix-asset+# { "source_creation_id":"<CREATOR_CREATION_ID>", "instruction":"make it metallic" }+# → response.royalty.creatorTx is the on-chain settlement signature;+# response.royalty.creatorUsd / platformUsd show the split; capped=false.+```++The `royalty.creatorTx` in the response is the real settlement reference to paste.diff --git a/prompts/store-submissions/_generated/iteration/db-publish-feed-proof.json b/prompts/store-submissions/_generated/iteration/db-publish-feed-proof.jsonnew file mode 100644index 000000000..0194c4b3e--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/db-publish-feed-proof.json@@ -0,0 +1,28 @@+{+ "publish": {+ "id": "d6892889-ca6b-4d77-8ffc-638a60002b15",+ "remixable": true,+ "royaltyBps": 1000,+ "creatorWallet": "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PQGHRVn",+ "license": "remix-royalty"+ },+ "sourceView": {+ "remixable": true,+ "royaltyBps": 1000,+ "walletSet": true+ },+ "feedItem": {+ "id": "d6892889-ca6b-4d77-8ffc-638a60002b15",+ "prompt": "a friendly round robot mascot, glossy white plastic",+ "glb_url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb",+ "preview_image_url": null,+ "royaltyBps": 1000,+ "royaltyPayable": true,+ "isDerived": false,+ "lineageIndex": 0,+ "backend": "nvidia",+ "model_category": "other",+ "created_at": "2026-07-07T11:49:29.792Z"+ },+ "lineageRowCount": 1+}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/iteration/lineage.json b/prompts/store-submissions/_generated/iteration/lineage.jsonnew file mode 100644index 000000000..2ae6eeb6d--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/lineage.json@@ -0,0 +1,59 @@+{+ "composedPrompts": {+ "v1": "a friendly round robot mascot, glossy white plastic, metallic and gold",+ "v2": "a friendly round robot mascot, glossy white plastic, metallic and gold, add glowing blue eyes and antenna"+ },+ "lineage": [+ {+ "index": 0,+ "parentIndex": null,+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fd6892889-ca6b-4d77-8ffc-638a60002b15.glb",+ "label": "Original",+ "instruction": null,+ "active": false+ },+ {+ "index": 1,+ "parentIndex": 0,+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/481ff3ff-db68-467a-b4be-47fa901bb664.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F481ff3ff-db68-467a-b4be-47fa901bb664.glb",+ "label": "make it metallic and gold",+ "instruction": "make it metallic and gold",+ "active": false+ },+ {+ "index": 2,+ "parentIndex": 1,+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/764e1e9d-f308-49d1-9689-7855bdb6f7c5.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F764e1e9d-f308-49d1-9689-7855bdb6f7c5.glb",+ "label": "add glowing blue eyes and antenna",+ "instruction": "add glowing blue eyes and antenna",+ "active": true+ }+ ],+ "integrity": {+ "ok": true,+ "errors": [],+ "roots": [+ 0+ ],+ "leaves": [+ 2+ ],+ "chainLength": 3+ },+ "revertToOriginal": {+ "activeIndex": 0,+ "activeGlb": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb"+ },+ "branchOffV1": {+ "newIndex": 3,+ "parentIndex": 1,+ "chainOk": true,+ "leaves": [+ 2,+ 3+ ]+ }+}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/iteration/origin-submit.json b/prompts/store-submissions/_generated/iteration/origin-submit.jsonnew file mode 100644index 000000000..df2854a4b--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/origin-submit.json@@ -0,0 +1 @@+{"job_id":null,"creation_id":"d6892889-ca6b-4d77-8ffc-638a60002b15","status":"done","glb_url":"https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb","durable":true,"mode":"text_to_3d","path":"image","tier":"draft","backend":"nvidia","prompt":"a friendly round robot mascot, glossy white plastic","preview_image_url":null,"reference_image_urls":[],"eta_seconds":13,"estimated_credits":null}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/iteration/refine-1-submit.json b/prompts/store-submissions/_generated/iteration/refine-1-submit.jsonnew file mode 100644index 000000000..8da631121--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/refine-1-submit.json@@ -0,0 +1 @@+{"job_id":null,"creation_id":"481ff3ff-db68-467a-b4be-47fa901bb664","status":"done","glb_url":"https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/481ff3ff-db68-467a-b4be-47fa901bb664.glb","durable":true,"mode":"text_to_3d","path":"image","tier":"draft","backend":"nvidia","prompt":"a friendly round robot mascot, glossy white plastic, metallic and gold","preview_image_url":null,"reference_image_urls":[],"eta_seconds":13,"estimated_credits":null}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/iteration/refine-2-submit.json b/prompts/store-submissions/_generated/iteration/refine-2-submit.jsonnew file mode 100644index 000000000..88e80233f--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/refine-2-submit.json@@ -0,0 +1 @@+{"job_id":null,"creation_id":"764e1e9d-f308-49d1-9689-7855bdb6f7c5","status":"done","glb_url":"https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/764e1e9d-f308-49d1-9689-7855bdb6f7c5.glb","durable":true,"mode":"text_to_3d","path":"image","tier":"draft","backend":"nvidia","prompt":"a friendly round robot mascot, glossy white plastic, metallic and gold, glowing blue eyes and antenna","preview_image_url":null,"reference_image_urls":[],"eta_seconds":13,"estimated_credits":null}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/iteration/studio-refine_model-live.json b/prompts/store-submissions/_generated/iteration/studio-refine_model-live.jsonnew file mode 100644index 000000000..65561eb81--- /dev/null+++ b/prompts/store-submissions/_generated/iteration/studio-refine_model-live.json@@ -0,0 +1,37 @@+{+ "content": [+ {+ "type": "text",+ "text": "Refined the model (v1: \"make it chrome and add racing stripes\"). View it: https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F8e1e0a46-069f-4e90-ab00-4745b74959f5.glb\nDownload: https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/8e1e0a46-069f-4e90-ab00-4745b74959f5.glb"+ }+ ],+ "structuredContent": {+ "kind": "refined model",+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/8e1e0a46-069f-4e90-ab00-4745b74959f5.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F8e1e0a46-069f-4e90-ab00-4745b74959f5.glb",+ "format": "glb",+ "prompt": "a friendly round robot mascot, glossy white plastic, chrome and add racing stripes",+ "instruction": "make it chrome and add racing stripes",+ "lineage": [+ {+ "index": 0,+ "parentIndex": null,+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/d6892889-ca6b-4d77-8ffc-638a60002b15.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fd6892889-ca6b-4d77-8ffc-638a60002b15.glb",+ "label": "Original",+ "instruction": null,+ "active": false+ },+ {+ "index": 1,+ "parentIndex": 0,+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/8e1e0a46-069f-4e90-ab00-4745b74959f5.glb",+ "viewerUrl": "https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F8e1e0a46-069f-4e90-ab00-4745b74959f5.glb",+ "label": "make it chrome and add racing stripes",+ "instruction": "make it chrome and add racing stripes",+ "active": true+ }+ ],+ "activeIndex": 1+ }+}\ No newline at end of filediff --git a/prompts/store-submissions/_generated/openai-submission.md b/prompts/store-submissions/_generated/openai-submission.mdnew file mode 100644index 000000000..6cac84633--- /dev/null+++ b/prompts/store-submissions/_generated/openai-submission.md@@ -0,0 +1,331 @@+# three.ws 3D Studio — OpenAI ChatGPT App Directory submission package++**Prepared:** 2026-07-07 · **Owning prompt:** 06 · **Endpoint:** `https://three.ws/api/mcp-studio`+**Prereqs verified live:** prompt 04 (`/api/mcp-studio` deployed), prompt 05 (widget renders real GLBs).++This is the copy-paste-ready answer sheet for submitting the free three.ws 3D Studio to the+OpenAI ChatGPT App Directory, plus an evidence-backed compliance audit. Every field is filled+except items marked `[HUMAN: …]` (identity verification, support contact, final submit) and the+two **blockers** below, which must be cleared before the app can pass review.++---++## 0. Submission verdict — NOT READY (2 blockers)++The app **passes every OpenAI content/privacy/annotation policy** (§2 audit: all PASS). It is **not+submittable today** because two live-production defects would make a reviewer's test fail:++| # | Blocker | Impact on review | Owner | Fix |+|---|---------|------------------|-------|-----|+| **B1** | **Rate-limiter store over monthly quota** → every `tools/call` generation returns HTTP 429 `rate_limiter_unavailable`. | A reviewer's first generation attempt fails. Auto-rejection ("apps must reliably do what they promise"). | ops / owner | Restore Upstash quota (§B1). |+| **B2** | **`/viewer?src=<glb>` returns 404** — the `viewerUrl` every tool returns (and the widget's "Open in three.ws" button) is a dead link. | Reviewer clicks the returned link → 404 page. Quality/broken-link rejection. | eng | Add the missing route (§B2). |++Discovery (`initialize`, `tools/list`, `resources/list`) works; the generation pipeline itself works+(proven in §2.4 via the free lane); the widget renders real models (§4 screenshots). The blockers are+an infra quota and a missing route, not the app logic. **Clear B1 + B2, redeploy, then submit.**++---++### B1 — Rate-limiter store over quota (generation 429s)++**Evidence (live, 2026-07-07):**+```+$ curl -s -X POST https://three.ws/api/mcp-studio -H 'content-type: application/json' \+ -d '{"jsonrpc":"2.0","id":9,"method":"tools/call","params":{"name":"forge_free","arguments":{"prompt":"a friendly robot mascot"}}}'+{"error":"rate_limited","error_description":"generation rate limit — slow down and try again shortly","retry_after":60,"reason":"rate_limiter_unavailable"} # HTTP 429+```+**Root cause:** the shared Upstash/Vercel-KV limiter store is over its **monthly command quota**:+```+$ curl -s "$KV_REST_API_URL/ping" -H "authorization: Bearer $KV_REST_API_TOKEN"+{"error":"ERR max requests limit exceeded. Limit: 500000, Usage: 500002. ..."}+```+The studio's generation buckets (`studioGenBurst`, `studioGenHourly`, `studioGenerateGlobal` in+`api/_lib/rate-limit.js`) are `critical: true`, so on a Redis error in production they **fail closed**+(deny) rather than allow unbounded operator-funded spend. With the store over quota, every Redis+command errors → generation is denied with `reason: 'rate_limiter_unavailable'`. This is the recurring+"500k/mo" incident referenced in the rate-limit code comments.++**Fix (ops — pick one):**+1. **Restore quota** — upgrade the Upstash plan or reset billing so `Usage < Limit`; the studio recovers+ the instant commands succeed again. (Fastest; no deploy.)+2. **Point the limiter at a fresh store** — set `UPSTASH_REDIS_REST_URL`/`UPSTASH_REDIS_REST_TOKEN`+ (highest-priority source in `REDIS_REST_SOURCES`) to a new Upstash DB with headroom, then redeploy.++Note: `authIp`/login use `degradeToMemory` and stay up; only cost/money-moving buckets (studio+generation, chat, x402-verify, auto-rig) fail closed. This is a **site-wide** cost-lane outage, not+studio-only — worth fixing regardless of the submission.++`[HUMAN: restore Upstash limiter quota, then re-run the §5 reviewer smoke test to confirm 200s.]`++---++### B2 — `/viewer?src=<glb>` returns 404 (broken link in every tool response)++**Evidence (live, 2026-07-07):**+```+$ curl -s -o /dev/null -w '%{http_code}' "https://three.ws/viewer?src=<encoded-glb>"+404 # body: <title>three.ws — 404</title>+```+Every studio tool returns `viewerUrl: "https://three.ws/viewer?src=<glb>"` in `structuredContent` and+in the text ("View it: …/viewer?src=…"), and the widget's primary **"Open in three.ws"** button links+to it. That path 404s.++**Root cause:** `vercel.json` has **no route** mapping `/viewer`. Neighboring viewers do not substitute:+- `/app?src=<glb>` → 200 but ignores `?src=` (renders the default agent avatar — verified by screenshot).+- `/avatar-artifact?src=<glb>` → 200 but ignores `?src=` (renders its own demo artifact — verified).+- The one standalone GLB viewer, `public/apps-sdk/studio-viewer.html`, reads `?glb=` (not `?src=`) and+ is served at `/apps-sdk/studio-viewer.html`.++So `/viewer?src=` resolves nowhere. The link is emitted by 7 shipped surfaces+(`api/_mcp-studio/forge-client.js`, `src/shared/forge-frames.js`, `api/v1/ai/_text-to-3d-lane.js`,+`api/_lib/tokenize-3d-metadata.js`, `api/_okx3d/identity.js`, `api/_studio/tools.js`, and the+studio-viewer bundle's own fallback), so this is a platform-wide dead link, not studio-only.++**Recommended fix (smallest correct change — make the standalone viewer serve `/viewer?src=`):**+1. In `apps-sdk/studio-viewer/src.js` (~line 66), accept `src`/`url` in the standalone param reader:+ ```js+ glb: pickUrl({ u: q.get('glb') || q.get('src') || q.get('url') || hashUrl }, ['u']),+ ```+2. Rebuild the bundle: `npm run build:apps-sdk-viewer`.+3. Add one route to `vercel.json` (query string is forwarded automatically):+ ```json+ { "src": "/viewer/?", "dest": "/apps-sdk/studio-viewer.html" }+ ```+4. Verify: `curl -s -o /dev/null -w '%{http_code}' "https://three.ws/viewer?src=<glb>"` → `200`, and the+ page renders the model.++> **Not fixed in this task on purpose.** This touches a shared build artifact and the 1047-route+> `vercel.json` while other agents are actively editing adjacent files (`api/_okx3d/identity.js`,+> `apps-sdk/…` were dirty in `git status`), and the fix only reaches a reviewer after a deploy that was+> not requested here. It belongs in its own focused change with owner awareness.+> `[HUMAN: apply the §B2 fix (or confirm the intended /viewer target), redeploy, re-verify 200.]`++---++## 1. Listing metadata (copy-paste into the submission form)++| Field | Value |+|-------|-------|+| **App name** | **three.ws 3D Studio** |+| **Tagline** | Turn a text prompt into a downloadable, animation-ready 3D model — free, inside ChatGPT. |+| **Short description** | three.ws 3D Studio generates textured 3D models, avatars, and rigged characters from a text prompt (or a reference image) and renders each result inline in an interactive 3D viewer you can rotate, inspect, and download as a GLB. It can also auto-rig a static model into an animation-ready one. Free to use — no account, no key, no payment. |+| **Long description** | Describe anything — "a friendly round robot mascot," "a low-poly treasure chest," "a knight character I can animate" — and three.ws 3D Studio builds a real, textured 3D model and shows it in an interactive viewer right in the conversation. Five tools cover the full path from idea to asset: generate a model from text, generate an avatar, generate an art-directed mesh, auto-rig a static model into an animation-ready one, and generate-then-rig a character in a single step. Every result is a standard **GLB** you can download and drop into Blender, Unity, Unreal, three.js, or any glTF pipeline. Generation runs on three.ws's own free 3D lane, so there is nothing to sign up for and nothing to pay. Not natively possible in ChatGPT: turning language into a manipulable, downloadable 3D asset with an inline viewer. |+| **Category** | Creativity & Design (secondary: Productivity) |+| **Country availability** | All countries / Global (no geo-restriction; anonymous + free). |+| **Age suitability** | Suitable for ages 13–17 (content-safety gate on every generation lane — §2.6). |+| **App icon** | `_generated/assets/icon-512x512.png` (512×512, owned IP). |+| **Support contact** | `[HUMAN: current support email/URL — e.g. [email protected] or https://three.ws/support]` |+| **Privacy policy URL** | `https://three.ws/legal/privacy` `[HUMAN: confirm it is deployed and covers the studio — it collects no personal data; see §2.4]` |+| **Developer/Publisher** | three.ws · `[HUMAN: verified individual/organization on platform.openai.com]` |++### Example prompts (3–5, all reliably produce a model)+1. `Make a 3D model of a friendly round robot mascot, glossy white plastic.`+2. `Generate a low-poly treasure chest with iron bands.`+3. `Create a 3D avatar of a space explorer in a white-and-orange suit.`+4. `Make a rigged, animation-ready knight character I can pose.`+5. `Model a small ceramic teapot with a bamboo handle and a celadon glaze.`++### Tool list (titles as shown to users)+| Tool | Title | What it does |+|------|-------|--------------|+| `forge_free` | Generate a 3D model from text | Text → textured GLB (free NVIDIA lane). |+| `text_to_avatar` | Generate a 3D avatar | Text or reference image → avatar GLB. |+| `mesh_forge` | Generate a 3D mesh (art-directed) | Text/image → mesh, prompt refined by an AI art-director first. |+| `rig_mesh` | Rig a 3D model for animation | Static GLB URL → humanoid-rigged, animation-ready GLB. |+| `forge_avatar` | Generate a rigged, animation-ready avatar | Text/image → generate + auto-rig in one step. |++---++## 2. Compliance audit (item-by-item, each with a PASS verdict + evidence)++All evidence is from the live production deployment on 2026-07-07. Raw artifacts are in+`_generated/` (`live-tools-list.json`, `openai-tool-evidence.txt`, `forge-raw-response.json`).++### 2.1 No crypto / token / wallet surface — **PASS**+The studio endpoint, its handlers, the widget, and every reviewer-facing surface contain **zero**+coin/token/wallet/x402/pump/aixbt/$THREE/payment strings.++```+$ grep -rInE 'coin|token|wallet|x402|pump|aixbt|\$THREE|crypto|solana|usdc|mint|payment|checkout|price|fee' \+ api/mcp-studio.js api/_mcp-studio/ | grep -vE ':[0-9]+:\s*(//|\*)'+ (no matches in executable code)++# Reviewer-facing JSON — hit counts:+live-tools-list.json : 0 crypto/payment hits+studio-widget-resource.json : 0 crypto/payment hits+openai-tool-evidence.txt : 0 crypto/payment hits+```+The only matches anywhere are in **source comments** that assert the absence (e.g. `// No coin, token,+wallet, or payment surface anywhere.`). The paid, crypto-enabled studio is a **separate** endpoint+(`/api/mcp-3d`) that is not part of this submission.++### 2.2 No payments / no embedded checkout — **PASS**+`api/mcp-studio.js` header: *"There is no OAuth, no x402, no wallet, no token, and no PaymentRequired+anywhere in this server — generation runs operator-funded."* No tool returns a price, invoice, or+checkout; the app charges the user nothing. (If monetization is ever added, OpenAI allows only physical+goods via external checkout — out of scope here.)++### 2.3 Tool annotations correct on all five tools — **PASS**+Pulled from the live `tools/list`:++| Tool | readOnlyHint | destructiveHint | idempotentHint | openWorldHint |+|------|:---:|:---:|:---:|:---:|+| forge_free | false | false | false | **true** |+| text_to_avatar | false | false | false | **true** |+| mesh_forge | false | false | false | **true** |+| rig_mesh | false | false | false | **true** |+| forge_avatar | false | false | false | **true** |++Rationale (matches OpenAI guidance): each tool **creates a new hosted asset** → not read-only; it+**never modifies or deletes** existing data → `destructiveHint: false` (generation is non-destructive);+same prompt yields a fresh mesh → not idempotent; work runs against **external model APIs** →+`openWorldHint: true`. Every tool also carries the widget `_meta` (`openai/outputTemplate`,+`openai/widgetAccessible: true`) and human-readable `invoking`/`invoked` labels.++### 2.4 Data minimization — **PASS** (real request/response captured)+Each tool response returns **only** what a client needs to show/download the model. The studio+**strips every internal identifier** from the raw generation record.++**Raw `/api/forge` response (14 fields, internal):**+```json+{"job_id":null,"creation_id":"7dac20c7-…","status":"done","glb_url":"…","durable":true,+ "mode":"text_to_3d","path":"image","tier":"draft","backend":"nvidia","prompt":"…",+ "preview_image_url":null,"reference_image_urls":[],"eta_seconds":13,"estimated_credits":null}+```+**Authentic studio tool response (5 fields — `openai-tool-evidence.txt`):**+```json+{"kind":"model",+ "glbUrl":"https://pub-…r2.dev/forge/anon/456f0f83-…-1d695f.glb",+ "viewerUrl":"https://three.ws/viewer?src=…", // ← target route missing, see B2+ "format":"glb",+ "prompt":"a small ceramic teapot with a bamboo handle, glossy celadon glaze"}+```+**Stripped:** `creation_id`, `job_id`, `status`, `mode`, `path`, `tier`, `backend`, `durable`,+`eta_seconds`, `estimated_credits`, `preview_image_url`, `reference_image_urls`. **No** session id,+trace id, user id, auth secret, or PII. `prompt` is the user's own input echoed back (labels the model).+The only identifier-shaped token is the generated asset's own **anonymous** content path+(`/forge/anon/<uuid>.glb`) — the public file URL the user needs to download it, not tied to any account+or session.++### 2.5 Inputs minimal — **PASS**+No chat-history or "just in case" fields; `additionalProperties: false` on every schema.++| Tool | Inputs | Required |+|------|--------|----------|+| forge_free | `prompt`, `tier` | `prompt` |+| text_to_avatar | `prompt`, `image_url` | — |+| mesh_forge | `prompt`, `image_url` | — |+| rig_mesh | `glb_url` | `glb_url` |+| forge_avatar | `prompt`, `image_url`, `allow_non_humanoid` | — |++### 2.6 Age-appropriate (13–17) — **PASS** (safety gate present + live-tested)+A synchronous, dependency-free content-safety gate (`api/_mcp-studio/safety.js`) runs **before any+provider work** on every generation lane, refusing sexual/CSAM, graphic-gore, hate/extremism, and+real-weapon/drug prompts. Live-tested through the real handler:+```+forge_free({prompt:"a nude pornographic figure"}) → refused in 1ms, no provider call:+ "This 3D Studio is rated for ages 13+ and cannot generate sexual or adult content.+ Try describing a character, creature, or object without explicit themes."+```+(Full response in `openai-tool-evidence.txt`.) The safety gate is **not** blocked by B1/B2 — it runs in+the handler, independent of the limiter and the viewer route.++### 2.7 Clear utility not native to ChatGPT — **PASS**+ChatGPT cannot natively turn language into a manipulable, downloadable 3D asset. The studio produces a+real **GLB** plus an inline interactive viewer (rotate / spin / recenter / download) — a capability, not+a chat completion. Value prop: *idea → textured, riggable, downloadable 3D model, free, without leaving+the conversation.*++**Audit result: 7/7 policy items PASS.** The only things standing between this and a submission are the+two infrastructure/routing blockers in §0.++---++## 3. MCP connectivity details (for the submission form + reviewer)++| Field | Value |+|-------|-------|+| **MCP server URL** | `https://three.ws/api/mcp-studio` |+| **Transport** | Streamable HTTP / JSON-RPC 2.0 over `POST` (synchronous responses; no server-initiated stream). `GET` → `405`. |+| **Protocol version** | `2025-06-18` (echoed on `initialize` and the `mcp-protocol-version` response header). |+| **serverInfo** | `{ "name": "three-ws-3d-studio-free", "version": "1.0.0" }` |+| **Capabilities** | `tools`, `resources`, `logging`. |+| **Auth mode** | **None** (anonymous, unauthenticated). No OAuth, no API key, no test credentials required. |+| **Widget resource** | `ui://widget/three-studio-model.html` (`resources/list` / `resources/read`), MIME `text/html+skybridge`. |+| **Rate limits** | Per-IP transport cap + per-IP generation burst/hourly + a platform-wide generation circuit breaker (operator-cost protection). A reviewer testing normally will not hit these — **except while B1 is unresolved, when all generation 429s.** |++Because the app is anonymous and free, OpenAI's "provide a fully-featured demo account with test+credentials" requirement **does not apply** — there is no login. Note this explicitly in the form's auth+section.++---++## 4. Screenshots (`_generated/openai-screenshots/`)++All three show the interactive viewer widget rendering a **real, freshly generated** model with the+control bar (Download · Spin · Recenter · Open in three.ws).++| File | Dimensions | Content |+|------|-----------|---------|+| `three-ws-3d-studio-1440x1520.png` | 1440×1520 (portrait) | Hero — rigged avatar rendered inline (prompt 05). |+| `three-ws-3d-studio-widget-1600x1000.png` | 1600×1000 (landscape) | Shipped widget rendering a live-generated celadon teapot. |+| `three-ws-3d-studio-widget-1280x800.png` | 1280×800 (landscape) | Same, standard 16:10 landscape. |++The landscape shots were captured against the **live** shipped viewer bundle+(`https://three.ws/apps-sdk/studio-viewer.html?glb=<real-glb>`) rendering the GLB produced by a real+`forge_free` call this session — not a mockup.++`[HUMAN: confirm the App Directory form's exact required screenshot dimensions/aspect and, if it demands+a specific size not covered above, capture at that size — the widget renders any GLB at any viewport.]`++---++## 5. Reviewer testing guide++**No credentials needed** (anonymous, free). Prerequisite: **B1 must be cleared** or all generation+returns 429.++1. **Discover** (works today): `initialize` → `tools/list` → `resources/list` against+ `https://three.ws/api/mcp-studio`. Expect 5 tools + the `ui://widget/three-studio-model.html` resource.+2. **Generate** a model that reliably succeeds — say to ChatGPT: *"Make a 3D model of a friendly round+ robot mascot, glossy white plastic."* Expect, in ~15–60s, an inline interactive 3D viewer with the+ model plus **Download / Spin / Recenter / Open in three.ws**.+3. **Expected render behavior:** the widget loads the GLB, frames it, casts a soft ground shadow, and+ auto-rotates until you drag. WebGL is required (the widget shows a graceful "download / open"+ fallback if the host can't render WebGL).+4. **Rig flow:** *"Now make me a rigged knight character I can animate"* → `forge_avatar` returns a+ rigged GLB (idle animation plays in the viewer).+5. **Safety check:** an explicit/adult prompt is refused instantly with an age-13+ message and never+ reaches a generator.++Copy-paste discovery smoke test:+```bash+curl -s -X POST https://three.ws/api/mcp-studio -H 'content-type: application/json' \+ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | head -c 300+```++---++## 6. Developer verification + support (`[HUMAN]` actions)++1. `[HUMAN: complete developer identity verification for the individual/organization on+ platform.openai.com — required before any listing can go live.]`+2. `[HUMAN: provide a current, monitored support contact (email or URL) for the listing.]`+3. `[HUMAN: confirm https://three.ws/legal/privacy is deployed and states the studio collects no+ personal data (anonymous, no login, minimal identifier-free responses per §2.4).]`+4. `[HUMAN: after B1 + B2 are fixed and redeployed, run the §5 smoke test to confirm generation returns+ 200 and the "Open in three.ws" link resolves, then submit.]`++---++## 7. Pre-submit checklist++- [ ] **B1** cleared — `tools/call forge_free` returns 200 with a GLB (not 429).+- [ ] **B2** cleared — `/viewer?src=<glb>` returns 200 and renders the model.+- [ ] Developer identity verified on platform.openai.com. `[HUMAN]`+- [ ] Support contact + privacy policy confirmed live. `[HUMAN]`+- [ ] Screenshots match the form's required dimensions. `[HUMAN verify]`+- [x] Compliance audit: 7/7 policy items PASS (§2).+- [x] Listing metadata drafted (§1).+- [x] MCP connectivity documented (§3).+- [x] Reviewer guide written (§5).diff --git a/public/changelog.json b/public/changelog.jsonindex 3be1b42f1..b15f89425 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-07T11:46:10.030Z",+ "generated_at": "2026-07-07T12:00:01.202Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -100,6 +100,17 @@"fix"]},+ {+ "date": "2026-07-07",+ "type": "update",+ "title": "Conversational 3D refinement + a remixable-asset economy with creator royalties",+ "summary": "You can now iterate on a generated model by talking to it — say \"make it metallic\" or \"add wings\" and the studio re-generates a new version anchored to the last one, with a version strip you can revert or branch. It is free in the 3D Studio and on the paid MCP server. Creators can also publish a model as remixable: when another agent builds on it, a creator-set royalty (up to 20%) of the remix fee routes back to them on-chain in USDC, with provenance recorded on every derived model.",+ "link": null,+ "tags": [+ "feature",+ "sdk"+ ]+ },{"date": "2026-07-07","type": "update",@@ -233,6 +244,17 @@"feature"]},+ {+ "date": "2026-07-07",+ "type": "update",+ "title": "Hire and pay another agent, transparently — the live agent-to-agent commerce loop",+ "summary": "Your agent can now discover a specialist agent, check its on-chain reputation, pay it in USDC, hand off the task, and get the result back with a full receipt — who it hired, the reputation behind the choice, exactly what it cost, and the on-chain settlement reference. The agent_hire_discover tool ranks candidates by task fit, ERC-8004 reputation and real engagement; agent_hire runs the whole thing end to end and renders an inline provenance receipt card. Hard spend guardrails protect you throughout: a per-call cap, a per-session budget, and a confirmation prompt for anything above a threshold — and a blocked or failed hire is never charged. Discovery no longer comes up empty on a plain-language request, and paid hires now complete against a live agent.",+ "link": null,+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-07-07","type": "update",@@ -400,6 +422,17 @@"feature"]},+ {+ "date": "2026-07-07",+ "type": "update",+ "title": "three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory",+ "summary": "We assembled the submission package for our free 3D Studio as a ChatGPT app: text-to-3D, avatars, and one-step rigged characters that render in an interactive viewer right in the chat — no account, no key, no payment. A full policy audit confirmed the app is crypto-free, collects no personal data, ships correct tool labels, and stays age-appropriate with a content-safety filter on every generation.",+ "link": null,+ "tags": [+ "docs",+ "security"+ ]+ },{"date": "2026-07-07","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 69a9b8d1e..24b5bbf74 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -78,6 +78,14 @@<category>improvement</category><description>Text-to-3D prompts that name an art style — "a cartoon fox," "a stylized robot" — now reliably produce a single, cleanly-isolated model instead of one baked into a busy background scene. The image step that seeds every 3D generation was skipping its "isolated subject on a plain white background" instruction whenever a prompt mentioned a style, which let the image model paint a whole illustrated scene the 3D reconstructor then struggled with. It now keeps that isolation instruction for stylized subjects (and no longer trips on unrelated words like "lightsaber"), so stylized characters and props reconstruct as sharp standalone assets.</description></item>+ <item>+ <title>Conversational 3D refinement + a remixable-asset economy with creator royalties</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-07:Conversational 3D refinement + a remixable-asset economy with creator royalties</guid>+ <pubDate>Tue, 07 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>You can now iterate on a generated model by talking to it — say "make it metallic" or "add wings" and the studio re-generates a new version anchored to the last one, with a version strip you can revert or branch. It is free in the 3D Studio and on the paid MCP server. Creators can also publish a model as remixable: when another agent builds on it, a creator-set royalty (up to 20%) of the remix fee routes back to them on-chain in USDC, with provenance recorded on every derived model.</description>+ </item><item><title>Find the wallet grinder from the contract grinder</title><link>https://three.ws/eth-vanity</link>@@ -182,6 +190,14 @@<category>feature</category><description>A new free, keyless endpoint tells an AI agent whether big money is moving before it trades. Call /api/crypto/whales with a token mint to see the large buys of that coin, or without one to see the top whale wallets active across pump.fun right now. Each response carries a plain bullish/bearish/neutral signal derived from net whale flow — the SOL whales bought minus the SOL they sold — with no black-box scoring. No account, no key, no payment.</description></item>+ <item>+ <title>Hire and pay another agent, transparently — the live agent-to-agent commerce loop</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-07:Hire and pay another agent, transparently — the live agent-to-agent commerce loop</guid>+ <pubDate>Tue, 07 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Your agent can now discover a specialist agent, check its on-chain reputation, pay it in USDC, hand off the task, and get the result back with a full receipt — who it hired, the reputation behind the choice, exactly what it cost, and the on-chain settlement reference. The agent_hire_discover tool ranks candidates by task fit, ERC-8004 reputation and real engagement; agent_hire runs the whole thing end to end and renders an inline provenance receipt card. Hard spend guardrails protect you throughout: a per-call cap, a per-session budget, and a confirmation prompt for anything above a threshold — and a blocked or failed hire is never charged. Discovery no longer comes up empty on a plain-language request, and paid hires now complete against a live agent.</description>+ </item><item><title>Mint a generated 3D avatar as an on-chain Solana NFT — with a live 3D viewer as its media</title><link>https://three.ws/changelog</link>@@ -310,6 +326,14 @@<category>feature</category><description>You can now turn a text prompt into a real, downloadable 3D model right inside ChatGPT. The three.ws 3D Studio custom GPT is backed by a free, keyless REST endpoint — describe something like "a low-poly fox" or "a ceramic robot figurine" and get back a GLB you can open in Blender, Unity, Godot, or three.js, plus a browser viewer link. No account, no key, no cost. Every prompt is screened by a content-safety filter so it stays appropriate for all ages, and the model file is served from a public URL so it's easy to download and share.</description></item>+ <item>+ <title>three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-07:three.ws 3D Studio prepped for the OpenAI ChatGPT App Directory</guid>+ <pubDate>Tue, 07 Jul 2026 12:00:00 GMT</pubDate>+ <category>docs</category>+ <description>We assembled the submission package for our free 3D Studio as a ChatGPT app: text-to-3D, avatars, and one-step rigged characters that render in an interactive viewer right in the chat — no account, no key, no payment. A full policy audit confirmed the app is crypto-free, collects no personal data, ships correct tool labels, and stays age-appropriate with a content-safety filter on every generation.</description>+ </item><item><title>three.ws Agent Skills pack — for any Claude surface</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex af85b47fb..606e838ad 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-07T11:46:10.008Z",+ "generated_at": "2026-07-07T12:00:01.189Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/embodiment-evidence.mjs b/scripts/embodiment-evidence.mjsindex 9a6ac071e..4707b6230 100644--- a/scripts/embodiment-evidence.mjs+++ b/scripts/embodiment-evidence.mjs@@ -56,9 +56,9 @@ async function shoot(page, url, file, { settle = 2600, speaking = false } = {})const shots = [{ file: '01-idle.png', url: embedUrl({ state: 'idle' }), opt: { settle: 3000 } },- { file: '02-joy.png', url: embedUrl({ state: 'speaking', emotion: 'joy', text: 'Congratulations — that is absolutely amazing! 🎉' }), opt: { settle: 1500, speaking: true } },- { file: '03-sad.png', url: embedUrl({ state: 'speaking', emotion: 'sad', text: 'I am sorry, unfortunately that request failed.' }), opt: { settle: 1500, speaking: true } },- { file: '04-angry.png', url: embedUrl({ state: 'speaking', emotion: 'angry', text: 'This is completely unacceptable and frustrating!' }), opt: { settle: 1500, speaking: true } },+ { file: '02-joy.png', url: embedUrl({ state: 'speaking', emotion: 'joy', text: 'Congratulations, this is absolutely amazing news and I am so happy and thrilled for you today! 🎉' }), opt: { settle: 2400, speaking: true } },+ { file: '03-sad.png', url: embedUrl({ state: 'speaking', emotion: 'sad', text: 'I am so sorry, but unfortunately that request failed and I could not recover it. I really regret the trouble this caused you.' }), opt: { settle: 2400, speaking: true } },+ { file: '04-angry.png', url: embedUrl({ state: 'speaking', emotion: 'angry', text: 'This is completely unacceptable and honestly quite frustrating. That outcome is terrible and it should never have happened this way.' }), opt: { settle: 2400, speaking: true } },{ file: '05-reload-same-body.png', url: embedUrl({ state: 'idle' }), opt: { settle: 3000 } },{ file: '06-nonhumanoid-fallback.png', url: embedUrl({ state: 'idle', glb: PROP, name: 'Cowboy Hat', persona: null }), opt: { settle: 3000 } },];diff --git a/tests/api/persona-resolve-route.test.js b/tests/api/persona-resolve-route.test.jsnew file mode 100644index 000000000..f8cc7138c--- /dev/null+++ b/tests/api/persona-resolve-route.test.js@@ -0,0 +1,95 @@+// Tests for GET /api/mcp3d/persona — the durable-reload endpoint the embodiment+// embed calls to bring a body back by id in a fresh session. Uses the filesystem+// persona backend (no DB, no R2) so the round-trip is hermetic.++import { describe, it, expect, beforeAll, afterAll } from 'vitest';+import { Readable } from 'node:stream';+import { promises as fs } from 'node:fs';+import os from 'node:os';+import path from 'node:path';++process.env.PUBLIC_APP_ORIGIN = 'https://three.ws';++const { createPersona } = await import('../../api/_lib/persona-store.js');+const { default: handler } = await import('../../api/mcp3d/persona.js');++let tmpDir;+const saved = {};+let personaId;++beforeAll(async () => {+ tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'persona-route-test-'));+ for (const k of ['PERSONA_STORE_DIR', 'DATABASE_URL', 'S3_BUCKET', 'S3_PUBLIC_DOMAIN']) saved[k] = process.env[k];+ process.env.PERSONA_STORE_DIR = tmpDir;+ delete process.env.DATABASE_URL;+ delete process.env.S3_BUCKET;+ delete process.env.S3_PUBLIC_DOMAIN;+ const rec = await createPersona({ name: 'Nova', glbUrl: 'https://three.ws/cdn/creations/nova.glb', ownerId: 'secret-owner' });+ personaId = rec.id;+});++afterAll(async () => {+ for (const [k, v] of Object.entries(saved)) {+ if (v === undefined) delete process.env[k];+ else process.env[k] = v;+ }+ if (tmpDir) await fs.rm(tmpDir, { recursive: true, force: true });+});++function makeReq({ method = 'GET', url = '/' } = {}) {+ const req = Readable.from([]);+ req.method = method;+ req.url = url;+ req.headers = { host: 'three.ws' };+ return req;+}+function makeRes() {+ return {+ statusCode: 200,+ headers: {},+ body: '',+ writableEnded: false,+ setHeader(k, v) { this.headers[k.toLowerCase()] = v; },+ getHeader(k) { return this.headers[k.toLowerCase()]; },+ end(chunk) { if (chunk !== undefined) this.body += chunk; this.writableEnded = true; },+ };+}+async function invoke(url, method = 'GET') {+ const req = makeReq({ url, method });+ const res = makeRes();+ await handler(req, res);+ return { res, status: res.statusCode, body: res.body ? JSON.parse(res.body) : null };+}++describe('GET /api/mcp3d/persona', () => {+ it('resolves a known persona to its public projection', async () => {+ const { status, body, res } = await invoke(`/api/mcp3d/persona?id=${personaId}`);+ expect(status).toBe(200);+ expect(body.persona_id).toBe(personaId);+ expect(body.name).toBe('Nova');+ expect(body.glb_url).toBe('https://three.ws/cdn/creations/nova.glb');+ // CORS + short cache so the cross-origin embed can fetch it.+ expect(res.headers['access-control-allow-origin']).toBe('*');+ expect(res.headers['cache-control']).toMatch(/s-maxage/);+ // Never leaks storage keys or owner ids.+ expect(res.body).not.toContain('secret-owner');+ expect(res.body).not.toContain('glb_key');+ });++ it('400 on a malformed id', async () => {+ const { status, body } = await invoke('/api/mcp3d/persona?id=not-a-persona');+ expect(status).toBe(400);+ expect(body.error).toBe('invalid_id');+ });++ it('404 on a well-formed but unknown id', async () => {+ const { status, body } = await invoke('/api/mcp3d/persona?id=persona_deadbeefdeadbeefdead');+ expect(status).toBe(404);+ expect(body.error).toBe('not_found');+ });++ it('405 on a non-GET method', async () => {+ const { status } = await invoke(`/api/mcp3d/persona?id=${personaId}`, 'POST');+ expect(status).toBe(405);+ });+});diff --git a/tests/remix-settlement.test.js b/tests/remix-settlement.test.jsnew file mode 100644index 000000000..2c4f60b39--- /dev/null+++ b/tests/remix-settlement.test.js@@ -0,0 +1,101 @@+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';+import { Keypair } from '@solana/web3.js';+import bs58 from 'bs58';++// Mock the on-chain send and the provenance write so the settlement DECISION+// logic (split, caps, payout gating, honest no-pay reasons) is tested in+// isolation — no chain, no DB. The pure split math is exercised directly in+// tests/remix-royalty.test.js; here we assert the leg that decides whether and+// how much to actually pay, and that it records provenance when it does.+const transferMock = vi.fn(async () => 'SIGipfsMockTx1111111111111111111111111111');+const recordMock = vi.fn(async () => true);++vi.mock('../api/_lib/solana-transfer.js', () => ({ transferSolanaUSDC: transferMock }));+vi.mock('../api/_lib/forge-store.js', () => ({ recordRemixSettlement: recordMock }));++const { settleRemixRoyalty, royaltyPayoutConfigured } = await import('../api/_lib/remix-settlement.js');++// A valid Base58 Solana address for the creator wallet, and a valid 64-byte+// Base58 secret for the platform payout wallet.+const CREATOR = Keypair.generate().publicKey.toBase58();+const PAYOUT_SECRET = bs58.encode(Keypair.generate().secretKey);++function source(overrides = {}) {+ return { id: 'src-1', prompt: 'a round robot mascot', creatorWallet: CREATOR, royaltyBps: 1000, ...overrides };+}++describe('settleRemixRoyalty', () => {+ beforeEach(() => {+ transferMock.mockClear();+ recordMock.mockClear();+ process.env.REMIX_ROYALTY_PAYOUT_KEY = PAYOUT_SECRET;+ });+ afterEach(() => {+ delete process.env.REMIX_ROYALTY_PAYOUT_KEY;+ delete process.env.CLUB_SOLANA_TREASURY_SECRET_KEY_B64;+ });++ it('pays the creator their royalty and records provenance', async () => {+ // 1 USDC fee, 10% royalty → 0.1 USDC to the creator, 0.9 to the platform.+ const r = await settleRemixRoyalty({ source: source(), priceAtomics: 1_000_000n, remixCreationId: 'remix-1' });+ expect(r.paid).toBe(true);+ expect(r.creatorAtomics).toBe('100000');+ expect(r.platformAtomics).toBe('900000');+ expect(r.creatorTx).toBe('SIGipfsMockTx1111111111111111111111111111');+ // The on-chain send got exactly the creator's atomic amount, to the creator.+ expect(transferMock).toHaveBeenCalledTimes(1);+ const call = transferMock.mock.calls[0][0];+ expect(call.toAddress).toBe(CREATOR);+ expect(call.amount).toBe(100000n);+ // Provenance recorded on the SOURCE with the tx + the remix that triggered it.+ expect(recordMock).toHaveBeenCalledTimes(1);+ const rec = recordMock.mock.calls[0][0];+ expect(rec.sourceCreationId).toBe('src-1');+ expect(rec.settlement.tx_signature).toBe(r.creatorTx);+ expect(rec.settlement.remix_creation_id).toBe('remix-1');+ expect(rec.settlement.usdc_atomics).toBe('100000');+ });++ it('caps a greedy royalty rate at 20% — remixer keeps the majority', async () => {+ // A source asking 50% is clamped to the 20% policy cap.+ const r = await settleRemixRoyalty({ source: source({ royaltyBps: 5000 }), priceAtomics: 1_000_000n });+ expect(r.capped).toBe(true);+ expect(r.royaltyBps).toBe(2000);+ expect(r.creatorAtomics).toBe('200000'); // 20%, not 50%+ expect(r.platformAtomics).toBe('800000');+ // Value is conserved: creator + platform === fee.+ expect(BigInt(r.creatorAtomics) + BigInt(r.platformAtomics)).toBe(1_000_000n);+ });++ it('does not pay when the source has no payout wallet', async () => {+ const r = await settleRemixRoyalty({ source: source({ creatorWallet: null }), priceAtomics: 1_000_000n });+ expect(r.paid).toBe(false);+ expect(r.reason).toBe('no_creator_wallet');+ expect(transferMock).not.toHaveBeenCalled();+ expect(recordMock).not.toHaveBeenCalled();+ });++ it('does not pay a sub-dust royalty (records why, never a fake pending)', async () => {+ // 0.05 USDC fee at 10% = 5000 atomics, below the 10000 dust floor.+ const r = await settleRemixRoyalty({ source: source(), priceAtomics: 50_000n });+ expect(r.paid).toBe(false);+ expect(r.reason).toBe('below_dust_floor');+ expect(r.dust).toBe(true);+ // The platform keeps the whole fee when the royalty is dust.+ expect(r.platformAtomics).toBe('50000');+ expect(transferMock).not.toHaveBeenCalled();+ });++ it('does not pay when the platform payout wallet is unconfigured', async () => {+ delete process.env.REMIX_ROYALTY_PAYOUT_KEY;+ expect(royaltyPayoutConfigured()).toBe(false);+ const r = await settleRemixRoyalty({ source: source(), priceAtomics: 1_000_000n });+ expect(r.paid).toBe(false);+ expect(r.reason).toBe('payout_unconfigured');+ expect(transferMock).not.toHaveBeenCalled();+ });++ it('reports payout as configured when a valid key is present', () => {+ expect(royaltyPayoutConfigured()).toBe(true);+ });+});diff --git a/workers/model-trellis/main.py b/workers/model-trellis/main.pyindex 5c042d37d..0a4aa56d2 100644--- a/workers/model-trellis/main.py+++ b/workers/model-trellis/main.py@@ -168,21 +168,25 @@ async def _run_inference(task_id: str, images: list[str], body_type: str) -> Nonimg = await loop.run_in_executor(None, _decode_image, images[0])def _generate():+ # GLB export lives in trellis.utils.postprocessing_utils.to_glb —+ # it fuses the Gaussian appearance onto the extracted mesh and bakes+ # a texture. It is NOT a pipeline method (the pipeline only .run()s+ # the structured-latent generation).+ from trellis.utils import postprocessing_utils+outputs = _pipeline.run(img,seed=42,formats=["gaussian", "mesh"],preprocess_image=True,)- glb = _pipeline.to_glb(+ glb = postprocessing_utils.to_glb(outputs["gaussian"][0],outputs["mesh"][0],simplify=0.95,texture_size=1024,)- buf = io.BytesIO()- glb.export(buf, file_type="glb")- return buf.getvalue()+ return glb.export(file_type="glb")glb_bytes = await loop.run_in_executor(None, _generate)diff --git a/workers/vanity-grinder/Dockerfile b/workers/vanity-grinder/Dockerfileindex 5dc5aa617..c5fade4d2 100644--- a/workers/vanity-grinder/Dockerfile+++ b/workers/vanity-grinder/Dockerfile@@ -17,8 +17,11 @@ COPY workers/vanity-grinder/package.json ./package.jsonRUN npm install --omit=dev --no-audit --no-fund# Copy the source the grinder imports, preserving repo-relative layout so-# ../../src and ../../api resolve. src/solana carries the prebuilt WASM engine.+# ../../src and ../../api resolve. src/solana carries the prebuilt WASM engine,+# whose glue (vanity_grinder.js) imports src/shared/log.js — src/shared MUST be+# copied too or every worker crashes at load with "Cannot find module .../shared/log.js".COPY src/solana ./src/solana+COPY src/shared ./src/sharedCOPY api/_lib ./api/_libCOPY workers/vanity-grinder ./workers/vanity-grinder