mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1096] [MERGED] feat(long-term-memory): drop broad existing-note context from the extraction prompt (1.3.23) #1289
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#1289
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/1096
Author: @Promansis
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @Promansis
Base:
staging← Head:feature(long-term-memory)/1086-remove-broad-note-context📝 Commits (1)
e76d53dfeat(long-term-memory): drop broad existing-note context from the extraction prompt (1.3.23) (#1086)📊 Changes
23 files changed (+145 additions, -191 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.23.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(+10 -10)📝
packages/long-term-memory/manifest.json(+5 -5)📝
packages/long-term-memory/server.mjs(+35 -42)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx(+0 -15)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json(+0 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts(+6 -47)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction-config.ts(+0 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts(+0 -3)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts(+0 -16)📝
packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/constants.ts(+0 -1)📝
packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts(+3 -2)📝
scripts/build-feature-packages.mjs(+1 -1)...and 3 more files
📄 Description
Pull request
Linked issue
Closes #1086
Why this change
existingTypedNotescollection into every extraction prompt (viaformatExistingNotes), so the prompt grew with the vault and the model was treated as authoritative for existing note identity and link targets.What changed
long-term-memory(1.3.23) server extraction prompt:existingTypedNotesfield from the user prompt contract and deletedformatExistingNotes;subjectId/link targets as source-local hints, resolved against the vault after extraction;filterDominatedLtmSubjectNotesForPrompthelper and themaxExistingNoteTokensextraction option/constant;existingNoteMaxChunks/existingNoteMaxTokensbecause they bound post-extraction reconciliation retrieval.maxExistingNoteTokensvalues are discarded on load instead of rejecting the strict settings object.long-term-memory-extraction-graphandlong-term-memory-reconciliation-recallnow assert the prompt carries source text but noexistingTypedNotes;long-term-memory-routescovers the schema-level and HTTP-route migration.server.mjs,client.js,manifest.json,catalog/catalog.json,catalog/v2/*,catalog/v3/*,catalog/notes.json, and the newartifacts/long-term-memory-1.3.23.zip(sha256f505348520b6d58f78f01db65207e4050debeead641522a2b145a5fc235e42a7).Package and security impact
long-term-memoryengine.min/engine.maxExclusiveunchanged (2.4.1/4.0.0)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx,MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine):storage,extraction-graph,extraction-reliability,runtime,conversation-summary-import,candidate-reconciliation,reconciliation-recall(12/12 beyond the prompt window),index-keys,local-characters,scope-targets,scope-fallback-labels,source-task,debug-log, androutes— all passed.npm run typecheck:packages,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-package-locale-keys.mjs,node scripts/validate-catalog.mjs(verifies the artifact hash/size/contents),node scripts/tests/catalog-generatedat-determinism.regression.mjs, andnode scripts/tests/catalog-release-notes.regression.mjs— all passed.test-fast.sh(npm run check→ 0 errors, 849 pre-existing warnings;git diff --checkclean).Documentation impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.