[PR #1270] [MERGED] fix(long-term-memory): 1.4.17 — recall clean-up: /search parity, Debug fused rank, dead cooldowns (#1265) #1378

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

📋 Pull Request Information

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

Base: staging ← Head: fix(ltm)/recall-cleanup-1265


📝 Commits (3)

  • cf2bf9f fix(long-term-memory): recall clean-up — /search parity, Debug fused rank, dead cooldowns (#1265)
  • 791e6c1 Merge upstream/staging into fix(ltm)/recall-cleanup-1265
  • 4f33128 fix(long-term-memory): resolve a chat-only /search scope like a recall turn (#1265)

📊 Changes

25 files changed (+668 additions, -155 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.17.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 (+17 -17)
➕ packages/long-term-memory/docs/ARCHITECTURE.md (+96 -0)
➕ packages/long-term-memory/docs/UI.md (+130 -0)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+51 -51)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+7 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+0 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+2 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/budget.ts (+4 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts (+2 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/ranking.ts (+5 -18)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+69 -3)

...and 5 more files

📄 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 #1265

Why this change

Long-Term Memory recall had four clean-up gaps from the scoring audit: /search did not reproduce a real recall turn, the Debug recall list showed relevance without the fused rank that actually decides the memory cap, ranking carried dead cooldown plumbing, and the prompt serializer could drop selected memories at small budgets.

What changed

  • long-term-memory 1.4.17, re-bumped on top of staging's released 1.4.16 (#1269):
    • /search resolves the scoped chat's recall settings, prompt-overhead reserve, and prompt-normalized token estimates like a generation turn; explicit body fields still override. It also preserves an explicit scope.characterIds instead of widening it with the chat's character list.
    • The Debug recall list shows the fused rank beside relevance and labels lower_rank as "Cut by the memory limit (lower fused rank)".
    • Removed the unused cooldown plumbing (cooldownPenalty, LtmRankCooldown, and the reciprocalRankFuse option) and its under-the-hood UI copy.
    • Item 4: the serializer already reports drops as prompt_budget rejections in Debug (since 1.4.11); this PR adds a regression that locks that in. Refilling dropped memories is not included.
    • Reconciled with upstream #1269 (1.4.16): kept its rescored retrieval and 1.4.16 changelog entry, regenerated the package, catalog, and artifact.
    • Added package docs packages/long-term-memory/docs/UI.md and docs/ARCHITECTURE.md.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min 2.4.1 / engine.maxExclusive 4.0.0 unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.

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

Ran locally on merge commit 791e6c1ec (Agents workspace against the independent Engine checkout):

  • test-fast.sh: npm run check 0 errors / 809 warnings; git diff --check clean.
  • test-catalog-lanes.mjs, validate-package-locales.mjs, validate-catalog.mjs, catalog-release-notes.regression.mjs: pass (39 packages).
  • test-ltm.sh routes, runtime, index-keys, browser, feedback-clarity-ui, installation: pass. The installation scenario exercised the exact long-term-memory-1.4.17.zip (install, offline restart, backup inclusion, uninstall, reinstall).
  • Rebuilt long-term-memory 1.4.17 from source; the ZIP payload hashes match manifest.json.

Documentation impact

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

Added packages/long-term-memory/docs/UI.md and docs/ARCHITECTURE.md (the package README already links docs/ARCHITECTURE.md).

UI evidence (if applicable)

Debug recall list now renders the fused rank and the "Cut by the memory limit (lower fused rank)" label; covered by the browser and feedback-clarity UI regressions.

Summary by CodeRabbit

  • New Features
    • Search now applies recall settings for the selected chat and accounts for prompt overhead, while preserving explicit request overrides.
    • Debug details show each memory’s fused rank and explain when lower-ranked memories are excluded by the memory limit.
  • Bug Fixes
    • Search results now more closely match generation-time recall for chat-specific settings and scope.
  • Documentation
    • Added guides to Long-Term Memory’s architecture and interface behavior.

🔄 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/1270 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(ltm)/recall-cleanup-1265` --- ### 📝 Commits (3) - [`cf2bf9f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cf2bf9ffc15d87cb4024bfbce814de154b28d0b8) fix(long-term-memory): recall clean-up — /search parity, Debug fused rank, dead cooldowns (#1265) - [`791e6c1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/791e6c1ecac9b65ceb2c1956c6325796ce5bd649) Merge upstream/staging into fix(ltm)/recall-cleanup-1265 - [`4f33128`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4f331282f8122efd30dbc99972b8c2ebe4bd4ad0) fix(long-term-memory): resolve a chat-only /search scope like a recall turn (#1265) ### 📊 Changes **25 files changed** (+668 additions, -155 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.17.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` (+17 -17) ➕ `packages/long-term-memory/docs/ARCHITECTURE.md` (+96 -0) ➕ `packages/long-term-memory/docs/UI.md` (+130 -0) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+51 -51) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+7 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+0 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+2 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/budget.ts` (+4 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/ranking.ts` (+5 -18) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+69 -3) _...and 5 more files_ </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 #1265 ## Why this change Long-Term Memory recall had four clean-up gaps from the scoring audit: `/search` did not reproduce a real recall turn, the Debug recall list showed relevance without the fused rank that actually decides the memory cap, ranking carried dead cooldown plumbing, and the prompt serializer could drop selected memories at small budgets. ## What changed - `long-term-memory` 1.4.17, re-bumped on top of staging's released 1.4.16 (#1269): - `/search` resolves the scoped chat's recall settings, prompt-overhead reserve, and prompt-normalized token estimates like a generation turn; explicit body fields still override. It also preserves an explicit `scope.characterIds` instead of widening it with the chat's character list. - The Debug recall list shows the fused rank beside relevance and labels `lower_rank` as "Cut by the memory limit (lower fused rank)". - Removed the unused cooldown plumbing (`cooldownPenalty`, `LtmRankCooldown`, and the `reciprocalRankFuse` option) and its under-the-hood UI copy. - Item 4: the serializer already reports drops as prompt_budget rejections in Debug (since 1.4.11); this PR adds a regression that locks that in. Refilling dropped memories is not included. - Reconciled with upstream #1269 (1.4.16): kept its rescored retrieval and 1.4.16 changelog entry, regenerated the package, catalog, and artifact. - Added package docs `packages/long-term-memory/docs/UI.md` and `docs/ARCHITECTURE.md`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` 2.4.1 / `engine.maxExclusive` 4.0.0 unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. ## 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 Ran locally on merge commit `791e6c1ec` (Agents workspace against the independent Engine checkout): - `test-fast.sh`: `npm run check` 0 errors / 809 warnings; `git diff --check` clean. - `test-catalog-lanes.mjs`, `validate-package-locales.mjs`, `validate-catalog.mjs`, `catalog-release-notes.regression.mjs`: pass (39 packages). - `test-ltm.sh routes`, `runtime`, `index-keys`, `browser`, `feedback-clarity-ui`, `installation`: pass. The installation scenario exercised the exact `long-term-memory-1.4.17.zip` (install, offline restart, backup inclusion, uninstall, reinstall). - Rebuilt `long-term-memory` 1.4.17 from source; the ZIP payload hashes match `manifest.json`. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Added `packages/long-term-memory/docs/UI.md` and `docs/ARCHITECTURE.md` (the package README already links `docs/ARCHITECTURE.md`). ## UI evidence (if applicable) Debug recall list now renders the fused rank and the "Cut by the memory limit (lower fused rank)" label; covered by the browser and feedback-clarity UI regressions. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Search now applies recall settings for the selected chat and accounts for prompt overhead, while preserving explicit request overrides. * Debug details show each memory’s fused rank and explain when lower-ranked memories are excluded by the memory limit. * **Bug Fixes** * Search results now more closely match generation-time recall for chat-specific settings and scope. * **Documentation** * Added guides to Long-Term Memory’s architecture and interface behavior. <!-- 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:10:04 +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#1378
No description provided.