Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

4.5 KB
Raw Blame

[!NOTE] Archived verification snapshot (v0.2 release gate). Measurements such as binary size (1.1 MB), peak RSS (2.16 MB), and MCP tokens (722) reflect v0.2 before later features (.step, .3mf, units(), LSCM UVs, Surface Nets remeshing). For current v0.4.5 footprints and specs, see README.md and docs/reference/apis.md.

Phase 3.6 — Independent Automated Verification Report

All gates below are executed independently of forma-core's internal assertions via bench/gate_verify.py, bench/verify.py, and crates/forma-core/tests/fuzz_invariants.rs.


1. Geometric Accuracy, Topological Invariants & Downstream Validity (12/12)

Independent verifier: trimesh 5.2.2 + scipy 1.18.1 (cKDTree symmetric Chamfer & Hausdorff-99, exact Generalized Winding Number Volumetric IoU, surface normal consistency), 16-layer planar contour slicing on binary .stl, and stock headless Blender 5.3.0 import check (BL).

Task Cold+Eval+Export Watertight NM Edges Chamfer Hausdorff-99 Vol IoU Blender 5.3 Import Planar Slice
flange_plate 109.30 ms True 0 0.03581 0.0860 1.000 PASS PASS
l_bracket 26.00 ms True 0 0.02623 0.0635 1.000 PASS PASS
pipe_tee 100.59 ms True 0 0.04529 0.1091 1.000 PASS PASS
slotted_block 16.71 ms True 0 0.04145 0.1011 1.000 PASS PASS
stepped_shaft 15.23 ms True 0 0.03417 0.0834 1.000 PASS PASS
table_frame 20.22 ms True 0 0.02350 0.0579 1.000 PASS PASS
beveled_enclosure 17.45 ms True 0 0.03565 0.0875 0.980 PASS PASS
hex_nut 20.44 ms True 0 0.02523 0.0633 1.000 PASS PASS
subdiv_mug 81.71 ms True 0 0.02704 0.0693 1.000 PASS PASS
pedestal_bowl 13.37 ms True 0 0.02559 0.0631 1.000 PASS PASS
arched_bridge 14.35 ms True 0 0.03769 0.0917 1.000 PASS PASS
chess_pawn 13.20 ms True 0 0.02184 0.0529 0.997 PASS PASS
  • Canonical 12/12 Gate: 12/12 PASS
  • Median cold-start + eval + strict invariant check + .glb export latency: 18.83 ms (gate target < 50 ms: PASS; 50× faster than stock Blender 5.3's 947.5 ms).
  • .blend Bridge Verification: forma eval --out bridge_test.blend followed by stock Blender 5.3 --background reload + bmesh manifold check (NM == 0): PASS.
  • Note on slicer CLI: Neither prusa-slicer nor orca-slicer is installed on this host, so binary .stl printability is verified by trimesh.is_volume + 16-layer Z-axis cross-section slicing confirming closed manifold 2D contours at every slice layer.

2. Footprint, Latency & MCP Protocol Proof

Metric Stock Blender 5.3.0 forma / forma-mcp Ratio
Bundle / Binary Size 953 MB (200 MB bin) 1.1 MB static binary 866× smaller
Peak Memory RSS 223 MB 2.16 MB 103× less RAM
Cold-start + Eval + .glb Export 947.5 ms (672.6 ms empty) 8.05–18.83 ms 50×–117× faster
Coplanar Cube Union (2×2×2) FLOAT: BROKEN (NM=22, vol=8.0) Watertight (NM=0, vol=12.0000) Exact
MCP tools/list Schema Budget — 722 o200k tokens (4 tools) < 800 PASS
MCP End-to-End (initialize, eval, tx/checkpoint, tx/rollback, export) — PASS (vol=8.000 restored, IoU=0.980, BL=True) PASS

3. Fuzzing & Determinism Proof

  • Unconstrained randomized property fuzzing (test_10000_fuzzed_modeling_operations_zero_crashes_zero_nans):
    • 11,000 randomized operations across 1,000 episodes (boxes, cylinders, cones, spheres, revolves, transforms, extrudes, insets, bevels, Catmull-Clark subsurf, shells, CSG booleans, mirrors, checkpoints, rollbacks, undos).
    • 0 panics/crashes, 0 NaNs, 94.4% unconstrained watertightness, 5.4 ms/op average.
  • Strict transactional fuzzing (test_strict_transactional_fuzz_100_percent_watertight):
    • 500 sequential operations with strict_manifold = true and automatic rollback on invariant rejection: 100.0% watertight, 0 non-manifold edges, 0 NaNs.
  • Byte-identical determinism (test_deterministic_byte_identical_glb_replay):
    • Repeated full bevel + shell + boolean + .glb replays produce 100% byte-for-byte identical binary .glb files (BTreeMap canonical face ordering).