Memory Pipeline
The memory pipeline is the daemon’s background runtime. It saves and indexes evidence, runs Dreaming to derive knowledge from that evidence, and keeps derived state bounded and repairable. It is not a per-memory LLM extraction pipeline.
Evidence first
Section titled “Evidence first”Every memory, transcript, document, and imported source is stored as agent-scoped episodic evidence before anything else happens. Later stages read that evidence. They do not rewrite it.
Dreaming is the only automatic semantic writer. It selects evidence, reasons over it with scoped daemon capabilities, and submits audited ontology operations. See Dreaming and semantic writes.
The legacy extraction, decision, structural-classification, and dependency-synthesis workers are retired. When the pipeline starts unpaused, the daemon marks unfinished historical extract jobs dead instead of leasing them. The router’s memory_extraction workload name remains because Dreaming uses it for inference. It does not enable a retired worker.
Non-semantic workers
Section titled “Non-semantic workers”Other workers maintain indexes and lifecycle state. None of them authors graph knowledge:
- Document ingest splits source documents into indexed chunks.
- Retention removes expired rows while keeping references consistent.
- Maintenance diagnoses queue, index, storage, and graph health and can run bounded repairs.
- Prospective hints, when enabled, generate alternate query phrases for existing memories.
- The retained synthesis worker can render session-derived projections, but it does not publish
MEMORY.md.
See Workers and maintenance for startup and repair behavior.
MEMORY.md
Section titled “MEMORY.md”Dreaming owns the MEMORY.md head. A content pass reads the current head and stages a replacement of at most 1000 tokens. The daemon commits it in the same transaction that finalizes the pass, then writes the file as a credential-redacted projection of that head. The daemon does not overwrite a MEMORY.md that it did not generate.
POST /api/synthesis/trigger runs the retained synthesis worker, which renders a projection and skips MEMORY.md publication. It does not request a Dreaming pass (#2349).
Runtime and concurrency
Section titled “Runtime and concurrency”Pipeline work runs asynchronously inside the daemon. Promise-based I/O yields the event loop. Worker threads move blocking or CPU-heavy helpers, such as source scanning, synthesis rendering, and native embedding, off the main thread in the same process. No job launches another signet executable.
Admission is bounded:
- Document ingestion allows two in-flight jobs across the daemon.
- LLM calls share one semaphore. The limit defaults to 2 and is clamped to 1–256. Set it with
worker.maxLlmConcurrency; a valid positiveSIGNET_MAX_LLM_CONCURRENCYoverrides it. - When
agent.yamlhas nomemory.pipelineV2block,SIGNET_MAX_LLM_CONCURRENCYis ignored and the limit stays at 2 (#2354). - Other workers use single-flight or bounded lifecycle handles. Queued work is observable, cancellable, and subject to its operation deadline.
A few components run as separate, killable processes on purpose:
- the database owner, which is the sole synchronous SQLite owner;
- integrity checks;
- transcript recovery;
- connector health inspection.
These are state-ownership or failure-isolation boundaries, not a general pattern for internal helpers. The native embedding model is loaded on demand and evicted after an idle timeout.
Transcript imports
Section titled “Transcript imports”Agent transcript imports are evidence ingestion, not a semantic stage. The import worker reads streamed signet-export v1 JSONL, processes one job and one file at a time, and commits completed transcripts in bounded batches. It keeps roles, exact whitespace, projects, historical timestamps, and source provenance. Imported transcripts always land in the selected agent scope; agent IDs embedded in the export do not choose the target.
A malformed, oversized, or invalid line is rejected when the file is scanned. Every other nonblank line is pending until it ends as imported, duplicate, or rejected. Evidence, line outcomes, and byte checkpoints commit together, so a restart resumes from the last checkpoint. Replaying the same export reports duplicates instead of creating new evidence.
After the worker finishes a file, it records an imported-source attention item for Dreaming. Dreaming’s normal delivery and review path decides the remaining work. The item is written once per finished file, not after each committed batch, so an import interrupted mid-file can commit evidence without it (#2353).
Removing an imported source purges its import state and keeps bounded audit tombstones. A conversation that another imported source also references moves to that source instead of being deleted; otherwise its transcript is removed. Knowledge derived from the removed source goes through Dreaming’s unsupported/stale review.
See the import API for batch and size limits, upload resumption, and disk-space admission, and Pipeline and storage for the storage layout.
Retrieval
Section titled “Retrieval”Recall reads the evidence and the knowledge Dreaming derived from it. It builds a bounded candidate pool from full-text search, embeddings when available, hints, structured graph paths, ontology claims, and temporal-window evidence.
- Candidate IDs are authorized against the caller’s agent, visibility, project, and scope before memory content is loaded, reranked, or access-tracked. A vector or traversal hit is not permission to read a memory.
- The graph shapes the candidate pool. It does not replace evidence or ordinary search.
- Hints are derived retrieval aids. A hit found only through hints scores below the strongest direct matches, and hints never create facts.
- Secondary stages such as reranking, dampening, and currentness checks are best-effort and fall back to simpler retrieval on failure. The exception is the LLM reranker: when
reranker.useExtractionModelselects it, a reranker failure fails the request.
See Memory and recall for user-facing behavior and How recall ranks candidates for ranking details.
In this section
Section titled “In this section”For settings, see Pipeline configuration and Inference and routing.

