mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1005] [MERGED] fix(long-term-memory): resolve trusted subject keys before matching names #1240
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#1240
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/1005
Author: @Promansis
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @Promansis
Base:
staging← Head:fix/ltm-trusted-keys-899📝 Commits (3)
d30b316fix(long-term-memory): resolve trusted subject keys before matching names (#899)cc8f0f6fix(long-term-memory): reconcile structured backfill with trusted identities (#899)9db5649fix(long-term-memory): exclude invalid local notes from identity matching (#899)📊 Changes
14 files changed (+534 additions, -136 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.8.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(+5 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+49 -49)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts(+3 -1)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts(+146 -63)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-local-characters.regression.ts(+291 -1)📄 Description
Pull request
Linked issue
Closes #899
Why this change
subjectKeysalongsidesubjectNames, Long-Term Memory previously bypassed trusted key lookup and routed through name matching. In environments with duplicate or collision-prone character roster names, this forced ambiguity rejections or short/full-name heuristics even though the caller supplied authoritative catalog keys.What changed
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts: Prioritize trustedsubjectKeysoversubjectNamesinidentityKeyForUnitandresolveLtmSubjectIdentitiesWithContext.packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts: Treat identifier-valued structured character fields as subject IDs rather than display names.tests/long-term-memory-local-characters.regression.ts: Added synthetic regression coverage for trusted-key precedence, cross-family isolation, short/full-name reuse, batch-established key inheritance, identifier-valued character fields, and invalid key arrays.packages/long-term-memory/CHANGELOG.md: Added release notes for version1.3.8.packages/long-term-memory/manifest.json,packages/long-term-memory/server.mjs,artifacts/long-term-memory-1.3.8.zip,catalog/catalog.json,catalog/notes.json,catalog/v2/catalog.json,catalog/v2/notes.json,catalog/v3/catalog.json, andcatalog/v3/notes.json.Package and security impact
long-term-memory>=2.4.1 <4.0.0)1.3.8; preserves storage and update lifecycle; confirmed clean artifact installation and offline restart.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
MARINARA_AGENTS_ROOT=/home/damo/dev/marinara-worktrees/Marinara-Agents-ltm-trusted-keys-899 MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine /home/damo/.config/opencode/marinara-agents-local/test-ltm.sh all(all 18 LTM test suites passed, including local-characters, extraction-graph, extraction-reliability, and 1.3.8 installation).npm run typecheck:packagesandnpm run check(0 errors; 897 pre-existing warnings).git diff --check,node scripts/validate-catalog.mjs,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs, andnode scripts/tests/catalog-release-notes.regression.mjssuccessfully.MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine node scripts/build-feature-packages.mjs long-term-memory, including the 1.3.8 artifact and catalog lanes.test-ci.shwrapper was not run; its relevant formatting, lint, typecheck, security, catalog, localization, and release-note checks were run individually above.Documentation impact
UI evidence (if applicable)
Summary by CodeRabbit
New Features
Bug Fixes
Release
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.