Back to browse
GitHub Repository

Ultra-lightweight (24-byte RAM), real-time safety interceptor for RL agents and LLM control on embedded hardware. MISRA-C compliant, <1.2µs latency.

0 stars

MicroSafe-RL – Deterministic 1.18µs safety layer for Edge AI

by DREDREG·Apr 4, 2026·1 point·0 comments

AI Analysis

●●●BangerWizardryBig BrainNiche Gem

Bare-metal safety shield stops LLM hallucinations from breaking robots in 1.18µs.

Strengths
  • Deterministic 1.18µs WCET verified via direct hardware cycle counters on Cortex-M3.
  • Zero heap allocation using only 24 bytes of RAM state for metrics.
  • Translates physical wear into RL reward signals instead of just clamping actions.
Weaknesses
  • Zero forks and one star suggest untested community adoption outside the author.
  • Python bridge adds latency, negating the microsecond benefits for non-bare-metal users.
Category
Target Audience

Embedded robotics engineers, Edge AI developers

Similar To

NVIDIA Isaac · ROS 2 · Guardrails AI

Post Description

I built MicroSafe-RL to solve the "hardware destruction" problem during Reinforcement Learning and Edge LLM deployment.

The Tech: It’s a bare-metal C++ interceptor using an EMA+MAD stability metric derived from Control Lyapunov Functions. Performance: 1.18 microseconds worst-case execution time (WCET). No heap, no dynamic allocation, just 24 bytes of state. The "Bridge": The latest update includes a Python-C++ bridge to use local LLMs (like Gemma 4 via Ollama) as robotic controllers while keeping them physically safe.

Currently under review at IEEE Transactions on Aerospace and Electronic Systems.

GitHub: https://github.com/Kretski/MicroSafe-RL

Similar Projects

Infrastructure●●Solid

Djevops – A CLI tool for hosting Django on bare metal

Installs via pip and gives you an opinionated, SSH-driven workflow (djevops init → deploy) that runs Django processes directly and handles SSL and continuous SQLite backups via Litestream. It’s not reinventing deployment tooling, but the focus on Docker-less, bare-metal Django with built-in Litestream backups and optional Celery/Redis support makes it a very pragmatic choice for hobby projects or small apps where containers add overhead. Caveats: Ubuntu/Debian and root SSH are required, so it’s niche by design.

Niche GemSolve My Problem
mherrmann
103mo ago