HottubNNet + WASM Skills
Quantized neural perception & control policies (.htnn in HottubDB) and sandboxed WIT WebAssembly skills emit only opaque UnverifiedActionProposal intents — compile-time blocked from calling motor drivers directly.
A fail-closed, local-first robotics operating system engineered from first principles in Rust and WebAssembly. Neural intelligence proposes; deterministic kinematics and the hardware-isolated DeckOS safety MCU decide before a single millinewton of torque reaches an actuator.

Every neural proposal crosses four independent verification barriers before reaching motors — with zero cloud dependency.
Quantized neural perception & control policies (.htnn in HottubDB) and sandboxed WIT WebAssembly skills emit only opaque UnverifiedActionProposal intents — compile-time blocked from calling motor drivers directly.
Conservative 3D ESDF obstacle clearance, Capture-Point ZMP balance, and stopping-distance bounds clamp or refuse unsafe proposals, then stamp IEEE 1588 PTP time + Castagnoli CRC32C frames onto lock-free HottubBus rings.
An isolated #![no_std] STM32H573 DeckOS safety plane checks UN38.3 battery cell/thermal limits, PTP freshness, and hardware STO before outputting clamped 8-byte MIT CAN-FD or EtherCAT CiA 402 commands. Any fault drops immediately to 0x0002 QuickStop.
Built exclusively with Rust, WebAssembly, HottubDB, HottubHTTP, and HottubNNet — zero legacy ROS/DDS/Node/SQLite dependencies.
os/crates/hottub-busLock-free SPSC ring channels, IEEE 1588 PTP nanosecond timestamps, and Castagnoli CRC32C wire framing — eliminating DDS discovery storms, XML QoS bloat, and heap jitter.
os/crates/hottub-halDeterministic actuator state machine (Fault/QuickStop fail-closed), 8-byte MIT-mode CAN-FD codec, UN38.3 thermal/cell-voltage BMS monitor, and a 6-board hardware matrix.
os/crates/hottub-kinematicsZero-alloc rigid-body transforms, forward kinematics, Capture-Point ZMP bipedal/quadruped balance verification, and mathematically conservative 3D ESDF collision grids.
engines/hottub-nnet-coreSealed edge perception, control policy, and acoustic fault models (.htnn in HottubDB) returning opaque UnverifiedActionProposal values that cannot energize motors without passing SafetyEnvelope.
os/crates/hottub-deck-boardIndependent hardware-isolated #![no_std] microcontroller safety plane validating UN38.3 BMS limits, CRC32C fieldbus frames, PTP freshness, and STO/QuickStop before torque is permitted.
apps/hottub-os-stackEmbedded append-only BLAKE3 hash-chained flight recorder storing every neural proposal, kinematic gate decision, and CiA 402 frame — exporting EU Machinery Regulation 2023/1230 packets.
apps/hottub-os-stackRFC 9112 SWAR HTTP server with zero mutation routes (non-GET/HEAD returns 405), strict CSP, and a pure-Rust WebAssembly telemetry dashboard — zero Node or legacy JS.
os/crates/hottub-fleetLocal-first WireGuard/QUIC peer admission policy, teleop-free survivability attestation, and signed A/B RAUC/MCUboot OTA gates enforcing safe de-energized staging and rollback.
os/crates/hottub-actor-sandboxThird-party robotics skills run inside WebAssembly Component Model sandboxes (hottub:robot-skill/v1) with advisory-only intent grants and zero direct motor or network access.
apps/hottub-os-stackDeterministic physics & stopping-distance harness testing nominal cruise plus 4 injected fault drills (ESDF obstacle, ZMP instability, BMS over-temp, e-stop latch) with 5/5 fail-closed verification.
Purpose-built for EU Machinery Regulation (EU) 2023/1230 (mandatory 2027-01-20), US FCC compliance, and real-world physical safety.
| Architectural Dimension | HottubOS + DeckOS | Typical ROS 2 / DDS Stack |
|---|---|---|
| Core Language & Safety | 100% Rust (#![forbid(unsafe_code)] policy & #![no_std] safety crates) + WebAssembly skill sandboxes | C++17/20 & Python nodes; memory bugs in perception or planners can crash the process |
| Real-Time Transport | HottubBus: lock-free SPSC rings, IEEE 1588 PTP ns timestamps, CRC32C framing, zero discovery storms | DDS middleware (FastDDS/CycloneDDS): multicast storms, dynamic allocations, complex XML QoS |
| Safety Plane & AI Guard | Hardware-isolated DeckOS MCU + compile-time SafetyEnvelopeRequired guard over HottubNNet proposals | Optional external safety PLC; nodes can publish directly to /cmd_vel unless manually wrapped |
| Cloud & Teleop Privacy | Zero mandatory cloud or human teleop; local-first HottubFleet with offline e-stop & rollback | Often coupled to vendor cloud portals or remote WebRTC teleoperation bridges |
| EU 2023/1230 BlackBox | Built-in HottubDB BLAKE3 hash-chained flight recorder & one-call compliance evidence export | Unverified rosbag2/MCAP files without cryptographic chain-of-custody or model provenance |
| OTA & Rollback Integrity | HottubFleet signed A/B RAUC/MCUboot gate: refuses motion-active updates & downgrades | Apt/Docker/Snap fleet scripts with inconsistent rollback semantics |
| Operator Console & UI | Strictly read-only HottubHTTP server + pure-Rust WebAssembly console (strict CSP, zero JS frameworks) | WebSocket bridges (rosbridge_suite) & Electron/Node dashboards with broad mutable surface |
Canonical hardware profiles declared in hottub-hal — non-anchored bench targets are enforced ObserveOnly at compile & runtime.
| Target Profile ID | Arch | OS Role | Boot Ceiling | EtherCAT / TSN | CAN-FD | Actuation |
|---|---|---|---|---|---|---|
jetson-orin-thor | aarch64 | HottubOS Linux SBC (Vision + NNet) | Anchored | Yes | Yes | Qualified |
nxp-imx95 | aarch64 | HottubOS Industrial Edge Controller | Anchored | Yes | Yes | Qualified |
rockchip-rk3588 | aarch64 | HottubOS Mid-Tier Mobile Robot SBC | Anchored | No | Yes | Qualified |
x86_64-industrial-ipc | x86_64 | HottubOS Workcell / Cobot IPC | Anchored | Yes | Yes | Qualified |
rpi4-bench-bringup | aarch64 | Bench Development & Bring-Up Only | ObserveOnly | No | Yes | Bench Only |
stm32h573-deckos | thumbv8m.main | DeckOS Zephyr Hardware Safety MCU | Anchored | No | Yes | Safety Gate |