Skip to main content

EvidenceBundle

Struct EvidenceBundle 

Source
pub struct EvidenceBundle {
Show 29 fields pub id: EvidenceBundleId, pub question: CausalQuestion, pub treatment: TreatmentSpec, pub outcome: OutcomeSpec, pub covariates: Vec<String>, pub identification_rationale: String, pub estimator_kind: String, pub estimator_version: String, pub estimator_meta: Option<EstimatorMeta>, pub estimate: f64, pub estimate_uncertainty: Option<f64>, pub confidence: f32, pub trial_count: u32, pub variance_aware: bool, pub verification_trials: Vec<VerificationTrialRecord>, pub comparability_snapshot: Option<ComparabilitySnapshot>, pub refutations: Vec<RefutationAttempt>, pub refutation_artifacts: Vec<RefutationArtifactRecord>, pub verification_summary: Option<VerificationSummary>, pub raw_receipt_handle: Option<String>, pub trace_ctx: Option<TraceCtx>, pub attempt_id: Option<AttemptId>, pub trial_id: Option<TrialId>, pub replay_handle: Option<String>, pub source_envelope_id: Option<EnvelopeId>, pub claim_ids: Vec<ClaimId>, pub created_at: String, pub comparability_snapshot_version: Option<String>, pub metadata: Option<Value>,
}
Expand description

An evidence bundle capturing the full methodological chain.

This is the minimal but real evidence-bundle substrate required by the canonical verification pipeline. Every field maps to a requirement in the master delta spec.

Fields§

§id: EvidenceBundleId

Unique bundle identifier.

§question: CausalQuestion

The causal question being investigated.

§treatment: TreatmentSpec

Treatment specification.

§outcome: OutcomeSpec

Outcome specification.

§covariates: Vec<String>

Covariates and confounders recorded.

§identification_rationale: String

Identification rationale (why we believe the causal identification is valid).

§estimator_kind: String

Estimator kind (e.g., “diff_in_diff”, “propensity_score”, “iv”).

§estimator_version: String

Estimator version (semantic versioning or commit hash).

§estimator_meta: Option<EstimatorMeta>

Structured estimator metadata for replay/audit.

§estimate: f64

The causal estimate (effect size).

§estimate_uncertainty: Option<f64>

Standard error or uncertainty measure.

§confidence: f32

Confidence in the estimate (0.0 - 1.0).

§trial_count: u32

Number of trials / observations.

§variance_aware: bool

Whether variance-aware repeated trials were used.

§verification_trials: Vec<VerificationTrialRecord>

Explicit paired verification-trial family.

§comparability_snapshot: Option<ComparabilitySnapshot>

Immutable comparability snapshot for the paired family, when known.

§refutations: Vec<RefutationAttempt>

Refutation attempts and their results.

§refutation_artifacts: Vec<RefutationArtifactRecord>

First-class refutation artifacts with stable identities and lineage.

§verification_summary: Option<VerificationSummary>

Compact verification/promotion summary for projection consumers.

§raw_receipt_handle: Option<String>

Raw receipt handle (opaque reference to the underlying raw data).

§trace_ctx: Option<TraceCtx>

Trace context for correlation.

§attempt_id: Option<AttemptId>

Attempt ID for retry lineage.

§trial_id: Option<TrialId>

Trial ID for the specific execution.

§replay_handle: Option<String>

Replay handle (linkage to original execution for replay).

§source_envelope_id: Option<EnvelopeId>

Source envelope ID if this bundle originated from an export.

§claim_ids: Vec<ClaimId>

Claim IDs this bundle provides evidence for.

§created_at: String

When the bundle was created.

§comparability_snapshot_version: Option<String>

Comparability snapshot version (immutable once set).

§metadata: Option<Value>

Additional metadata.

Implementations§

Source§

impl EvidenceBundle

Source

pub fn new( question: CausalQuestion, treatment: TreatmentSpec, outcome: OutcomeSpec, estimator_kind: impl Into<String>, estimator_version: impl Into<String>, estimate: f64, ) -> Self

Create a new evidence bundle with required fields.

Source

pub fn all_refutations_passed(&self) -> bool

Whether all refutation attempts passed.

Source

pub fn has_failed_refutation(&self) -> bool

Whether any refutation attempt failed.

Trait Implementations§

Source§

impl Clone for EvidenceBundle

Source§

fn clone(&self) -> EvidenceBundle

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 EvidenceBundle

Source§

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

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

impl<'de> Deserialize<'de> for EvidenceBundle

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for EvidenceBundle

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for EvidenceBundle

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,