Skip to content

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

Choose a tag to compare

@Mnemoclaw Mnemoclaw released this 04 Oct 09:54
· 2 commits to master since this release

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).