Skip to content

Temporal Model

MIF uses a bi-temporal model distinguishing between:

  1. Transaction Time: When the memory was recorded in the system
  2. Valid Time: When the fact represented by the memory is true
PropertyTypeDescription
validFromDateTimeWhen fact becomes valid
validUntilDateTimeWhen fact expires (null = indefinite)
recordedAtDateTimeWhen recorded (transaction time)
ttlDurationTime-to-live (ISO 8601 duration)
decayObjectDecay model parameters
accessCountIntegerTimes accessed
lastAccessedDateTimeLast access time
ModelFormulaUse Case
noneNo decayPermanent memories
linearstrength = 1 - (t / ttl)Simple linear decay
exponentialstrength = e^(-t/halfLife)Natural forgetting curve
stepstrength = 1 if t < ttl else 0Hard expiration

MIF’s decay model values (P7D, P14D, P30D half-lives) are pragmatic defaults for AI memory systems, inspired by but not directly derived from cognitive psychology research. They represent reasonable approximations for memory management in agentic contexts.

The exponential decay model strength = e^(-t/halfLife) is inspired by Hermann Ebbinghaus’s forgetting curve (1885), which demonstrates that memory retention follows an exponential decline:

Time ElapsedApproximate Retention
1 hour~50%
24 hours~30-35%
7 days~25%
30 days~10%

The mathematical form R = e^(-t/S) where R is retrievability, t is time elapsed, and S is memory strength, has been validated by modern replication studies.

Half-LifeUse CaseRationale
P7DShort-term contextAligns with weekly work cycles and episodic memory consolidation windows
P14DMedium-term projectsSpans typical sprint/iteration boundaries
P30DLong-term knowledgeCorresponds to monthly review cycles and hippocampal consolidation periods (~30 days in animal studies)
P90DDefault TTLQuarterly relevance for most organizational knowledge

These values are not prescriptive—implementations SHOULD tune them based on:

  • Memory type (episodic decays faster than semantic)
  • Organizational context (high-velocity vs. stable environments)
  • Access patterns (frequently accessed memories reinforce slower decay)

Research on memory consolidation suggests memories transition from hippocampus-dependent (recent) to cortex-dependent (remote) storage over time. MIF’s lastAccessed and accessCount fields enable implementations to model reinforcement—each access can reset or slow decay, analogous to spaced repetition strengthening memory traces.

References:

temporal:
valid_from: 2026-01-15T00:00:00Z
valid_until: null
recorded_at: 2026-01-15T10:30:00Z
ttl: P90D
decay:
model: exponential
halfLife: P7D
strength: 0.85
last_reinforced: 2026-01-18T09:00:00Z
access_count: 5
last_accessed: 2026-01-20T14:22:00Z