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.

test(segment): gate the image on the geometry core-path tests

nirholas712f37fbef9f
diff --git a/workers/segment/Dockerfile b/workers/segment/Dockerfile
index 7f544cd9e..5dc2e1991 100644
--- a/workers/segment/Dockerfile
+++ b/workers/segment/Dockerfile
@@ -18,5 +18,12 @@ COPY worker_security.py /app/worker_security.py
COPY segment_core.py /app/segment_core.py
COPY main.py /app/main.py
+# Build gate: the geometry engine is pure CPU and needs no credentials, so its
+# tests run here. A merge pass that regresses to the pre-2026-08-11 cost, or a
+# segmentation that stops being reproducible, fails the image instead of
+# reaching production.
+COPY test_segment_core.py /app/test_segment_core.py
+RUN python3 test_segment_core.py
+
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--workers", "1"]