{"slug": "ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation", "title": "RagLeap Physical v0.0.6: Strengthening Human Approval, Stop Safety and Simulation-Based Testing for Physical AI", "summary": "The RagLeap project released RagLeap Physical v0.0.6, an open-source, pre-alpha framework for governing AI agent actions on robots and simulated physical systems, with approval and safety enforcement kept outside the model. The update hardens self-approval prevention with Unicode normalization and case folding, revokes prior approvals after a stop, rechecks the stop flag before adapter calls, and adds observation-only CSV replay and JSON message adapters with strict validation. The maintainers note remaining gaps, including a stop race between the Bridge's final check and the adapter call, and a single-request MCP server that exposes no stop tool.", "body_md": "**RagLeap Physical v0.0.6 is released.**\n\nPhysical AI systems need more than capable models. When AI agents interact with robots, industrial processes or simulated physical environments, their actions must be governed by explicit authorization, enforceable safety boundaries and reliable stop mechanisms.\n\nThat is the engineering direction behind **RagLeap Physical**, an open-source project within the RagLeap ecosystem.\n\nVersion 0.0.6 focuses on strengthening these foundations through safety fixes, observation-only data adapters, adversarial testing and improved runtime behaviour.\n\nThe project remains **pre-alpha and simulation-only**. It does not control real machines or production hardware.\n\nGitHub: [https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical](https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical)\n\nAn AI agent working with text or software can produce an incorrect answer or make an unwanted digital change. An AI agent interacting with physical systems introduces another dimension: its actions can affect equipment and the surrounding environment.\n\nA language model should therefore not be the final authority over physical actions.\n\nRagLeap Physical uses a governed action flow:\n\nThe important design principle is that approval and safety enforcement belong outside the model. The model cannot approve its own proposal or change the safety limits enforced by the Bridge.\n\nThis release includes several fixes focused on approval identity, stop behaviour and concurrent operator access.\n\nIdentity comparison between the requester and approver now uses Unicode normalisation and case folding.\n\nThis addresses attempts to bypass self-approval prevention through differences in letter case or Unicode representation.\n\nThe goal is straightforward: the requester must not become an approver by changing how their name is represented.\n\nPreviously granted approvals are now revoked when a stop occurs.\n\nAfter `clear_stop()`, an action requires fresh approval from a named person.\n\nThis introduces an intentional operational cost: one additional approval after a stop. The trade-off is that an approval issued before an emergency stop cannot silently remain valid afterward.\n\nThe Bridge now checks the stop flag again immediately before the first adapter call.\n\nThe simulated adapters, including the MuJoCo servo adapter, also refuse `apply()` while stopped.\n\nThis narrows the window in which a stop could be missed.\n\n**An important limitation remains:** a stop from another thread can still arrive between the Bridge's final check and the adapter call. This race is not fully closed. Real-device adapters will need to follow the same stop-enforcement contract.\n\nThe operator console now serves connections in separate threads, with a maximum of 32 concurrent connections.\n\nThis matters because a stop request should not be blocked simply because another client is performing an apply operation or holding an incomplete request.\n\nThere is still a limitation: a local client occupying every connection slot can delay a stop request for up to the five-second read timeout.\n\nThe MCP server also remains single-request-at-a-time and does not currently expose a stop tool.\n\nVersion 0.0.6 expands the ways simulation and industrial-style data can be inspected without introducing command or write capabilities.\n\nA new CSV replay adapter supports structured signal data through:\n\nA starting description for milling signals is included, but it is marked **unverified** because it has not been tested against a real industrial data file.\n\nNo third-party data has been added to the repository.\n\nA second adapter supports JSON messages, with one message per line.\n\nThe caller declares the topics and their expected properties, including:\n\nThe parser applies strict validation and hard limits.\n\nAn important detail is how missing observations are handled: if a topic has not received a message, it is reported as missing, not silently interpreted as zero.\n\nThe adapter contains no network code and no command capability.\n\nIt has been tested through an observe-only Bridge, but not through the operator console. Its topic and word rules have not been validated against a messaging standard.\n\nThese adapters are intended to strengthen observation and replay workflows before any discussion of physical actuation.\n\nSafety claims need evidence, not just documentation.\n\nVersion 0.0.6 adds a seeded red-team harness under:\n\n`benchmarks/redteam`\n\nThe harness sends hostile test cases through:\n\nTesting is performed in simulation.\n\nThe harness covers safety invariants S1, S2, S4, S5, S7, S8, S9 and S10. S6, S11, S12 and S13 are not covered, while S3 is monitored but not fully tested by this harness.\n\nIt also checks that a stop request is answered within three seconds while a client holds a half-sent request to the console.\n\nAdditional verification work includes:\n\nThese are useful engineering safeguards, but a successful test suite does not prove that every attack or failure mode has been eliminated. This work is not a safety certification or independent security audit.\n\nThe release also includes a bounded lingering-close improvement for the MCP server and operator console after responses with status 400 or higher.\n\nA volunteer reported a before-and-after test on one Windows 11 machine running Python 3.11.4:\n\n| Test | Failed iterations | \n|---|---|\n| Before the change | 9 of 50 | \n| After the change | 0 of 50 | \n\nThis is encouraging evidence, but it must be interpreted carefully.\n\nThe project has not independently run this test on Windows, and nobody else has repeated the reported experiment. The earlier console failure reported by a Windows tester is not explained.\n\nSome responses, including the standard library's 501 response, still bypass the lingering-close handling. Request bodies larger than 1 MiB can also remain partly unread.\n\nWe are documenting these limitations rather than presenting the fix as a verified Windows compatibility guarantee.\n\nThe release includes a wear-study notebook containing two parameter sets for uncoated carbide machining of C45 steel.\n\nThe parameters were fitted from published data points in one open-access paper under a Creative Commons Attribution licence.\n\nThe notebook labels these parameters as derived and restricts calculations to the tested speed ranges. A helper refuses calculations outside those ranges.\n\nThis is an experimental engineering notebook, not a validated industrial wear-prediction system. The toy default remains unchanged.\n\nThe release commit `a3f93af` was tested in Google Colab with:\n\n**Test result:**\n\nThe expected failure corresponds to the known lingering-close gap in issue #1336.\n\nCI also includes Python 3.13 as a blocking version, Python 3.14 as an informative version and a nightly run with the newest dependencies.\n\nThe TestPyPI artifacts were built from the immediately preceding commit, `81ecd08`. The release commit differs from it only by the date in the v0.0.6 changelog heading. The previous commit was tested with the same reported test result.\n\nThe TestPyPI source distribution and wheel were checked against the source tree, and the wheel was installed in a clean Colab environment for testing.\n\n**Testing boundaries:** The project has not tested this release on Windows or with real hardware and real devices.\n\nIt is important to distinguish the current implementation from the long-term direction.\n\nRagLeap Physical does not currently provide:\n\nThe ROS 2 component remains an offline observe-only mock, not a verified live ROS 2 integration.\n\nThe CSV and message-feed adapters are replay and observation mechanisms, not live industrial control interfaces.\n\nThe project is deliberately progressing through simulation, safety validation and observation before considering controlled physical actions.\n\nThe next engineering priorities include:\n\nAny future real-device integration must preserve human authorization, enforceable safety limits, stop behaviour and auditable execution. Passing software tests alone cannot establish hardware safety.\n\nRagLeap Physical is an open-source project, and we welcome contributions from people working in:\n\nUseful contributions can include code, test cases, simulation models, protocol research, architecture reviews, documentation and adversarial testing.\n\nIndustrial engineers and companies can also help evaluate observation and replay workflows using authorised datasets in controlled environments.\n\nThe current package is simulation-only. We are not asking contributors to connect it to or operate real machinery.\n\nContributors and participating organisations can receive attribution and relevant engineering spotlights through the official RagLeap website. Contributions follow the project's normal open-source issue, pull-request and CI review process.\n\nRagLeap Physical v0.0.6 is another step toward building an open-source foundation for AI systems that can eventually interact with the physical world under meaningful human control.\n\nThe objective is not simply to let an AI agent operate a robot.\n\nIt is to build the architecture that determines what an AI agent may propose, who can authorize it, which safety boundaries must be enforced, how a stop is respected and how the outcome can be examined afterward.\n\n**Physical AI needs more than capable models. It needs systems that know when not to act.**\n\n**Project:** [https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical](https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical)\n\n**Website:** [https://ragleap.com/library/ragleap-physical.html](https://ragleap.com/library/ragleap-physical.html)\n\n*RagLeap Physical is pre-alpha, simulation-only software. It is not intended for production use or real machines.*", "url": "https://wpnews.pro/news/ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation", "canonical_source": "https://dev.to/ragleap/ragleap-physical-v006-strengthening-human-approval-stop-safety-and-simulation-based-testing-for-39bg", "published_at": "2026-11-24 04:08:47+00:00", "updated_at": "2026-11-24 04:12:29.016840+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "robotics", "ai-tools"], "entities": ["RagLeap", "RagLeap Physical", "MuJoCo", "GitHub"], "also_reported_by": [], "takeaway": "RagLeap Physical v0.0.6 moves approval and stop enforcement outside the model, revoking prior approvals after clear_stop() and rechecking the stop flag before each adapter call, while acknowledging a stop can still race in between.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation", "markdown": "https://wpnews.pro/news/ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation.md", "text": "https://wpnews.pro/news/ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation.txt", "jsonld": "https://wpnews.pro/news/ragleap-physical-v0-0-6-strengthening-human-approval-stop-safety-and-simulation.jsonld"}}