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.

fix(tests): close the four suites that were red on main before a deploy

nirholas7001a90631f4
diff --git a/api/_lib/3d-catalog/print-prepare.js b/api/_lib/3d-catalog/print-prepare.js
index b2c78ff75..162677aa6 100644
--- a/api/_lib/3d-catalog/print-prepare.js
+++ b/api/_lib/3d-catalog/print-prepare.js
@@ -95,9 +95,9 @@ export default {
'POST /api/print/prepare {"creationId":"6f1b…","materialId":"resin-standard","targetHeightMm":120,"hollow":true}',
response: {
assets: {
- stl: 'https://cdn.three.ws/print/6f1b….stl',
- threemf: 'https://cdn.three.ws/print/6f1b….3mf',
- glb: 'https://cdn.three.ws/print/6f1b….glb',
+ stl: 'https://three.ws/cdn/print/prepared/6f1b…/model.stl',
+ threemf: 'https://three.ws/cdn/print/prepared/6f1b…/model.3mf',
+ glb: 'https://three.ws/cdn/print/prepared/6f1b…/model.glb',
bytes: { stl: 233684, threemf: 118220, glb: 402113 },
},
before: { version: 1, manifold: false, open_edges: 214, score: 62 },
diff --git a/tests/api/mcp-model-inspect-tools.test.js b/tests/api/mcp-model-inspect-tools.test.js
index 59b56cb71..8a991d95c 100644
--- a/tests/api/mcp-model-inspect-tools.test.js
+++ b/tests/api/mcp-model-inspect-tools.test.js
@@ -59,15 +59,28 @@ beforeEach(() => {
});
describe('model MCP tools: registration', () => {
- it('registers three deterministic, public inspection tools', () => {
- expect(toolDefs.map((t) => t.name)).toEqual(['validate_model', 'inspect_model', 'optimize_model']);
+ it('registers four deterministic, public inspection tools', () => {
+ expect(toolDefs.map((t) => t.name)).toEqual([
+ 'validate_model',
+ 'inspect_model',
+ 'optimize_model',
+ 'diff_models',
+ ]);
for (const t of toolDefs) {
expect(t.scope).toBeUndefined();
expect(t.annotations).toEqual({
readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true,
});
+ }
+ // The three single-model tools take one url; diff_models is the only one
+ // that reads two, so it names them rather than reusing `url`.
+ for (const t of toolDefs.filter((x) => x.name !== 'diff_models')) {
expect(t.inputSchema.required).toEqual(['url']);
}
+ expect(toolDefs.find((t) => t.name === 'diff_models').inputSchema.required).toEqual([
+ 'before',
+ 'after',
+ ]);
});
});
diff --git a/tests/api/oracle-calibrate-cron.test.js b/tests/api/oracle-calibrate-cron.test.js
index d2e59c6e3..941d55e7b 100644
--- a/tests/api/oracle-calibrate-cron.test.js
+++ b/tests/api/oracle-calibrate-cron.test.js
@@ -74,18 +74,23 @@ describe('GET/POST /api/cron/oracle-calibrate', () => {
});
it('a confident winning band computes factor = observed / predicted', async () => {
- // Five closed trades scored 90, four of them winners: observed 0.8. The
+ // Five closed trades scored 90, three of them winners: observed 0.6. The
// prediction is what the score CLAIMS, not the score over 100: a 90 claims
- // P=0.679, so the factor is 0.8/0.679, comfortably inside the clamp.
+ // P=0.607, so the factor is 0.6/0.607, comfortably inside the clamp. Four
+ // winners would read 0.8/0.607 = 1.32 and hit the ceiling instead, which is
+ // the next test's job, not this one's.
sqlMock.mockResolvedValueOnce(
- Array.from({ length: 5 }, (_, i) => ({ score: 90, win: i < 4 ? 1 : 0, pnl_pct: 10 })),
+ Array.from({ length: 5 }, (_, i) => ({ score: 90, win: i < 3 ? 1 : 0, pnl_pct: 10 })),
);
const res = await call();
const band = res.body.bands.find((b) => b.band === '85-100');
expect(band.samples).toBe(5);
- expect(band.observed_rate).toBe(0.8);
- expect(band.correction_factor).toBeCloseTo(0.8 / probabilityFromScore(90), 3);
+ expect(band.observed_rate).toBe(0.6);
+ expect(band.correction_factor).toBeCloseTo(0.6 / probabilityFromScore(90), 3);
+ // Untouched by either end of the [0.7, 1.3] clamp, so the assertion above
+ // is measuring the ratio and not the ceiling.
expect(band.correction_factor).toBeLessThan(1.3);
+ expect(band.correction_factor).toBeGreaterThan(0.7);
});
it('clamps the factor at 1.3 for a band that always wins', async () => {
diff --git a/tests/branding-allowlist.json b/tests/branding-allowlist.json
index ec4960112..73793cefd 100644
--- a/tests/branding-allowlist.json
+++ b/tests/branding-allowlist.json
@@ -568,5 +568,35 @@
"pattern": "Mixamo (`mixamorigHead`), VRM, Avaturn, Unreal, Daz, MakeHuman, or Blender",
"file": "docs/tutorials/upload-custom-glb.md",
"reason": "The repair instruction has to name the conventions the canonicalizer recognizes so a reader knows what to rename their bones to; technical identifiers rather than product copy."
+ },
+ {
+ "pattern": "Avaturn, VRM, Unreal and Daz bone names",
+ "file": "pages/motion.html",
+ "reason": "Names a supported skeleton naming convention, not a partner or product. src/glb-canonicalize.js maps this rig format onto the canonical set, and CLAUDE.md's universal-animation rule requires documenting the conventions we accept, so the list is a technical identifier the way the existing \"Mixamo, Avaturn, Unreal\" entries are."
+ },
+ {
+ "pattern": "Ready Player Me, Avaturn, VRM, Mixamo and Blender rigs",
+ "file": "docs/api-reference.md",
+ "reason": "Names a supported skeleton naming convention, not a partner or product. src/glb-canonicalize.js maps this rig format onto the canonical set, and CLAUDE.md's universal-animation rule requires documenting the conventions we accept, so the list is a technical identifier the way the existing \"Mixamo, Avaturn, Unreal\" entries are."
+ },
+ {
+ "pattern": "Mixamo, Avaturn, VRM, Unreal, Daz, MakeHuman, and Blender conventions",
+ "file": "docs/mobile-launch/aws-builder-center-article.md",
+ "reason": "Names a supported skeleton naming convention, not a partner or product. src/glb-canonicalize.js maps this rig format onto the canonical set, and CLAUDE.md's universal-animation rule requires documenting the conventions we accept, so the list is a technical identifier the way the existing \"Mixamo, Avaturn, Unreal\" entries are."
+ },
+ {
+ "pattern": "Mixamo, Avaturn, VRM and VRoid, Unreal, Daz and Genesis",
+ "file": "docs/mobile-launch/x-article.md",
+ "reason": "Names a supported skeleton naming convention, not a partner or product. src/glb-canonicalize.js maps this rig format onto the canonical set, and CLAUDE.md's universal-animation rule requires documenting the conventions we accept, so the list is a technical identifier the way the existing \"Mixamo, Avaturn, Unreal\" entries are."
+ },
+ {
+ "pattern": "Mixamo, Avaturn, Unreal, VRM, Daz, MakeHuman and plain",
+ "file": "docs/nvidia-forum-browser-digital-human.md",
+ "reason": "Names a supported skeleton naming convention, not a partner or product. src/glb-canonicalize.js maps this rig format onto the canonical set, and CLAUDE.md's universal-animation rule requires documenting the conventions we accept, so the list is a technical identifier the way the existing \"Mixamo, Avaturn, Unreal\" entries are."
+ },
+ {
+ "pattern": "the RPM, Avaturn, and MetaHuman spellings",
+ "file": "docs/nvidia-forum-browser-digital-human.md",
+ "reason": "Names a supported blendshape naming convention, not a partner or product. src/voice/arkit-blendshapes.js canonicalizes these morph-name spellings onto the ARKit set; same category as the skeleton-convention entries."
}
]