aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / crates / allen-reflex-kernel / src / lib.rs
| 1 | //! ALLEN REFLEX in the kernel (PI5-8 cut K): the glue that links the `allen-reflex` decision core |
| 2 | //! into the general-regs-only C kernel of the Raspberry Pi 5 image `make pi5-allen`. |
| 3 | //! |
| 4 | //! What it adds around the unchanged core: |
| 5 | //! - [`card`]: the exam card file `\EFI\AIENOS\ALLEN.EXM` (case id + turns only, never labels). |
| 6 | //! The same file may instead be a route card (aienos#399): interactive requests with speaker, session and |
| 7 | //! consent/pending flags, never expected routes and never capabilities. |
| 8 | //! - [`pool`]: the training pool compiled into the image (exam train split + `cases-reflex-extra.psv`, |
| 9 | //! read exactly as `crates/allen-reflex/examples/common` reads them). Dev and held-out are never in it. |
| 10 | //! - [`runner`]: one trained core per mode and one decision line per case, |
| 11 | //! `ALLEN_D <mode> <id> <decision JSON>`, byte-identical on the host and on the Pi. |
| 12 | //! On a route card: one typed routing proposal per request (`allen_reflex::route`), |
| 13 | //! `ALLEN_P <mode> <id> <proposal JSON>`, with the image's own capabilities. |
| 14 | //! - [`heap`]: a bounded bump heap over one region the kernel hands over, with a mark/reset around |
| 15 | //! each decision so repeated decisions do not grow it, and live/peak counters for the report. |
| 16 | //! - `kernel` (only for `target_os = "none"`): the global allocator, the panic handler (a panic or an |
| 17 | //! exhausted heap stops the run through the kernel's panic path; nothing is written anywhere) and |
| 18 | //! the C entry points used by `native/kernel/core/allen.c`. |
| 19 | //! |
| 20 | //! ALLEN only proposes: the decision line is text. The kernel's gate (`native/kernel/core/allen_gate.c`) |
| 21 | //! is what turns a proposal into a card-script command line and asks the lifecycle state machine; |
| 22 | //! nothing in this crate can approve, deny, cancel or write. |
| 23 | #![cfg_attr(target_os = "none", no_std)] |
| 24 | |
| 25 | extern crate alloc; |
| 26 | |
| 27 | pub mod card; |
| 28 | pub mod heap; |
| 29 | pub mod pool; |
| 30 | pub mod runner; |
| 31 | |
| 32 | #[cfg(target_os = "none")] |
| 33 | mod kernel; |