graft robotics · docs

Graft Robotics Documentation

Graft pairs any frontier LLM (Claude, Antigravity, Codex, Gemini) or offline local LLM (Ollama on Pi 5 / Jetson) safely with physical robots using the public Apache-2.0 Robot Registry Foundation stack.

Mandatory Safety Boundary: robot-gate, bounded-embodiment, and robot-md-gateway provide a deterministic, default-deny software pre-flight boundary and offline-verifiable RFC 8785 / SHA-256 audit log — never a certified ISO 13850 hardware emergency stop. Always pair with hardwired shop E-stops.

Install from Public PyPI (Python 3.10+, Offline-Capable)

pip install robot-md bounded-embodiment robot-md-gateway castor-hal

# Validate your physical Envelope 0.2 keep-in / keep-out bounds
be keygen --out ./lab-key.json --lab my-shop --contact [email protected]
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

2. Supported Hardware & Transports

HardwareExtra Package / DriverNotes
SO-ARM101 (Feetech STS3215)pip install so-arm101-actuatorUSB serial /dev/ttyACM0 @ 1 Mbps on Pi 5 / Jetson; add user to dialout.
UR5e / Fairino FR5 / xArm6pip install mujocoCNC tending cell with spindle/wall keep-outs + separate operator robot-md-gateway heartbeat --gateway ....
Menlo.ai Asimov 1pip install mujoco25-DoF humanoid; start Day 1 at L1 30% speed single-object picks before bimanual shelf unload.
CAN / J1939 / ISOBUS / ROS 2castor_hal.TransportImplement 5 methods (open, close, set_goal, read_state, estop) and wrap in TransportActuator.

3. LLM Marketplaces, MCP Apps & Air-Gapped On-Prem

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"]

On-Premises Air-Gapped ($0/mo Recurring)

# On an internet-connected build host:
pip download -d ./wheelhouse robot-md bounded-embodiment robot-md-gateway castor-hal mujoco

# On the air-gapped Pi 5 / Jetson:
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 tool graft_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. Graft builds surface-culled .obj obstacle meshes and verifies exact tool clearance with mujoco.mj_geomDistance.
  • 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.

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 at 140 N.
  • Coulomb slip safety factor (SF ≥ 1.8×): Automatically adapts friction coefficient between dry aluminum (μ = 0.42) and coolant-wet machined parts (μ = 0.13).
  • Payload & dynamic wrist torque: Enforces single-arm vs. bimanual ratings (e.g. Asimov-1 2.0 kg single / 5.0 kg bimanual; UR5e 5.0 kg).

6. Progressive Trust & Skill Graduation Ladder

LevelSpeed / ForceApprovalGraduation Criteria
L0 · OBSERVE0% / 0%Scan & dry-run onlySigned ROBOT.md + 0 unresolved zone unknowns
L1 · ATOMIC30% / 50%HiTL before every action3 consecutive clean small-object picks
L2 · SUPERVISED60% / 75%HiTL per chain + heartbeat5 consecutive clean multi-step runs
L3 · AUTONOMOUS100% boundedFrozen YAML skillsAuto-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
Available packs: 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. 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). Software gates never replace certified ISO 13850 hardwired E-stops or ISO 13849-1 safety relays.