Typed memories with half-lives.
A scratch note is useful for a day and a procedural rule for a year, so ee stores memories at four levels, each with its own half-life. When the decay pass runs, a stale memory is demoted, then leaves retrieval with an audit entry.
How fast each level fades.
ee maintenance run --include-decay) weighs freshness × confidence × utility to demote or tombstone a memory, with an audit entry either way.Age, confidence and utility decide when a memory is demoted or tombstoned.
Preserve
3
Demote
1
Tombstone
1
Confidence × utility
0.25
Demote once freshness drops below 0.2; tombstone below 0.04.
Age. Age runs from the latest of a memory’s creation, update and last access, so a memory that keeps being recalled stays fresh.
Demotion. A demoted procedural memory moves down to semantic and a semantic one to episodic, and its importance halves.
Tombstones. A tombstoned memory leaves retrieval and gets an audit entry. The row is kept, and ee curate untombstone <id> restores it.
Sources and assumptions
working
Task notes, scratch, in-progress facts
- decay
- fastest
- packing
- low; suppressed across sessions
episodic
“On 2026-03-12 the release failed because…”
- decay
- medium
- packing
- medium
semantic
Project conventions, architectural facts
- decay
- slow
- packing
- high
procedural
Rules, anti-patterns, playbooks
- decay
- slowest
- packing
- highest
Fields a search can filter on.
--kind failure --field family^rustc). Plain prose gets no typed fields; ee does not invent them.rule
procedural- condition
- action
- exceptions
condition: before tagging · action: cargo fmt --check
anti-pattern
procedural- trigger
- blast_radius
- safer_alternative
trigger: git rebase on main · safer: merge
decision
semantic- options
- chosen
- rationale
- supersedes
- revisit_by
chosen: Asupersync · rationale: no Tokio
convention
semantic- scope
- pattern
scope: tests/*.rs · pattern: allow header after //!
command
procedural- command
- when_to_use
- exit_meaning
exit_meaning: 124 means the command timed out
failure
episodic- cause
- regression_surface
- reverted_at_sha
- family
family: rustc E0277 · cause: missing bound
Every memory also carries its level, kind, content hash, tags, confidence, utility, importance, access count, source, evidence spans, links and trust class. README, “Memory Model”.