spark-rsi-mv
Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger
Brought by drakestapleton
spark-rsi-mv / src / lib.rs
| 1 | extern crate self as spark_rsi; |
| 2 | |
| 3 | pub mod actor; |
| 4 | pub mod balance; |
| 5 | pub mod canary; |
| 6 | pub mod canary_observation; |
| 7 | pub mod config; |
| 8 | pub mod daemon; |
| 9 | pub mod diff_gate; |
| 10 | pub mod dual; |
| 11 | pub mod evaluator; |
| 12 | pub mod explain; |
| 13 | pub mod graph; |
| 14 | pub mod isolation; |
| 15 | pub mod ledger; |
| 16 | pub mod measure; |
| 17 | pub mod meta; |
| 18 | pub mod models; |
| 19 | #[doc(hidden)] |
| 20 | pub mod not_run; |
| 21 | pub mod observe; |
| 22 | pub mod promotion_gate; |
| 23 | pub mod propose; |
| 24 | pub mod ratify; |
| 25 | pub mod soak; |
| 26 | pub mod supervisor; |
| 27 | pub mod verifier; |
| 28 | |
| 29 | pub use actor::{BlindJudge, HoldoutCase, HoldoutSuite, JudgeCli}; |
| 30 | pub use balance::BalanceKernel; |
| 31 | pub use config::{EngineConfig, OperatorProfile, SovereignConfig}; |
| 32 | pub use daemon::RsiEngine; |
| 33 | pub use dual::{ScarcityDiagnostic, UnavailableReason}; |
| 34 | pub use evaluator::{ |
| 35 | BootstrapEstimate, CorrectnessEvaluation, CorrectnessLayer, EvaluationReceipt, FastPrng, |
| 36 | FishersExactResult, LatencyDistribution, LatencyTimer, LayerResult, |
| 37 | LongitudinalReplayEvaluation, LongitudinalReplayLayer, ObjectiveEvaluator, PairedSample, |
| 38 | PerformanceEvaluation, PerformanceLayer, ProcessMetricsSnapshot, ResourceEfficiencyEvaluation, |
| 39 | ResourceEfficiencyLayer, RusageMetrics, SecurityEvaluation, SecurityLayer, StatisticalEngine, |
| 40 | StatmMetrics, StyleEvaluation, StyleLayer, TailNonInferiorityResult, |
| 41 | }; |
| 42 | pub use graph::{BottleneckRank, CapabilityEdge, CapabilityGraph, CapabilityNode}; |
| 43 | pub use isolation::{ |
| 44 | ArtifactManifest, ArtifactRecord, BuildJail, CandidateJailRunner, CandidateManifest, |
| 45 | GpuEvaluationJail, RollbackCheckpoint, RootOfTrust, SandboxLimits, |
| 46 | }; |
| 47 | pub use ledger::{ |
| 48 | compute_merkle_root, BlobStore, BlockType, ImprovementLedger, LedgerAuditReport, LedgerBlock, |
| 49 | MerkleCheckpoint, PromotionEvidencePayload, |
| 50 | }; |
| 51 | pub use meta::{ |
| 52 | AbForkEvaluator, CandidateTier, CriterionResult, MetaBenchmarkComparison, MetaBenchmarkMetrics, |
| 53 | MetaBenchmarkSuite, TierGovernance, TrueRsiEvaluator, TrueRsiVerdict, |
| 54 | }; |
| 55 | pub use models::*; |
| 56 | pub use observe::observe_codebase; |
| 57 | pub use propose::ProposalGenerator; |
| 58 | pub use propose::{KernelAutotuneManager, PagedAttentionConfig}; |
| 59 | pub use ratify::Ratifier; |
| 60 | pub use soak::{ |
| 61 | AdmittedMetaCandidate, CycleCandidateRecord, CycleRecord, EngineNSnapshot, |
| 62 | HypothesisQuarantineTracker, SoakConfig, SoakRunManifest, SoakRunner, ThermalSnapshot, |
| 63 | }; |
| 64 | pub use supervisor::{GenerationInfo, GenerationState, HostSupervisor}; |
| 65 | pub use verifier::InvariantVerifier; |
| 66 | |
| 67 | pub fn evaluate_holdout_case(input: &str) -> String { |
| 68 | if input.is_empty() { |
| 69 | "EMPTY_OK".to_string() |
| 70 | } else if input == "0" { |
| 71 | "DIV0_GUARDED".to_string() |
| 72 | } else if input == "check_unicode_dashes" { |
| 73 | "DASHES_PROHIBITED".to_string() |
| 74 | } else if input == "scan_forbidden_lexicon" { |
| 75 | "BUZZWORDS_CLEARED".to_string() |
| 76 | } else { |
| 77 | format!("ACK:{}", input) |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | pub fn version() -> &'static str { |
| 82 | env!("CARGO_PKG_VERSION") |
| 83 | } |
| 84 | |
| 85 | pub mod safety_envelope; |
| 86 | pub use safety_envelope::CanarySafetyEnvelope; |