Raw system calls are allowed only in std.rt

Decision

The native runtime is Oska code (ADR 0011). It reaches the operating system through system-call intrinsics (openat, read, write and a few more) that the code generator lowers directly to machine code.

These intrinsics exist only inside one module that ships with the toolchain, std.rt. That module is compiled into every program:

Why

A raw system call is ambient authority: code that can call openat bypasses every capability. Keeping all raw OS access in one small, toolchain-owned module gives reviewers a single place to check, and the same rule as oska-sys.

Considered options