mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1456] [MERGED] fix(long-term-memory): record the reconciliation outcome for every candidate group (1.4.51) #1471
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#1471
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/1456
Author: @Promansis
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1449-reconciliation-outcome-counts📝 Commits (2)
d310217fix(long-term-memory): record the reconciliation outcome for every candidate group (#1449)e31849fMerge upstream/staging into fix(long-term-memory)/1449-reconciliation-outcome-counts; release long-term-memory 1.4.51📊 Changes
15 files changed (+183 additions, -78 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.51.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(+15 -15)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/candidate-reconciliation.ts(+38 -4)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts(+14 -18)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-candidate-reconciliation.regression.ts(+22 -1)📝
tests/long-term-memory-reconciliation-recall.regression.ts(+50 -0)📄 Description
Linked issue
Closes #1449
Why this change
Candidate reconciliation decides, for every non-character candidate group, whether it reuses an existing memory, creates a new one, or leaves it for review. Only matches and warnings were recorded. The "matched nothing, so create" outcome is the path that makes duplicates, and it left no trace, so the duplicate rate could not be read from the debug log. This is tracker item EX-I3 (extraction stages audit F4 part 1).
What changed
groups = matched + created + ambiguous + incomplete.matchKind(identityorcontent) was already computed for the warning details; matches now carry it too.reconciledNotesandambiguousCandidatesare gone. Nothing else in the package or tests reads them.long-term-memory1.4.51: CHANGELOG entry, version, manifest, rebuiltserver.mjs, artifact and catalog entries. At land, the branch was merged withupstream/staging(1.4.50, #1455). Only the CHANGELOG conflicted, and reland resolved it.Diff: source +52/−22 lines, tests +72/−1, CHANGELOG +4, before the release merge.
Known limit:
createdalso counts a group whose derived id already exists as a memory. Reconciliation excludes that memory, and the compiler updates it later, so the create rate reads slightly high. A sixth bucket for that case is beyond the Minimal fix and is left as an owner's call before EX-I10.Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
These checks were run by the coding agent, not by a person. Engine checkout
2039583ca(v2.4.6-2323), Nodev24.15.0.tests/long-term-memory-reconciliation-recall.regression.ts: a create-only preparation (one timeline candidate, no timeline memories) records exactly onecandidate_reconciliationentry, statusok, counts{ groups: 1, created: 1 }. It failed on the unfixed source, which recorded no entry.tests/long-term-memory-candidate-reconciliation.regression.ts: counts for identity match, likely create, ambiguous, and both incomplete paths, with the bucket-sum invariant. Matches carrymatchKindidentityorcontent.d3102175c, these passed: the two regressions above (run directly, becausetest-ltm.shdoes not list them),test-ltm.shextraction-reliability,debug-log,routes-draftsanddebug-activity,npm run check,git diff --checkand the four catalog gates.e31849f5f(after merging 1.4.50), these all passed:test-fast.sh(npm run check,git diff --check) andtypecheck-packages long-term-memory.test-catalog-lanes,validate-package-locales,validate-catalogandcatalog-release-notes.test-ltm.shextraction-reliability,debug-log,debug-activity,routes-draftsandextraction-graph, pluscandidate-reconciliationandreconciliation-recall.Documentation impact
UI evidence (if applicable)
None. The Debug view lists the new entry with the existing "Candidate reconciliation" label; nothing else changes on screen.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.