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 / om / golden / SCHEMA.md

52 lines · 2651 bytes Raw Blame History Rendered
1# Golden-token file schemas
2
3`golden.om` admits these two shapes and refuses anything else (unknown or missing keys, wrong types,
4out-of-range values) with exit 4.
5
6## Prompt set: `aien-golden-prompts/1`
7
8```json
9{"schema":"aien-golden-prompts/1","enable_thinking":false,"prompts":[
10{"id":"p0","content":"..."}
11]}
12```
13
14- `enable_thinking`: bool, sent as `chat_template_kwargs.enable_thinking` in every request.
15- `prompts`: 1 to 1024 objects with exactly `id` (unique, 1 to 64 of `[A-Za-z0-9._-]`) and `content`
16 (non-empty JSON string, copied into the request as the same JSON lexeme).
17- The record pins the prompt set by `prompts_sha256`, the sha256 of the file's exact bytes.
18
19Each request body is one line:
20
21```json
22{"model":"<model_repo>","messages":[{"role":"user","content":<content>}],"temperature":0,"top_p":1,"seed":0,"max_tokens":<N>,"stream":false,"chat_template_kwargs":{"enable_thinking":<bool>},"aien_return_token_ids":true}
23```
24
25An engine reply is refused (exit 5) when it carries `error`, lacks `usage.aien_token_ids` (an array
26of u32), or has `usage.aien_sampling` that is not an object with `"mode":"greedy"`.
27
28## Record: `aien-golden-record/1`
29
30```json
31{"schema":"aien-golden-record/1","label":"REAL","engine_sha256":"<64 hex>","model_repo":"org/name","model_rev":"<40 hex>","sampling":{"temperature":0,"top_p":1,"seed":0,"enable_thinking":false},"max_tokens":256,"prompts_sha256":"<64 hex>","host_id":"<id>","utc":"YYYY-MM-DDTHH:MM:SSZ","prompts":[
32{"id":"p0","ids":[1,2,3]}
33]}
34```
35
36| Key | Rule | Compared by `cmp` |
37|---|---|---|
38| `label` | `REAL` (recorded from an engine), `FAKE` (recorded from a test responder), `SYNTHETIC` (hand-written fixture) | yes |
39| `engine_sha256` | 64 lowercase hex: sha256 of the serving binary | yes |
40| `model_repo` | 1 to 96 of `[A-Za-z0-9._-/]` | yes |
41| `model_rev` | 40 lowercase hex: the model repository commit | yes |
42| `sampling.temperature`, `top_p`, `seed`, `enable_thinking` | integer 0, number, unsigned integer, bool | yes, as lexemes |
43| `max_tokens` | 1 to 1000000 | yes |
44| `prompts_sha256` | 64 lowercase hex | yes |
45| `host_id` | 1 to 64 of `[A-Za-z0-9._-]` | no, printed |
46| `utc` | recorder wall clock at record time | no, printed |
47| `prompts` | 1 to 1024 `{id, ids}`; ids are u32 | ids per prompt, in order |
48
49`cmp REF CAND` exits 3 (`NOTCOMPARABLE ...`) when any compared header field, the prompt count or a
50prompt id differs, before looking at tokens. Otherwise it prints `MATCH <id> n=<N>` or
51`DIVERGE <id> index=<K> ref=<X> cand=<Y>` per prompt, where K is the first differing position and
52`end` marks a list that stopped early, and exits 1 when any prompt diverges.