@psiclawops/hypermem 0.8.1 → 0.8.3
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 +101 -0
- package/INSTALL.md +887 -0
- package/README.md +89 -6
- package/bin/hypermem-status.mjs +10 -0
- package/dist/version.d.ts +4 -4
- package/dist/version.js +4 -4
- package/docs/API_STABILITY.md +33 -0
- package/docs/KNOWN_LIMITATIONS.md +35 -0
- package/docs/MEMORY_MD_AUTHORING.md +243 -0
- package/docs/MIGRATION.md +56 -0
- package/docs/MIGRATION_GUIDE.md +1083 -0
- package/docs/PHASE1-VALIDATION.md +132 -0
- package/docs/RELEASE_0.8.0_VALIDATION.md +70 -0
- package/docs/RELEASE_PROCESS.md +10 -0
- package/docs/ROADMAP.md +39 -0
- package/docs/SLASH_COMMANDS.md +93 -0
- package/docs/TUNING.md +866 -0
- package/install.sh +516 -0
- package/memory-plugin/dist/index.d.ts +24 -0
- package/memory-plugin/dist/index.d.ts.map +1 -0
- package/memory-plugin/dist/index.js +300 -0
- package/memory-plugin/dist/index.js.map +1 -0
- package/memory-plugin/openclaw.plugin.json +13 -0
- package/memory-plugin/package.json +64 -0
- package/package.json +15 -2
- package/plugin/dist/index.d.ts +153 -0
- package/plugin/dist/index.d.ts.map +1 -0
- package/plugin/dist/index.js +3127 -0
- package/plugin/dist/index.js.map +1 -0
- package/plugin/openclaw.plugin.json +13 -0
- package/plugin/package.json +65 -0
- package/scripts/install-runtime.mjs +81 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to hypermem are documented here.
|
|
4
|
+
|
|
5
|
+
## 0.8.2 — npm packaging & install path clarity
|
|
6
|
+
|
|
7
|
+
- **INSTALL.md and CHANGELOG.md now ship in the npm package.** Previously missing from `package.json` `files` array, so `npm pack` / `npm publish` excluded them. Users installing from the registry now get the full install guide without cloning the repo.
|
|
8
|
+
- **Library vs plugin install paths split in README.** The Installation section now clearly separates standalone library usage (no OpenClaw required) from OpenClaw plugin wiring. Library consumers no longer have to read through plugin-specific steps.
|
|
9
|
+
- **Cold-start prerequisites expanded.** INSTALL.md prerequisites now include explicit verification commands (`openclaw gateway status`, `node --version`), distinguish first-time OpenClaw setup from existing installs, and explain when to use `gateway start` vs `gateway restart`.
|
|
10
|
+
- **Verification steps handle auth failures.** Step 4 verification now includes diagnostic callouts for `gateway restart` failures (not onboarded, missing config) and `openclaw logs` failures (gateway not running, path issues).
|
|
11
|
+
- **Troubleshooting quick-reference added to README.** A 7-row common-issues table covers plugin-not-found, legacy fallback, no semantic results, build errors, empty facts, context pressure, and missing messages.db -- with symptoms, causes, and one-line fixes.
|
|
12
|
+
|
|
13
|
+
## 0.8.1 — Documentation fixes
|
|
14
|
+
|
|
15
|
+
- **Install docs rewritten for clean first-run:** README and INSTALL.md installation sections restructured so config comes before restart, `$HOME` replaces `~` in shell-interpolated JSON strings, clone path is no longer hardcoded, and health-check instructions note the repo-dir requirement and data-dir timing.
|
|
16
|
+
- **install:runtime output:** `npm run install:runtime` now prints the next-step commands (config creation + plugin wiring) so the user doesn't have to hunt through docs.
|
|
17
|
+
- **Lightweight mode clarified:** Step 3 no longer says "skip for Lightweight" — a `config.json` with `provider: "none"` is required to suppress the Ollama fallback warning.
|
|
18
|
+
|
|
19
|
+
## 0.8.0 — Phase C correctness, tool-artifact store, tiered contradiction resolution
|
|
20
|
+
|
|
21
|
+
- **Reranker credentials via environment variable:** `ZEROENTROPY_API_KEY` and `OPENROUTER_API_KEY` are now read from the environment. Config file `zeroEntropyApiKey` / `openrouterApiKey` still works as fallback. Recommended setup puts the key in a shell env file so it never lands in config-under-version-control.
|
|
22
|
+
- **Recommended operator tuning refreshed:** suggested full-deployment config lowered `warmHistoryBudgetFraction` to 0.27 and `budgetFraction` to 0.55, with corresponding fact/history/keystone trims. Produces steadier turn-over-turn pressure on long-running agent fleets and avoids the tight warm→trim→compact cycling that the previous richer defaults encouraged on 200k+ models. Existing deployments with custom configs are unaffected.
|
|
23
|
+
- **`contextWindowSize` retired from recommended config:** runtime autodetection from the active model identifier is stable; manual override is no longer suggested. The field is still honored if present for back-compat.
|
|
24
|
+
- **Custom/local model window guidance:** INSTALL.md and `docs/TUNING.md` now document `contextWindowOverrides` — how to detect autodetect failure (`verboseLogging` + `budget source:` log line), the two failure signatures (undersized = continuous trim cycling; oversized = mid-turn overflow), and how warming/trimming/compaction all scale off the detected window. Operators running finetuned, local, or unusually-named models should set overrides before tuning any other budget dial.
|
|
25
|
+
- **Phase C correctness cluster:** tool result guards (C1), budget cluster drop telemetry, oversized artifact degradation with canonical reference format, unified pressure accounting, replay recovery isolation. Prompt-path verification harness proves Phase C behavior in real gateway flow.
|
|
26
|
+
- **Tool-artifact store:** durable tool result storage for wave-guard (Sprint 2.1 active-turn hydration, Sprint 2.2 retention sweep + sensitive-artifact flag). Tool results survive compaction cycles.
|
|
27
|
+
- **Fleet registry seeding on startup:** fleet agents seeded from known identity files on every gateway start. No cold-start gaps in registry state after deploy.
|
|
28
|
+
- **Tiered contradiction resolution (V19):** auto-supersede at ≥0.80 confidence, `invalidateFact` at 0.60–0.80, log-only below 0.60. Background indexer records contradiction audits. Schema v19.
|
|
29
|
+
- **Dreaming promoter temporal-marker screen:** blocks durable promotion of time-bound facts without `validFrom`/`invalidAt` metadata. Prevents stale temporally-anchored facts from polluting the durable fact store.
|
|
30
|
+
- **MEMORY.md authoring guide:** `docs/MEMORY_MD_AUTHORING.md` documents the static-vs-dynamic fact contract for operators and agents.
|
|
31
|
+
- **B4 model-aware budgeting:** compositor resolves token budget from active model string when the runtime does not pass `tokenBudget` explicitly. Budget recomputes on mid-session model swap.
|
|
32
|
+
- **BLAKE3 content dedup + RRF fusion:** O(1) fingerprint dedup across all retrieval paths. RRF merges FTS5 and KNN results. Zigzag ordering balances recency and relevance in composed output.
|
|
33
|
+
|
|
34
|
+
## 0.7.0 — Temporal validity, expertise storage, contradiction detection
|
|
35
|
+
|
|
36
|
+
- **Temporal validity engine:** facts expire, get superseded, and decay over time. Stale knowledge auto-deprioritized in retrieval.
|
|
37
|
+
- **Expertise store:** per-agent skill/domain tracking. Agents accumulate domain proficiency through indexed interactions.
|
|
38
|
+
- **Contradiction detector:** flags conflicting facts at ingest time. Newer evidence supersedes older, with audit trail.
|
|
39
|
+
- **Maintenance APIs:** programmatic access to compaction stats, index health, and storage diagnostics.
|
|
40
|
+
- **CI pipeline:** Redis removed, memory-plugin build stage added, monorepo file-ref wiring.
|
|
41
|
+
|
|
42
|
+
## 0.6.2 — Turn DAG, identity scrub, fleet customization
|
|
43
|
+
|
|
44
|
+
- Turn DAG phases 1–3: DAG-native reads, context-scoped recall, fence downgrade.
|
|
45
|
+
- Fleet name substitution for public distribution.
|
|
46
|
+
- Fleet customization guide and single-agent install docs.
|
|
47
|
+
|
|
48
|
+
## 0.6.0 — Redis removal complete
|
|
49
|
+
|
|
50
|
+
- SQLite-only cache layer replaces Redis entirely. Zero external service dependencies.
|
|
51
|
+
- Simplified deployment: single binary + SQLite files.
|
|
52
|
+
|
|
53
|
+
## 0.5.6 — Content fingerprint dedup and hardening
|
|
54
|
+
|
|
55
|
+
- O(1) fingerprint dedup across all retrieval paths (temporal, open-domain, semantic, cross-session). Catches rephrased near-duplicates that substring matching missed.
|
|
56
|
+
- Identity bootstrap pre-fingerprinting: SOUL.md, USER.md, IDENTITY.md content already in the prompt is never double-injected by retrieval.
|
|
57
|
+
- Indexer circuit breaker with startup integrity check for library.db corruption. Graceful degradation, not cascading failure.
|
|
58
|
+
- SQL parameterization hardening on datetime and FTS5 paths.
|
|
59
|
+
|
|
60
|
+
## 0.5.5 — Tuning collapse and config schema
|
|
61
|
+
|
|
62
|
+
- Plugin config schema: all tuning knobs declarable in `openclaw.json`. No more manual config.json edits.
|
|
63
|
+
- Tuning simplified to 4 primary knobs: `budgetFraction`, `reserveFraction`, `historyFraction`, `memoryFraction`.
|
|
64
|
+
- Identity and doc chunk dedup against OpenClaw bootstrap injection.
|
|
65
|
+
- Window cache with freshness diagnostics.
|
|
66
|
+
|
|
67
|
+
## 0.5.0 — SQLite hot-cache transition and context engine
|
|
68
|
+
|
|
69
|
+
- SQLite `:memory:` hot cache introduced for the runtime hot layer. Redis compatibility artifacts still existed at this stage, full removal completed in 0.6.0.
|
|
70
|
+
- Context engine plugin: runs as an OpenClaw `contextEngine` slot, composing prompts per-turn.
|
|
71
|
+
- Transform-first assembly: tool results compressed before budget allocation, not after.
|
|
72
|
+
- Cluster-aware budget shaping: related tool turns grouped and trimmed together.
|
|
73
|
+
- Hybrid FTS5 + KNN retrieval with Reciprocal Rank Fusion.
|
|
74
|
+
- Workspace seeding: agents auto-ingest their workspace docs on bootstrap.
|
|
75
|
+
- Runtime profiles: `light`, `standard`, `full`.
|
|
76
|
+
- Obsidian import and export.
|
|
77
|
+
- Metrics dashboard primitives.
|
|
78
|
+
|
|
79
|
+
## 0.4.0 — Eviction and migration
|
|
80
|
+
|
|
81
|
+
- Image and heavy-content eviction pre-pass in assembly. Old screenshots and large tool outputs aged out before they compete for budget.
|
|
82
|
+
- Engine version stamps in library.db. Schema migration runs automatically on version bump.
|
|
83
|
+
- Migration guides and scripts for Cognee, QMD, Mem0, Zep, Honcho, and raw MEMORY.md files.
|
|
84
|
+
|
|
85
|
+
## 0.3.0 — Subagent context and retrieval
|
|
86
|
+
|
|
87
|
+
- Subagent context inheritance: spawned subagents get bounded parent context, session-scoped docs, and relevant facts.
|
|
88
|
+
- Tool Gradient v2: turn-age tiers with head+tail truncation on tool results.
|
|
89
|
+
- Cursor-aware indexer with ghost message suppression.
|
|
90
|
+
|
|
91
|
+
## 0.2.0 — Retrieval access control
|
|
92
|
+
|
|
93
|
+
- Trigger registry ownership and auditability.
|
|
94
|
+
- Retrieval access control, trigger fallback paths, and history rebalance.
|
|
95
|
+
|
|
96
|
+
## 0.1.0 — Core architecture
|
|
97
|
+
|
|
98
|
+
- Four-layer memory: in-memory cache, message history, vector search, structured library.
|
|
99
|
+
- 8-level priority compositor with slot-based prompt assembly.
|
|
100
|
+
- Cross-agent memory access with visibility-scoped permissions.
|
|
101
|
+
- Knowledge graph with DAG traversal.
|