[PR #1933] [MERGED] fix(long-term-memory): apply a later piece's thread and relationship updates together (1.5.16) #2036

Closed
opened 2026-11-07 16:38:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/section-update-one-at-a-time


📝 Commits (2)

  • e1ca040 fix(long-term-memory): apply a later piece's thread and relationship updates together (#1930)
  • 88340b1 chore(long-term-memory): release 1.5.16 (#1930)

📊 Changes

15 files changed (+229 additions, -94 deletions)

View changed files

➕ artifacts/long-term-memory-1.5.16.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 (+49 -49)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/draft-projector.ts (+14 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/reconciliation.ts (+8 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/source-processing.ts (+3 -3)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-storage.regression.ts (+111 -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 #1930

Why this change

Since #1782, each later chat piece continues the previous piece's open threads in place, and the compiler replaces a relationship's state, items and progression on purpose. Apply treated every such in-place section update as a destructive rewrite that may not be applied beside other rows, so accepting a later piece's draft in one go left its thread and relationship updates blocked behind the one-at-a-time notice, and auto-apply left the whole draft for review.

What changed

  • isDestructiveLtmRewrite (draft-projector.ts) separates a replacement the compiler intends from a change that removes or re-labels something. A section update on a non-anchor note no longer counts; set_status, set_title, set_subjects and any section update on an anchor note still apply one at a time.
  • Both guards in reconciliation.ts (preflight and apply) use it. The row still reports the rewrite disposition with its before/after diff; the error code, message and client are unchanged.
  • source-processing.ts: comment only, naming the cases that still leave a draft for review.
  • Regression in tests/long-term-memory-storage.regression.ts: a thread update beside add_link applies together and replaces the text; the same update on an anchor note stays blocked and apply rejects.
  • Release: long-term-memory 1.5.16, rebuilt server.mjs, manifest, artifact zip and catalog entries (generated by scripts/build-feature-packages.mjs long-term-memory).

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; manifest engine range unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond the normal package update; stored notes and drafts are 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

Documentation impact

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

UI evidence (if applicable)

None; no client change.

🤖 Generated with Claude Code


🔄 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/1933 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/section-update-one-at-a-time` --- ### 📝 Commits (2) - [`e1ca040`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e1ca0404297e83db3943240b9cd03f594b8ad309) fix(long-term-memory): apply a later piece's thread and relationship updates together (#1930) - [`88340b1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/88340b121d37663bb847c326c5896377a9708f0d) chore(long-term-memory): release 1.5.16 (#1930) ### 📊 Changes **15 files changed** (+229 additions, -94 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.5.16.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` (+49 -49) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/draft-projector.ts` (+14 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/drafts/reconciliation.ts` (+8 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/source-processing.ts` (+3 -3) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-storage.regression.ts` (+111 -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`. ## Linked issue Closes #1930 ## Why this change Since #1782, each later chat piece continues the previous piece's open threads in place, and the compiler replaces a relationship's state, items and progression on purpose. Apply treated every such in-place section update as a destructive rewrite that may not be applied beside other rows, so accepting a later piece's draft in one go left its thread and relationship updates blocked behind the one-at-a-time notice, and auto-apply left the whole draft for review. ## What changed - `isDestructiveLtmRewrite` (draft-projector.ts) separates a replacement the compiler intends from a change that removes or re-labels something. A section update on a non-anchor note no longer counts; `set_status`, `set_title`, `set_subjects` and any section update on an anchor note still apply one at a time. - Both guards in reconciliation.ts (preflight and apply) use it. The row still reports the `rewrite` disposition with its before/after diff; the error code, message and client are unchanged. - source-processing.ts: comment only, naming the cases that still leave a draft for review. - Regression in `tests/long-term-memory-storage.regression.ts`: a thread update beside `add_link` applies together and replaces the text; the same update on an anchor note stays blocked and apply rejects. - Release: `long-term-memory` 1.5.16, rebuilt `server.mjs`, manifest, artifact zip and catalog entries (generated by `scripts/build-feature-packages.mjs long-term-memory`). ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; manifest `engine` range unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond the normal package update; stored notes and drafts are 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 - ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None; no client change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:57 +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#2036
No description provided.