[PR #908] [MERGED] fix(long-term-memory): preserve durable fact classification #1187

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/fact-classification-validation


📝 Commits (2)

  • c08f5f4 fix(long-term-memory): preserve durable fact classification (#907)
  • 88214d9 fix(long-term-memory): reject mixed transient character claims (#907)

📊 Changes

14 files changed (+225 additions, -60 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.3.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/server.mjs (+36 -36)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts (+8 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts (+1 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-graph.regression.ts (+136 -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 #907

Why this change

  • Long-Term Memory could classify idiomatic durable facts as developments, or reject durable character claims when incidental scene verbs such as met or told appeared in their wording.

What changed

  • Narrowed structured character development detection to explicit transition/loss constructions while preserving genuine change claims.
  • Narrowed event-shaped character validation to explicit durable role, affiliation, and capability phrases, retaining rejection of transient actions.
  • Added static, transition, durable-affiliation, and transient-action regressions.
  • Rebuilt Long-Term Memory package 1.3.3, its server bundle, artifact, manifest, release notes, and catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: remains Engine 2.4.1 through <4.0.0; rebuilt against Engine 2.4.1 commit c0ce4d8849e072db2bfe300bbed22aa700ce7b49
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package patch update only; installation and offline restart validated

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

  • Full test-ltm.sh all passed against the matching Engine 2.4.1 checkout, including extraction graph/reliability, browser/routes/storage, supported mode coverage, exact artifact installation, offline restart, uninstall, and cleanup.
  • Full test-ci.sh passed with exit 0.
  • npm run check passed with 0 errors; existing lint warnings remain.
  • Final repair-delta review reported no unresolved findings.

Documentation impact

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

UI evidence (if applicable)

Not applicable; no UI behavior changed.

Summary by CodeRabbit

  • Bug Fixes

    • Static character and world facts are now preserved when incidental narrative wording appears.
    • Lasting character statuses, roles, affiliations, and abilities are no longer incorrectly rejected as temporary events.
    • Character statements are classified more accurately, reducing false “development” or change labels.
  • Package Update

    • Long-Term Memory updated to version 1.3.3 with refreshed release metadata and downloadable package artifacts.

🔄 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/908 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/18/2026 **Status:** ✅ Merged **Merged:** 9/18/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/fact-classification-validation` --- ### 📝 Commits (2) - [`c08f5f4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c08f5f41e01159b952bf628a56301346f13954c4) fix(long-term-memory): preserve durable fact classification (#907) - [`88214d9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/88214d9f10b81e970dfa24d979fb1047bc75f16f) fix(long-term-memory): reject mixed transient character claims (#907) ### 📊 Changes **14 files changed** (+225 additions, -60 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/server.mjs` (+36 -36) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts` (+8 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts` (+1 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+136 -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 #907 ## Why this change - Long-Term Memory could classify idiomatic durable facts as developments, or reject durable character claims when incidental scene verbs such as `met` or `told` appeared in their wording. ## What changed - Narrowed structured character development detection to explicit transition/loss constructions while preserving genuine change claims. - Narrowed event-shaped character validation to explicit durable role, affiliation, and capability phrases, retaining rejection of transient actions. - Added static, transition, durable-affiliation, and transient-action regressions. - Rebuilt Long-Term Memory package `1.3.3`, its server bundle, artifact, manifest, release notes, and catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: remains Engine `2.4.1` through `<4.0.0`; rebuilt against Engine `2.4.1` commit `c0ce4d8849e072db2bfe300bbed22aa700ce7b49` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package patch update only; installation and offline restart validated ## 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 - Full `test-ltm.sh all` passed against the matching Engine `2.4.1` checkout, including extraction graph/reliability, browser/routes/storage, supported mode coverage, exact artifact installation, offline restart, uninstall, and cleanup. - Full `test-ci.sh` passed with exit 0. - `npm run check` passed with 0 errors; existing lint warnings remain. - Final repair-delta review reported no unresolved findings. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; no UI behavior changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Static character and world facts are now preserved when incidental narrative wording appears. - Lasting character statuses, roles, affiliations, and abilities are no longer incorrectly rejected as temporary events. - Character statements are classified more accurately, reducing false “development” or change labels. - **Package Update** - Long-Term Memory updated to version 1.3.3 with refreshed release metadata and downloadable package artifacts. <!-- 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:04:54 +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#1187
No description provided.