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 / native / omega / allen / PROVIDER.md

70 lines · 4107 bytes Raw Blame History Rendered
1# Native provider stream v1 (L748)
2
3Builder choice: an explicitly host-development, bounded binary stream entry for
4already-built Omega application functions. It is not a network, clock, storage
5or device provider. All executable implementation and fixtures are Omega; host
6shell only compiles and compares. The legacy development stdio main stays intact.
7
8Input header:40 bytes, magic ASCII ALNPRV01, then four little-endian u64 fields:
9operation, monotonic milliseconds, argument, body length. Body follows exactly.
10No separators/padding after body. Header/body fragmentation is permitted.
11
12| op | operation | argument | body |
13|---|---|---|---|
14|1|BOOT|nonzero unique run ID|empty|
15|2|ASK|0|1..159 prompt bytes|
16|3|POLL|link0/1|empty|
17|4|SENT|actual whole-datagram success0/1|empty|
18|5|RECV|0|65..1200 datagram bytes|
19|6|CANCEL|0|empty; timestamp must0|
20|7|RESET|0|empty; timestamp must0|
21|8|COPY|slot0/1|4096 record bytes; timestamp0|
22|9|NOTE|index0..511|4096 record bytes; timestamp0|
23|10|LOAD|0|empty; timestamp0|
24
25LOAD is optional before BOOT. It explicitly resets restore staging and begins a
26new two-copy read. COPY accepts each slot once, valid or damaged, choosing the
27newest valid memory copy with existing codec; both invalid means empty memory.
28After both copies, ctxbegin runs. NOTE visits each declared slot once; damaged
29records are visited as gone. BOOT refuses until restore is complete. LOAD may
30restart restoration only before BOOT. COPY/NOTE/LOAD refuse after BOOT. Raw record
31bytes come from a future provider; no physical persistence claim.
32
33Output header uses same magic and four u64 fields: echoed op, status, application
34event, body length. Status0 refused/no successful dispatch,1 accepted,2 accepted
35record visit but damaged,3 accepted POLL with outgoing datagram. POLL without an
36offer is status1, not refusal. On accepted non-offer event1, body is exact visible
37Answer bytes. When that event also completes a valid code request, one additional
38record op11/status1/event1 carries the exact Code bytes. No fabricated text.
39## Retained presentation attachment (L763)
40
41The actual provider dispatch uses dask for ASK, drecv for RECV and dreset for
42RESET. Accepted event1 updates the retained D* scene/code state; malformed or
43semantically refused operations never project stale event state. RESET clears
44all retained presentation, while CANCEL retains it. BOOT still initializes once.
45The source concatenation places presentation.om before provider-core.om because
46the seed requires definitions before calls. There is no new operation or output
47record: the external wire contract and exact answer/code bytes remain unchanged.
48The renderer must consume retained D* buffers, not mutable assembly scratch.
49This connects provider dispatch to display state, not yet to pixels or hardware.
50
51Qualification: expand native prdo tests first (136 assertions;24 fail against
52unchanged provider), bind the three existing calls, then replay the complete
53host gate and three compiled call-bypass mutants. File/fragmented-pipe output
54fixtures remain unchanged. Independent exact-source review follows publication.
55
56The stream reply writer uses a separate buffer: application Outb/Outlen/Err remain
57intact until SENT reports the real transport outcome. Writing an offer to stdout
58never counts as sending its datagram.
59
60Bad magic/op/unused fields/size => immediate exit65 before body or later command
61execution. A well-framed semantic refusal produces status0 and permits subsequent
62records. EOF between records is exit0; partial header/body is exit65. Read/write
63errors are exit74 (inherited Linux signal disposition remains a separate limit).
64No synthetic timestamps, link readiness, datagram send outcomes or storage writes.
65
66Implementation/qualification sequence: native compilable stub + behavioral RED;
67provider core with real application calls; native stream entry and real pipe/file
68replay; valid workflow golden, partial/oversized/unknown frame refusal; combined
69native gate and compiled mutations; immutable independent review. No target or
70live-model acceptance from these host fixtures.