mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1154] [MERGED] fix(long-term-memory): 1.3.34 — stay active when a vault note fails validation #1315
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#1315
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/1154
Author: @Promansis
Created: 9/30/2026
Status: ✅ Merged
Merged: 9/30/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/ltm-activation-malformed-notes📝 Commits (1)
71887b3fix(long-term-memory): 1.3.34 — stay active when a vault note fails validation (#1153)📊 Changes
13 files changed (+156 additions, -74 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.34.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(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+30 -30)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/index-state.ts(+14 -3)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-storage.regression.ts(+68 -1)📄 Description
Pull request
Linked issue
Closes #1153
Why this change
Long-Term Memory failed its activation self-check and rolled back to
1.0.2020whenever the vault contained a note that no longer passed schema validation.initializeLtmStore->readLtmNoteSummary->rebuildLtmNoteSummaryhard-parsed every vault note, so a legacysourcenote without importprovenancethrew aZodErrorand aborted activation before the existingquarantine_malformed_notesrepair path could run. Any vault with pre-provenance source notes hits the same wall on upgrade.What changed
packages/long-term-memory/src/engine/.../services/long-term-memory/index-state.ts:rebuildLtmNoteSummarynow skips only notes that are present but malformed (SyntaxError/ZodError). Operational file-read failures stay terminal, so the derived summary can never silently undercount a vault it could not read. This mirrors the tolerance already used byreadAllNotesUnlocked.tests/long-term-memory-storage.regression.ts: newvault-summary-tolerancescenario proves a malformed source note no longer aborts activation, typed reads still surface it, an unreadable note rejects the rebuild, and no partial summary is cached.scripts/build-feature-packages.mjs: package version1.3.33->1.3.34.packages/long-term-memory/CHANGELOG.md: 1.3.34[highlight]release note.server.mjs,manifest.json,catalog/{,v2/,v3/}{catalog,notes}.json, andartifacts/long-term-memory-1.3.34.zip.Package and security impact
long-term-memory1.3.34.engine.min/engine.maxExclusiveunchanged (>=2.4.1 <4.0.0).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
rebuildLtmNoteSummary->storage.ts:218->selfCheck-> activation,ZodError: Source notes must store import provenance.test-fast.sh(Prettier + ESLint +git diff --check): pass.test-ltm.sh storage|runtime|index-keys|routes-notes: pass.test-ltm.sh installation:1.3.34 installation: install, offline restart, backup inclusion, uninstall, reinstall, durable-byte preservation ok.node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs: pass.1.3.34archive hash and byte count.Documentation impact
UI evidence (if applicable)
None; server-side activation and storage recovery only.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.