[PR #2019] [MERGED] fix(long-term-memory): hold only the event-shaped memory, not the whole hands-off draft (1.5.28) #2076

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2019
Author: @Promansis
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @Promansis

Base: staging ← Head: fix(long-term-memory)/event-shaped-hold-one-item


📝 Commits (2)

  • 727a9c8 fix(long-term-memory): hold only the event-shaped memory, not the whole hands-off draft (#2018)
  • 54b85a2 chore(long-term-memory): release 1.5.28 (#2018)

📊 Changes

14 files changed (+166 additions, -105 deletions)

View changed files

➕ artifacts/long-term-memory-1.5.28.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 (+42 -42)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/evidence-unit-extraction.ts (+1 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/evidence-unit-validation.ts (+3 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-graph.regression.ts (+76 -20)

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

Why this change

  • In a hands-off mode, one memory worded like a scene action ("event-shaped character fact") sent the whole draft to Review, so every other memory in that batch waited with it. Everyday habit verbs ("keeps", "carries", "wears", "uses", "holds") set the warning off too, so ordinary character facts triggered it.

What changed

  • riskForEvidenceUnit rates an event-shaped unit medium, so only that memory waits in Review. Low-risk memories in the same batch still apply when auto-apply is on.
  • event_shaped_character_fact no longer gates the whole draft in diagnosticsRequireExtractionReview. The four borrowed-identity and reconciliation codes still do, and the warning itself is still emitted.
  • The five habit verbs are removed from the event-shaped pattern.
  • Regressions extend the extraction-graph suite: one held memory next to an applied world fact, the habit sentences raising no warning, and the truncated-diagnostics matrix (borrowed and borrowed-truncated still hold the draft).
  • Note: facts that the compiler groups into the same mutation as the flagged one wait with it (risk is the maximum per mutation). That matches the issue's Minimal fix.
  • Generated outputs rebuilt for long-term-memory 1.5.28: server.mjs, manifest, artifact zip and the catalog lanes. No client.js change.

Package and security impact

  • Affected package IDs: long-term-memory (1.5.27 → 1.5.28, patch)
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; no stored-format change

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

  • Not verified by hand. Run by the author's tooling on the pushed HEAD: validate-catalog.mjs, validate-package-locales.mjs, test-catalog-lanes.mjs, catalog-release-notes.regression.mjs, test-ltm.sh extraction-graph|routes and test-fast.sh, all exit 0. Also run before the release commit: test-ltm.sh extraction-reliability|storage|candidate-reconciliation|chat-transcript-import|local-characters, all exit 0.
  • One Opus review pass before the PR: no Blocking, High or Medium findings. Two Lows from this diff were repaired; two older ones were left.

Documentation impact

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

UI evidence (if applicable)

None attached.

🤖 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/2019 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/event-shaped-hold-one-item` --- ### 📝 Commits (2) - [`727a9c8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/727a9c828e818b9a57b870a4318226084c2f6b10) fix(long-term-memory): hold only the event-shaped memory, not the whole hands-off draft (#2018) - [`54b85a2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/54b85a2a929205321f54ea3cd80a76d76e1528d5) chore(long-term-memory): release 1.5.28 (#2018) ### 📊 Changes **14 files changed** (+166 additions, -105 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.5.28.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` (+42 -42) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/evidence-unit-extraction.ts` (+1 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/evidence-unit-validation.ts` (+3 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+76 -20) </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 #2018 ## Why this change - In a hands-off mode, one memory worded like a scene action ("event-shaped character fact") sent the whole draft to Review, so every other memory in that batch waited with it. Everyday habit verbs ("keeps", "carries", "wears", "uses", "holds") set the warning off too, so ordinary character facts triggered it. ## What changed - `riskForEvidenceUnit` rates an event-shaped unit `medium`, so only that memory waits in Review. Low-risk memories in the same batch still apply when auto-apply is on. - `event_shaped_character_fact` no longer gates the whole draft in `diagnosticsRequireExtractionReview`. The four borrowed-identity and reconciliation codes still do, and the warning itself is still emitted. - The five habit verbs are removed from the event-shaped pattern. - Regressions extend the extraction-graph suite: one held memory next to an applied world fact, the habit sentences raising no warning, and the truncated-diagnostics matrix (`borrowed` and `borrowed-truncated` still hold the draft). - Note: facts that the compiler groups into the same mutation as the flagged one wait with it (risk is the maximum per mutation). That matches the issue's Minimal fix. - Generated outputs rebuilt for `long-term-memory` 1.5.28: `server.mjs`, manifest, artifact zip and the catalog lanes. No `client.js` change. ## Package and security impact - Affected package IDs: `long-term-memory` (1.5.27 → 1.5.28, patch) - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; no stored-format change ## 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 - Not verified by hand. Run by the author's tooling on the pushed HEAD: `validate-catalog.mjs`, `validate-package-locales.mjs`, `test-catalog-lanes.mjs`, `catalog-release-notes.regression.mjs`, `test-ltm.sh extraction-graph|routes` and `test-fast.sh`, all exit 0. Also run before the release commit: `test-ltm.sh extraction-reliability|storage|candidate-reconciliation|chat-transcript-import|local-characters`, all exit 0. - One Opus review pass before the PR: no Blocking, High or Medium findings. Two Lows from this diff were repaired; two older ones were left. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None attached. 🤖 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:39:18 +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#2076
No description provided.