mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
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#1407
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/1333
Author: @Promansis
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/robustness-cleanup📝 Commits (10+)
5c62b6bfix(long-term-memory): evict the least recently seen rejected suggestion at the cap (#1328)4bc1b3bfix(long-term-memory): rebuild a stale recall index without quarantining it (#1328)c7c0a6efix(long-term-memory): redirect rejected suggestions when a repair merges notes (#1328)ced493efix(long-term-memory): keep the newest three repair backups and delete them with all data (#1328)e66ec3efix(long-term-memory): keep activation and recall working over damaged usage data and one invalid note (#1328)0e5d5d9fix(long-term-memory): prove the stale-index rebuild skips an invalid note (#1328)61efba8Merge upstream/staging into fix(long-term-memory)/robustness-cleanupe1db385fix(long-term-memory): skip only invalid notes in recall and cover repair backups in running lanes (#1328)4f5ffdefix(long-term-memory): keep the current repair backup on a tie and surface a failed usage quarantine (#1328)093ec9dMerge branch 'staging' into fix(long-term-memory)/robustness-cleanup📊 Changes
25 files changed (+573 additions, -162 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.29.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(+53 -53)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/backup-restore.ts(+5 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/identity-repair.ts(+5 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/note-fork-repair.ts(+6 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts(+7 -3)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rejected-suggestions.ts(+13 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retention.ts(+39 -0)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/runtime.ts(+0 -3)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/storage.ts(+46 -24)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/usage.ts(+16 -23)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/vault-snapshot.ts(+6 -2)...and 5 more files
📄 Description
Pull request
Linked issue
Closes #1328
Why this change
A re-check of the Long-Term Memory 1.4.8 architecture audit against 1.4.28 left five robustness gaps where one damaged or unexpected file, or accumulated bookkeeping, could break activation or recall, lose reviewer decisions, or leave data behind:
usage.jsonfailed activation and every recall.Out of scope, per the issue: the settings unknown-field activation failure (pinned by the storage regression), non-JSON drafts in
redirectReferences/renameNoteId, and the performance findings (separate issue after benchmarking).What changed
One commit per fix (order differs from the issue numbering because the fix-1 test extends the block fix 5 creates), then follow-ups from self-review and CodeRabbit, and a merge of
upstream/staging:usage.jsonis quarantined and restarted from empty, and recall (index load and rebuild) skips invalid notes while full reads and writes still refuse to run over them.logger.debugargument-order fix.skipInvalidskips only files that were read but failed validation; an unreadable vault folder or file still fails the read. The repair-backup regression moved into the storage lane and an identity-repair prune case was added to the routes lane (both run by the LTM test runner), and the schema-invalidusage.jsoncase is covered.usage.jsonthat cannot be set aside surfaces the failure instead of being replaced by empty statistics.Package:
long-term-memory1.4.28 -> 1.4.29 (CHANGELOG entry added). Generated outputs rebuilt from source withscripts/build-feature-packages.mjs long-term-memory: manifest,server.mjs,artifacts/long-term-memory-1.4.29.zip, catalog lanes. Rebuilding after the staging merge reproduces them byte for byte.Known deviations: the prune helper lives in
retention.ts; a failed repair leaves its backup until a later successful repair prunes.Package and security impact
long-term-memoryengine.min/engine.maxExclusiveunchangedusage.jsonis quarantined and restarted from emptyValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated runs on the pushed head (agent-run; not a substitute for the human checks above):
test-ltm.sh all, the delta-review regression run directly,test-fast.sh,test-ci.sh,npm run typecheck:packages, the catalog/locale/release-notes/lane validators. Nothing was installed or exercised through a running Marinara Engine.Documentation impact
UI evidence (if applicable)
None; no UI change.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.