[PR #1044] [MERGED] fix(long-term-memory): normalize recovery candidate subject IDs (#1040) #1267

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

📋 Pull Request Information

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

Base: staging ← Head: fix/long-term-memory/normalize-recovery-subject-id


📝 Commits (1)

  • 46f53b9 fix(long-term-memory): normalize recovery candidate subject IDs (#1040)

📊 Changes

15 files changed (+133 additions, -88 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.15.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 (+16 -16)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+21 -21)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rejected-suggestions.ts (+3 -1)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+19 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-storage.regression.ts (+22 -1)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote staging to main.

Linked issue

Closes #1040

Why this change

Recovery candidates with names such as O’Malley Smith could fail the snake_case subject-ID boundary, hiding a valid rejected suggestion from review.

What changed

  • Normalize recoveryCandidate.subjectId at the dropped-candidate schema boundary and parse before rejected-suggestion fingerprinting and storage. Keep invalid IDs subject to validation.
  • Add a storage/deduplication regression; bump Long-Term Memory to 1.3.15 with a release note. Rebuild the client/server bundles, manifest, ZIP, catalogs, and notes sidecars.

Package and security impact

  • Affected package IDs: long-term-memory.
  • Engine compatibility impact: unchanged (2.4.1 through <4.0.0). Engine-backed checks used /home/damo/dev/Marinara-Engine at 43bc6592dadf5a38eaa6b4e886cee2770aa086c2.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: rejected recovery candidate IDs are normalized before persistence/deduplication; rejected-suggestion data survives restart and backup. Automated 1.3.15 artifact installation, offline restart, uninstall/reinstall and durable-byte preservation passed; no manual UI or live-model verification performed.

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

  • No manual verification. Automated local Push checks passed on 46f53b98efd38e2abee8c7c4963e05d7156eb0a5: test-fast.sh (0 lint errors; 901 unrelated warnings), catalog lanes, locales, catalog, release notes, LTM storage, extraction graph/reliability, conversation-summary import, runtime, exact 1.3.15 installation, package typecheck, and git diff --check upstream/staging...HEAD. Snapshot-based publication proof matched final HEAD and Engine checkout. Hosted CI and CodeRabbit are pending; runtime producer of the original failure is unconfirmed.

Documentation impact

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

Changelog entry added for 1.3.15.

UI evidence (if applicable)

Not applicable: no UI source changes.

Summary by CodeRabbit

  • Bug Fixes

    • Recovery candidates with mixed-case names, spaces, or punctuation are normalized before validation and storage, while canonical identity checks remain unchanged.
    • Duplicate rejected candidates using the normalized subject ID are recognized as the same rejection.
  • Release

    • Updated long-term memory to version 1.3.15.

🔄 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/1044 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/23/2026 **Status:** ✅ Merged **Merged:** 9/23/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/long-term-memory/normalize-recovery-subject-id` --- ### 📝 Commits (1) - [`46f53b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/46f53b98efd38e2abee8c7c4963e05d7156eb0a5) fix(long-term-memory): normalize recovery candidate subject IDs (#1040) ### 📊 Changes **15 files changed** (+133 additions, -88 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.15.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` (+16 -16) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+21 -21) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rejected-suggestions.ts` (+3 -1) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+19 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-storage.regression.ts` (+22 -1) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote `staging` to `main`. ## Linked issue Closes #1040 ## Why this change Recovery candidates with names such as `O’Malley Smith` could fail the snake_case subject-ID boundary, hiding a valid rejected suggestion from review. ## What changed - Normalize `recoveryCandidate.subjectId` at the dropped-candidate schema boundary and parse before rejected-suggestion fingerprinting and storage. Keep invalid IDs subject to validation. - Add a storage/deduplication regression; bump Long-Term Memory to 1.3.15 with a release note. Rebuild the client/server bundles, manifest, ZIP, catalogs, and notes sidecars. ## Package and security impact - Affected package IDs: `long-term-memory`. - Engine compatibility impact: unchanged (`2.4.1` through `<4.0.0`). Engine-backed checks used `/home/damo/dev/Marinara-Engine` at `43bc6592dadf5a38eaa6b4e886cee2770aa086c2`. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: rejected recovery candidate IDs are normalized before persistence/deduplication; rejected-suggestion data survives restart and backup. Automated 1.3.15 artifact installation, offline restart, uninstall/reinstall and durable-byte preservation passed; no manual UI or live-model verification performed. ## 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 - No manual verification. Automated local Push checks passed on `46f53b98efd38e2abee8c7c4963e05d7156eb0a5`: `test-fast.sh` (0 lint errors; 901 unrelated warnings), catalog lanes, locales, catalog, release notes, LTM storage, extraction graph/reliability, conversation-summary import, runtime, exact 1.3.15 installation, package typecheck, and `git diff --check upstream/staging...HEAD`. Snapshot-based publication proof matched final HEAD and Engine checkout. Hosted CI and CodeRabbit are pending; runtime producer of the original failure is unconfirmed. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Changelog entry added for 1.3.15. ## UI evidence (if applicable) Not applicable: no UI source changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Recovery candidates with mixed-case names, spaces, or punctuation are normalized before validation and storage, while canonical identity checks remain unchanged. - Duplicate rejected candidates using the normalized subject ID are recognized as the same rejection. - **Release** - Updated long-term memory to version 1.3.15. <!-- 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:22 +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#1267
No description provided.