Skip to main content

EngineConfig

Struct EngineConfig 

Source
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: f32

Minimum 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: u32

Minimum 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: f32

Daily fractional decay rate for currency decay. Applied as: current_currency = initial * (1 - rate) ^ days_since_refresh.

§criticality_overturn_floor: Criticality

Minimum criticality at which oracle escalation is mandatory for belief-overturning operations.

§derivation_depth_cap_for_currency_boost: u32

Maximum 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: u32

Maximum 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: u32

Number of identical RecallReEntry candidates in a single write batch that triggers Quarantine. This is the Amplification Guard burst detection threshold.

§aging_unconfirmed_threshold_days: u32

Days since last currency refresh before a belief enters the AgingUnconfirmed state.

§decayed_threshold_days: u32

Days 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

Source§

fn clone(&self) -> EngineConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EngineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EngineConfig

Source§

fn default() -> Self

Illustrative defaults — calibrate post-v0.1 based on your production incident distribution.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.