Skip to main content

Memory and continuity

Source review and historical material

This technical reference was reconciled statically with current implementation on 8 November 2026. Explicit historical examples, screenshots and pinned public links remain historical; they are not evidence of current runtime acceptance. Start with the current operator guide for installation and check your installed build before using newer capabilities.

BURROW separates original conversation evidence, editable agent profiles, operational working memory and explicit saved memories. These have different scopes, lifetimes and routes into model context. Understanding those boundaries helps explain both recall and retention.

These contracts follow the inspected current implementation. Explicitly dated public 2026.10.19 sections describe the historical baseline; release status identifies those differences.

Memory layers​

LayerPurposeScope and use
Original conversation historyRecover what was actually saidAgent/session originals, including retained archive generations
Profile documentsIdentity, behavior, preferences and legacy stored DreamMemory (not automatically injected)Six PostgreSQL-backed documents per agent
Working memoryDecisions, findings, blockers, handoffs and tasksAgent plus explicit continuity scope; explicit search/write tools
Tiddle rolling cardsRecurring topics and cross-session continuityScoped cards; explicit rolling search
Session handoffCompact goal, outcome and evidence pointersAgent/session-local recall metadata
BrainsExplicit saved memoriesOne agent owner, revision-checked edits, no TTL or automatic preload
Dream diaryOperator-facing reflectionSeparate narrative history; never runtime prompt authority

Originals remain the evidence authority. A memory record, excerpt or summary can help locate and interpret evidence, but it does not turn an assistant claim into verified fact. See Conversation history and Dream cycles.

Profiles and preferences​

Every agent has six profile kinds: SOUL, RULES, ORIENTATION, PREFERENCES, TOOLS and DREAM_MEMORY. Each stores Markdown in PostgreSQL and is bounded to 48,000 characters. References beginning postgres:agent_profile_documents/ are virtual file-like references, not physical Markdown files to edit on disk. Complete profile replacement requires all six documents. PREFERENCES holds learned or operator-edited behavioral preferences. Accepted automatic changes commit the document, learning state and audit metadata atomically. DREAM_MEMORY is the compact, human-editable summary used by the public 2026.10.19 Dream path. In the newer reviewed Core, it remains legacy stored data and is excluded from ordinary prompt assembly; Dreaming publishes searchable Brains connections instead. Mutable facts still require current evidence. See Dream cycles. Profile roles and prompt assembly are covered in Agents and minions.

Newer Core: shared Rules and Orientation​

Settings → Agents → Global → Global documents edits Global Rules and Global Orientation. Each agent's Profile documents has independent Include Global Rules and Include Global Orientation controls. Enabled global prose precedes the corresponding local document; the local document is preserved. Existing agents default to both controls off. These are prompt guidance, not tool grants or operating-system access controls.

Explicit scope and recall​

The runtime/operator selects the continuity scope. A model can select within its current scope but cannot invent a scope from a path or chat prose. A tool request with a different project value fails with continuity_scope_mismatch; missing scope also fails closed.

ToolContract
memory_working_searchSearch operational records in the current agent/scope
memory_working_writeRecord operational evidence using runtime-owned agent/session/conversation scope
memory_rolling_searchSearch rolling cards; returns owner: rolling_continuity and entersPrompt: false
session_read_handoffRead a recent local handoff
session_write_handoffWrite an explicit agent/session-local handoff

These names describe memory executors; availability also depends on the runtime's tool configuration and permissions.

Ordinary working-continuity assembly deliberately returns no ambient working records or rolling cards. It also keeps handoffs as recall metadata rather than projecting them into active prompt rows. Explicit tool recall remains available; entersPrompt: false describes this ambient-continuity policy and does not mean that a requested tool result is invisible to the agent.

Operational working memory​

Records have a kind (decision, finding, blocker, handoff or task) and state (active, resolved or superseded). Titles allow 240 characters, content 6,000 characters and source-reference lists up to 12 entries. Records retain creation/update/expiry timestamps and optional pinning.

The default record TTL is 90 days, configurable from 1 to 36,500 days. Pinned records bypass expiry filtering. Rewriting unchanged material preserves its existing expiry rather than extending it indefinitely. Search is bounded to ten results; listing is bounded to 100. A memory item whose kind is task is operational evidence. Board task status and execution receipts have their own store and lifecycle; see Workers and tasks.

Tiddle rolling continuity​

Tiddle collects terminal-turn residue with bounded message excerpts and periodically proposes continuity cards. The terminal append is intentionally cheap: it stores residue without a model call or direct card mutation. The normal pass runs every four hours, considers the last 24 hours of residue and tracks success separately per scope. A failed scope therefore does not require replaying already successful scopes.

Residue and history are native tiddle_entries rows with tiddle_envelopes retaining scheduling and envelope metadata. Residue appends prune older than the 24-hour cutoff and replace the same reference; history appends prune older than 180 days. The previous 240-residue count cap is removed. Due work uses an indexed next_run_at projection. These storage changes do not remove the bounded evidence excerpts or synthesis selection budget. The default proposal is a no-op. One vivid exchange alone is not sufficient recurrence. Accepted updates target exact card identities and preserve evidence references. Explicit lasting positive preferences and behavioral corrections may become grounded preference signals, but Tiddle does not directly rewrite agent profiles. Card changes, history and per-scope success commit atomically under an agent-scoped PostgreSQL advisory lock. Cross-scope synthesis considers a 21-day window, requires at least two source cards across two scopes and checks referenced card identities. Its daily boundary is the first due pass on a different UTC date, rather than a separate local-time nightly cron. The scheduler checks every 60 seconds and starts with an immediate tick. Rolling cards use the persisted rolling TTL, 90 days by default. Expired cards are filtered from reads; that is not a guarantee of immediate physical deletion. Relational scope and identity are (agent_id, project, card_id), and card JSON preserves evidence and legacy metadata.

tiddleStatus.cardTtlDays now reads the persisted rolling TTL, so status and the write policy share the same setting.

Session handoffs​

A handoff summarizes the current goal, result and evidence references. Runtime-generated handoffs skip trivial exchanges but can retain substantive planning even when no tool ran. The curator distinguishes an assistant's assertion from successful tool evidence. Handoffs default to 14 days, with a 240-character title, 24,000-character body and at most eight source references. An explicit handoff cannot be overwritten by an automatic runtime handoff. Recent-handoff selection prioritizes explicit material, then the current session. Handoffs are recall aids, separate from the execution-owner protocol described in Persistence architecture.

Brains: explicit saved memories​

Brains replaces the retired Albdruck operator surface. Newer Core also stores Dream-generated connections here, marked by their dreaming origin; public 2026.10.19 does not yet use that publication path. Each memory has a single agentId owner, a generated immutable ID, title, content, string sourceRefs, a revision and ownership/provenance metadata. Saved memories have no TTL and are not automatically loaded into prompts. They are useful for durable preferences and compact project knowledge, but a saved claim or source reference is not verification of current state.

Use Brains in the interface​

  1. Open Brains and choose Agent owner before searching or writing.
  2. Search existing memories first. Select New memory, add a title and content, and optionally enter one source reference per line.
  3. Open a saved memory to edit or delete it. Operator writes mark it operator-owned; an agent cannot update or remove an operator-owned record.
  4. If another writer changed the revision, select Reload memory, review the new content and retry deliberately. A stale revision is rejected rather than overwriting newer work.
  5. For bulk deletion, select individual records or Select page, then Delete selected memories. Each deletion is independent, not atomic. Review the per-item results and reload conflicts before retrying. Selecting a page does not select the entire archive.

Explicit retrieval and updates​

Agents use brain_search, brain_read, brain_save, brain_update and brain_remove, subject to their tool permissions. The executor binds these calls to the active agent; it rejects a different requested agent. Updates and removals require expectedRevision. Removal creates a tombstone and hides the item from normal reads/search; it does not purge conversation originals or constitute physical erasure. Search before writing and read back important changes. The operator list uses case-insensitive substring matching over title/content, with agent/query-bound cursors. Optional Brain embeddings enrich explicit brain_search; they do not change the operator list into semantic search and do not enable automatic recall. Embeddings are disabled by default. When enabled, the store combines lexical matching with exact cosine ranking over the current agent's saved memories. Provider failure falls back to lexical results with retrieval.fallback: embedding_unavailable. See memory API for settings and indexing status.

Legacy Albdruck migration​

The repeat-safe import preserves legacy knowledge/evidence/revision snapshots. Agent-scoped records retain their owner; legacy global records become owned by hatchet. Imported records are labelled migrated_albdruck, and the UI exposes Legacy migration details. Non-active legacy records are imported as deleted; operator-corrected/deleted records preserve operator ownership. Re-running the import does not overwrite edits or resurrect tombstones. Legacy tables remain present for migration/internal compatibility; they are not the current operator API.

Retention is per store​

Brains, working records, rolling cards, handoffs, Dream preloads, original conversations and attachment files have separate lifecycles. Brains has no automatic expiry. Working and rolling records default to 90 days, handoffs to 14 days, and attachment retention defaults to 30 days. Reset preserves archived originals. Deleting a Brain memory does not erase its original conversation, and cleaning up a conversation does not establish deletion of every saved memory, migration snapshot, exported copy or backup.

The former /api/albdruck/* routes, including history, retention and conversation purge, are not mounted in this release. Use session search and Archive for retained conversation evidence and the current retention controls for supported trace cleanup. Those controls are not a replacement per-conversation purge API. Do not use an old Albdruck purge example as a current API procedure. For deletion protections and exact distinctions, continue to Conversation retention. For recovery of memory together with its original evidence, use Backup and recovery.

Current preference learning boundary​

The learner proposes against the current operator-edited PREFERENCES document. A row-version check fences concurrent edits before a replacement or valid no-op resolves signals. Prior edits do not permanently disable learning. Invalid output, failed writes, missing evidence and baseline conflicts retain pending signals; only cited signals are resolved by a replacement, while a valid no-op resolves its supplied batch.

Supporting operator-message times, not extraction time, establish chronology. Old, mixed-before-edit or unknown-time evidence is deferred rather than restoring removed guidance. Tiddle cites exact supporting operator residue, including at least one newly observed reference; overlapping Dream phases deduplicate evidence. Quiet Dream windows can adjudicate pending preferences without repeating extraction or memory publication.

PREFERENCES remains current guidance only, organized by topic; evidence, citations and audit stay in private provenance. A single clear lasting preference is sufficient, but a correction, joke, roleplay or one-task request is not automatically standing guidance. Bounded adjacent conversation helps interpret the operator's words without giving assistant replies authority. Stable preferences do not expire after 90 days, and silence or replay of old conversations is not reinforcement.

With no new eligible signals, the final Dream preference pass can review nonempty current guidance at most daily after a successful review. Maintenance may rearrange or remove current statements, including duplicates of effective RULES; it cannot add or reword guidance, restore removed history, or amend RULES. Old or unknown-time signals remain deferred.

Inference and maintenance cannot rewrite RULES. A clear explicit operator-directed standing change can reconcile only its exact conflicting rule, with cited newer operator evidence and a separate semantic review of intent and scope. Agent-local direction stays local; changing enabled Global Rules requires explicit shared/all-agent intent. Ambiguous intent leaves the proposal pending without a rule edit or a competing preference. Current preference and rule versions, including global enablement, are checked before the atomic commit. SOUL, ORIENTATION, TOOLS and unrelated rules remain untouched.

Conversation purge removes linked private context/provenance, not operator-authored PREFERENCES. Historical provenance never authorizes restoring removed guidance. These changed contracts were checked statically against Core 6465a9b200bc550697ddfc41959d671eac9abf33 on 5 November 2026, not tested against a live operator profile.

Independent conversation embeddings​

Brains and conversation embeddings have separate off-by-default switches but share one selected connection and embedding model. Enabling Brains alone does not send conversation history. Explicit conversation opt-in allows background indexing of retained eligible dialogue, including reset and compaction archives, and query embeddings for session_search. Tool/debug/system entries, compression summaries and isolated execution sessions are excluded. No automatic recall is added.

Conversation vectors use PostgreSQL pgvector/HNSW, unlike Brains' exact cosine implementation. Missing vector support or a provider outage leaves lexical retrieval available once the lexical index is ready. Passage counts describe a bounded, deduplicated derived index, not every message or complete original coverage; expand the original for exact wording. See conversation search and the embedding API.