ConceptsCognitive primitives

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.

KindWhat it holdsWorth half-lifeIn default recall
factDurable knowledge, with confidence and a validity period58 daysYes
decisionA decision with its rationale; a later one can supersede itNoneYes
episodeA bounded record of a session or eventNoneYes
entityA person, organization, project, concept or placeNoneYes
strategyA trigger → action rule of thumb, rated by success and failure173 daysYes
workflowA reusable multi-step process with ordered steps173 daysYes
skillA stored prompt template for a repeatable task173 daysYes
taskAn action item with a lifecycle and delegationNoneOnly with kinds
eventAn append-only record of something that happenedNoneOnly with kinds
reasoningA question, its reasoning steps and the conclusion90 daysOnly 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  → fact

If 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.