Cortex memory collections
Status: Ready
Truth label: Current
Audience: Fleet operator
Reader outcome: Use cortex memory collections in Cortex, with every control, its verification, and its limits stated.
Last verified: 2026-09-13
Open Manage Cortex > Memory collections. Knowledge, Notes, Learnings and Conversations support paged browsing, full-record inspection and reviewed corrections. Project memory and approved structured context retain their dedicated editors.
Find and inspect records
Browse lists 50 records at a time. Previous and Next reach the rest of the collection. The API allows pages of up to 200 records; previews contain at most 600 characters. Open Inspect or edit for the complete text, scope and provenance. Learning groups and their counts describe the current page. Search remains a ranked result list, with exact-record controls when retrieval returns an identity.
Page counts describe the active index when it is read. Concurrent insertions or removals can shift offsets; refresh after changes. These pages are not a frozen collection export.
Managed imported passages are readable here. Their editor directs you to the Influence library for source editing, publication and retirement. A generic correction cannot silently replace a published book passage.
Correct a record
The editor loads a digest of the exact content and metadata. Save compares that digest with the active record. If another editor or an index update changed it, Cortex keeps unsaved text and requests a reload. New correction text is limited to 200,000 characters. Combined retained before/after evidence is limited to 2 MB.
A correction preserves scope and provenance. Its journal records the submitted intent and prior value before updating active memory. An update is marked applied only after the active index confirms the requested record. A failed write remains visible with its error and retained intent; it does not make the proposed text active in retrieval.
Retry selected change retries the same intent. A changed source or a newer correction prevents an older intent from replacing it. If the index succeeded but the process stopped before journal completion, retry recognizes the retained result instead of creating another correction.
Journal-managed writes serialize through SQLite. Background index writers do not share that transaction. Source checks and result verification expose observed conflicts, but do not establish a transaction spanning every external index writer. Existing legacy document PUT/DELETE routes now retain history too; those clients use the server-observed value and do not gain the new editor's earlier-read guard automatically.
Review and restore
Correction history contains applied, pending, failed and conflicting changes. Load more history to reach older entries. Inspect selected change shows its exact prior value, requested after value, request and status. For a failed or pending change, the after value is a proposal and is not confirmed active memory. Export saves the selected retained change with its collection and record identity.
Restore as a new correction restores the chosen before or after text against the currently loaded digest. An existing record keeps its current metadata. Restoring an absent record restores its retained metadata too. History references must belong to that exact collection and record; imported JSON does not acquire restoration authority.
Remove from memory removes the active record and keeps its text in correction history. Use the collection's Correction history catalog to find removed records and restore them. Restoring old lesson text can make an existing exact-text lesson judgment applicable again; feedback remains separately managed in Output feedback.
Delete history
Delete correction history removes this record's retained correction entries after confirmation. The last observed event ID guards against deleting newer unseen history. Active memory and independently retained feedback or source evidence remain available.
Only opaque request receipts remain in this journal so late retries cannot recreate a deleted correction. This is application-level history deletion, not a claim of forensic erasure from SQLite pages or backups.
Storage and limits
document-edits.sqlite3 in the Brain data root owns correction intents, status, before/after evidence and request receipts. The active vector index remains the source used by retrieval. Failed or pending journal text is not substituted into results.
This improves management of existing memory rows. Structured lesson merging, canonical project-file editing, reconciliation of background indexing, bulk operations and measured lesson usefulness remain separate work. Voice learning still requires its own consent and applicability controls.
Verification: tests/test_document_edits.py, feedback/source regressions, tests/browser/memory-collections.mjs and the existing output-feedback browser workflow. The fixtures use private stores and deterministic embeddings.