Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Memories & Events

Events are the atomic unit of knowledge in LocusGraph — every piece of wisdom enters the graph as an event.

Events

An event represents a single piece of information submitted to the wisdom graph. Each event contains:

FieldRequiredDescription
event_kindYesThe type of knowledge: fact, action, decision, observation, feedback
sourceYesWho created it: agent, user, system, validator, executor
payloadYesJSON object containing the knowledge data
context_idNoScope the event to a context (e.g., skill:react_best_practices)
linksNoConnections to other loci or contexts

From Event to Locus

Events do not live in the graph directly. They pass through the admission pipeline, which:

  1. Validates the event structure and payload size.
  2. Classifies the event kind into an internal type.
  3. Extracts topics and relationships.
  4. Creates a locus — a permanent node in the wisdom graph.

A locus is the graph-native representation of admitted knowledge. Once created, it participates in retrieval, linking, and confidence scoring.

Kind Mapping

Raw event kinds map to internal types during admission:

Input KindInternal Type
fact, knowledge, observationknowledge_recorded
action, taskaction_completed
decision, choicedecision_made
routine, heartbeat, statusroutine_operation (filtered)
noise, debug, lognoise (filtered)

Events classified as routine_operation or noise are recorded but excluded from standard retrieval. They exist for audit purposes only.

Retrieval

When you call retrieveMemories, LocusGraph searches across admitted loci — not raw events. The query is matched against topics, payload content, and graph connections to return the most relevant knowledge.

Next

Event Kinds
Detailed reference for every event kind and when to use each.
Sources
How source types affect knowledge weight and connections.