Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/blob/main/crates/aien-trace/README.md # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / crates / aien-trace / README.md` 57 lines ยท 2570 bytes Raw Blame History Rendered 1 # aien-trace 2 3 Correlation-only execution trace for AIEN (aien-sovereign-core#398). 4 5 ## What it is 6 7 Typed events (`TraceEvent`) that say "this boundary was crossed" and carry the 8 ids needed to join a swarm, its sequences, model turns, tool decisions, effect 9 results and Interplane messages into one run. It is observational. It is not 10 evidence and it is not authorization: the effect receipt ledger, the compose 11 ledger, the generation record and the independent receipt verifier keep 12 governing. Events point at those artifacts by digest or relative path. 13 A trace id is a correlation key, never a secret and never a proof. 14 15 ## Default 16 17 `NullSink` discards everything and is the default. Tracing is off until a 18 caller installs another sink. The crate starts no thread unless 19 `BoundedJsonlSink::spawn_flusher` is called. 20 21 ## Cardinality 22 23 One event per boundary crossing: swarm launch, branch fork, sequence 24 admit/preempt/finish, model turn, tool request, authority decision, effect 25 execution, result, cancel, timeout. Bounded by sequences times stages. There 26 are no per-token or per-kernel events, so GPU hot paths are untouched. 27 28 ## Buffering and backpressure 29 30 `BoundedJsonlSink` holds a bounded queue (default 4096 events). `emit` takes a 31 mutex only for one push and does no I/O. When the queue is full the event is 32 dropped and counted. The next `flush` appends one `trace_dropped` event whose 33 note says how many were dropped. `dropped_total()` is the lifetime count. 34 Security-critical records live in the ledgers, not here, so dropping a trace 35 event never loses evidence. 36 37 ## Retention 38 39 Append-only JSONL, one object per line, created with mode 0600 on unix. The 40 operator rotates or deletes files. The crate deletes nothing. 41 42 ## What is never exported 43 44 No prompts, tool arguments, model output, memory items or secrets. Enforced by 45 type: the only free text is `BoundedNote` (64 bytes, control characters and 46 `<` `>` removed). Ids are `BoundedId` (64 characters, small alphabet), digests 47 are hex, paths are relative without `..`. Deserialization applies the same 48 rules, so edited files cannot widen a field. 49 50 ## Rebuilding one run 51 52 Read the JSONL lines into `Vec` and call `reconstruct(&events)`. 53 It checks one trace id, unique event ids and a valid parent for every child, 54 then gives `Tree::children(id)` and `Tree::chronological()`. Statuses map to 55 the AEGIS failure vocabulary plus `ok`; `uncertain` means the request may have 56 reached the server and is never retried automatically. To verify anything, 57 follow the digest or path to the independent artifact.