mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1153] [Issue]: LTM activation aborts and rolls back when a vault note is schema-invalid #589
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#589
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 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1153
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory fails its activation self-check and rolls back to an old version when any vault note is schema-invalid. A legacy or malformed
sourcenote withoutprovenancemakesinitializeLtmStorethrow, so the package can never activate and the in-product repair path can never run.Affected package
long-term-memory(LTM)Expected behavior
A vault note that fails schema validation should be tolerated during activation and surfaced as a read error (as
readAllNotesUnlockedalready does), so LTM activates and the existingquarantine_malformed_notesrepair action becomes reachable. Full reads may still surface the failure.Actual behavior
selfCheck()->initializeLtmStore()->readLtmNoteSummary()->rebuildLtmNoteSummary()hard-parses every vault note withparseStoredLtmNote. When the note-summary index is missing or invalid, the rebuild re-reads the whole vault, and the firsttype:"source"note withoutprovenancethrows:The throw propagates out of
CapabilityModuleRuntime.activateOne, so the package is rolled back (observed:long-term-memory@1.3.33rolled back to1.0.2020).Steps to reproduce
packages/server/data/long-term-memory/vault/sources/<id>.jsonwith"type": "source"and noprovenancefield.indexes/note-summary.jsonis absent so the summary rebuild runs.Minimal direct reproduction of the failing parse:
Environment
long-term-memory@1.3.33Logs, screenshots, or video
Additional context
The tolerance already exists for note listing (
LongTermMemoryStorage.readAllNotesUnlockedcollects malformed notes aserrors) andmaintenance.tshas aquarantine_malformed_notesrepair action built on the tolerant parse.rebuildLtmNoteSummarybypasses that tolerance, which is the gap.vault-snapshot.tsdocuments that malformed notes should be picked up by a later quarantine/repair rather than replayed as a hard failure.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: