crbro-memory 1.16.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +57 -30
  2. package/dist/engine/brain.js +1 -1
  3. package/dist/engine/brain.js.map +1 -1
  4. package/dist/engine/cortex.d.ts +189 -1
  5. package/dist/engine/cortex.d.ts.map +1 -1
  6. package/dist/engine/cortex.js +639 -17
  7. package/dist/engine/cortex.js.map +1 -1
  8. package/dist/engine/hippocampus.d.ts +27 -1
  9. package/dist/engine/hippocampus.d.ts.map +1 -1
  10. package/dist/engine/hippocampus.js +51 -2
  11. package/dist/engine/hippocampus.js.map +1 -1
  12. package/dist/engine/maintenance.d.ts +49 -2
  13. package/dist/engine/maintenance.d.ts.map +1 -1
  14. package/dist/engine/maintenance.js +301 -28
  15. package/dist/engine/maintenance.js.map +1 -1
  16. package/dist/engine/prefrontal.d.ts +25 -7
  17. package/dist/engine/prefrontal.d.ts.map +1 -1
  18. package/dist/engine/prefrontal.js +55 -27
  19. package/dist/engine/prefrontal.js.map +1 -1
  20. package/dist/engine/synapses.d.ts +38 -0
  21. package/dist/engine/synapses.d.ts.map +1 -1
  22. package/dist/engine/synapses.js +116 -11
  23. package/dist/engine/synapses.js.map +1 -1
  24. package/dist/search/index.d.ts +14 -2
  25. package/dist/search/index.d.ts.map +1 -1
  26. package/dist/search/index.js +40 -6
  27. package/dist/search/index.js.map +1 -1
  28. package/dist/server.d.ts +7 -0
  29. package/dist/server.d.ts.map +1 -1
  30. package/dist/server.js +755 -829
  31. package/dist/server.js.map +1 -1
  32. package/dist/sync/materialize.d.ts +1 -1
  33. package/dist/sync/materialize.d.ts.map +1 -1
  34. package/dist/sync/materialize.js +40 -3
  35. package/dist/sync/materialize.js.map +1 -1
  36. package/dist/sync/ops.d.ts +9 -4
  37. package/dist/sync/ops.d.ts.map +1 -1
  38. package/dist/sync/ops.js.map +1 -1
  39. package/dist/sync/space.d.ts +27 -0
  40. package/dist/sync/space.d.ts.map +1 -1
  41. package/dist/sync/space.js +113 -1
  42. package/dist/sync/space.js.map +1 -1
  43. package/dist/types/index.d.ts +29 -0
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ![CRBRO demo](docs/demo.gif)
10
10
 
11
- Free and open source (MIT). All 23 tools included — no license, no account, no tiers.
11
+ Free and open source (MIT). All 15 tools included — no license, no account, no tiers.
12
12
 
13
13
  > ⭐ **If CRBRO gives your AI a memory worth keeping, a star on GitHub is the best way to support it.**
14
14
 
@@ -19,7 +19,7 @@ Free and open source (MIT). All 23 tools included — no license, no account, no
19
19
  - **🗣️ The model in the loop** — Two levers no embedding model replaces, measured blind: keywords written at save time (the caller knows the synonyms: a line about Hetzner gets *hosting, alojamiento, servidor*) and several phrasings searched at once, fused by rank. Zero disk, zero RAM; numbers in the table below *(v1.15+)*
20
20
  - **🧭 Semantic recall** — `npx crbro-memory init` installs a local embedding model (`multilingual-e5-small`, int8) fused with the keyword engine, so paraphrases the words do not cover start to land. Measured: +8 points of recall@1 over the keyword engine, +2 to +5 on top of save-time keywords. Costs ~500 MB on disk once per machine and ~0.5 GB of RAM while a server runs; `init --no-semantic` skips it, `CRBRO_SEMANTIC=0` turns it off *(v1.14+, installed by default since v1.16)*
21
21
  - **🔥 Heat Scores** — Automatic relevance tracking based on frequency, recency, and connectivity. Topics written in the same session are linked at consolidation, so the graph fills itself in *(v1.13+)*
22
- - **✏️ Correctable** — Knowledge can be superseded or retracted, not just piled up. A memory that only appends keeps serving yesterday's answer with today's confidence
22
+ - **✏️ Correctable** — Knowledge can be superseded or retracted, not just piled up — facts, and since 2.0 decisions, patterns, errors and debts too. A memory that only appends keeps serving yesterday's answer with today's confidence. What was retired stays in the file and can come back (`status=active`); what must not exist on disk goes through `crbro_forget`, quarantine copy first
23
23
  - **🔐 Credential-aware** — API keys, tokens and passwords are replaced with a marker before they touch the disk. The sentence around them survives; the secret does not — and `crbro_secret` puts the real value in your operating system's own keychain, so refusing it does not leave you with nowhere to put it
24
24
  - **👥 Safe with two editors open** — Writes are serialised per neuron, so running CRBRO in two IDEs at once does not silently lose facts
25
25
  - **🤝 Shareable per project** — Put one project in a team space and it stays in step across everyone's machine. Everything else in your brain never leaves it
@@ -27,6 +27,7 @@ Free and open source (MIT). All 23 tools included — no license, no account, no
27
27
  - **📓 Error Ledger** — `type: "error"` stores each real mistake WITH its correction, on the topic where it happened, so the same error is not made twice. Dated since 1.13, so the newer correction wins on recall
28
28
  - **⚖️ Debt Ledger** — `type: "debt"` records what you deliberately did NOT build — ceiling and revisit-trigger included — so dead ideas stop being re-proposed *(v1.11+)*
29
29
  - **🏷️ Honest tool definitions** — Every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`), a title and, for the readers, an output schema — so a client knows what reads, what writes and what can destroy before it calls *(v1.13+)*
30
+ - **🧰 15 tools, one lifecycle** — Every read is a view of `crbro_inspect`; `crbro_learn`, `crbro_revise` and `crbro_forget` are the three stages of one rule (a new truth supersedes the old, an outdated one is retired, a dangerous one is removed), and every description says in its first sentence whether it reads or writes and which neighbour does the adjacent job. Down from 23 in 1.x without touching the brain on disk; `crbro_boot` maps the old names to the new calls *(v2.0+)*
30
31
  - **🛡️ Subagent Hook (opt-in)** — `npx crbro-memory install-hooks --inject` wires a Claude Code hook that hands your behavioral protocols to spawned subagents. Injection is off by default since 1.12 — three clean-control benchmark runs found no measured benefit in any model and real harm in small ones, and shipping an unmeasured default is not what this project does
31
32
  - **⛏️ Knowledge Miner** — Optionally scans your local `.md`/`.txt` notes and feeds them into the brain
32
33
  - **🔒 Fully Local** — Runs on Node.js alone: no Python, no Docker, no databases, no external services. Your memory never leaves your machine. The one download is the embedding model at `init`, from Hugging Face, once per machine; nothing calls out afterwards
@@ -44,7 +45,7 @@ Every number below comes from a deterministic benchmark in [`benchmarks/`](bench
44
45
  | **Retrieval with the model in the loop** (same 48 queries; keywords and rewrites written blind by a model that saw only one half of the test) | keywords alone: recall@1 **83%** · recall@3 **90%** — everything on (keywords + rewrites + semantic layer): **90% / 92%**, and **96% / 98%** counting `also_matched` | The biggest lever costs nothing: 2-5 keywords written when a fact is saved close exactly the gaps no embedding model closed. Rewrites alone barely move the keyword engine (71% → 71% / 79%); they add up on top of keywords. Every configuration and the three questions still missed are in [`benchmarks/README.md`](benchmarks/README.md) *(v1.15+)* |
45
46
  | **Retrieval — false confidence** (14 questions about things that are NOT stored) | 11 return *something*; **2** at a real hit's score; **10 of 11** labelled `weak` | A keyword memory answers almost anything. Every result now carries `confidence`, and the label catches nearly every distractor — at the price of also calling 18 of 48 real hits weak. Weak means "little of the question was covered", not "wrong" |
46
47
  | **Secret redaction** (20 credentials in adversarial disguises, 19 near-miss innocents) | **100%** caught · **0%** false positives | 100% on *this frozen set* — a floor, not a security proof. The set grows as new evasion shapes appear; four of its entries were misses in the first run and were fixed, not hidden |
47
- | **Cost** (what CRBRO adds to a session) | ~**750 tokens** at boot · **~5.4k tokens** of tool definitions · **<1 ms** local recall over 300 facts | The boot block is paid once. The 23 tool definitions are paid on every request by clients that load all tools (Claude Desktop, Cursor); Claude Code defers them and pays only for the ones it uses. 1.12 measured 6.3k and did not say so |
48
+ | **Cost** (what CRBRO adds to a session) | ~**750 tokens** at boot · **~6.5k tokens** of tool definitions · **<1 ms** local recall over 300 facts | The boot block is paid once. The 15 tool definitions (25,866 characters of description + input schema, measured with a real `tools/list` and divided by 4; 34,047 counting the output schemas of the three readers, ~8.5k tokens) are paid on every request by clients that load all tools (Claude Desktop, Cursor); Claude Code defers them and pays only for the ones it uses. Fewer tools, not fewer characters: the 23 of 1.13 measured 21,662 (~5.4k tokens), because each parameter's text now lives in the tool that absorbed it |
48
49
 
49
50
  What these benchmarks deliberately do **not** claim — human productivity, "it knows you", comparisons against other memory systems — is written down in [`benchmarks/LIMITS.md`](benchmarks/LIMITS.md).
50
51
 
@@ -102,7 +103,7 @@ docker build -t crbro-memory . && docker run -i -v crbro-brain:/root/.crbro crbr
102
103
 
103
104
  ### 3. Start using it
104
105
 
105
- Your AI will now have access to 23 memory tools. Start any session with `crbro_boot`.
106
+ Your AI will now have access to 15 memory tools. Start any session with `crbro_boot`.
106
107
 
107
108
  ### 4. (Claude Code, optional) The subagent hook
108
109
 
@@ -118,29 +119,52 @@ Session context never reaches Task-spawned subagents, so this hook can inject th
118
119
 
119
120
  | Tool | Description |
120
121
  |------|-------------|
121
- | `crbro_boot` | Boot the brain at session start — loads hot topics and context |
122
- | `crbro_status` | Brain status neurons, synapses, sessions count |
123
- | `crbro_learn` | Store a fact, decision, pattern, preference, error or debt — with the keywords a future question may use |
124
- | `crbro_neuron` | Read a specific neuron (topic) with all its knowledge |
125
- | `crbro_neurons` | List neurons with optional filters (domain, type, heat) |
122
+ | `crbro_boot` | Boot the brain at session start — loads hot topics, context, the last three sessions and the `retired_tools` map |
123
+ | `crbro_inspect` | Read-only views by id or name: `view=status`, `neuron`, `neurons`, `sessions`, `global_map` |
124
+ | `crbro_learn` | Store a fact, decision, pattern, preference, error or debt — with the keywords a future question may use. `supersedes` retires the old version in the same call |
126
125
  | `crbro_recall` | Search every stored line, not just topic names — returns what matched, how confidently, and the topic's next best lines. Several phrasings at once are fused by rank |
127
- | `crbro_connect` | Create or strengthen a connection between neurons |
128
- | `crbro_connections` | Get all connections for a neuron |
129
- | `crbro_session_log` | Log a session summary |
130
- | `crbro_sessions` | List recent sessions |
131
- | `crbro_context` | Read/update active working context |
132
- | `crbro_hot_topics` | Get the most active topics by heat score |
126
+ | `crbro_revise` | Retire facts (and decisions, patterns, errors, debts via `entries`) as superseded or retracted, reactivate them with `status=active`, and edit summary, domain, tags or name |
127
+ | `crbro_forget` | Remove for good, keeping a copy in `.quarantine/` first — entries of a neuron, a whole neuron (two-step with `confirm_token`), a session log; `restore` and `merge_into` too |
128
+ | `crbro_connect` | Create, strengthen, set the strength of or delete (`action=disconnect`) a connection between neurons |
129
+ | `crbro_context` | Read (no arguments) or update the active working context — topics, open items, discard or clear |
133
130
  | `crbro_map` | Keep one living map of how a topic's system works — replaced whole, never patched |
134
- | `crbro_global_map` | View the neural network clusters and cross-domain bridges |
135
- | `crbro_revise` | Mark facts as superseded or retracted when they stop being true |
136
- | `crbro_audit` | Find credentials stored in the brain — reports the kind, never the value |
137
- | `crbro_forget` | Remove facts for good, keeping a copy in `.quarantine/` first |
131
+ | `crbro_consolidate` | End-of-session consolidation — the only way to log a session; links the topics it wrote and syncs spaces |
132
+ | `crbro_maintenance` | Brain maintenance heat, pruning, integrity, `repair`, `unarchive`, index rebuild |
133
+ | `crbro_audit` | Find credentials stored in the brain, session logs included — reports the kind, never the value |
138
134
  | `crbro_secret` | Put a credential in the OS keychain and keep only its name in the brain |
139
- | `crbro_space` | Create or join a team space — a private git repo for shared projects |
140
- | `crbro_share` | Put one project into a space, after showing exactly what would be sent |
141
- | `crbro_sync` | Exchange notes with teammates now, instead of waiting for the next session |
142
- | `crbro_maintenance` | Brain maintenance — heat, pruning, integrity, index rebuild |
143
- | `crbro_consolidate` | End-of-session consolidation — logs the session and links the topics it wrote |
135
+ | `crbro_space` | Create, join, `sync` or `leave` a team space — a private git repo for shared projects |
136
+ | `crbro_share` | Put one project into a space, after showing exactly what would be sent; `unshare` stops following it |
137
+
138
+ ### Upgrading from 1.x
139
+
140
+ 2.0 went from 23 tools to 15 without touching the brain on disk: a 1.x brain
141
+ opens as it is, and the search index rebuilds itself once. The seven read
142
+ tools became views of `crbro_inspect`, the session log lives only in
143
+ `crbro_consolidate`, and `crbro_sync` is now `crbro_space action=sync`. The
144
+ eight verbs the cards teach (`boot`, `learn`, `recall`, `revise`, `forget`,
145
+ `connect`, `context`, `consolidate`) kept their names and their parameters.
146
+ `crbro_boot` returns the table below as `retired_tools` on every call, so a
147
+ model that learned the old surface finds its way without reading the docs; a
148
+ client that calls a retired name outright gets the MCP "unknown tool" error.
149
+
150
+ | Retired | Use instead |
151
+ |---------|-------------|
152
+ | `crbro_status` | `crbro_inspect view=status` |
153
+ | `crbro_neuron` | `crbro_inspect view=neuron neuron=<id or name>` |
154
+ | `crbro_neurons` | `crbro_inspect view=neurons [domain\|type\|min_heat\|limit\|offset]` |
155
+ | `crbro_hot_topics` | `crbro_inspect view=neurons` (rows) and `view=status` (`hot_topics_recalculated`) |
156
+ | `crbro_connections` | `crbro_inspect view=neuron neuron=<id> [min_strength]` |
157
+ | `crbro_sessions` | `crbro_inspect view=sessions [limit]` |
158
+ | `crbro_global_map` | `crbro_inspect view=global_map` |
159
+ | `crbro_session_log` | `crbro_consolidate summary=... [topics_touched=[...]]` — `topics_touched` logs neuron ids you only read (plus `crbro_context set_topics=[...]` to replace the active topics) |
160
+ | `crbro_sync` | `crbro_space action=sync [name]` |
161
+
162
+ If you use the Claude Code hooks, drop `mcp__crbro__crbro_session_log` from
163
+ any matcher in `~/.claude/settings.json` and from the session-start text:
164
+ every session start would otherwise order a call to a tool that no longer
165
+ exists. Cannot move yet? 1.x stays installable with `npx -y crbro-memory@1`;
166
+ it receives no new features. What changed inside each surviving tool is in
167
+ [CHANGELOG.md](CHANGELOG.md).
144
168
 
145
169
  ## Credentials
146
170
 
@@ -215,10 +239,12 @@ know next time they sit down.
215
239
  - Credentials. `crbro_share` refuses outright if it finds one, and tells you
216
240
  where. It will not redact it and send the rest.
217
241
 
218
- > **Sharing cannot be undone.** Once a teammate has pulled a project it is on
219
- > their disk. Removing their repository access stops anything new from reaching
220
- > them; it does not take back what they already have. That is true of any
221
- > sync system worth knowing before you share, not after.
242
+ > **What was sent stays sent.** `crbro_share unshare:true` stops following a
243
+ > project no more notes go out and the next sync ignores it — but once a
244
+ > teammate has pulled it, it is on their disk. Removing their repository
245
+ > access stops anything new from reaching them; it does not take back what
246
+ > they already have. That is true of any sync system — worth knowing before
247
+ > you share, not after.
222
248
 
223
249
  ## Architecture
224
250
 
@@ -234,8 +260,9 @@ know next time they sit down.
234
260
  │ └── session_2026-05-06.json
235
261
  ├── prefrontal/ ← Working memory
236
262
  │ ├── active_context.json
237
- ├── hot_topics.json
238
- │ └── global_map.json
263
+ └── hot_topics.json (the global map is computed live since 2.0, never stored)
264
+ ├── .quarantine/ ← What crbro_forget removed, kept until you delete it
265
+ ├── unshared.json ← Projects you stopped following in a space (after an unshare)
239
266
  ├── archives/ ← Cold neurons (opt-in; nothing is archived unless you ask)
240
267
  ├── shared/ ← One git repo per team space. Notes only, never the cortex
241
268
  │ └── team/
@@ -14,7 +14,7 @@ const MANIFEST_FILE = 'manifest.json';
14
14
  // The brain FORMAT, not the release. It moves only when the on-disk layout
15
15
  // changes in a way that needs a migration, which is why it has stayed at 1.0.0
16
16
  // while the package went to 1.8. The running version is reported separately by
17
- // crbro_status.
17
+ // crbro_inspect view=status.
18
18
  const CRBRO_VERSION = '1.0.0';
19
19
  // ─── Paths ───────────────────────────────────────────────────────
20
20
  class BrainPaths {
@@ -1 +1 @@
1
- {"version":3,"file":"brain.js","sourceRoot":"","sources":["../../src/engine/brain.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,gEAAgE;;;;;;AAEhE,0DAA6B;AAC7B,qCAAyC;AACzC,0CAAqF;AAGrF,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC7H,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,2EAA2E;AAC3E,+EAA+E;AAC/E,+EAA+E;AAC/E,gBAAgB;AAChB,MAAM,aAAa,GAAG,OAAO,CAAC;AAE9B,oEAAoE;AAEpE,MAAa,UAAU;IACZ,IAAI,CAAS;IACb,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,WAAW,CAAS;IACpB,UAAU,CAAS;IACnB,QAAQ,CAAS;IAC1B,2EAA2E;IAClE,UAAU,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C,CAAC;gBAEvE,sDAAsD;gBACtD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;gBACjE,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;gBAE9D,oEAAoE;gBACpE,qEAAqE;gBACrE,4DAA4D;gBAC5D,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK;qBAC9B,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC;qBAC/C,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;qBAChB,IAAI,CAAC,MAAM,CAAC,CAAC;gBAEhB,IAAI,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC;oBACxB,SAAS,CAAC,IAAI,CAAC;wBACb,EAAE,EAAE,MAAM,CAAC,EAAE;wBACb,IAAI,EAAE,MAAM,CAAC,IAAI;wBACjB,QAAQ;wBACR,YAAY;wBACZ,MAAM;qBACP,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,8CAA8C;QAChD,CAAC;QAED,mCAAmC;QACnC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAClD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AApPD,sBAoPC"}
@@ -49,7 +49,49 @@ export type Emitter = (neuronId: string, change: {
49
49
  kind: 'debt_purge';
50
50
  key: string;
51
51
  at: string;
52
+ } | {
53
+ kind: 'decision_purge';
54
+ key: string;
55
+ at: string;
56
+ } | {
57
+ kind: 'pattern_purge';
58
+ key: string;
59
+ at: string;
52
60
  }) => Promise<void> | void;
61
+ /**
62
+ * Called after a neuron file is deleted, so the search index drops its
63
+ * chunks. The mirror of Indexer: without it a forgotten neuron kept
64
+ * answering recall until the next full rebuild.
65
+ */
66
+ export type Remover = (neuronId: string) => Promise<void> | void;
67
+ /**
68
+ * Everything of `source` folded into `target`, as a new object.
69
+ *
70
+ * Shared by restoreNeuron (a quarantine copy back over a neuron that was
71
+ * re-created since) and mergeNeurons (two neurons that turned out to be one
72
+ * topic). Pure on purpose: neither input is touched, so the caller can diff
73
+ * the result against what it had and emit only what actually moved.
74
+ *
75
+ * Facts line up by id (the content hash), falling back to normalised text;
76
+ * on a collision the target's telling stays but takes the furthest-along
77
+ * status (active < superseded < retracted) and the earliest `added`, and the
78
+ * keys are unioned. Everything else is a set union keyed by normalised text
79
+ * with the target's order first. Local observations (heat, access_count)
80
+ * combine as max and sum; identity (id, name, domain, type) is the target's.
81
+ */
82
+ export declare function unionNeuron(target: Neuron, source: Neuron): {
83
+ neuron: Neuron;
84
+ moved: {
85
+ facts: number;
86
+ decisions: number;
87
+ patterns: number;
88
+ preferences: number;
89
+ errors: number;
90
+ debts: number;
91
+ tags: number;
92
+ map: 0 | 1;
93
+ };
94
+ };
53
95
  /**
54
96
  * Aliases a future question may use, as stored: trimmed, lower-cased, at
55
97
  * most 40 characters each, unique, at most eight. Order is kept.
@@ -65,6 +107,7 @@ export declare class Cortex {
65
107
  */
66
108
  private indexer;
67
109
  private emitter;
110
+ private remover;
68
111
  /** What this session has actually written, for an honest consolidate(). */
69
112
  private tally;
70
113
  constructor(brain: Brain);
@@ -77,6 +120,16 @@ export declare class Cortex {
77
120
  resetSessionTally(): void;
78
121
  setIndexer(indexer: Indexer | null): void;
79
122
  setEmitter(emitter: Emitter | null): void;
123
+ setRemover(remover: Remover | null): void;
124
+ private unindex;
125
+ /**
126
+ * Copy a whole neuron to .quarantine/ with a timestamp, before anything
127
+ * destructive. Same stamp format everywhere, so restoreNeuron can pick the
128
+ * newest copy by name alone.
129
+ */
130
+ private quarantine;
131
+ /** Remove the neuron file, drop its chunks, and keep the manifest honest. */
132
+ private deleteNeuronFile;
80
133
  private emit;
81
134
  /**
82
135
  * Overwrite a neuron with the result of merging the team's notes.
@@ -123,6 +176,12 @@ export declare class Cortex {
123
176
  neuronType?: NeuronType;
124
177
  /** Facts only: words a future question may use that the text does not contain. Indexed, never displayed. */
125
178
  keys?: string[];
179
+ /**
180
+ * On an exact-duplicate fact, replace its stored keys with `keys`
181
+ * instead of merging them. Local only: materialize unions keys across
182
+ * teammates, so a removed alias does not propagate to their brains.
183
+ */
184
+ keysReplace?: boolean;
126
185
  /** Write to this exact neuron and skip name resolution entirely. */
127
186
  neuronId?: string;
128
187
  /** Who is writing: 'session' (default), 'miner', 'manual'. */
@@ -139,7 +198,14 @@ export declare class Cortex {
139
198
  createIfMissing?: boolean;
140
199
  }): Promise<{
141
200
  neuron: Neuron | null;
142
- action: 'created' | 'updated' | 'skipped';
201
+ /**
202
+ * `skipped` — no neuron and createIfMissing was false.
203
+ * `skipped_retired` — the text matches a fact or entry that was retired
204
+ * (superseded or retracted); nothing was written. Re-learning a retired
205
+ * line silently would undo a deliberate revision; the caller decides,
206
+ * with `skipped_retired` in hand, whether to reactivate it instead.
207
+ */
208
+ action: 'created' | 'updated' | 'skipped' | 'skipped_retired';
143
209
  superseded: number;
144
210
  /** Supersedes targets that matched no active fact — a silent miss no more. */
145
211
  supersedes_unmatched: string[];
@@ -155,6 +221,17 @@ export declare class Cortex {
155
221
  preview: string;
156
222
  }>;
157
223
  redacted: string[];
224
+ /** The exact text (case-insensitive) was already an active fact of the neuron. */
225
+ duplicate: boolean;
226
+ /** An exact-duplicate fact had its confidence or keys changed by this call. */
227
+ updated_in_place: boolean;
228
+ /** Set when the text matches a retired fact/entry; nothing was written. */
229
+ skipped_retired: {
230
+ id: string;
231
+ status: 'superseded' | 'retracted';
232
+ revised?: string;
233
+ note?: string;
234
+ } | null;
158
235
  }>;
159
236
  /**
160
237
  * Mark facts as no longer current.
@@ -193,6 +270,53 @@ export declare class Cortex {
193
270
  * retired, and both versions kept surfacing on recall as equals.
194
271
  */
195
272
  private retire;
273
+ /**
274
+ * Bring retired facts back. The inverse of retire: only superseded or
275
+ * retracted facts match, by id or by trimmed lower-cased text. Clears
276
+ * superseded_by (the replacement no longer replaces it) and stamps the
277
+ * revision date; the note, if given, records why it came back.
278
+ */
279
+ private reactivate;
280
+ /**
281
+ * Retire — or reactivate — decisions, patterns, errors and debts by exact
282
+ * text (trimmed, case-insensitive). These are plain strings, so their
283
+ * status lives in the entry_status sidecar keyed by entryId(text), the
284
+ * same way their dates do. A retired entry stays in the file and leaves
285
+ * recall exactly like a superseded fact; status 'active' deletes the key.
286
+ *
287
+ * Never emitted: the sidecar travels only through the local file and
288
+ * survives a sync because applyOps copies and prunes it.
289
+ */
290
+ retireEntries(neuronRef: string, targets: string[], options?: {
291
+ status?: FactStatus;
292
+ note?: string;
293
+ }): Promise<{
294
+ neuron: Neuron | null;
295
+ revised: number;
296
+ unmatched: string[];
297
+ }>;
298
+ /**
299
+ * Edit a neuron's metadata: summary, domain, tags, name.
300
+ *
301
+ * Only fields that actually differ are written and reported; a call that
302
+ * changes nothing writes nothing. `tags` replaces the whole list — protocol
303
+ * neurons keep their 'priority:'/'source:' tags only if the caller re-sends
304
+ * them. `name` changes the display name only: the id, and with it the file,
305
+ * the synapses, the shared map and the connections, never move. `domain`
306
+ * replaces unconditionally, unlike learn, which only fills in 'general'.
307
+ *
308
+ * Not emitted: NeuronOp is only an announcement, and metadata is local.
309
+ */
310
+ setMeta(neuronRef: string, meta: {
311
+ summary?: string;
312
+ domain?: string;
313
+ tags?: string[];
314
+ name?: string;
315
+ }): Promise<{
316
+ neuron: Neuron | null;
317
+ changed: Array<'summary' | 'domain' | 'tags' | 'name'>;
318
+ redacted: string[];
319
+ }>;
196
320
  /**
197
321
  * Replace the neuron's system map.
198
322
  *
@@ -217,6 +341,8 @@ export declare class Cortex {
217
341
  type?: NeuronType;
218
342
  min_heat?: number;
219
343
  limit?: number;
344
+ /** Rows to skip after the heat sort, for paging. Default 0. */
345
+ offset?: number;
220
346
  }): Promise<Array<{
221
347
  id: string;
222
348
  name: string;
@@ -247,6 +373,68 @@ export declare class Cortex {
247
373
  removed: number;
248
374
  backup: string | null;
249
375
  }>;
376
+ /**
377
+ * Delete a whole neuron. Quarantine copy first, then the file goes, the
378
+ * index drops its chunks and the manifest is decremented.
379
+ *
380
+ * Synapses are not touched here (the Cortex has no Synapses): the server
381
+ * calls synapses.removeAllFor(id) right after. Nor is shared state checked
382
+ * — the server refuses beforehand when the neuron is shared, because the
383
+ * next sync would simply re-create it from the team log. Nothing is
384
+ * emitted: there is no neuron-delete op.
385
+ */
386
+ forgetNeuron(neuronRef: string): Promise<{
387
+ neuron_id: string | null;
388
+ backup: string | null;
389
+ counts: {
390
+ facts: number;
391
+ decisions: number;
392
+ patterns: number;
393
+ preferences: number;
394
+ errors: number;
395
+ debts: number;
396
+ connections: number;
397
+ };
398
+ }>;
399
+ /**
400
+ * Quarantine copies of one neuron, newest first. Stamps sort lexically, so
401
+ * the file name alone orders them.
402
+ */
403
+ private quarantineCopies;
404
+ /**
405
+ * Bring a neuron back from quarantine.
406
+ *
407
+ * The newest copy is used unless `file` names an exact basename. If the
408
+ * neuron no longer exists the copy is written back as it was; if it does
409
+ * (a forget of facts, or the topic was re-created since) the copy is
410
+ * unioned into it. The quarantine file stays where it is, so a restore is
411
+ * repeatable. Nothing is emitted.
412
+ */
413
+ restoreNeuron(neuronId: string, options?: {
414
+ file?: string;
415
+ }): Promise<{
416
+ neuron: Neuron | null;
417
+ restored_from: string | null;
418
+ merged_into_existing: boolean;
419
+ moved: ReturnType<typeof unionNeuron>['moved'] | null;
420
+ }>;
421
+ /**
422
+ * Fold one neuron into another and delete the first.
423
+ *
424
+ * `from` is quarantined, unioned into `into`, and then removed exactly like
425
+ * forgetNeuron. Each element that actually moved is emitted for `into`, so
426
+ * a shared target receives the knowledge (the emitter no-ops when `into`
427
+ * is unshared). Synapses are not touched — the server calls
428
+ * synapses.rewire(from, into) right after — and the server refuses
429
+ * beforehand when `from` is shared (unshare first, or the next sync
430
+ * re-creates it).
431
+ */
432
+ mergeNeurons(fromRef: string, intoRef: string): Promise<{
433
+ from: string | null;
434
+ into: string | null;
435
+ backup: string | null;
436
+ moved: ReturnType<typeof unionNeuron>['moved'] | null;
437
+ }>;
250
438
  /**
251
439
  * Which neurons hold something that looks like a credential.
252
440
  * Reports the kind and where it is, never the value.
@@ -1 +1 @@
1
- {"version":3,"file":"cortex.d.ts","sourceRoot":"","sources":["../../src/engine/cortex.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AA2DxF,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,EACF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GACpG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,YAAY,GAAG,WAAW,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACzF;IAAE,IAAI,EAAE,UAAU,CAAC;IA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