pub struct EngineConfig {
pub valid_time_confidence_threshold: f32,
pub corroboration_count_for_currency_boost: u32,
pub currency_decay_rate_per_day: f32,
pub criticality_overturn_floor: Criticality,
pub derivation_depth_cap_for_currency_boost: u32,
pub derivation_depth_cap_for_overturning: u32,
pub quarantine_burst_threshold: u32,
pub aging_unconfirmed_threshold_days: u32,
pub decayed_threshold_days: u32,
pub default_adjudication_ttl: Option<Duration>,
}Expand description
Configuration for the mempill engine.
All fields are runtime-tunable parameters, loadable from environment or config file. Defaults are illustrative v0.1 starting values; calibrate post-v0.1 based on your observed incident distribution.
Fields§
§valid_time_confidence_threshold: f32Minimum valid_time_confidence required to treat extracted valid-time as authoritative. Below this threshold the engine treats valid-time as unknown and falls back to transaction-time ordering for belief ranking.
corroboration_count_for_currency_boost: u32Minimum number of provenance-independent corroborating sources required for a currency boost. Corroboration is a confidence modifier only — it does not by itself flip the routing decision.
currency_decay_rate_per_day: f32Daily fractional decay rate for currency decay.
Applied as: current_currency = initial * (1 - rate) ^ days_since_refresh.
criticality_overturn_floor: CriticalityMinimum criticality at which oracle escalation is mandatory for belief-overturning operations.
derivation_depth_cap_for_currency_boost: u32Maximum derivation depth eligible for currency boosts (provenance laundering cap). Claims with a depth exceeding this cap cannot receive currency boosts from corroboration.
derivation_depth_cap_for_overturning: u32Maximum derivation depth eligible to overturn an incumbent belief (self-limiting cap). Claims with a depth exceeding this cap cannot overturn; they route to PendingConflict instead.
quarantine_burst_threshold: u32Number of identical RecallReEntry candidates in a single write batch that triggers Quarantine. This is the Amplification Guard burst detection threshold.
aging_unconfirmed_threshold_days: u32Days since last currency refresh before a belief enters the AgingUnconfirmed state.
decayed_threshold_days: u32Days since last currency refresh before a belief enters the Decayed state.
default_adjudication_ttl: Option<Duration>Default TTL for pending adjudications.
When Some(d), every pending row gets expires_at = queued_at + d. When None,
no TTL is set and pending rows never expire via the engine sweep.
Per-request TTL override is deferred to a future wave (the IngestClaimRequest DTO
does not yet carry a TTL field); the config default is the v1 mechanism.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more