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(docs): add Fable playbook for strategic implementation and operations docs(changelog): update generated timestamps and improve changelog structure fix(tokens): introduce token-drift ratchet enforcement for hardcoded values refactor(sitemap): clean up unnecessary meta tags in sitemap index

nrpo0c851bba0b53
diff --git a/DESIGN-TOKENS.md b/DESIGN-TOKENS.md
index 62953abfa..82fac6ed1 100644
--- a/DESIGN-TOKENS.md
+++ b/DESIGN-TOKENS.md
@@ -136,6 +136,19 @@ Need a value no token expresses? Add the token to `public/tokens.css` (with a
comment), then reference it — don't inline a one-off. Migrating existing
hardcoded values to tokens is tracked under **B08**.
+### Enforcement: the token-drift ratchet (B13)
+
+`npm run audit:tokens` (part of `npm run gate`) runs
+[scripts/audit-token-drift.mjs](scripts/audit-token-drift.mjs): it counts
+hardcoded hexes that literally equal a canonical token value (`#4ade80` =
+`--success`, `#f87171` = `--danger`, `#fbbf24` = `--warn`) inside `<style>`
+blocks of `pages/` files that load the token vocabulary. The count may only go
+**down** — the baseline (`scripts/audit-token-drift.baseline.json`, currently
+**0**) fails the build if a new hardcoded status hex lands. Pages that
+deliberately re-theme a status token (they define their own `--success` etc.)
+are exempt for that token; JS/canvas literals are out of scope. When you
+eliminate drift, lock it in with `node scripts/audit-token-drift.mjs --update`.
+
## Brand themes
A surface needing a distinct brand accent (e.g. IBM Carbon blue at `/ibm/*`)
diff --git a/docs/roadmap/00-README.md b/docs/roadmap/00-README.md
index e1b077e4c..090f4aaff 100644
--- a/docs/roadmap/00-README.md
+++ b/docs/roadmap/00-README.md
@@ -4,6 +4,11 @@ Each file here is a **self-contained prompt** you paste into a fresh Claude Code
Read this file once; every prompt assumes it.
+**Strategy layer:** [fable-playbook.md](fable-playbook.md) is the operating strategy
+above these prompts — how to deploy Claude Fable 5 across them, the revenue ladder,
+OSS in/out motions, and standing routines. Read it to decide *what to run next*;
+read this file to run it safely.
+
---
## The prime safety doctrine (every prompt obeys this)
diff --git a/docs/roadmap/fable-playbook.md b/docs/roadmap/fable-playbook.md
new file mode 100644
index 000000000..549e031f6
--- /dev/null
+++ b/docs/roadmap/fable-playbook.md
@@ -0,0 +1,241 @@
+# The Fable Playbook — using Claude Fable 5 to compound three.ws toward real revenue
+
+Claude Fable 5 (Anthropic's Mythos-class model, above Opus) is unusually strong at
+exactly our stack: Three.js, glTF/GLB, skeletal animation, shaders, WebGL/WebGPU,
+and long-horizon autonomous engineering across a large monorepo. This document is
+the operating strategy for converting that into shipped features, external revenue,
+and a defensible position — not a wishlist. Every play below names the real surface
+it builds on (see `STRUCTURE.md`) and the doc that governs it.
+
+Companion docs (read-order): [00-README.md](00-README.md) (roadmap prompts +
+regression gate), [REUSE-MAP.md](REUSE-MAP.md) (license-vetted OSS),
+[../x402-revenue.md](../x402-revenue.md) (how money is measured),
+[../improvement-plans/README.md](../improvement-plans/README.md).
+
+---
+
+## 1. What Fable specifically changes
+
+Be precise about the delta, because the strategy follows from it:
+
+1. **3D depth previous models lacked.** Retargeting math, IK, quaternion
+ gotchas, GPU skinning limits, shader/TSL authoring, meshopt/Draco tradeoffs,
+ gaussian splatting internals. Work that used to need a senior graphics
+ engineer — procedural animation, WebGPU migration, custom post-processing —
+ is now in reach of an agent session.
+2. **Long-horizon autonomy.** Fable runs multi-hour tasks: the whole regression
+ gate, a full roadmap prompt, a cross-repo migration — without hand-holding.
+ The bottleneck moves from "can the model do it" to "is the work queued and
+ verifiable."
+3. **Multi-agent orchestration.** Workflows/subagent fleets make exhaustive
+ audits, N-perspective reviews, and repo-wide sweeps cheap. Quality gates that
+ were aspirational (adversarially-verified review before every feature claim)
+ are now routine.
+4. **Scheduled, unattended operation.** Cron routines turn Fable into standing
+ infrastructure: OSS scouting, docs-drift checks, changelog publishing, health
+ monitoring — headcount-free ops.
+
+The strategic conclusion: **our constraint is no longer engineering capacity, it
+is prioritization and verification.** This playbook is the prioritization; the
+regression gate (`npm run gate`) plus browser verification is the verification.
+
+---
+
+## 2. Operating model — how to run Fable day to day
+
+### The work queue is already written
+`docs/roadmap/01…10` are self-contained prompts. Feed them to fresh Fable
+sessions in the documented order (01 first — it hardens the gate that protects
+everything else). Each session: gate-before → build → verify in browser → gate-after.
+Don't invent new work while numbered prompts sit unexecuted; they were sequenced
+deliberately.
+
+### Session patterns that fit Fable
+- **One prompt, one session.** Roadmap prompts assume a fresh context. Don't chain.
+- **Ultra review before "done".** `/code-review ultra` (multi-agent cloud review)
+ on any branch touching money paths (`api/x402*`, `workers/agent-sniper`,
+ `api/_lib/economy-*`), rigging cores (`src/glb-canonicalize.js`,
+ `src/animation-retarget.js`), or published SDK surfaces.
+- **Fleets for sweeps, not features.** Repo-wide mechanical work (route audits,
+ dependency bumps, doc-link validation) goes to parallel subagents; product
+ features stay single-session so one mind owns the integration.
+- **Concurrent-agent hygiene** (known trap): explicit-path staging only,
+ re-check `git status` before commit, both remotes on push.
+
+### Standing routines (schedule these once, they run forever)
+| Routine | Cadence | What it does |
+|---|---|---|
+| OSS scout | weekly | Scan npm + GitHub for movement in our dependency frontier (three.js releases, gltf-transform, meshoptimizer, gsplat, model-viewer, TalkingHead, Metaplex). Diff against `REUSE-MAP.md`; open a dated addendum with license verdicts. |
+| Docs drift | weekly | Cross-check `STRUCTURE.md`, `docs/`, and `data/pages.json` against the tree; fix stale rows in-place per the docs rules in `CLAUDE.md`. |
+| Gate + smoke health | daily | Run `npm run gate`; on red, bisect and report — never let the baseline rot. |
+| Changelog → distribution | on deploy | `npm run changelog:push` (Telegram) + turn each entry into an X post via the vendored [xactions/](../../xactions) toolkit. Every ship becomes content. |
+| Revenue readout | weekly | Pull `/api/x402/analytics` + `x402_audit_log`, split **external vs internal (ring)** revenue, report the external number. That is the only number that counts toward §4. |
+
+---
+
+## 3. Engineering plays, ranked by (revenue impact × Fable advantage)
+
+These extend — never replace — the numbered roadmap prompts. Each is additive,
+flag-gated, and sourced from `REUSE-MAP.md` where OSS applies.
+
+### Tier 1 — direct revenue or conversion
+1. **Forge as a paid service, hardened** (improvement-plan 10; wraps
+ `packages/forge/`, `api/forge*.js`). The text→3D API is our cleanest
+ product-shaped revenue: metered x402 pricing (USDC + $THREE), free TRELLIS
+ lane as the funnel, paid tiers for quality/speed/rigging. Fable's job:
+ latency (caching, warm lanes), output quality (prompt-director tuning,
+ auto-repair of bad meshes via `@three-ws/glb-tools`), and reliability SLOs.
+ Everything else in this tier feeds this endpoint.
+2. **Asset pipeline compression** (REUSE-MAP §1): gltf-transform + meshopt at
+ build time, meshopt decoder in the viewer. Smaller GLBs → faster first
+ render → higher conversion on every surface (viewer, diorama, labs, embeds)
+ and lower egress cost per generation.
+3. **AR everywhere** (REUSE-MAP §2): server-side `USDZExporter` → every
+ generated model gets an iOS Quick Look link, every embed gets `<model-viewer ar>`.
+ "See it in your room" is the single most shareable artifact a 3D platform
+ produces — it is marketing that compounds per generation.
+4. **Embed + oEmbed + OG thumbnails** (roadmap 10, REUSE-MAP §10): `/embed/:id`,
+ `/api/oembed`, `poppygl`-rendered OG PNGs. Every model shared on X/Discord
+ unfurls as a live card linking back. Distribution wired into the artifact.
+
+### Tier 2 — moats only a 3D-native model builds cheaply
+5. **Procedural animation layer**: runtime IK (look-at, foot planting, reach),
+ layered on the existing retarget pipeline (`src/animation-retarget.js`,
+ universal-rig doctrine in `CLAUDE.md`). This is graphics-engineer work that
+ competitors can't hire cheaply and Fable does natively. Makes every avatar —
+ page-agent, walk companion, Agora citizens — feel alive instead of looped.
+6. **Gaussian splatting lane** (REUSE-MAP §6, all ✅-licensed: gsplat, brush,
+ supersplat): photo/video → splat → embeddable scene. A second content type
+ with the same monetization rails (x402 generation, gallery, embeds), and
+ `brush` trains in the visitor's browser — zero server GPU cost.
+7. **WebGPU/TSL migration, flag-gated**: three.js's WebGPU renderer behind a
+ query flag on the viewer. Not for hype — for the perf ceiling on splats,
+ crowds (Agora), and post-processing, and to be early on the platform shift
+ instead of chasing it.
+8. **Text → playable microgame**: the diorama pipeline (`src/diorama/`,
+ `packages/scene-mcp`) already goes sentence → explorable world. Add
+ win-conditions, spawn rules, and the existing walk/platformer controller
+ (`walk-sdk/`) → sentence → shareable game with a permalink. Highest
+ screenshot-and-share potential of anything we can build this quarter.
+
+### Tier 3 — ecosystem leverage
+9. **Open-core the rigging pipeline**: publish `glb-canonicalize` +
+ `animation-retarget` as a standalone MIT package ("universal humanoid
+ retargeting for three.js"). It is genuinely best-in-class, it earns GitHub
+ stars and inbound developers, and the hosted Forge/animation service remains
+ the paid path. The `packages/*` promotion path in `STRUCTURE.md` already
+ defines the mechanics.
+10. **Upstream PRs as marketing**: when Fable fixes or extends a dependency
+ (three.js examples, model-viewer, gltf-transform), submit it upstream under
+ the three.ws org per the ecosystem mindset in `CLAUDE.md`. Maintainer-level
+ presence in the three.js ecosystem is acquisition we can't buy.
+
+---
+
+## 4. The revenue ladder — what "unicorn" actually requires
+
+A $1B valuation at developer-infrastructure multiples (10–20× ARR) means
+**$50–100M ARR**. Nobody grinds to that in one motion; the ladder is:
+
+| Rung | External MRR | What gets us there |
+|---|---|---|
+| 1 | $1k | Forge paid tier + agent-sniper paid API used by strangers. Proof that x402 metering works with non-ring wallets. |
+| 2 | $10k | Embeds/AR/oEmbed funnel converting; `@three-ws/*` SDK installs turning into API keys; AWS Marketplace listing live (`docs/aws-marketplace.md` kit exists). |
+| 3 | $100k | B2B: white-label page-agent + avatar SDK seats; marketplace take rate + on-chain skill licenses at volume; intel/signals data via x402. |
+| 4 | $1M+ | Category ownership: "the 3D layer for the agent internet" — every MCP-speaking agent renders, pays, and transacts through three.ws rails. |
+
+Rules that keep the ladder honest:
+
+- **External revenue only.** The x402 ring (`docs/x402-ring-economy.md`) is
+ dogfooding and is already labeled internal in `x402_audit_log`. Never report
+ ring volume as traction — to the team or anyone else.
+- **Unit economics per generation.** Every paid Forge/splat lane must price
+ above its GPU + egress cost. Fable maintains a cost model per tier in
+ `docs/x402-revenue.md` when tiers change.
+- **The funnel is: OSS/MCP → free lane → paid x402 → B2B.** 38 MCP servers in
+ the public registry and the free TRELLIS lane are top-of-funnel; don't
+ paywall the top, don't give away the bottom.
+- **Prerequisite unblock:** paid Solana settlement needs
+ `X402_FEE_PAYER_SECRET_BASE58` set in production (owner action) — until then
+ Solana-side revenue is structurally off.
+
+---
+
+## 5. Open source: what we take in, what we give out
+
+**In** — governed by [REUSE-MAP.md](REUSE-MAP.md), which is license-vetted and
+verified. The rules: prefer ✅ MIT/Apache picks; the ⛔ list (non-commercial
+splatting rasterizers, capped 3D models, unlicensed layout tools) is a hard no
+regardless of technical appeal; the weekly OSS-scout routine (§2) keeps the map
+current instead of letting it rot. Check `package.json` before adding anything —
+much of the map is already a dep.
+
+**Out** — three motions, in priority order:
+1. Open-core the retargeting pipeline (§3.9) — our strongest OSS asset.
+2. Upstream fixes to dependencies we touch (§3.10).
+3. Keep the MCP registry presence (38 servers) healthy and documented — it is
+ simultaneously OSS contribution and distribution.
+
+---
+
+## 6. Outside the box — the things a features-only plan misses
+
+1. **Distribution beats features from here.** The platform already out-builds
+ its awareness. `llms.txt`, sitemap, and changelog rails exist; what's
+ missing is the *automated* loop: every changelog entry → X post (xactions),
+ every generation → OG-unfurling permalink, every model → AR link. Wire
+ sharing into artifacts (§3.3–4) rather than adding surfaces.
+2. **Trust is a sellable feature.** We already run a hash-chained economy
+ ledger, breach monitoring, risk-acknowledgment gating, spend guards, and
+ fail-closed trading rules. "Agents that touch real money, auditable by
+ design" is a positioning competitors in the agent space cannot claim.
+ Document it as a customer-facing page, not just ops docs.
+3. **The data moat is already accruing.** `pump_snapshot`, sniper journals,
+ agora task history, x402 volume metrics — longitudinal agent-economy data
+ nobody else has. Package reads as paid x402 endpoints (`@three-ws/intel`
+ already wraps some); Fable can build the derived-signal layer.
+4. **Partnership pipelines are half-built — finish them.** NVIDIA Inception,
+ IBM (watsonx MCP + webinar runbook), AWS Marketplace, SNS — each has a doc
+ in-tree. A routine that maintains these listings and drafts the follow-ups
+ converts dormant docs into channels.
+5. **Grants and ecosystem funding.** Solana Foundation, Metaplex, and
+ AI-agent-ecosystem grant programs fund exactly what we ship (open-source
+ Solana tooling, x402 adoption, MCP infrastructure). Low-cost, non-dilutive;
+ Fable drafts the applications from existing docs.
+6. **Fable as standing headcount.** The §2 routines are the equivalent of an
+ ops engineer, a devrel writer, and a QA engineer running continuously. Treat
+ routine coverage as an org chart: when a recurring human task appears twice,
+ schedule it.
+7. **Guard the downside.** Autonomy that moves real SOL has already produced
+ incidents (fail-open rules, synthetic circulation burn). Every new
+ autonomous money path ships with: fail-closed defaults, spend caps via
+ `@three-ws/agent-guards`, ledger coverage, and a kill flag. Unicorns die of
+ blowups more often than of slow quarters.
+
+---
+
+## 7. What we deliberately do NOT do
+
+- No rewriting infrastructure that already works (RPC failover, retarget core,
+ x402 settlement) — extend behind flags, prove with the gate.
+- No mocks, stubs, or fake traction — external numbers only (§4).
+- No ⛔-licensed OSS, however good the demo.
+- No promoting any coin but $THREE; the commit gate in `CLAUDE.md` governs
+ everything else.
+- No new top-level surfaces while numbered roadmap prompts are unexecuted —
+ depth on existing rails compounds; sprawl doesn't.
+
+---
+
+## Sequencing summary
+
+**Now:** roadmap 01 (gate hardening) → 02 (Forge quality) → compression + AR +
+embeds (§3.2–4) → schedule the §2 routines.
+**Next:** procedural animation, splat lane, text→game (§3.5–8) → rung-2 revenue
+motions (SDK→key funnel, AWS listing).
+**Then:** open-core the retargeter, data-moat endpoints, partnership routines →
+rung 3.
+
+Review this playbook quarterly against the external-revenue readout. If a play
+hasn't moved that number or its leading indicator (generations, embeds live,
+SDK installs) in a quarter, cut it and promote the next one.
diff --git a/public/changelog.json b/public/changelog.json
index 984f0fba6..d1ff8dc1a 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-03T18:23:23.474Z",
+ "generated_at": "2026-07-03T18:24:38.567Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
diff --git a/public/features.json b/public/features.json
index a34406d6d..6d46bd2a0 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-03T18:14:41.496Z",
+ "generated_at": "2026-07-03T18:24:38.540Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index e4fe9931c..b3b08a10a 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,25 +56,6 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</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:title" content="Sitemap · three.ws">
- <meta property="og:description" content="Human-readable index of every page on three.ws.">
- <meta property="og:url" content="https://three.ws/sitemap">
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <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="Sitemap — three.ws">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="twitter:site" content="@trythreews">
- <meta name="twitter:title" content="Sitemap · three.ws">
- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script>
</head>
<body>
<header class="sm-topbar">