RagLeap Physical v0.0.6 發佈:強化人工審批、停止安全機制及模擬測試
RagLeap Physical v0.0.6: Strengthening Human Approval, Stop Safety and Simulation-Based Testing for Physical AI
RagLeap Physical 發佈 v0.0.6,強化人工審批身份驗證、停止機制及模擬環境安全測試。停止時,系統會撤銷先前批准,並在適配器執行前再次檢查停止狀態;版本亦加入觀察用途的 CSV 和訊息流回放適配器,以及 seeded red-team 測試。項目仍處於 pre-alpha 階段,僅供模擬使用,不控制真實機器或生產硬件。
RagLeap Physical v0.0.6 is released.
Physical 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.
That is the engineering direction behind RagLeap Physical, an open-source project within the RagLeap ecosystem.
Version 0.0.6 focuses on strengthening these foundations through safety fixes, observation-only data adapters, adversarial testing and improved runtime behaviour.
The project remains pre-alpha and simulation-only. It does not control real machines or production hardware.
GitHub: https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical
1. Why Physical AI needs a different safety architecture
An 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.
A language model should therefore not be the final authority over physical actions.
RagLeap Physical uses a governed action flow:
- An AI agent proposes an action.
- A named human operator approves the exact proposal.
- The Bridge validates the proposal against the safety envelope.
- The action passes through a dry-run stage.
- The adapter applies the action in the simulation.
- The result can be observed and audited.
The 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.
2. v0.0.6: Important safety improvements
This release includes several fixes focused on approval identity, stop behaviour and concurrent operator access.
2.1 Stronger prevention of self-approval — #1337
Identity comparison between the requester and approver now uses Unicode normalisation and case folding.
This addresses attempts to bypass self-approval prevention through differences in letter case or Unicode representation.
The goal is straightforward: the requester must not become an approver by changing how their name is represented.
2.2 Stop revokes previous approvals — #1338
Previously granted approvals are now revoked when a stop occurs.
After clear_stop(), an action requires fresh approval from a named person.
This 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.
2.3 Stop during dry-run blocks adapter execution — #1339
The Bridge now checks the stop flag again immediately before the first adapter call.
The simulated adapters, including the MuJoCo servo adapter, also refuse apply() while stopped.
This narrows the window in which a stop could be missed.
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.
2.4 Concurrent operator console connections — #1367
The operator console now serves connections in separate threads, with a maximum of 32 concurrent connections.
This matters because a stop request should not be blocked simply because another client is performing an apply operation or holding an incomplete request.
There is still a limitation: a local client occupying every connection slot can delay a stop request for up to the five-second read timeout.
The MCP server also remains single-request-at-a-time and does not currently expose a stop tool.
3. New observation-only adapters
Version 0.0.6 expands the ways simulation and industrial-style data can be inspected without introducing command or write capabilities.
3.1 CSV replay adapter
A new CSV replay adapter supports structured signal data through:
- Strict parsing.
- Explicitly declared columns.
- Units and value ranges.
- Hard input limits.
- No command or write path.
A starting description for milling signals is included, but it is marked unverified because it has not been tested against a real industrial data file.
No third-party data has been added to the repository.
3.2 Message-feed replay adapter
A second adapter supports JSON messages, with one message per line.
The caller declares the topics and their expected properties, including:
- Sensor identifier.
- Unit and scale.
- Valid range.
- Expected words or values.
The parser applies strict validation and hard limits.
An 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.
The adapter contains no network code and no command capability.
It 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.
These adapters are intended to strengthen observation and replay workflows before any discussion of physical actuation.
4. Seeded red-team testing and safety invariants
Safety claims need evidence, not just documentation.
Version 0.0.6 adds a seeded red-team harness under:
benchmarks/redteam
The harness sends hostile test cases through:
- The safety Bridge.
- The four AI tools.
- The MCP server.
- The operator console.
Testing is performed in simulation.
The 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.
It also checks that a stop request is answered within three seconds while a client holds a half-sent request to the console.
Additional verification work includes:
- A documented list of safety invariants S1–S13.
- Tests linked to the relevant invariants.
- Seeded invariant tests.
- Known-gap tests.
- A hand-written approval-flow model.
- A claims ledger that detects when a documented public claim disappears.
- Review and stress tests for the lingering-close behaviour.
These 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.
5. Windows connection-reset investigation
The release also includes a bounded lingering-close improvement for the MCP server and operator console after responses with status 400 or higher.
A volunteer reported a before-and-after test on one Windows 11 machine running Python 3.11.4:
| Test | Failed iterations |
|---|---|
| Before the change | 9 of 50 |
| After the change | 0 of 50 |
This is encouraging evidence, but it must be interpreted carefully.
The 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.
Some 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.
We are documenting these limitations rather than presenting the fix as a verified Windows compatibility guarantee.
6. Wear-study notebook
The release includes a wear-study notebook containing two parameter sets for uncoated carbide machining of C45 steel.
The parameters were fitted from published data points in one open-access paper under a Creative Commons Attribution licence.
The notebook labels these parameters as derived and restricts calculations to the tested speed ranges. A helper refuses calculations outside those ranges.
This is an experimental engineering notebook, not a validated industrial wear-prediction system. The toy default remains unchanged.
7. Testing and release evidence
The release commit a3f93af was tested in Google Colab with:
- Python 3.13.18
- MuJoCo 4.0.1
- MCP SDK 1.30.0
- pytest 8.4.2
Test result:
- 860 passed
- 16 skipped
- 1 expected failure
The expected failure corresponds to the known lingering-close gap in issue #1336.
CI also includes Python 3.13 as a blocking version, Python 3.14 as an informative version and a nightly run with the newest dependencies.
The 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.
The TestPyPI source distribution and wheel were checked against the source tree, and the wheel was installed in a clean Colab environment for testing.
Testing boundaries: The project has not tested this release on Windows or with real hardware and real devices.
8. What is not implemented yet?
It is important to distinguish the current implementation from the long-term direction.
RagLeap Physical does not currently provide:
- Real robot or industrial machine control.
- Verified compatibility with vendor hardware standards or protocols.
- A complete independent hardware emergency-stop mechanism.
- Multi-device fleet management.
- Production-ready physical AI operations.
- Safety certification.
The ROS 2 component remains an offline observe-only mock, not a verified live ROS 2 integration.
The CSV and message-feed adapters are replay and observation mechanisms, not live industrial control interfaces.
The project is deliberately progressing through simulation, safety validation and observation before considering controlled physical actions.
9. Where the project goes next
The next engineering priorities include:
- Closing the remaining stop/apply concurrency race.
- Improving stop responsiveness and concurrency in the MCP server.
- Expanding coverage of the documented safety invariants.
- Conducting independent adversarial and architecture reviews.
- Validating observation adapters against real, authorised industrial datasets.
- Building genuine simulator and protocol integrations with clearly defined safety boundaries.
Any future real-device integration must preserve human authorization, enforceable safety limits, stop behaviour and auditable execution. Passing software tests alone cannot establish hardware safety.
10. We welcome engineering collaboration
RagLeap Physical is an open-source project, and we welcome contributions from people working in:
- Robotics and robot control.
- MuJoCo and simulation environments.
- ROS 2 and robotics middleware.
- Industrial automation and manufacturing.
- Mechatronics and mechanical engineering.
- Control systems and safety engineering.
- Physical AI and agent architectures.
- Universities and research laboratories.
Useful contributions can include code, test cases, simulation models, protocol research, architecture reviews, documentation and adversarial testing.
Industrial engineers and companies can also help evaluate observation and replay workflows using authorised datasets in controlled environments.
The current package is simulation-only. We are not asking contributors to connect it to or operate real machinery.
Contributors 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.
Conclusion
RagLeap 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.
The objective is not simply to let an AI agent operate a robot.
It 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.
Physical AI needs more than capable models. It needs systems that know when not to act.
Project: https://github.com/ragleap/ragleap-core/tree/main/packages/ragleap-physical
Website: https://ragleap.com/library/ragleap-physical.html
RagLeap Physical is pre-alpha, simulation-only software. It is not intended for production use or real machines.
來源:DEV Community · dev.to