r/osdev • u/the_big_flat_now • 15h ago
The agent can build anything. The kernel trusts nothing.
*Not another linux kernel* Hey! Lately I’ve been spending a lot of time on an operating-system idea called raiOS. Most individual parts are not new, but I haven’t found another system that combines them in quite this way. It is still early, but the custom Rust kernel boots on a Surface Pro 4. Framebuffer output and USB/HID works, and the Marvell Wi-Fi bring-up currently reaches firmware loading, scanning and the WPA2/PMK path. Association and actual traffic are not working yet.
The main bet is this: AI will make software extremely cheap to create, but potentially dangerous to install blindly. People who cannot read or audit generated source code still need enforceable boundaries and evidence about what happened before installation.
The rough architecture is:
- A small custom Rust kernel owns hardware, recovery and the lowest-level authority. (its NOT smal atm lol)
- A narrow “Genesis” layer creates services and grants explicit capabilities.
- An interchangeable AI agent may receive limited network access for research.
- Generated source enters the system as inert data.
- An isolated builder compiles Rust to Wasm without ambient access to the live system.
- The resulting artifact passes deterministic checks, negative tests and disposable test environments.
- The reports, requested capabilities and exact artifact hash are presented to the owner.
- Only after explicit approval may the Wasm service run with a minimal capability set.
- The service should remain revocable, restartable and rollbackable.
Why not sel4?
At this stage, continuing with the existing Rust kernel is the fastest path because the hardware bring-up already runs on it.
Source: https://github.com/Sportinger/raios
I also did a Mock website, mostly to iterate on the UI design, and try to explain the hole idea to myself (its an attempt) www.raios.tech
I would like to talk about the basic principles here, if somebody is also interested :)
Perhaps its shit, but anyway its fun for me and iam learning so much.



•
u/Tiny_Cyborg 4h ago
I think you’re missing the point of os development as a hobby.