mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1097] [MERGED] fix(long-term-memory): reconcile against commits after the extraction snapshot (1.3.24) #1290
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#1290
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/1097
Author: @Promansis
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1087-commit-time-reconciliation📝 Commits (2)
5833128fix(long-term-memory): reconcile against commits after the extraction snapshot (1.3.24) (#1087)56b2865fix(long-term-memory): hold one vault lock across the batch commit loop (#1087)📊 Changes
15 files changed (+947 additions, -215 deletions)
View changed files
➕
artifacts/long-term-memory-1.3.24.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(+38 -38)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/candidate-reconciliation.ts(+58 -33)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts(+81 -45)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts(+113 -59)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-extraction-reliability.regression.ts(+612 -0)📄 Description
Pull request
Linked issue
Closes #1087
Why this change
What changed
packages/long-term-memory1.3.23→1.3.24(manifest, rebuiltserver.mjs,artifacts/long-term-memory-1.3.24.zip, catalog lanes andnotes.jsonrelease note).candidate-reconciliation.ts: a commit-time caller may supply the complete fresh candidate set; matching against a complete set is authoritative, so a singleton match is safe to reuse. Candidate notes excludearchivedandresolvedmemories so a terminal note is never a target.source-extraction.ts: extraction now returns arecompilethat re-runs the vault-derived stages against a caller-supplied candidate set without repeating the provider call.source-processing.ts: commit recompiles against the fresh vault plus the batch overlay. The by-id merge keeps one candidate per note, and the overlay yields to a durablearchived/resolvedstatus so a stale active projection cannot revive a terminal note. A failed fresh scan falls back to the preparation snapshot.scripts/build-feature-packages.mjs: version bump to1.3.24.tests/long-term-memory-extraction-reliability.regression.ts: regressions for same-batch reuse, reuse of a note committed during the provider call, the archived-target case, the duplicate durable/overlay case, and the terminal-overlay case.Package and security impact
long-term-memoryengine.min(2.4.1) andengine.maxExclusive(4.0.0) unchanged.agent-runtime,chat-read,chat-write,routes,storage,ui) and entrypoints unchanged.restartRequiredunchanged.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Executed as agent evidence on the pushed revision
583312847882307706ff7d7449c14f53588e5196; a human must re-verify before ticking any box above.candidate-reconciliation,reconciliation-recall,extraction-graph,runtime,routes-imports,routes,storage,local-characters,extraction-reliability,installation(exact1.3.24ZIP install, offline restart, backup inclusion, uninstall/reinstall, durable-byte preservation).tests/long-term-memory-loading.regression.mjspasses.npm run check(0 errors, 849 pre-existing warnings),git diff --check,node scripts/typecheck-packages.mjs long-term-memory,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs(38 packages; v2=38, v3=38; legacy=v2) andnode scripts/tests/catalog-release-notes.regression.mjsall pass.Documentation impact
UI evidence (if applicable)
Not applicable — no client or UI change.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.