Skip to content

cayu.snapshots.AgentSnapshotLogicalRef

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

from cayu.snapshots import AgentSnapshotLogicalRef

Exact logical identity with an optional bounded local drill-down alias.

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
fingerprint StrictStr required
revision StrictStr | None Field(default=None, max_length=512)
frontier StrictStr | None Field(default=None, max_length=512)
scope_fingerprint StrictStr | None None
source_ref StrictStr | None Field(default=None, max_length=512)
AgentSnapshotLogicalRef.validate_fingerprint(value: str, info) -> str
AgentSnapshotLogicalRef.validate_scope_fingerprint(value: str | None, info) -> str | None
AgentSnapshotLogicalRef.validate_optional_identity(value: str | None, info) -> str | None
AgentSnapshotLogicalRef.validate_safe_source_ref(value: str | None) -> str | None
AgentSnapshotLogicalRef.validate_exact_identity() -> AgentSnapshotLogicalRef
AgentSnapshotLogicalRef.identity_material() -> dict[str, object]

Return relocation-stable fingerprint input.

source_ref is intentionally excluded: a physical/package alias may change while the same logical content and frontiers remain equivalent.

Release source · Runtime guarantees · Capability guides