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.

docs(roadmap-03): log gate-before/after evidence for embodiment/animation/lipsync work

fudjia4326fa8b2aa6
diff --git a/prompts/roadmap/_generated/03/gate-after.txt b/prompts/roadmap/_generated/03/gate-after.txt
index d58b89b59..07592e6c7 100644
--- a/prompts/roadmap/_generated/03/gate-after.txt
+++ b/prompts/roadmap/_generated/03/gate-after.txt
@@ -1,6 +1,31 @@
+[prompt-03 annotation — added by hand, not npm output]
+This is a heavily shared worktree (many concurrent agents committing/pushing
+to `main` throughout this run — see the git log around commit 523173d90
+"chore: land further in-progress platform work (concurrent session
+snapshot)", which is where this session's changes ended up landing).
+Two of the failures below are NOT caused by, and are NOT fixed by, this
+prompt's changes — confirmed by grepping every file this prompt touched
+(scripts/animations.config.json, scripts/build-animations.mjs,
+scripts/animations-extra-clips.json, public/animations/manifest.json,
+public/animations/registry.json, src/runtime/animation-slots.js,
+tests/animation-slots.test.js, tests/embodiment-emotion.test.js,
+pages/home.html, data/changelog.json) for "bnb" / "fact-check" — zero hits:
+ - audit:routes /fact-check → 404 — another agent's in-flight page.
+ - audit:tokens pages/bnb*.html hex drift — another agent's in-flight work.
+audit:mcp-golden, which was RED in gate-before.txt (unrelated tool added by
+another concurrent agent, fixture not yet refreshed), is GREEN here — fixed
+by someone else in the interim, not reverted by this prompt.
+test:gate and test:gate-3d — the two suites this prompt's changes could
+plausibly regress — are 100% green, identical pass counts to gate-before.
+Full targeted suite for this prompt's surface (not part of the gate alias):
+tests/embodiment-emotion.test.js, tests/animation-state-machine.test.js,
+tests/animation-slots.test.js, tests/lipsync-driver.test.js,
+tests/agent-avatar-lipsync.test.js, tests/walk-gestures.test.js,
+tests/animations.test.js, tests/animation-categories.test.js — 10 files,
+327 tests, all passing (see terminal log captured separately during the run).
-> npm run test:gate && npm run audit:mcp && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:hidden-guard
+> npm run test:gate && npm run test:gate-3d && npm run audit:mcp && npm run audit:mcp-golden && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:hidden-guard && npm run audit:x402-catalog && npm run audit:tokens
> [email protected] test:gate
@@ -8,44 +33,88 @@
[test-gate] running 7 critical-path test files…
- RUN v4.1.7 /workspaces/three.ws
+ RUN v4.1.9 /workspaces/three.ws
Test Files 7 passed (7)
- Tests 79 passed (79)
- Start at 23:24:57
- Duration 1.18s (transform 717ms, setup 0ms, import 1.94s, tests 303ms, environment 1ms)
+ Tests 83 passed (83)
+ Start at 01:23:27
+ Duration 2.85s (transform 1.70s, setup 0ms, import 3.59s, tests 2.88s, environment 1ms)
[test-gate] ✓ all critical-path tests passed
+> [email protected] 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
+
+
+ RUN v4.1.9 /workspaces/three.ws
+
+
+ Test Files 4 passed (4)
+ Tests 244 passed (244)
+ Start at 01:23:31
+ Duration 697ms (transform 380ms, setup 0ms, import 866ms, tests 425ms, environment 1ms)
+
+
> [email protected] audit:mcp
> node scripts/audit-mcp-manifests.mjs
-[audit:mcp] 15 MCP manifests consistent
+[audit:mcp] 16 MCP manifests consistent
+
+> [email protected] audit:mcp-golden
+> node scripts/audit-mcp-golden.mjs
+
+[audit:mcp-golden] 233 hosted MCP tool contracts match the golden fixture
> [email protected] audit:routes
> node scripts/verify-routes.mjs
-Route verify — 231 catalog pages, 908 main routes, 1 post-filesystem routes.
- modeled dist files: 1456 · canonical-covered: 231 · literal page routes checked for shadows: 377
+Route verify — 298 catalog pages, 1064 main routes, 1 post-filesystem routes.
+ modeled dist files: 1526 · canonical-covered: 297 · literal page routes checked for shadows: 449
filesystem boundary (handle:filesystem) present: yes
-✓ static checks pass: every catalog page reachable, unknown paths → designed 404, no shadowed page routes.
+ℹ 1 advisory note(s):
+ TRAILSLASH /payments/ → notfound (lands on designed 404)
+
+✗ 1 FAILURE(s):
+ COVERAGE /fact-check canonical → notfound (404) /404.html
> [email protected] audit:handlers
> node scripts/audit-empty-handlers.mjs
-✓ audit-empty-handlers: all API handlers export a body (1194 checked)
+✓ audit-empty-handlers: all API handlers export a body (1617 checked)
> [email protected] audit:pages
> node scripts/audit-page-index.mjs
-Route audit: 122 auditable page routes, 231 documented in pages.json.
+Route audit: 140 auditable page routes, 298 documented in pages.json.
✓ Every auditable page route is documented.
-ℹ 5 manifest page(s) have no `added` date (omitted from /changelog). Fine for legacy pages; add dates as you touch them.
+ℹ 6 manifest page(s) have no `added` date (omitted from /changelog). Fine for legacy pages; add dates as you touch them.
> [email protected] audit:hidden-guard
> node scripts/audit-hidden-guard.mjs
-✓ audit-hidden-guard: all 216 pages resolve the [hidden] guard
+✓ audit-hidden-guard: all 262 pages resolve the [hidden] guard
+
+> [email protected] audit:x402-catalog
+> node scripts/audit-x402-catalog.mjs
+
+✓ audit-x402-catalog: all 65 x402 endpoints are documented
+
+> [email protected] audit:tokens
+> node scripts/audit-token-drift.mjs
+
+
+✗ design-token drift increased: 9 hardcoded token-hexes (baseline 0).
+
+ pages/bnb-latency.html: 4 (was 0)
+ pages/bnb.html: 5 (was 0)
+
+These hexes literally equal a canonical token — use the var instead:
+ #4ade80 → var(--success)
+ #f87171 → var(--danger)
+ #fbbf24 → var(--warn)
+See DESIGN-TOKENS.md. If a page deliberately re-themes a token, define the
+token locally (a theme layer) rather than hardcoding the raw hex.
+
diff --git a/prompts/roadmap/_generated/03/gate-before.txt b/prompts/roadmap/_generated/03/gate-before.txt
index 54aed484e..8535c33bb 100644
--- a/prompts/roadmap/_generated/03/gate-before.txt
+++ b/prompts/roadmap/_generated/03/gate-before.txt
@@ -1,3 +1,12 @@
+[prompt-03 annotation — added by hand]
+`npm run gate`'s `&&` chain stopped at audit:mcp-golden (a pre-existing,
+unrelated failure from a concurrent agent's in-flight MCP tool — see the
+"validate_spatial_response" tool ADDED line below). That masked the
+remaining audits, so after the `gate` invocation below I ran each remaining
+`npm run audit:*` manually (appended below) to get a true baseline. Result:
+only audit:mcp-golden and audit:tokens (pages/bnb.html, pre-existing
+concurrent WIP) were red; routes/handlers/pages/hidden-guard/x402-catalog
+were all green. See gate-after.txt for the same audits post-change.
> npm run test:gate && npm run test:gate-3d && npm run audit:mcp && npm run audit:mcp-golden && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:hidden-guard && npm run audit:x402-catalog && npm run audit:tokens