interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / native / pi5-8 / route / README.md

84 lines · 5781 bytes Raw Blame History Source

ALLEN interactive routing (aienos#399)

ALLEN REFLEX decides a 15-way label for one conversation. crates/allen-reflex/src/route.rs turns that label, plus facts the caller holds (who speaks, recorded memory consent, whether the lifecycle has a pending item, which capabilities the machine really has), into one typed DecisionProposal:

Families and calibration

route-dev.psv (35), route-val.psv (24), route-heldout.psv (37), hashes in FREEZE.sha256, frozen before any scoring. Scoring context: owner/guest and flags per row, all capabilities present, installed model tinyllama (crates/allen-reflex/examples/route_exam.rs). Calibration was swept on dev only and frozen: reflex min_sim 0.20, nearest min_sim 0.35, perceptron min_margin 0.15.

split (scored once)reflexnearestperceptron
dev (tuned here)34/3533/3533/35
val23/2423/2422/24
held-out36/3736/3733/37

Every miss is non-granting (a stored-text injection read as a memory read; perceptron refusing two unknown requests instead of clarifying and sending one out-of-capability request to the owner desk). Limits: the families were written by the same author as the router (Claude), so these scores are likely optimistic; they test routing policy on top of the frozen core, and the 15-way exam held-out set was not re-scored. Logs: results/route-{dev-frozen,val,heldout-host}.log.

Red before green

results/route-red.log: the 14 route tests against a stub (9 failed). results/route-green1.log: 14/14. scripts/allen_route_mutants.sh (results/route-mutants.log): an approval phrase that runs without the desk, pending state read from the conversation, and a guest reading owner memory are each caught by the tests.

On the image

make pi5-allen accepts a route card on \EFI\AIENOS\ALLEN.EXM (header AIENALR1 QUALIF-ALLEN-ROUTE, built by scripts/allen_route_card.sh; no expected answers, no capabilities, held-out files refused). core/allen.c prints one ALLEN_P <mode> <id> <proposal> line per request and mode with the image's own capabilities (none), checks the authority rules again in C (ALLEN_Q ... authority=held), repeats every proposal, and prints ALLEN_RSTAT with the per-request latency measured with the CPU counter around the Rust call (decode, core, route policy, PST1 digest, JSON; printing excluded).

QEMU twin (scripts/qemu_ck_allen_reflex_test.sh section 5, results/qemu-twin.log): 177 proposal lines equal the host harness byte for byte, authority held, a card claiming a capability flag is refused whole, and the same stage linked with the grant mutant fails its own check. QEMU qualifies nothing physical.

On the Raspberry Pi 5 (run pi5-allen-route-399b, 2026-10-16)

Image make pi5-allen at commit 2613e56 (BOOTAA64.EFI sha256 6e6ababd...f381), cold boot by one-shot tryboot, route card = dev + val families + 10 requests written after the image was built (results/pi-route-399b.fresh.req), 69 requests, card sha256 d9abc833...1726. Capabilities passed by the image: none.

modep50p95p99 = maxtraining at boot
reflex875 us1241 us1303 us254 ms
nearest57 us73 us85 us2.9 ms
perceptron23 us38 us41 us18.7 ms

Kernel stack used 7808 of 262144 bytes (mm_usage). Evidence: results/pi-route-399b.{kernel,run}.log.

Two of the ten fresh requests got a route a person would not pick, both safe: "Is everything on the box healthy this evening?" went to the owner desk as a remember (not ready), and "Compose a short poem about the moon over the lake." asked to clarify (missing subject) instead of going to a model. They are recorded, not tuned away.

Not run on the Pi: input typed after boot (the native image has no live input path yet; aienos#396 has no live request channel and the Pi network lane is not ready), presentation and owner consent through #396, any Spark send, and energy (no sensor).