cayu.snapshots.SQLiteAgentSnapshotStore
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import SQLiteAgentSnapshotStoreSmall durable journal for manifests and evaluation lineage records.
Bases: AgentSnapshotStore.
durable_state_paths (method)
Section titled “durable_state_paths (method)”SQLiteAgentSnapshotStore.durable_state_paths() -> tuple[Path, ...]Return the primary SQLite file for state-boundary validation.
put_snapshot (method)
Section titled “put_snapshot (method)”async SQLiteAgentSnapshotStore.put_snapshot(snapshot: AgentSnapshot, binding: AgentSnapshotIdentityBinding) -> AgentSnapshotPutReceiptput_snapshot_and_pin (method)
Section titled “put_snapshot_and_pin (method)”async SQLiteAgentSnapshotStore.put_snapshot_and_pin(snapshot: AgentSnapshot, binding: AgentSnapshotIdentityBinding, pin: AgentSnapshotPinRequest) -> tuple[AgentSnapshotPutReceipt, AgentSnapshotPinReceipt]load_identity_binding (method)
Section titled “load_identity_binding (method)”async SQLiteAgentSnapshotStore.load_identity_binding(binding_id: str) -> AgentSnapshotIdentityBinding | Noneget_snapshot (method)
Section titled “get_snapshot (method)”async SQLiteAgentSnapshotStore.get_snapshot(access: AgentSnapshotAccess) -> AgentSnapshotenumerate_snapshot_closure (method)
Section titled “enumerate_snapshot_closure (method)”async SQLiteAgentSnapshotStore.enumerate_snapshot_closure(access: AgentSnapshotAccess) -> tuple[AgentSnapshotNode, ...]inspect_snapshot (method)
Section titled “inspect_snapshot (method)”async SQLiteAgentSnapshotStore.inspect_snapshot(access: AgentSnapshotAccess) -> AgentSnapshotClosureInspectionpin_snapshot (method)
Section titled “pin_snapshot (method)”async SQLiteAgentSnapshotStore.pin_snapshot(request: AgentSnapshotPinRequest) -> AgentSnapshotPinReceiptrelease_snapshot_pin (method)
Section titled “release_snapshot_pin (method)”async SQLiteAgentSnapshotStore.release_snapshot_pin(request: AgentSnapshotReleaseRequest) -> AgentSnapshotReleaseReceiptprotect_snapshot (method)
Section titled “protect_snapshot (method)”async SQLiteAgentSnapshotStore.protect_snapshot(protection: AgentSnapshotProtection) -> AgentSnapshotProtectionrelease_snapshot_protection (method)
Section titled “release_snapshot_protection (method)”async SQLiteAgentSnapshotStore.release_snapshot_protection(*, operation_id: str, access: AgentSnapshotAccess, protection_id: str) -> AgentSnapshotProtectionplan_snapshot_gc (method)
Section titled “plan_snapshot_gc (method)”async SQLiteAgentSnapshotStore.plan_snapshot_gc(request: AgentSnapshotGCRequest) -> AgentSnapshotGCPlanexecute_snapshot_gc (method)
Section titled “execute_snapshot_gc (method)”async SQLiteAgentSnapshotStore.execute_snapshot_gc(plan: AgentSnapshotGCPlan) -> AgentSnapshotGCReceiptsave_snapshot (method)
Section titled “save_snapshot (method)”async SQLiteAgentSnapshotStore.save_snapshot(snapshot: AgentSnapshot) -> AgentSnapshotload_snapshot (method)
Section titled “load_snapshot (method)”async SQLiteAgentSnapshotStore.load_snapshot(snapshot_root: str) -> AgentSnapshot | Nonesave_materialization (method)
Section titled “save_materialization (method)”async SQLiteAgentSnapshotStore.save_materialization(materialization: AgentSnapshotMaterialization) -> AgentSnapshotMaterializationload_materialization (method)
Section titled “load_materialization (method)”async SQLiteAgentSnapshotStore.load_materialization(fingerprint: str) -> AgentSnapshotMaterialization | Noneload_materialization_for_scope (method)
Section titled “load_materialization_for_scope (method)”async SQLiteAgentSnapshotStore.load_materialization_for_scope(request: AgentSnapshotMaterializationRequest) -> AgentSnapshotMaterialization | Nonebegin_materialization (method)
Section titled “begin_materialization (method)”async SQLiteAgentSnapshotStore.begin_materialization(progress: AgentSnapshotMaterializationProgress) -> AgentSnapshotMaterializationProgressload_materialization_progress_for_scope (method)
Section titled “load_materialization_progress_for_scope (method)”async SQLiteAgentSnapshotStore.load_materialization_progress_for_scope(request: AgentSnapshotMaterializationRequest) -> AgentSnapshotMaterializationProgress | Noneclaim_materialization_operation (method)
Section titled “claim_materialization_operation (method)”async SQLiteAgentSnapshotStore.claim_materialization_operation(progress: AgentSnapshotMaterializationProgress, operation_id: str) -> AgentSnapshotMaterializationProgresscomplete_materialization_operation (method)
Section titled “complete_materialization_operation (method)”async SQLiteAgentSnapshotStore.complete_materialization_operation(progress: AgentSnapshotMaterializationProgress, operation_id: str, component: AgentSnapshotMaterializedComponent) -> AgentSnapshotMaterializationProgressfinalize_materialization (method)
Section titled “finalize_materialization (method)”async SQLiteAgentSnapshotStore.finalize_materialization(progress: AgentSnapshotMaterializationProgress, materialization: AgentSnapshotMaterialization) -> AgentSnapshotMaterializationsave_trial (method)
Section titled “save_trial (method)”async SQLiteAgentSnapshotStore.save_trial(trial: AgentSnapshotTrialBinding) -> AgentSnapshotTrialBindingload_trial (method)
Section titled “load_trial (method)”async SQLiteAgentSnapshotStore.load_trial(fingerprint: str) -> AgentSnapshotTrialBinding | Nonesave_result (method)
Section titled “save_result (method)”async SQLiteAgentSnapshotStore.save_result(result: AgentSnapshotResultBinding) -> AgentSnapshotResultBindingload_result (method)
Section titled “load_result (method)”async SQLiteAgentSnapshotStore.load_result(fingerprint: str) -> AgentSnapshotResultBinding | Noneinit (method)
Section titled “init (method)”SQLiteAgentSnapshotStore.__init__(path: str | Path) -> None