Cognitive primitives
Mnemosyne stores the kind with the memory. A fact, a decision and an episode are recalled, forgotten and consolidated differently, so they live in different tables with different fields.
An illustration of typed nodes joined by typed relations:
The ten kinds
The list is PRIMITIVE_KINDS in packages/types/src/primitives.ts.
| Kind | What it holds | Worth half-life | In default recall |
|---|---|---|---|
fact | Durable knowledge, with confidence and a validity period | 58 days | Yes |
decision | A decision with its rationale; a later one can supersede it | None | Yes |
episode | A bounded record of a session or event | None | Yes |
entity | A person, organization, project, concept or place | None | Yes |
strategy | A trigger → action rule of thumb, rated by success and failure | 173 days | Yes |
workflow | A reusable multi-step process with ordered steps | 173 days | Yes |
skill | A stored prompt template for a repeatable task | 173 days | Yes |
task | An action item with a lifecycle and delegation | None | Only with kinds |
event | An append-only record of something that happened | None | Only with kinds |
reasoning | A question, its reasoning steps and the conclusion | 90 days | Only with kinds |
Worth half-life. A daily job relaxes the worth evidence of an unused
memory back toward its neutral starting point. Facts decay by time since their
last recall, reasoning chains and skills by time since their last use
(decayKind in packages/adapter-postgres/src/repositories/RecallRepository.ts,
half-lives in packages/core/src/cognitive/neuro-dynamics.ts). The other kinds
have no decay job: tasks move through a state machine and events are immutable.
Default recall. POST /recall searches seven kinds unless you pass
kinds: the six in DEFAULT_RECALL_KINDS (packages/types/src/indexing.ts)
plus entities, which have their own search arm. Tasks, events and reasoning
chains are indexed but returned only when you ask for them:
curl -X POST http://localhost:3939/recall \
-H "Authorization: Bearer mns_live_..." \
-H "Content-Type: application/json" \
-d '{"query": "firmware rollout", "kinds": ["fact", "task", "event"]}'kinds drives the query. A kind you do not list is not searched at all.
A hyperedge is an eleventh PrimitiveKind, used for relations among three
or more memories. It is created with POST /hyperedges, not with
POST /remember. See Hypergraph relations.
Writing each kind
POST /remember creates any of the ten kinds. The field is kind, the text is
statement, and kind defaults to fact. Tasks, events, strategies and the
other structured kinds also have their own routes (/tasks, /events,
/strategies, /decisions, /entities, /episodes, /workflows, /skills,
/reasoning) that accept their full set of fields.
Facts, decisions and entities take a subtype:
- fact:
preference,trait,event,relationship,skill,concern,architecture,bugfix,config,discovery,policy,process,other - decision:
decision,architecture,policy,process,bugfix,learning,discovery,config - entity:
person,organization,project,concept,place,other
Choosing between them
Did it just happen?
├── Yes → event (or task, if someone has to act on it)
└── No → Is it a thing or a claim?
├── Thing → entity
└── Claim → Is it a rule the team chose to follow?
├── Yes → decision
└── No → Is it about how to do something?
├── Yes → strategy / workflow / skill
└── No → factIf the choice is ambiguous, write a fact.
Example
Larkspur Robotics ships firmware to its warehouse robots every two weeks. One release can produce three memories:
POST /events
{
"type": "external",
"name": "firmware.released",
"description": "Firmware 4.2.0 shipped to the Larkspur Robotics warehouse fleet.",
"occurredAt": "2026-11-16T18:22:00Z",
"source": "release-pipeline",
"metadata": { "version": "4.2.0" }
}Records that something happened. Events are append-only:
DELETE /events/{id} answers 409.