The five-verb MCP lifecycle
The diagram below shows the full lifecycle from agent task to durable memory: The agent remains the reasoning layer throughout. Slowave returns memory and evidence; it never independently decides what the final answer or action should be.The five verbs at a glance
What each verb does in detail
activate
slowave_activate is called once at the beginning of every task. It receives the verbatim task description, a concise initial goal, and a scope in kind:id form (for example project:my-api). Slowave opens an implicit task session and returns:
- A compact set of directly relevant or associated memories for that scope.
- Any relevant execution-backed procedures from past tasks.
- Structured warnings (for example scope fragmentation).
- A
retrieval_idto pass toslowave_feedbacklater. - A
session_idrequired byrecallandcommit.
continuity_id can correlate related sessions within a single client conversation. Pass the token the server returns — never invent or reuse one from a different conversation.
On a cold start (no memory exists yet for the scope), the response signals this clearly. The agent should read a stable context document, preserve only durable facts that are not already observable, and then continue normally.
remember
slowave_remember stores a durable, standalone claim that should survive beyond the current session. It is the only write path for long-term memory from the agent side. Valid memory types are:
fact
preference
decision
constraint
instruction
lesson
warning
open_question
task
artifact
occurred_at timestamp when they describe a specific past event. Slowave always records the wall-clock time of the MCP call separately, preserving the true ordering of session activity.
slowave_remember is only for knowledge that should persist across sessions. Ephemeral task state — intermediate results, scratchpad notes, transient observations — belongs in session events, not in long-term memory.recall
slowave_recall is a mid-task semantic lookup. Use it when the question changes direction, when activation didn’t surface enough context, or when a specific piece of historical context becomes critical. It returns:
- Direct memories — semantically matched to the query.
- Associated memories — related through prototype and association structure.
- Procedures — execution-backed methods that match the current question.
- Evidence references — bounded provenance for inspection (pass
evidence="full"for full content).
recall is always session-bound and scope-bound. It returns a retrieval_id that must be passed to slowave_feedback.
feedback
slowave_feedback records what actually happened after retrieval. It is append-only — assessments cannot be retracted, only added to. Each retrieved memory gets one of three assessments:
used— the memory was actively used during the task.irrelevant— the memory was not useful for this task.stale— the memory is outdated. A stale assessment must include astale_reason(contradicted,superseded,outdated,unsupported, orwithdrawn) and a concise explanation. A superseded memory also names the replacement.
used or not_used, and its observed effect (helped, no_effect, harmed, or unknown).
Coverage can be partial (silence on unassessed targets is not treated as negative evidence) or complete (every exposed target has been assessed). slowave_commit enforces that required feedback is present before closing the session.
commit
slowave_commit closes the task with:
- A final goal — the confirmed objective.
- An outcome —
success,partial, orfailure. - An outcome summary — a standalone description of the actual result.
- A verification record — status, summary, and optional evidence references.
- An optional procedure — a reusable method with a summary, durable context, ordered steps, and caveats.
commit returns a retryable incomplete_feedback error listing the outstanding targets. Once all feedback is recorded, the commit succeeds and the session closes.
Local memory components
After a session commits, raw events flow through a consolidation pipeline that produces several types of durable memory structures. No LLM is involved in this path — only local embeddings and deterministic operations.
SQLite is the source of durable state for all of these. The dashboard and CLI expose every layer for inspection.
Background consolidation
Between sessions, a background worker consolidates eligible session activity without any LLM calls:- Eligible raw events are encoded as episodic memories using local embeddings.
- Related episodes are grouped into prototypes and associated through semantic, temporal, and co-occurrence signals.
- Prototype activity produces and maintains searchable schema records — the memory objects your agent retrieves during activation and recall.
Retrieval and working memory
Whenactivate or recall runs, Slowave constructs a compact working-memory set by considering:
- Semantic relevance — embedding similarity between the current query and stored schemas.
- Scope eligibility — only memories within the current scope (or those that have generalized beyond it) are candidates.
- Temporal context — recency and source time are ranking signals.
- Salience — strengthened by positive feedback, weakened by irrelevant or stale assessments.
- Bounded associations — related prototypes can surface associated memories with a
pathway: "associated"label.
Scope generalization
Memory starts scoped to its origin project. Over time, schemas that prove useful across distinct scopes and sessions can earn broader visibility:
This mechanism reduces accidental context leakage during ordinary work. It is not an authorization boundary — use separate memory stores when hard isolation between projects, users, or tenants is required.
How salience and feedback evolve memory
Feedback is the primary signal that drives memory evolution:- Positive feedback (
used, procedurehelped) strengthens the salience of a memory, making it more likely to be returned in future activations. - Negative feedback (
irrelevant) reduces priority without deleting the memory. - Stale feedback marks a memory’s lifecycle state. Stale or superseded memories stop appearing in normal retrieval but their source evidence is preserved for audit.
Procedures
Procedures are distinct from ordinary remembered claims. They are explicit records captured at commit time:- A summary and goal describing what the procedure accomplishes.
- Durable context — facts about the environment the procedure was developed in.
- Ordered steps — the concrete actions taken.
- Caveats — known limitations, failure conditions, or warnings.
- Evidence — accumulated feedback from every time the procedure has been attempted.
Operational boundaries
Memory layer only
Slowave supplies context. The connected agent is responsible for reasoning, planning, answer construction, and tool execution.
Cannot recall what was never recorded
Memory quality depends on the agent writing clear, durable claims. Slowave cannot surface knowledge that was never explicitly remembered.
Token overhead
Tool calls and retrieved context add tokens to each task. The compact working-memory brief limits this, but it is not zero.
Plaintext by default
The local SQLite database is not encrypted by default. Protect it with OS permissions or full-disk encryption for sensitive projects.
