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
docs(forge): align the forge and 3D pipeline docs with the current lane and animation code
nirholas0276af877c38
diff --git a/docs/3d-asset-pipeline.md b/docs/3d-asset-pipeline.mdindex 2992185a6..f19a5668e 100644--- a/docs/3d-asset-pipeline.md+++ b/docs/3d-asset-pipeline.md@@ -16,7 +16,7 @@ This document is the *why and how* underneath all of those.| Format | What it is | Carries | Role in three.ws | Where it lives ||---|---|---|---|---|-| **FBX** | Autodesk's interchange format (binary or ASCII) | Mesh, skeleton, skin weights, animation, materials/textures | **Source only.** What you download from Mixamo or export from a DCC tool. Never loaded in the browser. | `animation-sources/`, some legacy in `public/animations/*.fbx` |+| **FBX** | Autodesk's interchange format (binary or ASCII) | Mesh, skeleton, skin weights, animation, materials/textures | **Source only.** What you download from Mixamo or export from a DCC tool. Never loaded in the browser. | `animation-sources/` (gitignored build-time input; `public/animations/` ships no FBX) || **GLB** | Binary glTF 2.0 — a single self-contained file | Geometry + skeleton + skin + textures + (optional) animation | **The runtime model format.** Every avatar the site renders is a GLB. | `public/avatars/*.glb` || **clip JSON** | A serialized `THREE.AnimationClip` (`AnimationClip.toJSON()`) | **Motion only** — keyframe tracks, no geometry | **The runtime motion format.** Reusable clips that play on *any* rig via retargeting. | `public/animations/clips/*.json` |@@ -97,7 +97,9 @@ This is how a motion enters the **shared animation library** that every agent an# 3. Build:npm run build:animations# → retargets to cz.glb, writes public/animations/clips/<name>.json,-# and rewrites public/animations/manifest.json+# rewrites public/animations/manifest.json, then re-syncs+# public/animations/registry.json (sync-animation-registry.mjs) and+# rebuilds public/animations/signatures.json (build-motion-signatures.mjs)```Source: [scripts/build-animations.mjs](../scripts/build-animations.mjs). The config entry shape:@@ -157,7 +159,7 @@ Track names are **canonical bone names** (`Hips`, `Spine`, `LeftArm`, …) so th## How the runtime uses all three-The build pipeline produces GLB + JSON; the browser stitches them back together. The full machine-readable inventory of every animation asset and which pipeline owns it is [public/animations/registry.json](../public/animations/registry.json) — read it before touching anything animation-related.+The build pipeline produces GLB + JSON; the browser stitches them back together. The full machine-readable inventory of every animation asset and which pipeline owns it is [public/animations/registry.json](../public/animations/registry.json): read it before touching anything animation-related. Its measured companion is [public/animations/signatures.json](../public/animations/signatures.json), a motion-signature index (energy, speed, per-region movement, loop cleanliness) computed from every baked clip by `npm run build:motion-signatures`; `npm run audit:motion` fails when it is stale.| Stage | Module | What it does ||---|---|---|@@ -234,13 +236,13 @@ The same FBX/GLB/JSON plumbing is the foundation for the platform's generative 3| Capability | Entry point | Output ||---|---|---|-| Text → 3D (free) | `forge_free` MCP tool · [Forge](https://three.ws/forge) | Textured GLB on the free NVIDIA NIM (TRELLIS) lane |+| Text → 3D (free) | `forge_free` MCP tool · [Forge](https://three.ws/forge) | Textured GLB on the free-lane chain (self-host TRELLIS first, then Hunyuan3D / HuggingFace, NVIDIA NIM as the last-resort fallthrough) || Text/image → 3D | `mesh_forge` MCP tool | Textured GLB via a Granite-directed FLUX + reconstruction chain || Text → avatar | `text_to_avatar` MCP tool | A humanoid avatar GLB |**Make it move:**-- **Auto-rig a static mesh** — `rig_mesh` MCP tool (UniRig) turns a rig-less GLB into an animation-ready one with a humanoid skeleton and skin weights.+- **Auto-rig a static mesh**: the `rig_mesh` MCP tool (the Make-It-Animatable engine in [workers/rig](../workers/rig/README.md)) turns a rig-less GLB into an animation-ready one with a 52-bone Mixamo-convention skeleton and skin weights.- **Retarget any humanoid rig** — drop in a Mixamo, Blender, Rigify, Unreal, or other standard humanoid GLB and the canonicalizer + retargeter let it play every library clip. No manual bone mapping.- **Text → motion** — the pose studio generates brand-new clips from a text prompt (`/api/forge-motion`), not just presets.- **Author by hand** — pose with FK/IK gizmos on the `/pose` timeline and export a JSON clip or an animated GLB.@@ -283,8 +285,8 @@ text/image ──► mesh_forge ──► static GLB ──► rig_mesh ──- **Don't ship raw converted GLBs.** A Mixamo character converts to 50+ MB; always run `optimize:glb`. The site streams these to every visitor.- **`trimesh` (the Python script) silently drops rigs.** It is for static geometry only. For anything animated, use `convert:fbx`.-- **No Draco/meshopt by default.** The site's `GLTFLoader` is not wired with a Draco decoder, so a Draco-compressed GLB fails to load. `optimize:glb` deliberately stays within plain glTF 2.0; WebP textures do the heavy lifting.-- **FBX is build-time only.** Keep source FBX in `animation-sources/` so it never ships in the deploy bundle. Six legacy `.fbx` files sit unbuilt in `public/animations/` — see the orphaned-FBX note in [docs/animations.md](animations.md).+- **No Draco/meshopt in optimized output.** The main viewer and the studios wire Draco/KTX2/meshopt decoders (`getDecoders` in `src/viewer/internal.js`), but many lighter surfaces load GLBs with a bare `GLTFLoader` and no decoder. `optimize:glb` deliberately stays within plain glTF 2.0 so its output loads everywhere; WebP textures do the heavy lifting.+- **FBX is build-time only.** Keep source FBX in `animation-sources/` (gitignored) so it never ships in the deploy bundle. `public/animations/` holds no FBX anymore; the six formerly-orphaned clips are built into the manifest (see `resolved_issues` in [public/animations/registry.json](../public/animations/registry.json)).- **Bone names matter.** A non-humanoid or oddly-named rig may fall below the 8-bone / 50%-coverage thresholds and refuse to animate. The canonicalizer handles the common conventions; truly custom skeletons need their bones renamed to the canonical set first.- **`.bak` files.** `optimize:glb` writes a `<name>.glb.bak` alongside its output — delete it before committing.@@ -297,6 +299,8 @@ text/image ──► mesh_forge ──► static GLB ──► rig_mesh ──| [scripts/fbx-to-glb.mjs](../scripts/fbx-to-glb.mjs) | FBX → GLB (FBX2glTF) — `npm run convert:fbx` || [scripts/build-animations.mjs](../scripts/build-animations.mjs) | FBX/GLB → retargeted clip JSON + manifest — `npm run build:animations` || [scripts/extract-glb-animations.mjs](../scripts/extract-glb-animations.mjs) | Extract baked animation out of a GLB — `npm run extract:animations` |+| [scripts/sync-animation-registry.mjs](../scripts/sync-animation-registry.mjs) | Regenerate registry.json's `clips` from the built truth: `npm run sync:animation-registry` (chained into `build:animations`) |+| [scripts/build-motion-signatures.mjs](../scripts/build-motion-signatures.mjs) | Measure every baked clip into signatures.json: `npm run build:motion-signatures` (check with `npm run audit:motion`) || [scripts/optimize-glb.mjs](../scripts/optimize-glb.mjs) | Geometry + WebP optimization — `npm run optimize:glb` || [scripts/convert-fbx-to-glb.py](../scripts/convert-fbx-to-glb.py) | FBX → GLB for **static props only** (trimesh) || [scripts/animations.config.json](../scripts/animations.config.json) | The FBX/GLB source list the build reads |@@ -304,6 +308,7 @@ text/image ──► mesh_forge ──► static GLB ──► rig_mesh ──| `public/animations/clips/*.json` | Pre-baked, retargeted animation clips || `public/animations/manifest.json` | Clip → UI mapping (name, url, label, icon, loop) || [public/animations/registry.json](../public/animations/registry.json) | Machine-readable inventory of every animation asset |+| [public/animations/signatures.json](../public/animations/signatures.json) | Measured motion-signature index for every baked clip || [src/glb-canonicalize.js](../src/glb-canonicalize.js) | Runtime bone-name normalization + GLB repack || [src/animation-retarget.js](../src/animation-retarget.js) | Runtime clip retargeting || [src/animation-manager.js](../src/animation-manager.js) | `AnimationMixer` driver |diff --git a/docs/animations.md b/docs/animations.mdindex 0d3e2fcc1..9021d007d 100644--- a/docs/animations.md+++ b/docs/animations.md@@ -69,13 +69,13 @@ Every slot below is previewable on a live avatar at [three.ws/gestures](https://| `bow` | `sitclap` | **Approximation.** No bow clip is baked; `sitclap` reads as gratitude. The one slot whose clip does not mean what the slot means || `point` | `point` | || `shrug` | `shrug` | |-| `fidget` | `av-waiting` | Real baked idle-fidget loop (was the never-baked `Fidget`, fixed 2026-07-08) |+| `fidget` | `av-listening-music` | Clean anchored restless loop. Was the never-baked `Fidget` (fixed 2026-07-08), then `av-waiting`, whose loop seam measures open in `signatures.json` and snapped every cycle || `dance` | `rumba` | || `inspect` | `lookdown` | Reading data, examining a chart || `present` | `av-brag-claps` | Showing a result off || `sign` | `xbot-agree` | Authorizing a wallet signature || `curiosity` | `av-spy` | Looking around, alert |-| `patience` | `av-waiting` | Waiting on a long task |+| `patience` | `av-idle-anim` | Waiting on a long task. A looping slot needs a clean anchored loop, which rules out `av-waiting` here too || `manipulate` | `av-push-block` | Handling a scene object || `conjure` | `av-conductor` | Creating something from nothing |@@ -122,6 +122,8 @@ The walk state machine keeps a parallel gesture library (`src/animation-state-ma`public/animations/registry.json` is regenerated by `scripts/sync-animation-registry.mjs` (`npm run sync:animation-registry`, and automatically at the end of `npm run build:animations`). It derives each clip's label, icon and loop flag from the built manifest, its source path from `scripts/animations.config.json`, and its `agent_slots` by reversing `DEFAULT_ANIMATION_MAP`, so a slot can never be recorded on two clips. Hand-written `note` fields survive. `tests/animation-registry.test.js` fails if the committed file is not what the script would produce.+Its measured companion is `public/animations/signatures.json`: a motion-signature index (duration, energy, speed, per-region movement shares, loop cleanliness) computed from every baked clip by `scripts/build-motion-signatures.mjs` (`npm run build:motion-signatures`, also chained into `build:animations`; `npm run audit:motion` fails when it is stale). Slot defaults consult it: a looping slot like `fidget` or `patience` needs a clip whose loop measures clean, which is why neither maps to `av-waiting`.+## The /animations gallery[three.ws/animations](https://three.ws/animations) is the public browse surface over every clip: the curated studio manifest, the full R2-hosted motion-capture library (`GET /api/animations/library`, ~2,000 clips), and community-published clips (`GET /api/animations/clips?visibility=public`).@@ -133,14 +135,14 @@ The walk state machine keeps a parallel gesture library (`src/animation-state-ma## Known issues-- **`wave` clip unreachable** — the `wave` clip is in the manifest but no agent slot or hint points to it. The `wave` slot maps to `reaction` instead.-- **Dead animation hints** — skill-emitted hints `gesture`, `inspect`, `present`, `sign`, `curiosity`, `patience` have no matching clip or slot; they silently no-op on Avaturn models. (`src/agent-avatar.js`)+- **`bow` is an approximation.** No bow clip is baked, so the slot resolves to `sitclap`, which reads as gratitude/applause rather than a bow. Tracked in `public/animations/registry.json` under `known_issues` (`bow-slot-approximation`), with the Mixamo source to add.-Resolved (see `public/animations/registry.json` → `resolved_issues`): the `fidget` slot no longer points at the never-baked `Fidget` clip — it maps to the real `av-waiting` loop (2026-07-08); and the 6 formerly-orphaned source FBX (`Cover To Stand`, `Goalkeeper Scoop`, `Jumping Down` ×3, `Removing Driver`) are now entries in `scripts/animations.config.json` and built into the manifest.+Resolved (see `public/animations/registry.json` under `resolved_issues`): the `wave`, `nod`, `point`, `think`, and `shrug` slots each play their own dedicated clip instead of a borrowed `reaction`/`pray`/`defeated` stand-in (2026-07-30); the skill hints `gesture`, `inspect`, `present`, `sign`, `curiosity`, and `patience` all resolve to real slots via `resolveHint()` instead of silently no-oping (2026-07-30); the `fidget` slot no longer points at the never-baked `Fidget` clip (2026-07-08, later moved to `av-listening-music` when `signatures.json` measured `av-waiting`'s loop seam open); and the 6 formerly-orphaned source FBX (`Cover To Stand`, `Goalkeeper Scoop`, `Jumping Down` ×3, `Removing Driver`) are entries in `scripts/animations.config.json` and built into the manifest.## Related- [Agent Gestures](/gestures): the live slot-and-hint reference, with an override builder+- [Choreography](/docs/choreography): sequence gesture slots into named, replayable routines, authored at [/choreograph](https://three.ws/choreograph)- [Give your agent body language](/tutorials/animate-your-agent): the walkthrough- [3D asset pipeline](/docs/3d-asset-pipeline): the full generate, rig, animate, export chain- [Animation Studio](/docs/animation-studio): author and preview clips in the browserdiff --git a/docs/avatar-pipeline.md b/docs/avatar-pipeline.mdindex 07553e735..2c78ec26b 100644--- a/docs/avatar-pipeline.md+++ b/docs/avatar-pipeline.md@@ -23,7 +23,7 @@ prompt / image| Lane | Tool / endpoint | Cost | Notes ||---|---|---|---|-| Free | `forge_free` (MCP) | **Free** | NVIDIA NIM (Microsoft TRELLIS); text → textured GLB + viewer link. |+| Free | `forge_free` (MCP) | **Free** | Unpinned free-lane chain (self-host TRELLIS first, NVIDIA NIM last resort); text → textured GLB + viewer link. || Paid | `text_to_3d` / `image_to_3d` (MCP), `POST /api/x402/forge` | tiered | Quality by tier — see below. || Paid | `mesh_forge` (MCP) | per call | Text/image → mesh via a Granite-directed model chain. || Avatar | `text_to_avatar`, `forge_avatar` (MCP) | per call | Avatar-shaped output; `forge_avatar` chains generation + rigging in one call. |diff --git a/docs/avatar-thumbnails.md b/docs/avatar-thumbnails.mdindex f9b24ce71..69e1242b9 100644--- a/docs/avatar-thumbnails.md+++ b/docs/avatar-thumbnails.md@@ -52,8 +52,9 @@ bare `publicUrl(<thumbnail key>)` call sites across 32 files — agent cards, thmarketplace, explore, user profiles, leaderboards, and the image baked into on-chaintoken metadata. All now route through `thumbnailUrl()`, and[`tests/thumbnail-url-guard.test.js`](../tests/thumbnail-url-guard.test.js) walks-`api/` to fail the build if a new one appears. Two files are allow-listed there,-each for a stated reason.+`api/` to fail the build if a new one appears. Three files are allow-listed there,+each for a stated reason (the helper itself, a key published right after its+`putObject` in the same function, and a HEAD-checked vision fetch).## Where a thumbnail comes from@@ -191,6 +192,11 @@ node --env-file=.env.local scripts/backfill-avatar-thumbnails.mjs --limit=50 --c# Clear a large backlog: keep refilling the budget until nothing is left to claim.node --env-file=.env.local scripts/backfill-avatar-thumbnails.mjs --limit=2000 --concurrency=4 --loop++# After deploying a renderer change: re-queue up to N posters baked by the older+# renderer (clears only server-rendered thumb/<uuid>.png keys via queueRestyle();+# client snapshots and adopted forge previews are never touched).+node --env-file=.env.local scripts/backfill-avatar-thumbnails.mjs --restyle=200 --limit=200```Requires `DATABASE_URL` and the `S3_*` credentials, both of which live indiff --git a/docs/avatar-wardrobe.md b/docs/avatar-wardrobe.mdindex 66243dbf4..f32371d16 100644--- a/docs/avatar-wardrobe.md+++ b/docs/avatar-wardrobe.md@@ -13,6 +13,12 @@ headwear, glasses, accessories). Click a piece to wear it, click again or "Takeoff" to remove it. Saving the avatar persists what it wears, and the baked GLBserved to embeds, AR, and external engines includes the garments.+The catalog also has a standalone public surface: `/wardrobe`+([`src/wardrobe-page.js`](../src/wardrobe-page.js)) browses every published+wearable (search, per-slot filter, inline 3D inspection, jump into the editor+to wear it) and runs the text-prompt generator lane over the same+`POST /api/garment-forge` proxy described below.+## Why this is not the usual wardrobeCommercial avatar platforms author every garment against one skeleton they@@ -35,7 +41,13 @@ Concretely, `attachGarment()`:3. refuses any garment that binds under 60% of its skin **weight**(`MIN_BIND_COVERAGE`) rather than attaching a mesh that would deform intogarbage;-4. masks the body in the regions the garment declares it covers+4. refuses any garment whose bounding extent on any axis exceeds 0.75x the+ avatar's height (`MAX_GARMENT_EXTENT_RATIO`). Bind coverage proves a mesh+ deforms correctly and says nothing about its size; the catalog is public+ and long-lived, so a malformed piece published before the forge's own+ proportion gate, or supplied by a third party, is refused at wear time+ too, not just at publish time;+5. masks the body in the regions the garment declares it covers(`occludes`), so skin never pokes through cloth. Declarations are clampedat apply time to the slot's plausible region set (`SLOT_OCCLUDABLE` in[`src/garment-taxonomy.js`](../src/garment-taxonomy.js)): a shirt cannotdiff --git a/docs/forge-background-generation.md b/docs/forge-background-generation.mdindex 5653b146b..ff4da317d 100644--- a/docs/forge-background-generation.md+++ b/docs/forge-background-generation.md@@ -37,11 +37,18 @@ Three cooperating pieces:every minute via Cloud Scheduler): sweeps `forge_creations` rows still at`status='generating'` after a 2-minute grace period. Rows whose job id is aGCP worker envelope (the async self-host lanes: TRELLIS, Hunyuan3D,- TripoSG sketch) are polled directly on the worker: finished jobs are- materialized into durable storage with the exact same writer the browser- poll uses (`materializeCreation`), failed jobs are marked failed. Anything- non-terminal after 45 minutes is marked failed as timed out, so no row can- be orphaned at `generating` again.+ TripoSG sketch) are polled directly on the worker, and NVIDIA NIM rows are+ polled too (the x402 lane stores the signed job token; browser free-lane+ rows store the bare NVCF request id). Finished jobs are materialized into+ durable storage with the exact same writer the browser poll uses+ (`materializeCreation`). Failures do not dead-end: a failed self-host job+ past the attended polling window (13 minutes, so a live browser's own+ failover is never raced) is redispatched unattended to the next healthy+ lane under the same hop cap as the attended path, and an expired NVCF+ request is resubmitted from the inputs stored on the row. Only a job with+ nothing left to try is marked failed. Anything non-terminal after 45+ minutes is marked failed as timed out, so no row can be orphaned at+ `generating` again.3. **Notifications** ([api/_lib/forge-notify.js](../api/_lib/forge-notify.js)):the finalizer, and only the finalizer, notifies. `forge_complete` and@@ -97,9 +104,9 @@ in-window. This is the forge twin of the x402 settlement-success sensor.no worker key it still reaps timed-out rows.- Batch size is 25 per tick (`FORGE_FINALIZE_BATCH` overrides). Ticks areidempotent and safe to overlap.-- The response body reports `{ swept, done, failed, timed_out, still_running,- unpollable }` per tick, so a quick manual hit shows queue health at a- glance.+- The response body reports `{ swept, done, failed, failed_over, resubmitted,+ timed_out, still_running, unpollable }` per tick, so a quick manual hit+ shows queue health at a glance.Related: [3d-pipeline.md](3d-pipeline.md) for the generation lanes themselves,and the notification preference model indiff --git a/docs/forge-pipeline.md b/docs/forge-pipeline.mdindex 4da6ec597..69ce5d327 100644--- a/docs/forge-pipeline.md+++ b/docs/forge-pipeline.md@@ -46,7 +46,7 @@ Three properties define the design:| Surface | Route / tool | Notes || --- | --- | --- |-| Forge page | [/forge](https://three.ws/forge), `src/forge.js` | Text, photos (up to 4 views), sketch. One shared polling loop. |+| Forge page | [/forge](https://three.ws/forge), `src/forge.js` | Text, photos (up to 6 views), sketch. One shared polling loop. `/forge-max` deep-links straight into the maximum-quality lane. || Homepage mini-forge | `src/home-forge.js` | Health-aware default lane, never pins a backend. || Forge Studio | [/forge-studio](https://three.ws/forge-studio), `src/forge-studio/` | Create, refine, stylize, Game-Ready export, remix. || Core API | `POST /api/forge` (`api/forge.js`) | The orchestrator. Auth-free. Text, image, and sketch bodies. |@@ -60,7 +60,7 @@ Three properties define the design:| Refinement | `POST /api/forge-iterate` (`api/forge-iterate.js`) | Conversational refinement with version lineage for the signed-in Studio. || MCP (paid stdio) | `mesh_forge`, `forge_avatar`, `forge_free`, `text_to_avatar`, `rig_mesh`, `refine_model`, `restyle_material` (`mcp-server/src/tools/`) | Shared cores in `mcp-server/src/tools/_studio-core.js`; thin clients over `/api/forge`. || ChatGPT clone | `POST /api/gpt-forge` (`api/gpt-forge.js`) | Clone of the orchestrator dedicated to the ChatGPT surfaces (the Apps SDK MCP connector `api/mcp-studio` and the custom-GPT Actions endpoint `api/3d/studio`, via `api/_mcp-studio/gpt-forge-client.js`), so the ChatGPT pipeline can evolve without touching `/api/forge`. Same lanes, tiers, job tokens, and `forge_creations` rows. First divergence: its poll responses also carry `prompt`, `preview_image_url` (the painted concept view), and `text_to_image_model`, so the ChatGPT surfaces can show the concept image while the mesh generates. |-| MCP (hosted HTTP) | `text_to_3d`, `image_to_3d`, `auto_rig_model` (`api/mcp-3d.js`, tools in `api/_mcp3d/tools/studio.js`) | Streamable HTTP server registered as `io.github.nirholas/three-ws-3d-studio`. |+| MCP (hosted HTTP) | `text_to_3d`, `image_to_3d`, `auto_rig_model`, plus the wider studio toolset (`generation_status`, `preview_3d`, `remove_background`, `remesh_model`, `stylize_model`, `segment_model`, `retexture_model`, `pose_model`, `save_avatar`, persona tools; `api/mcp-3d.js`, tools in `api/_mcp3d/tools/studio.js`) | Streamable HTTP server registered as `io.github.nirholas/three-ws-3d-studio`. || DCC plugins | `integrations/blender/`, `integrations/comfyui/`, `integrations/_pyclient/` | First-party clients driving the same API. |The rule when adding a surface: never talk to a provider directly. Submit through `/api/forge` (or the shared MCP cores) so routing, failover, persistence, and payments stay in one place.@@ -113,7 +113,7 @@ Routing answers one question: given `(path, tier, userImages, prompt)`, which co**Static preference order.** `freeLaneCandidates()` builds the ordered list both resolvers walk:-1. The tier's named free default (`FREE_DEFAULT_FOR_TIERS`): draft/standard image requests name `nvidia`; high names `hunyuan3d` (self-host).+1. The tier's named free default (`FREE_DEFAULT_FOR_TIERS`): draft/standard image requests name `trellis_selfhost`; high names `hunyuan3d`. Both are our own GPU workers; NVIDIA NIM is no longer a named default (its text-only, no-reference-image conditioning is the realism hole this table closes) but stays explicitly selectable and remains the final fallthrough in the per-path chain.2. The per-path free fallback chain (`FREE_FALLBACK_FOR_PATH`). For `image` that is `trellis_selfhost`, `hunyuan3d`, `huggingface`, `nvidia`: our own GPU workers first (zero vendor cost), then external free lanes, with the text-only NIM lane trailing as a safety net.3. The paid platform default (`DEFAULT_BACKEND_FOR_PATH`: image → `trellis` on Replicate, geometry → `meshy`, sketch → `triposg`) only when nothing free is configured and healthy.