dotmem 0.3.1 → 0.3.2

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
@@ -1,10 +1,30 @@
1
- # Changelog
1
+ # Changelog
2
2
 
3
3
  All notable changes to Dotmem are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.1] - 2026-11-30
9
+
10
+ ### Added
11
+ - **Cognitive engine** (`core/cognitive-engine/`) - Native evidence-driven operational intelligence layer: attention, continuous attention (persistent, scheduled, recoverable), metadata-first discovery, deterministic calculation, SQL read-only execution, epistemic state machine, SSOT, planner, router, orchestrator, privacy gate, human control, token accounting and validation.
12
+ - **Operator module** (`core/operator/`) - Classification and verification surfaces for the cognitive engine.
13
+ - **Knowledge extensions** - Loops, selector, telemetry, probe, entropy, QUBO/solvers/signatures, semantic retrieval and semantic provider, encryption helpers, assistant/domain profiles.
14
+ - **CLI commands** - `audit-sample`, `effects`, `why`, `branch`, `compile`, `consolidate`, `debug`, `gc`, `hooks`, `on`, `pack`, `probe`, `quarantine`, `rewrap`, `selector`, `snapshot`, `stats`, `sync`, `terms`, `loop`.
15
+ - **Contracts/tests** - Dedicated tests for cognitive engine, loops, selector, telemetry, probe, semantic provider, search security, persistent attention durability and Python adapter preflight.
16
+
17
+ ### Changed
18
+ - **Storage and routing** - Moved bridge tests into `tests/vitest/tests/bridge/`; updated claim records, discovery, acquire and state for cognitive-engine integration.
19
+ - **Documentation** - Updated `docs/AGENTS.md`, `docs/MEMORY.md`, `docs/README.md`, `docs/SECURITY.md`, `docs/llms.txt` for the cognitive engine and new CLI surface.
20
+
21
+ ### Fixed
22
+ - **Build-time identity** - Runtime identity resolution hardened; handshake/runtime identity integration completed.
23
+ - **Persistent Continuous Attention** - Durable events, schedules and checkpoint recovery replace the in-memory queue.
24
+
25
+ ### Notes
26
+ - Python sandbox is optional; native Calculation Engine and SQL read-only execution are the mandatory deterministic path.
27
+
8
28
  ## [0.3.0] - 2026-11-27
9
29
 
10
30
  ### Added
@@ -49,7 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
69
  - **Iron rules** - Added `iron-rule-em-dash-to-hyphen` (use hyphen instead of em dash) and `iron-rule-no-jsx` (never use JSX) as human-stated project rules.
50
70
 
51
71
  ### Changed
52
- - **Em dash to hyphen** - Replaced em dash (`—`) with hyphen (`-`) across all project source, docs, and visual editor files.
72
+ - **Em dash to hyphen** - Replaced em dash (`—`) with hyphen (`-`) across all project source, docs, and visual editor files.
53
73
  - **Visual editor** - Converted remaining `.jsx` sources to `.js` using `React.createElement` (no JSX).
54
74
 
55
75
  ### Fixed
@@ -65,7 +85,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
65
85
 
66
86
  ### Added
67
87
  - **Progressive Summary Store** - Four detail levels (current: 1.0, recent: 0.7, distant: 0.3, archived: 0.1) with session count and age-based decay triggers, summary text truncation preserving earliest and most recent content, fact filtering by confidence, decision compaction, question count compaction, and summary rotation chain.
68
- - **Automatic Conversational Capture** - 7-stage pipeline: detect → classify → extract → dedup → decide → provenance → store. Classification via keyword matching + heuristics (deterministic, no embeddings). Deduplication via Jaccard similarity (threshold 0.75). Explicit instruction detection. Fact vs inference distinction.
88
+ - **Automatic Conversational Capture** - 7-stage pipeline: detect → classify → extract → dedup → decide → provenance → store. Classification via keyword matching + heuristics (deterministic, no embeddings). Deduplication via Jaccard similarity (threshold 0.75). Explicit instruction detection. Fact vs inference distinction.
69
89
  - **MCP Automatic Joy Profile Activation** - ADR-023: `buildProfileGuidance()` reads canonical `JO_PROFILE`; `buildMcpInstructions()` composes profile identity block + Scintilla signal.
70
90
  - **Project identity `resolveProjectIdentity`** - Public API export for resolving stable project identity from DOTMEM_PROJECT_ID env, package.json name, or directory basename.
71
91
 
@@ -126,22 +146,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
126
146
  - **Agent Memory** - Logical namespace partitioning via `dotmem/agent`.
127
147
  - **Governance & Security** - RBAC, audit, consent, AES-GCM, PBKDF2 helpers.
128
148
 
129
- ## [0.3.1] - 2026-11-30
130
-
131
- ### Added
132
- - **Cognitive engine** (`core/cognitive-engine/`) - Native evidence-driven operational intelligence layer: attention, continuous attention (persistent, scheduled, recoverable), metadata-first discovery, deterministic calculation, SQL read-only execution, epistemic state machine, SSOT, planner, router, orchestrator, privacy gate, human control, token accounting and validation.
133
- - **Operator module** (`core/operator/`) - Classification and verification surfaces for the cognitive engine.
134
- - **Knowledge extensions** - Loops, selector, telemetry, probe, entropy, QUBO/solvers/signatures, semantic retrieval and semantic provider, encryption helpers, assistant/domain profiles.
135
- - **CLI commands** - `audit-sample`, `effects`, `why`, `branch`, `compile`, `consolidate`, `debug`, `gc`, `hooks`, `on`, `pack`, `probe`, `quarantine`, `rewrap`, `selector`, `snapshot`, `stats`, `sync`, `terms`, `loop`.
136
- - **Contracts/tests** - Dedicated tests for cognitive engine, loops, selector, telemetry, probe, semantic provider, search security, persistent attention durability and Python adapter preflight.
137
-
138
- ### Changed
139
- - **Storage and routing** - Moved bridge tests into `tests/vitest/tests/bridge/`; updated claim records, discovery, acquire and state for cognitive-engine integration.
140
- - **Documentation** - Updated `docs/AGENTS.md`, `docs/MEMORY.md`, `docs/README.md`, `docs/SECURITY.md`, `docs/llms.txt` for the cognitive engine and new CLI surface.
141
-
142
- ### Fixed
143
- - **Build-time identity** - Runtime identity resolution hardened; handshake/runtime identity integration completed.
144
- - **Persistent Continuous Attention** - Durable events, schedules and checkpoint recovery replace the in-memory queue.
145
-
146
- ### Notes
147
- - Python sandbox is optional; native Calculation Engine and SQL read-only execution are the mandatory deterministic path.
package/OVERVIEW.md CHANGED
@@ -116,6 +116,7 @@ including:
116
116
  - Open-loop and task continuity
117
117
  - Governance, consent, and audit
118
118
  - Multi-agent coordination
119
+ - Cognitive engine: metadata-first discovery, deterministic calculation, read-only SQL adapter, epistemic state machine, SSOT, continuous attention (persistent, scheduled, recoverable), privacy gate, cancellation. Python is optional.
119
120
 
120
121
  The architecture is intended to keep these responsibilities separate and
121
122
  avoid duplicating foundational functionality.
@@ -279,7 +280,7 @@ Reported results in the supplied project summary include:
279
280
 
280
281
  - A coverage matrix with 507 entries, of which 465 were reported
281
282
  covered.
282
- - A test report with 1252 passing tests (92 files), 1 skipped, 1 todo.
283
+ - A test report with 1473 passing tests (125 files), 1 skipped, 1 todo.
283
284
  - Seven passing canonical-identity enforcement tests.
284
285
  - Recovery of historical tests, research papers, experiments, and
285
286
  documentation.
@@ -294,6 +295,7 @@ attention:
294
295
  - Cross-AI profile replacement and transfer remain incomplete.
295
296
  - Multi-process write coordination is not fully addressed.
296
297
  - There is no formal SLA for identity persistence.
298
+ - End-to-end evidence lineage tracking is not yet available.
297
299
 
298
300
  Implementation status must always be checked against the current code
299
301
  and current test results. Historical research papers and capability
package/README.md CHANGED
@@ -6,9 +6,7 @@
6
6
  [![license](https://img.shields.io/npm/l/dotmem)](#license-and-disclaimer)
7
7
  [![node](https://img.shields.io/node/v/dotmem)](#quick-start)
8
8
 
9
- ## A verifiable, local project memory for your AI coding assistant
10
-
11
- **Persistent project knowledge. Continuous development conversations. Fewer repeated explanations. Less context overhead.**
9
+ **A verifiable, local project memory for AI coding assistants.** Architecture decisions, debugging history, unfinished work and technical discussions survive sessions, models and editors.
12
10
 
13
11
  Dotmem is a local-first memory and context engine for AI-powered code editors. Start a new chat, switch editors, restart your machine, or come back weeks later: your assistant can recover project architecture, technical decisions, previous discussions, debugging history, and unfinished work.
14
12
 
@@ -45,15 +43,15 @@ Dotmem gives the assistant access to persistent, structured development memory i
45
43
 
46
44
  ## Why Dotmem
47
45
 
48
- Most projects already try to solve this in one of two ways. Dotmem is designed to complement both.
49
-
50
- | Approach | Strength | Limit | What Dotmem adds |
51
- |---|---|---|---|
52
- | Static rule files (e.g. `AGENTS.md`, editor rules) | Simple, always loaded | Grow without bound, no history, loaded in full every time | Bounded, progressive context (L0-L3) built from stored claims |
53
- | Chat history and automatic compaction | Zero setup | Lost on new sessions or editors; summaries drift | Checkpoints and open loops that survive sessions and editors |
54
- | Dotmem | Local, deterministic retrieval; every claim has provenance and a trust basis | Needs the MCP server and one rule line; retrieval is keyword-based (no embeddings) | n/a |
46
+ | Instead of | Where it falls short | With Dotmem |
47
+ |---|---|---|
48
+ | Static rule files (`AGENTS.md`, editor rules) | Grow without bound, no history, loaded in full every time | Bounded, progressive context (L0-L3) built from stored claims |
49
+ | Editor-built-in memory | Tied to one editor or account | Editor-independent: it follows the project through MCP |
50
+ | Chat history and automatic compaction | Lost on new sessions or editors; summaries drift | Checkpoints and open loops that survive sessions and editors |
51
+ | Plain notes | Unstructured, no provenance, hard to retrieve selectively | Structured claims with evidence, scope and a trust basis |
52
+ | A vector database | Needs an embedding model; results are not reproducible | Deterministic, local retrieval, with no embedding model (but no semantic matching) |
55
53
 
56
- Dotmem is **editor-independent** (it works through MCP), **local-first** (no cloud, no telemetry) and **correctable** (claims are immutable; changes are new claims that refine, supersede or retract).
54
+ **Trade-offs.** Dotmem needs the MCP server and one rule line in your editor to work reliably, and retrieval is keyword-based: synonyms and paraphrases are not guaranteed to match. In return it is **local-first** (no cloud, no telemetry), **editor-independent** and **correctable**: claims are immutable, and changes are new claims that refine, supersede or retract.
57
55
 
58
56
  ## Using `dotmem` in chat
59
57
 
@@ -201,6 +199,8 @@ Dotmem does not load everything into every conversation. It keeps initial contex
201
199
 
202
200
  The session profile sets the maximum level: SHORT up to L1, MEDIUM up to L2, LONG up to L3 from turn 6. The profile is supplied by the host or integration, not inferred from your wording.
203
201
 
202
+ <!-- TODO: state the level applied when the host supplies no profile (or say that there is no default). -->
203
+
204
204
  After a summary restart, progression returns to L1. `--full` returns the complete projection on request.
205
205
 
206
206
  Each response is bounded in size. Dotmem cannot control how often a model decides to call a tool.