interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / crates / aien-omega-compose / abi / rxc_host_abi.manifest

118 lines · 5057 bytes Raw Blame History
1# The rxc_host C ABI contract (omega src/runtime/rxc_host_abi.h) that aien-omega-compose
2# mirrors in src/ffi.rs. Checked from both sides: tests/abi_manifest.rs (Rust declarations,
3# every build) and build.rs (pinned C header, compiled layout probe, archive symbols).
4# Format: aien-abi-conformance src/manifest.rs. Regenerate the fact lines from Rust with
5# AIEN_ABI_BLESS=1 cargo test -p aien-omega-compose --test abi_manifest
6# only together with the omega.lock change that makes the C side agree.
7abi rxc_host 2
8header src/runtime/rxc_host_abi.h
9struct RxcHostInfo 88 8
10field RxcHostInfo abi_version 0 4 u32 1
11field RxcHostInfo machine_root 4 1 u8 1
12field RxcHostInfo machine_id 5 32 u8 32
13field RxcHostInfo machine_id_was_stored 40 4 u32 1
14field RxcHostInfo tail_torn 44 4 u32 1
15field RxcHostInfo opened 48 4 u32 1
16field RxcHostInfo open_rc 52 4 i32 1
17field RxcHostInfo records 56 8 u64 1
18field RxcHostInfo recovered_record 64 8 u64 1
19field RxcHostInfo rolled_back 72 4 u32 1
20field RxcHostInfo recovered_completed 76 4 u32 1
21field RxcHostInfo anchor_unknown 80 4 u32 1
22field RxcHostInfo n_skills 84 4 u32 1
23struct RxcHostResult 168 8
24field RxcHostResult run_rc 0 4 i32 1
25field RxcHostResult outcome 4 4 i32 1
26field RxcHostResult committed 8 4 u32 1
27field RxcHostResult n_branches 12 4 u32 1
28field RxcHostResult branches_reclaimed 16 4 u32 1
29field RxcHostResult winner 20 4 u32 1
30field RxcHostResult winner_skill 24 4 u32 1
31field RxcHostResult aegis_pass_mask 28 4 u32 1
32field RxcHostResult task 32 8 u64 1
33field RxcHostResult result 40 8 u64 1
34field RxcHostResult cx_goal 48 8 u64 1
35field RxcHostResult cx_candidate 56 16 u64 2
36field RxcHostResult cx_evidence 72 8 u64 1
37field RxcHostResult cx_promotion 80 8 u64 1
38field RxcHostResult cx_admission 88 16 u64 2
39field RxcHostResult winner_digest 104 32 u8 32
40field RxcHostResult record_digest 136 32 u8 32
41struct RxcHostRecord 120 8
42field RxcHostRecord id 0 8 u64 1
43field RxcHostRecord cls 8 4 u32 1
44field RxcHostRecord kind 12 4 u32 1
45field RxcHostRecord subject 16 8 u64 1
46field RxcHostRecord t 24 8 u64 1
47field RxcHostRecord generation 32 8 u64 1
48field RxcHostRecord tag 40 8 u64 1
49field RxcHostRecord links 48 32 u64 4
50field RxcHostRecord n_payload 80 4 u32 1
51field RxcHostRecord verified 84 4 u32 1
52field RxcHostRecord digest 88 32 u8 32
53struct RxcHostRepair 160 8
54field RxcHostRepair repaired 0 4 u32 1
55field RxcHostRepair tail_torn 4 4 u32 1
56field RxcHostRepair anchor_present 8 4 u32 1
57field RxcHostRepair cause 12 4 i32 1
58field RxcHostRepair opens 16 4 u32 1
59field RxcHostRepair open_rc 20 4 i32 1
60field RxcHostRepair rolled_back 24 4 u32 1
61field RxcHostRepair recovered_completed 28 4 u32 1
62field RxcHostRepair cut_lo 32 8 u64 1
63field RxcHostRepair cut_hi 40 8 u64 1
64field RxcHostRepair partial_records 48 8 u64 1
65field RxcHostRepair anchor_records 56 8 u64 1
66field RxcHostRepair records_kept 64 8 u64 1
67field RxcHostRepair dropped_records 72 8 u64 1
68field RxcHostRepair event_id 80 8 u64 1
69field RxcHostRepair cut_bytes_kept 88 8 u64 1
70field RxcHostRepair cut_sha256 96 32 u8 32
71field RxcHostRepair anchor_head 128 32 u8 32
72const RXC_HOST_ABI_VERSION 2
73const RXC_HOST_MAX_HANDLES 4
74const RXC_HOST_MAX_SKILLS 2
75const RXC_HOST_NAME_MAX 64
76const RXC_HOST_NONE 4294967295
77const RXC_HOST_SUBJECT_GOAL 1
78const RXC_HOST_SUBJECT_STATE 5
79const RXC_HOST_SUBJECT_HOST 0
80const RXC_HOST_TAG_REPAIR_TAIL 1
81const RXC_HOST_NOTE_CONSTRAINT 2
82const RXC_HOST_NOTE_AUTHORIZATION 3
83const RXC_HOST_NOTE_EFFECT 4
84const RXC_HOST_NOTE_MAX 16384
85const RXC_HOST_NP_LEN 0
86const RXC_HOST_NP_SHA 1
87const RXC_HOST_NP_BYTES 5
88const RXC_HOST_RP_CUT_LO 0
89const RXC_HOST_RP_CUT_HI 1
90const RXC_HOST_RP_DROPPED 5
91const RXC_HOST_RP_CAUSE 6
92const RXC_HOST_OK 0
93const RXC_HOST_E_ARG -1
94const RXC_HOST_E_IDENTITY -2
95const RXC_HOST_E_TORN -3
96const RXC_HOST_E_OPEN -4
97const RXC_HOST_E_FULL -5
98const RXC_HOST_E_STATE -6
99const RXC_HOST_E_RUN -7
100const RXC_HOST_E_NOMEM -8
101const RXC_HOST_E_NOT_FOUND -9
102const RXC_HOST_E_DIGEST -10
103const RXC_HOST_E_REPLAY -11
104fnptr RxcHostSkillFn fn(*mut c_void, u64, *mut u64) -> i32
105fnptr RxcHostVerifyFn fn(*mut c_void, u64, u64) -> i32
106fn rxc_host_abi_layout fn(*mut u32) -> u32
107fn rxc_host_open fn(*const c_char, u32, *const u8, usize, u64, u32, *mut *mut RxcHost, *mut RxcHostInfo) -> i32
108fn rxc_host_register_skill fn(*mut RxcHost, *const c_char, *const u8, u64, RxcHostSkillFn, *mut c_void) -> i32
109fn rxc_host_set_verify fn(*mut RxcHost, RxcHostVerifyFn, *mut c_void) -> i32
110fn rxc_host_run fn(*mut RxcHost, u64, u64, *mut RxcHostResult) -> i32
111fn rxc_host_recall fn(*mut RxcHost, u64, *mut RxcHostRecord, u32, *mut u32, *mut u64) -> i32
112fn rxc_host_record fn(*mut RxcHost, u64, *mut RxcHostRecord) -> i32
113fn rxc_host_payload fn(*mut RxcHost, u64, *mut u64, u32) -> i32
114fn rxc_host_info fn(*mut RxcHost, *mut RxcHostInfo) -> i32
115fn rxc_host_note fn(*mut RxcHost, u32, *const u64, *const u8, usize, *mut u64) -> i32
116fn rxc_host_recover fn(*const c_char, u32, *const u8, usize, *mut RxcHostRepair) -> i32
117fn rxc_host_close fn(*mut RxcHost) -> ()
118fn rxc_host_set_wait_ms fn(*mut RxcHost, u32) -> i32