pub struct ExternalExpectationsConfig {
pub enabled: bool,
pub driver: ExpectationDriver,
pub tolerance_pct: f64,
pub forecast_noise: f64,
pub growth_rate: f64,
pub min_materiality_share: f64,
}Expand description
External-expectation (ISA-520 substantive-analytics) configuration.
When enabled, the engine emits, per material GL account, an expected period total derived from an
exogenous driver (prior-year / market / macro / budget) plus a materiality tolerance band, with the
realized deviation and the ground-truth fraud contribution. This is the Phase-2 substantive-
analytics layer — the engine-side counterpart to the perfect-crime countermeasure (see
docs/phase2-ledger-evidence-assurance.md).
Fields§
§enabled: boolEnable external-expectation generation.
driver: ExpectationDriverExogenous driver the expectation is built on.
tolerance_pct: f64Materiality tolerance band as a fraction of the expectation (the ISA-520 investigate threshold).
forecast_noise: f64Forecast-error std (fraction) of the auditor’s expectation around the legitimate level — models imperfect expectations, producing realistic false positives on volatile accounts.
growth_rate: f64Expected period-over-period growth used to frame the driver (e.g. prior-year × (1 + growth)).
Only accounts whose legitimate share of total activity is at least this fraction are scored — substantive analytics targets material balances.
Trait Implementations§
Source§impl Clone for ExternalExpectationsConfig
impl Clone for ExternalExpectationsConfig
Source§fn clone(&self) -> ExternalExpectationsConfig
fn clone(&self) -> ExternalExpectationsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExternalExpectationsConfig
impl Debug for ExternalExpectationsConfig
Source§impl Default for ExternalExpectationsConfig
impl Default for ExternalExpectationsConfig
Source§impl<'de> Deserialize<'de> for ExternalExpectationsConfig
impl<'de> Deserialize<'de> for ExternalExpectationsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ExternalExpectationsConfig
impl RefUnwindSafe for ExternalExpectationsConfig
impl Send for ExternalExpectationsConfig
impl Sync for ExternalExpectationsConfig
impl Unpin for ExternalExpectationsConfig
impl UnsafeUnpin for ExternalExpectationsConfig
impl UnwindSafe for ExternalExpectationsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.