[PR #1084] [MERGED] feat(long-term-memory): expand keyword stop words and add a global custom stop-word list (1.3.21) #1287

Closed
opened 2026-10-21 05:07:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1084
Author: @Promansis
Created: 9/26/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @Promansis

Base: staging ← Head: feature(ltm)/keyword-stop-words


📝 Commits (2)

  • 5e63101 feat(long-term-memory): expand keyword stop words and add a custom stop-word list (1.3.21)
  • 50b7330 fix(long-term-memory): harden stop-word matching and keyword caps

📊 Changes

24 files changed (+564 additions, -161 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.21.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+5 -0)
📝 packages/long-term-memory/client.js (+19 -18)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+47 -47)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+56 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+4 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chunking.ts (+12 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts (+125 -29)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-index.ts (+2 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/maintenance.ts (+3 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts (+19 -7)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts (+9 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/settings.ts (+8 -0)

...and 4 more files

📄 Description

Linked issue

Closes #1083

Why this change

Long-Term Memory's built-in keyword stop list missed common filler, modal, and
discourse words (above, however, really, sure, contractions), and users
had no way to list their own noise words. Recall could also be triggered by a
word a user never wanted to matter, and a hyphenated custom entry could silently
become dead configuration because only its component tokens were registered.

What changed

  • Expanded the built-in stop words and normalize curly apostrophes so
    contractions such as I’m are recognized as stop words.
  • Added a Memory stop words list in Memory Settings plus a default-on
    Block stop words in generated keywords toggle.
  • Listed words now block recall triggering; when the generated-keyword filter is
    on, they are also kept out of generated keywords. Stored and manual keywords
    are never rewritten or removed.
  • buildStopWordSet stores each entry's normalized whole phrase plus component
    tokens (issue #1083), so a hyphenated entry such as Cobalt-Moon blocks its
    own trigger.
  • Hardened stop-word matching: a hyphenated token is rejected when any component
    is a built-in or custom stop word, punctuated entries register each token
    boundary, and manual keywords keep priority at the 30-keyword cap.
  • Removed the unintended built-in words indeed and namely.
  • Rebuilt the 1.3.21 package payload, artifact, and catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory (1.3.20 → 1.3.21)
  • Engine compatibility impact: unchanged; engine.min stays 2.4.1 and
    maxExclusive stays 4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: no destructive migration; new
    settings default safely (empty list, filter on); stored and manual keywords
    are not modified. Recall/match changes touch only the keyword lane; BM25 still
    searches the raw query.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run on commit 50b73308 with Engine 41d5d12; local results only, not hosted CI.

  • test-ci.sh (local Catalog CI mirror): exit 0, including npm run check,
    locale/catalog validators, catalog generatedAt determinism, and release-notes
    regression.
  • validate-catalog.mjs also verified the 1.3.21 artifact size, SHA-256, and
    archived-manifest equality.
  • LTM suites all exit 0: storage, index-keys, runtime, extraction-graph,
    extraction-reliability, conversation-summary-import, routes,
    feedback-clarity-ui, installation (install, offline restart, backup,
    uninstall, reinstall against the 1.3.21 artifact), and lifecycle
    (browser + installation scenarios).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

No documentation changes were required; the README lists packages by ID.

UI evidence (if applicable)

Memory Settings gains a Memory stop words textarea and a
Block stop words in generated keywords toggle. Before/after screenshots are
still to be attached by the maintainer.

Summary by CodeRabbit

  • New Features
    • Memory Settings now lets you define custom stop words and toggle filtering for generated keywords. Filtering is enabled by default; listed words are excluded from generated keywords and recall matching, while manually entered and stored keywords remain unchanged.
  • Improvements
    • Expanded filler-word filtering and improved recognition of contractions with curly apostrophes during keyword matching.
  • Updates
    • Updated Long-Term Memory to version 1.3.21.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1084 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/26/2026 **Status:** ✅ Merged **Merged:** 9/26/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(ltm)/keyword-stop-words` --- ### 📝 Commits (2) - [`5e63101`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e631016ed80b6f151ff4ad6cab32fa4e565a6d3) feat(long-term-memory): expand keyword stop words and add a custom stop-word list (1.3.21) - [`50b7330`](https://github.com/Pasta-Devs/Marinara-Agents/commit/50b73308a93e6d0e8bff88608bc5127095e7a1f9) fix(long-term-memory): harden stop-word matching and keyword caps ### 📊 Changes **24 files changed** (+564 additions, -161 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.21.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+5 -0) 📝 `packages/long-term-memory/client.js` (+19 -18) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+47 -47) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+56 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+4 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chunking.ts` (+12 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-extract.ts` (+125 -29) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-index.ts` (+2 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/maintenance.ts` (+3 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts` (+19 -7) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts` (+9 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/settings.ts` (+8 -0) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #1083 ## Why this change Long-Term Memory's built-in keyword stop list missed common filler, modal, and discourse words (`above`, `however`, `really`, `sure`, contractions), and users had no way to list their own noise words. Recall could also be triggered by a word a user never wanted to matter, and a hyphenated custom entry could silently become dead configuration because only its component tokens were registered. ## What changed - Expanded the built-in stop words and normalize curly apostrophes so contractions such as `I’m` are recognized as stop words. - Added a `Memory stop words` list in Memory Settings plus a default-on `Block stop words in generated keywords` toggle. - Listed words now block recall triggering; when the generated-keyword filter is on, they are also kept out of generated keywords. Stored and manual keywords are never rewritten or removed. - `buildStopWordSet` stores each entry's normalized whole phrase plus component tokens (issue #1083), so a hyphenated entry such as `Cobalt-Moon` blocks its own trigger. - Hardened stop-word matching: a hyphenated token is rejected when any component is a built-in or custom stop word, punctuated entries register each token boundary, and manual keywords keep priority at the 30-keyword cap. - Removed the unintended built-in words `indeed` and `namely`. - Rebuilt the 1.3.21 package payload, artifact, and catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` (1.3.20 → 1.3.21) - Engine compatibility impact: unchanged; `engine.min` stays 2.4.1 and `maxExclusive` stays 4.0.0 - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: no destructive migration; new settings default safely (empty list, filter on); stored and manual keywords are not modified. Recall/match changes touch only the keyword lane; BM25 still searches the raw query. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run on commit `50b73308` with Engine `41d5d12`; local results only, not hosted CI. - `test-ci.sh` (local Catalog CI mirror): exit 0, including `npm run check`, locale/catalog validators, catalog generatedAt determinism, and release-notes regression. - `validate-catalog.mjs` also verified the 1.3.21 artifact size, SHA-256, and archived-manifest equality. - LTM suites all exit 0: `storage`, `index-keys`, `runtime`, `extraction-graph`, `extraction-reliability`, `conversation-summary-import`, `routes`, `feedback-clarity-ui`, `installation` (install, offline restart, backup, uninstall, reinstall against the 1.3.21 artifact), and `lifecycle` (browser + installation scenarios). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation changes were required; the README lists packages by ID. ## UI evidence (if applicable) Memory Settings gains a `Memory stop words` textarea and a `Block stop words in generated keywords` toggle. Before/after screenshots are still to be attached by the maintainer. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Memory Settings now lets you define custom stop words and toggle filtering for generated keywords. Filtering is enabled by default; listed words are excluded from generated keywords and recall matching, while manually entered and stored keywords remain unchanged. * **Improvements** * Expanded filler-word filtering and improved recognition of contractions with curly apostrophes during keyword matching. * **Updates** * Updated Long-Term Memory to version 1.3.21. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:07:40 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1287
No description provided.