[PR #643] [MERGED] fix(long-term-memory): exclude resolved memories from recall #1066

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/643
Author: @Promansis
Created: 8/28/2026
Status: ✅ Merged
Merged: 8/28/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/resolved-memory-retrieval


📝 Commits (1)

  • cb05390 fix(long-term-memory): exclude resolved memories from recall

📊 Changes

8 files changed (+33 additions, -16 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.17.zip (+0 -0)
📝 catalog/catalog.json (+4 -4)
📝 catalog/v2/catalog.json (+4 -4)
📝 catalog/v3/catalog.json (+4 -4)
📝 packages/long-term-memory/manifest.json (+2 -2)
📝 packages/long-term-memory/server.mjs (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts (+1 -1)
📝 tests/long-term-memory-runtime.regression.ts (+17 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #641

Why this change

Long-Term Memory 1.2.17 still allowed resolved non-thread memories to enter recall when Include resolved memories was disabled. The shared predicate excluded resolved threads only, contradicting the setting's behavior.

What changed

  • Updated the Long-Term Memory retrieval filter to exclude every resolved memory unless includeResolved is enabled.
  • Added runtime regression coverage for resolved world memories and the archived-memory invariant.
  • Rebuilt Long-Term Memory 1.2.17 server.mjs, artifact ZIP, manifest hashes, and v2/v3/legacy catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; existing Engine 2.4.1 through 3.x compatibility range is unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: no storage format or lifecycle behavior change; rebuilt package output only.

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

  • Focused runtime regression passed from adjacent Marinara Engine checkout.
  • Storage, extraction graph/reliability, routes, summary import, debug log, UI, and lifecycle regressions passed; lifecycle passed serially after a parallel-run flake.
  • npm run check, catalog validation, package manifest integrity, locale validation, catalog lane tests, and git diff --check passed.
  • The fresh upstream checkout does not define npm run test:ci or npm run test:long-term-memory; the documented Engine-backed regression commands were run directly.
  • An unrelated long-term-memory-scope-fallback-labels.regression.ts fixture remains incompatible with upstream commit #642 and was not changed here.

Documentation impact

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

UI evidence (if applicable)

Not applicable; the behavioral change is in package-owned server retrieval.

Summary by CodeRabbit

  • Bug Fixes

    • Resolved memories are now excluded from retrieval by default, regardless of note type.
    • Resolved memories can still be included when the includeResolved option is enabled.
    • Archived memories remain excluded from retrieval.
  • Tests

    • Added regression coverage for resolved and archived memory retrieval behavior.
  • Chores

    • Updated package metadata and artifact integrity information.

🔄 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/643 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/28/2026 **Status:** ✅ Merged **Merged:** 8/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/resolved-memory-retrieval` --- ### 📝 Commits (1) - [`cb05390`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cb05390ec4e76e2f851a5df2b202446592dde010) fix(long-term-memory): exclude resolved memories from recall ### 📊 Changes **8 files changed** (+33 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.17.zip` (+0 -0) 📝 `catalog/catalog.json` (+4 -4) 📝 `catalog/v2/catalog.json` (+4 -4) 📝 `catalog/v3/catalog.json` (+4 -4) 📝 `packages/long-term-memory/manifest.json` (+2 -2) 📝 `packages/long-term-memory/server.mjs` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts` (+1 -1) 📝 `tests/long-term-memory-runtime.regression.ts` (+17 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #641 ## Why this change Long-Term Memory 1.2.17 still allowed resolved non-thread memories to enter recall when Include resolved memories was disabled. The shared predicate excluded resolved threads only, contradicting the setting's behavior. ## What changed - Updated the Long-Term Memory retrieval filter to exclude every resolved memory unless `includeResolved` is enabled. - Added runtime regression coverage for resolved world memories and the archived-memory invariant. - Rebuilt Long-Term Memory 1.2.17 `server.mjs`, artifact ZIP, manifest hashes, and v2/v3/legacy catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; existing Engine 2.4.1 through 3.x compatibility range is unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: no storage format or lifecycle behavior change; rebuilt package output only. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Focused runtime regression passed from adjacent Marinara Engine checkout. - Storage, extraction graph/reliability, routes, summary import, debug log, UI, and lifecycle regressions passed; lifecycle passed serially after a parallel-run flake. - `npm run check`, catalog validation, package manifest integrity, locale validation, catalog lane tests, and `git diff --check` passed. - The fresh upstream checkout does not define `npm run test:ci` or `npm run test:long-term-memory`; the documented Engine-backed regression commands were run directly. - An unrelated `long-term-memory-scope-fallback-labels.regression.ts` fixture remains incompatible with upstream commit #642 and was not changed here. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; the behavioral change is in package-owned server retrieval. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Resolved memories are now excluded from retrieval by default, regardless of note type. * Resolved memories can still be included when the `includeResolved` option is enabled. * Archived memories remain excluded from retrieval. * **Tests** * Added regression coverage for resolved and archived memory retrieval behavior. * **Chores** * Updated package metadata and artifact integrity information. <!-- 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:01:54 +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#1066
No description provided.