Skip to main content

Briefs and memory

Status: Ready

Truth label: Limited

Audience: Fleet operator, System designer

Reader outcome: Store durable guidance with explicit applicability, correct a memory record without losing its history, and know which store answers which question.

Last verified: 2026-09-13

Full guides: Briefs and reusable context, Memory collections, Brain

Four different memories​

AGENTASIAN has more than one memory because they have different trust and retention roles. Choose by intent, not by convenience.

StoreHoldsRetrieved by
Persistent contextBriefs, decisions, preferences, lessons, rules with explicit applicabilityExact applicability rules, not similarity
Memory collectionsKnowledge, notes, learnings, conversations, voice examplesSemantic and lexical search
Canonical project memoryGovernance and memory files indexed from registered repositoriesHybrid search with scope, phase, record type, and freshness
Influence libraryImported books and documentsSource selection

Persistent context​

Open Manage Cortex > Briefs and memory.

Each record has a title, wording, kind, scope, applicability, processing availability, evidence references, and a revision. This workflow is separate from semantic knowledge search and from approved writing examples.

Create and apply​

  1. Choose a kind and enter the wording. New records are proposed by default and do not affect generation.
  2. Keep the current conversation restriction for a pinned brief, or clear it for reusable guidance. Optional project, voice, audience, and format restrictions narrow where it applies. Choose chat, tasks, or both.
  3. Choose local-only or local-and-cloud processing.
  4. Select Active only when the wording and applicability are ready, then save.
  5. Open Preview what applies to inspect selected records, versions, text hashes, exclusions, and conflicts using the current chat settings.
  6. Start the next chat or task. Chat generation details show the applied record titles and versions with omission reasons. The Cortex task drawer shows the operator context recorded for each attempt.

Audience and format comparisons are exact after case folding. These are explicit applicability rules, not semantic relevance scores. The current request stays primary.

Scope resolution​

The chat scope field chooses internal or an existing client scope. Its value is retained per conversation in this browser.

  • Global context requires that scope.
  • Project context uses Central's current project-to-scope map.
  • If a conversation's active context records link exactly one project, the resolver uses that project for project-wide guidance too.
  • Multiple linked projects produce a visible ambiguity rather than an arbitrary choice.
  • Missing Central scope information excludes project context.

Conflicts​

A shared conflict key declares alternative guidance. More specific conversation, project, and applicability restrictions win, then explicit priority. Equally ranked alternatives with different wording are excluded and reported as unresolved. Identical alternatives are deduplicated.

This does not detect arbitrary semantic contradictions between records with different keys.

Lifecycle​

Create, open, edit, clone, retire, restore, export, import, delete, and paginated browsing are all available. Every save adds a version. Conflicting saves return a conflict and retain unsaved wording.

Restoration loads prior wording and applicability as a proposal. Import creates a new proposal and does not overwrite another record or adopt imported history. Export includes the saved record and its versions, excluding unsaved edits.

Retirement excludes future resolution while preserving versions. Deletion removes the canonical record and its versions. Earlier chat reports and task snapshots remain historical copies: deleting context does not rewrite them.

Budgets​

Chat resolves approved context once per request and appends complete selected records after the current request context. Briefs and decisions receive priority within a 12,000 character context allocation. A record that does not fit is omitted whole and named in the report. At most 10,000 catalog records are inspected, with an explicit limit event.

That allocation bounds this context section only. The provider-aware allocation across dialogue, examples, attachments, tools, and answer reserve is the separate context budget.

Context in tasks​

Chat-created tasks freeze context for the destination project's current scope and task applicability at dispatch. Other task entry points resolve context at attempt start through Central's verified task assignment. CLI, agentic, and legacy prompts all receive it. Run metadata retains the exact selected records, revisions, and exclusions.

A task with an existing chat snapshot keeps it. A later record edit does not change that saved snapshot. Tasks resolving at a new attempt start use the then-active records.

Worker provider location is not assumed from Brain's provider, so automatic task context includes only cloud-allowed records. General-memory exclusions also skip worker learnings and canonical project memory, while pinned operator context remains independently selected guidance.

Evidence references​

Evidence references use draft:<id>:v<revision> or context:<id>:v<revision> and resolve exact retained versions even after newer edits. Missing or deleted versions are labeled unavailable.

Other text stays a note. It is never fetched as a URL or interpreted as a filesystem path. Each inspection accepts up to 20 references of 1,000 characters each, and large differences are marked truncated.

Evidence references are operator-supplied provenance. The interface does not claim that an arbitrary reference proves a lesson, or that a successful task proves a universally useful rule.

Storage is context.sqlite3 in the Brain data root. There is no index projection for this context, so retirement is effective on the next resolver read.

Memory collections​

Open Manage Cortex > Memory collections. Knowledge, Notes, Learnings, and Conversations support paged browsing, full-record inspection, and reviewed corrections.

CollectionPurpose
knowledgeIngested documents and operator-authored knowledge
notesShort user notes
learningsTask outcomes and feedback-derived records
conversationsSaved conversation excerpts
voice examplesApproved style-only examples
canonical project memoryRepository memory and governance history

Browse and inspect​

Browse lists 50 records at a time. The API allows pages of up to 200 records, and previews contain at most 600 characters. Open Inspect or edit for the complete text, scope, and provenance.

Page counts describe the active index when it is read. Concurrent insertions or removals can shift offsets, so refresh after changes. These pages are not a frozen collection export.

Managed imported passages are readable here, and 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 asks for a reload.

BoundValue
New correction text200,000 characters
Combined retained before and after evidence2 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 stays visible with its error and retained intent, and 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, so source checks and result verification expose observed conflicts without establishing a transaction spanning every writer.

Review, restore, and delete history​

Correction history contains applied, pending, failed, and conflicting changes. 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, not confirmed active memory.

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.

Delete correction history removes this record's retained correction entries after confirmation. The last observed event id guards against deleting newer unseen history. Only opaque request receipts remain, so late retries cannot recreate a deleted correction. This is application-level history deletion, not a claim of forensic erasure from database pages or backups.

Storage is document-edits.sqlite3 in the Brain data root. The active vector index remains the source used by retrieval, and failed or pending journal text is never substituted into results.

Add and ingest​

Knowledge can be added as text or ingested from a server-side path. An authenticated caller therefore has access to files readable by the Brain process. Do not expose the Brain API to an untrusted client.

The Chat Note button and the Memory note editor both save to the notes collection.

Rules​

The Rules tab manages persistent Brain rules. Active rules are supplied to worker prompts alongside repository control files. Repository control files are trusted instructions for that repository. Retrieved history and knowledge are labeled untrusted evidence.

Canonical project memory​

Canonical project memory indexes governance and memory files from registered repositories. The local files are authoritative in both managed and direct native sessions. Brain only indexes and retrieves them; it does not write indexed versions back over project memory. Returning to managed work reads the current local files again.

The derived index preserves stable record ids, file and line provenance, status, content hashes, and freshness signals.

Search combines semantic and lexical matches with scope, phase, record type, and freshness filters. If embeddings are unavailable, lexical search can continue.

Target-repository controls are read directly. Retrieved history is untrusted evidence and must not override those controls. The current derived index uses project and filename identity without branch-specific revision fencing, so verify historical results against the active checkout.

Learning candidates​

Highly graded runs can appear in the candidate inbox in Analytics. The inbox deliberately does not expose the run result. An operator must write a generalized, client-free summary and acknowledge that it is not copied client content.

Promotion stores the summary as internal shared methodology. Promotion is always a human decision. Never paste a client deliverable into the promotion form.

Current client-scoped knowledge search does not honor that shared metadata, so promoted methodology is not yet available to client-scoped tasks as designed.

What is still separate work​

Structured lesson merging, canonical project file editing, reconciliation of background indexing, bulk operations, measured lesson usefulness, migration of legacy rules and learnings into the persistent context store, and generated session summaries all remain distinct follow-through work.