Skip to main content

GraphLifecycleEvidenceProvider

Trait GraphLifecycleEvidenceProvider 

Source
pub trait GraphLifecycleEvidenceProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn terminal_evidence(
        &self,
        context: GraphTerminalEvidenceContext,
    ) -> BoxFuture<'_, Result<GraphTerminalEvidence, GraphLifecycleEvidenceError>>;
    fn failure_evidence(
        &self,
        context: GraphFailureEvidenceContext,
    ) -> BoxFuture<'_, Result<GraphFailureEvidence, GraphLifecycleEvidenceError>>;
    fn cancellation_evidence(
        &self,
        context: GraphCancellationEvidenceContext,
    ) -> BoxFuture<'_, Result<GraphCancellationEvidence, GraphLifecycleEvidenceError>>;
}
Expand description

Trusted recovery boundary for admission snapshots and cumulative accounting.

Implementations must be read-only, deterministic for one context, bounded, and free of external side effects. They must recover already-durable facts; they must never infer missing usage, fabricate a request, or re-run model or tool work. Provider diagnostics belong in protected telemetry and are mapped to the closed public-safe error above.

Fresh success/failure/cancellation evidence contains DIRECT-only Run usage. The coordinator adds verified settled child-subtree charges exactly once; providers must exclude those charges, and unresolved children block closure.

Required Methods§

Source

fn terminal_evidence( &self, context: GraphTerminalEvidenceContext, ) -> BoxFuture<'_, Result<GraphTerminalEvidence, GraphLifecycleEvidenceError>>

Recovers success evidence for an exact terminal barrier.

Source

fn failure_evidence( &self, context: GraphFailureEvidenceContext, ) -> BoxFuture<'_, Result<GraphFailureEvidence, GraphLifecycleEvidenceError>>

Recovers terminal failure evidence for an exact blocked checkpoint.

Source

fn cancellation_evidence( &self, context: GraphCancellationEvidenceContext, ) -> BoxFuture<'_, Result<GraphCancellationEvidence, GraphLifecycleEvidenceError>>

Recovers complete cumulative usage for an exact cancellation request.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§