Skip to main content

Conversation history and archives

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.

A conversation is scoped by agent and session. PostgreSQL stores active entries, immutable archive snapshots and session metadata. Explicit session search and Dream can resolve evidence through these persisted originals. Brains stores saved memories separately.

Original-message storage​

conversation_entries stores the active transcript. conversation_archives identifies archived generations, and conversation_archive_entries stores their native message occurrences. conversation_original_rows is a read-only union view over live and archived payloads. It is not another independent copy of conversation authority. Original payload columns use PostgreSQL json, not jsonb. That preserves lexical JSON, including escaped NUL characters and lone surrogate escapes that a jsonb conversion would reject. Message decoding for original resolution happens in JavaScript; relational metadata can still use jsonb. Live entries have session-scoped unique entry IDs and idempotency keys. Append locks the session row before allocating sequence values, preserving commit-order pagination. Bigint sequence cursors are represented as decimal strings rather than JavaScript numbers. Retrying a matching append returns the existing entry with idempotent: true.

Operations and their effects​

OperationActive transcriptHistorical originals
AppendAdds an entry, or reuses an idempotent appendPreserved
CompactReplaces active entries with a summary and retained materialSaves the full previous generation first
ResetClears the active transcript and advances reset generationSaves a reset archive first
Archive sessionChanges archive metadataPreserved
Rename sessionMoves session identity transactionallyPayloads and archive records preserved
Fork sessionCopies a bounded active tail to a new targetOriginal source session remains unchanged
Purge/deleteDeletes eligible conversation authorityCascades to its native archive rows; derivative cleanup has separate limits

Compaction and reset update generation counters transactionally. Fork defaults to the latest 200 active entries, reserves the target and rejects an existing target or the source itself.

Reset preserves history

Reset starts a fresh active transcript but retains earlier original messages in reset archives. Explicit agent-history search and Dream can still use those originals. Reset is not an erasure operation. A reset request can carry an operationId, recorded with the committed reset generation so a client can reconcile a lost response by reading the same session. It is not an idempotency key; never automatically resend a reset because its response timed out. See reset outcome reconciliation.

Compression and prompt context​

Compression manages a model's working context, while archives preserve conversation history. The default trigger is 75% of known context capacity, with a preferred recent tail of 48 entries capped at 24,000 estimated tokens. Leaf and summary targets are 20,000 and 6,000 tokens. The older sweep/deadline knobs do not enable additional summarization: current Core rejects non-default unsupported overrides, as described in configuration. This module estimates tokens at four characters per token.

The preferred tail alone does not trigger compression when capacity is known. Under pressure the tail can shrink, but the newest entry is preserved. Deterministic summaries are explicitly lossy, non-authoritative navigation recaps. They disclose that older prose may be omitted and direct the agent to session_search for exact history; explicit lifecycle state is rendered separately. Canonical tool calls/results and context-state records are preserved in active material even when surrounding chat is condensed.

The stored compaction summary is a debug entry marked entersPrompt: false; it should not be mistaken for an original person-facing message. The runtime controls how compressed context is assembled. See Runtime architecture.

Newer Core: one wrapper and whole source items​

The newer compression implementation reviewed on 21 October rebuilds previously covered items from available original entries and combines them with newly covered messages. It deduplicates stable source entry IDs and renders one handoff wrapper. When space is tight, it prefers newer complete items and omits whole items rather than joining arbitrary character slices.

This remains a lossy navigation recap. A single item larger than the available budget can be omitted completely; preservation of every correction or instruction is not guaranteed. The headings do not make this an LLM-written semantic summary. Use session_search for exact wording.

Covered IDs support rebuilding on a subsequent compression cycle when originals are available. This is not a background repair of every malformed stored summary. Missing originals cannot be reconstructed from a source ID alone. Keep archives when exact historical recovery matters.

Release status distinguishes this path from the public 2026.10.19 implementation.

Manual compaction and provider-heavy history​

Current Core adds /compact: it invokes the existing planner through serialized session command admission, with no main-agent model inference. It retains authoritative originals transactionally, reports no-op for empty/irreducible history, and is not /new. Started/completed/failed progress is retained for operator inspection; successful rotation refreshes the context meter. A completion with compressed:false is an honest skipped rotation, not a fabricated summary.

Historical replay is budgeted by retained provider-visible user content and image-token estimates rather than encoded image/data-URI byte length. Runtime-tagged old support packs remain immutable dispatch evidence but are omitted from replay; current support is assembled and charged once. User-authored headings are not a stripping rule, and legacy untagged content keeps its existing representation. Uncovered history displaced by preparation can trigger compaction even if an older request receipt was below threshold. The planner refreshes authority before rotation; below-window screenshots are not compacted just for large encoded bytes. Required/current material that still cannot fit fails the final assembled-request budget guard. Summaries remain lossy navigation, never original proof.

Native continuation summaries​

Checked 14 November 2026: the requested summary length is guidance, not a hard character rejection limit. A valid summary is no longer rejected merely for exceeding the requested length. Each next summary request still reserves output capacity, and the final assembled continuation must fit the real model-context budget. Empty, failed, invalid or tool-calling summary responses remain errors, classified as context_compression_failed; this change does not make context capacity unlimited or recover omitted historical evidence.

Targeted originals and cancellation​

Current development rebuilds a summary by requesting its covered original entry IDs directly. The PostgreSQL store deduplicates IDs and uses batched indexed live/archive precedence lookup rather than scanning all retained history for each ID. This changes retrieval work, not the lossy nature of the recap or the retention of original evidence.

Abort signals propagate through preparation, original retrieval and transactional rotation. Stop can cancel database checkout or the owned query; rollback/drain completes before that client is released. Session ownership is retained while old work can still write, and reset generations fence stale compaction writes. A visible cancelling state is therefore not a promise of instantaneous completion. Inspect the terminal compaction receipt rather than launching overlapping requests.

Side-question history is a separate lane​

A side question captures one active main run and makes an independent tool-free answer. Its visible entries and receipts are excluded from main prompt context, summaries and continuity. Only an operator's explicit edited promotion into Queue next or Steer supplies new main-lane instructions; a side answer is not fresh verification. Queue items/holds survive a browser disconnect, and reset generations fence old queued/running actions. See explicit chat delivery.

Search and recall​

BURROW has several related search boundaries:

PathScope
Normal session evidence searchActive and compacted history since the latest reset
Explicit agent-session evidence searchAgent history including reset archives, with provenance labels
Internal original-history storeCursor-paged originals; the former Albdruck history HTTP route is retired
Operator cross-agent searchOperator inspection; marked entersPrompt: false

PostgreSQL errors or empty results do not trigger a hidden fallback to workspace JSONL. Ordinary session search ranks exact phrases first, then ASCII token coverage; multi-term queries require at least two matching tokens. Results are bounded to 200 with excerpts up to 240 characters. Agent recall deduplicates original entry identities and can include recent handoffs. Historical run proof is also explicit: run_evidence_search requires a nonempty query and accepts a result limit of 1–100. Core binds the active agent; callers cannot select another owner or filesystem root. It searches retained dedicated and legacy evidence across that agent's sessions, including archived sessions. Existing retention still applies (32 records per session and 14 days); this is not lossless raw-receipt recall, a new HTTP API, or proof of current state.

Historical retrieval is explicit. session_search searches the active agent's own sessions, including reset snapshots, with dates, original source references and neighboring dialogue. It accepts since/until; use a result's sourceRef.entryId as sourceId and sourceRef.sessionId as sourceSessionId to expand an original. The default neighbor radius is one, capped at three. The current compatibility recall helper returns automatic_recall_disabled; the pre-turn support builder supplies no automatic session-recall or run-evidence context. Saved Brain memories likewise require explicit tools. The current native session_search path uses one ranked PostgreSQL retrieval across eligible sessions, rather than fetching every session's transcript. A derived lexical projection retains original-occurrence identity and clock metadata; selected originals and up to three original dialogue neighbors per side are fetched through indexed probes. Scope, date, role and source filters apply before hydration. Unicode keys preserve historical matching behavior without rewriting original JSON. Separate narrow/operator search routes retain their own cursor and compression-coverage contracts.

After upgrade, lexical indexing resumes in bounded background pages. Before completion, broad search reports session_recall_not_ready (503) with durable progress. This is indexing in progress, not an empty history, and must not trigger a whole-transcript or JSONL fallback. Exact expansion with both sourceId and sourceSessionId remains available, with readiness.ready: false and neighbors explicitly unavailable. Search, expansion and neighbor reads share cancellation and one bounded read deadline.

Optional, separately enabled conversation embeddings can add semantic candidates to explicit session_search; keyword hits retain priority for exact names/IDs. Provider failure falls back to lexical candidates, while caller cancellation/deadline still propagates. Exact original expansion never contacts the embedding provider. Vectors and excerpts are navigation aids, not original evidence or new authority. See independent conversation embeddings. Original resolution prefers the live entry and then a retained archived occurrence. Dream's original-entry enumeration deduplicates repeated live/archive identities and returns chronological evidence. See Dream cycles and Brains.

Transcript export and archive display​

Transcript export uses one database snapshot. It includes compacted predecessor generations since the latest reset plus active entries; reset archives remain separately retrievable. An export of the current conversation is therefore different from exporting every retained historical generation. Archive collection cursors bind collection/filter scope and use descending timestamp plus identity. Chat calendar availability includes retained visible message occurrence days as well as catalog update/reset dates; unknown occurrence clocks are not replaced with storage timestamps. Reset discovery stays inside that reset's own generation window. Day filters use the supplied timezone, including DST boundaries. Human-readable archive summaries are model-generated and bounded; a summary is not a verification receipt.

Chat detail uses a bounded canonical PostgreSQL page, not a full export followed by slicing. It defaults to 100 turns, clamped to 1–500, with newest page first and chronological order within each page. Its signed cursor binds the agent/session, raw timestamp bounds and retained source revision. A mutation or rewrite may invalidate it; restart from the newest page after 400 archive_cursor_invalid. historyStatus: complete describes retained results, not recovery of previously deleted evidence. The separate mod conversation reader retains its own segmented response contract; do not interchange its cursor with HTTP Chat Archive cursors.

Evidence and completion​

Archive proof combines terminal receipts, canonical tool calls/results and trace evidence, correlated by call IDs to avoid double reporting. Without a terminal receipt, an answer is unverified; without an answer it is incomplete. Assistant prose alone does not establish success. Child verification uses typed results such as passed, failed, failed_expected and not_run. Proof reads inspect the requested run's complete retained trace streams incrementally in an isolated reader, rather than silently truncating evidence or exporting a whole session. Cost still grows with that run's retained trace bytes. Damaged trace records fail rather than inventing a successful receipt. Returned evidence requires review before sharing; historical success is not current verification. Context receipts distinguish current from retained attachments and record compression outcomes. Review those receipts when investigating whether a claimed action had durable effects.

Retention and deletion​

Retention has several independent owners:

DataDefault policyImportant behavior
Conversation and operational historyLegacy conversation/operational age fields default to no limitReview the current retention preview and selected policy before cleanup
Brain saved memoriesNo TTLRevision-checked soft deletion; separate from original history and legacy migration snapshots
Working records and rolling cards90 daysPinned working records bypass expiry; expired-card read filtering is distinct from physical deletion
Handoffs14 daysSeparate store and expiry
Dream preloads7 daysDerived bounded records
Attachment bytes30 days by file modification timenull disables attachment expiry
Generated-artifact bytesNo automatic TTL in the generated-artifact storeDo not apply the attachment default to original generated files
Run tracesDisabled, no age/byte limitEnabling requires at least one limit
When a session policy is explicitly enabled, fallback kind ages are main 60 days, task 30 days and subagent 7 days. The background retention scheduler does not enable session pruning merely because these fallbacks exist. The CLI is different: retention supplies environment-derived kind ages of 60/30/7 by default, so its confirmed invocation can prune eligible sessions even when persisted UI retention is disabled. Preview that CLI's full targets separately. Current/main/default sessions and running or finalizing sessions are protected. Task sessions require an owning board task with done or cancelled status and a terminal timestamp; other non-main sessions require completion evidence. The planner accepts both nested and flattened metadata. It rechecks eligibility before deletion, while the store independently guards active/current sessions and native continuity state. These are source-level safeguards, not a claim that cleanup was tested on your deployment.
Trace cleanup plans are dry-run by default; deletion requires explicit confirmation. The implementation uses a cross-process filesystem lease, containment/signature checks and a current-main recheck. Age selection precedes oldest-first allocated-byte quota selection. Its cadence defaults to 1,440 minutes. Independent cleanup can still run when trace retention or Dream is disabled.
Deletion is not a complete-erasure guarantee

The old /api/albdruck/purge-conversation route is no longer mounted. Internal legacy purge code is not a supported HTTP workflow. Brains soft deletion, session retention, attachment cleanup, migration snapshots and external backups are distinct; no single operation here establishes erasure of every derivative or copy. The current retention preview/run API manages traces; it does not restore per-conversation purge. Inspect the appropriate cleanup targets before confirming any deletion.

Use the operator API reference and procedures rather than direct SQL deletion. Review Backup and recovery before applying irreversible retention changes.

28 October development delta​

Changed behavior above was checked statically against Backend a04acb16b0eab2a910c3ef0fb452622df81a05cb on 2026-10-28. This is not a live provider, database or collector test, nor a revalidation of unchanged historical sections. See source coverage.

Failed turns remain evidence​

Chat and Archive retain structured terminal status and safe model-failure/recovery metadata, including empty failed rows. A genuine partial answer can remain visible, but failure diagnostics are not invented assistant text and failed rows do not enter future prompts. Historical error-looking text alone does not establish failure. See terminal result contract.

5 November development delta​

The changed preference, recall, embedding or shared-guidance contracts above were checked statically against Core 6465a9b200bc550697ddfc41959d671eac9abf33 on 5 November 2026. No application, database or live-provider tests were run; unchanged historical sections retain their earlier qualifications. See source coverage.

Active chat scrollback after compaction​

Checked 6 November 2026: active Chat pages through retained compacted predecessors in the current reset generation, with overlap deduplicated. Load older messages retrieves older display pages; Jump to latest message returns from scrolled-up history. This display projection does not reinsert recovered turns into model context. Explicit reset is a separate boundary, and retention/deletion still limits what can be recovered. Snapshot-bound cursors may become invalid after concurrent history changes; restart at the newest page rather than interpreting invalidation as lost history.

Checked 7 November 2026: active continuation compaction is a separate, request-local semantic recap of older assistant prose. It does not replace the durable compression/rotation behavior described above or delete retained originals. It can incur extra model calls; user tasks and steering remain explicit, while tool evidence uses protocol-safe projection rather than semantic summarization.

Operator session search ranks an exact original-content phrase ahead of token-only matches before compacting and limiting results across sessions/agents. Returned snippets remain bounded and do not expose internal ranking scores. Agent session_search retains its separate retrieval ranking contract.

Reset and in-flight browser paging​

After a successful same-session reset, Chat invalidates older-page ownership as well as its snapshot. A stale transcript response or stale request error cannot repaint the reset conversation. The repository reloads current session authority when a reset changes its epoch. This browser safeguard is separate from server reset-generation fencing and does not delete retained archives.

Group-room deletion boundary​

Checked 9 November 2026: confirmed group deletion removes the operator-owned shared transcript and room metadata and cancels active room replies. It does not delete individual chats, participant sessions, or scheduled jobs. This separate display-transcript operation is not ordinary retained-session pruning. Any integration routing scheduled work into that room needs deliberate review; native schedules do not have a group-room destination field.