Skip to content

Releases

SynapseVault v2.0.0 — 3-Layer Scopes, Conflict & Env Review Modal, 2D/3D Module Graph, 1-Click Auto-Write & Light/Dark Console

Choose a tag to compare

@Krittof Krittof released this 03 Dec 15:07

SynapseVault v2.0.0 — Major Milestone Release (100% Backward-Compatible with v1.x)

Lossless Upgrade: Upgrading from v1.x automatically migrates SQLite schema v2 -> v5 with zero data loss and zero breaking changes to /v1/* HTTP or MCP interfaces. Still 0 required third-party Python dependencies (Python 3.11+ stdlib only) and 0 external CDN assets.

What's New Since v1.1.1

1. 3-Layer Scope Isolation & Modular Memory Packs

  • 3-layer scopes (personal / env:<machine> / project:<slug>): Machine-local proxies, toolchains, and LAN hosts stay in env:<machine> — shared across local projects on the same machine while strictly isolated across machines via bound_machine RBAC.
  • Modular Memory Packs: Friendly display_name, auto-detected workspace_path, sample excerpts, and 1-click Unmount / Remount / Rename / Archive / Forget (with hard core protection on whole-personal).

2. 4-Tier Truth Authority & Unified Conflict / Machine-Env Review Modal

  • 4-tier authority & conflict-safe recall: Ranks conflicting multi-source facts (human_verified > code_observed > doc_extracted > agent_inferred), folds active supersedes chains, and protects contradicts pairs from MMR suppression with [CONFLICT] cues.
  • Unified 1-by-1 Decision Popup: Surfaces unresolved memory conflicts alongside machine-bound config candidates, highlighting deterministic ★ Default Pick recommendations, Prev / Next navigation with draft preservation, Keep Both, 1-click Resolve All Defaults, and Rollbackable Approve All (batch_audit_log).
  • Atomic single-transaction conflict resolution deduplicates symmetric (A->B, B->A) pairs and records clean conflict_resolve revisions.

3. Auto-Promotion, Bulk Remediation & Adaptive Injection

  • Auto-Curator Scope Routing + Leak Guardrail: Promotes general lessons to personal (pinned=False) while deterministically blocking leaked project slugs, local paths, and private IPs.
  • Two-Phase Bulk Remediation (dry_run -> confirm_token -> 1-click rollback_batch) and Dual-Gate Adaptive Injection Cutoff (min_score + min_ratio_to_top).

4. Pure-Canvas 2D / 3D Module-Aware Relation Graph

  • Zero-CDN, zero-WebGL dual-mode 2D Plane (convex hull cluster outlines, hover tooltips, anti-overlap labels) and 3D Star Map (4 projection presets, interactive orbit/zoom).
  • Module Capsules lock focus by Scope / Topic / Kind; clickable Node Inspector shows relations, authority, mount state, and neighbor jumps; full Light & Dark Canvas themes.

5. Next-Gen Web Console & Safe Backup-First 1-Click Agent Auto-Write

  • Backup-First 1-Click Auto-Write (⚡ 一键自动写入配置) & Uninstall for Antigravity, Cursor, Claude, Codex, and DeepSeek Harness (dsh): per-agent directory & filename allowlists, symlink/junction fail-closed checks, dry_run preview, unique .bak-synapsevault-<ts>-<rand> backups, and idempotent merging without overwriting unrelated plugins.
  • Honest 4-State Connection Lifecycle (● Live / ✓ Written · Restart App / ⏳ Awaiting Config / Paused / Not Connected) + 1-click Cancel / Disconnect & Revoke (never deletes imported memories).
  • Read-Only Session Import Tracking & Anti-Echo Filter: Live ✓ Imported X/N and per-session ✓ Imported / 🔄 +K new badges with 3-layer idempotent deduplication across reconnects, plus stripping of <long_term_memory_context> and [记忆 #N | Top-K] recall echoes.
  • Light & Dark Theme Toggle, Zero-Flash Smooth CSS Grid Accordions, Memories Module Filter dropdown, streamlined ⋯ menus with 1-click 🔒 Make Decay-Immune (user_profile), clickable Active / Inbox shortcut pills, and a 9-Step Interactive Spotlight Walkthrough Tour.

6. Security Audits & ARM64 Linux CI

  • Hardened across 2 independent adversarial code & security audit rounds (0 P0 remaining).
  • 63/63 tests/v2 unit & architecture-guard tests passing + native ARM64 Linux CI (ubuntu-24.04-arm).

中文更新摘要 (v2.0.0)

  • 三层作用域 + 模块化记忆包:personal / env:<machine> / project:<slug> 严格隔离,支持模块友好命名、工作区路径展示、一键卸挂/重挂/归档。
  • 高影响决策统一弹窗(记忆冲突仲裁 + 本机环境配置):自动标出 ★ 推荐默认,支持 ⏮ 上一条 / ⏭ 下一条、保留双方共存、一键按默认裁决全部冲突与可回滚一键允许。
  • 备份优先「⚡ 一键自动写入配置」与 4 态诚实连接状态:支持 5 大 Agent 安全预览 + .bak 自动备份 + 一键卸载,明确区分 ● 已生效 / ✓ 已写入 · 待重启 / ⏳ 待粘贴生效 / 未接入,并支持一键 取消接入 / 断开接入(已导入记忆完整保留不丢失)。
  • 新一代双主题零闪屏控制台:完整浅色/深色主题(含 2D/3D 纯 Canvas 模块联动图谱)、全站平滑手风琴、按模块精准筛选记忆、⋯ 一键 🔒 永久保鲜、历史会话 ✓ 已导入 X/N 状态追踪与防回声过滤、顶部 活跃记忆/收件箱 快捷跳转及 9 步聚光灯交互新手引导。
  • 质量保障:历经两轮独立对抗安全审计(0 P0 遗留),63/63 全量单测 + 5 项架构守卫全绿,原生通过 ARM64 Linux CI 兼容验证,100% 无损兼容 v1.x。

SynapseVault v1.1.1 — Customizable Recall Injection Budgets

Choose a tag to compare

@Krittof Krittof released this 02 Dec 01:48

SynapseVault v1.1.1 — Customizable Recall Injection Budgets

SynapseVault v1.1.1 lets users freely tune the trade-off between per-turn token spend and deep context recall — globally or per Agent client — without editing hook commands or restarting clients.

What's New in v1.1.1

  1. Modular Recall Budget Policy (llm_memory/core/budget.py)

    • Added 3 built-in presets + full custom tuning stored cleanly inside governance_policy_v2 (zero schema migration required):
      • lean: 3 items (1 pinned guardrail + 2 MMR), 900 chars, mmr_lambda=0.65
      • balanced (default): 4 items (1 pinned guardrail + 3 MMR), 1400 chars, mmr_lambda=0.72
      • deep: 8 items (2 pinned guardrails + 6 MMR), 3200 chars, mmr_lambda=0.78
      • custom: limit 1–15, max_guaranteed 0–5, max_chars 240–8000, mmr on/off & mmr_lambda 0.05–1.0.
    • Precedence chain: Explicit per-request parameter > Per-client override (e.g. cursor vs claude-code) > Global policy.
  2. Lifted 5-Item Recall Packet Cap + Over-Fetch Dedup Fix

    • Raised MAX_PACKET_ITEMS from 5 → 15 (while preserving the frozen dsh Node adapter HARD_MAX_ITEMS = 5 compatibility boundary).
    • Fixed edge case where a pinned guardrail item also matched dynamic search and reduced the deduplicated packet by 1 slot.
  3. Live Inheritance in hook-inject + New CLI budget Command & WebUI Controls

    • hook-inject now inherits the live server recall_budget automatically whenever --limit / --guaranteed / --max-chars are omitted — change budgets once in WebUI or CLI and every mounted Agent picks it up immediately.
    • Added HTTP GET/PUT /v1/config/recall-budget, CLI synapsevault budget show | set, and an interactive Custom Recall Injection Budget panel in WebUI Settings (ui/web-console/views/settings.js) with preset buttons, live token-cost preview, and per-client overrides.

中文摘要(v1.1.1 核心改进)

  • 解除 5 条硬顶,开放 1~15 条自定义注入预算:内置 省流(lean: 3 条 / 900 字)、均衡(balanced: 4 条 / 1400 字)、深度(deep: 8 条 / 3200 字) 三档一键预设及全参数自定义(红线位 0~5、字符上限 240~8000、MMR λ);
  • 支持全局默认 + 分客户端覆盖:例如给 cursor 配省流 3 条、给 claude-code 配深度 8 条,优先级为「单次传参 > 单客户端覆盖 > 全局默认」;
  • WebUI + CLI 热切换即时生效:新增 WebUI 设置页注入预算面板(含实时 Token 预估)、HTTP /v1/config/recall-budget 与 CLI synapsevault budget show/set;hook-inject 自动继承服务端实时预算,无需重启或修改客户端 Hook 配置;
  • 修复置顶去重少补 1 条边界问题,全套跨平台回归测试增至 44 项。

SynapseVault v1.1.0 — MMR Diversity, Guardrails, Recall Traces & Progressive MCP

Choose a tag to compare

@Krittof Krittof released this 29 Nov 14:24

SynapseVault v1.1.0 — Modular Retrieval, Guardrails, Audit Traces & Progressive Disclosure

SynapseVault v1.1.0 upgrades the core local-first memory engine while strictly preserving zero third-party dependencies (pure Python 3.11+ stdlib), 0 MB idle VRAM, strictly read-only historical log scanning, and the 4-layer unidirectional DAG (<= 550 lines/module AST-guarded).

What's New in v1.1.0

  1. MMR Diversity Reranking (llm_memory/core/rerank.py)

    • Pure-stdlib Maximal Marginal Relevance (MMRDiversityReranker, default lambda = 0.72, ratio-to-max scale-invariant normalization) prevents near-duplicate paraphrases from crowding out parallel distinct facts under tight Top-3 / Top-4 budgets.
    • Multi-fact coverage on compound queries jumps from 50.0% (Top-3 no-MMR) to 100.0% (+50.0 pp).
  2. Guaranteed Guardrail Slots (pin + build_recall_packet + hook-inject)

    • Pin critical project or personal rules (synapsevault pin <id> / POST /v1/memories/{id}/pin) so they receive dedicated [PINNED #id vN ...] slots that are never crowded out by dynamic search hits.
    • hook-inject now routes through /v1/recall-packet, preserving trace_id, guaranteed guardrail slots, and explicit [#id vN scope/kind @machine/client] provenance tags.
  3. Persisted Recall Trace Audit Store (llm_memory/core/recall_trace.py · Schema v3)

    • Lossless automatic SQLite migration (schema_version 2 -> 3) adds the recall_traces audit table recording trace_id, client, machine, channel, scope, returned #id vN, per-channel scores, MMR/guardrail flags, degradation reason, and latency.
    • Inspect traces via GET /v1/traces, GET /v1/traces/{trace_id}, CLI synapsevault traces --memory-id <id>, or MCP tool memory_traces.
  4. 3-Layer Progressive Disclosure MCP (llm_memory/core/progressive.py · 16 MCP Tools)

    • Expanded standard MCP stdio server from 12 to 16 tools, adding low-token progressive disclosure:
      • memory_index (Layer 1: ~15-20 tokens/item shortlist)
      • memory_timeline (Layer 2: chronological siblings + 1-hop typed relations)
      • memory_get (Layer 3: batch full-payload + optional revision history fetch)
      • memory_traces (post-mortem recall audit lookup)
  5. Bi-Temporal as_of Queries & Gentle Decay / Access Reinforcement

    • Added event_time, importance, hit_count, and last_hit_at columns with point-in-time as_of retrieval (100.0% accuracy on temporal supersession).
    • Gentle recency decay x logarithmic access boost keeps stale transient chatter from outranking fresh truths, while pinned, persona, and user_profile memories remain immune to decay.
  6. Read-Only Git-Diffable Markdown Mirror (llm_memory/core/export_md.py)

    • Deterministic one-way export (synapsevault export-md --out ./mirror) renders SQLite memories into clean YAML-frontmatter Markdown files + INDEX.md for human review, Obsidian browsing, or git diff, while SQLite stays the single source of truth.
  7. Extensible Modular Contracts (llm_memory/contracts.py)

    • Expanded Layer 0 swappable Protocol contracts from 5 to 8: added DiversityReranker, RecallTraceStore, and MemoryExporter for future pluggable upgrades without modifying core domain logic.
  8. Honest Dual-Baseline Benchmarks & Advantage Zone Documentation

    • Added python -m eval.benchmark_ablation comparing SynapseVault v1.1 directly against structured retrieval baselines (Top-10 Unfiltered Lexical and Top-3 Nearest-Neighbor No-MMR), achieving 100.0% multi-fact coverage, 100.0% guardrail adherence, 100.0% bi-temporal accuracy, 100.0% trace auditability, and 45.4% token savings vs Top-10.
    • Updated English & Chinese READMEs with a transparent Advantage Zone & Honest Positioning matrix.

Upgrade Notes

  • Automatic lossless migration: Existing v1.0.0 (Schema v2) SQLite databases automatically and safely upgrade to Schema v3 on first launch — zero manual migration steps required.

中文摘要(v1.1.0 核心改进)

在严格守住 纯 Python 3.11+ 标准库(零第三方依赖)、0 MB 空闲显存、只读扫历史不改原文件、四层单向依赖 DAG 与单模块 <= 550 行守卫 的前提下,v1.1.0 带来以下模块化升级:

  • MMR 多样性重排:Top-3/4 极窄预算下并列多事实覆盖率从 50.0% 提升至 100.0%(+50.0 pp),防止近义条目扎堆;
  • Pinned 红线保障位 + hook-inject 溯源透传:支持 synapsevault pin <id> 置顶关键项目/个人规则,每轮注入自动带上 trace_id、[PINNED #id vN] 与 [#id vN @machine/client];
  • 持久化 recall_traces 召回审计表(Schema v2 → v3 无损自动升级):支持按 trace_id、客户端或 memory_id 离线反查每次召回的完整决策细节;
  • MCP 3 层渐进披露(12 → 16 工具):新增 memory_index / memory_timeline / memory_get / memory_traces;
  • 双时态 as_of 查询与温和衰减强化:支持历史时间点回溯(准确率 100.0%),pinned / persona / user_profile 豁免衰减;
  • 只读 Markdown 镜像导出:synapsevault export-md --out ./mirror 一键导出 Git-diff / Obsidian 友好目录;
  • 8 个可插拔 Layer 0 Protocol 协议槽:新增 DiversityReranker、RecallTraceStore、MemoryExporter,保留后续平滑升级潜能;
  • 新增结构化消融评测与 README 优势区间说明:透明区分“相对原始全量历史”与“相对 Top-10 / Top-3 结构化检索基线”(相对 Top-10 再省 45.4% Token)。

SynapseVault v1.0.0 — Initial Public Release

Choose a tag to compare

@Krittof Krittof released this 28 Nov 08:35

SynapseVault v1.0.0 — Initial Public Release

SynapseVault is a lightweight, local-first, zero-dependency Python 3.11+ unified memory library for multi-Agent AI workflows (Cursor, Claude Code, OpenAI Codex, Antigravity, DeepSeek Harness, and any MCP client).

Key Highlights:

  • Multi-Tier Adaptive Retrieval: Tier 0 zero-model default (~17-25 MB RAM, 0 MB VRAM, 100% bilingual Recall@5), optional Tier 1A cloud embeddings with 750ms fallback, and optional Tier 1B local llama-server on-demand backfill (0 MB idle VRAM).
  • Three Connection Modes for Every Agent: Mode A (automatic per-turn injection via native bridge or prompt hook), Mode B (standard 12-tool MCP server), or Mode A + B together.
  • Strictly Read-Only History Scanner: Auto-discovers local sessions from Antigravity, Codex, DeepSeek Harness, Cursor, Claude Code, and custom folders without modifying source files.
  • Optional Full-Auto Loop: Background incremental watcher and OpenAI-compatible LLM auto-curator (off by default for zero idle overhead).
  • Built-in Bilingual Web Console (EN / 中文): Agent mount manager, memory search and editing, 2D relation graph, encrypted hot backups, and interactive 4-step quick-start guide.
  • Cross-Platform CI Verified: 6/6 passing across Windows, Linux, and macOS (Python 3.11 & 3.12).

中文简介:

  • 纯 Python 3.11+ 标准库、零第三方依赖、0 显存开箱即用的多 Agent 本地统一记忆库。
  • 支持 Tier 0 / Tier 1A / Tier 1B 三档自适应记忆检索,实测较原始历史日志节省 99.78% Token、检索提速 47 倍、双语 Recall@5 达 100%。
  • 所有 Agent 均支持方式 A(每轮自动注入)、方式 B(标准 MCP)及方式 A + B 同时启用,内置中英双语零 CDN 控制台与一键部署提示词。