[PR #289] [MERGED] feat(long-term-memory): clarify extraction feedback and reliability #893

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/extraction-feedback-clarity


📝 Commits (10+)

  • a20c65c feat(long-term-memory): clarify extraction feedback and reliability
  • 052f11a fix(long-term-memory): surface partial refresh failures
  • 9106cb7 Merge branch 'staging' into feature(long-term-memory)/extraction-feedback-clarity
  • db12e2e feat(long-term-memory): clarify extraction feedback and reliability
  • eb85299 fix(long-term-memory): surface partial refresh failures
  • 3eadd42 Merge remote-tracking branch 'origin/feature(long-term-memory)/extraction-feedback-clarity' into feature(long-term-memory)/extraction-feedback-clarity
  • 33c73d1 release(long-term-memory): bump package to 1.2.4
  • 707ef31 test(long-term-memory): derive lifecycle artifact version
  • db9545e fix(long-term-memory): address review findings
  • 41bef42 fix(long-term-memory): preserve review diagnostics

📊 Changes

19 files changed (+647 additions, -194 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
➕ artifacts/long-term-memory-1.2.4.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/long-term-memory/client.js (+22 -22)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+28 -28)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+63 -20)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+52 -23)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+133 -46)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+16 -5)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts (+37 -10)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/README.md (+2 -1)
➕ tests/long-term-memory-extraction-reliability.regression.ts (+159 -0)
➕ tests/long-term-memory-feedback-clarity-ui.regression.mjs (+57 -0)
📝 tests/long-term-memory-lifecycle.regression.ts (+4 -3)
📝 tests/long-term-memory-routes.regression.ts (+38 -3)

📄 Description

Linked issue

Closes #286
Closes #287

Why this change

Long-Term Memory extraction feedback did not clearly distinguish source refreshes, extraction outcomes, rejected candidates, provider warnings, and token usage. Local-model extraction could also treat empty or unusable responses as completed and allow compatibility fallback paths to exceed the one permitted additional call.

What changed

  • Affected package: long-term-memory.
  • Clarified refresh versus re-extraction behavior and extraction outcome presentation.
  • Added localized activity token breakdowns and provider warning display.
  • Aligned the settings reasoning fallback with the server default of Low.
  • Kept valid candidates when sibling candidates are malformed.
  • Made empty and unusable model responses retryable without persisting a current extraction fingerprint.
  • Capped structured-output/reasoning compatibility handling at one additional model call.
  • Added focused UI, route, extraction graph, and extraction reliability regressions.

Package and security impact

  • Affected package IDs: long-term-memory.
  • Engine compatibility impact: none; manifest.json and package version remain unchanged for this development batch.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: no package lifecycle contract change; source and draft behavior remains package-owned.
  • Generated payloads, artifact ZIPs, checksums, and catalogs are intentionally unchanged until the final release checkpoint.

Validation

  • node scripts/test-catalog-lanes.mjs passed.
  • node scripts/validate-package-locales.mjs passed.
  • node scripts/validate-catalog.mjs passed.
  • git diff --check passed.
  • Complete Long-Term Memory regression loop passed: storage, extraction graph, extraction reliability, runtime, routes, conversation summary import, debug log, and lifecycle.
  • Disposable Long-Term Memory package build passed without changing generated output in the active worktree.

Manual verification notes

  • Ran the Long-Term Memory lifecycle regression, including install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation.
  • Ran the LTM mobile activation baseline from the lifecycle suite.
  • Did not perform an additional manual Engine UI install/update session beyond the lifecycle regression.

Documentation impact

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

UI evidence (if applicable)

The package UI regression fixture is included in tests/long-term-memory-feedback-clarity-ui.regression.mjs.

Summary by CodeRabbit

  • New Features
    • Activity details now show input, reasoning, output, and total token usage.
    • Source refreshes provide clearer outcomes, extraction statuses, suggestion counts, rejection details, and warnings.
  • Bug Fixes
    • Improved handling of empty, invalid, or incomplete extraction responses with clearer retryable errors.
    • Refresh workflows now prompt for re-extraction only when appropriate.
  • Release
    • Long-Term Memory updated to version 1.2.4.
  • Tests
    • Added regression coverage for extraction reliability, refresh feedback, and failure scenarios.

🔄 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/289 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/9/2026 **Status:** ✅ Merged **Merged:** 8/9/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/extraction-feedback-clarity` --- ### 📝 Commits (10+) - [`a20c65c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a20c65c2b7e6b0e72084aeda43391f6460cbb4ac) feat(long-term-memory): clarify extraction feedback and reliability - [`052f11a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/052f11a794c5701f1a921bf642c3cdb69fa1b6b8) fix(long-term-memory): surface partial refresh failures - [`9106cb7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9106cb7c9c8557e79cf291dbe21e088a6738833b) Merge branch 'staging' into feature(long-term-memory)/extraction-feedback-clarity - [`db12e2e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/db12e2ee881be597253ebf818d988e0dea5b9893) feat(long-term-memory): clarify extraction feedback and reliability - [`eb85299`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eb8529995aecd10e3d846c30b642c75c8db27ca3) fix(long-term-memory): surface partial refresh failures - [`3eadd42`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3eadd424d32fd14d3cef7e641bd4f052f8a44cca) Merge remote-tracking branch 'origin/feature(long-term-memory)/extraction-feedback-clarity' into feature(long-term-memory)/extraction-feedback-clarity - [`33c73d1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/33c73d1786c561d8ed9a5aa8f77ccc307f163513) release(long-term-memory): bump package to 1.2.4 - [`707ef31`](https://github.com/Pasta-Devs/Marinara-Agents/commit/707ef31b0c9d13d0cfd454c169fdb633873d142c) test(long-term-memory): derive lifecycle artifact version - [`db9545e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/db9545ed6112ec5ecaceb5ea5f8071df1107ffb2) fix(long-term-memory): address review findings - [`41bef42`](https://github.com/Pasta-Devs/Marinara-Agents/commit/41bef429c38210dc86cb83d9eeaaf84220c3025e) fix(long-term-memory): preserve review diagnostics ### 📊 Changes **19 files changed** (+647 additions, -194 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) ➕ `artifacts/long-term-memory-1.2.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/long-term-memory/client.js` (+22 -22) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+28 -28) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+63 -20) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+52 -23) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+133 -46) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+16 -5) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts` (+37 -10) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/README.md` (+2 -1) ➕ `tests/long-term-memory-extraction-reliability.regression.ts` (+159 -0) ➕ `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+57 -0) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+4 -3) 📝 `tests/long-term-memory-routes.regression.ts` (+38 -3) </details> ### 📄 Description ## Linked issue Closes #286 Closes #287 ## Why this change Long-Term Memory extraction feedback did not clearly distinguish source refreshes, extraction outcomes, rejected candidates, provider warnings, and token usage. Local-model extraction could also treat empty or unusable responses as completed and allow compatibility fallback paths to exceed the one permitted additional call. ## What changed - Affected package: `long-term-memory`. - Clarified refresh versus re-extraction behavior and extraction outcome presentation. - Added localized activity token breakdowns and provider warning display. - Aligned the settings reasoning fallback with the server default of Low. - Kept valid candidates when sibling candidates are malformed. - Made empty and unusable model responses retryable without persisting a current extraction fingerprint. - Capped structured-output/reasoning compatibility handling at one additional model call. - Added focused UI, route, extraction graph, and extraction reliability regressions. ## Package and security impact - Affected package IDs: `long-term-memory`. - Engine compatibility impact: none; `manifest.json` and package version remain unchanged for this development batch. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: no package lifecycle contract change; source and draft behavior remains package-owned. - Generated payloads, artifact ZIPs, checksums, and catalogs are intentionally unchanged until the final release checkpoint. ## Validation - `node scripts/test-catalog-lanes.mjs` passed. - `node scripts/validate-package-locales.mjs` passed. - `node scripts/validate-catalog.mjs` passed. - `git diff --check` passed. - Complete Long-Term Memory regression loop passed: storage, extraction graph, extraction reliability, runtime, routes, conversation summary import, debug log, and lifecycle. - Disposable Long-Term Memory package build passed without changing generated output in the active worktree. ### Manual verification notes - Ran the Long-Term Memory lifecycle regression, including install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation. - Ran the LTM mobile activation baseline from the lifecycle suite. - Did not perform an additional manual Engine UI install/update session beyond the lifecycle regression. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) The package UI regression fixture is included in `tests/long-term-memory-feedback-clarity-ui.regression.mjs`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Activity details now show input, reasoning, output, and total token usage. * Source refreshes provide clearer outcomes, extraction statuses, suggestion counts, rejection details, and warnings. * **Bug Fixes** * Improved handling of empty, invalid, or incomplete extraction responses with clearer retryable errors. * Refresh workflows now prompt for re-extraction only when appropriate. * **Release** * Long-Term Memory updated to version 1.2.4. * **Tests** * Added regression coverage for extraction reliability, refresh feedback, and failure scenarios. <!-- 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:03 +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#893
No description provided.