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 / crates / aienos-artifact-tool / README.md
| 1 | # aienos-artifact-tool |
| 2 | |
| 3 | Host CLI for Binary Artifact v0. The CLI calls the same `aienos-artifact` |
| 4 | parser and identity code used by the kernel. |
| 5 | |
| 6 | ```text |
| 7 | aienos-artifact-tool pack MANIFEST.json CODE.bin DATA.bin OUTPUT.aien |
| 8 | aienos-artifact-tool inspect FILE.aien |
| 9 | aienos-artifact-tool id FILE.aien |
| 10 | aienos-artifact-tool sign INPUT.aien OUTPUT.aien |
| 11 | aienos-artifact-tool verify FILE.aien |
| 12 | aienos-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 |
| 17 | arguments 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 |
| 51 | parser. Repeating `pack` with the same manifest and code/data bytes produces |
| 52 | identical bytes. The initial signature block is structurally valid but |
| 53 | unauthenticated until signed. |
| 54 | |
| 55 | Qualification signing is deliberately opt-in: |
| 56 | |
| 57 | ```text |
| 58 | cargo run -p aienos-artifact-tool --features seed0b-test-signing -- sign INPUT.aien OUTPUT.aien |
| 59 | cargo run -p aienos-artifact-tool --features seed0b-test-signing -- verify OUTPUT.aien |
| 60 | ``` |
| 61 | |
| 62 | That feature uses only the public RFC 8032 test-vector identity. It is not a |
| 63 | production key or production signing facility. Without the feature, the |
| 64 | verification trust-anchor set is empty and signing returns an error. |