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
fix(guards): make the route and page guards able to fail, and fix the two 404s they found
nirholase83f0ca0f70e
diff --git a/data/guards.json b/data/guards.jsonindex e0ede907f..3f448410a 100644--- a/data/guards.json+++ b/data/guards.json@@ -171,7 +171,7 @@"dist/guards.html"]},- "expect": "unreachable page"+ "expect": "not built into dist/"}},{@@ -432,10 +432,10 @@"summary": "A Node built-in reaching the browser bundle through a real import chain.","violation": {"append": {- "src/agent-skills.js": "\nimport 'node:zlib';\n"+ "src/solana/sns.js": "\nimport { promisify } from 'node:util';\nexport const proofPromisify = promisify;\n"}},- "expect": "node:zlib"+ "expect": "node:util"}},{@@ -454,14 +454,27 @@"setup": {"dist/agent-3d/latest/agent-3d.js": "export const proof = 1;\n","dist/agent-3d/latest/agent-3d.umd.cjs": "module.exports = { proof: 1 };\n",- "dist/agent-3d/versions.json": "{\"latest\":\"0.0.0-proof\"}\n"+ "dist/agent-3d/versions.json": "{\"latest\":\"{{pkg.version}}\"}\n",+ "dist/dist-lib/agent-3d.js": {+ "fill": 1000001+ },+ "dist/dist-lib/agent-3d.umd.cjs": {+ "fill": 100001+ },+ "dist/home.html": "<!doctype html><title>home</title>\n",+ "dist/dashboard.html": "<!doctype html><title>dashboard</title>\n",+ "dist/pump-dashboard.html": "<!doctype html><title>pump</title>\n",+ "dist/dashboard-next.html": "<!doctype html><title>next</title>\n",+ "dist/create.html": "<!doctype html><title>create</title>\n",+ "dist/discover.html": "<!doctype html><title>discover</title>\n",+ "dist/chat.html": "<!doctype html><title>chat</title>\n"},"violation": {"delete": [- "dist/agent-3d/latest/agent-3d.umd.cjs"+ "dist/dist-lib/agent-3d.umd.cjs"]},- "expect": "[check-dist] MISSING"+ "expect": "MISSING: dist/dist-lib/agent-3d.umd.cjs"}},{@@ -519,13 +532,21 @@],"needs": "none","proof": {- "summary": "A page linking to a route that resolves to nothing.",+ "summary": "A route in vercel.json whose destination file was never created.","violation": {- "write": {- "pages/guard-proof-deadlink.html": "<!doctype html>\n<html lang=\"en\">\n<head><meta charset=\"utf-8\"><title>Proof</title><link rel=\"stylesheet\" href=\"/style.css\"></head>\n<body><a href=\"/guard-proof-nowhere\">go nowhere</a></body>\n</html>\n"- }+ "json": [+ {+ "file": "vercel.json",+ "pointer": "routes",+ "at": 0,+ "insert": {+ "src": "/guard-proof-dangling",+ "dest": "/guard-proof-dangling.html"+ }+ }+ ]},- "expect": "guard-proof-nowhere"+ "expect": "guard-proof-dangling"}},{@@ -685,6 +706,59 @@"kind": "live","reason": "Resolves the delegation-framework contract addresses against live chain RPC, so the values it compares only exist on-chain."}+ },+ {+ "id": "audit-overlays",+ "script": "scripts/audit-overlays.mjs",+ "npm": "audit:overlays",+ "title": "Overlapping fixed overlays",+ "protects": "No persistent floating widget can cover another one's controls.",+ "why": "Viewport-anchored UI accumulated independently: the walk companion, the corner stack, consent bars, sticky rails, the chat launcher. Each is correct alone and they compete for the same few hundred pixels. The collision only appears on the one page where both are mounted at the one viewport where they touch, which is invisible to unit tests and to whoever built either widget. Every earlier fix was a bug report plus a hand measurement plus a magic offset.",+ "stages": [+ "manual"+ ],+ "needs": "browser",+ "proof": {+ "kind": "live",+ "reason": "Drives a real Chromium over real routes at real viewports and measures painted geometry, so the input is a rendered page rather than a file a fixture could write."+ }+ },+ {+ "id": "check-runnable-docs",+ "script": "scripts/check-runnable-docs.mjs",+ "npm": "check:runnable-docs",+ "title": "Runnable doc samples still answer",+ "protects": "Every sample a reader can press Run on still returns what the doc says it returns.",+ "why": "A curl command in a tutorial can point at an endpoint renamed two quarters ago and nothing notices, because the doc still reads fine. This executes each sample through the same extractor the page uses (public/runnable-extract.js), so the doc and the check can never disagree about what the sample is.",+ "stages": [+ "manual"+ ],+ "needs": "network",+ "proof": {+ "kind": "live",+ "reason": "Executes the documented calls against the live API and compares real response statuses, so there is no offline input to mutate."+ }+ },+ {+ "id": "check-doc-media",+ "script": "scripts/check-doc-media.mjs",+ "npm": "check:doc-media",+ "title": "Doc figures match their manifest",+ "protects": "Every figure a doc points at was really captured, still matches its recipe, and carries alt text.",+ "why": "The capture pipeline can produce a correct image while the docs stay wrong: a tutorial points at a file nobody captured, a recipe outlives the doc that used it, an image gets swapped by hand so it no longer matches what the caption claims, or it ships with no alt text, which is a defect for every reader on a screen reader. None of that is visible in a diff.",+ "stages": [+ "manual"+ ],+ "needs": "none",+ "proof": {+ "summary": "A doc figure whose image file does not exist on disk.",+ "violation": {+ "write": {+ "docs/guard-proof-media.md": "# Proof fixture\n\n\n"+ }+ },+ "expect": "guard-proof"+ }}],"exempt": [diff --git a/package.json b/package.jsonindex 7f991ec88..c78d31087 100644--- a/package.json+++ b/package.json@@ -102,7 +102,7 @@]},"scripts": {- "postinstall": "(node scripts/build-cache.mjs check agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json || (npm run build --prefix agent-payments-sdk && node scripts/build-cache.mjs stamp agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json)) && (node scripts/build-cache.mjs check solana-agent-sdk solana-agent-sdk/src solana-agent-sdk/package.json || (npm run build:dist --prefix solana-agent-sdk && node scripts/build-cache.mjs stamp solana-agent-sdk solana-agent-sdk/src solana-agent-sdk/package.json)) && (node scripts/build-cache.mjs check walk-sdk walk-sdk/src walk-sdk/package.json || (npm run build --prefix walk-sdk && node scripts/build-cache.mjs stamp walk-sdk walk-sdk/src walk-sdk/package.json)) && (node scripts/fix-pump-sdk-esm.mjs & node scripts/fix-x402-extensions-esm.mjs & node scripts/fix-zauth-sdk-solana-esm.mjs & node scripts/fix-colyseus-storage.mjs & node scripts/fix-colyseus-send.mjs & node scripts/fix-rapier-init-warning.mjs & node scripts/copy-three-decoders.mjs & node scripts/setup-claude-skills.mjs & node scripts/setup-git-hooks.mjs & wait)",+ "postinstall": "(node scripts/build-cache.mjs check agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json || (npm run build --prefix agent-payments-sdk && node scripts/build-cache.mjs stamp agent-payments-sdk agent-payments-sdk/src agent-payments-sdk/package.json)) && (node scripts/build-cache.mjs check solana-agent-sdk solana-agent-sdk/src solana-agent-sdk/package.json || (npm run build:dist --prefix solana-agent-sdk && node scripts/build-cache.mjs stamp solana-agent-sdk solana-agent-sdk/src solana-agent-sdk/package.json)) && (node scripts/build-cache.mjs check walk-sdk walk-sdk/src walk-sdk/package.json || (npm run build --prefix walk-sdk && node scripts/build-cache.mjs stamp walk-sdk walk-sdk/src walk-sdk/package.json)) && (node scripts/fix-pump-sdk-esm.mjs & node scripts/fix-x402-extensions-esm.mjs & node scripts/fix-zauth-sdk-solana-esm.mjs & node scripts/fix-colyseus-storage.mjs & node scripts/fix-colyseus-send.mjs & node scripts/fix-rapier-init-warning.mjs & node scripts/copy-three-decoders.mjs & node scripts/setup-claude-skills.mjs & node scripts/setup-git-hooks.mjs & node scripts/build-docs-search-index.mjs & wait)","setup": "node scripts/setup-dev.mjs","dev": "vite --port 3000","dev:multi": "npm run dev --prefix multiplayer",@@ -111,8 +111,13 @@"dev:lib": "TARGET=lib vite","presence": "node scripts/three-ws-presence.mjs","build:examples": "node scripts/build-examples-index.mjs && node scripts/mirror-examples-index.mjs",+ "build:docs-search": "node scripts/build-docs-search-index.mjs",+ "check:docs-search": "node scripts/build-docs-search-index.mjs --check","build:pages": "node scripts/build-page-index.mjs","build:guards": "node scripts/build-guards.mjs",+ "build:tour-atlas": "node scripts/build-tour-atlas.mjs",+ "tour:atlas": "node scripts/capture-tour-atlas.mjs",+ "tour:atlas:health": "node scripts/capture-tour-atlas.mjs --health","build:discovery": "node scripts/build-discovery-cards.mjs","build:openai-cards": "node scripts/render-openai-social-cards.mjs","build:brand-assets": "node scripts/render-brand-assets.mjs",@@ -143,12 +148,14 @@"test:mcp": "node scripts/test-mcp-all.mjs","audit:pages": "node scripts/audit-page-index.mjs --strict","audit:docs": "node scripts/audit-docs.mjs",+ "docs:freshness": "node scripts/doc-freshness.mjs",+ "check:docs-freshness": "node scripts/doc-freshness.mjs --check","tutorials:media": "node scripts/capture-tutorial-media.mjs","tutorials:media:check": "node scripts/capture-tutorial-media.mjs --check",- "audit:routes": "node scripts/verify-routes.mjs",+ "audit:routes": "node scripts/verify-routes.mjs --strict","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 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",+ "gate": "npm run check:conflicts && npm run check:claude && npm run check:cron-syntax && 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","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",@@ -157,6 +164,7 @@"audit:hidden-guard": "node scripts/audit-hidden-guard.mjs","audit:tokens": "node scripts/audit-token-drift.mjs","audit:guards": "node scripts/audit-guards.mjs",+ "audit:tour-atlas": "node scripts/build-tour-atlas.mjs --check","audit:console": "node scripts/audit-console.mjs","audit:links": "node scripts/audit-links.mjs","audit:rig-coverage": "node scripts/audit-rig-coverage.mjs",@@ -179,12 +187,14 @@"triage:gcp": "node scripts/gcp-triage.mjs","snapshot": "node scripts/page-snapshot.mjs","build:news": "node scripts/build-news.mjs",- "prebuild": "node scripts/copy-three-decoders.mjs && (node scripts/build-news.mjs & node scripts/build-skill-metadata.mjs & node scripts/build-local-skill-packs.mjs & node scripts/build-discovery-cards.mjs & node scripts/build-guards.mjs & node scripts/build-mcp-catalog.mjs & npm run build:examples & npm run build:club-assets & npm run build:walk-environments & wait) && node scripts/inject-blog-seo.mjs --write && node scripts/inject-hidden-guard.mjs --write && (node scripts/build-page-index.mjs && node scripts/audit-page-index.mjs --strict && node scripts/audit-empty-handlers.mjs && node scripts/audit-hidden-guard.mjs) && node scripts/i18n-annotate.mjs --apply --pages=\"public/news/*.html\" && node scripts/inject-seo-meta.mjs --write && node scripts/inject-theme-boot.mjs --write",+ "prebuild": "node scripts/copy-three-decoders.mjs && (node scripts/build-news.mjs & node scripts/build-skill-metadata.mjs & node scripts/build-local-skill-packs.mjs & node scripts/build-discovery-cards.mjs & node scripts/build-guards.mjs & node scripts/build-atlas-index.mjs & node scripts/build-mcp-catalog.mjs & npm run build:examples & npm run build:docs-search & npm run build:club-assets & npm run build:walk-environments & wait) && node scripts/inject-blog-seo.mjs --write && node scripts/inject-hidden-guard.mjs --write && (node scripts/build-page-index.mjs && node scripts/audit-page-index.mjs --strict && node scripts/audit-empty-handlers.mjs && node scripts/audit-hidden-guard.mjs) && node scripts/i18n-annotate.mjs --apply --pages=\"public/news/*.html\" && node scripts/inject-seo-meta.mjs --write && node scripts/inject-theme-boot.mjs --write","seo:meta": "node scripts/inject-blog-seo.mjs --write && node scripts/build-page-index.mjs && node scripts/inject-seo-meta.mjs --write",- "build": "NODE_OPTIONS='--no-deprecation --max-old-space-size=6144' vite build && node scripts/strip-sw-from-embeds.mjs && node scripts/inject-tour-boot.mjs",+ "build": "NODE_OPTIONS='--no-deprecation --max-old-space-size=6144' vite build && node scripts/strip-sw-from-embeds.mjs && node scripts/inject-tour-boot.mjs && node scripts/inject-atlas.mjs","build:wasm": "PATH=\"$HOME/.cargo/bin:$PATH\" RUSTFLAGS='-C target-feature=+simd128' wasm-pack build crates/vanity-grinder --target web --release --out-dir ../../src/solana/vanity/wasm && printf '%s\\n' '# wasm-pack writes a default `*` gitignore that excludes everything.' '# Override it: the generated files in this directory ARE checked in so the' '# app builds without requiring a Rust toolchain at install time. Run' '# `npm run build:wasm` after editing /crates/vanity-grinder/src/lib.rs to' '# refresh these artifacts.' '!*' > src/solana/vanity/wasm/.gitignore",- "build:animations": "node scripts/build-animations.mjs && node scripts/sync-animation-registry.mjs",+ "build:animations": "node scripts/build-animations.mjs && node scripts/sync-animation-registry.mjs && node scripts/build-motion-signatures.mjs","sync:animation-registry": "node scripts/sync-animation-registry.mjs",+ "build:motion-signatures": "node scripts/build-motion-signatures.mjs",+ "audit:motion": "node scripts/build-motion-signatures.mjs --check","convert:fbx": "node scripts/fbx-to-glb.mjs","build:canonical-rest": "node scripts/build-canonical-rest.mjs","build:sign-goldens": "node scripts/build-sign-goldens.mjs",@@ -294,7 +304,10 @@"check:conflicts": "node scripts/check-merge-conflicts.mjs","check:browser-graph": "node scripts/check-browser-graph.mjs","prove:guards": "node scripts/prove-guards.mjs",- "capture:docs-world": "node scripts/capture-docs-media.mjs"+ "capture:docs-world": "node scripts/capture-docs-media.mjs",+ "check:runnable-docs": "node scripts/check-runnable-docs.mjs",+ "capture:doc-media": "node scripts/capture-doc-media.mjs",+ "check:doc-media": "node scripts/check-doc-media.mjs"},"dependencies": {"@0xsplits/splits-sdk": "^6.5.0",diff --git a/pages/inspect.html b/pages/inspect.htmlindex d937f6fd3..93d9ba598 100644--- a/pages/inspect.html+++ b/pages/inspect.html@@ -17,7 +17,7 @@<style>:root {--ins-pass: #2fbf71;- --ins-fail: #f87171;+ --ins-fail: var(--danger);--ins-line: rgba(255, 255, 255, 0.09);--ins-panel: rgba(255, 255, 255, 0.032);--ins-ink-2: rgba(255, 255, 255, 0.58);@@ -103,11 +103,14 @@@media (max-width: 940px) { .ins-main { grid-template-columns: 1fr; } }.ins-stage {- position: relative; border-radius: 18px; border: 1px solid var(--ins-line);+ border-radius: 18px; border: 1px solid var(--ins-line);background: radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, 0.11), transparent 62%), var(--ins-panel);aspect-ratio: 1 / 1; overflow: hidden; position: sticky; top: 1.25rem;}- @media (max-width: 940px) { .ins-stage { position: static; aspect-ratio: 4 / 3; } }+ /* `relative`, never `static`: the hint, the error note and the busy overlay+ are absolutely positioned inside the stage, and `static` would remove+ their containing block and let them escape over the toolbar. */+ @media (max-width: 940px) { .ins-stage { position: relative; aspect-ratio: 4 / 3; } }#ins-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.5s ease; }.ins-stage.has-model #ins-canvas { opacity: 1; }.ins-stage-empty {@@ -190,6 +193,22 @@.ins-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }</style>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:type" content="website">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:locale" content="en_US">+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Model+Inspector&d=Run+the+exact+quality+gate+three.ws+applies+to+its+own+catalog+against+any+.glb%2C+in+your+browser.+Nothing+is+uploaded.+Per-rule+verdict%2C+what+was+measured&p=%2Finspect">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="Model Inspector — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Model Inspector · three.ws">+ <meta name="twitter:description" content="Run the exact quality gate three.ws applies to its own catalog against any .glb, in your browser. Nothing is uploaded. Per-rule verdict, what was measured against each bound, and the fix for every failure.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=Model+Inspector&d=Run+the+exact+quality+gate+three.ws+applies+to+its+own+catalog+against+any+.glb%2C+in+your+browser.+Nothing+is+uploaded.+Per-rule+verdict%2C+what+was+measured&p=%2Finspect">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Model Inspector","description":"Run the exact quality gate three.ws applies to its own catalog against any .glb, in your browser. Nothing is uploaded. Per-rule verdict, what was measured against each bound, and the fix for every failure.","url":"https://three.ws/inspect","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Model+Inspector&d=Run+the+exact+quality+gate+three.ws+applies+to+its+own+catalog+against+any+.glb%2C+in+your+browser.+Nothing+is+uploaded.+Per-rule+verdict%2C+what+was+measured&p=%2Finspect"}]}</script></head><body><div class="ins-wrap">diff --git a/public/guards.json b/public/guards.jsonindex 2d5abdfc6..3f448410a 100644--- a/public/guards.json+++ b/public/guards.json@@ -45,7 +45,17 @@"gate","build:gcp"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A staged source file carrying an unresolved conflict marker.",+ "stage": true,+ "violation": {+ "write": {+ "src/guard-proof-conflict.js": "export const side = 'resolved';\n<<<<<<< HEAD\nexport const owner = 'ours';\n=======\nexport const owner = 'theirs';\n>>>>>>> feature\n"+ }+ },+ "expect": "src/guard-proof-conflict.js"+ }},{"id": "check-claude-md",@@ -57,7 +67,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "CLAUDE.md telling an agent to run an npm script that does not exist.",+ "violation": {+ "append": {+ "CLAUDE.md": "\n\nProof fixture: verify the toolchain with `npm run guard-proof-nonexistent`.\n"+ }+ },+ "expect": "guard-proof-nonexistent"+ }},{"id": "check-rules",@@ -69,7 +88,16 @@"stages": ["pre-push"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A new source file whose added lines break a CLAUDE.md hard rule.",+ "violation": {+ "write": {+ "src/guard-proof-rule.js": "// TODO: wire this up later\nexport function proofFixture() {\n\treturn null;\n}\n"+ }+ },+ "expect": "src/guard-proof-rule.js"+ }},{"id": "check-cron-drift",@@ -85,7 +113,11 @@"gate","manual"],- "needs": "gcloud"+ "needs": "gcloud",+ "proof": {+ "kind": "live",+ "reason": "Compares the crons declared in vercel.json against the jobs actually deployed to Cloud Scheduler, so it needs an authenticated gcloud session and the live project. There is nothing offline to mutate."+ }},{"id": "audit-page-index",@@ -98,7 +130,24 @@"prebuild","gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A public page route in vercel.json that no data/pages.json entry documents.",+ "violation": {+ "json": [+ {+ "file": "vercel.json",+ "pointer": "routes",+ "at": 0,+ "insert": {+ "src": "/guard-proof-orphan",+ "dest": "/guard-proof-orphan.html"+ }+ }+ ]+ },+ "expect": "guard-proof-orphan"+ }},{"id": "check-pages",@@ -110,7 +159,20 @@"stages": ["build:gcp"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A page advertised in data/pages.json with no built file behind it.",+ "setup": {+ "data/pages.json": "{\n\t\"site\": {\n\t\t\"base\": \"https://three.ws\"\n\t},\n\t\"sections\": [\n\t\t{\n\t\t\t\"id\": \"main\",\n\t\t\t\"title\": \"Main\",\n\t\t\t\"description\": \"Proof fixture section.\",\n\t\t\t\"pages\": [\n\t\t\t\t{\n\t\t\t\t\t\"path\": \"/guards\",\n\t\t\t\t\t\"title\": \"Guards\",\n\t\t\t\t\t\"description\": \"Proof fixture page.\",\n\t\t\t\t\t\"priority\": 0.5,\n\t\t\t\t\t\"changefreq\": \"weekly\",\n\t\t\t\t\t\"added\": \"2026-07-31\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t]\n}\n",+ "dist/guards.html": "<!doctype html><title>guards</title>\n"+ },+ "violation": {+ "delete": [+ "dist/guards.html"+ ]+ },+ "expect": "not built into dist/"+ }},{"id": "verify-routes",@@ -122,7 +184,22 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "Deleting the route that serves a catalogued page, so its pretty URL 404s.",+ "violation": {+ "json": [+ {+ "file": "vercel.json",+ "pointer": "routes",+ "removeWhere": {+ "src": "/guards/?"+ }+ }+ ]+ },+ "expect": "/guards"+ }},{"id": "audit-empty-handlers",@@ -135,7 +212,16 @@"prebuild","gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "An API file that is routable but exports nothing, so it can never serve a response.",+ "violation": {+ "write": {+ "api/guard-proof-empty.js": "\n"+ }+ },+ "expect": "api/guard-proof-empty.js"+ }},{"id": "audit-hidden-guard",@@ -148,7 +234,16 @@"prebuild","gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A product page that links no shared stylesheet, so [hidden] never hides anything.",+ "violation": {+ "write": {+ "pages/guard-proof-unguarded.html": "<!doctype html>\n<html lang=\"en\">\n<head><meta charset=\"utf-8\"><title>Proof</title></head>\n<body><div hidden class=\"overlay\">covers everything</div></body>\n</html>\n"+ }+ },+ "expect": "guard-proof-unguarded.html"+ }},{"id": "audit-docs",@@ -160,7 +255,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A doc whose relative link points at a file that does not exist.",+ "violation": {+ "write": {+ "docs/guard-proof-dead-link.md": "# Proof fixture\n\nSee [the missing reference](./guard-proof-nowhere.md) for details.\n"+ }+ },+ "expect": "guard-proof-dead-link.md"+ }},{"id": "sync-tutorial-pages",@@ -172,7 +276,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A tutorial markdown file that no manifest entry points at, so nothing can reach it.",+ "violation": {+ "write": {+ "docs/tutorials/guard-proof-orphan.md": "# Proof fixture tutorial\n\nThis file exists on disk and in no index.\n"+ }+ },+ "expect": "guard-proof-orphan"+ }},{"id": "audit-mcp-catalog",@@ -184,7 +297,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A new MCP tool landing without regenerating the public catalog.",+ "violation": {+ "write": {+ "api/_mcp/tools/guard-proof-catalog.js": "export const guardProofTool = {\n\tname: 'guard_proof_catalog',\n\tdescription: 'Proof fixture tool used only inside the guard sandbox.',\n\tinputSchema: { type: 'object', properties: {}, additionalProperties: false },\n\tannotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },\n};\n"+ }+ },+ "expect": "public/mcp-catalog.json is stale"+ }},{"id": "audit-x402-catalog",@@ -196,7 +318,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A paid x402 endpoint that no buyer can find, because the catalog never mentions it.",+ "violation": {+ "write": {+ "api/x402/guard-proof-endpoint.js": "export default async function handler(req, res) {\n\tres.status(200).json({ ok: true });\n}\n"+ }+ },+ "expect": "guard-proof-endpoint"+ }},{"id": "audit-mcp-manifests",@@ -208,7 +339,20 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A registry manifest whose description exceeds the 100-character schema limit.",+ "violation": {+ "json": [+ {+ "file": "server.json",+ "pointer": "description",+ "set": "A deliberately overlong registry description used by the guard proof sandbox to exceed the one hundred character schema limit imposed by the registry."+ }+ ]+ },+ "expect": "[audit:mcp]"+ }},{"id": "audit-mcp-golden",@@ -220,7 +364,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A tool contract appearing on the wire without being declared in the golden fixture.",+ "violation": {+ "write": {+ "api/_mcp/tools/guard-proof-golden.js": "export const guardProofGoldenTool = {\n\tname: 'guard_proof_golden',\n\tdescription: 'Proof fixture tool used only inside the guard sandbox.',\n\tinputSchema: { type: 'object', properties: {}, additionalProperties: false },\n\tannotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },\n};\n"+ }+ },+ "expect": "[audit:mcp-golden]"+ }},{"id": "audit-mcp-safety",@@ -232,7 +385,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A tool shipping with no safety annotations at all, so a client cannot judge it.",+ "violation": {+ "write": {+ "api/_mcp/tools/guard-proof-safety.js": "export const guardProofSafetyTool = {\n\tname: 'guard_proof_safety',\n\tdescription: 'Proof fixture tool used only inside the guard sandbox.',\n\tinputSchema: { type: 'object', properties: {}, additionalProperties: false },\n\tasync handler() {\n\t\treturn { ok: true };\n\t},\n};\n"+ }+ },+ "expect": "no annotations"+ }},{"id": "audit-token-drift",@@ -244,7 +406,16 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A token-covered page hardcoding a hex that is literally a design token.",+ "violation": {+ "write": {+ "pages/guard-proof-token.html": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"><title>Proof</title>\n<link rel=\"stylesheet\" href=\"/style.css\">\n<style>\n.proof-a { color: #4ade80; }\n.proof-b { color: #f87171; }\n</style>\n</head>\n<body><p class=\"proof-a\">fixture</p></body>\n</html>\n"+ }+ },+ "expect": "design-token drift increased"+ }},{"id": "check-browser-graph",@@ -256,7 +427,16 @@"stages": ["build:gcp"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A Node built-in reaching the browser bundle through a real import chain.",+ "violation": {+ "append": {+ "src/solana/sns.js": "\nimport { promisify } from 'node:util';\nexport const proofPromisify = promisify;\n"+ }+ },+ "expect": "node:util"+ }},{"id": "check-dist",@@ -268,7 +448,34 @@"stages": ["build:gcp"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A build that finished without producing the published embed bundle.",+ "setup": {+ "dist/agent-3d/latest/agent-3d.js": "export const proof = 1;\n",+ "dist/agent-3d/latest/agent-3d.umd.cjs": "module.exports = { proof: 1 };\n",+ "dist/agent-3d/versions.json": "{\"latest\":\"{{pkg.version}}\"}\n",+ "dist/dist-lib/agent-3d.js": {+ "fill": 1000001+ },+ "dist/dist-lib/agent-3d.umd.cjs": {+ "fill": 100001+ },+ "dist/home.html": "<!doctype html><title>home</title>\n",+ "dist/dashboard.html": "<!doctype html><title>dashboard</title>\n",+ "dist/pump-dashboard.html": "<!doctype html><title>pump</title>\n",+ "dist/dashboard-next.html": "<!doctype html><title>next</title>\n",+ "dist/create.html": "<!doctype html><title>create</title>\n",+ "dist/discover.html": "<!doctype html><title>discover</title>\n",+ "dist/chat.html": "<!doctype html><title>chat</title>\n"+ },+ "violation": {+ "delete": [+ "dist/dist-lib/agent-3d.umd.cjs"+ ]+ },+ "expect": "MISSING: dist/dist-lib/agent-3d.umd.cjs"+ }},{"id": "audit-deploy-artifacts",@@ -280,7 +487,17 @@"stages": ["manual"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A symlink committed to the index, which the deploy bundler cannot resolve.",+ "stage": true,+ "violation": {+ "link": {+ "data/guard-proof-link.md": "../README.md"+ }+ },+ "expect": "guard-proof-link.md"+ }},{"id": "check-gcloudignore",@@ -292,7 +509,16 @@"stages": ["manual"],- "needs": "gcloud"+ "needs": "gcloud",+ "proof": {+ "summary": "A missing .gcloudignore, which silently hands the upload set back to .gitignore.",+ "violation": {+ "delete": [+ ".gcloudignore"+ ]+ },+ "expect": "ignore file not found"+ }},{"id": "audit-links",@@ -304,7 +530,24 @@"stages": ["manual"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A route in vercel.json whose destination file was never created.",+ "violation": {+ "json": [+ {+ "file": "vercel.json",+ "pointer": "routes",+ "at": 0,+ "insert": {+ "src": "/guard-proof-dangling",+ "dest": "/guard-proof-dangling.html"+ }+ }+ ]+ },+ "expect": "guard-proof-dangling"+ }},{"id": "audit-console",@@ -316,7 +559,11 @@"stages": ["manual"],- "needs": "browser"+ "needs": "browser",+ "proof": {+ "kind": "live",+ "reason": "Drives a real browser over the live page set and reads the console, so it needs Playwright and a running server. A static fixture cannot produce a runtime console error."+ }},{"id": "audit-image-loading",@@ -328,7 +575,16 @@"stages": ["manual"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A JS-rendered image with no loading attribute, which fetches eagerly off-screen.",+ "violation": {+ "write": {+ "src/guard-proof-img.js": "export function proofThumb(url) {\n\treturn `<img src=\"${url}\" alt=\"proof\">`;\n}\n"+ }+ },+ "expect": "guard-proof-img.js"+ }},{"id": "audit-garments",@@ -340,7 +596,11 @@"stages": ["manual"],- "needs": "network"+ "needs": "network",+ "proof": {+ "kind": "live",+ "reason": "Fetches every published garment asset over the network and inspects the returned GLB, so there is no offline input to mutate."+ }},{"id": "audit-rig-coverage",@@ -352,7 +612,11 @@"stages": ["manual"],- "needs": "credentials"+ "needs": "credentials",+ "proof": {+ "kind": "live",+ "reason": "Loads real avatar rigs from production storage and retargets clips onto them, which needs live credentials and the model bucket."+ }},{"id": "audit-service-wallets",@@ -364,7 +628,11 @@"stages": ["manual"],- "needs": "credentials"+ "needs": "credentials",+ "proof": {+ "kind": "live",+ "reason": "Reads live balances for the service wallets over RPC using the production keys in .env."+ }},{"id": "audit-wallet-flows",@@ -376,7 +644,11 @@"stages": ["manual"],- "needs": "credentials"+ "needs": "credentials",+ "proof": {+ "kind": "live",+ "reason": "Reconstructs on-chain transfer history for the fleet wallets from live RPC, so it has no offline input."+ }},{"id": "check-relayer-balances",@@ -388,7 +660,11 @@"stages": ["manual"],- "needs": "credentials"+ "needs": "credentials",+ "proof": {+ "kind": "live",+ "reason": "Queries the funded relayer accounts over RPC and compares them against the operating floor, which only exists on-chain."+ }},{"id": "audit-guards",@@ -400,7 +676,20 @@"stages": ["gate"],- "needs": "none"+ "needs": "none",+ "proof": {+ "summary": "A registry entry naming a guard script that is not in the repository.",+ "violation": {+ "json": [+ {+ "file": "data/guards.json",+ "pointer": "guards.0.script",+ "set": "scripts/guard-proof-missing.mjs"+ }+ ]+ },+ "expect": "scripts/guard-proof-missing.mjs"+ }},{"id": "check-erc7710-addresses",@@ -412,7 +701,64 @@"stages": ["manual"],- "needs": "network"+ "needs": "network",+ "proof": {+ "kind": "live",+ "reason": "Resolves the delegation-framework contract addresses against live chain RPC, so the values it compares only exist on-chain."+ }+ },+ {+ "id": "audit-overlays",+ "script": "scripts/audit-overlays.mjs",+ "npm": "audit:overlays",+ "title": "Overlapping fixed overlays",+ "protects": "No persistent floating widget can cover another one's controls.",+ "why": "Viewport-anchored UI accumulated independently: the walk companion, the corner stack, consent bars, sticky rails, the chat launcher. Each is correct alone and they compete for the same few hundred pixels. The collision only appears on the one page where both are mounted at the one viewport where they touch, which is invisible to unit tests and to whoever built either widget. Every earlier fix was a bug report plus a hand measurement plus a magic offset.",+ "stages": [+ "manual"+ ],+ "needs": "browser",+ "proof": {+ "kind": "live",+ "reason": "Drives a real Chromium over real routes at real viewports and measures painted geometry, so the input is a rendered page rather than a file a fixture could write."+ }+ },+ {+ "id": "check-runnable-docs",+ "script": "scripts/check-runnable-docs.mjs",+ "npm": "check:runnable-docs",+ "title": "Runnable doc samples still answer",+ "protects": "Every sample a reader can press Run on still returns what the doc says it returns.",+ "why": "A curl command in a tutorial can point at an endpoint renamed two quarters ago and nothing notices, because the doc still reads fine. This executes each sample through the same extractor the page uses (public/runnable-extract.js), so the doc and the check can never disagree about what the sample is.",+ "stages": [+ "manual"+ ],+ "needs": "network",+ "proof": {+ "kind": "live",+ "reason": "Executes the documented calls against the live API and compares real response statuses, so there is no offline input to mutate."+ }+ },+ {+ "id": "check-doc-media",+ "script": "scripts/check-doc-media.mjs",+ "npm": "check:doc-media",+ "title": "Doc figures match their manifest",+ "protects": "Every figure a doc points at was really captured, still matches its recipe, and carries alt text.",+ "why": "The capture pipeline can produce a correct image while the docs stay wrong: a tutorial points at a file nobody captured, a recipe outlives the doc that used it, an image gets swapped by hand so it no longer matches what the caption claims, or it ships with no alt text, which is a defect for every reader on a screen reader. None of that is visible in a diff.",+ "stages": [+ "manual"+ ],+ "needs": "none",+ "proof": {+ "summary": "A doc figure whose image file does not exist on disk.",+ "violation": {+ "write": {+ "docs/guard-proof-media.md": "# Proof fixture\n\n\n"+ }+ },+ "expect": "guard-proof"+ }}],"exempt": [diff --git a/scripts/audit-guards.mjs b/scripts/audit-guards.mjsindex ec75dfe7a..5ddaf8bd1 100644--- a/scripts/audit-guards.mjs+++ b/scripts/audit-guards.mjs@@ -38,6 +38,8 @@ import { readFileSync, readdirSync, existsSync } from 'node:fs';import path from 'node:path';import { fileURLToPath } from 'node:url';+import { normalizeProof } from './lib/guard-proofs.mjs';+const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const read = (rel) => readFileSync(path.join(root, rel), 'utf8');@@ -48,6 +50,14 @@ const scripts = pkg.scripts || {};const failures = [];const note = (msg) => failures.push(msg);+// Prose the /guards page and docs/guards.md render verbatim. It is held to the+// CLAUDE.md typography rule here rather than by scripts/check-rules.mjs, which+// skips this file: the proof fixtures beside this prose must contain the banned+// patterns verbatim in order to prove the guards catch them, so a line-level+// scan of the registry reports the evidence as the offense. Splitting it this+// way keeps the reader-facing text under the rule and the fixtures exempt.+const prose = [];+// The stage a guard claims maps to a concrete place its name must appear.// `prebuild` runs raw `node scripts/x.mjs` calls rather than npm scripts, so it// is matched on the script path; the rest are npm chains.@@ -97,6 +107,17 @@ for (const g of registry.guards || []) {if (!g[field] || !String(g[field]).trim()) {note(`${where} is missing \`${field}\`, which /guards and docs/guards.md both render`);}+ prose.push([`${where} \`${field}\``, g[field]]);+ }++ // Every guard states the violation it must reject. Without one the registry+ // entry is an unverifiable claim, which is the exact thing+ // scripts/prove-guards.mjs exists to eliminate.+ try {+ const proof = normalizeProof(g);+ prose.push([`${where} proof ${proof.kind === 'live' ? 'reason' : 'summary'}`, proof.summary ?? proof.reason]);+ } catch (err) {+ note(`${where}: ${err.message}. Every guard must declare the violation it rejects (see docs/guards.md).`);}const stages = g.stages || [];diff --git a/tests/fixtures/mcp-golden-tools.json b/tests/fixtures/mcp-golden-tools.jsonindex 8e153134f..ef834f606 100644--- a/tests/fixtures/mcp-golden-tools.json+++ b/tests/fixtures/mcp-golden-tools.json@@ -449,6 +449,34 @@"schemaHash": "f98dc82b28e7"}],+ "api/_mcp/tools/sign.js": [+ {+ "name": "list_sign_vocabulary",+ "title": "List the ASL vocabulary",+ "descHead": "List every word three.ws avatars have a real American Sign Language sign",+ "descHash": "45de605cfaef",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "schemaHash": "bf8afb195b69"+ },+ {+ "name": "sign_text",+ "title": "Sign text in ASL",+ "descHead": "Compile English text into one continuous American Sign Language performa",+ "descHash": "6636359a5774",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "schemaHash": "c9372440542d"+ }+ ],"api/_mcp/tools/solana.js": [{"name": "solana_agent_attestations",diff --git a/vite.config.js b/vite.config.jsindex de3626919..14631252e 100644--- a/vite.config.js+++ b/vite.config.js@@ -274,6 +274,10 @@ const appConfig = {'three/addons/controls/OrbitControls.js','three/addons/environments/RoomEnvironment.js','three/addons/libs/meshopt_decoder.module.js',+ // Loaded lazily by src/shared/cinematic-render.js. Without it here the+ // dev optimizer discovers it mid-session and restarts the page under+ // whichever viewer just asked for an HDRI.+ 'three/addons/loaders/RGBELoader.js',],exclude: ['@three-ws/agent-payments'],},@@ -361,10 +365,16 @@ const appConfig = {'what-is': resolve(__dirname, 'pages/what-is.html'),atlas: resolve(__dirname, 'pages/atlas.html'),tour: resolve(__dirname, 'pages/tour.html'),+ 'tour-atlas': resolve(__dirname, 'pages/tour-atlas.html'),concierge: resolve(__dirname, 'pages/concierge.html'),'tour-builder': resolve(__dirname, 'pages/tour-builder.html'),'agent-identities': resolve(__dirname, 'pages/agent-identities.html'),'mcp-tools': resolve(__dirname, 'pages/mcp-tools.html'),+ 'render-lab': resolve(__dirname, 'pages/render-lab.html'),+ bundles: resolve(__dirname, 'pages/bundles.html'),+ bundles: resolve(__dirname, 'pages/bundles.html'),+ 'embed-doctor': resolve(__dirname, 'pages/embed-doctor.html'),+ crews: resolve(__dirname, 'pages/crews.html'),inspect: resolve(__dirname, 'pages/inspect.html'),pitch: resolve(__dirname, 'pages/pitch.html'),timeline: resolve(__dirname, 'pages/timeline.html'),@@ -380,6 +390,8 @@ const appConfig = {'features-agent-exchange': resolve(__dirname, 'pages/features/agent-exchange.html'),'features-deploy': resolve(__dirname, 'pages/features/deploy.html'),tutorials: resolve(__dirname, 'pages/tutorials.html'),+ walkthroughs: resolve(__dirname, 'pages/walkthroughs.html'),+ walkthrough: resolve(__dirname, 'pages/walkthrough.html'),tutorial: resolve(__dirname, 'pages/tutorial.html'),cookbook: resolve(__dirname, 'pages/cookbook.html'),recipe: resolve(__dirname, 'pages/recipe.html'),@@ -424,12 +436,14 @@ const appConfig = {genesis: resolve(__dirname, 'pages/genesis.html'),worlds: resolve(__dirname, 'pages/worlds.html'),'docs-world': resolve(__dirname, 'pages/docs-world.html'),+ 'docs-freshness': resolve(__dirname, 'pages/docs-freshness.html'),'avatar-studio': resolve(__dirname, 'pages/avatar-studio.html'),'create-review': resolve(__dirname, 'pages/create-review.html'),'import-rpm': resolve(__dirname, 'pages/import-rpm.html'),marketplace: resolve(__dirname, 'pages/marketplace.html'),'marketplace-walk': resolve(__dirname, 'pages/marketplace-walk.html'),'marketplace-analytics': resolve(__dirname, 'pages/marketplace-analytics.html'),+ conversions: resolve(__dirname, 'pages/conversions.html'),collection: resolve(__dirname, 'pages/collection.html'),// Key must NOT be `notifications` — that key at the top of this input// object is the nav-bell module (src/notifications.js), which nav.js@@ -458,6 +472,8 @@ const appConfig = {minted: resolve(__dirname, 'pages/minted.html'),creations: resolve(__dirname, 'pages/creations.html'),pulse: resolve(__dirname, 'pages/pulse.html'),+ 'economy-lab': resolve(__dirname, 'pages/economy-lab.html'),+ flow: resolve(__dirname, 'pages/flow.html'),symphony: resolve(__dirname, 'pages/symphony.html'),diorama: resolve(__dirname, 'pages/diorama.html'),'x402-revenue': resolve(__dirname, 'pages/x402-revenue.html'),@@ -600,6 +616,7 @@ const appConfig = {billing: resolve(__dirname, 'pages/billing.html'),credits: resolve(__dirname, 'pages/credits.html'),payments: resolve(__dirname, 'pages/payments.html'),+ 'pay-simulator': resolve(__dirname, 'pages/pay-simulator.html'),'x-pricing': resolve(__dirname, 'pages/x-pricing.html'),'gallery-picker': resolve(__dirname, 'pages/gallery-picker.html'),status: resolve(__dirname, 'pages/status.html'),@@ -623,6 +640,7 @@ const appConfig = {'play-arena': resolve(__dirname, 'pages/play/arena.html'),'play-ufo': resolve(__dirname, 'pages/play/ufo.html'),'play-economy': resolve(__dirname, 'pages/play/economy.html'),+ 'play-solver': resolve(__dirname, 'pages/play/solver.html'),agi: resolve(__dirname, 'pages/agi.html'),arena: resolve(__dirname, 'pages/arena.html'),'smart-money': resolve(__dirname, 'pages/smart-money.html'),@@ -1057,6 +1075,8 @@ support: resolve(__dirname, 'pages/support.html'),'/gallery-picker': resolve(root, 'pages/gallery-picker.html'),'/gallery-picker/': resolve(root, 'pages/gallery-picker.html'),'/status': resolve(root, 'pages/status.html'),+ '/atlas': resolve(root, 'pages/atlas.html'),+ '/atlas/': resolve(root, 'pages/atlas.html'),'/status/': resolve(root, 'pages/status.html'),'/marketplace': resolve(root, 'pages/marketplace.html'),'/marketplace/': resolve(root, 'pages/marketplace.html'),@@ -1095,6 +1115,8 @@ support: resolve(__dirname, 'pages/support.html'),'/creations/': resolve(root, 'pages/creations.html'),'/pulse': resolve(root, 'pages/pulse.html'),'/pulse/': resolve(root, 'pages/pulse.html'),+ '/flow': resolve(root, 'pages/flow.html'),+ '/flow/': resolve(root, 'pages/flow.html'),'/symphony': resolve(root, 'pages/symphony.html'),'/symphony/': resolve(root, 'pages/symphony.html'),'/x402-revenue': resolve(root, 'pages/x402-revenue.html'),@@ -1179,6 +1201,8 @@ support: resolve(__dirname, 'pages/support.html'),'/ca2x402/': resolve(root, 'pages/ca2x402.html'),'/activity': resolve(root, 'pages/activity.html'),'/activity/': resolve(root, 'pages/activity.html'),+ '/tour/atlas': resolve(root, 'pages/tour-atlas.html'),+ '/tour/atlas/': resolve(root, 'pages/tour-atlas.html'),'/guards': resolve(root, 'pages/guards.html'),'/guards/': resolve(root, 'pages/guards.html'),'/pipeline': resolve(root, 'pages/pipeline.html'),@@ -1424,6 +1448,8 @@ support: resolve(__dirname, 'pages/support.html'),'/docs/': resolve(root, 'docs/index.html'),'/docs/world': resolve(root, 'pages/docs-world.html'),'/docs/world/': resolve(root, 'pages/docs-world.html'),+ '/docs/freshness': resolve(root, 'pages/docs-freshness.html'),+ '/docs/freshness/': resolve(root, 'pages/docs-freshness.html'),'/bazaar': resolve(root, 'public/bazaar.html'),'/bazaar/': resolve(root, 'public/bazaar.html'),'/labs': resolve(root, 'pages/labs.html'),@@ -1432,6 +1458,10 @@ support: resolve(__dirname, 'pages/support.html'),'/quality-bench/': resolve(root, 'pages/quality-bench.html'),'/inspect': resolve(root, 'pages/inspect.html'),'/inspect/': resolve(root, 'pages/inspect.html'),+ '/render-lab': resolve(root, 'pages/render-lab.html'),+ '/render-lab/': resolve(root, 'pages/render-lab.html'),+ '/bundles': resolve(root, 'pages/bundles.html'),+ '/bundles/': resolve(root, 'pages/bundles.html'),'/search': resolve(root, 'pages/search.html'),'/search/': resolve(root, 'pages/search.html'),'/rankings': resolve(root, 'pages/rankings.html'),@@ -1650,6 +1680,10 @@ support: resolve(__dirname, 'pages/support.html'),// /p/<slug> → public Launchpad Studio renderer (hydrates from /api/launchpad/get)else if (!filePath && /^\/p\/[a-z0-9-]+\/?$/.test(path))filePath = resolve(root, 'public/p/index.html');+ // /pay/simulator → spend policy dry run. Checked before the /pay/c+ // checkout rule, mirroring the order in vercel.json.+ else if (!filePath && /^\/pay\/simulator\/?$/.test(path))+ filePath = resolve(root, 'pages/pay-simulator.html');// /pay/c/<slug> → hosted x402 checkout page (hydrates from /api/x402-skus?slug=)else if (!filePath && /^\/pay\/c\/[a-z0-9][a-z0-9-]+\/?$/.test(path))filePath = resolve(root, 'public/pay/c/index.html');@@ -2039,6 +2073,39 @@ support: resolve(__dirname, 'pages/support.html'),},},},+ {+ // Atlas: the site-wide Cmd+K palette. A global shortcut has to exist on+ // every page or it is not global, and there is no shared layout across the+ // 250+ standalone entry points to hang it off, so it gets injected here.+ // scripts/inject-atlas.mjs re-walks dist/ after the build and asserts the+ // coverage, because this hook has historically missed pages depending on+ // plugin ordering (see inject-tour-boot.mjs). Embeds and the nav/footer+ // FRAGMENTS are excluded for the same reasons as the view-transitions+ // plugin below: never steal Cmd+K inside someone else's page, and never+ // put a script tag in a string that gets assigned via innerHTML.+ name: 'three-ws-atlas',+ transformIndexHtml: {+ order: 'pre',+ handler(_html, ctx) {+ const EXCLUDED = new Set([+ 'widget.html',+ 'embed.html',+ 'avatar-embed.html',+ 'agent-embed.html',+ 'a-embed.html',+ 'agent-token-page.html',+ 'nav.html',+ 'footer.html',+ ]);+ const filename = (ctx.filename || ctx.path || '')+ .replace(/\\/g, '/')+ .split('/')+ .pop();+ if (EXCLUDED.has(filename)) return [];+ return [{ tag: 'script', attrs: { type: 'module', src: '/atlas.js' }, injectTo: 'body' }];+ },+ },+ },{// Feature Tour boot gate — injected on every Vite-processed page so the// guided tour can re-hydrate after it navigates (location.assign) to ANY