[PR #1129] [MERGED] fix(long-term-memory): keep event-shaped character facts for review (1.3.31) #1304

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

📋 Pull Request Information

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

Base: staging ← Head: fix(ltm)/character-event-outcome


📝 Commits (3)

  • e896754 fix(long-term-memory): keep event-shaped character facts for review (1.3.31)
  • 14b1927 Merge upstream/staging into fix(ltm)/character-event-outcome
  • 483bf1b fix(long-term-memory): keep truncated event-shaped warnings review-gated

📊 Changes

19 files changed (+486 additions, -155 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.31.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 (+5 -0)
📝 packages/long-term-memory/client.js (+1 -1)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+36 -36)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts (+21 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts (+5 -3)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts (+19 -3)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts (+27 -8)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+3 -3)
📝 tests/long-term-memory-extraction-graph.regression.ts (+320 -48)

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

Why this change

  • Durable character abilities, roles, and possessions phrased with event-like verbs were hard-dropped as event_shaped_character_fact, so legitimate durable outcomes never reached review.
  • Keep those candidates as review warnings and block low-risk auto-apply until a human confirms the durable outcome.

What changed

  • Package long-term-memory 1.3.31 (skips publishing as 1.3.30; staging already owns that version from #1125).
  • Validation: event-shaped character facts warn instead of hard-drop; reviewRequiredForExtraction includes that warning so applyLowRisk cannot auto-commit.
  • Review-queue locale copy updated for the confirm-or-move guidance.
  • Graph regression covers keep+warn plus commit-path applyLowRisk:true with appliedMutationIds.length === 0.
  • Browser fixture refreshed off the still-dropped scene_only_tone_or_anchor path.
  • Rebuilt client.js, server.mjs, artifacts/long-term-memory-1.3.31.zip, and catalog/notes entries after merging staging's 1.3.30 AND-filter vault work.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: unchanged (>=2.4.1 <4.0.0)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond the normal package update; extraction fallback/auto-apply gate is contract-sensitive and covered by focused LTM regressions

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

  • Local agent validation on final HEAD 14b1927d0 (after merge of upstream/staging):
    • test-ltm.sh extraction-graph
    • test-ltm.sh extraction-reliability
    • test-ltm.sh local-characters
    • npx tsx tests/long-term-memory-reconciliation-recall.regression.ts
    • test-ltm.sh browser
    • test-ltm.sh feedback-clarity-ui (staging merge surface)
    • test-fast.sh
    • node scripts/test-catalog-lanes.mjs
    • node scripts/validate-package-locales.mjs
    • node scripts/validate-catalog.mjs
    • node scripts/tests/catalog-release-notes.regression.mjs
    • git diff --check
  • Engine checkout used for LTM runs: /home/damo/dev/Marinara-Engine @ 41d5d12
  • Did not install/update through a live Engine UI in this Publish unit.

Documentation impact

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

UI evidence (if applicable)

  • No UI layout change in this issue; review-queue recommended-fix copy for event-shaped character facts was updated. Staging merge also brings #1125 Memory Vault second-place AND filter (already on staging).

Summary by CodeRabbit

  • New Features
    • Event-shaped character facts are retained for human review instead of being discarded. Review guidance helps distinguish lasting character outcomes from ordinary scene actions.
    • A review warning prevents low-risk changes from being applied automatically, even when the warning is not included in the displayed diagnostic list.

🔄 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/1129 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(ltm)/character-event-outcome` --- ### 📝 Commits (3) - [`e896754`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e896754bd81f6595c744d65c1ea9c9b8a8efc408) fix(long-term-memory): keep event-shaped character facts for review (1.3.31) - [`14b1927`](https://github.com/Pasta-Devs/Marinara-Agents/commit/14b1927d0ba2a94aa13a97519fbcfdcb39abd8b5) Merge upstream/staging into fix(ltm)/character-event-outcome - [`483bf1b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/483bf1bd17e30285cb4ba4fb45e92ca619321414) fix(long-term-memory): keep truncated event-shaped warnings review-gated ### 📊 Changes **19 files changed** (+486 additions, -155 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.31.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` (+5 -0) 📝 `packages/long-term-memory/client.js` (+1 -1) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+36 -36) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts` (+21 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts` (+5 -3) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts` (+19 -3) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts` (+27 -8) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+3 -3) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+320 -48) </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 <!-- Every PR should reference an issue or feature request. --> Closes #1126 ## Why this change <!-- What user problem, package bug, or catalog goal does this solve? --> - Durable character abilities, roles, and possessions phrased with event-like verbs were hard-dropped as `event_shaped_character_fact`, so legitimate durable outcomes never reached review. - Keep those candidates as review warnings and block low-risk auto-apply until a human confirms the durable outcome. ## What changed <!-- Include affected package IDs and generated outputs. --> - Package `long-term-memory` **1.3.31** (skips publishing as 1.3.30; staging already owns that version from #1125). - Validation: event-shaped character facts warn instead of hard-drop; `reviewRequiredForExtraction` includes that warning so `applyLowRisk` cannot auto-commit. - Review-queue locale copy updated for the confirm-or-move guidance. - Graph regression covers keep+warn plus commit-path `applyLowRisk:true` with `appliedMutationIds.length === 0`. - Browser fixture refreshed off the still-dropped `scene_only_tone_or_anchor` path. - Rebuilt `client.js`, `server.mjs`, `artifacts/long-term-memory-1.3.31.zip`, and catalog/notes entries after merging staging's 1.3.30 AND-filter vault work. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: unchanged (`>=2.4.1 <4.0.0`) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond the normal package update; extraction fallback/auto-apply gate is contract-sensitive and covered by focused LTM regressions ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 <!-- Describe exactly what you tested, step by step. --> - Local agent validation on final HEAD `14b1927d0` (after merge of `upstream/staging`): - `test-ltm.sh extraction-graph` - `test-ltm.sh extraction-reliability` - `test-ltm.sh local-characters` - `npx tsx tests/long-term-memory-reconciliation-recall.regression.ts` - `test-ltm.sh browser` - `test-ltm.sh feedback-clarity-ui` (staging merge surface) - `test-fast.sh` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-package-locales.mjs` - `node scripts/validate-catalog.mjs` - `node scripts/tests/catalog-release-notes.regression.mjs` - `git diff --check` - Engine checkout used for LTM runs: `/home/damo/dev/Marinara-Engine` @ `41d5d12` - Did not install/update through a live Engine UI in this Publish unit. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for package UI changes. --> - No UI layout change in this issue; review-queue recommended-fix copy for event-shaped character facts was updated. Staging merge also brings #1125 Memory Vault second-place AND filter (already on staging). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Event-shaped character facts are retained for human review instead of being discarded. Review guidance helps distinguish lasting character outcomes from ordinary scene actions. * A review warning prevents low-risk changes from being applied automatically, even when the warning is not included in the displayed diagnostic list. <!-- 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:08:02 +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#1304
No description provided.