@dreamor/memvault-bin 0.6.12 → 0.7.1

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/README.md CHANGED
@@ -105,7 +105,7 @@ memvault-cli dedup && memvault-cli decay
105
105
 
106
106
  ```bash
107
107
  memvault-cli --version
108
- # memvault 0.6.12
108
+ # memvault 0.7.1
109
109
 
110
110
  # sanity check: list saved memories (verifies DB is healthy)
111
111
  memvault-cli list
@@ -185,15 +185,19 @@ Agent connects (MCP stdio/SSE)
185
185
  - **Auto-Injected Context:** Session start automatically pulls relevant memory by agent identity — MUST-level rules land as instructions, not just chat history
186
186
  - **Hybrid Retrieval:** BM25 + vector + RRF fusion with synonym expansion, relevance scoring, and per-result provenance (which path recalled each memory, at what rank) — available via CLI, MCP tool, and REST API
187
187
  - **Explainable Injection:** every candidate dropped on the way into an agent's context is recorded with a reason (budget, caps, intent/type penalties) — "why didn't the agent get this memory?" always has an answer
188
+ - **Degrade Before Dropping:** when the token budget runs out, a memory is shortened — excerpt, then summary — rather than cut, so more of the ranked list stays reachable at a lower per-memory cost. Shortened text always carries a ` […]` marker and the level is reported separately from the dropped list, because an abbreviation that *looks* complete is worse than a drop. MUST is never shortened: a binding rule with its qualifying clause summarised away is worse than one that overflowed
188
189
  - **MUST Enforcement:** MUST-priority memories are never filtered or truncated. Always in context, always obeyed — trust comes from provenance (human-authored/reviewed), with an opt-in fallback for memories independently corroborated by multiple identity-verified agents (`MEMVAULT_CORROBORATION_GATE`), so a single spoofed/compromised agent can't unilaterally inject a binding MUST
189
190
  - **Multi-Agent Awareness:** Agent Registry with type/tag-based soft filtering (score demotion, not hard exclusion)
190
191
  - **`agent_id` Is Provenance, Not a Filter:** retrieval never filters by `agent_id` — the field only records which agent wrote a memory (`source_agent`). Every agent searches the same shared corpus; per-agent differences apply only at injection time (type/tag soft scoring via `agents.yaml` `inject_rules`)
191
192
  - **MCP Proxy:** Transparent proxy that injects memory into ANY upstream MCP server's responses — zero client changes
192
193
  - **Compliance Tracking:** `inject_session_id` traces what was injected and measures follow-through rate
193
194
  - **Cross-Platform:** CLI + MCP Server (stdio & SSE) + Web Dashboard (browser) + Obsidian Plugin
194
- - **Zero-Invasion Sync:** Generate AGENTS.md / CLAUDE.md from memory — no per-agent config files to edit
195
+ - **Zero-Invasion Sync:** Generate AGENTS.md / CLAUDE.md from memory — no per-agent config files to edit. Applies the same exclusions as session injection (unreviewed drafts behind the review gate, superseded facts, pending edit proposals, expired memories) and reports how many it held back and why, so "why isn't this rule in my AGENTS.md" has an answer
195
196
  - **Contextual Extraction, Local-First:** Rule-based keyword extraction by default; optionally understands a full user+assistant exchange via an LLM, auto-detecting a local Ollama for free before ever touching a remote API
196
197
  - **History & Rollback:** Every update/delete is snapshotted into `memory_history` — `memvault-cli checkpoints` + `memvault-cli restore` roll one memory back without touching the rest
198
+ - **Time Travel (`as_of`):** ask what MemVault believed at any past instant — `memvault-cli as-of <id> --at 2026-08-01T00:00:00Z`, `list --as-of`, `search --as-of`, `search_memory`, `POST /api/search`. Reconstructed from the same snapshot chain that powers rollback, so it needed no new version schema. Memories deleted or superseded *after* that instant still come back, because they were the current truth *then*. Search also recalls from a **historical full-text index**, so a memory reworded since `as_of` is still found by the words it had — those hits are tagged `hist-kw#N` to keep "matched today" distinct from "matched then". Each answer says where it came from (live row vs. a named history snapshot), so a far-back result is never mistaken for a current one
199
+ - **Two Time Axes, Never Folded:** `as_of` asks *what did MemVault believe in March*; `--occurred-from`/`--occurred-to` ask *what happened in March*. A memory can be true for both answers at once, so they are separate parameters rather than one `since`/`until` range — folding them is what makes one of the two questions permanently unanswerable. Undated memories never match an event-time window, and the CLI says so whenever the flag is used rather than only when the result comes back empty
200
+ - **Self-Expiring Facts (`expires_at`):** a temporary fact ("the deploy freeze runs until Friday") retires itself instead of decaying slowly and being re-injected as stale truth. `save --expires-at <RFC3339>` or `--ttl 7d`. Past the bound it leaves retrieval and injection but stays inspectable and restorable — expiry retires a fact, only `forget` erases one. Honored even for MUST: an explicit bound is not the inferred disuse signal that `must_exempt` protects against
197
201
  - **Self-Diagnostics:** `memvault-cli status` reports exactly which features are degraded when no embedding provider is configured, plus a schema fingerprint (migration version + checksum) for cross-database comparison
198
202
  - **Episodic Memory:** `record_outcome` records task results; failures are distilled into lessons and auto-injected next time (REFERENCE → MUST only with human approval), so the same trap isn't hit twice
199
203
  - **Procedural Skill Activation:** skills whose `trigger` matches intent are injected as structured `[SKILL]` blocks with success-rate stats (shown after ≥3 runs); failures flag the skill for revision (`version++` on human edit), repeated successes auto-draft new skills into the review inbox
@@ -205,31 +209,81 @@ Agent connects (MCP stdio/SSE)
205
209
  - **Conversation-N-Gram Retrieval:** retrieval keys are conditioned on the recent turn window, weighted by recency so the current focus dominates — not a single flat query
206
210
  - **Single Canonical Injection Channel:** per-agent `inject_channel` (`mcp` / `proxy` / `sync` in `agents.yaml`) restricts automatic injection to one delivery path, so the same memory is never sent to the same agent twice
207
211
  - **Data You Own:** Single SQLite file. Full export/import. No cloud dependency. Your data, your machine.
212
+ - **The Index Is Disposable, the Memory Is Not:** every derived structure in MemVault can be thrown away and rebuilt, so a corrupt or stale index is never a data-loss event.
213
+ - *markdown backend* — the `.md` files **are** the memory; `.memvault-cache.db` is a shadow index derived from them. Delete the cache and the next open rebuilds it from the vault. Edit a file by hand in Obsidian, in an editor, or via `git checkout`, and `memvault-cli reindex` (or `--watch`) reconciles it — content is diffed against the cached row and resynced on any mismatch. Your memories are plain text you can `grep`, `git blame`, and take to any other tool.
214
+ - *sqlite backend* — `data.db` is the source of truth, and the derived parts inside it still self-heal: the FTS index is rebuilt automatically on open whenever its row count disagrees with `memories`, and the embedding column can be dropped and backfilled (switch embedding models, or run with no provider configured and add vectors later).
215
+ - What is never derived: your content, your review state, your provenance, and the `memory_history` snapshot chain that powers rollback and `as_of` time travel. Note the one asymmetry — history snapshots live in the cache, so on the markdown backend a rebuilt cache loses the version chain and point-in-time reads fall back to the live row (`docs/DESIGN.md` §9.6). Expiry and everything else survive a rebuild intact.
208
216
 
209
217
  ---
210
218
 
211
219
  ## Why MemVault
212
220
 
213
- Looking for a **self-hosted alternative to Mem0, Zep, or Letta/MemGPT**? Those are hosted APIs or Python frameworks tied to one SDK. MemVault ships as a single Rust binary with no hosted service and no vendor lock-in, speaks plain MCP instead of a proprietary SDK, and shares one memory store across every agent you run — Claude Code, Cursor, Claude Desktop, dsh — not just one.
221
+ Storing and retrieving memories is solved — a dozen products do it well, and
222
+ since 2025 the Code Agents do it natively. What is *not* solved is the part after
223
+ retrieval: getting one shared corpus into **every** agent you run, deciding
224
+ **what entitles a memory to bind** that agent, and knowing **whether it obeyed**.
214
225
 
215
- | Feature | Plain CLAUDE.md | Vector DB + RAG | **MemVault** |
216
- |---|---|---|---|
217
- | **Context injection** | Manual edits | Query-time only | Auto on session start |
218
- | **Multi-agent sharing** | Copy-paste | Separate indexes | Single shared store |
219
- | **MUST enforcement** | None | None | Instruction-layer injection |
220
- | **Search modes** | File grep | Embedding only | BM25 + Vector + Hybrid |
221
- | **Synonym expansion** | No | No | Built-in |
222
- | **Deduplication** | No | No | Semantic dedup pipeline |
223
- | **Write-time delta merge** | No | No | Near-dupes skip, similar absorb the residual at save |
224
- | **Task-level evaluation** | None | Recall metrics only | `bench`: with-vs-without-memory task success delta |
225
- | **Decay / archival** | No | No | Time-based + auto archive |
226
- | **Memory extraction** | Manual | N/A | Rule-based by default; optional local-first LLM extraction |
227
- | **MCP native** | No | No | stdio + SSE + Proxy |
228
- | **Agent differentiation** | Global file | Query filter | Type/tag registry |
229
- | **Compliance tracking** | None | None | inject_session_id + rate |
230
- | **Self-hosted** | Yes | Varies | Single binary, no cloud |
231
-
232
- MemVault complements your existing agent setup rather than replacing it. Keep your LLM, your IDE, and your workflow exactly as they are. MemVault adds the memory layer underneath.
226
+ The claims below come from a 15-product survey refreshed 2026-11
227
+ ([`docs/DESIGN.md` §2](docs/DESIGN.md#2-market-analysis-and-competitors)). They
228
+ are falsifiable — the table there names every product and every source.
229
+
230
+ ### What only MemVault does
231
+
232
+ | Capability | What it actually means | Who else has it |
233
+ |---|---|---|
234
+ | **Follow-through tracking** | `inject_session_id` traces what was injected into which session and measures whether the agent obeyed. Not "was it retrieved" — *was it followed* | **Nobody.** The closest is agent-memory's `audit`, which records who changed a memory, not whether an agent listened to one |
235
+ | **Instruction-layer enforcement** | MUST memories are never filtered, never truncated, and are rendered as directives rather than context. A memory becomes a *constraint*, not a suggestion | **Nobody.** `MemoryTier.CORE` in agent-memory and core blocks in Letta mean "resident in context", which is not the same claim |
236
+ | **Trust-gated binding** | What entitles a memory to bind an agent: provenance, identity verification, and an opt-in corroboration gate so one spoofed or compromised agent cannot unilaterally inject a MUST everyone obeys | **Nobody.** Multi-tenant ACLs answer *who may access*; this answers *what may be believed*. Different axis, and the survey has no column for it |
237
+ | **Injection explainability** | Every candidate dropped on the way into an agent's context is recorded with a reason — budget, cap, intent penalty, review gate. "Why didn't the agent get this memory?" always has an answer | agent-memory has retrieval *trajectory* (what was recalled). Nobody reports what was **dropped and why** |
238
+ | **Review-gated agent edits** | An agent can propose a correction to any memory, including a MUST — as a pending proposal that leaves the target live until a human decides | **Nobody.** Letta's agent self-edits memory directly, which is its own listed weakness |
239
+ | **Task-level evaluation** | `bench --judge` samples your own failure history and scores "plan without memory vs. plan with memory" against the known failure cause — task success, not retrieval recall | **Nobody.** Every published number in this space is a recall metric |
240
+
241
+ ### What MemVault does differently
242
+
243
+ | | Claude Code Auto Memory | Codex Memories | Mem0 | Zilliz memSearch | **MemVault** |
244
+ |---|---|---|---|---|---|
245
+ | Which agents see the memory | Claude Code only | Codex only | whatever embeds its SDK | per-tool plugins | **every agent you run, from one store** |
246
+ | How it reaches the agent | platform loads its own files | platform loads its own files | you call `search` | you call `search` | **auto-injected** over MCP, proxy, *or* generated `AGENTS.md`/`CLAUDE.md` |
247
+ | Works without MCP | ✅ (its own files) | ✅ (its own files) | ❌ | ❌ | ✅ — `sync` writes the files Codex/Cursor/Aider/Jules already read |
248
+ | Source of truth | agent-written notes | session summaries | vector store | **Markdown files** | **your choice**: SQLite, or Markdown files with a rebuildable shadow index |
249
+ | Runtime | bundled | bundled | Python + a vector DB | Python + Milvus | **one Rust binary**, no service, no Python |
250
+ | Injection latency | — | — | p50 ≤ 1.1 s (published) | — | **p50 ≈ 1.2 ms** for the deterministic MUST path, measured with no embedding provider at all ([§2.6](docs/DESIGN.md#26-benchmark-landscape-what-to-measure-and-what-not-to)) |
251
+
252
+ > **On that latency comparison, honestly.** The two numbers are not measured the
253
+ > same way and should not be read as a like-for-like win. Mem0's published p50
254
+ > covers its whole retrieval pipeline; ours is the `/api/session` injection call
255
+ > alone, from a 20-probe plumbing run against a local debug build with no
256
+ > embedding provider configured. The defensible claim is narrower and still worth
257
+ > making: **MUST resolution does not touch an embedding model at all**, so its
258
+ > latency does not depend on one being installed, warm, or reachable — that is
259
+ > §6.1.2's two-phase design, and it is why `edge-lite` can turn embeddings off
260
+ > without losing MUST injection. A comparable end-to-end number needs the BEAM
261
+ > scored run, which has not happened.
262
+
263
+ Platform-native memory is the real competition now, and it is good — zero
264
+ infrastructure, zero configuration. Its structural ceiling is that **each platform
265
+ only loads its own silo**: Claude Code's memory directory is invisible to Cursor,
266
+ and Codex's memories do not leave Codex. If you run more than one agent, that is
267
+ the gap.
268
+
269
+ ### Where MemVault is behind
270
+
271
+ Stated plainly, because a comparison that only lists wins is not a comparison:
272
+
273
+ | | Leader | MemVault today |
274
+ |---|---|---|
275
+ | **Multimodal input** | agent-memory (image/audio/video, text projections) | text only |
276
+ | **Graph relations** | Zep/Graphiti (temporal KG, multi-hop) | single-table one-hop triples; a real graph is deferred until relation volume demands it |
277
+ | **Cloud / team-hosted tier** | memSearch (Lite → Docker → Cloud), Mem0 | local-first only, by choice — see the positioning constraint in [§15](docs/DESIGN.md#15-delivery-ledger-shipped-deferred-not-doing) |
278
+ | **Time travel over the vector path** | Zep (bi-temporal graph) | `as_of` recall covers the **keyword** index; a reworded memory is findable by its old words but not yet by its old meaning |
279
+ | **Published benchmark scores** | Mem0, memU, Zep (LoCoMo / DMR / LongMemEval) | harness built and plumbing-validated on BEAM, **no scored run yet** — deliberately not chasing LoCoMo, which a 1M-token context window now scores competitively without any memory system |
280
+
281
+ Everything in that table is tracked in [§15](docs/DESIGN.md#15-delivery-ledger-shipped-deferred-not-doing)
282
+ with either a plan or a reason it is not being done.
283
+
284
+ MemVault complements your existing agent setup rather than replacing it. Keep your
285
+ LLM, your IDE, and your workflow exactly as they are. MemVault adds the memory
286
+ layer underneath — and the part that checks whether it was used.
233
287
 
234
288
  ---
235
289
 
@@ -275,7 +329,7 @@ SSE features: multi-client simultaneous connections, auto-triggered embedding ba
275
329
 
276
330
  > **Note:** `--transport sse` only mounts the MCP-over-HTTP endpoint (`/mcp`) — it does **not** expose the REST API (`/api/*`). The Web Dashboard is served by the REST backend (`memvault-mcp --transport http --serve-web <dist>`), and the Obsidian plugin also uses the REST API and requires `--transport http` instead. See [docs/INSTALL.md §2.6](docs/INSTALL.md#26-rest-api-required-by-the-obsidian-plugin).
277
331
 
278
- ### 20 MCP Tools
332
+ ### 21 MCP Tools
279
333
 
280
334
  | Tool | Description |
281
335
  |------|-------------|
@@ -285,7 +339,8 @@ SSE features: multi-client simultaneous connections, auto-triggered embedding ba
285
339
  | `import_skills` | Import skills from a Markdown SOP (headings → skills, list items → steps) |
286
340
  | `search_memory` | Hybrid (default) / keyword / semantic; semantic modes fall back to keyword when embeddings are unavailable |
287
341
  | `session_start` | Agent-aware context injection; honors the agent's `inject_channel` (skips with an explanation when another channel is canonical); records compliance injections when enabled |
288
- | `review_memory` | Approve / reject / edit; edit also works on already-approved memories, reject only applies to pending ones |
342
+ | `propose_memory_edit` | Propose a text edit to a memory **for human review** — creates a pending memory carrying the edit and leaves the target untouched and still injecting. Approving supersedes the target; rejecting discards the proposal. `old_text` must occur exactly once (an ambiguous anchor is refused, never guessed); `field` selects `content` or `instruction`. Use instead of delete+save when correcting a memory you did not author |
343
+ | `review_memory` | Approve / reject / edit; edit also works on already-approved memories, reject only applies to pending ones. Approving a pending **proposal** also supersedes its target |
289
344
  | `delete_memory` | Soft delete — removes the live row and cascaded evidence relations, restorable via CLI `restore`; use `forget_memory` for irreversible purge |
290
345
  | `forget_memory` | Permanently erase one memory or a criteria-matched bulk set (GDPR-style, irreversible); `dry_run` defaults to `true` |
291
346
  | `extract_memories` | Structured extraction from text |
@@ -304,19 +359,22 @@ SSE features: multi-client simultaneous connections, auto-triggered embedding ba
304
359
 
305
360
  | URI | Content |
306
361
  |-----|---------|
307
- | `memory://user-profile` | MUST-level rules, auto-loaded on connect |
308
- | `memory://project-context` | REFERENCE-level project context |
362
+ | `memory://user-profile` | MUST-level rules, auto-loaded on connect. Review-gated: only human-reviewed rules are served, the same gate `session_start` applies |
363
+ | `memory://project-context` | REFERENCE-level project context. **Deliberately not review-gated** — it may include unapproved AI-extracted drafts, labeled as such in the body. See [`docs/DESIGN.md`](docs/DESIGN.md) §13.8 for why the two resources differ |
309
364
 
310
365
  ### Configuration (.env file & environment variables)
311
366
 
312
367
  Copy [.env.example](.env.example) to `~/.memvault/.env` and uncomment what you need — it is also the single source of truth documenting every key.
313
368
 
314
- Precedence (high → low): **CLI flags > process environment > `~/.memvault/.env` > built-in defaults**. Every binary loads the env file first thing at startup; `--env-file <path>` or `MEMVAULT_ENV_FILE` points elsewhere, and a missing file is silently skipped. `memvault-cli status` prints where each setting came from (env / file / default).
369
+ Precedence (high → low): **CLI flags > process environment > `~/.memvault/.env` > `MEMVAULT_PROFILE` scenario profile > built-in defaults**. Every binary loads the env file first thing at startup; `--env-file <path>` or `MEMVAULT_ENV_FILE` points elsewhere, and a missing file is silently skipped. `memvault-cli status` prints where each setting came from (env / file / profile / default).
370
+
371
+ **Don't want to read fourteen switches?** `memvault-cli init --profile <name>` writes a coherent bundle instead — `coding-agent`, `assistant`, `team`, `edge-lite` — with each line commented by its rationale (`init --list` shows them all, `--dry-run` previews). A profile is the *lowest*-precedence layer: it fills only keys your shell and env file leave unset, so leaving one configured permanently can never silently undo your own tuning. It writes no secrets, only provider names. See [.env.example](.env.example) for what each profile sets and why.
315
372
 
316
373
  Two groups are intentionally not in the table below: the host installation contract (`MEMVAULT_AGENT_ID`, `MEMVAULT_HOOK_EXTRACT`, … — per-agent values authored in each host's plugin/mcpServers config), and the proxy's `upstreams` topology (structured data, lives in `~/.memvault/proxy.yaml`).
317
374
 
318
375
  | Variable | Purpose | Default |
319
376
  |----------|---------|---------|
377
+ | `MEMVAULT_PROFILE` | Scenario profile applied at startup: `coding-agent` \| `assistant` \| `team` \| `edge-lite`. Fills only keys no higher layer set. An unknown name applies **nothing** and warns — it never falls back to a default profile, because a typo must not silently apply a different profile's settings. `memvault-cli init --profile <name>` writes the same settings into the env file instead, which is usually what you want | (none) |
320
378
  | `MEMVAULT_EMBEDDING_PROVIDER` | Provider: `native` (in-process, default), `auto` (Ollama-first, native fallback), `ollama`/`local`, `openai`, `openai-compatible` (any OpenAI-compatible endpoint), or `none` (pure keyword, skips the download) | `native` |
321
379
  | `MEMVAULT_EMBEDDING_API_KEY` (legacy fallback: `OPENAI_API_KEY`) | API key for remote providers (not needed for local Ollama); the default `native` provider needs no key | (not needed — `native` local model) |
322
380
  | `MEMVAULT_EMBEDDING_API_BASE` | Any OpenAI-compatible base URL (OpenAI / Azure / vLLM / gateway...). For `ollama`/`local` the embedder uses Ollama's native endpoint `http://localhost:11434/api` | `https://api.openai.com/v1` / `http://localhost:11434/api` (Ollama) |
@@ -349,7 +407,7 @@ Two groups are intentionally not in the table below: the host installation contr
349
407
  | `MEMVAULT_FORGET_MUST_EXEMPT` | Protect MUST memories from forget unless the caller explicitly overrides (`allow_must`) | `true` |
350
408
  | `MEMVAULT_FORGET_SHARED_AUTO_EXEMPT` | Exclude shared-visibility memories from the auto sweep (manual/bulk forget can still purge them) | `true` |
351
409
  | `MEMVAULT_DB` | SQLite database path | `$MEMVAULT_HOME/data.db` when `MEMVAULT_HOME` is set, else `~/.memvault/data.db` |
352
- | `MEMVAULT_STORAGE_BACKEND` | Storage backend: `sqlite` (default) or `markdown` (alias `md`) — markdown makes a directory of `{id}.md` files authoritative and an internal `.memvault-cache.db` a rebuildable index (see [`docs/DESIGN.md` §18](docs/DESIGN.md#18-storage-backends-sqlite-vs-markdown)) | `sqlite` |
410
+ | `MEMVAULT_STORAGE_BACKEND` | Storage backend: `sqlite` (default) or `markdown` (alias `md`) — markdown makes a directory of `{id}.md` files authoritative and an internal `.memvault-cache.db` a rebuildable index (see [`docs/DESIGN.md` §8.3](docs/DESIGN.md#83-storage-backends-and-consistency)) | `sqlite` |
353
411
  | `MEMVAULT_MARKDOWN_DIR` | markdown-backend data directory (also `--markdown-dir` on cli/mcp/proxy); required when the backend is `markdown`. `backup`/`checkpoints`/`restore` stay sqlite-only | — (markdown mode only) |
354
412
  | `MEMVAULT_MARKDOWN_TRUST_MODE` | Who is trusted to set a Markdown file's own trust metadata. `owned` (default) = local single user; hand-edited `human_reviewed`/`ai_generated`/`identity_verified`/priority/visibility are authoritative, so write access to the vault is session-injection authority. `quarantine` = shared/synced vault or low-trust writer; new files start unreviewed + `ai_generated`, priority capped at REFERENCE, layer pinned to L1, authority tags and forged ranking/freshness metadata stripped, `visibility: shared` downgraded to `scoped`, existing rows cannot be escalated, and symlinked `.md` entries are skipped. Unknown non-empty values fail closed to `quarantine` | `owned` |
355
413
  | `RUST_LOG` | Log verbosity | `info` |
@@ -362,7 +420,7 @@ Two groups are intentionally not in the table below: the host installation contr
362
420
 
363
421
  ## CLI Reference
364
422
 
365
- `save` · `outcome` · `search` · `list` · `review` · `delete` · `session-start` · `compliance-enqueue` · `compliance-finalize` · `resource` · `extract` · `dedup` · `decay` · `forget` · `forget-log` · `doctor` · `promote` · `backup` · `export` · `export-skill` · `import` · `import-skills` · `import-agent` · `ingest` · `confirm-read` · `backfill-embeddings` · `sync` · `reindex` · `migrate-to-markdown` · `checkpoints` · `restore` · `supersede` · `status` · `bench` · `eval-history` · `server start|status|stop` · `dashboard`
423
+ `save` · `outcome` · `search` · `list` · `as-of` · `init` · `review` · `delete` · `session-start` · `compliance-enqueue` · `compliance-finalize` · `resource` · `extract` · `dedup` · `decay` · `forget` · `forget-log` · `doctor` · `promote` · `backup` · `export` · `export-skill` · `import` · `import-skills` · `import-agent` · `ingest` · `confirm-read` · `backfill-embeddings` · `sync` · `reindex` · `migrate-to-markdown` · `checkpoints` · `restore` · `supersede` · `propose-edit` · `update` · `status` · `bench` · `eval-history` · `server start|status|stop` · `dashboard`
366
424
 
367
425
  ```bash
368
426
  memvault-cli <command> --help # detailed usage per command
@@ -372,9 +430,14 @@ memvault-cli <command> --help # detailed usage per command
372
430
 
373
431
  | Command | What It Does |
374
432
  |---------|--------------|
375
- | `save` | Save a memory with priority, type, optional instruction. Delta-write by default: near-duplicates are skipped, similar memories absorb the residual; `--force` to bypass |
433
+ | `init` | Apply a scenario profile — `--profile coding-agent\|assistant\|team\|edge-lite` writes a coherent bundle of `MEMVAULT_*` defaults into your env file, each line commented with its rationale. `--list` shows every profile and setting; `--dry-run` previews. Profiles are the **lowest**-precedence layer, so they only fill keys your shell and env file leave unset and can never undo your tuning. Writes no secrets |
434
+ | `save` | Save a memory with priority, type, optional instruction. Delta-write by default: near-duplicates are skipped, similar memories absorb the residual; `--force` to bypass. `--expires-at <RFC3339>` (or `--ttl 30m\|12h\|7d`) sets a valid-time bound so a temporary fact retires itself |
376
435
  | `outcome` | Record a task result (success/failure/partial); failures are distilled into lessons that auto-inject into similar future tasks |
377
- | `search` | Hybrid retrieval with relevance scoring; flags: `--query`, `--top-k`, `--namespace` |
436
+ | `search` | Hybrid retrieval with relevance scoring; flags: `--query`, `--top-k`, `--namespace`, `--as-of <RFC3339>` (point-in-time; recalls from the historical index too, so reworded memories are found by their old words — keyword path only), `--occurred-from` / `--occurred-to` (event-time window, a different axis from `--as-of`) |
437
+ | `as-of` | Show one memory as it stood at a past instant: `memvault-cli as-of <id> --at 2026-08-01T00:00:00Z`. Reconstructed from the `memory_history` snapshot chain; reports whether the answer came from the live row or a named snapshot, and says so plainly when there was no state then |
438
+ | `propose-edit` | Propose a text edit to a memory, for human review: `--id`, `--old`, `--new`, `--field content\|instruction`. Creates a **pending** memory and leaves the target untouched and still injecting; `review --approve` then supersedes it. `--old` must match exactly once — an ambiguous anchor errors rather than guessing. Warns when the edit would change no behaviour (body edited while the injected directive still says the old thing) |
439
+ | `update` | Update an existing memory in place: only the flags you pass change — `--content`, `--instruction` / `--clear-instruction`, `--priority`, `--type`, `--namespace`, `--tags`, `--expires-at` / `--clear-expires`, `--occurred-at` / `--clear-occurred`, and `--review` / `--unreview`. Omitting a timestamp leaves it untouched. Editing the body or directive invalidates the stored embedding: the new text is re-embedded when a provider is available, and stale vectors are otherwise cleared (`backfill-embeddings` re-embeds them) |
440
+ | `list` | List memories; `--limit`, `--namespace`, and `--as-of <RFC3339>` to list what was in effect at a past instant — including memories superseded, expired or deleted *since* then, which were the current truth at that point |
378
441
  | `session-start` | Simulate what context an agent receives on connect; a multi-line `--context` is treated as a turn sequence and weighted by recency |
379
442
  | `extract` | Parse free text, extract structured memories |
380
443
  | `import-skills` | Import skills from a Markdown SOP (`# / ##` headings → skills, list items → steps); enters the review inbox unless `--approve` |
@@ -391,7 +454,7 @@ memvault-cli <command> --help # detailed usage per command
391
454
  | `doctor` | Read-only memory hygiene lint: dangling/stale/duplicate/contradicted + machine-readable `--json` |
392
455
  | `bench` | Task-level memory benchmark: samples your own outcome history, measures lesson retrieval/injection rates; `--judge` adds an LLM-scored "plan without vs. with memory" success delta; each run persists itself for `eval-history` |
393
456
  | `eval-history` | Trend-over-time view of past `bench`/`doctor` runs — every run persists itself automatically, this just lists what accumulated |
394
- | `decay` | Archive stale memories based on access recency |
457
+ | `decay` | Archive stale memories based on access recency; also archives memories past their `expires_at` bound regardless of score (and regardless of MUST-exemption), reporting `expired_archived` separately from score-based `archived` |
395
458
  | `backup` | Create a consistent point-in-time SQLite backup |
396
459
  | `export` / `import` | Backup and restore — JSON to a file or a directory (writes `export.json` inside); Markdown to/from a directory or a single `.md` file; import is idempotent (ids already present are skipped, never overwritten) |
397
460
  | `confirm-read` | Mark memories as read (updates access_count) |
@@ -408,19 +471,19 @@ MemVault ships native adapters for most agents — one shared store, per-host id
408
471
 
409
472
  | Package | Version | Install / Source |
410
473
  |---|---|---|
411
- | `memvault-core` (crates.io) | 0.6.12 | library dependency |
412
- | `memvault-cli` · `memvault-mcp` · `memvault-proxy` (crates.io) | 0.6.12 | `cargo install memvault-cli memvault-mcp memvault-proxy` |
413
- | `@dreamor/dsh-memvault` (npm) | 0.6.12 | npm registry (dsh Cordis plugin, below) |
474
+ | `memvault-core` (crates.io) | 0.7.1 | library dependency |
475
+ | `memvault-cli` · `memvault-mcp` · `memvault-proxy` (crates.io) | 0.7.1 | `cargo install memvault-cli memvault-mcp memvault-proxy` |
476
+ | `@dreamor/dsh-memvault` (npm) | 0.7.1 | npm registry (dsh Cordis plugin, below) |
414
477
 
415
478
  **Shipped plugins & versions** — each bumps on its own schedule:
416
479
 
417
480
  | Plugin | Version | Distributed via |
418
481
  |---|---|---|
419
- | Claude Code / Codex plugin bundle ([`plugins/memvault/`](plugins/memvault/)) | 0.6.12 | `dreamor/memvault` marketplace |
420
- | Gemini CLI extension (`gemini-extension.json`) | 0.6.12 | `gemini extensions install` |
421
- | Qoder plugin (`.qoder-plugin/`) | 0.6.12 | in-repo manifest |
482
+ | Claude Code / Codex plugin bundle ([`plugins/memvault/`](plugins/memvault/)) | 0.7.1 | `dreamor/memvault` marketplace |
483
+ | Gemini CLI extension (`gemini-extension.json`) | 0.7.1 | `gemini extensions install` |
484
+ | Qoder plugin (`.qoder-plugin/`) | 0.7.1 | in-repo manifest |
422
485
  | Obsidian plugin ([`obsidian-plugin/`](obsidian-plugin/)) | 0.3.7 | [`dreamor/memvault-obsidian`](https://github.com/dreamor/memvault-obsidian) (BRAT / community dir) |
423
- | dsh Cordis plugin ([`dsh-plugin/`](dsh-plugin/)) | 0.6.12 | npm [`@dreamor/dsh-memvault`](https://www.npmjs.com/package/@dreamor/dsh-memvault) |
486
+ | dsh Cordis plugin ([`dsh-plugin/`](dsh-plugin/)) | 0.7.1 | npm [`@dreamor/dsh-memvault`](https://www.npmjs.com/package/@dreamor/dsh-memvault) |
424
487
 
425
488
  **Tier 1 — one-command native plugins** (memory injected by hooks; extraction opt-in where the host exposes lifecycle hooks):
426
489
 
@@ -459,7 +522,7 @@ GUI surfaces are independent of agent installs: **Web Dashboard** (9 tabs) · **
459
522
  ┌──────────────────▼───────────────────────────────┐
460
523
  │ memvault-mcp (rmcp 3.1.1) │
461
524
  │ ┌──────────────┐ ┌────────────────┐ ┌────────┐ │
462
- │ │ 20 tools │ │ 2 Resources │ │ SSE │ │
525
+ │ │ 21 tools │ │ 2 Resources │ │ SSE │ │
463
526
  │ │ + REST API │ │ + Auto-Inject │ │ Server │ │
464
527
  │ └──────┬───────┘ └──────┬─────────┘ └────────┘ │
465
528
  │ └────────┬───────┘ │
@@ -488,12 +551,23 @@ MemVault is in **beta**. The Rust core (storage / search / injection) is CI-gate
488
551
  ## Testing
489
552
 
490
553
  ```bash
491
- cargo test # ~1300 tests (full workspace)
554
+ cargo test # ~1590 tests (full workspace)
492
555
  cargo clippy --all-targets # zero warnings
493
556
  cargo fmt --all -- --check # format check
494
557
  cargo llvm-cov --workspace --all-features # CI gate: line ≥92% / region ≥90% / function ≥85%
558
+ cd dashboard && npm test # Vitest (UI + API layer)
559
+ bash scripts/e2e-release-check.sh # end-to-end, real binaries + real REST server
560
+ python3 docs/experiments/beam_adherence.py --dry-run --with-server # benchmark harness plumbing
495
561
  ```
496
562
 
563
+ The unit and integration suites are the primary gate, but `e2e-release-check.sh`
564
+ exists because several defects were visible **only** by running the built binaries
565
+ end to end — an edit that approved cleanly and changed no behaviour, a second
566
+ injection channel that bypassed the review gate, a provenance field dropped by the
567
+ reranker. All of them lived in the wiring *between* layers, where every layer's own
568
+ tests passed. It needs no LLM key and no embedding provider, so it is safe to gate
569
+ a release on, and CI runs it on every push.
570
+
497
571
  ---
498
572
 
499
573
  ## Documentation
@@ -506,7 +580,7 @@ cargo llvm-cov --workspace --all-features # CI gate: line ≥92% / region ≥9
506
580
  | [docs/DOCKER.md](docs/DOCKER.md) | Docker deployment |
507
581
  | [docs/RUNBOOK.md](docs/RUNBOOK.md) | Deployment / health check / rollback runbook |
508
582
  | [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) | Symptom → cause → fix troubleshooting guide |
509
- | [docs/experiments/](docs/experiments/README.md) | Hypothesis-validation experiments (H1–H7, 2026-08-11 → 2026-08-27, all CONFIRMED) + runtime plumbing regression (2026-08-28) |
583
+ | [docs/experiments/](docs/experiments/README.md) | Two kinds of evidence. **Hypothesis validation** (H1–H7, 2026-08-11 → 2026-08-27, all CONFIRMED) + runtime plumbing regression (2026-08-28) — MemVault's own design assumptions, on hand-written scenarios. **External benchmark harness** ([`beam_adherence.py`](docs/experiments/beam_adherence.py), 2026-11) — BEAM instruction/preference adherence, the public axis that measures whether an injected rule was *obeyed*; plumbing-validated, no scored run yet |
510
584
  | [docs/RELEASING.md](docs/RELEASING.md) | Release process — what CI automates (Linux/macOS binaries, Docker image, dashboard archive, Obsidian zip) vs. manual steps (Obsidian submission — no macOS signing needed) |
511
585
  | [docs/DISTRIBUTION.md](docs/DISTRIBUTION.md) | Distribution channel map — automated vs. manual channels, required credentials, MCP registries, optional channels |
512
586
  | [CHANGELOG.md](CHANGELOG.md) | Release history |
package/memvault-cli CHANGED
Binary file
package/memvault-mcp CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/memvault-mcp
3
- size: 36098704 bytes
4
- sha256: a8cc54ea7cf5b4a72db7fd5cf9962bb232d9bfe5385528b79d80ed18d5756ba4
3
+ size: 36949088 bytes
4
+ sha256: 80c1ce1374566c6637aebcfc362ded95238516b0d8aed8fde94ed9ccd75b448d
package/memvault-proxy CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/memvault-proxy
3
- size: 36056704 bytes
4
- sha256: 1b55bdbc1069bfd97d38577e09f0c2f457ec32480765d2f18d4b12968ebc4b7b
3
+ size: 36756368 bytes
4
+ sha256: 00be503980ab3976e13041334e800c04ae8c67734a6f5d2bea7d011c806a4d40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamor/memvault-bin",
3
- "version": "0.6.12",
3
+ "version": "0.7.1",
4
4
  "description": "MemVault prebuilt binaries for Apple Silicon macOS. Transport for the Homebrew tap (dreamor/tap); not a JavaScript library.",
5
5
  "homepage": "https://github.com/dreamor/MemVault",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/dreamor/MemVault.git" },