mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1246] [Issue]: Invalid LTM settings values poison recall #634
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#634
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?
Originally created by @Promansis on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1246
Originally assigned to: @Promansis on GitHub.
Summary
Persisting a null LTM recall weight or an unknown stored recall style makes the resolved settings invalid. Every subsequent recall and settings read throws instead of falling back to safe defaults.
Affected package
long-term-memory(LTM), package version1.4.7Expected behavior
Invalid persisted values should be ignored and replaced with the corresponding defaults:
balanced.GET /settings, and the in-product reset/update paths should continue to work so the invalid settings can be repaired.Actual behavior
The partial settings schema accepts null weights. The settings loader then spreads the parsed value over the defaults, so a null weight reaches the strict resolved schema and throws. For an unknown style, preprocessing assigns
undefinedto a present key; the spread removes thebalanceddefault and the strict enum parse throwsRequired.Once either value is persisted, all settings reads throw. This breaks generation recall, retrieval, extraction,
/search, andGET /settings. The normal PUT and reset paths also read the current settings first, so the installation cannot be repaired in-product.Steps to reproduce
PUT /settingsand{ "longTermMemorySemanticWeight": null }, or restore a backup containing a null weight./search, or the settings reset/update flow.The audit probe against the real source modules produced:
Environment
1.4.7Logs, screenshots, or video
See the reproduction output above. No private chat data or credentials are included.
Additional context
Relevant paths from the audit:
packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.tspackages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/settings.tspackages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.tspackages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/backup-restore.tsA likely fix is to remove null/undefined entries before merging parsed partial settings into defaults, or to delete invalid keys during preprocessing. Add regression coverage for both a null weight and an unknown style, including recovery through the normal settings paths.
Template check