Skip to main content

Crate sams_industrial_ecosystem

Crate sams_industrial_ecosystem 

Source
Expand description

§SAMS Industrial Ecosystem

Master wrapper for OMWEI 32BSA Trust Hierarchy. The unified entry point for Silicon Sincerity protocol, providing high-level orchestration of all SAMS components with hardware-enforced trust determination.

§Mission

The SAMS Industrial Ecosystem serves as the L0+ layer that orchestrates all OMWEI 32BSA compliant components through a unified SincereStack architecture. This ensures mathematical certainty and zero-latency trust determination across the entire stack.

§Architecture

SAMS INDUSTRIAL ECOSYSTEM
+-----------------------------------------------------------+
|                SincereStack (Master Wrapper)                |
|  +--------------+--------------+--------------+ |
|  | GhostNode    | Blackbox      | LogicGate    | |
|  | (PQC Store)  | (Logger)      | (Validator)  | |
|  +--------------+--------------+--------------+ |
|                   |                                   |
|            Hardware Trust Hierarchy                 |
|         (omwei-atom v0.1.2)               |
+-----------------------------------------------------------+

§Quick Start

use sams_industrial_ecosystem::SincereStack;
use omwei_atom::{Atom, TrustLevel};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Initialize the complete SAMS stack
    let mut stack = SincereStack::new().await?;

    // Process incoming atom through unified trust hierarchy
    let atom = Atom::new(0x12345678, [0x42; 28]);
    let result = stack.process_atom(atom).await?;

    match result.trust_level {
        TrustLevel::Managed => {
            println!("✅ Sincere data: {}", result.status);
        }
        TrustLevel::Community => {
            println!("⚠️  Community data: {}", result.status);
        }
    }

    Ok(())
}

§Features

  • Unified Trust Hierarchy: Single entry point for all trust determination
  • Hardware Acceleration: Direct integration with Silicon Catalyst
  • Component Orchestration: Automatic initialization of GhostNode, Blackbox, LogicGate
  • Zero-Cost Abstractions: Compile-time optimization to single instructions
  • Post-Quantum Ready: Built-in PQC signature verification framework

§Sincerity Compliance

This crate ensures 100% compliance with OMWEI 32BSA v0.1.2 standard:

  • Managed Space: Bit 31 = 0, PQC signature required
  • Community Space: Bit 31 = 1, local verification only
  • Zero Latency: Single bit-mask operation (id & 0x80000000)
  • Hardware Efficiency: Stack-only execution, no allocation

§Components

  • [GhostNode] - PQC signature storage and verification
  • [Blackbox] - Logging and telemetry with trust-based tagging
  • [LogicGate] - Hardware-level validation and filtering
  • SincereStack - Master orchestrator for all components

§Configuration

§Feature Flags

  • std: Standard library support (default)
  • pqc: Post-quantum cryptography primitives

§Environment Variables

  • SAMS_LOG_LEVEL: Logging level (trace, debug, info, warn, error)
  • SAMS_PQC_KEY_PATH: Path to PQC private key for Managed Space
  • SAMS_TRUST_POLICY: Default trust policy (strict, permissive)

Modules§

blackbox
Blackbox - Logging and Telemetry with Trust-Based Tagging
ghost_node
GhostNode - PQC Signature Storage and Verification
logic_gate
LogicGate - Hardware-Level Validation and Filtering

Structs§

Atom
OMWEI 32BSA Atom structure
SincereResult
Processing result from SAMS stack
SincereStack
Master wrapper for SAMS Industrial Ecosystem

Enums§

TrustLevel
Trust Level enumeration for OMWEI 32BSA
ValidationResult
Validation result for atom processing

Functions§

get_trust_level
Get trust level from a 32-bit Global ID
validate_atom
Validate an atom according to the Trust Hierarchy rules