mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1362] [Feature]: LTM graph: store links between events so linked recall has more to follow #696
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#696
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 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1362
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Since 1.4.30 (#1360, #1361), LTM recalls a near-miss memory through an explanatory link from a memory it already recalled. The rule can only follow links that extraction stores, and extraction stores few useful ones.
In a measured real vault (1.4.18 era, 197 notes, 266 stored links):
extracted_fromlinks to source notes. Source notes have no chunks, so the recall graph drops them. The recall graph kept 182 nodes and 61 edges, and 87 nodes (48%) had no edge at all.paid_off_inlinks, although extraction has offeredplanted_inandpaid_off_insince 1.3.33 (#1138).Why extraction stores so few, at
upstream/staginga468f18e6(evidence-unit-extraction.tsunderpackages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/):claimKind: "change"must link to an event, and a timeline event must link only to its source note withextracted_from(serverEnforcedLinkRules, lines 81-92).involvesis not inallowedTimelineRelations(lines 1231-1241), so an event cannot name its participants.isExplanatoryLink(graph.ts:54-65) does not follow event↔event links even when they exist.Proposed package or change
Minimal fix, in order:
caused_byand threadpaid_off_in→ event links already appear in useful numbers, skip step 2.caused_by.caused_byis already in the timeline relation set (lines 71-79) and same-response targets are already allowed, so this should need no schema change. Confirm that in the compiler test.isExplanatoryLink, also allowcaused_bybetween twotimeline_eventnotes, andpaid_off_infrom athreadto atimeline_event. The seed rule and the 0.2 own-relevance floor from #1360 stay as they are.tests/long-term-memory-index-keys.regression.ts:367.Not in the minimal fix:
involveslinks. In the measured vault the two main characters appear in about 83% of recallable notes, so these links would connect nearly everything through two hub notes. They need a degree cap or hub damping first. Follow-up.Why should this be optional?
It changes only the existing optional
long-term-memorypackage. No Engine change. A graph weight of 0 (theexactpreset) still turns linked recall off.Alternatives considered
planted_in→ event and event → charactercaused_bylinks added no relevant memories in any round.Additional context
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: