Graft Robotics Documentation
Graft pairs any frontier LLM (Claude, Antigravity, Codex, Gemini) or air-gapped local LLM (Apple Silicon MLX on Mac mini M4/M5, Google Gemma 4 + LiteRT-LM, or Ollama on Pi 5 / Jetson) with physical robots through a deterministic, default-deny software pre-flight boundary built on the public Apache-2.0 Robot Registry Foundation stack.
robot-gate, graft-core, graft-watchdog, bounded-embodiment, and robot-md-gateway provide a deterministic, default-deny software pre-flight boundary and offline-verifiable RFC 8785 / SHA-256 audit layer — never a certified ISO 13850 hardware emergency stop. Always pair with hardwired shop E-stops and ISO 13849-1 safety relays.
Install via uv / uvx (Recommended — Rust-fast, zero PEP 668 venv headaches)
uv tool install robot-md-gateway --with bounded-embodiment --with castor-hal --with robot-md
# Fallback if uv is unavailable:
# pip install robot-md bounded-embodiment robot-md-gateway castor-hal
# Zero-install Envelope 0.2 keygen & validation via uvx (bounded-embodiment 0.1.1)
uvx --from bounded-embodiment be keygen --out ./lab-key.json --lab my-shop --contact [email protected]
uvx --from bounded-embodiment be envelope validate ./envelope.json
# Scaffold bearers.yaml + .env and verify attached hardware (zero motion)
robot-md-gateway init --yes
robot-md-gateway list-actuators
# Start the default-deny gateway & record-before-dispatch signed audit log
robot-md-gateway serve --robot-md ./ROBOT.md --bearers ./bearers.yaml --port 8080
graft-core 0.1.0 & graft-watchdog):
Measured directly on Raspberry Pi 5 (ARM64): graft-core 0.1.0 runs 5,000 swept-path checks at 2.11 µs / check (26.6× faster than pure Python) and converts 10,000-pt LAN LiDAR clouds to manifold .obj meshes at 3.30 ms p50 / 303.3 Hz (3.9× speedup). The standalone 540.9 KB static Rust graft-watchdog daemon handles /stop in 1.69 ms p50 / 8.15 ms p99 under 2-core load with verified 400 ms heartbeat auto-trip.
2. Supported Hardware & Transports
| Hardware | Install via uv (Recommended) | Notes |
|---|---|---|
| SO-ARM101 (Feetech STS3215) | uv tool install robot-md-gateway --with castor-hal --with so-arm101-actuator --with bounded-embodiment | USB serial /dev/ttyACM0 @ 1 Mbps on Pi 5 / Jetson; add user to dialout. Fallback: pip install so-arm101-actuator. |
| UR5e / Fairino FR5 / xArm6 | uv tool install robot-md-gateway --with castor-hal --with bounded-embodiment --with mujoco | CNC tending cell with spindle/wall keep-outs + separate operator robot-md-gateway heartbeat --gateway .... |
| Menlo.ai Asimov 1 | uv tool install robot-md-gateway --with castor-hal --with bounded-embodiment --with mujoco | 25-DoF humanoid; start Day 1 at L1 30% speed single-object picks before bimanual shelf unload. |
| CAN / J1939 / ISOBUS / ROS 2 | castor_hal.Transport | Implement 5 methods (open, close, set_goal, read_state, estop) and wrap in TransportActuator. |
3. graft-robotics Plugin v0.4.0, MCP Apps & Air-Gapped Local LLMs
The graft-robotics plugin v0.4.0 exposes the full deterministic pre-flight boundary, World Model, Semantic Ratchet, and L0–L3 Trust Ladder natively to MCP-compatible hosts — so models never touch motor ports directly.
| v0.4.0 Capability | Count / Primitive | What It Provides |
|---|---|---|
| MCP App | Interactive Workbench UI | Side-pane workspace visualization, Trust Ladder controls, sensor freshness, and audit trail inspection. |
| MCP Form Elicitations | 3 (ctx.elicit) | Structured operator confirmation forms for cell onboarding, L1/L2 promotion sign-off, and safety gate approvals. |
| Playbooks | 5 (MCP Prompts + slash commands) | Guided workflows for L0 shadow rehearsal, cell commissioning, shift diagnostics, semantic tag ratcheting, and skill freezing. |
| Resources | 5 MCP Resources | Read-only access to active ROBOT.md / Envelope 0.2, live cell state, audit chain receipts, Skill Packs, and eval artifacts. |
| PreToolUse Hooks | Default-deny interceptor | Automatically intercepts actuation and state-mutating tool calls before dispatch to enforce pre-flight bounds. |
| MCP Tools | 14 Tools | Swept-path & bounds check, part mechanics, LAN device discovery, semantic guard & ratchet, trust ladder, and YAML skill freeze. |
Anthropic Claude Code / Marketplace
claude plugin marketplace add RobotRegistryFoundation/claude-code-plugins
claude plugin install graft-robotics@robotregistryfoundation
Google Antigravity (Side-Pane MCP App)
curl -fsSL https://raw.githubusercontent.com/craigm26/antigravity-plugins/main/install.sh | bash -s -- --plugin graft-robotics
OpenAI Codex CLI (~/.codex/config.toml)
[mcp_servers.graft_robotics]
command = "python3"
args = ["~/.gemini/config/plugins/graft-robotics/server/server.py"]
Google Gemini CLI (~/.gemini/settings.json / Extension)
curl -fsSL https://raw.githubusercontent.com/craigm26/antigravity-plugins/main/install.sh | bash -s -- --plugin graft-robotics
# Register server.py under mcpServers in ~/.gemini/settings.json
Apple Silicon MLX (Mac mini M4/M5 · $0/mo Air-Gapped LAN Server)
# Zero-copy unified memory inference on a ~$599 Mac mini M4/M5 over shop LAN
uv tool install mlx-lm
# Starter / fast edge model (E4B) or production MoE (26B A4B):
mlx_lm.server --model mlx-community/gemma-4-26b-a4b-it-4bit --host 0.0.0.0 --port 11434
# Alternative smaller model: mlx-community/gemma-4-e4b-it-4bit
# Run the deterministic gate on your robot Pi 5 / IPC:
robot-md-gateway serve --robot-md ./ROBOT.md --bearers ./bearers.yaml --port 8080
Google Gemma 4 Local (E4B / 26B MoE + LiteRT-LM · $0/mo)
# Multimodal vision + tool-calling + offline Tier 3 VLM Semantic Critic:
ollama pull gemma4:e4b-it-qat # compact edge footprint
# Or higher-capacity MoE on workstation / Mac mini:
ollama pull gemma4:26b-a4b-it-q4_K_M
# Optional Google LiteRT-LM edge NPU/GPU runtime:
uv pip install ai-edge-litert
On-Premises Air-Gapped Ollama on Pi 5 / Jetson ($0/mo Recurring)
# 1. On an internet-connected build host, mirror offline wheels:
pip download -d ./wheelhouse robot-md bounded-embodiment robot-md-gateway castor-hal mujoco
# 2. On the air-gapped Pi 5 / Jetson (zero cloud / zero Wi-Fi):
uv pip install --no-index --find-links ./wheelhouse robot-md bounded-embodiment robot-md-gateway castor-hal mujoco
ollama pull qwen3.5:4b
4. Multi-Sensor World Model, LAN LiDAR Meshes & Ambient Signals
Graft fuses local sensors (OAK-D Pro RGB-D, 6-DoF wrist F/T, PLC I/O) with any authorized networked device on your shop LAN:
- Passive Device Discovery:
robot-gate devices scan(or MCP toolgraft_discover_devices) surfaces local webcams (/dev/video*), microphones, Wi-Fi radios (wifi://wlan0), serial buses, and LAN mDNS/ARP devices — requiring operator consent before attachment. - Live LAN LiDAR → MuJoCo 4.0 Meshes: Push 3D points from any networked PC via
POST /sensors/ingest. Rustgraft-core 0.1.0builds surface-culled manifold.objobstacle meshes at 303.3 Hz (3.30 ms p50 for 10,000 pts) and verifies clearance against tool paths. - Wi-Fi, Audio & Webcam Proximity: Push ambient signals to
POST /sensors/ambient— Wi-Fi RSSI/CSI human motion (≤ 1.2 m) or audio CNC tool chatter / spoken"STOP"immediately enforces Envelope 0.2 speed throttling or software hold (paired with hardwired ISO 13850 E-stops).
5. Material Strength, Payload & Coulomb Slip Physics
Before commanding a grasp, graft_check_part_mechanics verifies structural limits:
- Crush limits: e.g. corrugated cardboard ECT-32 blocks grip forces above
45 N; thin-wall aluminum brackets cap at140 N. - Coulomb slip safety factor (SF ≥ 1.8×): Automatically adapts friction coefficient between dry aluminum (
μ = 0.42) and coolant-wet machined parts (μ = 0.14, requiring 75.2 N vs. 35 N dry grip). - Payload & dynamic wrist torque: Enforces single-arm vs. bimanual ratings (e.g. Asimov-1
2.0 kgsingle /5.0 kgbimanual; UR5e5.0 kg).
6. Progressive Trust & Skill Graduation Ladder
| Level | Speed / Force | Approval | Graduation Criteria |
|---|---|---|---|
L0 · OBSERVE | 0% / 0% | Scan & dry-run only | Signed ROBOT.md + 0 unresolved zone unknowns |
L1 · ATOMIC | 30% / 50% | HiTL before every action | 3 consecutive clean small-object picks |
L2 · SUPERVISED | 60% / 75% | HiTL per chain + heartbeat | 5 consecutive clean multi-step runs |
L3 · AUTONOMOUS | 100% bounded | Frozen YAML skills | Auto-demotes to L1 on any drift, fault, or hardware swap |
7. Vertical Job Skill Packs
Drop in a pre-verified pack matching your robot and shop job, teach 2–3 datums in datums.yaml, and start cleanly at L0_OBSERVE:
robot-gate packs list
robot-gate packs install cnc-tending-haas-vf2 --dir ./my-cnc-cell --sign
robot-gate check --dir ./my-cnc-cell --sim-only
cnc-tending-haas-vf2 (~20m), warehouse-unpack-and-ship-humanoid (~15m), benchtop-kitting-and-qc-soarm101 (~10m), and mobile-farm-ag-can-j1939 (~25m).
8. Semantic-to-Deterministic Ratchet (semantic_guard)
Deterministic geometry and material limits alone cannot see unlabeled semantic hazards (e.g., RoboHarm’s unlabeled bleach + ammonia inside legal coordinates). Graft closes this gap monotonically as VLMs improve:
- Tier 1 — Geometry + Mechanics Only: Blocks 12/12 modeled hazards and allows 6/6 nominal tasks (0% false-block), while honestly scoring 0/6 on unlabeled semantic hazards.
- Tier 2 — Semantic Provenance & Work-Order Matrix (Deterministic, Zero VLM): Pairwise chemical/electrical/thermal rules and default-deny
provenance="unknown"escalation on high-consequence verbs (pour,mix,insert,heat,cut,drop_into) plus work-order part checks catch 4/6 deterministically with zero VLM. - Tier 3 — Pluggable Veto-Only VLM Critic (
OpenAICompatibleVLMCritic): Attach Claude, Gemini, GPT, Apple MLX / Gemma 4, or local Ollama/Qwen-VL as a read-only critic. Strictly monotonic — it can onlyVETO_HAZARDorESCALATE_L1_HUMAN, never loosen Tier 1–2 — catching 6/6. - The Ratchet (
ratchet_tag): Newly discovered hazard tags are crystallized (5/5 repeat-verified) into signed SHA-256 deterministic world-model rules so future runs block them in microseconds.
9. Benchmarks, RoboCurve SET-Sim & Offline EV-03 Verification
Every benchmark published on graftrobotics.ai/benchmarks/ ships with signed JSON artifacts and an offline-verifiable RRF bounded-embodiment 0.1.1 rehearsal bundle:
- 4-Layer Honest Eval: Modeled hazards 12/12, Nominal tasks 6/6 (0% false-block), Unmodeled semantic progression Tier 1 0/6 → Tier 2 4/6 → Tier 3 6/6 (5/5 ratcheted), RRF
bounded-embodiment 0.1.1254 hostile proposals / 0 leaks + 6/6 fault injections, and signed EV-03 rehearsal (consistent: yes,verdict: INCONCLUSIVE (SIMULATION)). - RoboCurve SET-Sim (MuJoCo 4.0.1 Rehearsal): Across 36 paired trials of the 6 Six Easy Tasks under ±5 mm jitter, Open-Loop scores 9/36 (25.0%) while Graft Closed-Loop scores 36/36 (100.0%) with 0 bounds violations.
bottle, padlock, container) transfer well with 6-DoF wrist F/T; thin-film and fabric deformables (envelope, backpack, ziplock) are articulated proxies and remain harder on physical hardware.
Verify the Official Signed EV-03 Rehearsal Bundle Offline
mkdir -p /tmp/graft-ev03/raw
curl -fsS https://graftrobotics.ai/benchmarks/verified-run-keyring.json -o /tmp/graft-keyring.json
for f in report.json envelope.json command-space.json raw/commands.csv raw/samples.csv; do
curl -fsS "https://graftrobotics.ai/benchmarks/verified-run/$f" -o "/tmp/graft-ev03/$f"
done
uvx --from bounded-embodiment be verify --keys /tmp/graft-keyring.json /tmp/graft-ev03
Full tables, raw CSVs, and SHA-256 checksums: graftrobotics.ai/benchmarks/ →
10. Safety Boundary & Compliance
Every gate check, world-model mutation, and dispatch decision is written record-before-dispatch to an offline-verifiable RFC 8785 JCS SHA-256 hash chain (EU Machinery Regulation 2023/1230 traceability). robot-gate, graft-core, graft-watchdog, bounded-embodiment, and robot-md-gateway are deterministic software pre-flight boundaries and audit layers — never replacements for certified ISO 13850 hardwired E-stops or ISO 13849-1 safety relays.