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-explain / src / lib.rs
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | //! AIENOS explanation bridge: think in graphs, speak in paths. |
| 17 | //! |
| 18 | //! Machine artifacts (Cortex records, agent branches, RSI hypothesis contracts, |
| 19 | //! evaluation receipts) are expressed in the language-neutral evidence-graph contract |
| 20 | //! ([`contract`]). The builder ([`build`]) walks explicit support edges backward with |
| 21 | //! hard limits, cuts loops, keeps gaps visible and orders the result into a path: the |
| 22 | //! [`bundle::ExplanationBundle`], which is the authoritative explanation. Renderers |
| 23 | //! ([`render`], [`session`]) are pure projections of the bundle. |
| 24 | //! |
| 25 | //! Boundaries: |
| 26 | //! - host-side only; nothing here is part of the C kernel or the boot path; |
| 27 | //! - read-only: no function writes to Cortex or agent state; |
| 28 | //! - no hidden reasoning: inputs are records, never token histories or model text; |
| 29 | //! - analogies live only in the renderer and are never evidence; |
| 30 | //! - an explanation grants no authority and is not an approval of anything; |
| 31 | //! - no network, no model, no outside service. |
| 32 | |
| 33 | pub mod adapters; |
| 34 | pub mod build; |
| 35 | pub mod bundle; |
| 36 | pub mod contract; |
| 37 | pub mod render; |
| 38 | pub mod session; |
| 39 | |
| 40 | pub use build::build_bundle; |
| 41 | pub use bundle::{ExplanationBundle, Limits}; |
| 42 | pub use contract::{EvidenceGraph, ExplainError}; |
| 43 | pub use render::{render, Audience, ExplanationRequest, Mode}; |
| 44 | pub use session::ExplanationSession; |