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(guards): publish guard proofs with the page that explains them

nirholas26a032f6195f
diff --git a/pages/guards.html b/pages/guards.html
index a028afcb2..9756f8f9b 100644
--- a/pages/guards.html
+++ b/pages/guards.html
@@ -18,11 +18,11 @@
<meta property="og:title" content="Repository guards · three.ws" />
<meta property="og:description" content="No CI, by necessity. Every check that protects this codebase, what it protects, and the stage it runs in." />
<meta property="og:url" content="https://three.ws/guards" />
- <meta property="og:image" content="https://three.ws/api/page-og?s=build&amp;t=Repository+guards&amp;d=Every+mechanical+check+that+protects+the+three.ws+codebase%2C+and+the+stage+each+one+runs+in.&amp;p=%2Fguards" />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=learn&amp;t=Repository+guards&amp;d=Every+mechanical+guard+that+protects+the+three.ws+codebase%2C+and+the+stage+each+one+runs+in.+This+repository+has+no+CI%2C+so+correctness+is+enforced+by+fast+local&amp;p=%2Fguards" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Repository guards · three.ws" />
<meta name="twitter:description" content="No CI, by necessity. Every check that protects this codebase, and where it runs." />
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Repository+guards&amp;d=Every+mechanical+check+that+protects+the+three.ws+codebase%2C+and+the+stage+each+one+runs+in.&amp;p=%2Fguards" />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=learn&amp;t=Repository+guards&amp;d=Every+mechanical+guard+that+protects+the+three.ws+codebase%2C+and+the+stage+each+one+runs+in.+This+repository+has+no+CI%2C+so+correctness+is+enforced+by+fast+local&amp;p=%2Fguards" />
<style>
:root {
--gd-bg: #07080c;
@@ -500,6 +500,13 @@
.gd-grid { grid-template-columns: 1fr; }
}
</style>
+
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:locale" content="en_US">
+ <meta property="og:image:alt" content="Repository guards: three.ws">
+ <meta name="twitter:site" content="@trythreews">
+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Repository guards","description":"Every mechanical guard that protects the three.ws codebase, and the stage each one runs in. This repository has no CI, so correctness is enforced by fast local checks wired into the prebuild, the gate, the deploy build, and the git pre-push hook. Filter by stage, search by command, and read the incident behind each one.","url":"https://three.ws/guards","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=learn&amp;t=Repository+guards&amp;d=Every+mechanical+guard+that+protects+the+three.ws+codebase%2C+and+the+stage+each+one+runs+in.+This+repository+has+no+CI%2C+so+correctness+is+enforced+by+fast+local&amp;p=%2Fguards"}]}</script>
</head>
<body>
<header class="site-header"><div id="nav-container"></div></header>
diff --git a/public/guard-proofs.json b/public/guard-proofs.json
new file mode 100644
index 000000000..8d025b67f
--- /dev/null
+++ b/public/guard-proofs.json
@@ -0,0 +1,354 @@
+{
+ "$comment": "Generated by scripts/prove-guards.mjs. Each result is the outcome of running the guard twice in a sandbox: once on a clean baseline, once after a declared violation. The fixtures live in data/guards.json.",
+ "generator": "scripts/prove-guards.mjs",
+ "commit": "ffa434ca0dba2d57c8f2d137d659ce583e11879c",
+ "guardCount": 34,
+ "summary": {
+ "proven": 23,
+ "liveOnly": 10,
+ "failing": 1,
+ "redBaseline": 12
+ },
+ "results": [
+ {
+ "id": "check-merge-conflicts",
+ "npm": "check:conflicts",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A staged source file carrying an unresolved conflict marker.",
+ "reason": null,
+ "evidence": "src/guard-proof-conflict.js (line 2)",
+ "ms": 29889
+ },
+ {
+ "id": "check-claude-md",
+ "npm": "check:claude",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "CLAUDE.md telling an agent to run an npm script that does not exist.",
+ "reason": null,
+ "evidence": "[check-claude] npm script `guard-proof-nonexistent` is referenced but missing from package.json",
+ "ms": 787
+ },
+ {
+ "id": "check-rules",
+ "npm": "check:rules",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A new source file whose added lines break a CLAUDE.md hard rule.",
+ "reason": null,
+ "evidence": "[check-rules] src/guard-proof-rule.js:1 [todo]",
+ "ms": 1888
+ },
+ {
+ "id": "check-cron-drift",
+ "npm": "check:cron-drift",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "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.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-page-index",
+ "npm": "audit:pages",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A public page route in vercel.json that no data/pages.json entry documents.",
+ "reason": null,
+ "evidence": "/guard-proof-orphan",
+ "ms": 752
+ },
+ {
+ "id": "check-pages",
+ "npm": "check:pages",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A page advertised in data/pages.json with no built file behind it.",
+ "reason": null,
+ "evidence": "[check-pages] /guards : not built into dist/ (missing vite input entry?)",
+ "ms": 373
+ },
+ {
+ "id": "verify-routes",
+ "npm": "audit:routes",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "Deleting the route that serves a catalogued page, so its pretty URL 404s.",
+ "reason": null,
+ "evidence": "COVERAGE /guards canonical → notfound (404) /404.html",
+ "ms": 7361
+ },
+ {
+ "id": "audit-empty-handlers",
+ "npm": "audit:handlers",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "An API file that is routable but exports nothing, so it can never serve a response.",
+ "reason": null,
+ "evidence": "api/guard-proof-empty.js: empty file",
+ "ms": 1261
+ },
+ {
+ "id": "audit-hidden-guard",
+ "npm": "audit:hidden-guard",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A product page that links no shared stylesheet, so [hidden] never hides anything.",
+ "reason": null,
+ "evidence": "pages/guard-proof-unguarded.html",
+ "ms": 1092
+ },
+ {
+ "id": "audit-docs",
+ "npm": "audit:docs",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A doc whose relative link points at a file that does not exist.",
+ "reason": null,
+ "evidence": "docs/guard-proof-dead-link.md:3 ./guard-proof-nowhere.md",
+ "ms": 7397
+ },
+ {
+ "id": "sync-tutorial-pages",
+ "npm": "check:tutorials",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A tutorial markdown file that no manifest entry points at, so nothing can reach it.",
+ "reason": null,
+ "evidence": "markdown with no manifest entry (unreachable): find-a-better-exit-policy, guard-proof-orphan",
+ "ms": 634
+ },
+ {
+ "id": "audit-mcp-catalog",
+ "npm": "audit:mcp-catalog",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A new MCP tool landing without regenerating the public catalog.",
+ "reason": null,
+ "evidence": "[audit:mcp-catalog] public/mcp-catalog.json is stale.",
+ "ms": 10652
+ },
+ {
+ "id": "audit-x402-catalog",
+ "npm": "audit:x402-catalog",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A paid x402 endpoint that no buyer can find, because the catalog never mentions it.",
+ "reason": null,
+ "evidence": "/api/x402/guard-proof-endpoint",
+ "ms": 462
+ },
+ {
+ "id": "audit-mcp-manifests",
+ "npm": "audit:mcp",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A registry manifest whose description exceeds the 100-character schema limit.",
+ "reason": null,
+ "evidence": "[audit:mcp] server.json: description is 150 chars (registry max is 100)",
+ "ms": 342
+ },
+ {
+ "id": "audit-mcp-golden",
+ "npm": "audit:mcp-golden",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A tool contract appearing on the wire without being declared in the golden fixture.",
+ "reason": null,
+ "evidence": "[audit:mcp-golden] api/_mcp/tools/guard-proof-golden.js: tool ADDED: guard_proof_golden",
+ "ms": 3106
+ },
+ {
+ "id": "audit-mcp-safety",
+ "npm": "audit:mcp-safety",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A tool shipping with no safety annotations at all, so a client cannot judge it.",
+ "reason": null,
+ "evidence": "[audit:mcp-safety] api/_mcp/tools/guard-proof-safety.js: guard_proof_safety: no annotations. destructiveHint defaults to TRUE when omitted, so this tool is advertised as destructive. Declare them explicitly.",
+ "ms": 7528
+ },
+ {
+ "id": "audit-token-drift",
+ "npm": "audit:tokens",
+ "verdict": "control-failed",
+ "baseline": "red",
+ "summary": "A token-covered page hardcoding a hex that is literally a design token.",
+ "reason": null,
+ "evidence": null,
+ "ms": 961
+ },
+ {
+ "id": "check-browser-graph",
+ "npm": "check:browser-graph",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A Node built-in reaching the browser bundle through a real import chain.",
+ "reason": null,
+ "evidence": "src/solana/sns.js imports \"node:util\"",
+ "ms": 3308
+ },
+ {
+ "id": "check-dist",
+ "npm": "check:dist",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A build that finished without producing the published embed bundle.",
+ "reason": null,
+ "evidence": "[check-dist] MISSING: dist/dist-lib/agent-3d.umd.cjs",
+ "ms": 594
+ },
+ {
+ "id": "audit-deploy-artifacts",
+ "npm": "audit:deploy",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A symlink committed to the index, which the deploy bundler cannot resolve.",
+ "reason": null,
+ "evidence": "data/guard-proof-link.md → replace with a real copy of the target",
+ "ms": 5704
+ },
+ {
+ "id": "check-gcloudignore",
+ "npm": "check:gcloudignore",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A missing .gcloudignore, which silently hands the upload set back to .gitignore.",
+ "reason": null,
+ "evidence": "FAIL: ignore file not found: /workspaces/.guard-proof-wt/.gcloudignore",
+ "ms": 1004
+ },
+ {
+ "id": "audit-links",
+ "npm": "audit:links",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A route in vercel.json whose destination file was never created.",
+ "reason": null,
+ "evidence": "✗ /guard-proof-dangling → /guard-proof-dangling.html",
+ "ms": 21355
+ },
+ {
+ "id": "audit-console",
+ "npm": "audit:console",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "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.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-image-loading",
+ "npm": "check:images",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A JS-rendered image with no loading attribute, which fetches eagerly off-screen.",
+ "reason": null,
+ "evidence": "src/guard-proof-img.js:2",
+ "ms": 1386
+ },
+ {
+ "id": "audit-garments",
+ "npm": "audit:garments",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Fetches every published garment asset over the network and inspects the returned GLB, so there is no offline input to mutate.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-rig-coverage",
+ "npm": "audit:rig-coverage",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Loads real avatar rigs from production storage and retargets clips onto them, which needs live credentials and the model bucket.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-service-wallets",
+ "npm": "audit:service-wallets",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Reads live balances for the service wallets over RPC using the production keys in .env.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-wallet-flows",
+ "npm": "audit:wallet-flows",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Reconstructs on-chain transfer history for the fleet wallets from live RPC, so it has no offline input.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "check-relayer-balances",
+ "npm": "check:relayer-balances",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Queries the funded relayer accounts over RPC and compares them against the operating floor, which only exists on-chain.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-guards",
+ "npm": "audit:guards",
+ "verdict": "proven",
+ "baseline": "clean",
+ "summary": "A registry entry naming a guard script that is not in the repository.",
+ "reason": null,
+ "evidence": "[audit-guards] guard `check-merge-conflicts` names script `scripts/guard-proof-missing.mjs`, which does not exist",
+ "ms": 473
+ },
+ {
+ "id": "check-erc7710-addresses",
+ "npm": "check:erc7710",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Resolves the delegation-framework contract addresses against live chain RPC, so the values it compares only exist on-chain.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "audit-overlays",
+ "npm": "audit:overlays",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "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.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "check-runnable-docs",
+ "npm": "check:runnable-docs",
+ "verdict": "declared-live",
+ "baseline": null,
+ "summary": null,
+ "reason": "Executes the documented calls against the live API and compares real response statuses, so there is no offline input to mutate.",
+ "evidence": null,
+ "ms": 0
+ },
+ {
+ "id": "check-doc-media",
+ "npm": "check:doc-media",
+ "verdict": "proven",
+ "baseline": "red",
+ "summary": "A doc figure whose image file does not exist on disk.",
+ "reason": null,
+ "evidence": "FAIL /docs/img/guard-proof-missing.png is referenced by docs/guard-proof-media.md but does not exist. Run: node scripts/capture-doc-media.mjs --only guard-proof-missing",
+ "ms": 1206
+ }
+ ]
+}
diff --git a/scripts/prove-guards.mjs b/scripts/prove-guards.mjs
index b73ac539f..c44501f43 100644
--- a/scripts/prove-guards.mjs
+++ b/scripts/prove-guards.mjs
@@ -270,7 +270,9 @@ if (write && !only.length && !stageFilter) {
})),
};
const out = path.join(root, 'public/guard-proofs.json');
- const body = `${JSON.stringify(payload, null, '\t')}\n`;
+ // Guard summaries quote page copy and commit subjects, and the repo bans
+ // em/en dashes in committed bytes, so scrub them at the boundary.
+ const body = `${JSON.stringify(payload, null, '\t').replace(/ [\u2013\u2014] /g, ': ').replace(/[\u2013\u2014]/g, '-')}\n`;
if ((existsSync(out) ? readFileSync(out, 'utf8') : null) !== body) {
writeFileSync(out, body);
console.log('[prove-guards] wrote public/guard-proofs.json');