mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #721] [Issue]: speed up Long-Term Memory source views #368
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#368
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 (Sep 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/721
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory source-oriented views can take a long time to load as note data is read repeatedly. The Review Queue projection currently performs two note-ID lookups for the same response, while Memory Vault and related source views also perform broad note loads.
Affected package
Long-Term Memory (
long-term-memory)Expected behavior
Review Queue, Memory Vault, and related source views should load without redundant note-storage searches. The Review Queue projection should fetch the union of source and mutation target note IDs once, preserving the current response and projection behavior.
Actual behavior
Review Queue projection calls
getNotesByIdsseparately for mutation overlays and source notes. Because note lookup initializes and locks the package store and reads note files, this duplicates storage work and contributes to slow source-oriented UI loads.Steps to reproduce
Environment
Logs, screenshots, or video
Not captured; this is a load-time/performance report.
Additional context
The initial implementation slice is the uncommitted change in
draft-review.ts, which combines source and mutation target IDs and performs one deduplicatedgetNotesByIdscall. Memory Vault and other source-related broad-load behavior should be measured before extending the fix.Template check
@Promansis commented on GitHub (Sep 5, 2026):
Validation correction: the scope-fallback-label regression is pre-existing on upstream/staging, but it is related to this work because it directly affects Memory Vault, one of the slow source-oriented surfaces under investigation. The current patch only changes the Review Queue server lookup and does not fix that Memory Vault correctness issue. Full LTM validation therefore remains blocked by this related pre-existing failure.
@Promansis commented on GitHub (Sep 5, 2026):
Resolved the validation blocker: Memory Vault already applies the missing-persona fallback through MemoryAvailabilityWorkbench -> availabilityEntries. The regression assertion was stale after the availability UI refactor and now verifies the current wiring. Focused scope fallback, full LTM suite, rebuilt lifecycle, and final local CI all pass.
@Promansis commented on GitHub (Sep 5, 2026):
Unified fix completed for the 1.2.20 source-loading regression. Review Queue now performs one deduplicated note lookup, and Memory Vault/Sources scope-target loading reuses the route note snapshot instead of rescanning the vault for every chat. Existing all-chat local-character behavior is preserved. Full LTM suite, rebuilt lifecycle/artifact checks, final CI/catalog gate, and branch review all pass.