mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 20:58:37 +07:00
[PR #1458] [MERGED] fix(long-term-memory): clear link-target drop messages, keep relationship summaries in recall, match restored retry set (1.4.52) #1473
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#1473
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/1458
Author: @Promansis
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1450-drop-messages-summary-retry📝 Commits (2)
33755effix(long-term-memory): clear link-target drop messages, keep relationship summaries in recall, match restored retry set (#1450)69eae5dchore(long-term-memory): release 1.4.52 (#1450)📊 Changes
20 files changed (+232 additions, -135 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.52.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(+6 -0)📝
packages/long-term-memory/client.js(+24 -24)📝
packages/long-term-memory/manifest.json(+5 -5)📝
packages/long-term-memory/server.mjs(+37 -37)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/source-task.ts(+13 -0)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx(+4 -20)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts(+17 -4)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/prompt-text.ts(+2 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-extraction-reliability.regression.ts(+39 -0)📝
tests/long-term-memory-feedback-clarity-ui.regression.mjs(+5 -1)📝
tests/long-term-memory-runtime.regression.ts(+17 -0)📝
tests/long-term-memory-source-task.regression.ts(+20 -0)📄 Description
Linked issue
Closes #1450
Why this change
The extractions audit found three small faults. These are tracker items EX-I6, EX-I7 and EX-I8, from audit F7, F8, F9 with probe H, and CLIENT-001.
unknown_link_targetmapped tounsupported_bucketand took that reason's generic text.low_lexical_evidencecompared the suggestion only against the first 500 tokens of the source, becausetokenizecaps there. A suggestion drawn from later in a long source was flagged. The warning also went straight into the result'sdiagnostics, so a suggestion that was then dropped still carried it.Summary:,formatLtmChunkPromptTextput the scores line first.normalizeBulletLineskeeps atext:/summary:line only when it comes first, so the summary sentence was dropped from the chat prompt.missingSourceIdsto the Retry failed set. The live result never did. Retrying a missing id asks for the same id again and gets the same "not found".What changed
sourceTokenSetuses the same regex and 4-character minimum astokenize. Building the set inside the validator leaves sharedutils.tsalone. The warning now goes throughunitDiagnostics, so a suggestion dropped by the first validation pass no longer carries it. A suggestion kept by the first pass and dropped later still carries it, like every other per-unit warning.long-term-memory-extraction-graphchecks that contract formissing_memoryandrel_removed_relationship. So the message has no ids, and the target stays in the diagnostic'sdetails.linkTarget. The message also says "could not find or did not keep" rather than "does not exist". The issue's own example links to a real memory outside the retrieval window, so that memory does exist.normalizeBulletLines. The runtime test'slegacyBulletscase relies on its rule.long-term-memory1.4.52, with the CHANGELOG entry, version, manifest, rebuiltserver.mjsandclient.js, artifact and catalog entries.upstream/staging(1.4.51) was already the branch base, so reland did not merge.Diff before the release commit: source +36/−25 lines, tests +81/−1, CHANGELOG +6.
Not included, as the issue states: resolving link targets outside the retrieval window instead of dropping the unit (audit F7 part 2, which needs a contract decision first).
Package and security impact
long-term-memorySummary:now includes that sentence, so those chunks use slightly more of the prompt budget.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
These checks were run by the coding agent, not by a person. Engine checkout
2039583ca, Nodev24.15.0.tests/long-term-memory-extraction-reliability.regression.ts: three assertions.low_lexical_evidencewarning.unitDiagnosticsmove, fails the lexical assertion.tests/long-term-memory-runtime.regression.ts: the probe-H relationship chunk renders the scores line, the summary sentence and the second sentence.legacyBulletsstill passes.tests/long-term-memory-source-task.regression.ts:retryableSourceIdsreturns[]for a result that only hasmissingSourceIds, and the retryable ids for a mixed live or restored result.tests/long-term-memory-feedback-clarity-ui.regression.mjs: the three call sites use the helper.33755ef86, these passed:test-ltm.shextraction-reliability,runtime,source-task,feedback-clarity-ui,extraction-graph,local-characters,conversation-summary-import,review-queue-ambiguous-link,routes-importsandbrowser.candidate-reconciliationandreconciliation-recall.typecheck-packages,test-fast.shand the four catalog gates.69eae5d7d, these all passed:test-fast.sh(npm run check,git diff --check) andtypecheck-packages long-term-memory.test-catalog-lanes,validate-package-locales,validate-catalogandcatalog-release-notes.test-ltm.shextraction-reliability,extraction-graph,local-characters,runtime,source-task,feedback-clarity-ui,routes-importsandbrowser.test-ltm.sh allandtest-ci.sh.Documentation impact
UI evidence (if applicable)
None. Two things change on screen:
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.