[PR #1222] [MERGED] fix(long-term-memory): 1.4.4 — complete recall explanations (#1211) #1352

Closed
opened 2026-10-21 05:09:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1222
Author: @Promansis
Created: 10/4/2026
Status: ✅ Merged
Merged: 10/4/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/1211-recall-explanation-completeness


📝 Commits (1)

  • 9fb6599 fix(long-term-memory): 1.4.4 — complete recall explanations (#1211)

📊 Changes

20 files changed (+346 additions, -113 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.4.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+21 -21)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+31 -31)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+80 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+11 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts (+17 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts (+12 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts (+36 -8)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+10 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+39 -0)
📝 tests/long-term-memory-runtime.regression.ts (+37 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1211

Why this change

A recorded recall could not explain why a memory was missing. The semantic lane collapsed to one boolean (embeddingsAvailable), so "switched off", "provider unavailable", "index built for another embedding space", and "valid index matched nothing" all looked alike, and the effective scope/mode and the index that actually served the recall were not recorded or shown. Users debugging an expected memory could not see which parameter excluded it.

What changed

  • long-term-memory 1.4.3 → 1.4.4 (package-owned diagnostics of an existing feature, so it ships as a patch).
  • Server: retrieval.ts now returns semanticOutcome (disabled | unavailable | incompatible | no_matches | contributed) and a recall-time indexSnapshot (loadOutcome, generatedAt, indexed/eligible/embedded chunk counts); rebuild.ts reports how the loader obtained the index (loaded | upgraded | rebuilt); generation-injection.ts records those plus effective parameters (mode, resolved eligibility, character targeting, recent-message count, rejected cap) in recall_explanation.
  • Client: Activity recall workflow shows the new concise facts — including the index build time and embedded-chunk count — renders an explicit localized state for resolved eligibility and character targeting for both true and false, and labels the rejected list as bounded; en locale strings added.
  • Changelog and catalog notes describe the recorded payload and the Activity display separately so the claim matches what the workflow renders.
  • Rebuilt generated outputs from source: manifest.json, server.mjs, client.js, artifacts/long-term-memory-1.4.4.zip, and catalog/catalog.json, catalog/notes.json, catalog/v2/*, catalog/v3/*.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none — engine.min 2.4.1 / engine.maxExclusive unchanged.
  • New or changed permissions/entrypoints: none — permissions and routes unchanged; changes are diagnostic fields on an existing debug event and read-only UI.
  • Restart, storage, update, or uninstall impact: none new — restartRequired and storage format are unchanged; no data migration.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • On the final commit (HEAD 9fb6599e3458126396bead87d4338bd7f50052da), ran the local push proof covering: npm run check, npm run typecheck:packages, scripts/test-catalog-lanes.mjs, scripts/validate-package-locales.mjs, scripts/validate-package-locale-keys.mjs, scripts/validate-catalog.mjs, scripts/tests/catalog-release-notes.regression.mjs, scripts/tests/ui-translation-retention.regression.mjs, tests/long-term-memory-feedback-clarity-ui.regression.mjs, and the Engine-backed LTM runtime and routes regressions. All passed; the workspace digest was identical before and after the run.
  • The version's CHANGELOG.md entry and catalog release notes agree; the patch entry defaults to not-notable.
  • Interactive Engine install/update and UI screenshots were not captured in this run.
  • Review findings on the first revision (index build time and embedded-chunk count not shown; false resolved/targeting states omitted; changelog overclaiming) are repaired and covered by the regression above.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not captured in this run.

Summary by CodeRabbit

  • New Features
    • Long-Term Memory 1.4.4 adds clearer recall explanations, including effective settings, index details, and semantic-matching outcomes.
    • Activity logs show recall mode, targeting and eligibility details, index status and counts, and context-message counts. Rejected candidates are shown with the recording limit.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1222 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/1211-recall-explanation-completeness` --- ### 📝 Commits (1) - [`9fb6599`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9fb6599e3458126396bead87d4338bd7f50052da) fix(long-term-memory): 1.4.4 — complete recall explanations (#1211) ### 📊 Changes **20 files changed** (+346 additions, -113 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+21 -21) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+31 -31) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+80 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+11 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts` (+17 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/rebuild.ts` (+12 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts` (+36 -8) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+10 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+39 -0) 📝 `tests/long-term-memory-runtime.regression.ts` (+37 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1211 ## Why this change A recorded recall could not explain why a memory was missing. The semantic lane collapsed to one boolean (`embeddingsAvailable`), so "switched off", "provider unavailable", "index built for another embedding space", and "valid index matched nothing" all looked alike, and the effective scope/mode and the index that actually served the recall were not recorded or shown. Users debugging an expected memory could not see which parameter excluded it. ## What changed - `long-term-memory` 1.4.3 → 1.4.4 (package-owned diagnostics of an existing feature, so it ships as a patch). - Server: `retrieval.ts` now returns `semanticOutcome` (`disabled | unavailable | incompatible | no_matches | contributed`) and a recall-time `indexSnapshot` (`loadOutcome`, `generatedAt`, indexed/eligible/embedded chunk counts); `rebuild.ts` reports how the loader obtained the index (`loaded | upgraded | rebuilt`); `generation-injection.ts` records those plus effective parameters (mode, resolved eligibility, character targeting, recent-message count, rejected cap) in `recall_explanation`. - Client: Activity recall workflow shows the new concise facts — including the index build time and embedded-chunk count — renders an explicit localized state for resolved eligibility and character targeting for both true and false, and labels the rejected list as bounded; `en` locale strings added. - Changelog and catalog notes describe the recorded payload and the Activity display separately so the claim matches what the workflow renders. - Rebuilt generated outputs from source: `manifest.json`, `server.mjs`, `client.js`, `artifacts/long-term-memory-1.4.4.zip`, and `catalog/catalog.json`, `catalog/notes.json`, `catalog/v2/*`, `catalog/v3/*`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none — `engine.min 2.4.1` / `engine.maxExclusive` unchanged. - New or changed permissions/entrypoints: none — permissions and routes unchanged; changes are diagnostic fields on an existing debug event and read-only UI. - Restart, storage, update, or uninstall impact: none new — `restartRequired` and storage format are unchanged; no data migration. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - On the final commit (`HEAD 9fb6599e3458126396bead87d4338bd7f50052da`), ran the local push proof covering: `npm run check`, `npm run typecheck:packages`, `scripts/test-catalog-lanes.mjs`, `scripts/validate-package-locales.mjs`, `scripts/validate-package-locale-keys.mjs`, `scripts/validate-catalog.mjs`, `scripts/tests/catalog-release-notes.regression.mjs`, `scripts/tests/ui-translation-retention.regression.mjs`, `tests/long-term-memory-feedback-clarity-ui.regression.mjs`, and the Engine-backed LTM `runtime` and `routes` regressions. All passed; the workspace digest was identical before and after the run. - The version's `CHANGELOG.md` entry and catalog release notes agree; the patch entry defaults to not-notable. - Interactive Engine install/update and UI screenshots were not captured in this run. - Review findings on the first revision (index build time and embedded-chunk count not shown; false resolved/targeting states omitted; changelog overclaiming) are repaired and covered by the regression above. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not captured in this run. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Long-Term Memory 1.4.4 adds clearer recall explanations, including effective settings, index details, and semantic-matching outcomes. * Activity logs show recall mode, targeting and eligibility details, index status and counts, and context-message counts. Rejected candidates are shown with the recording limit. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:09:23 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1352
No description provided.