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: EvidenceBundleIdUnique bundle identifier.
question: CausalQuestionThe causal question being investigated.
treatment: TreatmentSpecTreatment specification.
outcome: OutcomeSpecOutcome specification.
covariates: Vec<String>Covariates and confounders recorded.
identification_rationale: StringIdentification rationale (why we believe the causal identification is valid).
estimator_kind: StringEstimator kind (e.g., “diff_in_diff”, “propensity_score”, “iv”).
estimator_version: StringEstimator version (semantic versioning or commit hash).
estimator_meta: Option<EstimatorMeta>Structured estimator metadata for replay/audit.
estimate: f64The causal estimate (effect size).
estimate_uncertainty: Option<f64>Standard error or uncertainty measure.
confidence: f32Confidence in the estimate (0.0 - 1.0).
trial_count: u32Number of trials / observations.
variance_aware: boolWhether 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: StringWhen the bundle was created.
comparability_snapshot_version: Option<String>Comparability snapshot version (immutable once set).
metadata: Option<Value>Additional metadata.
Implementations§
Source§impl EvidenceBundle
impl EvidenceBundle
Sourcepub fn new(
question: CausalQuestion,
treatment: TreatmentSpec,
outcome: OutcomeSpec,
estimator_kind: impl Into<String>,
estimator_version: impl Into<String>,
estimate: f64,
) -> Self
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.
Sourcepub fn all_refutations_passed(&self) -> bool
pub fn all_refutations_passed(&self) -> bool
Whether all refutation attempts passed.
Sourcepub fn has_failed_refutation(&self) -> bool
pub fn has_failed_refutation(&self) -> bool
Whether any refutation attempt failed.
Trait Implementations§
Source§impl Clone for EvidenceBundle
impl Clone for EvidenceBundle
Source§fn clone(&self) -> EvidenceBundle
fn clone(&self) -> EvidenceBundle
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 EvidenceBundle
impl Debug for EvidenceBundle
Source§impl<'de> Deserialize<'de> for EvidenceBundle
impl<'de> Deserialize<'de> for EvidenceBundle
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>,
Source§impl JsonSchema for EvidenceBundle
impl JsonSchema for EvidenceBundle
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more