@massu/core 1.16.3 → 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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,96 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
10
10
  > redistributed under the **Apache License 2.0**. Full license + NOTICE:
11
11
  > `packages/core/assets/embedder/MODEL-LICENSE`.
12
12
 
13
+ ## [2.0.0] - 2026-07-21
14
+
15
+ **Breaking release.** The local database engine now defaults to Node's built-in
16
+ `node:sqlite` instead of the native `better-sqlite3`, and the minimum Node version is
17
+ raised to **22.13.0**. This ends the Node-ABI-mismatch failure class structurally — the
18
+ default install has no compiled native module to `dlopen`, so a Node upgrade can never
19
+ again silently break memory storage.
20
+
21
+ ### Changed
22
+
23
+ - **BREAKING: minimum Node is now `>=22.13.0`** (drops 20 and 21). `node:sqlite` ships
24
+ flag-free with FTS5 only from 22.13; earlier 22.x (22.0–22.12) are not supported. A
25
+ preflight check fails loudly with the required version if you run an older Node.
26
+ - **BREAKING: the default local DB engine is now `node:sqlite` (native-free)** (CR-69,
27
+ `plan-memory-system-to-100-percent` WS4 / Layer 2). Every database open routes through a
28
+ single adapter (`db-driver.ts`) that constructs Node's built-in SQLite — no native
29
+ compile, no ABI, no `prebuild-install`. `better-sqlite3` is retained as an **opt-in
30
+ fallback**: set `MASSU_DB_ENGINE=better-sqlite3` to route through the CR-65 self-healing
31
+ native loader instead. Storage format is unchanged and byte-compatible in both
32
+ directions — existing databases open as-is under either engine. Enforced by a dual-engine
33
+ parity test (derived from the live schema), a drift-guard, and pattern-scanner Check 46.
34
+ `massu doctor` now reports the active engine and proves it by constructing a DB and
35
+ running `SELECT 1`.
36
+
37
+ ### Migration
38
+
39
+ - Most installs need no action — a fresh `npm install -g @massu/core@2.0.0` on Node
40
+ `>=22.13` switches to `node:sqlite` automatically and reads your existing database
41
+ unchanged. If you must stay on the native engine (e.g. an environment pinned below Node
42
+ 22.13 that you cannot upgrade), set `MASSU_DB_ENGINE=better-sqlite3` — but the supported
43
+ path is to upgrade Node.
44
+
45
+ ### Infrastructure
46
+
47
+ - **G-6 anti-vacuity registration for this release's guard pile** (no `@massu/core` runtime
48
+ change, `plan-2026-07-21-g6-wave-2-unpushed-pile-registration`). Registers a can-fail proof
49
+ for every enforcement guard shipped by WS3 / Slice 5 (CR-67) / CR-68 / WS4 (CR-69) — 14
50
+ pattern-scanner shell fail-points (Checks 44/45/46) + 32 vitest source-plant proofs — plus
51
+ re-pins 3 stale non-guard exempts and hardens 3 T-3 symbol-grep predicates (Check 44 d/e →
52
+ AST call-site checks). Makes pre-push `[22/22]` (the G-6 anti-vacuity meta-gate) green.
53
+
54
+ ## [1.17.0] - 2026-07-21
55
+
56
+ The memory system is now feature-complete: cross-repo sharing and the opt-in file
57
+ renderer land here, both fail-closed and default-off. This is the last release on the
58
+ `better-sqlite3` engine and the last to support Node 20/21 — the next major (`2.0.0`)
59
+ switches the local database to Node's built-in `node:sqlite` and raises the Node floor.
60
+
61
+ ### Added
62
+
63
+ - **Cross-repo memory sharing — local-first, opt-in, fail-closed** (`plan-memory-system-to-100-percent`
64
+ Slice 5, CR-67). A durable memory can now travel from one repo to another, but **nothing crosses a
65
+ repo boundary without a human act on both sides, and nothing that crosses is ever treated as an
66
+ instruction.** Export is an explicit human `massu memory share` that produces a signed, secret-refusing
67
+ envelope (it refuses rather than redacts) written to `~/.massu/shared/`, outside every repo. The
68
+ receiving side never auto-applies: `massu memory accept` materializes the memory only after
69
+ **re-verifying the retained signed envelope bytes** (a stored "verified" boolean is never treated as
70
+ authority), and until then the item surfaces in recall as a zero-content pointer; once accepted it
71
+ surfaces as fenced, provenance-headed data. New CLI verbs: `massu memory review | accept | refuse |
72
+ share | trust` (accept/refuse are CLI-only — never a tool the model can invoke). Both opt-ins default
73
+ **OFF**, so a dormant install shares and mints nothing. Three-layer enforcement: code apply-gates +
74
+ `shared-memory-*` drift-guards + pattern-scanner Check 44.
75
+ - **Opt-in memory file-renderer** (`plan-memory-system-to-100-percent` WS3, CR-61). Massu can render
76
+ selected durable memories into a managed region of your memory files. It is **off by default**
77
+ (`memory.files.renderEnabled: false`) and the human always wins: the file on disk is the standing
78
+ source of truth, Massu **never writes a file it cannot prove it authored** (authorship is a per-install
79
+ keyed HMAC, never a public body-hash) and **never un-deletes a file the human deleted** — an absent
80
+ memory directory is a no-op. Tombstones live in the memory corpus, not the database.
81
+
82
+ ### Fixed
83
+
84
+ - **Memory ingestion no longer mints noise, and the writer only renders memory-worthy facts**
85
+ (`plan-memory-system-to-100-percent` WS3 prerequisites). A cluster of ingestion defects that would
86
+ have polluted the corpus the moment the renderer was enabled: Massu stopped mining tool-call
87
+ responses for spurious "decisions"; a hook double-fire that recorded every event twice was ended
88
+ (one settings layer now owns the hooks); `massu memory prune-noise` expires accumulated ingestion
89
+ noise (expire, never hard-delete); and the file-renderer now writes only memory-worthy fact types,
90
+ never raw session telemetry.
91
+
92
+ ### Infrastructure
93
+
94
+ - **CR-68 — every session handoff must be turn-key** (internal governance; no shipped `@massu/core`
95
+ runtime change). A `RECAP`/`HANDOFF` must carry a Next-Session Runbook that spells out Vehicle,
96
+ Steps, Stop gates, and a verifiable Acceptance check per open item — never a bare "Operator TODO"
97
+ list. Enforced by a completeness script + drift-guard + pattern-scanner Check 45 (VR-HANDOFF).
98
+ - **CR-62 — a bug the machine finds produces the same artifacts as one a human reports** (internal
99
+ governance). Any fix that closes a silent-failure or data-loss class now ships an incident doc, a
100
+ drift-guard, and a memory entry in the same push, enforced at pre-push (VR-INCIDENT-COVERAGE) —
101
+ closing the class where audit-discovered defects were fixed and forgotten with no durable trail.
102
+
13
103
  ## [1.16.3] - 2026-07-15
14
104
 
15
105
  ### Fixed