dotmem 0.2.1 → 0.2.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/AGENTS.md CHANGED
@@ -37,17 +37,17 @@ for the session.
37
37
 
38
38
  ### What are Joy and Jo?
39
39
 
40
- **Joy** is the canonical AI identity/profile for dotmem — the operational role name that comes from
40
+ **Joy** is the canonical AI identity/profile for dotmem - the operational role name that comes from
41
41
  the profile, not from the runtime. **Jo** is an alternative shorthand for the same identity. They
42
42
  represent the assistant's persistent identity in the dotmem system (canonical profile, decision-making
43
43
  behavior, trust model, and relationship style).
44
44
 
45
45
  The canonical profile (`context/profiles/ai/`) defines:
46
- - **Identity & behavior** (`behavior.md`, `soul.md`) — character, relationship style, conversational behavior
47
- - **Trust model** (`trust.md`) — epistemic standards, verification requirements
48
- - **Decision framework** (`decision.md`) — how Jo evaluates and makes technical decisions
49
- - **Curiosity & learning** (`curiosity.md`) — what Jo seeks to understand and remember
50
- - **Language conventions** (`language.md`) — communication style
46
+ - **Identity & behavior** (`behavior.md`, `soul.md`) - character, relationship style, conversational behavior
47
+ - **Trust model** (`trust.md`) - epistemic standards, verification requirements
48
+ - **Decision framework** (`decision.md`) - how Jo evaluates and makes technical decisions
49
+ - **Curiosity & learning** (`curiosity.md`) - what Jo seeks to understand and remember
50
+ - **Language conventions** (`language.md`) - communication style
51
51
 
52
52
  When activated via `Joy` or `Jo`, dotmem loads this canonical profile as part of the deterministic
53
53
  discovery order. The profile is mandatory for every Dotmem installation and execution mode and
@@ -94,7 +94,7 @@ native path cannot answer the request.
94
94
 
95
95
  ### Native-first read ordering
96
96
 
97
- 1. **CLI — situation context:** `npx dotmem context "[<situation>]" [--explain] [--json] [--full] [--claims-only] [--limit <N>] [--format brief]`
97
+ 1. **CLI - situation context:** `npx dotmem context "[<situation>]" [--explain] [--json] [--full] [--claims-only] [--limit <N>] [--format brief]`
98
98
  discovers acquired claims and projects a context for the situation. `situation` is optional:
99
99
  omit it for baseline context (TOTAL:0 when empty). `--full`
100
100
  bypasses the session-start projection ceiling (3000 characters, 5 candidates)
@@ -103,18 +103,18 @@ native path cannot answer the request.
103
103
  `--json` (without `--explain`) returns structured `{ identity, claims }` on
104
104
  stdout. `--limit <N>` caps candidates best-first. `--format brief` prints one
105
105
  line per claim.
106
- 2. **CLI — continuity:** `npx dotmem continuity [context|snapshot|forget] [-debug]`
106
+ 2. **CLI - continuity:** `npx dotmem continuity [context|snapshot|forget] [-debug]`
107
107
  composes USER + PROJECT + TASK continuity for the model.
108
- 3. **CLI — package decode:** `npx dotmem inspect FILE.mem` validates and decodes a `.mem`
108
+ 3. **CLI - package decode:** `npx dotmem inspect FILE.mem` validates and decodes a `.mem`
109
109
  package (integrity, structure, knowledge claims) through dotmem's own reader.
110
- 4. **CLI — storage / authority:** `npx dotmem storage` (location/capability) and
110
+ 4. **CLI - storage / authority:** `npx dotmem storage` (location/capability) and
111
111
  `npx dotmem handshake` (carrier compatibility and identity/authority binding). Run
112
112
  `handshake` before reading memory when the contract gates activation.
113
- 5. **CLI — local vault:** `npx dotmem vault put|resolve|list|forget` stores hidden values
113
+ 5. **CLI - local vault:** `npx dotmem vault put|resolve|list|forget` stores hidden values
114
114
  locally; handles map to values, values never enter model output.
115
- 6. **CLI — verify:** `npx dotmem verify` runs freshness probes on claims with self-checking
115
+ 6. **CLI - verify:** `npx dotmem verify` runs freshness probes on claims with self-checking
116
116
  rules.
117
- 7. **CLI — feedback:** `npx dotmem feedback <claim-id> <helped|misled|ignored>` records
117
+ 7. **CLI - feedback:** `npx dotmem feedback <claim-id> <helped|misled|ignored>` records
118
118
  operator feedback on a claim.
119
119
  8. **JavaScript API:** `memory.discover(situation)`, `memory.context(opts)`,
120
120
  `memory.project(discovery, options)`, `memory.profile.get(id)`, `dotmem.inspectMem(path)`,
@@ -123,7 +123,7 @@ native path cannot answer the request.
123
123
  9. **Manual inspection** is permitted **only** when (a) the user explicitly asks for
124
124
  low-level debugging/diagnosis, or (b) a native command above fails and the failure
125
125
  itself is being diagnosed. Do not treat "native command failed" as license to keep
126
- manually parsing — fix the native path or report the discrepancy to the HI.
126
+ manually parsing - fix the native path or report the discrepancy to the HI.
127
127
 
128
128
  > `.mem` files are dotmem-managed packages: compressed (Deflate) ZIP archives plus a
129
129
  > SHA-256 integrity manifest. A literal byte search over the raw file **misses deflated
@@ -133,7 +133,7 @@ native path cannot answer the request.
133
133
  > normal path.
134
134
 
135
135
  If deterministic resolution fails (no compatible carrier / untrusted binding at `handshake`),
136
- **stop** — do not continue by searching the filesystem. See **Activation** above.
136
+ **stop** - do not continue by searching the filesystem. See **Activation** above.
137
137
 
138
138
  ### Complete `memory.*` surface (know this now; do not rediscover)
139
139
 
@@ -162,13 +162,13 @@ If deterministic resolution fails (no compatible carrier / untrusted binding at
162
162
 
163
163
  ### Companion surfaces (also immediate knowledge)
164
164
 
165
- - `dotmem.inspectMem(path)` / `signMemPackage(pkg)` — package validation/signing.
165
+ - `dotmem.inspectMem(path)` / `signMemPackage(pkg)` - package validation/signing.
166
166
  - `dotmem.resolveDotMemStorageRoot()` / `describeDotMemStorage()` /
167
- `relocateDotMemStorage(root)` / `restoreDefaultDotMemStorage()` — storage location.
167
+ `relocateDotMemStorage(root)` / `restoreDefaultDotMemStorage()` - storage location.
168
168
  - `dotmem.resolveProjectIdentity()` / `resolveUserProjectMemoryPath(id)` /
169
- `resolveUser*Path()` helpers (brain, contract, agent memory, readme, experience) — identity & per-project paths.
170
- - `dotmem.resolveUserIdentity()` / `setUserIdentity(id)` / `clearUserIdentity()` — HI identity.
171
- - `dotmem.continuity` — acquired continuity state.
169
+ `resolveUser*Path()` helpers (brain, contract, agent memory, readme, experience) - identity & per-project paths.
170
+ - `dotmem.resolveUserIdentity()` / `setUserIdentity(id)` / `clearUserIdentity()` - HI identity.
171
+ - `dotmem.continuity` - acquired continuity state.
172
172
  - History (mutations): `snapshot`, `diff`, `undo`, `redo`, `canUndo`, `canRedo`,
173
173
  `rollback`, `trace`, `enableHistory`, `clearHistory`, `clearRedo`.
174
174
  - `schema`, `registerSchema`, `validate`, `unregisterSchema`, `listSchemas`, `typed<T>()`.
@@ -222,9 +222,9 @@ registered, but write actions (`checkpoint`, `add-open-loop`, `resolve-open-loop
222
222
  return an authorization error when `DOTMEM_MCP_WRITE=1` is not set. Read actions
223
223
  (`status`, `summaries`, `open-loops`, `evaluate`) remain available.
224
224
 
225
- The MCP `initialize` handshake carries `instructions` — the scintilla signal built from
225
+ The MCP `initialize` handshake carries `instructions` - the scintilla signal built from
226
226
  `writeEnabled` (`DOTMEM_MCP_WRITE=1`) and `hasExperience` (whether the user store holds
227
- any acquired claims) — plus `serverInfo.version` as the package version. The signal never
227
+ any acquired claims) - plus `serverInfo.version` as the package version. The signal never
228
228
  interpolates project-derived strings (directory names, package.json, repo name).
229
229
 
230
230
  Registration (the same server, four hosts). Add the flag to the server
package/CHANGELOG.md CHANGED
@@ -5,72 +5,86 @@ All notable changes to Dotmem are documented in this file.
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.2.3] - 2026-11-17
9
+
10
+ ### Added
11
+ - **Short API** - Unified intent-based dispatcher (`short()` / `dotmem.short()`) exposing 42 intents over a shared pipeline; now also available as MCP tool `dotmem_short` and as a named export from the package.
12
+ - **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.
13
+
14
+ ### Changed
15
+ - **Em dash to hyphen** - Replaced em dash (`—`) with hyphen (`-`) across all project source, docs, and visual editor files.
16
+ - **Visual editor** - Converted remaining `.jsx` sources to `.js` using `React.createElement` (no JSX).
17
+
18
+ ### Fixed
19
+ - **MCP Short API visibility** - `dotmem_short` now registered in `createDotMemMcpServer` so host AIs can invoke the Short API over MCP (write-gated intents require `DOTMEM_MCP_WRITE=1`).
20
+ - **Named export** - `short` is now exported as a named export from the package entry point (previously only reachable via `dotmem.short`).
21
+
8
22
  ## [0.1.7] - 2026-11-10
9
23
 
10
24
  ### Fixed
11
- - **MCP Automatic Joy Profile Activation** — Fresh MCP sessions now automatically deliver the canonical Joy identity through the `initialize.instructions` handshake, composed with (not conflated into) the Scintilla signal. Profile identity values are read from the single canonical profile (`context/profiles/ai/ai.json`) with no hardcoded values.
12
- - **Session Issues — Phase 2** — Resolved race conditions in `doctor --fix` (optimistic concurrency control with version checking), cross-source duplicate ID handling in `acquire` (refuses ambiguous writes), `projectBootstrapContext` semantic prioritization (P1-P5 explicit priority + recency fallback), `expiresAt` freshness filtering in discovery and bootstrap context, and doctor dry-run content distinction (byte-identical vs divergent duplicates).
13
- - **Windows EPERM test failure** — Build context script now accepts `CONTEXT_DIR` env var; test uses isolated temp fixture.
25
+ - **MCP Automatic Joy Profile Activation** - Fresh MCP sessions now automatically deliver the canonical Joy identity through the `initialize.instructions` handshake, composed with (not conflated into) the Scintilla signal. Profile identity values are read from the single canonical profile (`context/profiles/ai/ai.json`) with no hardcoded values.
26
+ - **Session Issues - Phase 2** - Resolved race conditions in `doctor --fix` (optimistic concurrency control with version checking), cross-source duplicate ID handling in `acquire` (refuses ambiguous writes), `projectBootstrapContext` semantic prioritization (P1-P5 explicit priority + recency fallback), `expiresAt` freshness filtering in discovery and bootstrap context, and doctor dry-run content distinction (byte-identical vs divergent duplicates).
27
+ - **Windows EPERM test failure** - Build context script now accepts `CONTEXT_DIR` env var; test uses isolated temp fixture.
14
28
 
15
29
  ### Added
16
- - **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.
17
- - **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.
18
- - **MCP Automatic Joy Profile Activation** — ADR-023: `buildProfileGuidance()` reads canonical `JO_PROFILE`; `buildMcpInstructions()` composes profile identity block + Scintilla signal.
19
- - **Project identity `resolveProjectIdentity`** — Public API export for resolving stable project identity from DOTMEM_PROJECT_ID env, package.json name, or directory basename.
30
+ - **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.
31
+ - **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.
32
+ - **MCP Automatic Joy Profile Activation** - ADR-023: `buildProfileGuidance()` reads canonical `JO_PROFILE`; `buildMcpInstructions()` composes profile identity block + Scintilla signal.
33
+ - **Project identity `resolveProjectIdentity`** - Public API export for resolving stable project identity from DOTMEM_PROJECT_ID env, package.json name, or directory basename.
20
34
 
21
35
  ### Changed
22
- - **Documentation Consolidation and Identity Cleanup** (ADR-006, ADR-007, ADR-008) — Root `docs/` removed; all files moved to `.project/`; Memorio identity removed from Dotmem documents; research paper filenames and headings normalized to Dotmem identity; source code references updated.
23
- - **Historical Reference Cleanup** (ADR-007) — Single "Project origins" section in `.project/README.md`; repetitive historical notes removed from 30 research papers; project identity normalized.
24
- - **Documentation Ownership Correction** (ADR-008) — Complete inventory and classification of recovered files; Memorio foundational docs identified; Dotmem AI docs classified.
25
- - **Memory/MCP/Jo/Joy Ecosystem Migration** (ADR-009) — 819 files transferred from Memorio to Dotmem; README collisions resolved; Memorio `docs/research/` removed.
26
- - **Recovery and Restoration of `.project/archives/`** (ADR-004, ADR-005) — 875 archived files inventoried; ~500 test cases restored to vitest suite; 57 papers recovered; ~40 experiments recovered; ~110 documents recovered.
27
- - **Canonical Areas fix** — Added `project` key to `CANONICAL_AREAS` vocabulary, fixing silent exclusion of project-scoped knowledge claims.
36
+ - **Documentation Consolidation and Identity Cleanup** (ADR-006, ADR-007, ADR-008) - Root `docs/` removed; all files moved to `.project/`; Memorio identity removed from Dotmem documents; research paper filenames and headings normalized to Dotmem identity; source code references updated.
37
+ - **Historical Reference Cleanup** (ADR-007) - Single "Project origins" section in `.project/README.md`; repetitive historical notes removed from 30 research papers; project identity normalized.
38
+ - **Documentation Ownership Correction** (ADR-008) - Complete inventory and classification of recovered files; Memorio foundational docs identified; Dotmem AI docs classified.
39
+ - **Memory/MCP/Jo/Joy Ecosystem Migration** (ADR-009) - 819 files transferred from Memorio to Dotmem; README collisions resolved; Memorio `docs/research/` removed.
40
+ - **Recovery and Restoration of `.project/archives/`** (ADR-004, ADR-005) - 875 archived files inventoried; ~500 test cases restored to vitest suite; 57 papers recovered; ~40 experiments recovered; ~110 documents recovered.
41
+ - **Canonical Areas fix** - Added `project` key to `CANONICAL_AREAS` vocabulary, fixing silent exclusion of project-scoped knowledge claims.
28
42
 
29
43
  ### Deprecated
30
- - `memory.init()` — No-op; runtime initializes lazily on first use.
44
+ - `memory.init()` - No-op; runtime initializes lazily on first use.
31
45
 
32
46
  ## [0.1.6] - 2026-10-31
33
47
 
34
48
  ### Fixed
35
- - **Foundation Validation (Workstream A)** — Memorio-Dotmem integration validated. Six duplicated local foundation modules removed; callers migrated to Memorio 5.5.3. TypeScript: 0 errors. Oxlint: 0 errors, 0 warnings. Build: CJS and ESM successful. Vitest: 52 passed, 1 skipped, 1 todo.
49
+ - **Foundation Validation (Workstream A)** - Memorio-Dotmem integration validated. Six duplicated local foundation modules removed; callers migrated to Memorio 5.5.3. TypeScript: 0 errors. Oxlint: 0 errors, 0 warnings. Build: CJS and ESM successful. Vitest: 52 passed, 1 skipped, 1 todo.
36
50
 
37
51
  ### Added
38
- - **Progressive Conversational Memory Design** (Workstream B) — Architecture, behavior specification, test plan, issue investigation, and known limitations documented in `.project/progressive-memory/`.
39
- - **Profile Projection and Document Loading** — Investigation of 7 declared profile documents vs 3 loaded.
40
- - **Context Ceiling Analysis** — Identity channel 1904 bytes + ~300 bytes envelope = ~2204 bytes vs 2048 byte host ceiling.
41
- - **Applicability Gate** — `CANONICAL_AREAS` missing `project` key identified and fixed.
52
+ - **Progressive Conversational Memory Design** (Workstream B) - Architecture, behavior specification, test plan, issue investigation, and known limitations documented in `.project/progressive-memory/`.
53
+ - **Profile Projection and Document Loading** - Investigation of 7 declared profile documents vs 3 loaded.
54
+ - **Context Ceiling Analysis** - Identity channel 1904 bytes + ~300 bytes envelope = ~2204 bytes vs 2048 byte host ceiling.
55
+ - **Applicability Gate** - `CANONICAL_AREAS` missing `project` key identified and fixed.
42
56
 
43
57
  ## [0.1.5] - 2026-10-31
44
58
 
45
59
  ### Added
46
- - **Historical Recovery and Physical Restoration** — `.project/archives/` recovery inventory (875 files), test recovery (~831 historical cases, ~500 restored), paper recovery (57 documents), experiment recovery (~40), documentation recovery (~110), ownership mapping, ADR-004 and ADR-005 recorded.
60
+ - **Historical Recovery and Physical Restoration** - `.project/archives/` recovery inventory (875 files), test recovery (~831 historical cases, ~500 restored), paper recovery (57 documents), experiment recovery (~40), documentation recovery (~110), ownership mapping, ADR-004 and ADR-005 recorded.
47
61
 
48
62
  ## [0.1.4] - 2026-10-31
49
63
 
50
64
  ### Changed
51
- - **Documentation Cleanup and Ownership Correction** — ~160+ active documents inspected; 5 duplicate groups identified; 4 resolved; 7 documents rewritten with identity updates; 4 link groups fixed; 10+ legitimate Memorio reference categories preserved; validation: 25/25 checks passed.
65
+ - **Documentation Cleanup and Ownership Correction** - ~160+ active documents inspected; 5 duplicate groups identified; 4 resolved; 7 documents rewritten with identity updates; 4 link groups fixed; 10+ legitimate Memorio reference categories preserved; validation: 25/25 checks passed.
52
66
 
53
67
  ## [0.1.3] - 2026-10-31
54
68
 
55
69
  ### Changed
56
- - **Dotmem Historical Integration & Ownership Correction** — Architectural ownership correction: Dotmem owns memory acquisition, governance, identity, continuity, AI trust boundaries, Jo/Joy, progressive summaries; Memorio retains state, store, session, IDB/SQLite, generic cache, dispatch/observer. 8 files renamed to canonical names; 26+ document titles updated from "Memorio —" to "Dotmem —"; 7 duplicates removed; 3 SECURITY.md variants renamed; 3 index files updated.
70
+ - **Dotmem Historical Integration & Ownership Correction** - Architectural ownership correction: Dotmem owns memory acquisition, governance, identity, continuity, AI trust boundaries, Jo/Joy, progressive summaries; Memorio retains state, store, session, IDB/SQLite, generic cache, dispatch/observer. 8 files renamed to canonical names; 26+ document titles updated from "Memorio -" to "Dotmem -"; 7 duplicates removed; 3 SECURITY.md variants renamed; 3 index files updated.
57
71
 
58
72
  ## [0.1.2] - 2026-10-31
59
73
 
60
74
  ### Added
61
- - **Dotmem Documentation Consolidation and Identity Cleanup** — Root `docs/` removed, files copied to `.project/`; Memorio identity removed from Dotmem documents; research paper filenames and H1 headings updated; source code references updated; `.project/README.md` rewritten; ADR-006, ADR-007, ADR-008 recorded.
75
+ - **Dotmem Documentation Consolidation and Identity Cleanup** - Root `docs/` removed, files copied to `.project/`; Memorio identity removed from Dotmem documents; research paper filenames and H1 headings updated; source code references updated; `.project/README.md` rewritten; ADR-006, ADR-007, ADR-008 recorded.
62
76
 
63
77
  ## [0.1.1] - 2026-10-31
64
78
 
65
79
  ### Added
66
- - **Dotmem Historical Reference Cleanup and Project Identity** — Single "Project origins" section; repetitive historical notes removed from 30 research papers; project identity normalized; technical dependency references preserved; historical documents preserved as-is; ADR-007, ADR-008 recorded.
80
+ - **Dotmem Historical Reference Cleanup and Project Identity** - Single "Project origins" section; repetitive historical notes removed from 30 research papers; project identity normalized; technical dependency references preserved; historical documents preserved as-is; ADR-007, ADR-008 recorded.
67
81
 
68
82
  ## [0.1.0] - 2026-10-31
69
83
 
70
84
  ### Added
71
- - **Initial Dotmem Release** — AI memory and continuity infrastructure for agents and applications. Memorio 5.5.3 as foundation. Core capabilities: acquired experience, application memory, continuity, policy, agent namespaces, notes and profiles, MCP and CLI.
72
- - **Joy Identity** — Native, mandatory AI collaborator identity with canonical profile system.
73
- - **MCP Server** — Stdio server `dotmem-mcp` with read-only default, write opt-in via `DOTMEM_MCP_WRITE=1`.
74
- - **Deterministic Retrieval** — Lexical and structured matching without embeddings.
75
- - **Agent Memory** — Logical namespace partitioning via `dotmem/agent`.
76
- - **Governance & Security** — RBAC, audit, consent, AES-GCM, PBKDF2 helpers.
85
+ - **Initial Dotmem Release** - AI memory and continuity infrastructure for agents and applications. Memorio 5.5.3 as foundation. Core capabilities: acquired experience, application memory, continuity, policy, agent namespaces, notes and profiles, MCP and CLI.
86
+ - **Joy Identity** - Native, mandatory AI collaborator identity with canonical profile system.
87
+ - **MCP Server** - Stdio server `dotmem-mcp` with read-only default, write opt-in via `DOTMEM_MCP_WRITE=1`.
88
+ - **Deterministic Retrieval** - Lexical and structured matching without embeddings.
89
+ - **Agent Memory** - Logical namespace partitioning via `dotmem/agent`.
90
+ - **Governance & Security** - RBAC, audit, consent, AES-GCM, PBKDF2 helpers.
package/DOTMEM.md CHANGED
@@ -186,9 +186,9 @@ metadata, evidence references, and optional epistemic/provenance metadata.
186
186
  Claims are immutable after acquisition. A correction is a new claim linked to the earlier
187
187
  claim through one explicit revision relation:
188
188
 
189
- - `refines` — narrows, clarifies, or extends a prior claim;
190
- - `supersedes` — replaces a prior claim;
191
- - `retracts` — withdraws a prior claim from the active set while retaining history.
189
+ - `refines` - narrows, clarifies, or extends a prior claim;
190
+ - `supersedes` - replaces a prior claim;
191
+ - `retracts` - withdraws a prior claim from the active set while retaining history.
192
192
 
193
193
  Do not silently overwrite historical claims.
194
194
 
package/MEMORY.md CHANGED
@@ -46,17 +46,17 @@ for the session.
46
46
 
47
47
  ### What are Joy and Jo?
48
48
 
49
- **Joy** is the canonical AI identity/profile for dotmem — the operational role name that comes from
49
+ **Joy** is the canonical AI identity/profile for dotmem - the operational role name that comes from
50
50
  the profile, not from the runtime. **Jo** is an alternative shorthand for the same identity. They
51
51
  represent the assistant's persistent identity in the dotmem system (canonical profile, decision-making
52
52
  behavior, trust model, and relationship style).
53
53
 
54
54
  The canonical profile (`context/profiles/ai/`) defines:
55
- - **Identity & behavior** (`behavior.md`, `soul.md`) — character, relationship style, conversational behavior
56
- - **Trust model** (`trust.md`) — epistemic standards, verification requirements
57
- - **Decision framework** (`decision.md`) — how Jo evaluates and makes technical decisions
58
- - **Curiosity & learning** (`curiosity.md`) — what Jo seeks to understand and remember
59
- - **Language conventions** (`language.md`) — communication style
55
+ - **Identity & behavior** (`behavior.md`, `soul.md`) - character, relationship style, conversational behavior
56
+ - **Trust model** (`trust.md`) - epistemic standards, verification requirements
57
+ - **Decision framework** (`decision.md`) - how Jo evaluates and makes technical decisions
58
+ - **Curiosity & learning** (`curiosity.md`) - what Jo seeks to understand and remember
59
+ - **Language conventions** (`language.md`) - communication style
60
60
 
61
61
  When activated via `Joy` or `Jo`, dotmem loads this canonical profile as part of the deterministic
62
62
  discovery order. The profile is optional for basic memory operations but required for
@@ -93,19 +93,19 @@ No component reconstructs paths on its own.
93
93
 
94
94
  Resolution precedence:
95
95
 
96
- 1. **Runtime override** — the `DOTMEM_STORAGE_ROOT` environment variable, for testing,
96
+ 1. **Runtime override** - the `DOTMEM_STORAGE_ROOT` environment variable, for testing,
97
97
  CI, containers, and temporary development environments. An override is never
98
98
  persisted by itself.
99
- 2. **User locator** — `dotmem.location.json` (location metadata only) inside the stable
99
+ 2. **User locator** - `dotmem.location.json` (location metadata only) inside the stable
100
100
  user anchor.
101
- 3. **Default user-scoped storage** — the user anchor itself: `<user-home>/.dotmem`
101
+ 3. **Default user-scoped storage** - the user anchor itself: `<user-home>/.dotmem`
102
102
  (the platform-neutral canonical form; see the OS examples below), resolved from the
103
103
  current runtime.
104
104
 
105
105
  The user anchor is resolved from the operating-system user at runtime. dotmem never
106
106
  scans drive roots, the filesystem root, or unrelated directories to find storage. A
107
107
  configured storage root that is missing, inaccessible, or invalid stops resolution with
108
- an explicit error — no silent fallback, no autonomous search, no guessed path. A path is
108
+ an explicit error - no silent fallback, no autonomous search, no guessed path. A path is
109
109
  reported only after it has been resolved or observed in the current runtime; otherwise
110
110
  report the semantic location (user memory, project memory, temporary staging, canonical
111
111
  storage, user anchor).
@@ -218,22 +218,22 @@ source and behavior before relying on remembered data.
218
218
  Policy is a separate authority domain from memory. Memory can never promote itself to
219
219
  policy, and a governed claim never selects its own enforcement tier.
220
220
 
221
- - `memory.policy.assign(input, namespace?, basedOnRevision?)` — privileged assignment of an
221
+ - `memory.policy.assign(input, namespace?, basedOnRevision?)` - privileged assignment of an
222
222
  enforcement tier (`context` | `precondition` | `hard-precondition`) for one canonical event.
223
223
  Requires `authority: { kind: 'HI' | 'operator', source }`. The assignment carries a
224
224
  system-derived record `revision` and canonical semantic `fingerprint`; `basedOnRevision` is an
225
225
  optimistic concurrency check evaluated inside the policy lock.
226
226
  - `memory.policy.list()` / `memory.policy.remove(id, namespace?, basedOnRevision?)` /
227
- `memory.policy.clear(authority)` — privileged reads and removal. Deletion is a modification, so
227
+ `memory.policy.clear(authority)` - privileged reads and removal. Deletion is a modification, so
228
228
  it requires the same authority as assignment. `clear` resets the active policy and override
229
229
  state, preserves the durable audit trail, and appends a terminal `clear` entry.
230
- - `memory.policy.evaluate(event, payload?)` — decision-time pull: only the policies applicable to
230
+ - `memory.policy.evaluate(event, payload?)` - decision-time pull: only the policies applicable to
231
231
  the event, with tier, action, and authority provenance. `precondition` blocks and asks the user;
232
232
  `hard-precondition` blocks with no conversational override. Resolution is effective state:
233
233
  store-resolved overrides are applied and their provenance is attached to the decision.
234
- - `memory.policy.override` — the privileged out-of-band override surface:
234
+ - `memory.policy.override` - the privileged out-of-band override surface:
235
235
  `grant`, `revoke`, `list`, `effective`. See below.
236
- - `memory.policy.contract()` — the machine-readable operator contract
236
+ - `memory.policy.contract()` - the machine-readable operator contract
237
237
  (`MEMORY_PROJECTION_CONTRACT`): memory is `data-only`, untrusted, not instructions.
238
238
  - `memory.clear()` is memory-scoped and never deletes policy documents.
239
239
 
@@ -242,19 +242,19 @@ policy, and a governed claim never selects its own enforcement tier.
242
242
  An override is **not a bypass**. It is an authorized, explicit, auditable change of effective
243
243
  policy state: the base policy is never modified, exactly one override is active per target, and
244
244
  the override is bound to the target's generation (`revision` + canonical `fingerprint`), both
245
- derived from the store — never accepted from a payload.
245
+ derived from the store - never accepted from a payload.
246
246
 
247
- - `memory.policy.override.grant(input, namespace?, basedOnRevision?)` — relax the effective tier
247
+ - `memory.policy.override.grant(input, namespace?, basedOnRevision?)` - relax the effective tier
248
248
  of one policy. Requires the target policy id, `relaxTo` (a valid tier, `context` is the floor),
249
249
  a bounded `expiresAt` (window cap `MAX_OVERRIDE_WINDOW_MS`, 7 days), an explicit `reason`, and
250
250
  authority. Hierarchy: an operator cannot relax an HI-owned policy. A new grant atomically
251
251
  supersedes the previous active override.
252
- - `memory.policy.override.revoke(input, namespace?, basedOnRevision?)` — remove a relaxation and
252
+ - `memory.policy.override.revoke(input, namespace?, basedOnRevision?)` - remove a relaxation and
253
253
  restore the base policy. HI revokes any override; an operator revokes only operator-granted
254
254
  overrides.
255
- - `memory.policy.override.list(namespace?)` — every override with its resolved state
255
+ - `memory.policy.override.list(namespace?)` - every override with its resolved state
256
256
  (`ACTIVE` | `EXPIRED` | `STALE` | `INERT`).
257
- - `memory.policy.override.effective(event?, namespace?)` — effective state per policy: base tier,
257
+ - `memory.policy.override.effective(event?, namespace?)` - effective state per policy: base tier,
258
258
  effective tier, override state, and the provenance scar (override id, `relaxedFrom`, `by`,
259
259
  `until`, `reason`).
260
260
 
@@ -286,7 +286,7 @@ Policy conditions are evaluated against the action payload, not merely discovere
286
286
  | --- | --- | --- |
287
287
  | `satisfied` | the payload deterministically meets the condition | allow |
288
288
  | `violated` | the payload deterministically fails the condition | block and ask the user |
289
- | `unresolved` | the condition cannot be established (no payload) | block and ask the user — never assumed satisfied |
289
+ | `unresolved` | the condition cannot be established (no payload) | block and ask the user - never assumed satisfied |
290
290
 
291
291
  `memory.acquire()` itself evaluates the policies applicable to the `memory.acquire` event against
292
292
  the payload about to be written and blocks with `PolicyPreconditionViolationError` when a
@@ -360,7 +360,7 @@ different persistence characteristics per runtime:
360
360
  > directory fsync), cross-process directory locks, and an in-process write queue. It is
361
361
  > available in Node.js, Bun, and Deno whenever the runtime can resolve a filesystem
362
362
  > backend. If no filesystem backend is available, an explicit
363
- > `DurableStorageUnavailableError` is thrown — `durable` never silently falls back to
363
+ > `DurableStorageUnavailableError` is thrown - `durable` never silently falls back to
364
364
  > volatile `Map`, `state`, `store`, or `session`.
365
365
  >
366
366
  > IndexedDB (`idb`) is used for `durable` only in browser environments where it is
@@ -400,11 +400,11 @@ dotmem ships with a small set of built-in seed claims that describe the
400
400
  acquisition logic itself. They are part of the product (`core/knowledge/logic-seed.ts`)
401
401
  and are loaded into the logic knowledge store on every installation:
402
402
 
403
- - `acquisition.experience-not-activity` — when to acquire (checkpoint principle)
404
- - `acquisition.value-sources` — where useful memory comes from
405
- - `acquisition.boundaries` — what to filter out, epistemic statuses
406
- - `acquisition.project-specific` — project-specific experience candidates
407
- - `relationship.continuity-pattern` — generalized AI-HI relationship pattern
403
+ - `acquisition.experience-not-activity` - when to acquire (checkpoint principle)
404
+ - `acquisition.value-sources` - where useful memory comes from
405
+ - `acquisition.boundaries` - what to filter out, epistemic statuses
406
+ - `acquisition.project-specific` - project-specific experience candidates
407
+ - `relationship.continuity-pattern` - generalized AI-HI relationship pattern
408
408
 
409
409
  They are marked as `source: built-in seed (dotmem acquisition logic seed)` in
410
410
  `npx dotmem context --explain` output. They carry `epistemicType: inferred` and
@@ -425,15 +425,15 @@ non-React runtime APIs on `globalThis`; it does not initialize acquired memory.
425
425
  `useObserver` is a React hook, exported only by `dotmem/react`. Call it at the top
426
426
  level of a component or custom hook. It returns `void`; React handles cleanup.
427
427
 
428
- ## Continuity — the derived operational present
428
+ ## Continuity - the derived operational present
429
429
 
430
430
  Memory is durable knowledge; continuity reconstructs the useful present. The
431
431
  snapshot hierarchy composes downward: USER → PROJECT → TASK/SESSION → MODEL
432
432
  CONTEXT. Snapshots are derived caches with sourceRefs, version, and freshness,
433
433
  never authority: when a source version, digest, or presence changes, the
434
434
  snapshot is stale and is regenerated, never mutated to look current. Budgeting
435
- is field-prioritized — invariants and current decisions outrank recent changes
436
- at any scope — so a crowded task scope cannot starve a project invariant.
435
+ is field-prioritized - invariants and current decisions outrank recent changes
436
+ at any scope - so a crowded task scope cannot starve a project invariant.
437
437
  Scope isolation forbids silent cross-scope transfer.
438
438
 
439
439
  The `EffectiveAgentContract` is composed before continuity context, so
@@ -441,17 +441,17 @@ continuity never rewrites the contract.
441
441
 
442
442
  API: `continuity.snapshot`, `continuity.load`, `continuity.context`,
443
443
  `continuity.forget`. CLI: `npx dotmem continuity [context|snapshot|forget] [-debug]`.
444
- Debug is observability only — the decision result is identical with and without
444
+ Debug is observability only - the decision result is identical with and without
445
445
  it, and the trace is never persisted by default.
446
446
 
447
447
  ## Identity, authority, and the carrier handshake
448
448
 
449
449
  dotmem operates under a clear identity/authority separation:
450
450
 
451
- - **AGENT_IDENTITY** — who the assistant is. Canonical: the profile (`joy`). Explicit
451
+ - **AGENT_IDENTITY** - who the assistant is. Canonical: the profile (`joy`). Explicit
452
452
  assignment by the authorized user may override this through the privileged
453
453
  governance path; ordinary memory and context cannot.
454
- - **USER_IDENTITY** — who the current human interlocutor is. This enters the
454
+ - **USER_IDENTITY** - who the current human interlocutor is. This enters the
455
455
  projection only through an explicit current assignment by the authorized user,
456
456
  never from an acquired memory claim or retrieved text.
457
457
 
@@ -462,7 +462,7 @@ the current identity; that was an implementation bug.
462
462
 
463
463
  Before any identity is projected to a runtime/session, dotmem evaluates the
464
464
  carrier's compatibility with the minimal identity/authority separation contract.
465
- The handshake is a deterministic, external evaluation — the carrier never
465
+ The handshake is a deterministic, external evaluation - the carrier never
466
466
  certifies itself.
467
467
 
468
468
  ```text
@@ -476,14 +476,14 @@ npx dotmem
476
476
 
477
477
  States:
478
478
 
479
- - **COMPATIBLE** — the carrier preserves identity composition, role, host-authority
479
+ - **COMPATIBLE** - the carrier preserves identity composition, role, host-authority
480
480
  separation, and memory-as-data. Activation may proceed with a trusted current binding.
481
- - **LIMITED** — the carrier passed but did not demonstrate every capability. Activation
481
+ - **LIMITED** - the carrier passed but did not demonstrate every capability. Activation
482
482
  is withheld until the missing capabilities are demonstrated. An explicit canonical
483
483
  profile request (`load Joy`) may receive a bounded,
484
484
  non-authoritative profile envelope; it does not activate the profile, bind a user,
485
485
  or upgrade the carrier.
486
- - **INCOMPATIBLE** — the carrier violated a forbidden transition (e.g. mapping the host
486
+ - **INCOMPATIBLE** - the carrier violated a forbidden transition (e.g. mapping the host
487
487
  onto HI authority). Identity activation is refused.
488
488
 
489
489
  The handshake result is **session state, never durable authority** (`durableAuthority: false`).