mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
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#1368
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/1253
Author: @Promansis
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1250-bounded-recall-scoring📝 Commits (2)
9686828fix(long-term-memory): 1.4.9 — bound per-lane recall scoring (#1250)44105effix(long-term-memory): escape persisted keyword keys in recall matching (#1250)📊 Changes
16 files changed (+176 additions, -91 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.9.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(+5 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+43 -43)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/keyword-index.ts(+16 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/ranking.ts(+2 -3)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+2 -3)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-index-keys.regression.ts(+51 -0)📝
tests/long-term-memory-runtime.regression.ts(+17 -0)📄 Description
Pull request
Linked issue
Closes #1250
Why this change
Recall ranking was not bounded per lane, so the ranking contract broke in three ways:
kingmatching insidelooking) reached full keyword relevance.What changed
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/ranking.ts— removed the unboundedrawScoreBoost; fused score and lane scores now use only the bounded per-lane score..../retrieval.tsand.../keyword-index.ts— the keyword lane raw score is nowmin(1, score / LTM_KEYWORD_MAX_SCORE)(exact-phrase ceiling) instead ofscore / topHit, and fuzzy keyword containment requires whole-token or word-boundary matches.packages/long-term-memory/CHANGELOG.md,manifest.json,server.mjs,artifacts/long-term-memory-1.4.9.zip, catalog lanes andnotes.json— version 1.4.9 with a changelog entry; package, artifact and catalogs rebuilt from source.scripts/build-feature-packages.mjs— long-term-memory version 1.4.8 → 1.4.9.tests/long-term-memory-index-keys.regression.ts(fusion probes across styles, unbounded-raw invariant, keyword substring negative, fuzzy ceiling) andtests/long-term-memory-runtime.regression.ts(partial keyword match stays below the full keyword weight).keyword-index.tsnow escapes regex metacharacters in persisted keyword keys before building the containment pattern, so a corrupted or foreign index key cannot make recall throw.Package and security impact
long-term-memory>=2.4.1 <4.0.0, API 1.6)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
searchLtmKeywordIndexreturnedkeyword:fuzzy:kingat score 1.6136 for the query "I was looking for the map".test-ltm.sh index-keys,test-ltm.sh runtime,test-ltm.sh source-task, andtests/long-term-memory-reconciliation-recall.regression.tspass locally.cobalt(keyword key threwSyntaxError: Invalid regular expression ... Unterminated groupbefore the escape; the regression now passes.npm run check,npm run typecheck:packages,npm run test:security,node scripts/test-catalog-lanes.mjs,validate-package-locales,validate-package-locale-keys,validate-catalog,catalog-generatedat-determinism,catalog-release-notes,vendored-engine,git diff --check.node scripts/build-feature-packages.mjs long-term-memoryproduced the manifest,server.mjs, artifact ZIP and catalog entries committed here.Documentation impact
UI evidence (if applicable)
Not applicable: server-side recall scoring change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.