cayu.memory.interventions
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
memory_attribution_fingerprint
Section titled “memory_attribution_fingerprint”from cayu.memory import memory_attribution_fingerprintReturn the canonical portable identity of one attribution projection.
memory_attribution_fingerprint(attribution: MemoryAttribution) -> strRelease source · Runtime guarantees · Capability guides
memory_intervention_from_json
Section titled “memory_intervention_from_json”from cayu.memory import memory_intervention_from_jsonParse one bounded record and fail closed on unknown type or schema version.
memory_intervention_from_json(source: str | bytes) -> MemoryInterventionRecordRelease source · Runtime guarantees · Capability guides
MEMORY_INTERVENTION_MAX_BYTES
Section titled “MEMORY_INTERVENTION_MAX_BYTES”from cayu.memory import MEMORY_INTERVENTION_MAX_BYTESMEMORY_INTERVENTION_MAX_BYTES = 1 << 20Release source · Runtime guarantees · Capability guides
MEMORY_INTERVENTION_MAX_CHANGED_ITEMS
Section titled “MEMORY_INTERVENTION_MAX_CHANGED_ITEMS”from cayu.memory import MEMORY_INTERVENTION_MAX_CHANGED_ITEMSMEMORY_INTERVENTION_MAX_CHANGED_ITEMS = 128Release source · Runtime guarantees · Capability guides
MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS
Section titled “MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS”from cayu.memory import MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTSMEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS = 128Release source · Runtime guarantees · Capability guides
MEMORY_INTERVENTION_MAX_FIXTURE_BYTES
Section titled “MEMORY_INTERVENTION_MAX_FIXTURE_BYTES”from cayu.memory import MEMORY_INTERVENTION_MAX_FIXTURE_BYTESMEMORY_INTERVENTION_MAX_FIXTURE_BYTES = 16 << 20Release source · Runtime guarantees · Capability guides
MEMORY_INTERVENTION_SCHEMA_VERSION
Section titled “MEMORY_INTERVENTION_SCHEMA_VERSION”from cayu.memory import MEMORY_INTERVENTION_SCHEMA_VERSIONMEMORY_INTERVENTION_SCHEMA_VERSION = 1Release source · Runtime guarantees · Capability guides
memory_intervention_to_json
Section titled “memory_intervention_to_json”from cayu.memory import memory_intervention_to_jsonReturn deterministic compact JSON for one exact intervention record.
memory_intervention_to_json(record: MemoryInterventionRecord) -> strRelease source · Runtime guarantees · Capability guides
MemoryInterventionBounds
Section titled “MemoryInterventionBounds”from cayu.memory import MemoryInterventionBoundsPrecommitted upper bounds for one memory-only intervention.
Bases: _MemoryInterventionModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
max_changed_items |
StrictInt |
Field(ge=0, le=MEMORY_INTERVENTION_MAX_CHANGED_ITEMS) |
max_fixture_bytes |
StrictInt |
Field(ge=0, le=MEMORY_INTERVENTION_MAX_FIXTURE_BYTES) |
max_effect_receipts |
StrictInt |
Field(default=MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS, ge=1, le=MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS) |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionBounds.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionBounds.validate_boolean_literals(value: object, info) -> objectRelease source · Runtime guarantees · Capability guides
MemoryInterventionChangeKind
Section titled “MemoryInterventionChangeKind”from cayu.memory import MemoryInterventionChangeKindBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
OMIT |
class attribute |
'omit' |
REPLACE |
class attribute |
'replace' |
INJECT_NEGATIVE_CONTROL |
class attribute |
'inject_negative_control' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionComparability
Section titled “MemoryInterventionComparability”from cayu.memory import MemoryInterventionComparabilityMemory-specific comparability only; generic experiment dimensions stay external.
Bases: _FingerprintRecord.
Fields and attributes
Section titled “Fields and attributes”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 |
record_type |
Literal['cayu.memory-intervention-comparability'] |
'cayu.memory-intervention-comparability' |
schema_version |
Literal[1] |
MEMORY_INTERVENTION_SCHEMA_VERSION |
baseline |
MemoryInterventionTrialBinding |
required |
intervention |
MemoryInterventionTrialBinding |
required |
required_attribution_statuses |
tuple[MemoryAttributionStatus, ...] |
(MemoryAttributionStatus.COMPLETE,) |
status |
MemoryInterventionComparabilityStatus |
required |
mismatch_reasons |
tuple[MemoryInterventionMismatchReason, ...] |
required |
generic_experiment_comparability_required |
Literal[True] |
True |
evidence_only |
Literal[True] |
True |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionComparability.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionComparability.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”MemoryInterventionComparability.validate_fingerprint(value: str, info) -> stridentity_material (method)
Section titled “identity_material (method)”MemoryInterventionComparability.identity_material() -> dict[str, Any]validate_record (method)
Section titled “validate_record (method)”MemoryInterventionComparability.validate_record() -> Selfcopy_bindings (method)
Section titled “copy_bindings (method)”MemoryInterventionComparability.copy_bindings(value: object) -> objectvalidate_required_statuses (method)
Section titled “validate_required_statuses (method)”MemoryInterventionComparability.validate_required_statuses(value: object) -> tuple[MemoryAttributionStatus, ...]validate_mismatch_reasons (method)
Section titled “validate_mismatch_reasons (method)”MemoryInterventionComparability.validate_mismatch_reasons(value: object) -> tuple[MemoryInterventionMismatchReason, ...]validate_comparison (method)
Section titled “validate_comparison (method)”MemoryInterventionComparability.validate_comparison() -> Selfcreate (method)
Section titled “create (method)”MemoryInterventionComparability.create(*, baseline: MemoryInterventionTrialBinding, intervention: MemoryInterventionTrialBinding, required_attribution_statuses: tuple[MemoryAttributionStatus, ...]=(MemoryAttributionStatus.COMPLETE,)) -> MemoryInterventionComparabilityRelease source · Runtime guarantees · Capability guides
MemoryInterventionComparabilityStatus
Section titled “MemoryInterventionComparabilityStatus”from cayu.memory import MemoryInterventionComparabilityStatusBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
COMPARABLE |
class attribute |
'comparable' |
INCOMPARABLE |
class attribute |
'incomparable' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionEffectReceiptRef
Section titled “MemoryInterventionEffectReceiptRef”from cayu.memory import MemoryInterventionEffectReceiptRefBounded identity of one application-owned effect receipt.
Bases: _MemoryInterventionModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
owner_id |
StrictStr |
required |
receipt_fingerprint |
StrictStr |
required |
effect_fingerprint |
StrictStr |
required |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionEffectReceiptRef.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionEffectReceiptRef.validate_boolean_literals(value: object, info) -> objectvalidate_owner_id (method)
Section titled “validate_owner_id (method)”MemoryInterventionEffectReceiptRef.validate_owner_id(value: str, info) -> strvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionEffectReceiptRef.validate_fingerprints(value: str, info) -> strsort_key (method)
Section titled “sort_key (method)”MemoryInterventionEffectReceiptRef.sort_key() -> tuple[str, str, str]receipt_identity_key (method)
Section titled “receipt_identity_key (method)”MemoryInterventionEffectReceiptRef.receipt_identity_key() -> tuple[str, str]Release source · Runtime guarantees · Capability guides
MemoryInterventionEffectStatus
Section titled “MemoryInterventionEffectStatus”from cayu.memory import MemoryInterventionEffectStatusBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
VERIFIED_NO_CHANGE |
class attribute |
'verified_no_change' |
APPLIED |
class attribute |
'applied' |
MATCHED_NO_ITEMS |
class attribute |
'matched_no_items' |
INDETERMINATE |
class attribute |
'indeterminate' |
CONFLICTING |
class attribute |
'conflicting' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionFixtureRef
Section titled “MemoryInterventionFixtureRef”from cayu.memory import MemoryInterventionFixtureRefContent-addressed evaluation input; never a store location or memory text.
Bases: _MemoryInterventionModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
fixture_id |
StrictStr |
required |
fixture_fingerprint |
StrictStr |
required |
representation_fingerprint |
StrictStr |
required |
size_bytes |
StrictInt |
Field(ge=0, le=MEMORY_INTERVENTION_MAX_FIXTURE_BYTES) |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionFixtureRef.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionFixtureRef.validate_boolean_literals(value: object, info) -> objectvalidate_fixture_id (method)
Section titled “validate_fixture_id (method)”MemoryInterventionFixtureRef.validate_fixture_id(value: str, info) -> strvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionFixtureRef.validate_fingerprints(value: str, info) -> strRelease source · Runtime guarantees · Capability guides
MemoryInterventionItemChange
Section titled “MemoryInterventionItemChange”from cayu.memory import MemoryInterventionItemChangeOne bounded omission, replacement, or control-fixture injection.
Bases: _MemoryInterventionModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
kind |
MemoryInterventionChangeKind |
required |
source_item |
MemoryInterventionItemIdentity | None |
None |
fixture |
MemoryInterventionFixtureRef | None |
None |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionItemChange.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionItemChange.validate_boolean_literals(value: object, info) -> objectcopy_source (method)
Section titled “copy_source (method)”MemoryInterventionItemChange.copy_source(value: object) -> objectcopy_fixture (method)
Section titled “copy_fixture (method)”MemoryInterventionItemChange.copy_fixture(value: object) -> objectvalidate_change (method)
Section titled “validate_change (method)”MemoryInterventionItemChange.validate_change() -> Selfsort_key (method)
Section titled “sort_key (method)”MemoryInterventionItemChange.sort_key() -> tuple[str, str, str]Release source · Runtime guarantees · Capability guides
MemoryInterventionItemIdentity
Section titled “MemoryInterventionItemIdentity”from cayu.memory import MemoryInterventionItemIdentityOne exact revision-bound item identity without retained memory text.
Bases: _MemoryInterventionModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
kind |
MemoryInterventionItemIdentityKind |
required |
revision_fingerprint |
StrictStr |
required |
alias |
MemoryEvidenceAlias | None |
None |
item_fingerprint |
StrictStr | None |
None |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionItemIdentity.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionItemIdentity.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionItemIdentity.validate_fingerprints(value: str | None, info) -> str | Nonecopy_alias (method)
Section titled “copy_alias (method)”MemoryInterventionItemIdentity.copy_alias(value: object) -> objectvalidate_identity (method)
Section titled “validate_identity (method)”MemoryInterventionItemIdentity.validate_identity() -> Selfsort_key (method)
Section titled “sort_key (method)”MemoryInterventionItemIdentity.sort_key() -> tuple[str, str, str, str]Release source · Runtime guarantees · Capability guides
MemoryInterventionItemIdentityKind
Section titled “MemoryInterventionItemIdentityKind”from cayu.memory import MemoryInterventionItemIdentityKindBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
ALIAS |
class attribute |
'alias' |
FINGERPRINT |
class attribute |
'fingerprint' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionKind
Section titled “MemoryInterventionKind”from cayu.memory import MemoryInterventionKindBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
AS_DECLARED |
class attribute |
'as_declared' |
AUTOMATIC_RECALL_OFF |
class attribute |
'automatic_recall_off' |
OMIT_ITEMS |
class attribute |
'omit_items' |
REPLACE_ITEMS |
class attribute |
'replace_items' |
NEGATIVE_CONTROL |
class attribute |
'negative_control' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionMismatchReason
Section titled “MemoryInterventionMismatchReason”from cayu.memory import MemoryInterventionMismatchReasonBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
BASELINE_MEMORY_STATE |
class attribute |
'baseline_memory_state' |
INTERVENTION_IDENTITY |
class attribute |
'intervention_identity' |
RECALL_POLICY |
class attribute |
'recall_policy' |
MATERIALIZATION_OVERLAY |
class attribute |
'materialization_overlay' |
CHANGED_ITEM_REVISIONS |
class attribute |
'changed_item_revisions' |
TRIAL_MODE |
class attribute |
'trial_mode' |
REQUIRED_ATTRIBUTION_AVAILABILITY |
class attribute |
'required_attribution_availability' |
Release source · Runtime guarantees · Capability guides
MemoryInterventionOperation
Section titled “MemoryInterventionOperation”from cayu.memory import MemoryInterventionOperationPrecommitment binding one spec to one isolated materialization and trial.
Bases: _FingerprintRecord.
Fields and attributes
Section titled “Fields and attributes”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 |
record_type |
Literal['cayu.memory-intervention-operation'] |
'cayu.memory-intervention-operation' |
schema_version |
Literal[1] |
MEMORY_INTERVENTION_SCHEMA_VERSION |
spec_fingerprint |
StrictStr |
required |
intervention_kind |
MemoryInterventionKind |
required |
candidate_id |
StrictStr |
required |
snapshot_fingerprint |
StrictStr |
required |
memory_state_fingerprint |
StrictStr |
required |
materialization_fingerprint |
StrictStr |
required |
memory_overlay_fingerprint |
StrictStr |
required |
state_scope_id |
StrictStr |
required |
trial_state_mode |
AgentSnapshotTrialStateMode |
required |
trial_binding_fingerprint |
StrictStr |
required |
case_id |
StrictStr |
required |
trial_id |
StrictStr |
required |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionOperation.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionOperation.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”MemoryInterventionOperation.validate_fingerprint(value: str, info) -> stridentity_material (method)
Section titled “identity_material (method)”MemoryInterventionOperation.identity_material() -> dict[str, Any]validate_record (method)
Section titled “validate_record (method)”MemoryInterventionOperation.validate_record() -> Selfvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionOperation.validate_fingerprints(value: str, info) -> strvalidate_ids (method)
Section titled “validate_ids (method)”MemoryInterventionOperation.validate_ids(value: str, info) -> stroperation_id (property)
Section titled “operation_id (property)”MemoryInterventionOperation.operation_id() -> strStable idempotency identity for the precommitted operation.
create (method)
Section titled “create (method)”MemoryInterventionOperation.create(*, spec: MemoryInterventionSpec, materialization: AgentSnapshotMaterialization, trial: AgentSnapshotTrialBinding) -> MemoryInterventionOperationRelease source · Runtime guarantees · Capability guides
MemoryInterventionReceipt
Section titled “MemoryInterventionReceipt”from cayu.memory import MemoryInterventionReceiptDeterministic evidence of the exact outcome of one precommitted operation.
Bases: _FingerprintRecord.
Fields and attributes
Section titled “Fields and attributes”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 |
record_type |
Literal['cayu.memory-intervention-receipt'] |
'cayu.memory-intervention-receipt' |
schema_version |
Literal[1] |
MEMORY_INTERVENTION_SCHEMA_VERSION |
spec_fingerprint |
StrictStr |
required |
operation_fingerprint |
StrictStr |
required |
intervention_kind |
MemoryInterventionKind |
required |
snapshot_fingerprint |
StrictStr |
required |
starting_memory_state_fingerprint |
StrictStr |
required |
materialization_fingerprint |
StrictStr |
required |
memory_overlay_fingerprint |
StrictStr |
required |
state_scope_id |
StrictStr |
required |
status |
MemoryInterventionEffectStatus |
required |
result_memory_state_fingerprint |
StrictStr | None |
None |
result_recall_policy_fingerprint |
StrictStr | None |
None |
matched_item_count |
StrictInt |
Field(ge=0, le=MEMORY_INTERVENTION_MAX_CHANGED_ITEMS) |
changed_item_revision_fingerprints |
tuple[StrictStr, ...] |
Field(default=(), max_length=MEMORY_INTERVENTION_MAX_CHANGED_ITEMS) |
effect_fingerprints |
tuple[StrictStr, ...] |
Field(default=(), max_length=MEMORY_INTERVENTION_MAX_CHANGED_ITEMS) |
application_effect_receipts |
tuple[MemoryInterventionEffectReceiptRef, ...] |
Field(default=(), max_length=MEMORY_INTERVENTION_MAX_EFFECT_RECEIPTS) |
evidence_only |
Literal[True] |
True |
production_mutation_allowed |
Literal[False] |
False |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionReceipt.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionReceipt.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”MemoryInterventionReceipt.validate_fingerprint(value: str, info) -> stridentity_material (method)
Section titled “identity_material (method)”MemoryInterventionReceipt.identity_material() -> dict[str, Any]validate_record (method)
Section titled “validate_record (method)”MemoryInterventionReceipt.validate_record() -> Selfvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionReceipt.validate_fingerprints(value: str | None, info) -> str | Nonevalidate_scope (method)
Section titled “validate_scope (method)”MemoryInterventionReceipt.validate_scope(value: str, info) -> strvalidate_ordered_fingerprints (method)
Section titled “validate_ordered_fingerprints (method)”MemoryInterventionReceipt.validate_ordered_fingerprints(value: object, info) -> tuple[str, ...]copy_effect_receipts (method)
Section titled “copy_effect_receipts (method)”MemoryInterventionReceipt.copy_effect_receipts(value: object) -> objectvalidate_effect (method)
Section titled “validate_effect (method)”MemoryInterventionReceipt.validate_effect() -> Selfcreate (method)
Section titled “create (method)”MemoryInterventionReceipt.create(*, spec: MemoryInterventionSpec, operation: MemoryInterventionOperation, status: MemoryInterventionEffectStatus, result_memory_state_fingerprint: str | None=None, result_recall_policy_fingerprint: str | None=None, matched_item_count: int=0, changed_item_revision_fingerprints: Iterable[str]=(), effect_fingerprints: Iterable[str]=(), application_effect_receipts: Iterable[MemoryInterventionEffectReceiptRef]=()) -> MemoryInterventionReceiptRelease source · Runtime guarantees · Capability guides
MemoryInterventionRecord
Section titled “MemoryInterventionRecord”from cayu.memory import MemoryInterventionRecordMemoryInterventionRecord: TypeAlias = MemoryInterventionSpec | MemoryInterventionOperation | MemoryInterventionReceipt | MemoryInterventionTrialBinding | MemoryInterventionComparabilityRelease source · Runtime guarantees · Capability guides
MemoryInterventionSpec
Section titled “MemoryInterventionSpec”from cayu.memory import MemoryInterventionSpecImmutable declaration of one fixed intervention over a snapshot memory frontier.
Bases: _FingerprintRecord.
Fields and attributes
Section titled “Fields and attributes”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 |
record_type |
Literal['cayu.memory-intervention-spec'] |
'cayu.memory-intervention-spec' |
schema_version |
Literal[1] |
MEMORY_INTERVENTION_SCHEMA_VERSION |
spec_id |
StrictStr |
required |
snapshot_fingerprint |
StrictStr |
required |
memory_state_fingerprint |
StrictStr |
required |
execution_profile_fingerprint |
StrictStr |
required |
recall_policy_ref_fingerprint |
StrictStr |
required |
starting_recall_policy_fingerprint |
StrictStr |
required |
trial_recall_policy_fingerprint |
StrictStr |
required |
starting_recall_mode |
AutomaticRecallMode |
required |
trial_recall_mode |
AutomaticRecallMode |
required |
trial_state_mode |
AgentSnapshotTrialStateMode |
required |
authority_scope_fingerprint |
StrictStr |
required |
kind |
MemoryInterventionKind |
required |
bounds |
MemoryInterventionBounds |
required |
changes |
tuple[MemoryInterventionItemChange, ...] |
Field(default=(), max_length=MEMORY_INTERVENTION_MAX_CHANGED_ITEMS) |
negative_control_kind |
MemoryNegativeControlKind | None |
None |
proposer_fingerprint |
StrictStr | None |
None |
source_fingerprint |
StrictStr | None |
None |
reason |
StrictStr | None |
Field(default=None, max_length=_MAX_REASON_CHARS) |
evidence_only |
Literal[True] |
True |
production_mutation_allowed |
Literal[False] |
False |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionSpec.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionSpec.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”MemoryInterventionSpec.validate_fingerprint(value: str, info) -> stridentity_material (method)
Section titled “identity_material (method)”MemoryInterventionSpec.identity_material() -> dict[str, Any]validate_record (method)
Section titled “validate_record (method)”MemoryInterventionSpec.validate_record() -> Selfvalidate_spec_id (method)
Section titled “validate_spec_id (method)”MemoryInterventionSpec.validate_spec_id(value: str, info) -> strvalidate_fingerprints (method)
Section titled “validate_fingerprints (method)”MemoryInterventionSpec.validate_fingerprints(value: str | None, info) -> str | Nonevalidate_reason (method)
Section titled “validate_reason (method)”MemoryInterventionSpec.validate_reason(value: str | None, info) -> str | Nonecopy_bounds (method)
Section titled “copy_bounds (method)”MemoryInterventionSpec.copy_bounds(value: object) -> objectcopy_changes (method)
Section titled “copy_changes (method)”MemoryInterventionSpec.copy_changes(value: object) -> objectvalidate_intervention (method)
Section titled “validate_intervention (method)”MemoryInterventionSpec.validate_intervention() -> Selfcreate (method)
Section titled “create (method)”MemoryInterventionSpec.create(*, spec_id: str, snapshot: AgentSnapshot, starting_recall_policy: AutomaticRecallPolicy, trial_recall_policy: AutomaticRecallPolicy, trial_state_mode: AgentSnapshotTrialStateMode, kind: MemoryInterventionKind, bounds: MemoryInterventionBounds, changes: Sequence[MemoryInterventionItemChange]=(), negative_control_kind: MemoryNegativeControlKind | None=None, proposer_fingerprint: str | None=None, source_fingerprint: str | None=None, reason: str | None=None) -> MemoryInterventionSpecRelease source · Runtime guarantees · Capability guides
MemoryInterventionTrialBinding
Section titled “MemoryInterventionTrialBinding”from cayu.memory import MemoryInterventionTrialBindingBind one intervention effect to Cayu trial, result, and attribution records.
Bases: _FingerprintRecord.
Fields and attributes
Section titled “Fields and attributes”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 |
record_type |
Literal['cayu.memory-intervention-trial'] |
'cayu.memory-intervention-trial' |
schema_version |
Literal[1] |
MEMORY_INTERVENTION_SCHEMA_VERSION |
spec |
MemoryInterventionSpec |
required |
operation |
MemoryInterventionOperation |
required |
receipt |
MemoryInterventionReceipt |
required |
trial |
AgentSnapshotTrialBinding |
required |
result |
AgentSnapshotResultBinding |
required |
terminal_evidence_available |
StrictBool |
False |
expected_receipt_count |
StrictInt | None |
Field(default=None, ge=0) |
expected_exposure_count |
StrictInt | None |
Field(default=None, ge=0) |
attribution |
MemoryAttribution |
required |
attribution_fingerprint |
StrictStr |
required |
validate_schema_version_literal (method)
Section titled “validate_schema_version_literal (method)”MemoryInterventionTrialBinding.validate_schema_version_literal(value: object) -> objectvalidate_boolean_literals (method)
Section titled “validate_boolean_literals (method)”MemoryInterventionTrialBinding.validate_boolean_literals(value: object, info) -> objectvalidate_fingerprint (method)
Section titled “validate_fingerprint (method)”MemoryInterventionTrialBinding.validate_fingerprint(value: str, info) -> stridentity_material (method)
Section titled “identity_material (method)”MemoryInterventionTrialBinding.identity_material() -> dict[str, Any]validate_record (method)
Section titled “validate_record (method)”MemoryInterventionTrialBinding.validate_record() -> Selfcopy_spec (method)
Section titled “copy_spec (method)”MemoryInterventionTrialBinding.copy_spec(value: object) -> objectcopy_operation (method)
Section titled “copy_operation (method)”MemoryInterventionTrialBinding.copy_operation(value: object) -> objectcopy_receipt (method)
Section titled “copy_receipt (method)”MemoryInterventionTrialBinding.copy_receipt(value: object) -> objectcopy_trial (method)
Section titled “copy_trial (method)”MemoryInterventionTrialBinding.copy_trial(value: object) -> objectcopy_result (method)
Section titled “copy_result (method)”MemoryInterventionTrialBinding.copy_result(value: object) -> objectcopy_attribution (method)
Section titled “copy_attribution (method)”MemoryInterventionTrialBinding.copy_attribution(value: object) -> objectvalidate_attribution_fingerprint (method)
Section titled “validate_attribution_fingerprint (method)”MemoryInterventionTrialBinding.validate_attribution_fingerprint(value: str, info) -> strvalidate_lineage (method)
Section titled “validate_lineage (method)”MemoryInterventionTrialBinding.validate_lineage() -> Selfproves_no_memory_exposure (property)
Section titled “proves_no_memory_exposure (property)”MemoryInterventionTrialBinding.proves_no_memory_exposure() -> boolWhether complete attribution proves that this trial exposed no memory.
create (method)
Section titled “create (method)”MemoryInterventionTrialBinding.create(*, spec: MemoryInterventionSpec, operation: MemoryInterventionOperation, receipt: MemoryInterventionReceipt, trial: AgentSnapshotTrialBinding, result: AgentSnapshotResultBinding, attribution: MemoryAttribution, terminal_evidence_available: bool=False, expected_receipt_count: int | None=None, expected_exposure_count: int | None=None) -> MemoryInterventionTrialBindingRelease source · Runtime guarantees · Capability guides
MemoryNegativeControlKind
Section titled “MemoryNegativeControlKind”from cayu.memory import MemoryNegativeControlKindBases: StrEnum.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
IRRELEVANT |
class attribute |
'irrelevant' |
STALE |
class attribute |
'stale' |
CONFLICTING |
class attribute |
'conflicting' |
ADVERSARIAL |
class attribute |
'adversarial' |