Skip to content

API Reference parrot.memory.dynamics.models

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.memory.dynamics.models

View source

Versioned dynamics state; review evidence is added by the evidence-contract task.

Alias ChatStorageEvidenceRef

Re-exported from parrot.memory.agent_memory.models.ChatStorageEvidenceRef.

Class CheckedPattern

Untrusted application claim to be checked against engine-owned evidence.

Fields:

Field Type Default Description
pattern str
ref MemoryRef
exposure_id str
evidence_refs tuple[str, ...] (

Attribute DEFAULT_PARAMETERS

Attribute FSRS6_REFERENCE

Class Grade

Ordered FSRS grades, admitted only after evidence verification.

Attribute LOWER_BOUNDS_PARAMETERS

Class MemoryCitation

A subset of a delivered manifest; a citation never assigns a grade.

Fields:

Field Type Default Description
exposure_id str
refs tuple[MemoryRef, ...]

Method MemoryCitation.merged_with

Return this citation extended with the references of a later one.

Both the in-process and the durable citation paths use this single rule, so an exposure cited from two processes merges exactly as one cited twice from the same process.

merged_with(other: 'MemoryCitation') -> 'MemoryCitation'

Parameter Type Default Description
other 'MemoryCitation' A later citation for the same exposure.

Returns: 'MemoryCitation' — A citation holding this citation's references followed by the new ones.

Raises:

  • ValueError — If exposure, owner or reference identity conflicts, or the merge exceeds 64 references.

Class MemoryExposure

Runtime-minted manifest of memory actually delivered in one model attempt.

Fields:

Field Type Default Description
exposure_id str
scope MemoryRequestScope
attempt_id str
refs tuple[MemoryRef, ...]
packed_digest str

Alias MemoryNamespace

Re-exported from parrot.memory.episodic.models.MemoryNamespace.

Class MemoryParameters

Immutable algorithm, time-policy and parameter identity.

Parameter Type Default Description
**data object {}

Fields:

Field Type Default Description
algorithm str
time_policy str
parameter_id str
weights tuple[float, ...] DEFAULT_PARAMETERS
reference str FSRS6_REFERENCE
provenance str

Class MemoryRef

Identify a delivered version inside its full namespace.

Parameter Type Default Description
**data object {}

Fields:

Field Type Default Description
namespace MemoryNamespace
kind str
memory_id str
content_version str

Attributes:

Attribute Type Description
canonical_key str Return the version- and namespace-scoped durable identity key.

Alias MemoryRequestScope

Re-exported from parrot.memory.agent_memory.models.MemoryRequestScope.

Class MemoryState

Persisted state and earned-review count; uninitialized legacy state is neutral.

Parameter Type Default Description
**data object {}

Fields:

Field Type Default Description
difficulty float | None None
stability float | None None
reviewed_at datetime | None None
review_count int 0
apply_revision int 0
status str 'uninitialized'
parameter_id str | None None

Class ReviewCommand

Validated version-specific request for one atomic state transition.

Fields:

Field Type Default Description
ref MemoryRef
signal ReviewSignal
exposure_id str
expected_revision int

Attributes:

Attribute Type Description
dedupe_key str Return the scoped idempotency identity for this review command.
payload_digest str Return the canonical payload digest used to distinguish dedupe conflicts.

Class ReviewReceipt

Report durable application, duplicate, conflict or no-review without false success.

Fields:

Field Type Default Description
status Literal['applied', 'duplicate', 'conflict', 'stale_revision', 'ignored', 'pending', 'storage_unavailable']
dedupe_key str
outcome_id str
ref_key str
reason str | None None
apply_revision int | None None
replay_ref str | None None

Class ReviewRecord

Replayable evidence and before/after state for a committed application.

Fields:

Field Type Default Description
command ReviewCommand
before MemoryState
after MemoryState
parameter_id str

Class ReviewSignal

Immutable observed outcome with engine-verifiable provenance.

Fields:

Field Type Default Description
outcome_id str
outcome_revision int
observed_at datetime
scope MemoryRequestScope
evidence_ref str
source Literal['tool_runtime', 'coder_engine']
outcome Literal['success', 'failure', 'cancelled', 'incomplete']
first_attempt bool
correction_count int
error_signature str | None None
recovery_refs tuple[str, ...] (
passed_check_ids tuple[str, ...] (

Attributes:

Attribute Type Description
can_review bool Return whether this outcome may enter a durable state transition.

Attribute UPPER_BOUNDS_PARAMETERS

Alias visible_to_scope

Re-exported from parrot.memory.episodic.visibility.visible_to_scope.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally