spark-rsi-mv
Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger
Brought by drakestapleton
spark-rsi-mv / src / dual / mod.rs
| 1 | //! DUAL constraint-pricing reader for RSI (ADR 0031 / ARCH-0031, section 7.5). |
| 2 | //! |
| 3 | //! Diagnostic only. RSI reads `DualPriceVector` records as |
| 4 | //! scarcity signals and gains no authority from them: |
| 5 | //! |
| 6 | //! - nothing here is consulted by `CapabilityGraph::rank_bottlenecks`, whose |
| 7 | //! fixed weights are unchanged; |
| 8 | //! - nothing here touches `LayerResult.is_hard_invariant`, admission, |
| 9 | //! ratification or promotion; |
| 10 | //! - a missing, stale, frozen, refused or uncalibrated price is reported as |
| 11 | //! `ScarcityDiagnostic::Unavailable`, never as zero scarcity; |
| 12 | //! - CAPACITY prices carry `diagnostic_only: true` and are never a relaxable |
| 13 | //! scarcity. |
| 14 | //! |
| 15 | //! `records` ports the omega C checker and codec byte for byte (omega branch |
| 16 | //! `dual/0a-records`, commit f056b77f64ee94a80f4ed2899b5f9495aa3ef840) and |
| 17 | //! recomputes SHA-256 digests with the crate's existing `sha2` dependency. |
| 18 | |
| 19 | pub mod diagnostic; |
| 20 | pub mod records; |
| 21 | |
| 22 | pub use diagnostic::{FreshState, ScarcityDiagnostic, UnavailableReason}; |
| 23 | pub use records::{ |
| 24 | decode_constraint, decode_controller, decode_price_vector, decode_resource, digest_constraint, |
| 25 | digest_controller, digest_price_vector, digest_resource, domain_digest, encode_constraint, |
| 26 | encode_controller, encode_price_vector, encode_resource, verify_digest, Class, ConstraintState, |
| 27 | Controller, Digest32, EstimateKind, Kind, LambdaState, PriceVector, Refusal, Resource, Unit, |
| 28 | VerifyError, |
| 29 | }; |