[PR #622] [MERGED] fix(long-term-memory): prevent ghost text after manual edits #1056

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/ghost-section-edit


📝 Commits (3)

  • 90a2feb fix(long-term-memory): manual section edits supersede accumulated contributions
  • 04ae512 build(long-term-memory): release 1.2.16
  • 1a8878f fix(long-term-memory): clear superseded source evidence

📊 Changes

9 files changed (+98 additions, -56 deletions)

View changed files

➕ artifacts/long-term-memory-1.2.16.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/server.mjs (+29 -29)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/storage.ts (+9 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-storage.regression.ts (+38 -3)

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

Why this change

  • Editing an extracted Long-Term Memory detail and saving could preserve the old source text above the user's rewrite. Deleted or partially rewritten lines became unremovable ghost content and could create contradictory memories.

What changed

  • Manual edits to an existing section now supersede its accumulated source/manual contributions instead of stacking a new manual contribution on top of them.
  • Added storage regression coverage proving a source-backed additive memory saves and reloads with exactly the edited text and one manual contribution.
  • Released the rebuilt Long-Term Memory package as 1.2.16.
  • Rebuilt manifest.json, server.mjs, artifacts/long-term-memory-1.2.16.zip, and the v2, v3, and legacy catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; existing 2.4.1 <= Engine < 4.0.0 range retained.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: manual section saves now persist the edited section as manual-owned content; extraction draft contribution merging and source retraction behavior remain 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

  • npm run check passed with zero errors; existing warnings remain.
  • node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, and git diff --check passed.
  • The documented Long-Term Memory regression suite passed against the rebuilt 1.2.16 artifact: storage, extraction graph/reliability, runtime, privileged routes, conversation-summary import, debug log, lifecycle, feedback clarity UI, and chat settings UI.
  • The focused storage regression covers the reported ghost-text case.

Documentation impact

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

UI evidence (if applicable)

Not applicable; this is a server-side storage behavior fix with automated package lifecycle coverage.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed manual edits to source-backed notes so they replace previous source content instead of appending to it.
    • Preserved unchanged sections while removing outdated source evidence from manually edited sections.
    • Ensured manual edits and their replacement behavior persist after reloading.
  • Updates

    • Updated the Long-Term Memory package to version 1.2.16.
    • Refreshed package metadata and integrity information across supported catalogs.

🔄 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/622 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/27/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/ghost-section-edit` --- ### 📝 Commits (3) - [`90a2feb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/90a2feb2823f90acce07bcbd6e7054a211463118) fix(long-term-memory): manual section edits supersede accumulated contributions - [`04ae512`](https://github.com/Pasta-Devs/Marinara-Agents/commit/04ae5124a45d1946e68e5d9a0988de358fbd2388) build(long-term-memory): release 1.2.16 - [`1a8878f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1a8878f0dc3d8bae2335eb3080aa4068663aced8) fix(long-term-memory): clear superseded source evidence ### 📊 Changes **9 files changed** (+98 additions, -56 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.2.16.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/server.mjs` (+29 -29) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/storage.ts` (+9 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-storage.regression.ts` (+38 -3) </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 Closes #618 ## Why this change - Editing an extracted Long-Term Memory detail and saving could preserve the old source text above the user's rewrite. Deleted or partially rewritten lines became unremovable ghost content and could create contradictory memories. ## What changed - Manual edits to an existing section now supersede its accumulated source/manual contributions instead of stacking a new manual contribution on top of them. - Added storage regression coverage proving a source-backed additive memory saves and reloads with exactly the edited text and one manual contribution. - Released the rebuilt Long-Term Memory package as `1.2.16`. - Rebuilt `manifest.json`, `server.mjs`, `artifacts/long-term-memory-1.2.16.zip`, and the v2, v3, and legacy catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; existing `2.4.1 <= Engine < 4.0.0` range retained. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: manual section saves now persist the edited section as manual-owned content; extraction draft contribution merging and source retraction behavior remain unchanged. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `npm run check` passed with zero errors; existing warnings remain. - `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, and `git diff --check` passed. - The documented Long-Term Memory regression suite passed against the rebuilt `1.2.16` artifact: storage, extraction graph/reliability, runtime, privileged routes, conversation-summary import, debug log, lifecycle, feedback clarity UI, and chat settings UI. - The focused storage regression covers the reported ghost-text case. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; this is a server-side storage behavior fix with automated package lifecycle coverage. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed manual edits to source-backed notes so they replace previous source content instead of appending to it. * Preserved unchanged sections while removing outdated source evidence from manually edited sections. * Ensured manual edits and their replacement behavior persist after reloading. * **Updates** * Updated the Long-Term Memory package to version 1.2.16. * Refreshed package metadata and integrity information across supported catalogs. <!-- 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:01:45 +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#1056
No description provided.