A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server
Efficiency & Justification Analysis: Forma + RAG KB + Deterministic forma-print vs. Large Model Guesswork (R5)
Scope: Evaluates Forma (forma-core, forma-lang, forma-mcp) + forma-print Tier 1 + SQLite FTS5/BM25+TF-IDF RAG Knowledge Base against ungrounded frontier LLM guesswork (e.g., Fable 5.2 / claude-fable-5-class reasoning loops without deterministic DFM or grounded hardware/paper retrieval) across four operational axes — Accuracy & Hallucination Mitigation, Latency, Token & Compute Cost, and Deterministic Geometry & Printer-API Verification — while defining explicit architectural boundaries showing why this stack does not replace full slicers, interactive GUI CAD applications, printer firmware, or host/fleet daemons.
1. Executive Summary & Attribution Boundary
Pure frontier-LLM guesswork fails predictably on 3D printing workflows for two structural reasons:
- Text tokens cannot compute continuous 3D geometry or print physics. Without a deterministic geometry kernel, an LLM estimating overhang angles, inward thin walls (
< 0.84 mm), Z-slice floating islands, center-of-mass tipping stability, multi-part clearances, or valid Deflate.3mfZIP binaries is performing mental simulation over coordinates—a task where even top reasoning models exhibit Turn-1 geometric errors, silent non-manifold corruptions, and3×–5×multi-turn repair token blowups. - Parametric LLM memory cannot reliably recall 22+ printer ecosystems' exact ports, auth gates, sensor feeds, fault hex codes, and undocumented boundaries. Guessing whether a printer exposes an open local REST API (PrusaLink
80/tcp), requires LAN-Only + Developer Mode MQTTS/FTPS (8883/tcp/990/tcp), uses SDCP WebSockets (3030/tcp), or is strictly enterprise-gated (closed_or_usb_only/unavailable) induces subtle, hard-to-debug integration failures.
Combining Forma-Pipe (788 o200k_base MCP tokens) + opt-in forma-print (391 o200k_base MCP tokens, 2.294 MB static binary) + a 1.7188 MiB offline SQLite FTS5/TF-IDF RAG index (448 chunks, 354 unique primary-source URLs) resolves both failure modes locally in milliseconds:
- Deterministic pre-print DFM + orientation +
.3mf/.stepexport runs in7.01–32.16 ms(p50) on standard CAD parts (56.82–101.62 msfor DFM/export on an8,192-face subdivided torus), with0extra bytes on coreforma/forma-mcp/wasm/forma.wasm. - Hybrid BM25+TF-IDF RAG retrieval across 130 primary-source-verified records and the
Shpigford/nurbinspection report achieves18/18(100%) rank-1 hits atp50 = 1.925 ms/p95 = 3.071 ms(top_k=5), compressing75,723o200k_basecorpus+report tokens down to1,052.94retrieved chunk-text tokens (71.92×reduction atk=5;109.58×atk=3).
Three-Tier Evidence & Attribution Policy
Every claim in this document is explicitly attributed to one of three evidence tiers. No external Fable 5.2 API runs were fabricated or executed locally.
| Evidence Tier | Source & Scope | Verification Method |
|---|---|---|
| Tier A — Live Local Measurements | Executed offline on this host via python3 research/scripts/bench_efficiency.py --json (tiktoken o200k_base, target/release/{forma,forma-mcp,forma-print}, research/rag/forma_print_kb.sqlite, tests/e2e/fixtures/*.forma, runs=15 fast / 5 high-poly, rag-runs=3). |
Reproducible zero-side-effect run (tempfile.TemporaryDirectory(), exit 0). |
| Tier B — Published Empirical Baselines | Verified telemetry already recorded in repository reports: research/reports/nurb_inspection.md (Shpigford/nurb & Shpigford/nurb-benchmarks claude-fable-5 / claude-opus-5 / gpt-5.6-sol telemetry), docs/PHASE1_BASELINE_REPORT.md, docs/PHASE2_LANGUAGE_ABLATION.md, docs/EXTENDED_BENCHMARK_REPORT.md, docs/VERIFICATION_REPORT.md, and docs/AUTORESEARCH_HILLCLIMB.md. |
Direct file/line citations in §6 and "published_baselines" in bench_efficiency.py. |
| Tier C — Transparent Analytical Estimates | Clearly labeled mathematical bounds (e.g., raw .3mf/.step token equivalent if fed directly to an LLM, or multi-turn retry cost multipliers when ungrounded guesswork fails). |
Explicit formula and stated assumptions inline wherever used. |
2. Artifact & Isolation Footprint (Tier A — Live Measured)
crates/forma-print is included in Cargo.toml workspace.members only (excluded from default-members), and research/ is excluded from both Cargo.toml and package.json files.
| Artifact | Path | Exact Size | Notes / Isolation Status |
|---|---|---|---|
| Core CLI binary | target/release/forma |
1,818,160 B (1.734 MB) |
0 extra bytes from forma-print or research/ |
| Core MCP binary | target/release/forma-mcp |
1,775,040 B (1.693 MB) |
4 tools, 788 o200k_base tokens (< 800 cap) |
| Core WASM bundle | wasm/forma.wasm |
786,102 B (767.68 KB) |
0 extra bytes from forma-print or research/ |
| Opt-in Print binary | target/release/forma-print |
2,405,824 B (2.294 MB) |
Standalone CLI + opt-in --mcp (391 o200k_base tokens) |
| RAG SQLite Index | research/rag/forma_print_kb.sqlite |
1,802,240 B (1.7188 MiB) |
448 chunks, FTS5 + IDF vocab, read-only queryable |
| Raw Corpora + Report | research/corpus/*.jsonl + nurb_inspection.md |
290,300 B (269,323 B JSONL) |
130 verified records + 1 report (75,723 o200k_base tok) |
3. Four-Axis Comparison vs. Large Model Guesswork
Axis 1 — Accuracy & Hallucination Mitigation
1A. Why Pure LLM Guesswork Fails in Practice (Tier B + Tier A)
- Even
Shpigford/nurbengineers guardrails because frontier LLMs cannot be trusted to guess (Tier B): As documented inresearch/reports/nurb_inspection.md:48-70,nurbhad to introducemeasurements.py(measured()raisingMeasurementErroragainstmeasurements.tomlto prevent LLMs from fabricating physical mating dimensions) alongside a 15-rule B-rep printability gate (checks.py) andprobe.pyface pinning. - Silent geometric corruption in standard scripting (
Tier B): Indocs/PHASE1_BASELINE_REPORT.md:32,45(48 Blenderbpytrials across 4 models),5exports had silent non-manifold corruption (WT=False,NM=4..6,IoU=0.0) while Blender exited with code0, and multi-turn repair loops exploded token usage3×–5×(2,932–11,678tokens). - Cross-lab reliability gap (
Tier B): Across254paired matrix trials indocs/EXTENDED_BENCHMARK_REPORT.md:26,44-47,72-74(12 late-2026 models, 10 labs),Forma-Pipeachieved48/48(100%) Pass@3 atlow/mediumreasoning (0.975–0.976Mean Volumetric IoU) vs.20/24(83.3%) flat Pass@3 for Blenderbpyacrosslow,medium, andhighreasoning. Indocs/PHASE2_LANGUAGE_ABLATION.md:26-28,Forma-Pipeoutperformedbpyby+12.5 ppPass@1 (68.8% → 81.2%) and+12.5 ppPass@3 (85.4% → 97.9%). - Live deterministic defect detection vs. visual guesswork (
Tier A): Ontests/e2e/fixtures/upside_down_t.forma, an unassisted LLM might overlook cantilever bridging until slicing fails;forma-print checkdeterministically flagsbridges=fail(rc=3,printable=false), andforma-print orientevaluates10candidates and rotates the part into a9/9passing orientation (printable=true). Onfunctional_bracket.forma(734faces), BVH raycasting + normal checks pinpoint bothoverhangs=fail(73.1°horizontal bore) andwall_thickness=fail(0.007 mmthin tangent edge< 0.84 mm) in27.77 ms(p50).
1B. Anti-Hallucination Grounding in Printer Protocols, Sensors, Fault Codes & Printability Theory (Tier A)
Instead of relying on frontier-model parametric weights (which conflate firmware revisions, port numbers, and proprietary lockouts), research/rag/query_rag.py achieves 18/18 (100%) rank-1 accuracy across top_k ∈ {3, 5, 10} over 130/130 source_verified == true records (354 unique primary-source URLs):
| Domain | Example Grounded Query (bench_efficiency.py) |
Rank-1 Entity (k=5) |
Verified Anti-Hallucination Facts Retrieved |
|---|---|---|---|
| Fault Codes | "HMS_0700-0100-0002-0002" |
bambu_lab |
Exact 16-digit HMS code (AMS assist motor overloaded), official wiki.bambulab.com URL (manufacturers.jsonl:1). |
| Local Auth & Ports | "Bambu Lab MQTTS 8883 FTPS 990 LAN access code" |
bambu_lab |
8883/tcp MQTTS, 990/tcp Implicit FTPS, 322/tcp RTSPS, LAN Only + Developer Mode (ACS) requirement, bblp + 8-digit access code (manufacturers.jsonl:1). |
| REST + Error Code | "PrusaLink HTTP REST API #31208" |
prusa_research |
80/tcp OpenAPI 3.0.1 (/api/v1/files/{storage}/{path}, Digest/X-Api-Key), #31208 hotend mintemp (manufacturers.jsonl:2). |
| Klipper Telemetry | "Voron Moonraker 7125 Klipper ADXL345" |
voron_design |
7125/tcp Moonraker HTTP + JSON-RPC WebSocket, trusted_clients CIDR auth, ADXL345 input shaper (manufacturers.jsonl:3, software.jsonl:24). |
| MSLA WebSocket | "WebSocket file upload SDCP" (tech=msla, protocol=sdcp) |
elegoo |
3000/udp 'M99999' discovery, 3030/tcp SDCP v3.0 WebSocket + 1 MB chunked /uploadFile/upload with S-File-MD5 (manufacturers.jsonl:6). |
| Closed Boundaries | "Stratasys F123 MTConnect GrabCAD SDK closed" |
stratasys |
Read-only MTConnect XML (5000/tcp F123 / 53750/tcp Fortus) vs. closed_or_usb_only GrabCAD SDK (manufacturers.jsonl:15; paired with Markforged unavailable local endpoints at manufacturers.jsonl:14). |
| Peer-Reviewed Math | "Make It Stand center of mass stability", "bridging steady scaffoldings...", "voxel printability...", "build orientation..." |
prevost-2013, dumas-2014, telea-2011, delfs-2016 |
Exact DOIs (10.1145/2461912.2461957, 10.1145/2601097.2601153, 10.1007/978-3-642-21569-8_34, 10.1016/j.addma.2016.06.003) grounding CoM convex-hull stability, bridge span bounds, minimum wall thickness (1.6 mm/1.0 mm Štava 2012), $C^0$ non-smooth orientation curves (Ezair 2015), and +0.13 mm hole expansion (Grgić 2023). |
Axis 2 — Latency (Tier A Live vs. Tier B Published Baselines)
2A. Live Deterministic CLI & MCP Latency (Tier A — bench_efficiency.py --json)
Workload (tests/e2e/fixtures/) |
Operation | Printer | Runs | p50 (ms) |
p95 (ms) |
Deterministic Output |
|---|---|---|---|---|---|---|
box_meters.forma (6 faces) |
check --heatmap |
bambu_x1c |
15 | 7.519 |
8.954 |
rc=0, 9/9 pass, 24.0 cm³, HM 13,137 B |
upside_down_t.forma (28 faces) |
check --heatmap |
bambu_x1c |
15 | 7.732 |
8.173 |
rc=3, bridges fail, 38.88 cm³, HM 14,241 B |
upside_down_t.forma |
orient |
bambu_x1c |
15 | 7.010 |
7.963 |
rc=0, 10 cands, rotated=true, 9/9 pass |
upside_down_t.forma |
export --orient .3mf |
bambu_x1c |
15 | 8.925 |
10.734 |
7,509 B (1.574× file Deflate, 8 entries) |
upside_down_t.forma |
export --orient .step |
bambu_x1c |
15 | 7.482 |
8.866 |
19,958 B (SI_UNIT(.MILLI.,.METRE.)) |
functional_bracket.forma (734 faces) |
check --heatmap |
bambu_x1c |
15 | 27.770 |
35.217 |
rc=3, overhangs+wall_thickness fail, HM 18,323 B |
multi_color_ams.forma (60 faces) |
check --heatmap |
bambu_x1c |
15 | 9.279 |
10.115 |
rc=0, ams_swaps=2, purge=1.116 g, HM 18,580 B |
multi_color_enclosure.forma (106 faces) |
check --heatmap |
bambu_p1s |
15 | 10.649 |
15.103 |
rc=0, ams_swaps=26, purge=14.508 g, HM 16,991 B |
multi_color_enclosure.forma |
orient |
bambu_p1s |
15 | 28.401 |
31.662 |
rc=0, 19 cands, rotated=false, printable=true |
multi_color_enclosure.forma |
export --orient .3mf |
bambu_p1s |
15 | 32.163 |
39.767 |
2 parts, 8,808 B (2.234× file Deflate, 8 entries) |
multi_color_enclosure.forma |
export --orient .step |
bambu_p1s |
15 | 28.648 |
82.668 |
2 parts, 78,659 B |
high_poly.forma (8,192 faces) |
check --heatmap |
bambu_x1c |
5 | 101.622 |
158.350 |
rc=3, overhangs fail, 55.64 cm³, HM 78,948 B |
high_poly.forma (8,192 faces) |
orient |
bambu_x1c |
5 | 868.282 |
940.500 |
rc=0, 24 cands, rotated=false |
high_poly.forma (8,192 faces) |
export .3mf |
bambu_x1c |
5 | 56.823 |
57.585 |
185,453 B (5.998× file / 6.031× payload Deflate) |
high_poly.forma (8,192 faces) |
export .step |
bambu_x1c |
5 | 41.521 |
43.046 |
7,693,075 B |
- MCP Handshake & Tool-Call Latency (
Tier A):forma-mcphandshake (initialize+notifications/initialized+tools/list) took6.521 ms;forma-print --mcphandshake took5.564 ms; liveupside_down_t.formatool calls executed in7.764 ms(print_check),3.094 ms(print_prep),4.914 ms(print_export), and0.261 ms(print_profiles). - RAG Query Latency (
Tier A, 54 timed runs pertop_k):p50 = 1.670 ms/p95 = 3.041 ms(k=3),p50 = 1.925 ms/p95 = 3.071 ms(k=5),p50 = 2.210 ms/p95 = 4.061 ms(k=10); cold-open (conn=None) samples measured1.657–2.607 ms.
2B. Comparison vs. Heavy Kernels & Frontier Agent Loops (Tier B)
- vs.
Shpigford/nurb(nurb_inspection.md:30):nurbincurs a~45 sOCCT/Python cold import (requiring a long-livedserve.pydaemon) and30–400 mswarm rebuilds. Stateless coldforma-print checkon typical parts (7.52–27.77 msp50) is~1,620×–5,980×faster thannurb's cold boot and faster than or on par with its warm daemon loop. - vs. Stock Blender 5.3 (
docs/VERIFICATION_REPORT.md:27,39,docs/PHASE2_LANGUAGE_ABLATION.md:26-27):formacold+eval+export (18.83 msmedian) is50×faster than Blender 5.3 (947.5 ms), andForma-Pipemedian engine latency (25.9 ms) is50.4×faster thanbpy(1,306.8 ms). - vs.
claude-fable-5onShpigford/nurb-benchmarks(nurb_inspection.md:104-115): Even withnurbMCP feedback,claude-fable-5took139 s(medium) /219 s(high) onbit_blockand253 s(medium) /652 s(high) onbundle_holder(claude-opus-5high:1,140 s;gpt-5.6-solhigh:331 s). Deterministic local DFM + RAG lookups execute in~2–35 ms, shifting iteration from multi-minute LLM conjecture loops to sub-50 ms verified checks.
Axis 3 — Token & Compute Cost (Tier A Live + Tier B Published + Tier C Analytical)
3A. Exact o200k_base MCP Schema & Tool-Call Token Budgets (Tier A)
- Tool Schema Discovery (
tools/listcompact JSON):- Core
forma-mcp(eval,inspect,tx,export):788o200k_basetokens (2,179 B;790compact result;968pretty-printed). - Opt-in
forma-print --mcp(print_check,print_prep,print_export,print_profiles):391o200k_basetokens (1,468 B;393compact result;687pretty-printed). - Combined (
forma-mcp+forma-print --mcp):1,179o200k_basetokens (0added to coreforma-mcpwhen print is not loaded)—compared withnurb's multi-tool suite +MCP_MAX_CHARS = 149,000envelope and injecteddoctrine.md(nurb_inspection.md:39-41).
- Core
- Live
forma-print --mcpResponse Payloads (upside_down_t.forma):print_check:785o200k_basetokens (2,165 B) — flagsbridgesfail in one call.print_prep:2,524o200k_basetokens (7,388 B) — includes top-5 candidates + post-orient audit.print_export:236o200k_basetokens (546 B) — confirms7,509 BDeflate.3mfwritten.print_profiles:10,203o200k_basetokens (30,357 B, unfiltered all 18 printers / 9 materials / 6 inserts — only called once or filtered by--tech).
- 4-View Composite Heatmap Savings (
Tier B+Tier A): Rendering all 4 orthographic/isometric severity views into one512×5122×2 composite PNG (13,137–78,948 B,3.92 mspure-Rust renderer perdocs/AUTORESEARCH_HILLCLIMB.md:29) cuts VLM image-token cost4×vs. 4 separate view images (nurb_inspection.md:80).
3B. Exact RAG Token Compression Across k ∈ {3, 5, 10} (Tier A)
Full raw corpus + report size: 75,723 o200k_base tokens (290,300 B: software.jsonl 22,652 + manufacturers.jsonl 30,928 + papers.jsonl 15,795 + nurb_inspection.md 6,348). Total DB chunks.text across 448 chunks: 76,571 o200k_base tokens (36,147 lexical words; 87,062 embedding_ready_text tokens).
top_k |
Rank-1 Accuracy (18 Queries) | p50 / p95 (ms) |
Mean Retrieved chunks.text (o200k_base) |
Compression vs. Raw (75,723 tok) |
Compression vs. DB text (76,571 tok) |
Mean embedding_ready (o200k_base) |
Mean query_kb JSON (o200k_base) |
Unique Primary URLs |
|---|---|---|---|---|---|---|---|---|
| 3 | 18/18 (100%) |
1.670 / 3.041 |
691.00 |
109.58× |
110.81× |
767.50 |
961.89 |
35 |
| 5 | 18/18 (100%) |
1.925 / 3.071 |
1,052.94 |
71.92× |
72.72× |
1,180.06 |
1,577.78 |
52 |
| 10 | 18/18 (100%) |
2.210 / 4.061 |
1,996.06 |
37.94× |
38.36× |
2,247.39 |
3,063.56 |
89 |
3C. Frontier LLM Compute Spend vs. Zero-GPU Local Rust (Tier B + Tier C)
- Published CAD & Printability Token/USD Spend (
Tier B):docs/PHASE2_LANGUAGE_ABLATION.md:53-55:Forma-Pipereduced total API tokens2.48×(165,523 → 66,724), completion tokens4.85×(94,085 → 19,393), and median code tokens5.60×(644 → 115) vs.bpy.docs/EXTENDED_BENCHMARK_REPORT.md:45-47,74:Forma-Pipe(low/mediumreasoning) cost$0.132–$0.202(100%Pass@3) vs.$1.285(bpyhighreasoning,83.3%Pass@3 —6.4×–9.7×cheaper).research/reports/nurb_inspection.md:104-115:claude-fable-5burned3,204($0.95)–9,028($1.92) tokens onbit_blockand8,667($1.47)–36,715($4.84) tokens onbundle_holder(gpt-5.6-solreached593,633cumulative context tokens onbundle_holder).
- Why Local Deterministic Offload Eliminates Guesswork Token Burn (
Tier C— Analytical Estimate):- Raw Mesh / B-Rep Context Prohibition: Feeding
high_poly.forma's1,112,436 Buncompressed.3mfXML or7,693,075 B.steptext directly into an LLM (~4 bytes/tokenconservative text density →~278k–1.92Mtokens) exceeds or saturates frontier context windows just to inspect one8,192-face mesh.forma-printaudits that mesh locally in101.62 msand returns a~785-token structured JSON verdict + optional78.9 KB4-view PNG (~350×–2,400×smaller than raw geometry serialization). - Hardware/Protocol Context Compression: Injecting the full
75,723-token corpus on every session vs.1,052.94retrieved tokens atk=5saves~74,670prompt tokens per turn (71.92×reduction). Over a 3-turn debug session where ungrounded guesswork triggers even 1 wrong port/fault retry (observed3×–5×repair blowup inPHASE1_BASELINE_REPORT.md:43), deterministic RAG + DFM avoids extra reasoning/repair turns while adding$0.00local CPU compute (2.16 MBpeak RSS forformavs.223 MBBlender 5.3 perVERIFICATION_REPORT.md:38).
- Raw Mesh / B-Rep Context Prohibition: Feeding
Axis 4 — Deterministic Geometry & Printer-API Verification (Tier A + Tier B)
| Verification Dimension | Ungrounded LLM Guesswork | Forma + forma-print + RAG KB |
|---|---|---|
| Topological Gate | Cannot verify closed 2-manifoldness from script text; Blender bpy silently exited 0 on 5 NM>0 corruptions (PHASE1_BASELINE_REPORT.md:32). |
WT=ok NM=0 B=0 checked first; strict: true auto-rolls back invalid booleans; 500-op strict fuzz = 100% watertight (VERIFICATION_REPORT.md:52). |
| DFM & Print Physics | Heuristic/visual guessing of overhangs, wall thickness, islands, and tipping. | 9 deterministic checks (profiles.rs 18 printers / 9 materials / 6 inserts): BVH ±12° cone-ray wall thickness, Z-slice + vertex-minima floating islands, bridge span vs. unsupported ceiling, 2D convex-hull CoM stability, spatial::clearance, AMS swap/purge estimation. |
| Unit & Slicer Packaging | Common m vs mm 1000× scaling errors; LLMs cannot synthesize valid binary Deflate ZIPs. |
Explicit --unit m|mm|auto (scale_to_mm=1000.0), pure-Rust RFC-1951 Deflate .3mf (unit="millimeter", <basematerials>, <m:colorgroup>, all 8 slicer-native entries, 1.574×–5.998× file-level compression), and AP214 .step (SI_UNIT(.MILLI.,.METRE.)). |
| Printer API & Fault Provenance | Vulnerable to hallucinated endpoints, outdated firmware auth assumptions, or invented fault codes. | Draft 2020-12 schema-validated JSONL (130/130 source_verified == true, 354 unique primary URLs), explicit not_publicly_documented / closed_or_usb_only / unavailable markers, enforced offline by validate_kb.py (5/5 stages). |
4. Explicit Non-Replacement Architectural Boundaries
Per contribute/forma-print.md and research/reports/nurb_inspection.md:146-150, forma-print + RAG is intentionally scoped as a lightweight pre-print verification, packaging, and knowledge-grounding layer — NOT a replacement for downstream manufacturing applications.
| External System Category | Representative Systems (from software.jsonl & nurb_inspection.md) |
What They Own (Out of Scope for forma-print Tier 1) |
What Forma + forma-print + RAG Owns |
Exact Handoff Contract |
|---|---|---|---|---|
| Full G-Code / MSLA Slicers | OrcaSlicer, PrusaSlicer, Bambu Studio, Cura / CuraEngine, CHITUBOX, Lychee Slicer |
Toolpath planning, Arachne variable line width, organic/tree supports, infill patterns, scarf seams, pressure advance, cooling fan curves, volumetric flow limits, .gcode/.bgcode/.ctb/.goo binary generation. |
Pre-slicer DFM audit, auto-orientation, unit scaling (m → mm), AMS/MMU swap estimation, and slicer-ready multi-material packaging. |
Deflate .3mf (unit="millimeter" + Metadata/{model_settings.config, project_settings.config, plate_1.json, Slic3r_PE_model.config, plate_1.png}) or .step; optional Tier 3 slicer-cli subprocess bridge (contribute/forma-print.md:132). |
| Interactive GUI CAD & Heavy B-Rep Daemons | OpenSCAD, CadQuery, build123d, Zoo/KCL, Shpigford/nurb Desktop (and conceptual desktop GUIs like Fusion 360 / Blender / Shapr3D) |
Interactive 3D viewports, constraint sketching, NURBS/BREP filleting/drafting UI, persistent workspace SQLite projects, ~45 s OCCT C++ runtime or ~953 MB GUI studio suites. |
1.734–2.294 MB stateless headless polyhedral modeling (Forma-Pipe), sub-40 ms DFM/orient/export, and 788 + 391 o200k_base MCP tools. |
.forma scripts, .step (faceted AP214), .stl, .obj, .glb, .3mf, plus 4-view diagnostic .png heatmaps. |
| Printer Firmware | Klipper, Marlin, RepRapFirmware, Prusa-Firmware-Buddy |
Real-time MCU step/dir timing, kinematics (CoreXY/Delta/bedslinger), PID thermal runaway loops, ADXL345 input shaping, CAN-FD toolboard comms, sensor interrupt handling. |
Static hardware envelope & thermal/nozzle constraints (profiles.rs), plus RAG-indexed firmware capabilities and fault-code diagnostics. |
G-code emitted by the user's slicer (never generated or streamed directly by Tier 1 forma-print). |
| Host, Fleet & Spool Daemons | OctoPrint, Moonraker, Mainsail, Fluidd, PrusaLink, Spoolman |
Long-running HTTP/WebSocket job queues, webcam RTSP/MJPEG streams, live temperature graphs, filament spool weight tracking, emergency cancel/pause control. | Exact primary-source protocol, port, auth mode, sensor telemetry, and fault-code lookup via query_rag.py (offline 1.7188 MiB SQLite DB). |
Verified local/cloud endpoint specs (Moonraker 7125/tcp, PrusaLink 80/tcp, SDCP 3030/tcp, Bambu 8883/990, or closed_or_usb_only); optional Tier 3 net-lan feature (contribute/forma-print.md:133). |
5. Reproducibility & Verification Commands
Run all commands from the repository root (zero tracked files are modified):
# 1. Reproduce all live Tier A measurements (footprints, MCP o200k tokens, CLI p50/p95, 18-query RAG)
python3 research/scripts/bench_efficiency.py --json
python3 research/scripts/bench_efficiency.py
# 2. Verify KB schemas, 130/130 source_verified records, secret scan, isolation, and RAG p95 < 100 ms
python3 research/scripts/validate_kb.py --json
# 3. Verify Tier 1 Rust implementation (profiles, units, BVH, DFM, heatmap, orient, 3MF/STEP, MCP)
cargo test -p forma-print
6. Cross-References
- Live Benchmark Script:
research/scripts/bench_efficiency.py - KB & RAG Validation Suite:
research/scripts/validate_kb.pyandresearch/rag/query_rag.py - M1 Inspection & Telemetry Baselines:
research/reports/nurb_inspection.md - Core CAD Benchmarks:
docs/PHASE1_BASELINE_REPORT.md,docs/PHASE2_LANGUAGE_ABLATION.md,docs/EXTENDED_BENCHMARK_REPORT.md,docs/VERIFICATION_REPORT.md,docs/AUTORESEARCH_HILLCLIMB.md - Tier 1–3 Architecture & Roadmap:
contribute/forma-print.md