mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1284] [MERGED] fix(long-term-memory): 1.4.21 — keep extraction results that should be kept #1385
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1284
Author: @Promansis
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1277-extraction-validation📝 Commits (1)
4018b66fix(long-term-memory): 1.4.21 — keep extraction results that should be kept (#1277)📊 Changes
18 files changed (+691 additions, -241 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.21.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(+4 -0)📝
packages/long-term-memory/client.js(+1 -1)📝
packages/long-term-memory/manifest.json(+5 -5)📝
packages/long-term-memory/server.mjs(+56 -56)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx(+1 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts(+8 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts(+6 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts(+4 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts(+96 -4)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-extraction-graph.regression.ts(+467 -127)📄 Description
Pull request
Linked issue
Closes #1277
Why this change
Long-Term Memory could drop or misroute valid memories during extraction:
subjectKeys: []suppressed trusted name-based identity resolution, so a validsubjectNamesentry never got the chance to match.dimensionChangesmap contained only zero-valued entries was treated as an actual change, which rejected static memories that merely carried the optional field.subjectIdhad already been resolved by a named sibling in the same extraction batch was rejected instead of reusing that identity, even though the batch clearly identified the subject.All three caused legitimate character and relationship memories to be rejected or routed to the wrong memory. The issue reporter observed a real character-fact rejection in extraction logs.
What changed
evidence-unit-extraction.ts: an explicitly emptysubjectKeysarray now normalizes to an omitted field so name-based resolution still runs; the internal resolver stays strict.evidence-unit-validation.ts: a relationshipdimensionChangesmap whose deltas are all zero is no longer treated as a change.subject-identity.ts: a nameless, keyless character/relationship candidate may borrow the identity a named sibling resolved for the exact samebucket + subjectId. Only solid matches (trusted_key/exact_name/unique_alias) qualify; contested or skipped donors disqualify the key, and borrowing emits a review-requiredborrowed_subject_identitydiagnostic. The prediction path (identityKeyForUnit) adopts borrowed keys only when they resolve, mirroring the resolver.ReviewQueue.tsx:borrowed_subject_identitymaps to the existing "Normalized and corrected" review category.scripts/build-feature-packages.mjsandpackages/long-term-memory/CHANGELOG.md: Long-Term Memory 1.4.21.packages/long-term-memory/manifest.json,server.mjs,client.js,artifacts/long-term-memory-1.4.21.zip, andcatalog/{,v2/,v3/}{catalog,notes}.json. The priorartifacts/long-term-memory-1.4.20.zipis untouched.Package and security impact
long-term-memoryengine.min2.4.1 andmaxExclusiveare unchanged.restartRequiredunchanged; no storage schema or lifecycle change.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Local checks run on commit
4018b664b(the Engine-backed LTM regression usedMARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine):npm run check— 809 problems (0 errors, 809 pre-existing warnings)node scripts/test-catalog-lanes.mjs— passednode scripts/validate-package-locales.mjs— passednode scripts/validate-catalog.mjs— passed (39 packages; lanes v2=39, v3=39)node scripts/tests/catalog-release-notes.regression.mjs— passedtest-ltm.sh extraction-graph— passed (static grounding, change linkage, relationship causes, source-link normalization)git diff --check— passedThe affected package was not manually installed through a Marinara Engine UI in this work unit, so the installation, mode, restart, and uninstall checkboxes are intentionally left for human verification.
Documentation impact
No README catalog membership or compatibility change; the package version and catalog entries were regenerated from source.
UI evidence (if applicable)
The Review Queue change only routes a new diagnostic code into an existing localized category; there is no visual layout change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.