[PR #406] [MERGED] fix(long-term-memory): close partly valid feedback gaps #952

Closed
opened 2026-10-20 17:32:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/406
Author: @Promansis
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/partly-valid-feedback


📝 Commits (9)

  • 4de9fb0 fix(long-term-memory): close partly valid feedback gaps
  • b820ace fix(long-term-memory): close review follow-up gaps
  • 4732ada fix(long-term-memory): avoid healthy semantic status conflict
  • c8100b2 Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback
  • af9b4c5 Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback
  • dea7c22 Merge remote-tracking branch 'upstream/staging' into feature(long-term-memory)/partly-valid-feedback
  • efce9e7 fix(long-term-memory): preserve explicit import modes
  • 885a4f2 Merge remote-tracking branch 'origin/feature(long-term-memory)/partly-valid-feedback' into feature(long-term-memory)/partly-valid-feedback
  • 4060033 Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback

📊 Changes

13 files changed (+453 additions, -75 deletions)

View changed files

📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LastInjectionSummary.tsx (+26 -12)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+80 -10)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx (+51 -25)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+25 -5)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+10 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/index-state.ts (+16 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+10 -5)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+33 -8)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts (+8 -1)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/constants.ts (+1 -0)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+8 -0)
📝 tests/long-term-memory-conversation-summary-import.regression.ts (+94 -8)
📝 tests/long-term-memory-routes.regression.ts (+91 -0)

📄 Description

Linked issue

Closes #403

Why this change

Long-Term Memory had remaining UX and reliability gaps around source-vs-memory counts, chatless import mode policy, recall attribution, degraded semantic health, and rejected suggestion recovery.

What changed

  • Updated the long-term-memory package client, server, shared schema, and regression coverage.
  • Split source-note, saved-memory, and pending-draft counts.
  • Made chatless character/lorebook imports explicitly default to Roleplay while preserving explicit modes.
  • Added recall source attribution and a distinct not_recorded state for missing dispatch receipts.
  • Exposed lexical-only embedding degradation with a reachable reindex action.
  • Added rejected counts and preserved the existing rejected-suggestion recovery route without nested interactive controls.

Artifact ZIPs, catalog entries, and package version changes are intentionally deferred to the final release checkpoint.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: None
  • New or changed permissions/entrypoints: None
  • Restart, storage, update, or uninstall impact: No change to package lifecycle; source-only runtime/UI changes.

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

Automated validation reused from the clean reviewed HEAD: npm run check, catalog lanes, package locales, catalog validation, git diff --check, and the Long-Term Memory routes and conversation-summary-import regressions passed. Manual Engine installation and generated artifact/catalog release work are intentionally deferred.

Documentation impact

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

UI evidence (if applicable)

UI changes are source-only in this draft; screenshots are deferred until the package artifact/release checkpoint.

Summary by CodeRabbit

  • New Features

    • Added recall status details, including injected, no-match, and not-recorded states.
    • Added source attribution for recalled memories.
    • Added index health warnings and a repair action for missing embeddings.
    • Added separate counts for source notes, saved memories, and pending drafts.
    • Added rejected-suggestion counts with direct links to review.
    • Added default roleplay mode for imported character and lorebook sources, with explicit mode overrides supported.
  • Bug Fixes

    • Improved import messaging and recall/index status accuracy.

🔄 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/406 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/partly-valid-feedback` --- ### 📝 Commits (9) - [`4de9fb0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4de9fb03d797c9a834e2853be6aa0d72ab0f3e66) fix(long-term-memory): close partly valid feedback gaps - [`b820ace`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b820aceececfae74f578b835242f8aff170d4042) fix(long-term-memory): close review follow-up gaps - [`4732ada`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4732ada2425d01728516c052e4cca2e86f010692) fix(long-term-memory): avoid healthy semantic status conflict - [`c8100b2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c8100b2a2f177941756e21b88657740ca253da80) Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback - [`af9b4c5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/af9b4c5908227b06c50988c78365a74c094cc702) Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback - [`dea7c22`](https://github.com/Pasta-Devs/Marinara-Agents/commit/dea7c225e973b02cfe326b6f8c56a8c32941e612) Merge remote-tracking branch 'upstream/staging' into feature(long-term-memory)/partly-valid-feedback - [`efce9e7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/efce9e714afcc19e221aa323a7c0aca882ffea50) fix(long-term-memory): preserve explicit import modes - [`885a4f2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/885a4f25e1094e51061e6dfac7cc17b35201a412) Merge remote-tracking branch 'origin/feature(long-term-memory)/partly-valid-feedback' into feature(long-term-memory)/partly-valid-feedback - [`4060033`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40600338cb121dbccc7f98c5f5c1d4c205e5d3cc) Merge branch 'staging' into feature(long-term-memory)/partly-valid-feedback ### 📊 Changes **13 files changed** (+453 additions, -75 deletions) <details> <summary>View changed files</summary> 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LastInjectionSummary.tsx` (+26 -12) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+80 -10) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx` (+51 -25) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+25 -5) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+10 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/index-state.ts` (+16 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+10 -5) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+33 -8) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts` (+8 -1) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/constants.ts` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+8 -0) 📝 `tests/long-term-memory-conversation-summary-import.regression.ts` (+94 -8) 📝 `tests/long-term-memory-routes.regression.ts` (+91 -0) </details> ### 📄 Description ## Linked issue Closes #403 ## Why this change Long-Term Memory had remaining UX and reliability gaps around source-vs-memory counts, chatless import mode policy, recall attribution, degraded semantic health, and rejected suggestion recovery. ## What changed - Updated the `long-term-memory` package client, server, shared schema, and regression coverage. - Split source-note, saved-memory, and pending-draft counts. - Made chatless character/lorebook imports explicitly default to Roleplay while preserving explicit modes. - Added recall source attribution and a distinct `not_recorded` state for missing dispatch receipts. - Exposed lexical-only embedding degradation with a reachable reindex action. - Added rejected counts and preserved the existing rejected-suggestion recovery route without nested interactive controls. Artifact ZIPs, catalog entries, and package version changes are intentionally deferred to the final release checkpoint. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: None - New or changed permissions/entrypoints: None - Restart, storage, update, or uninstall impact: No change to package lifecycle; source-only runtime/UI changes. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated validation reused from the clean reviewed HEAD: `npm run check`, catalog lanes, package locales, catalog validation, `git diff --check`, and the Long-Term Memory routes and conversation-summary-import regressions passed. Manual Engine installation and generated artifact/catalog release work are intentionally deferred. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) UI changes are source-only in this draft; screenshots are deferred until the package artifact/release checkpoint. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added recall status details, including injected, no-match, and not-recorded states. * Added source attribution for recalled memories. * Added index health warnings and a repair action for missing embeddings. * Added separate counts for source notes, saved memories, and pending drafts. * Added rejected-suggestion counts with direct links to review. * Added default roleplay mode for imported character and lorebook sources, with explicit mode overrides supported. * **Bug Fixes** * Improved import messaging and recall/index status accuracy. <!-- 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-20 17:32:38 +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#952
No description provided.