robot-gate — Graft Robotics (graftrobotics.ai)
Deterministic on-robot deployment harness, ROS 2 pre-flight boundary interceptor, Rust safety kernel, 6-family Hand HAL, ISO 10218:2025 & EU 2023/1230 compliance pack generator, and offline Graft Cell Console.
Every time anything on a robot changes—ROBOT.md bounds, a skill/policy, an end-effector swap, or an arm transplanted onto a new desk or CNC cell—robot-gate runs a fast, offline 4-stage verification gate and emits a cryptographically signed gate_receipt.json. The on-robot runtime (robot-gate serve) and ROS 2 interceptor (robot-gate ros2-bridge) enforce a hard receipt latch: if a single byte changes or calibration drifts, the robot refuses to arm or republish commands until robot-gate check passes again.
Strict ISO 13850 Hardware E-Stop Boundary:
robot-gate,graft-core,graft-watchdog, androbot-md-gatewayprovide a deterministic, default-deny software enforcement gateway, pre-flight regression gate, and offline-verifiable RFC 8785 SHA-256 audit layer. They claim zero PL/SIL risk-reduction credit, are NOT a safety-rated emergency stop (ISO 13850), and never replace certified hardwired power cutoffs, ISO 13849-1 safety relays, light curtains, or physical spindle zero-speed interlocks.
<10s Zero-ROS-Install Demo (robot-gate demo --ros2)
Run the full ROS 2 & compliance pre-flight verification in one command—zero ROS 2 or robot hardware required:
robot-gate demo --ros2
# Or structured JSON output for scripts / CI:
robot-gate demo --ros2 --json
In under 10 seconds, robot-gate demo --ros2:
- Scaffolds a clean UR5e workspace and signs
ROBOT.mdv1.1 +envelope.jsonwith Ed25519. - Passes the 4-stage deterministic
robot-gate check --sim-onlygate and latchesgate_receipt.json. - Feeds a 5-command ROS 2 mock stream (
L0_OBSERVEshadow block, nominalPoseStamped, spindle keep-out violation,NaNcoordinate injection, and overspeedTwist) throughROS2BoundaryGate. - Verifies the RFC 8785 / SHA-256 hash-chained
audit_log.jsonl. - Generates and offline-verifies
graft-compliance-pack.zip(ISO 10218:2025 & EU 2023/1230).
Architecture Highlights
- ROS 2 Pre-Flight Boundary Interceptor (
robot-gate ros2-bridge): Drops cleanly between AI/VLA planners (MoveIt 2, OpenVLA, Isaac ROS, custom policies) andros2_control/ UR RTDE / Fairino FR5 / xArm6 without replacing ROS 2. Enforces signedROBOT.md+ Hard Receipt Latch + Trust Ladder speed clamping (L0_OBSERVE= 0% shadow deny,L1= 30%,L2= 60%,L3= 100%) and generates drop-ingraft_ros2_gate.launch.py&graft_ros2_params.yamlbundles. - 1-Click ISO 10218:2025 & EU 2023/1230 Compliance Pack (
robot-gate compliance-pack): Produces a tamper-evidentgraft-compliance-pack.zip(compliance_manifest.json+ Warm Workshop printablecompliance_dossier.html+ SHA-256 SBOM, strictly excluding all private keys) with fail-closed offline--verify. - Opt-In Hosted Fleet Receipt Vault (
robot-gate vault push/status): Zero phone-home whenGRAFT_VAULT_API_KEYis unset (100% air-gap / ITAR-EAR safe). When opted in, pushes signed receipt hashes, verdicts, and drift telemetry to the Cloudflare D1 Fleet Vault (POST /api/vault/receipts) with 5-year active retention (+ 10-year offline-verifiable compliance archive export for EU 2023/1230 Annex IV). - Rust
graft-core 0.1.0+graft-watchdog: Microsecond-scale PyO3 Rust spatial kernel (box_signed_distance,check_swept_path_fastat1.96 µs/check, and316 Hz/3.16 ms p50LAN 3D LiDAR point-cloud voxel-to-OBJ meshing with pure-Python fallback) paired withbounded-embodimentRFC 8785 JCS SHA-256 canonical hashing / Ed25519 Envelope 0.2 signing and an independent OS-levelgraft-watchdogheartbeat supervisor (0.22 ms p50/stop). - 6-Family Hand HAL (
mechanics.py): Deterministic grasp physics and interlock enforcement acrossparallel_2f,concentric_3f,dexterous_5f,vacuum_suction,magnetic_atc, andbimanual_coordinated. - Semantic-to-Deterministic Ratchet (
semantic_guard.py): Monotonic 4-tier trust ladder (L0_OBSERVE→L1_ATOMIC_ASSIST→L2_SUPERVISED_CHAIN→L3_AUTONOMOUS_FROZEN) freezing 100%-verified skills into zero-LLM-jitterskills/<name>.yaml. - Graft Cell Console (
robot-gate serve --dir ... --port 8785): Local-first, zero-cloud FastAPI harness + operator UI with hard receipt latch, live actuator telemetry, trust-ladder controls, software hold/release, and EV-03 offline JSON audit export. - Guided Onboarding (
6 personas), Portable SET Kit & Shop CapEx Planner:robot-gate onboard(cnc,lab,oem,benchtop,ehs,ros2),robot-gate setRoboCurve Six Easy Tasks rehearsal, androbot-gate plan20-asset Shop Swarm ROI optimizer.
Quickstart (uv / uvx First)
# 1. Instant 10-second ROS 2 + compliance demo (zero ROS install needed):
uvx robot-gate demo --ros2
# 2. 3-click LLM-to-Robot starter kit (Claude, Antigravity, Codex, Gemini, MLX, Gemma 4):
uvx robot-gate connect --client claude --robot ur5e --env industrial --out ./my-cell
# 3. Install locally as a persistent CLI tool (or with Cell Console FastAPI server):
uv tool install --upgrade "robot-gate[server]"
# Install companion RRF core CLI tools with executable shims:
uv tool install robot-md-gateway --with-executables-from robot-md
Guided Cell Onboarding, ROS 2 Bridge & Compliance Pack
# Guided offline self-serve onboarding wizard (6 personas: cnc, lab, oem, benchtop, ehs, ros2)
robot-gate onboard --persona ros2 --quick --out ./my-cell --non-interactive
# Or add ROS 2 launch bundles to any persona with `--with-ros2`:
robot-gate onboard --persona cnc --with-ros2 --quick --out ./my-cnc-cell --non-interactive
# Run the 4-stage deterministic pre-flight gate and sign gate_receipt.json
robot-gate check --dir ./my-cell --sim-only
# Generate ROS 2 launch bundle or inspect shadow mode (L0_OBSERVE zero physical republish)
robot-gate ros2-bridge --dir ./my-cell --generate-bundle ./my-cell/ros2 --stack ur
robot-gate ros2-bridge --dir ./my-cell --mode shadow
# Generate & offline-verify ISO 10218:2025 & EU 2023/1230 compliance pack
robot-gate compliance-pack --dir ./my-cell --out ./my-cell/.robot-gate/compliance/graft-compliance-pack.zip
robot-gate compliance-pack --verify ./my-cell/.robot-gate/compliance/graft-compliance-pack.zip
# Opt-in Hosted Fleet Receipt Vault sync (zero network calls when GRAFT_VAULT_API_KEY is unset)
robot-gate vault push --dir ./my-cell
robot-gate vault status
# Verify audit ledger & explain failures
robot-gate verify-audit --dir ./my-cell
robot-gate why --dir ./my-cell
Cell passports, the known-failure list and shared zones (new in 0.2.4)
A cell passport (GRAFT_CELL_PASSPORT.json) is one signed file per robot cell: who commissioned it,
which limits file it runs, and the hash of the passport it replaces. robot-gate compliance-pack
writes one into each evidence pack. Anyone you send it to can check it, offline, with no account:
# Check a passport someone sent you (get the signer's public key from them separately)
uvx robot-gate passport verify GRAFT_CELL_PASSPORT.json --key signer.pub.pem
# Or in a browser, nothing uploaded: https://graftrobotics.ai/verify/
# Compare your cell with the list of failure modes we have reproduced (offline)
uvx robot-gate registry check --dir . --fail-on-critical
# Strip names, addresses and coordinates locally, then decide whether to send it to us
uvx robot-gate registry export-anon --deny-code NON_FINITE_COMMAND --embodiment so_arm101 --out draft.json
robot-gate interop adds signed, short-lived zone leases so robots from different makers can share
a work zone; a lease that runs out puts the zone back to keep-out. None of this is a safety function:
the software is not an emergency stop and carries no PL or SIL rating.
Cloudflare-Native CI, Local Pre-Commit Hook & systemd (Zero GitHub Actions)
Graft Robotics enforces a Zero GitHub Actions policy. Run deterministic pre-flight verification locally, in Cloudflare Workers/Pages Builds, or via systemd:
# Local / Cloudflare-native CI gate + compliance pack verification
WORKSPACE_DIR=./my-cell bash robot-gate/ci/cloudflare-build.sh
# Install local git pre-commit hook (runs `robot-gate check --sim-only`)
robot-gate install-hook --dir ./my-cell
# Generate a clean parameterized systemd unit file (zero hardcoded user paths)
robot-gate install-systemd --dir /opt/graft-cell --port 8785 --user robot --out /tmp/robot-gate.service
# Start the offline on-robot Graft Cell Console UI (boots safely in L0_OBSERVE)
robot-gate serve --dir ./my-cell --host 127.0.0.1 --port 8785
Portable RoboCurve SET Verification (robot-gate set) & CapEx Planner (robot-gate plan)
# Safe L0_OBSERVE rehearsal for all 6 SET tasks on SO-ARM101 (zero physical motion)
robot-gate set --arm so_arm101_home --task all --json
# Evaluate a Haas VF-2 shop and recommend highest-ROI upgrades under $25,000
robot-gate plan --acquired haas_vf2 --budget 25000 --hourly-rate 110 --shifts 2.0 --recommend --json
MCP Integration (Built-in Harness + Full Graft Plugin v0.5.0)
- Built-in zero-dependency stdio server (
robot-gate mcp): Exposes 11 local harness JSON-RPC 2.0 tools directly against anyROBOT.mdcell (robot_get_status,robot_run_gate_check,robot_dry_run_plan,robot_execute_plan,robot_freeze_skill,robot_estop,robot_verify_audit,compliance_pack,ros2_generate_bundle,vault_status,connect_agent). Print a drop-in MCP config snippet with:robot-gate mcp-config --dir ./my-cell robot-gate mcp --dir ./my-cell
- Full
graft-roboticsPlugin (v0.5.0, Antigravity / Claude Code / Codex / Gemini CLI / Apple MLX / Gemma 4): Exposes 19 tools, 7 operational playbooks (including/ros2-compliance-audit), 5 resources, and 4 fail-closed form elicitations covering ROS 2 boundary verification, ISO 10218:2025 / EU 2023/1230 compliance packs, the 6-family Hand HAL, Semantic-to-Deterministic Ratchet, opt-in Cloudflare D1 Fleet Vault status, and 3-click/connect/agent kits.
Local & Docker Wheel Packaging (Zero GitHub Actions)
Build release wheels for both graft-core (Rust PyO3 via maturin build --release) and robot-gate (uv build) locally or inside a reproducible manylinux container:
./scripts/build_wheels.sh
# Print reproducible manylinux Docker build command:
./scripts/build_wheels.sh --docker-cmd
# Pure-Python robot-gate wheel/sdist only:
./scripts/build_wheels.sh --skip-rust
Verification & Test Suite (216/216 Pytest + 13/13 Rust graft-core + 18/18 Cloudflare Edge = 247/247)
PYTHONDONTWRITEBYTECODE=1 uv run --no-sync pytest -q
# Rust hot-path spatial kernel + monotonic watchdog unit tests (13/13):
cargo test --manifest-path ../graft-core/Cargo.toml
Covers Ed25519 manifest provenance, Rust graft-core 0.1.0 swept-path & voxel meshing + bounded-embodiment RFC 8785 JCS hashing, ROS 2 ROS2BoundaryGate / ROS2GateNode interception & launch bundles, ISO 10218:2025 & EU 2023/1230 compliance pack generation & fail-closed offline verification, opt-in Hosted Fleet Receipt Vault sync, 6-family Hand HAL physics & ATC spindle interlocks, Semantic-to-Deterministic Ratchet monotonicity, hard receipt latch enforcement, Cell Console APIs, robot-gate demo --ros2, robot-gate onboard, robot-gate install-systemd, robot-gate set, robot-gate plan, and end-to-end CLI workflows.
Metadata
Release files for robot-gate 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robot_gate-0.2.4.tar.gz | 630.0 kB | Without provenance | Details for robot_gate-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robot_gate-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for robot_gate-0.2.4-py3-none-any.whl |
Total release size: 1.1 MB
Release files / robot_gate-0.2.4.tar.gz
| Download URL | robot_gate-0.2.4.tar.gz |
|---|---|
| Size | 630.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c532d04d87912acd2387e0c92e66c2728cc0b567b61c9e435bf8805e65ae5032
|
|
BLAKE2b-256 checksum How to use checksums |
283d2ba41c8a7806c459722ba46b4e4c020c795372af058bc3803337d2c8bf31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / robot_gate-0.2.4-py3-none-any.whl
| Download URL | robot_gate-0.2.4-py3-none-any.whl |
|---|---|
| Size | 455.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ae52c8f62f25ed9d1fc94818d9025b83a37fa6f00d81f8ca5b851c03a228bb7
|
|
BLAKE2b-256 checksum How to use checksums |
b71b98b6296c79a72f89188ae2d6345760f0ee8e84d16cef6ac63f84ef8c6f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for robot-gate 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.