Skip to content

cayu.snapshots.AgentSnapshot

Part of cayu.snapshots.base. Read the Python API overview and install the required extra.

from cayu.snapshots import AgentSnapshot

Strict portable manifest for one bounded logical agent state.

Bases: _SnapshotModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
record_type Literal['cayu.agent-snapshot'] AGENT_SNAPSHOT_RECORD_TYPE
schema_version Literal[3] AGENT_SNAPSHOT_SCHEMA_VERSION
snapshot_root StrictStr required
capture_request_id StrictStr Field(max_length=256)
captured_at datetime required
subject AgentSnapshotSubject required
authority_scope_fingerprint StrictStr required
execution_profile AgentSnapshotExecutionProfileRef required
memory_state MemoryStateRef | None None
components tuple[AgentSnapshotComponentRef, ...] Field(max_length=AGENT_SNAPSHOT_MAX_COMPONENTS)
consistency AgentSnapshotConsistency required
evaluator AgentSnapshotAuthorityRef | None None
promotion_authority AgentSnapshotAuthorityRef | None None
parent_snapshot_fingerprint StrictStr | None None
lineage tuple[StrictStr, ...] ()
exclusions tuple[StrictStr, ...] ('credentials', 'hidden_evaluator_truth', 'promotion_activation', 'provider_continuation_state', 'unrelated_records')
limitations tuple[StrictStr, ...] ()
AgentSnapshot.validate_digests(value: str | None, info) -> str | None
AgentSnapshot.validate_request_id(value: str, info) -> str
AgentSnapshot.validate_captured_at(value: datetime) -> datetime
AgentSnapshot.validate_component_sequence(value: object) -> object
AgentSnapshot.validate_lineage(value: tuple[str, ...]) -> tuple[str, ...]
AgentSnapshot.validate_sorted_codes(value: object, info) -> tuple[str, ...]
AgentSnapshot.validate_manifest() -> AgentSnapshot
AgentSnapshot.component(kind: AgentSnapshotComponentKind) -> AgentSnapshotComponentRef
AgentSnapshot.fingerprint() -> str

Deprecated read-only spelling retained for v2 source compatibility.

AgentSnapshot.ref() -> AgentSnapshotRef
AgentSnapshot.identity_binding() -> AgentSnapshotIdentityBinding
AgentSnapshot.component_node(component: AgentSnapshotComponentRef) -> AgentSnapshotNode
AgentSnapshot.component_nodes() -> tuple[AgentSnapshotNode, ...]
AgentSnapshot.root_node() -> AgentSnapshotNode
AgentSnapshot.merkle_nodes() -> tuple[AgentSnapshotNode, ...]
AgentSnapshot.identity_material() -> dict[str, object]

Return content-only root payload.

Logical registration, authority scope, capture metadata, evaluator and promotion authority, and provenance deliberately live outside the root.

AgentSnapshot.create(*, capture_request_id: str, captured_at: datetime, subject: AgentSnapshotSubject, authority_scope_fingerprint: str, execution_profile: AgentSnapshotExecutionProfileRef, components: Iterable[AgentSnapshotComponentRef], memory_state: MemoryStateRef | None=None, evaluator: AgentSnapshotAuthorityRef | None=None, promotion_authority: AgentSnapshotAuthorityRef | None=None, parent_snapshot_fingerprint: str | None=None, lineage: tuple[str, ...]=(), exclusions: tuple[str, ...]=('credentials', 'hidden_evaluator_truth', 'promotion_activation', 'provider_continuation_state', 'unrelated_records'), limitations: tuple[str, ...]=()) -> AgentSnapshot

Release source · Runtime guarantees · Capability guides