Skip to content

Releases

v5.3.3 — memory files recognised as user data on install

Choose a tag to compare

@Mnemoclaw Mnemoclaw released this 04 Oct 10:16

Patch release. The headline feature is still 5.3.2 (Windows installer fix + update notifications) — read that one if you are on 5.2.x or 5.3.0/5.3.1.

Fix: memory files are now correctly recognised as user data

immune init decided whether you had user data by looking only at immune.sqlite, archived_* and context/. If your memory existed only as immune_memory.json / cheatsheet_memory.json — i.e. before the sqlite index was ever created — you were told:

[immune] Existing skill dir, no user data — overwriting cleanly.

Nothing was actually deleted, but the message is wrong and alarming. Both memory files now count, so the detection is honest in every case:

[immune] Existing skill detected (v5.3.3, user memory preserved).

Visibility

  • Warning banner at the top of the README (visible on the npm package page and the repo) for Windows + Node 22+ users.
  • Issue #1 documents the root cause with a reproducible snippet, the fix, and how to verify an install.

Upgrade

npm update -g @mnemoclaw/immune && immune

Both steps: npm update refreshes the package, immune init refreshes the copy your agent executes.

v5.3.2 — Windows installer fixed, update notifications, retrieval quality

Choose a tag to compare

@Mnemoclaw Mnemoclaw released this 04 Oct 09:54

v5.3.2

First release since 5.2.1 (June). This one is worth a re-install — it contains a fix for a bug that silently broke installs on Windows.

⚠️ Read this first: the Windows installer was broken

If you installed on Windows with Node 22+, immune init never actually installed the dependencies. spawnSync refuses to launch .cmd files since Node 22, so the internal npm install died with exit null and the skill directory was left without sql.js / @xenova/transformers. There was no error message explaining why.

If your install ever failed at "Installing dependencies…", this is why. Upgrade and re-run:

npm update -g @mnemoclaw/immune && immune

Both steps are required. npm update refreshes the package; immune init refreshes the copy of the adapter inside ~/.claude/skills/immune/ that your agent actually executes. npm update alone changes nothing at runtime.

Update notifications

  • The CLI now checks npm once a day (cached locally, no telemetry, silent when offline) and prints one line when a newer version exists. Future updates will announce themselves.
  • immune version shows the npm package version and the version actually installed in the skill dir, so any drift is visible instead of mysterious.
  • node immune-adapter.js version (or the new version field in stats) reports the version of the code really running.

Retrieval quality (optional GPU daemon only)

If you run an embed daemon on EMBED_PORT — no behaviour change at all if you don't, everything stays local and standalone:

  • Bi-encoder prompts fixed. Nemotron-3-Embed is asymmetric (query: / passage: prefixes). Without them a related pair scored 0.694 and an unrelated one 0.562 — no separation at all. Now 0.72 vs 0.12. On a 740-item corpus: hit@1 went from 2/7 to 6/7, hit@3 from 4/7 to 7/7.
  • Cross-encoder unblocked. The daemon was applying a second sigmoid to scores that were already sigmoid'd, pinning every score to ~0.5 — the re-ranking stage was a no-op. Real spread now: 0.359 for a relevant pair vs 0.00005 for an irrelevant one.
  • Duplicate detection confirmed by the cross-encoder. Cosine alone cannot separate "same rule, other words" from "different rule, similar words" (the clusters overlap: 0.54–0.94 vs 0.58–0.89). The cosine now proposes the 8 closest candidates and the cross-encoder decides: 7/8 true duplicates found with 0 false positives, versus 6/8 with 3 false positives before.
  • Dedup threshold recalibrated 0.80 → 0.75. The old value came from the broken encoder, where true duplicates peaked at 0.768 — daemon dedup could never fire at all.
  • Daemon failures no longer silently downgrade quality. Once a process has used the daemon, a slow daemon is waited for and a failed one disables the vector stage (FTS4 + TF-IDF/trigrams, Jaccard for dedup) with an explicit warning, rather than recomputing with weaker local MiniLM.

Housekeeping

  • tools/viz/immune-viz.html is a generated dashboard that embedded the whole memory in clear text. It is no longer versioned; regenerate it locally with node tools/viz/immune-viz.js.
  • The retrieval self-test no longer carries ids from a real memory: expectations are optional and come from a gitignored immune_test_ids.json.
  • The npm publish workflow uses Trusted Publishing (OIDC) — no long-lived token to rotate.

Compatibility

  • Standalone users (no daemon): no change. Local MiniLM, cosine dedup at 0.70, everything as before.
  • Your memory files are never touched by an upgrade (immune init preserves them, or overwrites cleanly only when there is no user data).