agent-working-memory 0.10.0 → 0.12.0

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.
Files changed (136) hide show
  1. package/README.md +118 -19
  2. package/dist/adapters/claude-code.d.ts.map +1 -1
  3. package/dist/adapters/claude-code.js +63 -3
  4. package/dist/adapters/claude-code.js.map +1 -1
  5. package/dist/adapters/common.d.ts.map +1 -1
  6. package/dist/adapters/common.js +329 -302
  7. package/dist/adapters/common.js.map +1 -1
  8. package/dist/api/routes.d.ts.map +1 -1
  9. package/dist/api/routes.js +31 -8
  10. package/dist/api/routes.js.map +1 -1
  11. package/dist/cli/migrate.js +29 -29
  12. package/dist/cli.js +82 -2
  13. package/dist/cli.js.map +1 -1
  14. package/dist/coordination/circuit-breaker.js +23 -23
  15. package/dist/coordination/routes.d.ts.map +1 -1
  16. package/dist/coordination/routes.js +174 -170
  17. package/dist/coordination/routes.js.map +1 -1
  18. package/dist/core/embeddings.d.ts.map +1 -1
  19. package/dist/core/embeddings.js +3 -0
  20. package/dist/core/embeddings.js.map +1 -1
  21. package/dist/core/entity-extract.d.ts +3 -0
  22. package/dist/core/entity-extract.d.ts.map +1 -0
  23. package/dist/core/entity-extract.js +47 -0
  24. package/dist/core/entity-extract.js.map +1 -0
  25. package/dist/core/salience.d.ts.map +1 -1
  26. package/dist/core/salience.js +14 -2
  27. package/dist/core/salience.js.map +1 -1
  28. package/dist/core/whoami.d.ts +24 -0
  29. package/dist/core/whoami.d.ts.map +1 -0
  30. package/dist/core/whoami.js +66 -0
  31. package/dist/core/whoami.js.map +1 -0
  32. package/dist/core/write-pipeline.d.ts +9 -0
  33. package/dist/core/write-pipeline.d.ts.map +1 -1
  34. package/dist/core/write-pipeline.js +109 -68
  35. package/dist/core/write-pipeline.js.map +1 -1
  36. package/dist/core/write-telemetry.d.ts +33 -0
  37. package/dist/core/write-telemetry.d.ts.map +1 -0
  38. package/dist/core/write-telemetry.js +110 -0
  39. package/dist/core/write-telemetry.js.map +1 -0
  40. package/dist/engine/activation.d.ts +22 -12
  41. package/dist/engine/activation.d.ts.map +1 -1
  42. package/dist/engine/activation.js +133 -17
  43. package/dist/engine/activation.js.map +1 -1
  44. package/dist/engine/consolidation-scheduler.d.ts +1 -1
  45. package/dist/engine/consolidation-scheduler.js +1 -1
  46. package/dist/engine/consolidation.d.ts +1 -0
  47. package/dist/engine/consolidation.d.ts.map +1 -1
  48. package/dist/engine/consolidation.js +18 -0
  49. package/dist/engine/consolidation.js.map +1 -1
  50. package/dist/engine/eval.d.ts.map +1 -1
  51. package/dist/engine/eval.js +5 -1
  52. package/dist/engine/eval.js.map +1 -1
  53. package/dist/index.js +21 -2
  54. package/dist/index.js.map +1 -1
  55. package/dist/mcp.d.ts +2 -1
  56. package/dist/mcp.d.ts.map +1 -1
  57. package/dist/mcp.js +212 -97
  58. package/dist/mcp.js.map +1 -1
  59. package/dist/onboard/index.d.ts +68 -0
  60. package/dist/onboard/index.d.ts.map +1 -0
  61. package/dist/onboard/index.js +265 -0
  62. package/dist/onboard/index.js.map +1 -0
  63. package/dist/recipes/index.d.ts +57 -0
  64. package/dist/recipes/index.d.ts.map +1 -0
  65. package/dist/recipes/index.js +81 -0
  66. package/dist/recipes/index.js.map +1 -0
  67. package/dist/storage/pglite-schema.d.ts.map +1 -1
  68. package/dist/storage/pglite-schema.js +170 -143
  69. package/dist/storage/pglite-schema.js.map +1 -1
  70. package/dist/storage/pglite.d.ts +5 -0
  71. package/dist/storage/pglite.d.ts.map +1 -1
  72. package/dist/storage/pglite.js +180 -138
  73. package/dist/storage/pglite.js.map +1 -1
  74. package/dist/storage/postgres.d.ts +5 -0
  75. package/dist/storage/postgres.d.ts.map +1 -1
  76. package/dist/storage/postgres.js +44 -2
  77. package/dist/storage/postgres.js.map +1 -1
  78. package/dist/storage/sqlite.d.ts +9 -0
  79. package/dist/storage/sqlite.d.ts.map +1 -1
  80. package/dist/storage/sqlite.js +394 -326
  81. package/dist/storage/sqlite.js.map +1 -1
  82. package/dist/types/engram.d.ts +14 -0
  83. package/dist/types/engram.d.ts.map +1 -1
  84. package/dist/types/engram.js.map +1 -1
  85. package/dist/version.d.ts +2 -0
  86. package/dist/version.d.ts.map +1 -0
  87. package/dist/version.js +27 -0
  88. package/dist/version.js.map +1 -0
  89. package/package.json +9 -1
  90. package/src/adapters/claude-code.ts +66 -3
  91. package/src/adapters/common.ts +538 -511
  92. package/src/api/index.ts +3 -3
  93. package/src/api/routes.ts +999 -970
  94. package/src/cli/migrate.ts +307 -307
  95. package/src/cli.ts +77 -2
  96. package/src/coordination/circuit-breaker.ts +83 -83
  97. package/src/coordination/failure-modes.ts +50 -50
  98. package/src/coordination/routes.ts +2155 -2150
  99. package/src/core/decay.ts +63 -63
  100. package/src/core/embeddings.ts +113 -110
  101. package/src/core/entity-extract.ts +47 -0
  102. package/src/core/index.ts +5 -5
  103. package/src/core/logger.ts +36 -36
  104. package/src/core/ml-worker-entry.ts +194 -194
  105. package/src/core/ml-worker.ts +281 -281
  106. package/src/core/query-expander.ts +122 -122
  107. package/src/core/reranker.ts +119 -119
  108. package/src/core/salience.ts +529 -514
  109. package/src/core/whoami.ts +92 -0
  110. package/src/core/write-pipeline.ts +60 -8
  111. package/src/core/write-telemetry.ts +131 -0
  112. package/src/engine/activation.ts +1468 -1369
  113. package/src/engine/confidence.ts +120 -120
  114. package/src/engine/consolidation-scheduler.ts +242 -242
  115. package/src/engine/consolidation.ts +887 -869
  116. package/src/engine/eval.ts +107 -102
  117. package/src/engine/eviction.ts +101 -101
  118. package/src/engine/index.ts +8 -8
  119. package/src/engine/retraction.ts +366 -366
  120. package/src/engine/staging.ts +74 -74
  121. package/src/index.ts +248 -226
  122. package/src/mcp.ts +1341 -1211
  123. package/src/onboard/index.ts +298 -0
  124. package/src/recipes/index.ts +125 -0
  125. package/src/storage/index.ts +3 -3
  126. package/src/storage/pglite-schema.ts +193 -166
  127. package/src/storage/pglite.ts +1420 -1372
  128. package/src/storage/postgres.ts +50 -2
  129. package/src/storage/sqlite.ts +1936 -1861
  130. package/src/storage/store.ts +80 -80
  131. package/src/types/agent.ts +67 -67
  132. package/src/types/checkpoint.ts +46 -46
  133. package/src/types/engram.ts +22 -0
  134. package/src/types/eval.ts +100 -100
  135. package/src/types/index.ts +6 -6
  136. package/src/version.ts +26 -0
package/README.md CHANGED
@@ -44,7 +44,11 @@ Restart Claude Code after upgrading. Your existing memory database is preserved
44
44
 
45
45
  First conversation will be ~30 seconds slower while ML models download (~200MB total, cached locally). After that, everything runs on your machine.
46
46
 
47
- > For isolated memory per folder, see [Separate Memory Pools](#separate-memory-pools). For team onboarding, see [docs/quickstart.md](docs/quickstart.md).
47
+ > For isolated memory per folder, see [Separate Memory Pools](#separate-memory-pools). For team onboarding, see [docs/quickstart.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/quickstart.md).
48
+
49
+ > **Starting on an existing project?** Warm-start the store from its own docs so recall is
50
+ > useful immediately: `awm onboard ./docs --repo . --project <name>` → review the pack →
51
+ > `awm import <pack> --db <path> --dedupe`. See [What's New in v0.11.0](#whats-new-in-v0110).
48
52
 
49
53
  ---
50
54
 
@@ -82,13 +86,13 @@ Most "memory for AI" projects are vector databases with a retrieval wrapper. AWM
82
86
  | **Noise rejection** | None | Multi-channel agreement gate: requires 2+ retrieval channels to agree before returning results |
83
87
  | **Duplicates** | Stored repeatedly | Reinforce-on-duplicate: near-exact matches boost existing memory instead of creating copies |
84
88
 
85
- The design is based on cognitive science — ACT-R activation decay, Hebbian learning, complementary learning systems, synaptic homeostasis, and synaptic tagging — rather than ad-hoc heuristics. See [How It Works](#how-it-works) and [docs/cognitive-model.md](docs/cognitive-model.md) for details.
89
+ The design is based on cognitive science — ACT-R activation decay, Hebbian learning, complementary learning systems, synaptic homeostasis, and synaptic tagging — rather than ad-hoc heuristics. See [How It Works](#how-it-works) and [docs/cognitive-model.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/cognitive-model.md) for details.
86
90
 
87
- > **New to AWM?** [`docs/pipeline-walkthrough.html`](docs/pipeline-walkthrough.html) is a visual, plain-language walkthrough (no background required) — what happens when AWM learns and recalls a fact, why it's built this way, and how it differs from a plain vector store. Open it in a browser.
91
+ > **New to AWM?** [`docs/pipeline-walkthrough.html`](https://completeideas.github.io/agent-working-memory/pipeline-walkthrough.html) is a visual, plain-language walkthrough (no background required) — what happens when AWM learns and recalls a fact, why it's built this way, and how it differs from a plain vector store. Open it in a browser.
88
92
 
89
- > **Build an agent on it:** the [AWM-Native Agent Harness pattern](docs/patterns/awm-native-harness.md) shows how to use AWM as an always-on cognitive *substrate* (not a tool the model calls) so the agent learns automatically by working — letting a cheap model perform at a high level and get cheaper + better over time. Measured: gpt-5.4-mini + AWM beat a frontier model on a domain workload at ~1/40th the cost.
93
+ > **Build an agent on it:** the [AWM-Native Agent Harness pattern](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/patterns/awm-native-harness.md) shows how to use AWM as an always-on cognitive *substrate* (not a tool the model calls) so the agent learns automatically by working — letting a cheap model perform at a high level and get cheaper + better over time. Measured: gpt-5.4-mini + AWM beat a frontier model on a domain workload at ~1/40th the cost.
90
94
 
91
- > **For builders & researchers:** [`docs/awm-for-agents.html`](docs/awm-for-agents.html) is the agent playbook — why AWM exists (the context-window wall), the PRIME→ACT→VERIFY→LEARN harness, the full agent feature surface (workspace, session IDs, bearer-token hooks, supersede/feedback), how multi-hop is solved in the harness, and the honest gauntlet findings (where AWM wins, ties, and what isn't measured yet). Open it in a browser.
95
+ > **For builders & researchers:** [`docs/awm-for-agents.html`](https://completeideas.github.io/agent-working-memory/awm-for-agents.html) is the agent playbook — why AWM exists (the context-window wall), the PRIME→ACT→VERIFY→LEARN harness, the full agent feature surface (workspace, session IDs, bearer-token hooks, supersede/feedback), how multi-hop is solved in the harness, and the honest gauntlet findings (where AWM wins, ties, and what isn't measured yet). Open it in a browser.
92
96
 
93
97
  ---
94
98
 
@@ -367,7 +371,7 @@ curl -X POST http://localhost:8400/memory/activate \
367
371
  For long-running structured projects — novels, codebases, investigations,
368
372
  design docs — where the agent needs to track typed state across hundreds
369
373
  of writes without polluting cognitive retrieval. Full reference at
370
- [`docs/reference.md`](docs/reference.md).
374
+ [`docs/reference.md`](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/reference.md).
371
375
 
372
376
  ```bash
373
377
  # "Latest emotional state per character" — one round trip
@@ -400,7 +404,7 @@ curl http://localhost:8400/memory/sequence/novel-x/next
400
404
  New `memory_class: "structural"` keeps high-volume system-written records
401
405
  (chapter analyses, promise advancements, commit logs) out of cognitive
402
406
  `/activate` while preserving them with canonical-level salience. See the
403
- [CHANGELOG entry for 0.8.0](CHANGELOG.md) for the full design.
407
+ [CHANGELOG entry for 0.8.0](https://github.com/CompleteIdeas/agent-working-memory/blob/master/CHANGELOG.md) for the full design.
404
408
 
405
409
  ---
406
410
 
@@ -460,7 +464,7 @@ src/
460
464
  index.ts - HTTP server entry point (auto-backup on startup)
461
465
  ```
462
466
 
463
- For detailed architecture including pipeline phases, database schema, and system diagrams, see [docs/architecture.md](docs/architecture.md).
467
+ For detailed architecture including pipeline phases, database schema, and system diagrams, see [docs/architecture.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/architecture.md).
464
468
 
465
469
  ---
466
470
 
@@ -520,8 +524,9 @@ npm run test:locomo # LoCoMo industry benchmark (28.2%)
520
524
  | `AWM_DISABLE_RERANK_SKIP` | *(unset)* | Set to `1` to disable the reranker skip on clear-winner queries (0.7.10+). Forces every recall through the cross-encoder |
521
525
  | `AWM_DISABLE_EXPANSION_CACHE` | *(unset)* | Set to `1` to disable the query expansion skip heuristic + LRU cache (0.7.11+). Forces every recall through the flan-t5-small expander |
522
526
  | `AWM_WORKSPACE` | *(unset)* | Default workspace for cross-agent recall in hive setups |
523
- | `AWM_STORE_BACKEND` | `sqlite` | `sqlite` (better-sqlite3 + FTS5) or `pglite` (PGlite + pgvector + pgroonga). 0.8.x. |
524
- | `AWM_DB_PATH` | `memory.db` (SQLite) / `./memory-pglite` (PGlite) | Storage path. Directory for PGlite, file for SQLite. |
527
+ | `AWM_STORE_BACKEND` | `sqlite` | `sqlite` (better-sqlite3 + FTS5), `pglite` (PGlite + pgvector + pgroonga), or `postgres` (node-postgres + pgvector, networked/multi-connection — **experimental**, 0.10.0). |
528
+ | `AWM_DB_PATH` | `memory.db` (SQLite) / `./memory-pglite` (PGlite) | Storage path. Directory for PGlite, file for SQLite. Ignored for `postgres` (uses `AWM_DATABASE_URL`). |
529
+ | `AWM_DATABASE_URL` | *(unset)* | Postgres connection string when `AWM_STORE_BACKEND=postgres` (0.10.0). |
525
530
  | `AWM_CONF_SHARPNESS_W` | `0.4` | Weight of `top1 / mean(top5)` in recall confidence (PR-1, v0.8.5) |
526
531
  | `AWM_CONF_CLIFF_W` | `0.3` | Weight of `(top1 - top10) / top1` in recall confidence (PR-1, v0.8.5) |
527
532
  | `AWM_CONF_FLOOR_W` | `0.3` | Weight of `top1` absolute score in recall confidence (PR-1, v0.8.5) |
@@ -550,6 +555,98 @@ npm run test:locomo # LoCoMo industry benchmark (28.2%)
550
555
 
551
556
  All three ML models run locally via ONNX. No external API calls for retrieval. The entire system is a single SQLite file + a Node.js process.
552
557
 
558
+ ## What's New (Unreleased — 2026-07-30 wave)
559
+
560
+ A design-proposal implementation pass (D1–D15 waves 1–3 + D11) grounded in a full-stack
561
+ eval and gauntlet-tested end to end. All additive; 599/599 tests. Highlights:
562
+
563
+ - **Write-path telemetry (D1):** always-on slow-write attribution (`AWM_SLOW_WRITE_MS`,
564
+ default 250 ms) — one stderr line names the phase (embed / novelty / persist), event-loop
565
+ lag, consolidation state, and `SQLITE_BUSY` when a write is slow.
566
+ - **Local-first security defaults (D2):** HTTP binds `127.0.0.1` by default; widening
567
+ beyond loopback without `AWM_API_KEY` fails closed (`AWM_BIND`, `AWM_ALLOW_INSECURE`,
568
+ `AWM_COORD_REQUIRE_TOKENS`).
569
+ - **Instance identity (D3):** `memory_whoami` / `GET /whoami` — agent id, workspace,
570
+ backend, store path, sibling agent spaces; `/health` reports consolidation state (D15).
571
+ - **Memory spine (D5/D8, log-only):** `origin_class` / `writer_session` / `recipe_id` /
572
+ `valid_from` / `valid_to` provenance on every write; superseded-but-ranking results are
573
+ flagged, never silently down-ranked. Not used in ranking until an eval proves it (D6).
574
+ - **Cognition recipes (D14):** AWM contains no LLM — versioned prompt+contract pairs
575
+ (`skill-derivation@1`, `friction-lesson@1`) the host agent runs as a separate focused
576
+ pass, with validated write-backs.
577
+ - **Entity inverted index (D9) + index-backed retrieval (D11):** `entity_mentions` +
578
+ `entity_aliases` on all three backends, populated at write time from structured sources;
579
+ behind `AWM_ENTITY_INDEX_FETCH=1`, query-named entities inject candidates with a
580
+ **guaranteed cross-encoder audition** (no score boost — the reranker decides), including
581
+ alias hops no lexical/vector channel can make.
582
+ - **Gauntlet baseline:** the end-to-end memory ablation now anchors acceptance —
583
+ **74%±5pp memory-dependent vs 0% no-memory control**, six of nine probes at 100%.
584
+ Methodology, per-probe mechanism table, and the six-config flag ablation:
585
+ [`docs/gauntlet-baseline-2026-07-30.md`](docs/gauntlet-baseline-2026-07-30.md).
586
+
587
+ ## What's New in v0.11.0
588
+
589
+ **`awm onboard` — warm-start a cold store from a project's own knowledge.** A fresh store
590
+ knows nothing, so recall returns nothing until interactions accumulate; onboarding seeds it up
591
+ front so an agent is useful from the first turn.
592
+
593
+ - **Scan:** `awm onboard <docs> --repo <path> --project <name>` extracts atomic, recall-shaped
594
+ memories from docs (one per heading) + the repo (stack, layout) → an `awm import`-compatible
595
+ pack + a human review file. Edit, then `awm import --dedupe`. Model-free, no API keys.
596
+ - **Agent-driven interview (no AWM→LLM calls):** two MCP tools — `onboard_scan` (candidate
597
+ memories to refine) and `onboard_questions` (anchored on "what is the goal of this memory
598
+ system?"). The host agent (Codex, Claude Code) refines, confirms with you, and writes them.
599
+ Works air-gapped.
600
+ - **The skill is a memory:** `awm setup` seeds a canonical "onboard a new project" skill the
601
+ agent can recall; a cold-store nudge in `memory_restore` reminds it to warm-start.
602
+
603
+ Also folds in the **0.10.1** version-reporting fix (below) and fixes the npm README links
604
+ (absolute GitHub / Pages URLs + the `repository` field).
605
+
606
+ ## What's New in v0.10.1
607
+
608
+ A patch — no functional or recall-behavior change.
609
+
610
+ - **Reported version is now the truth.** Hand-maintained version strings had drifted
611
+ (a 0.10.0 build announced `0.8.5`/`0.8.8`/`0.9.2` on the banner, `/health`, the MCP
612
+ server, and the export payload). A new `src/version.ts` reads `version` from
613
+ `package.json` at runtime, so the reported number can never diverge from the build.
614
+ - README now documents the v0.10.0 Postgres backend (below) + `AWM_STORE_BACKEND=postgres`
615
+ / `AWM_DATABASE_URL`.
616
+
617
+ ## What's New in v0.10.0
618
+
619
+ A networked **Postgres** backend + backend-agnostic memory portability, plus
620
+ correctness/stability fixes from a deep audit. No API changes — existing SQLite
621
+ callers keep working unmodified.
622
+
623
+ - **New `postgres` backend** (`AWM_STORE_BACKEND=postgres`, `AWM_DATABASE_URL=…`).
624
+ A real-server adapter over node-postgres (`pg`) + pgvector — the first backend
625
+ that is multi-**connection** safe (vs SQLite's single-machine WAL and PGlite's
626
+ single-process WASM), for cloud / multi-replica deployments. Sub-1.0 on purpose:
627
+ the backend is **experimental** until the remaining SQLite-only paths
628
+ (coordination, hot backups, integrity check) are ported and cross-backend
629
+ recall-quality parity is confirmed.
630
+ - **Backend-agnostic `awm import` / `awm export`.** Both route through `openStore()`,
631
+ so you can export from any backend and **import INTO Postgres or PGlite** (import
632
+ was previously SQLite-only). **Export now includes embedding vectors** — a faithful,
633
+ recall-ready port with no re-embed when source/target embedding models match
634
+ (`--no-embeddings` to skip for a model mismatch). New flags: `--all-stages`,
635
+ `--include-retracted`; associations + supersession links are preserved.
636
+ - **`awm merge` no longer silently drops data.** The old hand-rolled merge used a
637
+ truncated schema (no `embedding`, `memory_class`, task/supersession columns) and
638
+ never populated FTS — killing both vector and BM25 recall for merged rows. Rewritten
639
+ to route every source engram through the authoritative `EngramStore`/`createEngram`
640
+ path (+ stage/retracted/supersession restore), wrapped in `try/finally`.
641
+ - **`awm import` preserves stage + retracted** — previously `--include-retracted`
642
+ resurrected retracted memories and flattened all stages to `active`.
643
+ - **Cross-agent contamination guard (write pipeline)** — a workspace/hive recall can
644
+ surface another agent's same-concept engram; the reinforce/supersede branch now
645
+ refuses to mutate an engram whose `agentId` differs from the writer's.
646
+ - **Hive degradation is visible** — `getWorkspaceAgentIds` on Postgres/PGlite emits a
647
+ one-time warning (workspace coordination is SQLite-only) instead of silently
648
+ returning self-only.
649
+
553
650
  ## What's New in v0.9.0
554
651
 
555
652
  A recall-quality default + new tuning knobs + a builder/researcher doc set.
@@ -571,7 +668,7 @@ edge 32/34, workday = old config).
571
668
  out-of-domain abstention gate judges only the **post-rerank top-K**
572
669
  (`AWM_ABSTAIN_GATE_K=5`) so widening for recall doesn't inflate the in-domain
573
670
  signal. Reverses the v0.7.13 "pool reduction" change. See
574
- [reference.md → Recall tuning](docs/reference.md#recall-tuning-env-overrides).
671
+ [reference.md → Recall tuning](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/reference.md#recall-tuning-env-overrides).
575
672
 
576
673
  - **Tunable similarity floors.** `AWM_SIM_FLOOR_TARGETED` / `_EXPLORATORY`
577
674
  (defaults 0.50 / 0.35, unchanged) and the candidate-entry floors are now env
@@ -584,13 +681,13 @@ edge 32/34, workday = old config).
584
681
  (in-engine spreading activation) is **parked** — it regressed recall by
585
682
  displacing gold; multi-hop is solved harness-side instead (see the playbook).
586
683
 
587
- - **New docs for builders & researchers.** [`docs/awm-for-agents.html`](docs/awm-for-agents.html)
684
+ - **New docs for builders & researchers.** [`docs/awm-for-agents.html`](https://completeideas.github.io/agent-working-memory/awm-for-agents.html)
588
685
  — the agent playbook (why AWM exists, the PRIME→ACT→VERIFY→LEARN harness, the
589
686
  full agent feature surface, how multi-hop is solved, and the honest gauntlet
590
- findings). [`docs/pipeline-walkthrough.html`](docs/pipeline-walkthrough.html)
687
+ findings). [`docs/pipeline-walkthrough.html`](https://completeideas.github.io/agent-working-memory/pipeline-walkthrough.html)
591
688
  redesigned for devs/researchers. Both are published on GitHub Pages. A new
592
689
  **Storage Backends + Postgres roadmap** section in
593
- [architecture.md](docs/architecture.md) documents SQLite (default) vs PGlite
690
+ [architecture.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/architecture.md) documents SQLite (default) vs PGlite
594
691
  and the path to a networked-Postgres backend (v1 target).
595
692
 
596
693
  ## What's New in v0.8.5
@@ -776,7 +873,7 @@ callers keep working without modification. Full validation at the milestone:
776
873
  - **Eval harness** — `npm run eval` benchmarks retrieval, associative, redundancy, and temporal performance.
777
874
  - **DB hardening** — busy_timeout, integrity check on startup, hot backups every 10 min, WAL checkpoint on shutdown.
778
875
 
779
- See [CHANGELOG.md](CHANGELOG.md) for full details.
876
+ See [CHANGELOG.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/CHANGELOG.md) for full details.
780
877
 
781
878
  ## Integrations
782
879
 
@@ -817,7 +914,7 @@ one cognitive memory.
817
914
 
818
915
  Full recipe — model-provider examples, the Azure GPT-5.x `/openai/v1` note, and
819
916
  gotchas (incl. the Windows CRLF/s6 clone fix) — is in
820
- [docs/integrations/hermes.md](docs/integrations/hermes.md).
917
+ [docs/integrations/hermes.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/integrations/hermes.md).
821
918
 
822
919
  ## Project Status
823
920
 
@@ -827,7 +924,7 @@ daily in production coding workflows.
827
924
 
828
925
  - Core retrieval and consolidation: **stable**
829
926
  - MCP tools and Claude Code integration: **stable**
830
- - Other MCP hosts (e.g. [Hermes Agent](docs/integrations/hermes.md)): **supported** — AWM drops in as an MCP memory server with no adapter code
927
+ - Other MCP hosts (e.g. [Hermes Agent](https://github.com/CompleteIdeas/agent-working-memory/blob/master/docs/integrations/hermes.md)): **supported** — AWM drops in as an MCP memory server with no adapter code
831
928
  - Multi-agent coordination: **stable** (v0.8.1 hardening)
832
929
  - Task management: **stable**
833
930
  - Hook sidecar and auto-checkpoint: **stable**
@@ -837,11 +934,13 @@ daily in production coding workflows.
837
934
  - Coherence-weighted retraction + counter-narrative inheritance: **stable** (v0.8.5)
838
935
  - Content fade stage + adaptive output granularity: **stable** (v0.8.5)
839
936
  - PGlite backend (alternative to SQLite, with pgvector + ivfflat): **stable** (v0.8.x)
937
+ - Networked Postgres backend (`pg` + pgvector, multi-connection): **experimental** (v0.10.0)
938
+ - Backend-agnostic `import`/`export` (embeddings included, cross-backend port): **stable** (v0.10.0)
840
939
 
841
- See [CHANGELOG.md](CHANGELOG.md) for version history.
940
+ See [CHANGELOG.md](https://github.com/CompleteIdeas/agent-working-memory/blob/master/CHANGELOG.md) for version history.
842
941
 
843
942
  ---
844
943
 
845
944
  ## License
846
945
 
847
- Apache 2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE).
946
+ Apache 2.0 — see [LICENSE](https://github.com/CompleteIdeas/agent-working-memory/blob/master/LICENSE) and [NOTICE](https://github.com/CompleteIdeas/agent-working-memory/blob/master/NOTICE).
@@ -1 +1 @@
1
- {"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAkC,MAAM,YAAY,CAAC;AAG7E,QAAA,MAAM,OAAO,EAAE,UAwMd,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAkC,MAAM,YAAY,CAAC;AAsC7E,QAAA,MAAM,OAAO,EAAE,UAoOd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -9,6 +9,40 @@
9
9
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'node:fs';
10
10
  import { join, dirname, basename } from 'node:path';
11
11
  import { resolveMcpCommand, homedir, AWM_INSTRUCTION_CONTENT, upsertAwmSection } from './common.js';
12
+ /**
13
+ * DB-mutation reminder hook (PostToolUse on Bash|PowerShell).
14
+ * Fires when a shell command runs sqlcmd/mysql/psql with mutation keywords and
15
+ * injects a reminder that the mutation must be recorded via memory_write.
16
+ * Origin: 2026-07-29 tblOSCMPImportDivisionMatch incident — an unrecorded
17
+ * script INSERT broke a production upload six days later, and no recall could
18
+ * surface a cause that was never written.
19
+ */
20
+ const DB_MUTATION_HOOK_SCRIPT = `#!/usr/bin/env node
21
+ // AWM DB-mutation reminder hook (PostToolUse on Bash|PowerShell). Installed by awm setup.
22
+ let raw = '';
23
+ process.stdin.on('data', (d) => (raw += d));
24
+ process.stdin.on('end', () => {
25
+ try {
26
+ const j = JSON.parse(raw || '{}');
27
+ const cmd = (j.tool_input && j.tool_input.command) || '';
28
+ const isDbClient = /\\b(sqlcmd|mysql|psql)\\b/i.test(cmd) || /(sqlcmd|mysql|psql)\\.exe/i.test(cmd);
29
+ const isMutation = /\\b(INSERT|UPDATE|DELETE|ALTER|TRUNCATE|DROP|MERGE)\\b/i.test(cmd);
30
+ if (isDbClient && isMutation) {
31
+ console.log(JSON.stringify({
32
+ hookSpecificOutput: {
33
+ hookEventName: 'PostToolUse',
34
+ additionalContext:
35
+ 'AWM REMINDER: this command contains a production DB mutation (INSERT/UPDATE/DELETE/ALTER/DROP/TRUNCATE/MERGE). ' +
36
+ 'The change is NOT complete until it is recorded: call memory_write NOW with the table, what changed, row counts, date, and why ' +
37
+ '(memory_class canonical if other agents must recall it), and confirm a rollback/backup exists. ' +
38
+ 'If the keywords were only in a string/comment or on temp tables (#...), no write is needed.',
39
+ },
40
+ }));
41
+ }
42
+ } catch (e) { /* never block the tool result */ }
43
+ process.exit(0);
44
+ });
45
+ `;
12
46
  const adapter = {
13
47
  id: 'claude-code',
14
48
  name: 'Claude Code',
@@ -102,12 +136,34 @@ const adapter = {
102
136
  timeout: 5,
103
137
  }],
104
138
  }];
139
+ // PostToolUse — DB-mutation reminder: a production data change is not
140
+ // complete until it is memory_written. Deploy the script, then merge the
141
+ // hook entry (preserve any unrelated PostToolUse groups the user has).
142
+ const hooksDir = join(homedir(), '.claude', 'hooks');
143
+ if (!existsSync(hooksDir)) {
144
+ mkdirSync(hooksDir, { recursive: true });
145
+ }
146
+ const mutationHookPath = join(hooksDir, 'awm-db-mutation-reminder.cjs');
147
+ writeFileSync(mutationHookPath, DB_MUTATION_HOOK_SCRIPT);
148
+ const mutationHookCmd = `node "${mutationHookPath.replace(/\\/g, '/')}"`;
149
+ const otherPostToolUse = (settings.hooks.PostToolUse || []).filter((g) => !JSON.stringify(g).includes('awm-db-mutation-reminder'));
150
+ settings.hooks.PostToolUse = [
151
+ ...otherPostToolUse,
152
+ {
153
+ matcher: 'Bash|PowerShell',
154
+ hooks: [{
155
+ type: 'command',
156
+ command: mutationHookCmd,
157
+ timeout: 10,
158
+ }],
159
+ },
160
+ ];
105
161
  const settingsDir = dirname(settingsPath);
106
162
  if (!existsSync(settingsDir)) {
107
163
  mkdirSync(settingsDir, { recursive: true });
108
164
  }
109
165
  writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n');
110
- return `Hooks: Stop + PreCompact + SessionEnd (port ${ctx.hookPort})`;
166
+ return `Hooks: Stop + PreCompact + SessionEnd (port ${ctx.hookPort}) + PostToolUse DB-mutation reminder`;
111
167
  },
112
168
  diagnose(ctx) {
113
169
  const results = [];
@@ -183,8 +239,12 @@ const adapter = {
183
239
  try {
184
240
  const settings = JSON.parse(readFileSync(settingsPath, 'utf-8'));
185
241
  const hasHooks = settings.hooks?.PreCompact && settings.hooks?.SessionEnd;
186
- if (hasHooks) {
187
- results.push({ check: 'Hooks', status: 'ok', message: 'PreCompact + SessionEnd configured' });
242
+ const hasMutationHook = JSON.stringify(settings.hooks?.PostToolUse || []).includes('awm-db-mutation-reminder');
243
+ if (hasHooks && hasMutationHook) {
244
+ results.push({ check: 'Hooks', status: 'ok', message: 'PreCompact + SessionEnd + DB-mutation reminder configured' });
245
+ }
246
+ else if (hasHooks) {
247
+ results.push({ check: 'Hooks', status: 'warn', message: 'Checkpoint hooks ok; DB-mutation reminder missing (re-run awm setup)' });
188
248
  }
189
249
  else {
190
250
  results.push({ check: 'Hooks', status: 'warn', message: 'Hooks partially configured' });
@@ -1 +1 @@
1
- {"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,sCAAsC;AAEtC;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpG,MAAM,OAAO,GAAe;IAC1B,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,aAAa;IACnB,oBAAoB,EAAE,IAAI;IAC1B,mBAAmB,EAAE,IAAI;IAEzB,cAAc,CAAC,GAAiB;QAC9B,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;QACtC,MAAM,SAAS,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;QAElD,4DAA4D;QAC5D,iEAAiE;QACjE,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ;YAC9B,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,CAAC;YAC9B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;QAEzC,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QACpC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACxB,SAAS,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CA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