-
-
The AI adversary on needle boxes, with the baselines beside it. The model proposes poses; the CAD kernel measures them.
-
Two parts in 3D at the failing pose: the kernel measures a 0.8 mm gap against the 1.5 mm requirement.
-
GIF
Terminal recording on a real STEP sample: validate, search and replay end on the same measured gap.
-
ToleranceArena: an AI adversary hunts the pose where a CAD part fails, and a real CAD kernel writes the verdict.
-
GIF
The gap map of the whole pose box. A click on the failing cell moves the scrubber to 45 degrees and -1.2 mm.
-
GIF
A sweep that misses, a search that finds the 0.8 mm gap, and a replay that matches.
Inspiration
Four sampled angles pass. A fifth finds a 0.8 mm gap where the requirement is 1.5 mm. Checks that sample a grid walk past the narrow pose where a part fails, and nobody looks there.
What it does
ToleranceArena measures the gap between two parts at every pose in a declared box and judges it against a requirement. A language model acts as an adversary: it proposes poses through typed tools and has no field for a verdict. A real CAD kernel (Open CASCADE through build123d) measures every pose and alone writes the verdict, so anyone can replay a failure and get the same gap. A browser workbench shows a gap map of the whole box, the two parts in 3D with the gap drawn between them, and a replay.
How we built it
Kiro IDE ran the spec workflow (requirements, design, tasks) and built the viewer and the workbench. Kiro CLI took the backend issue by issue: failing test first, three gates, then mutants. The creature has three parts that were never meant to meet: a language model (Groq), a CAD kernel and a 3D viewer (React, Three.js, Cloudscape). Strands runs the analyst loop.
Challenges we ran into
Two Kiro IDE hooks printed nothing we could see, so the log marks them blocked instead of inventing output. The model provider dropped a minus sign, so an offset of -1.2 arrived as 1.2 and the analyst measured the wrong pose. The repair step scored zero on its first live run.
Accomplishments that we're proud of
We registered the evaluation before running it. On 20 needle boxes the hybrid found the failure in 186 of 199 scored runs, against 0.400 for the best one-pass baseline. The limits are honest: one model, one fixture, and on ordinary boxes a classic optimiser still wins. The repository lists every limit.
What we learned
Let the model have the ideas and let a deterministic kernel have the last word. A verdict nobody can argue with is worth more than a clever guess.
What's next for ToleranceArena
Upload your own STEP file from the browser, more fixtures, and more models.
Built With
- build123d
- cloudscape
- groq
- kiro
- open-cascade
- python
- react
- strands-agents
- three.js
- typescript