Repository navigation
SuperLocalMemory v4.2.30
This release adds a way to measure whether memory helps the agents that use it, a layer that records where each memory came from, disputes between memories that say different things, a judge ladder with audits, a living wiki, importing from other apps, picture and document models that set themselves up, and one kill switch that turns all of it off. Everything new is on by default.
The store moves from schema 68 to schema 85. All seventeen migrations (M069 to M085) only add tables, columns and indexes, plus a few data steps with undo records, and every update that changes the store first takes a verified restore point. The migrations run by themselves the first time the new version starts; there is nothing to run. On a copy of a 45,286-memory store the whole upgrade took about 37 seconds, 35 of them the safety copy, and every memory was still there afterwards. A 4.2.19 or older build refuses to open a store stamped 85, with the message that the installation is too old for the database. To go back, run slm db prepare-downgrade first: it takes a verified copy, stamps the store back to schema 51, and leaves the new tables in place, where an older build ignores them. Memories saved by the older build in the meantime carry none of the new records.
Everything new in this release is on by default, and each part has its own off switch (slm flags set <flag> off, or SLM_FEATURE_<FLAG>=off). The parts that act on your memories only act once they have the evidence they need: until then they watch and report, as each entry below says. Four of them measure. SLM writes a receipt each time it hands memories to an agent (ids, rank, score, never text), compares an agent's reply with the memories it was given to see which were used, leaves out one eligible memory or one retrieval channel in about 1 in 10 session starts, and swaps two neighbouring results in about 1 in 20 of an agent's explicit recalls. All of it stays on your computer. slm measurement off turns off the withholding, the swaps and the usage check, slm measurement off --receipts turns the receipts off too, and the dashboard has the same switch under Settings, "Help SLM measure what works". The notice that says this is printed on the first terminal run after an upgrade and at npm install.
The kill switch is slm flags kill on, or SLM_4230_OFF=1 in the daemon's environment. It stops every 4.2.30 background pass and makes reads ignore slots, source leases, disputes and taint, so SLM reads your store the way it did before this release, without a downgrade. It does not bring back memories that 4.2.30 already retired (slm flags rollback-retirements does that), and it does not change the schema.
Added
- Per-prompt memory. The UserPromptSubmit hook (
slm hook auto_recall, registered in the Claude Code family of plugins, Codex, Antigravity and Muse) asks memory before the agent answers, but only when the prompt needs it. Fixed rules skip acknowledgements, greetings, arithmetic, translation requests and slash commands. Of the rest, a prompt is skipped only below a threshold that is set from your own logged prompts so that at most 10% of the prompts that needed memory are skipped, and until enough prompts have a known outcome the score skips nothing. A memory the conversation already received is never shown again, and a hook that cannot answer within its budget adds nothing. On by default (delivery.need_gate);shadowstill injects memories on every prompt the fixed rules let through. - Cues. A memory can be saved with cues (
remember(cues=[...]),slm remember --cue): a file path pattern, a tool and command text, an error text, a repository name or a date. The memory comes back right before or after the matching step, at most once per conversation and at most five per step. Editing a file that memories were saved from also warns that those memories may be out of date.slm cues listshows them. - Every recall result says why it came back: which channels found it, whether the answer check judged it supported, weak or related, whether it is current, disputed or from a source that changed, and how long ago it was saved. A memory enters an agent's context in whole sentences, any cut is marked, and a remembered opinion is labelled as a view someone stated and not as a checked fact.
- A session start chosen for the project the agent is in: the repository and branch, this project's memories, its recent session summaries that say more than a date, its open disputes and the files that changed. It never pulls in another project's memories.
slm session-contexttakes--project-dir. - Memory Health,
slm health --memory(alsoGET /api/outcomes/health, MCPhealth(memory=true)and a dashboard card). It reports deliveries, how often each memory is used with a range, the measured effect of including a memory or a retrieval channel with fixed and anytime-valid intervals, the state of every judge certificate, whether each learner is still learning, and what the harm gate sees. The harm gate only reports; it never removes a memory from what an agent sees. A claim needs at least 20 sessions in each arm. - Learning from use. The ranker now retrains in the background on labels from what agents used, weighted by the logged probability of each delivery, and it can reach live recall only after an offline test on held-out deliveries shows a lower bound above zero. Ranking itself stays off unless
SLM_RANKINGis set. Co-retrieval links now learn from agents' recalls as well as from the dashboard, the bandit settles each play from whether a memory it surfaced was used, and workflow patterns are mined in shadow. Cross-project transfer is retired on purpose, because it would carry one workspace's preferences into another. - Where a memory came from. Every memory records how it arrived and is classed from
user_directdown tomodel_generated. A memory saved before your store took 4.2.30 islegacyand is trusted exactly as it was before, decided by its date; a memory saved later with no origin record isunknownand is still shown, but cannot become an instruction by itself. Its taint is the lowest class among it and everything it was built from. Nothing replaces a memory automatically unless the newer one is at least as trusted, and a mismatch opens a dispute instead.slm why FACT_ID,fetch(why=true)andGET /api/trust/why/{id}explain one memory: its origin, signature, disputes, source state and the last times it was shown to an agent, with the reason. - A minimal instruction firewall, on by default. It never hides anything from SLM: every memory, whoever or whatever saved it (an agent, a hook, a bounded loop, an import), reaches recall, session start and cues, as in 4.2.19, so learning is never blocked. The one thing it does: text from a web page, a tool's output, another agent's message, an imported file or a model's rewrite cannot by itself become an instruction (a pin, a standing rule or decision, or a core block) until one explicit, recorded promotion (
slm trust promote,core_memory(action="promote"),POST /api/trust/promote/{id}or the dashboard card "Held back from instructions"), whichslm trust withdrawtakes back. Your own words, an agent's own words and everything saved before the upgrade can be instructions directly, so a rule an agent saves works at once. - The secret screen, on by default. Every door that saves text replaces anything shaped like a credential with a typed placeholder such as
[REDACTED:GITHUB:ab12]before it is stored. The original is kept nowhere, and a save is refused if the screen cannot run. It matches known key formats and long random-looking tokens, not sentences such as "the password is hunter2"; public material (SSH public keys, public certificates, SRI hashes) is left as it is. - Signed memories, on by default. The daemon signs each memory with a key from your operating system's keychain and makes each new audit-chain link an HMAC under the same key. This detects a memory changed by something that has your files but not your login session, such as a synced copy or a disk image; it does not stop a process running as you. There is never a key file. On macOS the keychain may ask once to allow access, for example after Python itself is upgraded; SLM never waits for it: it starts normally and signing begins once the keychain answers. When the computer has no keychain to ask (for example a session without a login keychain), SLM does not ask at all and says signing is unavailable.
slm signing statusandslm doctor --truthreport modified or unsigned memories by id, andslm signing resignsigns again after a lost key. - Agents decide, and every decision is recorded and can be undone. Any caller (an agent through MCP, CLI or HTTP, a script, or a person on the dashboard) can settle a dispute, release a held memory, give a blind audit label, apply or roll back a set of proposed changes, start an import, change the kill switch and sign again. Each is recorded with who, which channel and when in a decision log (M084), listed on the dashboard under "Recent decisions by your agents" with an Undo button, and undone through
POST /api/decisions/{id}/undo. The one exception isslm signing resign, which is recorded but has no undo. The channel comes from the connection, never from a parameter, and a caller on another machine keeps its API-key role. The one thing that stays with the owner is consent to send memory text off the machine (slm consent). - Explicit slots and disputes in recall.
remember(slot="subject/relation", slot_value="...")states the current value of one thing. The same value later is a restatement, and a different one opens a dispute. A recall result whose slot is disputed carries both sides, newest first, with the other side's text and a stated next action, andlist_disputesandsettle_dispute(MCP),slm disputesand the dashboard card "Needs your answer" settle it. A stale dispute is closed and reported, never applied. On by default (truth.slots, which also covers the source leases below). A settled dispute is filed through the correction ledger (truth.slots.auto_apply) and can be rolled back. - Source leases. A memory saved with
source_file(MCP, CLI, HTTP, and documents saved from a local path) records the file's fingerprint, and recall marks the result when the file changed or went missing, using onestatand never a write. - Judges and audits, on by default. Typed questions (does the newer memory replace the older one, are these duplicates, may this be admitted, and three more) go through rules, then the on-device Laya judge, then the online Jev judge, each answer receipted. A judge acts on a memory only when blind audit labels support it at a stated error rate and confidence: with the defaults (0.05 to retire, 0.01 to close, confidence 0.95) a judge needs 73 clean labels before it can retire anything. Certificates are voided when labels or drift stop supporting them.
slm auditand the dashboard card "Help it get things right" ask the questions without showing the judge's answer, andslm consent give judge_ladder_hostedis the owner's yes before any pair of memories goes to Jev. Jev is asked one pair per request, because its batched answers moved with order and partners. Until a judge holds a certificate it only watches, and nothing leaves your computer until the owner says yes. - Proposals and the living wiki. Changes to derived text are made as sets of proposals, with the earlier version of every overwritten summary, profile or page kept, and
slm proposals rollbackputs a set back exactly.slm wikicompiles pages (current state, a family of decisions, a topic) in which every sentence is a word-for-word piece of a memory it cites or a fixed template, re-checked on every read, with the count of withheld sentences on each page. Pages are written as Markdown into thewikifolder of your SLM data folder (orSLM_WIKI_DIR) and your edits are read back as proposals, never as writes, and a deleted line forgets nothing. In the background,compiler.dreamqueues page and duplicate-merge proposals for review at most every six hours and applies nothing. - Importing.
slm import preview|run|status|cancel|undo|list(and the dashboard card "Bring your memories from another app") brings in ChatGPT and Claude exports, Mem0, Letta.affiles, OKF folders and plain Markdown such asAGENTS.mdandCLAUDE.md. A preview says what a file holds and saves nothing, a run is a cancellable background job that yields to recalls, and one Undo removes everything that run saved. Imported memories get the originimported_file, a low class, never overwrite what you remember, and a contradiction opens a dispute instead of moving a value. An upload through the dashboard is capped at 64 MB. On by default. Letta's archival memory is not in an.affile and cannot be imported. - Pictures and documents set themselves up. On a computer with 16 GB of memory or more, once SLM is running and idle, it downloads and sets up images and documents (about 1.5 GB of model plus its Python packages) and then the two optional models, about 3.9 GB in all, without asking, one download at a time, and never while the machine is short of memory:
media.captionswrites a short description of each picture, labelled as written by a model (a 0.5 GB download), andmedia.document_packreads scanned pages with PaddleOCR-VL, with the standard reader as the fallback (1.9 GB).media.regionskeeps the page and place each piece of read text came from. A failed download is tried again later, waiting longer each time. Anything you or an agent turned off stays off. Below 16 GB it is one click (slm media enable,slm media pack enableor the dashboard), with a note that it may be slow; it is no longer refused.slm media statusandslm media pack statussay how far it is in plain words. Both models were run on a copy of a real store: a caption takes a few seconds and the caption worker needs about 3.2 GB; reading one A4 page takes about 2 to 3 minutes on a busy CPU and about 6 GB, so it runs only in the background page jobs. slm doctor --truthchecks the store's invariants read-only, including that every memory change names a certificate or a recorded decision, and the dashboard's Truth checks and Trust overview cards say the results in plain words.- The kill switch is on every surface:
slm flags kill on|off,slm flags rollback-retirements [--dry-run],POST /api/flags/kill, the Settings card "Turn off everything new in 4.2.30", andkill_switchin MCPget_statusandhealth. Turning it on or off is itself a recorded decision.slm flags rollback-retirementssays first how many memories would come back, touches only retirements the truth layer made, and works with the switch on or off. - Hooks reach people who upgrade. The new per-prompt (
auto_recall) and cue hooks are added by themselves: once per version, after it starts, SLM replaces only its own entries in the Codex hooks file, and in the Claude Codesettings.jsonwhen SLM's hooks were installed there rather than through the SLM plugin, and adds the missing ones. Where the SLM plugin is installed, the plugin carries the hooks andsettings.jsonis left exactly as it is. Every other hook, key and setting in those files stays exactly as it was, a backup (<file>.bak-slm-4.2.30) is written before the first change, and a file without SLM's hooks is never touched.slm upgrade-hosts --applydoes the same on demand,slm doctorsays per host whether SLM's hooks are current, and for hosts whose hooks come in a plugin (the Claude Code and Codex plugins, Hermes, Antigravity, Muse) both print the exact update command.SLM_NO_HOOK_UPGRADE=1turns the automatic step off. - New settings:
SLM_4230_OFF,SLM_NO_HOOK_UPGRADE=1,SLM_NO_AUTO_DOWNLOAD=1(no automatic model download on this computer),SLM_FEATURE_<FLAG>(for exampleSLM_FEATURE_OUTCOMES_HOLDOUT=off, which overridesfeatures.json),SLM_HOOK_RECALL_WORKERSandSLM_WIKI_DIR.slm flagslists every flag and its state. The plugins' skills, agents and rules are updated for all of this and rebuilt for every host.
Changed
- Recall now always respects
limit. Until now a query containing a bare word such as "all" ("all passed", "in all") was read as an aggregation question and returned 36 to 86 results forlimit=10. A bare "all", "every", "different", "many", "several", "multiple" or "various" is no longer an aggregation intent unless a question or an instruction opens the query, and "at all", "in all" and "after all" never are. A caller that wants a wide answer now passes a largerlimit. - Per-prompt recall is about twice as fast. On a copy of a 43,888-memory store, one session's per-prompt hook went from a median of 1.27 s to 0.54 s (95th percentile 2.28 s to 1.16 s); four sessions at once, measured in one process, went from a median of 3.74 s to 1.63 s. The recall queue now wakes its consumer at once instead of polling, the daemon serves two sessions at a time (
SLM_HOOK_RECALL_WORKERS, 1 to 4), and the erasure check in community context went from 88 ms to 3 to 6 ms. Idle recall already met its targets (median 617 ms before, 598 ms after on a quiet machine). Against a same-day control, rank 1 and the top 10 are identical for 188 of 188 golden queries outside thelimitchange above. On a real 45,295-memory store after the upgrade (19 Nov, machine idle), an agent's recall took a median of 0.98 s against 2.20 to 2.39 s for 4.2.19 the same day, and the hook-style recall 0.53 s. - Every recall result carries a new
whyblock, and results carry dispute, source and origin notes. A client that validates results against a fixed schema will see the new keys. With the kill switch on they are absent. - Every 4.2.30 feature defaults to on, as described above. Deliveries that answered a recall (pulls) older than 180 days are removed together with their receipts, except those with a logged swap; randomised deliveries are kept for good.
- Memories retired by an applied correction now carry the time they stopped being true, with the source of that time recorded, and rolling the correction back restores the earlier value exactly. Existing retirements are backfilled with an undo record.
list_disputesis in thefull,powerandwholeMCP profiles and not incore, which keeps the core set under the 40-tool ceiling of the shipped Cursor config.settle_disputestays incore.- The Codex hook installer now replaces SLM's own entries instead of skipping an event that already has one, so changed settings (the prompt hook's timeout, 5 to 7 seconds) reach existing installs; one prompt still makes one recall.
- Images and documents no longer need a restart after they are turned on: the dashboard shows them as on at once. The picture worker is released after 2 idle minutes instead of 30, and the reranker is not reloaded or swapped while the machine is short of memory.
Fixed
- Failed saves that no retry could clear (#325). A save whose embeddings were written a moment after it was recorded as "incomplete derivation stages: embeddings", and a retry never looked again, so it failed every time. A save one of whose facts was archived later failed with "external projection facts are missing" for the same reason: the archived fact was counted as lost. A retry now reads the embeddings again and treats archived or erased facts as retired. A fact that is really gone, or that sits in another profile, still fails. After the upgrade SLM retries these saves by itself in the background: up to 20 every five minutes, each one once per version, and never while the kill switch is on. On the author's store, one save that had failed ten times cleared on its first retry.
- A laptop could hang with its swap full while SLM held a 3.3 GB picture worker and a 2 GB reranker that its own memory budget never weighed against the machine. SLM now reads the operating system's memory pressure (macOS) or the available memory, and releases one loaded model per health check, picture worker first and then the reranker, never the embedder. All three workers now exit at once on SIGTERM.
Security
- Text from a web page, a tool's output, another agent's message, an imported file or a model's rewrite cannot become a pin, a rule, a decision or a core block by itself, and a lower-origin memory cannot retire a higher-origin one. Origin fails closed: a save with no positive evidence of its door is classed
agent_inferred. - Credentials are stored only as typed placeholders across every save door, the hook spool and the fields of a save that are stored outside its text (a slot, a slot value, a cue).
- A removed signature is noticed: signing keeps a mark of the highest memory it has signed, and the keyed audit chain makes a relabelling attack fail. Both are tamper evidence for a copy of your files, not protection against a process running as you.
- New API routes sit behind the existing role checks: the measurement route sits behind the consent-route gate, the route for the background judges' consent behind the owner or admin gate,
/api/whatsnew/stateis behind the company-mode read gate, remote callers cannot open the detail of a hidden memory, only a caller on this computer can name a file path, and the new MCP arguments are classified for remote profile binding. - Pack models are loaded from a local folder only,
trust_remote_codeis never set, and a picture description is stored with the originmodel_generated.