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 / crates / aienos-artifact-tool / README.md

64 lines · 1863 bytes Raw Blame History Rendered
1# aienos-artifact-tool
2
3Host CLI for Binary Artifact v0. The CLI calls the same `aienos-artifact`
4parser and identity code used by the kernel.
5
6```text
7aienos-artifact-tool pack MANIFEST.json CODE.bin DATA.bin OUTPUT.aien
8aienos-artifact-tool inspect FILE.aien
9aienos-artifact-tool id FILE.aien
10aienos-artifact-tool sign INPUT.aien OUTPUT.aien
11aienos-artifact-tool verify FILE.aien
12aienos-artifact-tool receipt ...
13```
14
15`receipt` has its own subcommands (`inspect`, `check`, `from-hex`,
16`sign-test`, `verify`); `aienos-artifact-tool receipt` with no further
17arguments prints their usage.
18
19`pack` accepts UTF-8 JSON with exactly these top-level fields:
20
21```json
22{
23 "entry_offset": 0,
24 "capabilities": [
25 {
26 "resource_kind": 3,
27 "resource_id": 7,
28 "rights": 1,
29 "bounds_kind": 1,
30 "max_operations": 4,
31 "max_bytes": 4,
32 "byte_offset": 0,
33 "byte_length": 4
34 }
35 ],
36 "resources": {
37 "code_pages": 1,
38 "data_pages": 1,
39 "stack_pages": 1,
40 "max_capabilities": 1,
41 "ipc_messages": 2,
42 "ipc_bytes": 16,
43 "cpu_ticks": 1000,
44 "elapsed_ticks": 2000,
45 "syscall_count": 16
46 }
47}
48```
49
50`pack` rejects unknown JSON fields and validates its output with the shared
51parser. Repeating `pack` with the same manifest and code/data bytes produces
52identical bytes. The initial signature block is structurally valid but
53unauthenticated until signed.
54
55Qualification signing is deliberately opt-in:
56
57```text
58cargo run -p aienos-artifact-tool --features seed0b-test-signing -- sign INPUT.aien OUTPUT.aien
59cargo run -p aienos-artifact-tool --features seed0b-test-signing -- verify OUTPUT.aien
60```
61
62That feature uses only the public RFC 8032 test-vector identity. It is not a
63production key or production signing facility. Without the feature, the
64verification trust-anchor set is empty and signing returns an error.