[PR #1077] [MERGED] fix(ltm): preserve resolved subject identities #1283

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

📋 Pull Request Information

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

Base: staging ← Head: fix/long-term-memory/preserve-subject-identity-normalization


📝 Commits (2)

  • 4edb2fe fix(ltm): preserve resolved subject identities
  • a283103 fix(ltm): address review metadata and remap findings

📊 Changes

14 files changed (+463 additions, -136 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.19.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/manifest.json (+3 -3)
📝 packages/long-term-memory/server.mjs (+53 -53)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts (+165 -32)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts (+14 -10)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-graph.regression.ts (+187 -1)

📄 Description

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 #1042

Why this change

Distinct trusted characters and relationship pairs could collapse onto display-name-derived memory targets. Resolved targets could also be rewritten during later normalization, and provider-generated IDs could exceed storage limits after server naming.

What changed

  • Updated long-term-memory target aggregation to fail closed on ambiguous generic links.
  • Preserved resolved subject identities through normalization and compilation.
  • Bounded provider-generated event IDs after server prefixes and suffixes.
  • Restored 1.3.17 and 1.3.18 release history and catalog notes.
  • Made conflicting direct remaps fail closed and preserved section-scoped remap IDs.
  • Restored published Noodle 1.2.25 capability/home-widget metadata and Slurp Remastered 0.2.38 builder metadata.
  • Rebuilt Long-Term Memory 1.3.19 manifest, server bundle, artifact, and catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory, plus restored existing Noodle and Slurp Remastered catalog build definitions.
  • Engine compatibility impact: Existing package compatibility ranges retained; Noodle restored to minimum Engine 2.4.6 with capability API 1.35.
  • New or changed permissions/entrypoints: None.
  • Restart, storage, update, or uninstall impact: Package artifact and metadata rebuilt; no permission, storage migration, restart, or uninstall behavior changes.

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

  • Long-Term Memory extraction graph regression passed.
  • Long-Term Memory extraction reliability regression passed.
  • Long-Term Memory package typecheck passed.
  • Catalog validation, catalog lane tests, package locale validation, and catalog release-note regression passed.
  • git diff --check passed.
  • Final proof passed for HEAD a28310355e52bbc4b7536957556dd9033bb5c867; repository digest 694168a9fe86ad5043eea812b21cc5b5ae42d60aeba73580e0ea5c19d8c47d9c; Engine digest dfc66e605f78780d3ec53d63187b870c8b7112b351df813067961fcd3133a480.

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

  • New Features
    • Updated Long-Term Memory to version 1.3.19, with improvements to keeping memories distinct for trusted characters and relationships.
    • Memory links now better preserve their intended targets when identities overlap or are ambiguous.
    • Provider-generated event IDs are bounded to accommodate generated prefixes and suffixes.

🔄 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/1077 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/25/2026 **Status:** ✅ Merged **Merged:** 9/25/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/long-term-memory/preserve-subject-identity-normalization` --- ### 📝 Commits (2) - [`4edb2fe`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4edb2fe64dd91480b6c40f05fae2f49c9d03b295) fix(ltm): preserve resolved subject identities - [`a283103`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a28310355e52bbc4b7536957556dd9033bb5c867) fix(ltm): address review metadata and remap findings ### 📊 Changes **14 files changed** (+463 additions, -136 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.19.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/manifest.json` (+3 -3) 📝 `packages/long-term-memory/server.mjs` (+53 -53) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts` (+165 -32) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts` (+14 -10) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+187 -1) </details> ### 📄 Description > [!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 Closes #1042 ## Why this change Distinct trusted characters and relationship pairs could collapse onto display-name-derived memory targets. Resolved targets could also be rewritten during later normalization, and provider-generated IDs could exceed storage limits after server naming. ## What changed - Updated `long-term-memory` target aggregation to fail closed on ambiguous generic links. - Preserved resolved subject identities through normalization and compilation. - Bounded provider-generated event IDs after server prefixes and suffixes. - Restored `1.3.17` and `1.3.18` release history and catalog notes. - Made conflicting direct remaps fail closed and preserved section-scoped remap IDs. - Restored published Noodle `1.2.25` capability/home-widget metadata and Slurp Remastered `0.2.38` builder metadata. - Rebuilt Long-Term Memory `1.3.19` manifest, server bundle, artifact, and catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory`, plus restored existing Noodle and Slurp Remastered catalog build definitions. - Engine compatibility impact: Existing package compatibility ranges retained; Noodle restored to minimum Engine `2.4.6` with capability API `1.35`. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: Package artifact and metadata rebuilt; no permission, storage migration, restart, or uninstall behavior changes. ## 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 - Long-Term Memory extraction graph regression passed. - Long-Term Memory extraction reliability regression passed. - Long-Term Memory package typecheck passed. - Catalog validation, catalog lane tests, package locale validation, and catalog release-note regression passed. - `git diff --check` passed. - Final proof passed for HEAD `a28310355e52bbc4b7536957556dd9033bb5c867`; repository digest `694168a9fe86ad5043eea812b21cc5b5ae42d60aeba73580e0ea5c19d8c47d9c`; Engine digest `dfc66e605f78780d3ec53d63187b870c8b7112b351df813067961fcd3133a480`. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- No UI changes. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated Long-Term Memory to version 1.3.19, with improvements to keeping memories distinct for trusted characters and relationships. * Memory links now better preserve their intended targets when identities overlap or are ambiguous. * Provider-generated event IDs are bounded to accommodate generated prefixes and suffixes. <!-- 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:37 +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#1283
No description provided.