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 / docs / superpowers / specs / 2026-10-23-allen-omega-design.md
| 1 | # L694 Allen Omega contract freeze (WIP) |
| 2 | |
| 3 | Approved authority: /home/drakestapleton/handoffs/briefs/L694-allen-omega.md. |
| 4 | Baseline da55660ea7337f2b6a42095fcd1fb6ddebe1cc7c. No master sequencing change. |
| 5 | |
| 6 | All new implementation and test programs are handwritten seeded Omega. Shell, |
| 7 | Git, sed, cat, sha256sum, readelf and quiet-build are external development tools. |
| 8 | No foreign runtime, generated C, compiler edits, service changes or deployment. |
| 9 | |
| 10 | ## Contract and source map |
| 11 | |
| 12 | * svc/allen_intent.c: JOB/SAY/WAIT, code and code-more vs ordinary model chat. |
| 13 | * x86/kmain_x86.c code_request/courier_step: one outstanding job, immediate code |
| 14 | acknowledgment, stale sequence rejection, 20s slow and 30s silence timeout. |
| 15 | * svc/allen_code.c: 32768 bytes, 128-byte pieces, 256 slots, IEEE CRC32, 800 |
| 16 | lines, escaped newline/backslash. Complete code alone becomes displayable. |
| 17 | * x86/courier_udp{.h,_x86.c}: ALLEN-COURIER v=1, 16 lowercase hex session, |
| 18 | 1000-byte JOB pieces, 4096-byte job; ordered LINE delivery, duplicate GOT, |
| 19 | wrong-session refusal. Protocol core only; no socket attachment. |
| 20 | * svc/allen_memory.c: AIENALM1, versions 2/3/4; payload 40 + 113*nfacts |
| 21 | + (v>=3 ? 24 : 0) + (v>=4 ? 12 : 0). Header64, generation64 at16, |
| 22 | SHA256(header[0:32] || payload), zero header24:32 and trailing unit bytes. |
| 23 | Facts32 maximum, notes512. AIENNOT1 note length1..127; index, start, gone. |
| 24 | Two-copy save writes older, flushes, reads back, then publishes generation. |
| 25 | * svc/allen_scene.h, docs/ALLEN_CANVAS.md and ui/allen_ui.c: bounded scene, |
| 26 | calm sky/presence, no traditional desktop; code row wrapping and scrolling. |
| 27 | |
| 28 | ## Boundary and intentional changes |
| 29 | |
| 30 | Fixed pools, explicit lengths, no pointer/heap/OS provider. Runtime caller supplies |
| 31 | monotonic milliseconds and session; identity remains Allen unless restored. |
| 32 | Overflow rejects whole operation rather than silently truncating user/model text. |
| 33 | Request IDs never reused across reset. Duplicate conflicting pieces rejected; |
| 34 | malformed numeric overflow rejected. No checksum claimed to authenticate a sender. |
| 35 | Disk tests use fixed buffers and injected failures, never a physical disk. SHA |
| 36 | integrity, keyed authorization, and freshness are independent; latter two are |
| 37 | unimplemented here and are never inferred from a successful SHA check. |
| 38 | |
| 39 | ## Required unclosed gates |
| 40 | |
| 41 | Full legacy semantic/UI equivalence, transcript persistence, qualified native |
| 42 | provider integration, x86 EFI image, MMIO/interrupt/keyboard/framebuffer/disk/NIC, |
| 43 | iMac QEMU chat/keyboard/bootdisk and signed physical trial. Seed compiler currently |
| 44 | emits Linux AArch64 only. FR1/8/9/16 remain with L408; no C bridge may satisfy them. |
| 45 | Hermes JSON/WebSocket/admission belongs to L690 and is not reimplemented here. |