dotmem 0.2.2 → 0.2.4
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 +22 -22
- package/CHANGELOG.md +44 -30
- package/DOTMEM.md +3 -3
- package/MEMORY.md +37 -37
- package/OVERVIEW.md +376 -0
- package/PACKAGE.md +6 -6
- package/README.md +457 -456
- package/SECURITY.md +10 -10
- package/agent.cjs +119 -28
- package/agent.js +119 -28
- package/built-in-context.json +12 -12
- package/cli.cjs +222 -131
- package/cli.js +223 -132
- package/context/profiles/joy/ai.md +3 -3
- package/context/profiles/joy/decision.md +1 -1
- package/context/templates/AI.md +1 -1
- package/context/templates/DOTMEM.md +3 -3
- package/global.cjs +119 -28
- package/global.js +119 -28
- package/index.cjs +143 -53
- package/index.js +143 -53
- package/mcp.cjs +172 -79
- package/mcp.js +172 -79
- package/package.json +4 -4
- package/types/exports.d.ts +1 -0
- package/types/global-types.d.ts +2 -1
- package/types/memory.d.ts +8 -1
- package/global.d.ts +0 -12
- package/index.d.ts +0 -17
package/SECURITY.md
CHANGED
|
@@ -285,7 +285,7 @@ base policy. It is a hardened path by construction:
|
|
|
285
285
|
|
|
286
286
|
Residual risk, honestly stated: the audit trail and policy documents live in
|
|
287
287
|
the same storage tree as everything else, so filesystem-level tamper isolation
|
|
288
|
-
and policy signing remain open work
|
|
288
|
+
and policy signing remain open work - the mechanism makes unauthorized
|
|
289
289
|
relaxation *attributable*, not undetectable-by-absence.
|
|
290
290
|
|
|
291
291
|
---
|
|
@@ -307,7 +307,7 @@ emitted into `dist/` so it is included in every published tarball.
|
|
|
307
307
|
- **Regenerate locally:** `npm run sbom` (produces `dist/bom.json`). Requires Node ≥ 20.18.
|
|
308
308
|
- **CI:** SBOM generation is wired into `.gitea/workflows/npm.yml` as a release step (tag push),
|
|
309
309
|
running after `npm run build` and tests, before `npm publish ./dist`.
|
|
310
|
-
- **Format:** CycloneDX JSON 1.6
|
|
310
|
+
- **Format:** CycloneDX JSON 1.6 - components carry PURL, SPDX license, digests, and version.
|
|
311
311
|
produces a separate `.vsix` and has its own dependency tree; that SBOM is generated by a parallel
|
|
312
312
|
`cyclonedx-npm` invocation in the extension's packaging step.
|
|
313
313
|
|
|
@@ -317,7 +317,7 @@ emitted into `dist/` so it is included in every published tarball.
|
|
|
317
317
|
|
|
318
318
|
---
|
|
319
319
|
|
|
320
|
-
## Semantic and epistemic security
|
|
320
|
+
## Semantic and epistemic security - OPEN research
|
|
321
321
|
|
|
322
322
|
Package integrity and Ed25519 authenticity do not establish truth, authority, permission, or current
|
|
323
323
|
applicability. For persistent acquired experience, keep these distinctions explicit:
|
|
@@ -365,10 +365,10 @@ the changed project later appears to confirm the inference; and the interpretati
|
|
|
365
365
|
with undeserved authority. Information must not gain epistemic authority merely by causing
|
|
366
366
|
consequences later reused as its evidence. Mitigations remain OPEN research.
|
|
367
367
|
|
|
368
|
-
### TODO / OPEN
|
|
368
|
+
### TODO / OPEN - Personal memory security and strong authorization
|
|
369
369
|
|
|
370
370
|
Personal and user-related acquired memory may preserve relationships, decisions, habits, communication
|
|
371
|
-
experience, project history, and accumulated context
|
|
371
|
+
experience, project history, and accumulated context-not merely private facts. Future security work must
|
|
372
372
|
threat-model unauthorized reading or exfiltration, unauthorized modification, false-memory injection,
|
|
373
373
|
selective deletion, replay of old but formerly valid memory, impersonation of the user,
|
|
374
374
|
unauthorized export or sharing, and compromised device or AI access.
|
|
@@ -384,7 +384,7 @@ AUTHORIZATION -> what may they do?
|
|
|
384
384
|
FRESHNESS -> is this the intended/current version?
|
|
385
385
|
```
|
|
386
386
|
|
|
387
|
-
Strong authentication and authorization
|
|
387
|
+
Strong authentication and authorization-including passkeys, 2FA, or equivalent controls-should be
|
|
388
388
|
evaluated for high-impact operations such as exporting personal memory; authorizing a new device or AI;
|
|
389
389
|
changing encryption or signing keys; accepting external memory; modifying protected memory; and changing
|
|
390
390
|
ownership or access permissions. This does not imply that every memory operation requires 2FA:
|
|
@@ -393,7 +393,7 @@ authorization should be proportional to consequence.
|
|
|
393
393
|
Unauthorized disclosure is a privacy breach. Unauthorized modification of acquired experience can also
|
|
394
394
|
become an epistemic breach. This is an **AI + user planning TODO**, not an implemented security guarantee.
|
|
395
395
|
|
|
396
|
-
### TODO / OPEN
|
|
396
|
+
### TODO / OPEN - Memory Location & Ownership security
|
|
397
397
|
|
|
398
398
|
Memory location and ownership are not yet a production architecture decision. The next investigation
|
|
399
399
|
must distinguish user-owned/private/cross-project experience from project-owned/portable/intentionally
|
|
@@ -425,14 +425,14 @@ USER_IDENTITY who the human is (explicit current assignment; never memory-derive
|
|
|
425
425
|
path may change it.
|
|
426
426
|
- `USER_IDENTITY` enters the projection only through an explicit current
|
|
427
427
|
assignment by the authorized user. An acquired memory claim about a user name
|
|
428
|
-
**cannot** assert itself as the current identity
|
|
428
|
+
**cannot** assert itself as the current identity - this was an implementation
|
|
429
429
|
bug, fixed.
|
|
430
430
|
|
|
431
431
|
### Carrier handshake (fail-closed activation gate)
|
|
432
432
|
|
|
433
433
|
Before any identity is projected to a runtime, dotmem evaluates the carrier's
|
|
434
434
|
compatibility with the minimal identity/authority separation contract. The
|
|
435
|
-
evaluation is **deterministic and external**
|
|
435
|
+
evaluation is **deterministic and external** - the carrier never certifies itself.
|
|
436
436
|
|
|
437
437
|
States:
|
|
438
438
|
|
|
@@ -464,7 +464,7 @@ npx dotmem handshake --bind-hi "<user name>" --scope "<scope>"
|
|
|
464
464
|
- `boundHIIdentity` is set only by this trusted current binding. It is never
|
|
465
465
|
inferred from memory, history, files, or conversation.
|
|
466
466
|
- `knownHIIdentity` (the remembered user identity from trusted governance state)
|
|
467
|
-
is informational only
|
|
467
|
+
is informational only - it never authenticates the current speaker.
|
|
468
468
|
- `--unbind` clears the binding; the remembered identity remains.
|
|
469
469
|
- `--reset` invalidates the session state (recovery step); `--status` reports
|
|
470
470
|
current session state without evaluating anything.
|