mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1516] [MERGED] fix(long-term-memory): match event ids in a written cause on whole words (1.4.62) #1523
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#1523
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/1516
Author: @Promansis
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/cause-matcher-word-boundary📝 Commits (4)
ac186e2fix(long-term-memory): match event ids in a written cause on whole wordsc88a90echore(long-term-memory): release 1.4.60 (#1515)f379f85Merge upstream/staging into fix(long-term-memory)/cause-matcher-word-boundary; release long-term-memory 1.4.6188223e7Merge upstream/staging into fix(long-term-memory)/cause-matcher-word-boundary; release long-term-memory 1.4.62📊 Changes
13 files changed (+170 additions, -90 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.62.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(+34 -34)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction/structured-summary-normalizer.ts(+14 -16)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-extraction-graph.regression.ts(+78 -0)📄 Description
Pull request
Linked issue
Closes #1515
Why this change
caused_by: the training). Extraction then looks for a matching event among the answer's events and the existing timeline notes, but compared ids as plain substrings. An event with a short id such asrainmatched "the training", so the relationship linked to the wrong event; a short cause such asrainortimematched insidetraining_sessionor everytimeline_…id. A wrong match could also tie with the right one and lose it. Since the structured-summary backfill fix, character-line causes use the same matcher.art_showwas found in "will start showing".What changed
long-term-memory:fuzzyTimelineTargetFromCauseandexactTimelineTargetFromLinelook for event ids on whole_-separated words through one small helper, which also acceptssoresafter the id's last word so a plural cause ("the training sessions") still finds its event. The cause check no longer compares thetimeline_prefix. The word-overlap score and the exact-id match are unchanged.tests/long-term-memory-extraction-graph.regression.ts. Rebuiltpackages/long-term-memorybundles, artifact and catalog entry.long-term-memory1.4.62, with the CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries, on top of stagingd1c6c7d78(1.4.61).Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
staging(a relationship and a character line with the cause "the training" link to an existingtimeline_rain) and pass with the fix. Cases: "the training" and "timeline" don't link totimeline_rain, "rain" doesn't link totimeline_training_session, "fire" doesn't link totimeline_fireworks_show; "the long training session at the old barracks" findstimeline_training_sessionbesidetimeline_rain(onstagingthe two tie and neither is found); "the training sessions" findstimeline_training_session; a change fact "Mara will start showing her students the old script." with a cause that matches nothing gets no link to a declaredart_show. These cases run the normalizer; end to end, a relationship change keeps a found link only when the event comes from the same source, as before (the same-source rule drops a change linked to another source's event).Documentation impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.