Skip to main content
A MemoryEntry is the fundamental unit of knowledge in AMFS. It represents a single piece of information that an agent has recorded.

Structure

Every memory entry has these fields:

Entity Paths and Keys

Memory is organized in a two-level hierarchy:
  • Entity path — Groups related entries. Think of it as the “subject” or “scope.” Can be hierarchical with / separators (e.g., myapp/checkout-service).
  • Key — Identifies a specific piece of knowledge within that entity. Typically descriptive (e.g., retry-pattern, risk-race-condition, decision-auth-strategy).

Naming Conventions


Entry Key (Canonical Reference)

The combination of entity_path/key forms the entry key — the canonical way to reference an entry across the system:
Entry keys are used in causal_entry_keys when recording outcomes, and in pattern_refs for cross-referencing.

Memory Types

Every entry has a memory_type that affects how it decays and how outcomes are applied:

Provenance Tiers

Every entry has a computed provenance_tier that reflects its quality based on how it was created and validated: The tier is computed from provenance.agent_id prefix and outcome_count — not stored separately. Production agents are identified by agent/, prod/, or prod- prefixes.

Values

The value field accepts any JSON-serializable data:

Tiered Memory

Entries are assigned to tiers based on a composite priority score (recency, confidence, recall frequency, importance): Tiers are recomputed periodically by TierAssigner (OSS) or TierWorker (Pro, background). Use progressive retrieval to control search scope:

Lifecycle

A memory entry goes through these states:
Every state transition creates a new version. No data is ever deleted — only superseded.