pub struct DurableGraphLifecycle { /* private fields */ }Expand description
Fenced graph-to-agent lifecycle coordinator.
Implementations§
Source§impl DurableGraphLifecycle
impl DurableGraphLifecycle
Sourcepub fn new(
store: PostgresStore,
registry: ExecutableGraphRegistry,
evidence: Arc<dyn GraphLifecycleEvidenceProvider>,
options: DurableGraphLifecycleOptions,
) -> Result<Self, DurableGraphLifecycleBuildError>
pub fn new( store: PostgresStore, registry: ExecutableGraphRegistry, evidence: Arc<dyn GraphLifecycleEvidenceProvider>, options: DurableGraphLifecycleOptions, ) -> Result<Self, DurableGraphLifecycleBuildError>
Binds one provider pool, frozen executable registry, and trusted evidence source.
§Errors
Rejects a malformed embedded release schema or a registry that omitted it before freezing.
Sourcepub const fn options(&self) -> DurableGraphLifecycleOptions
pub const fn options(&self) -> DurableGraphLifecycleOptions
Returns the immutable mutation retry policy.
Sourcepub fn confirm_cancellation(
&self,
handoff: GraphCancellationHandoff,
) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
pub fn confirm_cancellation( &self, handoff: GraphCancellationHandoff, ) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
Acknowledges one exact durable cancellation request after cumulative usage has been recovered from trusted ledgers.
A fresh commit uses a database clock observed with the exact live fence. An identical retry reconstructs that timestamp and usage from the terminal lifecycle, producing the same projection digest even after the original lease was atomically released.
Sourcepub fn commit_barrier(
&self,
handoff: GraphLifecycleBarrierHandoff,
) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
pub fn commit_barrier( &self, handoff: GraphLifecycleBarrierHandoff, ) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
Commits an exact Wait or successful-Terminal graph barrier.
The terminal path recovers trusted admission/accounting evidence, then revalidates provenance, request, budget, input/output schemas, artifacts, and usage before the fenced transaction. Wait registration timestamps come only from the database transaction.
Sourcepub fn resolve_blocked(
&self,
handoff: GraphBlockedHandoff,
) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
pub fn resolve_blocked( &self, handoff: GraphBlockedHandoff, ) -> BoxFuture<'_, Result<GraphBarrierLifecycleOutcome, GraphLifecycleError>>
Resolves a blocked driver handoff without guessing node outcomes.
Any same-fence in-flight start releases ownership so a higher fence can apply the provider’s crash-recovery rules. Only a plan with no in-flight work may enter terminal failure supervision.
Trait Implementations§
Source§impl Clone for DurableGraphLifecycle
impl Clone for DurableGraphLifecycle
Auto Trait Implementations§
impl !RefUnwindSafe for DurableGraphLifecycle
impl !UnwindSafe for DurableGraphLifecycle
impl Forget for DurableGraphLifecycle
impl Freeze for DurableGraphLifecycle
impl Move for DurableGraphLifecycle
impl Send for DurableGraphLifecycle
impl Sync for DurableGraphLifecycle
impl Unpin for DurableGraphLifecycle
impl UnsafeUnpin for DurableGraphLifecycle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more