mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1192] [MERGED] fix(long-term-memory): 1.3.36 — drop cached vault scan on quarantine and add private vault-mutation boundary #1338
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#1338
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/1192
Author: @Promansis
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1179-quarantine-vault-hooks📝 Commits (2)
cb586fcfix(long-term-memory): 1.3.36 — drop cached vault scan on quarantine and add private vault-mutation boundary (#1179)3fa6d22test(long-term-memory): strengthen the #1179 vault-mutation regression assertions📊 Changes
16 files changed (+280 additions, -82 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.36.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(+5 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+41 -41)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/maintenance.ts(+4 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/runtime.ts(+21 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/server-entry.ts(+3 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+127 -0)📝
tests/long-term-memory-storage.regression.ts(+39 -0)📄 Description
Pull request
Linked issue
Closes #1179
Why this change
Official maintenance (
quarantine_malformed_notes) moved a malformed vault note out of the vault but left the parsed vault snapshot cached, so the next full read and recall kept serving the removed note's id and text until a package restart. The package also had no private, lock-preserving boundary for the Engine to publish or roll back a vault change and reset the package caches first.What changed
long-term-memorymaintenance.ts: drop the cached vault snapshot after each successful quarantine rename, so the subsequent index rebuild and later reads stop serving the quarantined note.long-term-memoryruntime.ts: add privatewithLongTermMemoryVaultMutation(root, operation)that runs inside the reentrant vault lock and resets the package initialization/snapshot caches before and after, preserving the operation's return value or error.long-term-memoryserver-entry.ts: registerwithVaultMutationon thelong-term-memory:runtimeservice using the captured activation root.recallandrecordPromptAcceptedare unchanged, and the hook unregisters with the service on cleanup.manifest.json,server.mjs, thecatalog/,catalog/v2, andcatalog/v3lanes and notes, andartifacts/long-term-memory-1.3.36.zip.Package and security impact
long-term-memoryengine.minstays 2.4.1 andmaxExclusiveis unchanged.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
cb586fcdb:npm run check,scripts/test-catalog-lanes.mjs,scripts/validate-package-locales.mjs,scripts/validate-catalog.mjs,scripts/tests/catalog-release-notes.regression.mjs,npm run typecheck:packages, andtest-fast.shall passed.test-ltm.sh storage,runtime,routes,routes-backup, andinstallationpassed withMARINARA_ENGINE_ROOTpointed at a local Engine checkout. The 1.3.36 installation scenario exercised install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation.fa02b624c623874dd909185f5850ec136405918a30e8e26101e5e31eea817c54, 1375776 bytes.Documentation impact
UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.