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 / tools / aien-test / src / lib.rs

78 lines · 3315 bytes Raw Blame History
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//! AIEN-TEST (ADR 0028), Slices A to C: gate manifests, verdict derivation,
17//! immutable evidence receipts, a runner for one gate or a whole graph of
18//! gates with resource pools, GPU locks, dependency handling and `why`, and
19//! the digest cache that reuses a result only for an identical experiment.
20//!
21//! Tests report observations; this crate derives the verdict and writes an
22//! immutable, content-addressed receipt. See `manifest`, `verdict`,
23//! `evidence`, `process`, `runner`, `graph`, `resources`, `why`, `cache`.
24//!
25//! # Manifest v2 and check identity (Slice D, ADR 0033 Decisions 2 and 3)
26//!
27//! `manifest_version: 2` adds optional keys; a v1 manifest parses to the same
28//! values as before and may not use them. Defaults in brackets.
29//!
30//! - `exactness`: `EXACT` [default], `BOUNDED`, `APPROXIMATE`, `ADVISORY`.
31//! - `requires`: v1 values plus `portable`, `aarch64`, `nvrm`, `bare_metal`,
32//! `analog_eligible` [`host`; optional in v2]. One of host, qemu, gb10,
33//! nvrm, portable, aarch64 is needed.
34//! - `tolerance` (child lines `metric`, `abs`, `rel_ppm`, integers only):
35//! required for `BOUNDED`, refused otherwise.
36//! - `backends` (children `eligible: [..]`, `canonical: X`) from `portable,
37//! spark, qemu, gb10, analog_sim, analog_device`. [eligible implied by
38//! `requires`; canonical is spark, or portable when `requires` is only
39//! portable, or the first digital eligible one when spark is not eligible].
40//! - `fallback` [`["spark"]`], `cache_scope`: `portable|arch|machine|hardware`
41//! [`machine`], `oracle` (child `golden: PATH` or `compare: GATE`).
42//! - Refusals: tolerance without BOUNDED (and BOUNDED without tolerance);
43//! `analog_sim`/`analog_device` eligible, or `analog_eligible` required, for
44//! an EXACT check; an analog canonical backend for EXACT or BOUNDED; a
45//! canonical backend not in `eligible`; any unknown enum value or key.
46//!
47//! `identity::check_id` is sha256 over the canonical object
48//! `{manifest_digest, input_blob_ids, compiler_identity, flags,
49//! dependency_check_ids, golden_digests, scope_binding}`. `aien-test identity
50//! GATE [--compiler-identity S] [--flag F]... [--hardware-identity S]` prints
51//! `CHECK_ID` and the `OBJECT` it hashed (and the ids of the gates it rests
52//! on).
53
54pub mod audit;
55pub mod block_first;
56pub mod bundle;
57pub mod cache;
58pub mod cli;
59pub mod evidence;
60pub mod graph;
61pub mod identity;
62pub mod manifest;
63pub mod plan;
64pub mod process;
65pub mod resources;
66pub mod runner;
67pub mod sandbox;
68pub mod status;
69pub mod verdict;
70pub mod verify;
71pub mod why;
72pub mod worker;
73
74#[cfg(test)]
75pub mod testutil;
76
77#[cfg(test)]
78mod judge_once_tests;