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.

build(rig): gate the worker image on its own test suites and stop trimesh drifting a major version

nirholasbdcd3f13fced
diff --git a/workers/rig/Dockerfile b/workers/rig/Dockerfile
index b30b947a8..cdab141aa 100644
--- a/workers/rig/Dockerfile
+++ b/workers/rig/Dockerfile
@@ -42,8 +42,19 @@ RUN git clone https://github.com/jasongzy/Make-It-Animatable.git /app/mia \
WORKDIR /app
COPY worker_security.py rig_glb.py blendshapes.py engine_mia.py main.py entrypoint.sh /app/
+COPY test_rig_glb.py test_blendshapes.py test_pipeline.py /app/
RUN chmod +x /app/entrypoint.sh
+# Build-time guards, the same pattern workers/garment-forge uses. These three
+# suites need no GPU and no weights, so they run here in seconds and the image
+# does not ship if the rig contract broke: skin authoring (skeleton, unit-sum
+# weights, morph targets), ARKit transfer (head mask, alignment, falloff), and
+# the composed core path (the 52 Mixamo bone names the platform canonicalizer
+# keys on, ARKit-52 targetNames on the head only, textures byte-preserved).
+RUN python3 /app/test_rig_glb.py \
+ && python3 /app/test_blendshapes.py \
+ && python3 /app/test_pipeline.py
+
# Weights, Mixamo bone templates, and the baked ARKit template are staged in
# GCS (stage-assets.sh) and mounted at /weights by Cloud Run; entrypoint.sh
# links them into the MIA tree before serving.
diff --git a/workers/rig/requirements.txt b/workers/rig/requirements.txt
index 69289d055..078d63a21 100644
--- a/workers/rig/requirements.txt
+++ b/workers/rig/requirements.txt
@@ -24,7 +24,12 @@ potpourri3d
shapely
spaces
tqdm
-trimesh>=4.4.0
+# Held below 5 on purpose. The running revision was built on trimesh 4.x and a
+# bare >=4.4.0 now resolves to 5.0.0, so the next rebuild would quietly ship a
+# major-version jump in the loader both MIA and rig_glb parse meshes with.
+# Raising it is a deliberate change to verify on the GPU, not a side effect of
+# redeploying. The local suites pass on 4.12.2 and 5.0.0 alike.
+trimesh>=4.4.0,<5
# Rig authoring + blendshape transfer (rig_glb.py / blendshapes.py)
pygltflib==1.16.2