ALL IN THIS REPOSITORY IS WORK IN PROGRESS, MOSTLY AI GENERATED, PROBABLY NOTHING WORKS
A high-performance, secure runtime for Austral (extended with Tail Call Optimization) based on Cranelift JIT and AWS Cedar, inspired by the Theseus OS architecture.
The project has successfully integrated a multi-tier security model combining compile-time linear type checks with JIT-time Cedar policy enforcement.
- AWS Cedar Integration: JIT-time static analysis blocks unauthorized calls.
- Multi-Tier Capabilities: Linear tokens for Network, Memory, and Hot-Swapping.
- SafestOS Runtime Linkage: Linked C-based scheduler and cell loader into the JIT bridge.
- Hot-Swappable Cells: Metadata generation for
CellDescriptoris operational.
- Frontend (OCaml): Compiles Austral to monomorphized CPS IR.
- Bridge (C/Rust):
- Cedar Engine (Rust): Manages
PolicySetandEntities. - Cranelift JIT (Rust): Translates CPS to machine code, performing Cedar checks on every
App(Application) node.
- Cedar Engine (Rust): Manages
- Runtime (C): Provides the lock-free scheduler, cell loader, and memory management (derived from SafestOS).
- Static Policy Enforcement: Cedar queries during JIT compilation provide zero-runtime overhead security.
- Linear Type Safety: Capabilities are unforgeable tokens that must be consumed to perform privileged operations.
- Hot-Swapping: Structural type-safety checks allow replacing modules without restarting the VM.
- Cranelift Optimized: Native machine code generation for x86_64.
lib/: OCaml compiler frontend and CPS generator.safestos/cranelift/: Rust bridge containing Cedar and Cranelift logic.safestos/runtime/: C runtime providing the VM execution environment.test_programs/: Austral examples for capabilities and hot-swapping.