File size: 1,526 Bytes
ebed3db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # SEB L7 Universe Substrate
//!
//! Artifact manifest system, searchable repository, and CVMGate verification pipeline.
//!
//! ## Components
//!
//! - **manifest.rs** - Artifact manifest format (tier, invariants, proofs, tests)
//! - **search_substrate.rs** - Searchable repository (query by invariant/tier)
//! - **compile_verify_merge.rs** - CVMGate pipeline (5-step verification + promotion)
//! - **repository.json** - Initial T0/T1/T2/T3 artifact catalog
//!
//! ## Usage
//!
//! ```ignore
//! use seb_universe::{ArtifactManifest, CVMGate, Universe};
//!
//! #[tokio::main]
//! async fn main() {
//!     // Load repository
//!     let mut universe = Universe::load_from_file("repository.json").await.unwrap();
//!
//!     // Propose new artifact (T2)
//!     let artifact = ArtifactManifest::new(
//!         "my_artifact".into(),
//!         "segment_rotation".into(),
//!         "1.0.0".into(),
//!         "rust".into(),
//!         2, // T2
//!     );
//!
//!     // Run through CVMGate
//!     let gate = CVMGate::new();
//!     match gate.process(&artifact).await {
//!         Ok(result) => println!("CVMGate passed: {:?}", result),
//!         Err(e) => println!("CVMGate failed: {}", e),
//!     }
//! }
//! ```

pub mod compile_verify_merge;
pub mod manifest;
pub mod search_substrate;

pub use compile_verify_merge::{CVMGate, CVMGateResult, CVMGateStep};
pub use manifest::{ArtifactManifest, ArtifactTier};
pub use search_substrate::Universe;

// Re-export common types
pub use anyhow::{anyhow, Result};