Download rust/src/lib.rs from Snapkitty/sovereign-compiler: direct link, hf CLI and curl.
- Browser
- Download file 2.11 kB
-
https://huggingface.co/Snapkitty/sovereign-compiler/resolve/main/rust/src/lib.rs
- Command line
-
hf download hf://Snapkitty/sovereign-compiler/rust/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/Snapkitty/sovereign-compiler/resolve/main/rust/src/lib.rs
2.11 kB
| // Root Fontana — Constitutional compiler layer for SnapKitty | |
| // | |
| // Transforms symbolic declarations into verified execution plans. | |
| // Every declaration passes through: | |
| // - Fontana parsing | |
| // - AST admissibility validation | |
| // - Stratum verification | |
| // - Contractivity analysis | |
| // - SnapKitty Governance | |
| // - Lean verification | |
| // - Rust execution | |
| // - WORM witness generation | |
| // - Archivum ledger persistence | |
| // - SnapKitty Observatory telemetry | |
| pub mod witness; | |
| pub mod archivum; | |
| pub mod governance; | |
| pub mod contractivity; | |
| pub mod observatory; | |
| pub mod execution; | |
| use serde::{Deserialize, Serialize}; | |
| use sha2::{Sha256, Digest}; | |
| use thiserror::Error; | |
| /// Errors from the Fontana compiler. | |
| pub enum FontanaError { | |
| ParseFailed(String), | |
| AdmissibilityRejected(String), | |
| StratumViolation(String), | |
| ContractivityFailed(String), | |
| GovernanceRejected(String), | |
| LeanVerificationFailed(String), | |
| ExecutionFailed(String), | |
| } | |
| /// Unified Witness — the single output of every Fontana workflow. | |
| pub struct UnifiedWitness { | |
| pub declaration_hash: String, | |
| pub stratum: u64, | |
| pub contractivity_seal: String, | |
| pub governance_status: String, | |
| pub lean_proof_hash: Option<String>, | |
| pub execution_result: Option<String>, | |
| pub worm_seal: String, | |
| pub timestamp: String, | |
| } | |
| /// Fontana declaration. | |
| pub struct Declaration { | |
| pub name: String, | |
| pub content: String, | |
| pub metadata: serde_json::Value, | |
| } | |
| /// Fontana pipeline result. | |
| pub struct PipelineResult { | |
| pub witness: UnifiedWitness, | |
| pub archivum_entry: archivum::ArchivumEntry, | |
| } | |