[PR #1843] [MERGED] Long-Term Memory 1.5.8: let recall return whole memories (#1840) #1991

Closed
opened 2026-11-07 16:38:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/recall-whole-memories


📝 Commits (2)

  • e039480 feat(long-term-memory): let recall return whole memories (#1840)
  • 24402ee chore(long-term-memory): release 1.5.8 (#1840)

📊 Changes

15 files changed (+178 additions, -87 deletions)

View changed files

➕ artifacts/long-term-memory-1.5.8.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/docs/ARCHITECTURE.md (+9 -0)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/server.mjs (+45 -44)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/recall/budget.ts (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/services/recall.ts (+32 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-runtime.regression.ts (+47 -0)

📄 Description

Pull request

Linked issue

Closes #1840

Why this change

Slurp and Noodle are about to read memories through long-term-memory:recall. Recall ranks memories against what the caller is about to write and returns only the best-scoring parts, which suits some setups (large vaults) but not others (small vaults, local models, short memories). The maintainer asked for the choice to be the user's, defaulting to whole memories first so we can check that memories reach the posts at all before tuning ranking. Today the only way to get whole memories is long-term-memory:storage, which skips recall's privacy rules (subjects, mode, persona) and is slated for removal.

What changed

  • Affected package: long-term-memory 1.5.7 → 1.5.8 (patch).
  • recall takes an optional whole boolean (default false). With whole: true it returns every memory that passes the same sharing, mode, persona and subject rules, with its full text, in type order and then newest first. A memory that does not fit maxTokens is skipped, never cut, so a later smaller one can still fit; at most 20 sections. No retrieval call, so no embeddings are needed.
  • queryText stays required in both modes, so one call serves both, and an older Long-Term Memory ignores whole and answers with ranked parts. Service version stays 1.
  • estimateTokens is exported from recall/budget.ts so whole mode uses the same token estimate as ranked recall.
  • Contract documented in docs/ARCHITECTURE.md (Services for Other Packages); CHANGELOG entry added.
  • Regression cases in tests/long-term-memory-runtime.regression.ts: same memories as ranked recall, type-then-newest order, skip-not-cut under a small maxTokens, switch off gives null, conversation mode against roleplay-only memories gives no sections.
  • Generated outputs rebuilt: server.mjs, artifacts/long-term-memory-1.5.8.zip, catalog lanes and notes.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min unchanged.
  • New or changed permissions/entrypoints: none. One additive input on an existing service; "Other Agents can read memories" still stops every read.
  • Restart, storage, update, or uninstall impact: normal package update; no storage format change.

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

Documentation impact

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

UI evidence (if applicable)

None; no UI change.

🤖 Generated with Claude Code


🔄 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/1843 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/recall-whole-memories` --- ### 📝 Commits (2) - [`e039480`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e039480ec6a0ea42c0b5189af306748b5a3a4f75) feat(long-term-memory): let recall return whole memories (#1840) - [`24402ee`](https://github.com/Pasta-Devs/Marinara-Agents/commit/24402eee5d95c110780d8985a136251bc167ecad) chore(long-term-memory): release 1.5.8 (#1840) ### 📊 Changes **15 files changed** (+178 additions, -87 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.5.8.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/docs/ARCHITECTURE.md` (+9 -0) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/server.mjs` (+45 -44) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/recall/budget.ts` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/services/recall.ts` (+32 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-runtime.regression.ts` (+47 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #1840 ## Why this change Slurp and Noodle are about to read memories through `long-term-memory:recall`. Recall ranks memories against what the caller is about to write and returns only the best-scoring parts, which suits some setups (large vaults) but not others (small vaults, local models, short memories). The maintainer asked for the choice to be the user's, defaulting to whole memories first so we can check that memories reach the posts at all before tuning ranking. Today the only way to get whole memories is `long-term-memory:storage`, which skips recall's privacy rules (subjects, mode, persona) and is slated for removal. ## What changed - Affected package: `long-term-memory` 1.5.7 → 1.5.8 (patch). - `recall` takes an optional `whole` boolean (default false). With `whole: true` it returns every memory that passes the same sharing, mode, persona and subject rules, with its full text, in type order and then newest first. A memory that does not fit `maxTokens` is skipped, never cut, so a later smaller one can still fit; at most 20 sections. No retrieval call, so no embeddings are needed. - `queryText` stays required in both modes, so one call serves both, and an older Long-Term Memory ignores `whole` and answers with ranked parts. Service `version` stays 1. - `estimateTokens` is exported from `recall/budget.ts` so whole mode uses the same token estimate as ranked recall. - Contract documented in `docs/ARCHITECTURE.md` (Services for Other Packages); CHANGELOG entry added. - Regression cases in `tests/long-term-memory-runtime.regression.ts`: same memories as ranked recall, type-then-newest order, skip-not-cut under a small `maxTokens`, switch off gives `null`, conversation mode against roleplay-only memories gives no sections. - Generated outputs rebuilt: `server.mjs`, `artifacts/long-term-memory-1.5.8.zip`, catalog lanes and notes. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` unchanged. - New or changed permissions/entrypoints: none. One additive input on an existing service; "Other Agents can read memories" still stops every read. - Restart, storage, update, or uninstall impact: normal package update; no storage format change. ## 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 - ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None; no UI change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:35 +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#1991
No description provided.