Skip to main content

LocalSessionStore

Struct LocalSessionStore 

Source
pub struct LocalSessionStore { /* private fields */ }
Expand description

Session store bound to a resolved CLI database path.

Implementations§

Source§

impl LocalSessionStore

Source

pub fn new(config: CliConfig) -> SessionStoreResult<Self>

Open a CLI session-store adapter before it is used by async runtime code.

Trait Implementations§

Source§

impl Clone for LocalSessionStore

Source§

fn clone(&self) -> LocalSessionStore

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 LocalSessionStore

Source§

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

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

impl SessionStore for LocalSessionStore

Source§

fn commit_run_evidence<'life0, 'async_trait>( &'life0 self, commit: RunEvidenceCommit, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically persist a complete run evidence bundle. Read more
Source§

fn commit_checkpoint<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, checkpoint: AgentCheckpoint, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Atomically bootstrap missing session/run records and persist one runtime checkpoint. Read more
Source§

fn claim_hitl_resume<'life0, 'async_trait>( &'life0 self, claim: HitlResumeClaim, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Acquire exclusive ownership of a waiting run before any continuation side effect. Read more
Source§

fn start_hitl_resume_effect<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, source_run_id: &'life2 RunId, claim_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Atomically authorize the first HITL continuation effect under a live admission lease. Read more
Source§

fn abort_admitted_hitl_resume<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, source_run_id: &'life2 RunId, claim_id: &'life3 str, output_preview: &'life4 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<HitlResumeAbortOutcome>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Atomically abort a pre-worker waiting-run replacement under its live admission lease. Read more
Source§

fn mark_hitl_resume_started<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, claim_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Mark a non-admitted claim started immediately before the first continuation hook or tool executes.
Source§

fn release_hitl_resume_claim<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, claim_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Release a preflight claim. Stores must reject release after execution has started.
Source§

fn pending_stream_publications<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<PendingStreamPublication>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List transactionally enqueued stream publications still awaiting at least one sink.
Source§

fn acknowledge_stream_publication<'life0, 'life1, 'async_trait>( &'life0 self, publication_id: &'life1 str, target: StreamPublicationTarget, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Acknowledge one sink only after its complete idempotent delivery succeeds.
Source§

fn create_session_idempotent<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session: SessionRecord, idempotency_key: &'life1 str, command_fingerprint: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Atomically create a session and bind an idempotency key to a normalized fingerprint.
Source§

fn update_managed_session<'life0, 'life1, 'async_trait>( &'life0 self, command: UpdateManagedSession, command_fingerprint: &'life1 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Apply an allowlisted session patch with expected-revision and idempotency checks.
Source§

fn acquire_session_deletion_fence<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, expected_revision: u64, fence_id: &'life2 str, requested_by: &'life3 str, idempotency_key: &'life4 str, command_fingerprint: &'life5 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Acquire a deletion fence that blocks run, continuation, and delegation admission.
Source§

fn tombstone_session<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, fence_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Complete a fenced session tombstone. This never purges retained evidence.
Source§

fn session_continuation_fence<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, namespace_id: &'life1 str, session_id: &'life2 SessionId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionContinuationFence>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load the deletion/continuation fence used by async supervisors before side effects.
Source§

fn acquire_run_admission<'life0, 'async_trait>( &'life0 self, request: AcquireRunAdmission, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunAdmissionReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically persist a queued run and acquire the session’s single active lease.
Source§

fn heartbeat_run_admission<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, lease_expires_at: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunAdmissionLease>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Extend a lease only for its current host and fencing generation.
Source§

fn release_run_admission<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Release a lease after terminal run durability; stale generations cannot release a new owner.
Source§

fn load_run_admission<'life0, 'life1, 'async_trait>( &'life0 self, target: &'life1 ManagedRunTarget, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<RunAdmissionLease>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load durable admission truth for a composite target.
Source§

fn reconcile_expired_run_admissions<'life0, 'life1, 'async_trait>( &'life0 self, namespace_id: &'life1 str, now: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<ManagedRunTarget>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Deterministically terminalize expired active leases owned by prior host instances. Read more
Source§

fn load_control_receipt<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, target: &'life1 ManagedRunTarget, idempotency_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<DurableControlReceipt>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load a durable control receipt by composite target and idempotency key.
Source§

fn reserve_control_receipt<'life0, 'async_trait>( &'life0 self, receipt: DurableControlReceipt, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableControlReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reserve or replay a durable fenced control receipt.
Source§

fn update_control_receipt_state<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, receipt_id: &'life1 str, state: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableControlReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Record the final accepted/failed effect state for a reserved receipt.
Source§

fn drain_background_subagent_operations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Wait for store-owned background-subagent operations whose caller futures may have ended. Read more
Source§

fn save_session<'life0, 'async_trait>( &'life0 self, session: SessionRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Save a session record. Read more
Source§

fn load_session<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load a session record.
Source§

fn list_sessions<'life0, 'async_trait>( &'life0 self, filter: SessionFilter, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<SessionRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List sessions by optional filter.
Source§

fn list_session_page<'life0, 'async_trait>( &'life0 self, query: SessionPageQuery, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionPage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return one storage-bounded stable keyset page of sessions.
Source§

fn update_session_status<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, status: SessionStatus, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update session status.
Source§

fn save_context_state<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, state: ResumableState, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Save a context state snapshot for a session.
Source§

fn save_environment_state<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, environment_state: EnvironmentStateRef, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Save an environment state reference for a session.
Source§

fn append_run<'life0, 'async_trait>( &'life0 self, run: RunRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Append or replace a run record. Read more
Source§

fn load_run<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load a run record.
Source§

fn list_runs<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<RunRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List runs for a session.
Source§

fn update_run_status<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, status: RunStatus, output_preview: Option<String>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Update run status and optional output preview through the legacy low-level path. Read more
Source§

fn append_checkpoint<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, checkpoint: AgentCheckpoint, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Append a full runtime checkpoint.
Source§

fn load_checkpoints<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<AgentCheckpoint>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load checkpoints for a run in insertion order.
Source§

fn append_stream_records<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, records: Vec<AgentStreamRecord>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Append runtime stream records used as resume evidence.
Source§

fn replay_stream_records<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<AgentStreamRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Replay runtime stream records for a run.
Source§

fn replay_stream_records_after<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, after_sequence: Option<usize>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<AgentStreamRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Replay runtime stream records after a sequence cursor.
Source§

fn save_stream_cursor<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, cursor: StreamCursorRef, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Store a stream cursor reference for a run and session.
Source§

fn append_approval<'life0, 'async_trait>( &'life0 self, approval: ApprovalRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Append an approval record.
Source§

fn load_approvals<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<ApprovalRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load approval records for a run.
Source§

fn append_deferred_tool<'life0, 'async_trait>( &'life0 self, record: DeferredToolRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Append a deferred tool record.
Source§

fn load_deferred_tools<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<DeferredToolRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load deferred tool records for a run.
Source§

fn compact_run_trace<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<CompactRunTrace>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Return compact run trace projection.
Source§

fn compact_session_trace<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<CompactSessionTrace>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return compact session trace projection.
Source§

fn commit_run_evidence_fenced<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, commit: RunEvidenceCommit, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Atomically persist a complete run evidence bundle under an active admission lease. Read more
Source§

fn append_replay_events_fenced<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, events: Vec<ReplayEvent>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Atomically append a replay-event batch under an active admission lease. Read more
Source§

fn commit_checkpoint_fenced<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, checkpoint: AgentCheckpoint, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Persist one runtime checkpoint under an active admission lease. Read more
Source§

fn enqueue_host_event_publications<'life0, 'async_trait>( &'life0 self, publications: Vec<PendingHostEventPublication>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically enqueue view-independent host-event publications. Read more
Source§

fn pending_host_event_publications<'life0, 'async_trait>( &'life0 self, limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<PendingHostEventPublication>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List a bounded oldest-first batch of host-event outbox entries.
Source§

fn materialize_host_event_publications<'life0, 'async_trait>( &'life0 self, limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<DurableHostEventRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Idempotently materialize a bounded outbox batch into the canonical durable event log. Read more
Source§

fn replay_host_events<'life0, 'async_trait>( &'life0 self, query: DurableHostEventQuery, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableHostEventPage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Replay a bounded, class-filtered durable host-event page.
Source§

fn host_event_fence<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, scope: &'life1 DurableHostEventScope, event_classes: &'life2 [DurableHostEventClass], ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<u64>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Capture the latest eligible durable backend position for one scope and class set.
Source§

fn create_session_idempotent_with_host_events<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session: SessionRecord, idempotency_key: &'life1 str, command_fingerprint: &'life2 str, publications: Vec<PendingHostEventPublication>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Atomically create a session, bind its idempotency receipt, and enqueue host events. Read more
Source§

fn load_session_mutation_receipt<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, namespace_id: &'life1 str, idempotency_key: &'life2 str, command_fingerprint: &'life3 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<SessionRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Read a session mutation receipt without creating or changing durable state.
Source§

fn update_managed_session_with_host_events<'life0, 'life1, 'async_trait>( &'life0 self, command: UpdateManagedSession, command_fingerprint: &'life1 str, publications: Vec<PendingHostEventPublication>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Apply an allowlisted session patch and enqueue host events in the same atomic mutation.
Source§

fn tombstone_session_idempotent_with_host_events<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, fence_id: &'life2 str, idempotency_key: &'life3 str, command_fingerprint: &'life4 str, publications: Vec<PendingHostEventPublication>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Complete a fenced tombstone while replacing its idempotency receipt and enqueuing events. Read more
Source§

fn load_run_admission_receipt<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, namespace_id: &'life1 str, idempotency_key: &'life2 str, command_fingerprint: &'life3 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<RunAdmissionReceipt>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Read an admission idempotency receipt without creating or changing durable state.
Source§

fn update_run_status_fenced<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, status: RunStatus, output_preview: Option<String>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update one admitted run to an active status while validating its lease atomically. Read more
Source§

fn finalize_run_admission<'life0, 'life1, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, terminal: RunTerminalProjection, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<RunRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Atomically persist a non-active status and release its matching admission lease. Read more
Source§

fn admit_run_control<'life0, 'async_trait>( &'life0 self, request: AdmitRunControl, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableRunControlIntent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically reserve an authority/key/fingerprint-bound receipt and durable effect intent. Read more
Source§

fn load_run_control_intent<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, target: &'life1 ManagedRunTarget, operation_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<DurableRunControlIntent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load one durable control effect by target and deterministic operation id.
Source§

fn list_run_control_intents<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, target: &'life1 ManagedRunTarget, statuses: &'life2 [DurableRunControlStatus], limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<DurableRunControlIntent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List a bounded oldest-first control inbox for recovery and delivery.
Source§

fn advance_run_control_intent<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, lease: &'life1 RunAdmissionLease, operation_id: &'life2 str, expected: DurableRunControlStatus, next: DurableRunControlStatus, occurred_at: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableRunControlIntent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Monotonically acknowledge runtime delivery or consumption under the exact live lease. Read more
Source§

fn reconcile_run_control_intent<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, target: &'life1 ManagedRunTarget, operation_id: &'life2 str, occurred_at: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<DurableRunControlIntent>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Mark a pending, delivered, or consumed intent reconciled during terminal/stale recovery.
Source§

fn record_background_subagent_acceptance<'life0, 'async_trait>( &'life0 self, record: BackgroundSubagentRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Idempotently persist one accepted durable background-subagent attempt.
Source§

fn update_background_subagent_execution<'life0, 'async_trait>( &'life0 self, record: BackgroundSubagentRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Persist a monotonic non-terminal lifecycle transition or child-run correlation.
Source§

fn heartbeat_background_subagent<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, attempt_id: &'life1 SubagentAttemptId, host_instance_id: &'life2 str, fencing_generation: u64, lease_expires_at: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Extend an active background execution lease for its current fenced owner.
Source§

fn commit_background_subagent_terminal<'life0, 'async_trait>( &'life0 self, commit: BackgroundSubagentTerminalCommit, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically persist terminal evidence and its optional oversized-result artifact.
Source§

fn load_background_subagent_artifact<'life0, 'life1, 'async_trait>( &'life0 self, artifact_ref: &'life1 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentArtifact>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load one retained background-result artifact by stable reference.
Source§

fn expire_background_subagent_retention<'life0, 'life1, 'async_trait>( &'life0 self, namespace_id: &'life1 str, now: DateTime<Utc>, limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<BackgroundSubagentRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Expire retained background-result content while preserving minimal audit evidence.
Source§

fn record_background_subagent_terminal<'life0, 'async_trait>( &'life0 self, record: BackgroundSubagentRecord, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Idempotently persist immutable terminal outcome before delivery becomes claimable.
Source§

fn load_background_subagent<'life0, 'life1, 'async_trait>( &'life0 self, attempt_id: &'life1 SubagentAttemptId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load one durable background attempt by globally unique attempt identity.
Source§

fn list_background_subagents<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, namespace_id: &'life1 str, session_id: Option<&'life2 SessionId>, limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<BackgroundSubagentRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List bounded durable background attempts in one host namespace and optional session.
Source§

fn list_pending_background_subagents<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, namespace_id: &'life1 str, session_id: Option<&'life2 SessionId>, limit: usize, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<BackgroundSubagentRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List terminal results still awaiting or holding logical delivery ownership.
Source§

fn claim_background_subagent_delivery<'life0, 'life1, 'async_trait>( &'life0 self, attempt_id: &'life1 SubagentAttemptId, claim: DurableBackgroundSubagentDeliveryClaim, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Atomically claim one terminal result, allowing exact-claim idempotent replay.
Source§

fn acknowledge_background_subagent_delivery<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, attempt_id: &'life1 SubagentAttemptId, claim_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Acknowledge one matching claim as logically delivered.
Source§

fn release_background_subagent_delivery<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, attempt_id: &'life1 SubagentAttemptId, claim_id: &'life2 str, release: DurableBackgroundSubagentDeliveryRelease, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentRecord>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Release one matching claim with a durable retry or consumer-termination disposition.
Source§

fn acquire_background_subagent_continuation<'life0, 'async_trait>( &'life0 self, request: AcquireBackgroundSubagentContinuation, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<BackgroundSubagentContinuationReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomically admit a continuation run and consume its background result exactly once.
Source§

fn reconcile_background_subagents<'life0, 'life1, 'async_trait>( &'life0 self, namespace_id: &'life1 str, now: DateTime<Utc>, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Vec<BackgroundSubagentRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Classify lost in-process executions and reclaim expired delivery claims after restart.
Source§

fn latest_checkpoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<Option<AgentCheckpoint>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load the latest checkpoint for a run.
Source§

fn resume_snapshot<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, ) -> Pin<Box<dyn Future<Output = SessionStoreResult<SessionResumeSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Load a resume snapshot from session, checkpoint, and stream evidence.
Source§

fn prepare_continuation<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, session_id: &'life1 SessionId, run_id: &'life2 RunId, mode: ContinuationPreparationMode, ) -> Pin<Box<dyn Future<Output = Result<PreparedContinuation, SessionStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Load and side-effect-free prepare one host-neutral continuation package. 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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