Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(3d-studio): gate the OpenAPI sync and normalize the GPT privacy URL

nirholas94c99dc58a68
diff --git a/data/guards.json b/data/guards.json
index 4ca337c89..95a3774c8 100644
--- a/data/guards.json
+++ b/data/guards.json
@@ -1,5 +1,5 @@
{
- "updated": "2026-07-30",
+ "updated": "2026-08-06",
"summary": "Every mechanical guard that protects this repository, and the stage each one runs in. This file is the single source of truth: scripts/audit-guards.mjs proves every entry is real and every stage claim is true, docs/guards.md explains them, and /guards renders them.",
"stages": [
{
@@ -269,6 +269,27 @@
"expect": "guard-proof-unguarded.html"
}
},
+ {
+ "id": "audit-inline-handlers",
+ "script": "scripts/audit-inline-handlers.mjs",
+ "npm": "audit:inline-handlers",
+ "title": "CSP-safe inline markup",
+ "protects": "No served HTML carries an inline event handler attribute or a javascript: URL.",
+ "why": "server/csp-hashes.mjs replaced script-src 'unsafe-inline' with the SHA-256 hashes of the inline <script> blocks in each response. A hash covers a script element and nothing else, so an onclick= attribute or a javascript: href needs 'unsafe-hashes' to run, which hands the mitigation straight back. Reintroducing one does not fail any build or test on its own: it simply stops working in production while passing locally, because a dev server without the header runs it fine.",
+ "stages": [
+ "gate"
+ ],
+ "needs": "none",
+ "proof": {
+ "summary": "A page wiring a click through an onclick attribute, which no script hash can cover.",
+ "violation": {
+ "write": {
+ "pages/guard-proof-inline-handler.html": "<!doctype html>\n<html lang=\"en\">\n<head><meta charset=\"utf-8\"><title>Proof</title></head>\n<body><button onclick=\"alert(1)\">Proof</button></body>\n</html>\n"
+ }
+ },
+ "expect": "guard-proof-inline-handler"
+ }
+ },
{
"id": "audit-docs",
"script": "scripts/audit-docs.mjs",
diff --git a/docs/chatgpt-3d-studio-gpt.md b/docs/chatgpt-3d-studio-gpt.md
index df80f998c..436e3e013 100644
--- a/docs/chatgpt-3d-studio-gpt.md
+++ b/docs/chatgpt-3d-studio-gpt.md
@@ -30,7 +30,7 @@ Three root causes, all in builder configuration:
| Recommended Model | None |
| Action | Import from URL: `https://three.ws/.well-known/3d-studio-openapi.yaml` (re-import after any spec change; never hand-edit the schema inline) |
| Action auth | None |
-| Action privacy policy | `https://three.ws/legal/privacy.html` |
+| Action privacy policy | `https://three.ws/legal/privacy` |
| Conversation starters | Make me a low-poly fox for my game / Sculpt a detailed dragon miniature for my tabletop campaign / Make a cute robot buddy I can put on my desk in AR / Surprise me with something cool in 3D |
Starter design rule: every starter must name ONE concrete subject so the GPT can generate immediately without clarifying questions ("Create a 3D mascot for my community" was dropped for stalling on questions), and at least one starter should surface the AR placement link. Alternates to rotate in: "Turn my initials into a chrome 3D logo", "Make a ceramic mug shaped like a sleepy cat", "Create a treasure chest prop for my indie game", "Make a crystal jellyfish I can spin in my browser".
diff --git a/package.json b/package.json
index 1872583dc..d360d3071 100644
--- a/package.json
+++ b/package.json
@@ -186,12 +186,13 @@
"audit:route-shadowing": "node scripts/audit-route-shadowing.mjs",
"audit:handlers": "node scripts/audit-empty-handlers.mjs",
"audit:x402-catalog": "node scripts/audit-x402-catalog.mjs",
- "gate": "npm run check:conflicts && npm run check:claude && npm run check:cron-syntax && npm run check:studio-openapi && npm run test:gate && npm run test:gate-3d && npm run audit:mcp && npm run audit:mcp-golden && npm run audit:mcp-safety && npm run audit:mcp-catalog && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:docs && npm run check:tutorials && npm run audit:hidden-guard && npm run audit:x402-catalog && npm run audit:tokens && npm run audit:guards && npm run audit:tour-atlas",
+ "gate": "npm run check:conflicts && npm run check:claude && npm run check:cron-syntax && npm run check:studio-openapi && npm run test:gate && npm run test:gate-3d && npm run audit:mcp && npm run audit:mcp-golden && npm run audit:mcp-safety && npm run audit:mcp-catalog && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:docs && npm run check:tutorials && npm run audit:hidden-guard && npm run audit:inline-handlers && npm run audit:x402-catalog && npm run audit:tokens && npm run audit:guards && npm run audit:tour-atlas",
"test:gate-3d": "vitest run tests/glb-canonicalize.test.js tests/animation-retarget.test.js tests/animation-retarget-rest-pollution.test.js tests/viewer-framing.test.js",
"audit:mcp-golden": "node scripts/audit-mcp-golden.mjs",
"audit:mcp-safety": "node scripts/audit-mcp-safety.mjs",
"audit:mcp-catalog": "node scripts/build-mcp-catalog.mjs --check",
"build:mcp-catalog": "node scripts/build-mcp-catalog.mjs",
+ "audit:inline-handlers": "node scripts/audit-inline-handlers.mjs",
"audit:hidden-guard": "node scripts/audit-hidden-guard.mjs",
"audit:tokens": "node scripts/audit-token-drift.mjs",
"audit:guards": "node scripts/audit-guards.mjs",
diff --git a/public/guards.json b/public/guards.json
index 4ca337c89..95a3774c8 100644
--- a/public/guards.json
+++ b/public/guards.json
@@ -1,5 +1,5 @@
{
- "updated": "2026-07-30",
+ "updated": "2026-08-06",
"summary": "Every mechanical guard that protects this repository, and the stage each one runs in. This file is the single source of truth: scripts/audit-guards.mjs proves every entry is real and every stage claim is true, docs/guards.md explains them, and /guards renders them.",
"stages": [
{
@@ -269,6 +269,27 @@
"expect": "guard-proof-unguarded.html"
}
},
+ {
+ "id": "audit-inline-handlers",
+ "script": "scripts/audit-inline-handlers.mjs",
+ "npm": "audit:inline-handlers",
+ "title": "CSP-safe inline markup",
+ "protects": "No served HTML carries an inline event handler attribute or a javascript: URL.",
+ "why": "server/csp-hashes.mjs replaced script-src 'unsafe-inline' with the SHA-256 hashes of the inline <script> blocks in each response. A hash covers a script element and nothing else, so an onclick= attribute or a javascript: href needs 'unsafe-hashes' to run, which hands the mitigation straight back. Reintroducing one does not fail any build or test on its own: it simply stops working in production while passing locally, because a dev server without the header runs it fine.",
+ "stages": [
+ "gate"
+ ],
+ "needs": "none",
+ "proof": {
+ "summary": "A page wiring a click through an onclick attribute, which no script hash can cover.",
+ "violation": {
+ "write": {
+ "pages/guard-proof-inline-handler.html": "<!doctype html>\n<html lang=\"en\">\n<head><meta charset=\"utf-8\"><title>Proof</title></head>\n<body><button onclick=\"alert(1)\">Proof</button></body>\n</html>\n"
+ }
+ },
+ "expect": "guard-proof-inline-handler"
+ }
+ },
{
"id": "audit-docs",
"script": "scripts/audit-docs.mjs",