Core component
Data path
Synchronous management and background learning remain separated in this path:- When the user explicitly adds, corrects or forgets, the Provider immediately performs deterministic operations.
- When semantic induction is required for the task results, Journal first records the events, and then Reflection processes them in the background.
- The Context Director only selects the content required by the current task and does not modify the record body.
- The application results are re-entered into the Journal for subsequent sorting and lifecycle updates.
”Record model”
Personal Memory Record consists of the main text and governance information together:
The Provider saves the normalized machine state for joint reading and writing by the CLI, Dashboard, Skill, and Hook. User-readable Markdown is used for viewing and management, and can also serve as the input for rebuilding after index corruption.
Record formation path
User’s explicit Settings
user.signal indicates long-term preferences, corrections or forgetfulness voluntarily proposed by users. The coordinator first writes the event into the Journal and then synchronously completes the deterministic processing.
Clear long-term requirements can be directly accessed at proven, as current users are the authoritative source of such content. The system will also recognize one-off expressions, such as “Do not submit this time”. This requirement continues to constrain the current task but is not written into long-term memory.
System inference candidate
The results of task completion, verification, Review and contextual application can form inferred candidates. Reflection converts the relevant Personal episodes into Learning Delta (memory change instructions) :
Consolidate near-meaning records, retain more specific selectors (applicable conditions), and link new evidence to existing records. The system’s inferred content initially enters
trial and participates in related tasks with a lower priority. After one successful application, you can be promoted to proven.
The responsibilities of Experience Journal
Experience Journal is an append, replayable machine event log that undertakes three responsibilities:- Use stable
eventIdfor deduplication to avoid repeated learning caused by retries. - Use
episodeIdto associate the events generated for recovery, verification, and cross-session continuation; - Retain the replay capability after a failed Reflection in the background and do not block the current workflow.
Task matching
The Provider first returns the available candidates, and the Context Director then performs hierarchical matching according to the current request:- The priority of
provenis higher than that oftrial. - The priority explicitly set by the user is higher than that inferred by the system.
- The priority of precise project and path Selectors is higher than that of broad global content.
- Recent successful applications will improve subsequent sorting.
- Correcting or participating in failure will lower the ranking and trigger subsequent Reflection.
- The
supersededrecord does not enter the task context.
Progressive context
Comet uses a hierarchical provisioning approach to control resident contexts:- The key Core Profile can be fully integrated into the context;
- A small number of directly related stable Collaboration policies can be fully integrated into the context;
- Other relevant candidates enter the Context Manifest first;
- The Agent expands the required text, source and verification information through a stable ID.
whyApplied. whyApplied comes from actual matching conditions, such as “Current Project Match”, “Current Path Match”, “User Explicit Settings”, or “Recently Applied Successfully”.
The character budget is only limited to the resident text in one task. A successfully saved record will only appear in the context or Manifest when the current condition is hit.
Application feedback
When the Context Director provides a record, an application record is created. After the task is completed, the following results can be written:
The retrieval hit rate is used to measure relevance, and the application results are used to measure the actual task value. The two types of information jointly determine the subsequent sorting and life cycle.
Correction, forgetting and replay
The correction operation creates an updated normalized record and marks the conflicting old version assuperseded. The system’s inferred content cannot cover the main text explicitly set by the user.
Forget operations are written into tombstone (forget mark). This tag is saved separately from the lifecycle, allowing the content that the user has withdrawn to still be recognized when historical events are replayed.
forget retains the rollback capability by default. --permanent performs permanent deletion. When an explicit operation fails, the Provider remains in its original state and returns an actual error.
Local and Remote Provider
The Personal Memory domain accesses the Provider through the unifiedstatus/query/apply contract.
Local Provider
- Retain user-readable
profile.mdand project projections; - Machine indexes can be rebuilt after an upgrade or damage.
- Identify the same repository using a stable repository identity;
- The main workspace and linked worktree share project-wide Personal Memory;
- Different warehouses are isolated from each other.
Remote Provider
- Use the same versioned Provider contract as Local;
- Tokens are only provided through environment variables;
- After enabling Remote configuration, Local will no longer be read simultaneously.
- When Remote fails, it returns the actual state and does not read Local data.
learning will stop the formation of new records and retain existing data. Turning off retrieval will stop providing memory to tasks, but Dashboard and explicit management operations remain available.
Failure isolation
Recall diagnosis
When diagnosing memory usage once, check the three links in sequence:- ** Save Status ** : View records using
comet memory list .or Dashboard; - ** Matching Conditions ** : Check scope, project, path, operation and phase;
- ** application Basis ** : View
whyApplied, delivery and application outcome.

