[PR #1249] [MERGED] fix(long-term-memory): 1.4.8 — ignore invalid saved recall settings instead of breaking reads (#1246) #1367

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/invalid-settings-fallback


📝 Commits (2)

  • eddba72 fix(long-term-memory): 1.4.8 — ignore invalid saved recall settings instead of breaking reads (#1246)
  • d974576 Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/invalid-settings-fallback

📊 Changes

14 files changed (+133 additions, -71 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.8.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 (+4 -0)
📝 packages/long-term-memory/client.js (+1 -1)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+18 -18)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+13 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-storage.regression.ts (+49 -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 #1246

Why this change

  • A persisted null Long-Term Memory recall weight, or an unrecognized stored recall style, made every global settings read throw (ZodError: Expected number, received null). Because settings load on the recall path, one bad settings.json value broke settings, recall and search until the file was hand-edited.
  • The invalid value could be written back by a save, so the corruption persisted across restarts.

What changed

  • packages/long-term-memory 1.4.8: ltmGlobalSettingsSchema now drops null/undefined recall weights and deletes an unrecognized longTermMemoryRecallStyle before merging resolved defaults. A present-but-undefined style key no longer overwrites the default, and a null weight is no longer persisted.
  • Added a storage regression covering null weight, unknown style, null-save recovery, non-persistence, a valid weight, and backup restore fallback.
  • Rebuilt server.mjs, client.js, manifest.json, catalog lanes (catalog/, catalog/v2/, catalog/v3/) and artifacts/long-term-memory-1.4.8.zip; added the 1.4.8 CHANGELOG entry.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none — engine.min 2.4.1 and engine.maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: settings init already rewrites invalid settings.json; invalid saved values now recover to defaults instead of throwing. Install/update/uninstall lifecycle unchanged.

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

  • Local runs on this HEAD (not claimed as human checkboxes): test-ltm.sh storage|runtime|routes|routes-backup|conversation-summary-import|installation, npm run check, git diff --check, test-catalog-lanes.mjs, validate-package-locales.mjs, validate-catalog.mjs, catalog-release-notes.regression.mjs.
  • Hosted CI for the pushed SHA is pending; CodeRabbit review not yet run.

Documentation impact

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

UI evidence (if applicable)

Summary by CodeRabbit

  • Bug Fixes
    • Invalid saved Long-Term Memory recall settings now fall back to their defaults instead of preventing settings from loading. Invalid values aren’t saved back.
  • Updates
    • Long-Term Memory is now version 1.4.8.

🔄 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/1249 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/6/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/invalid-settings-fallback` --- ### 📝 Commits (2) - [`eddba72`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eddba72de2db27bb6b158725ff611916c237d76e) fix(long-term-memory): 1.4.8 — ignore invalid saved recall settings instead of breaking reads (#1246) - [`d974576`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d974576ab0be43031112af874830eff1e162648c) Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/invalid-settings-fallback ### 📊 Changes **14 files changed** (+133 additions, -71 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.8.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` (+4 -0) 📝 `packages/long-term-memory/client.js` (+1 -1) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+18 -18) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+13 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-storage.regression.ts` (+49 -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`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue <!-- Every PR should reference an issue or feature request. --> Closes #1246 ## Why this change <!-- What user problem, package bug, or catalog goal does this solve? --> - A persisted `null` Long-Term Memory recall weight, or an unrecognized stored recall style, made every global settings read throw (`ZodError: Expected number, received null`). Because settings load on the recall path, one bad `settings.json` value broke settings, recall and search until the file was hand-edited. - The invalid value could be written back by a save, so the corruption persisted across restarts. ## What changed <!-- Include affected package IDs and generated outputs. --> - `packages/long-term-memory` 1.4.8: `ltmGlobalSettingsSchema` now drops `null`/`undefined` recall weights and deletes an unrecognized `longTermMemoryRecallStyle` before merging resolved defaults. A present-but-`undefined` style key no longer overwrites the default, and a `null` weight is no longer persisted. - Added a storage regression covering null weight, unknown style, null-save recovery, non-persistence, a valid weight, and backup restore fallback. - Rebuilt `server.mjs`, `client.js`, `manifest.json`, catalog lanes (`catalog/`, `catalog/v2/`, `catalog/v3/`) and `artifacts/long-term-memory-1.4.8.zip`; added the 1.4.8 CHANGELOG entry. ## Package and security impact - Affected package IDs: long-term-memory - Engine compatibility impact: none — `engine.min` 2.4.1 and `engine.maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: settings init already rewrites invalid `settings.json`; invalid saved values now recover to defaults instead of throwing. Install/update/uninstall lifecycle unchanged. ## Validation <!-- These are human tasks. Never tick a box for a check that was actually performed. --> - [ ] `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 <!-- Describe exactly what you tested, step by step. --> - Local runs on this HEAD (not claimed as human checkboxes): `test-ltm.sh storage|runtime|routes|routes-backup|conversation-summary-import|installation`, `npm run check`, `git diff --check`, `test-catalog-lanes.mjs`, `validate-package-locales.mjs`, `validate-catalog.mjs`, `catalog-release-notes.regression.mjs`. - Hosted CI for the pushed SHA is pending; CodeRabbit review not yet run. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for package UI changes. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Invalid saved Long-Term Memory recall settings now fall back to their defaults instead of preventing settings from loading. Invalid values aren’t saved back. * **Updates** * Long-Term Memory is now version 1.4.8. <!-- 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:09:51 +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#1367
No description provided.