[PR #226] [MERGED] Fix Long-Term Memory Conversation summary imports #867

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

📋 Pull Request Information

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

Base: staging ← Head: fix/223-conversation-summary-import


📝 Commits (3)

  • 42a0798 fix(long-term-memory): import conversation summaries
  • 8eab0ac fix(long-term-memory): sort imported conversation summaries
  • a7005a4 test(long-term-memory): verify repeated imports

📊 Changes

10 files changed (+317 additions, -82 deletions)

View changed files

➕ artifacts/long-term-memory-1.1.3.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 catalog/v2/catalog.json (+7 -7)
📝 catalog/v3/catalog.json (+7 -7)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/server.mjs (+56 -54)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+55 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/README.md (+1 -1)
➕ tests/long-term-memory-conversation-summary-import.regression.ts (+180 -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 #223

Why this change

Long-Term Memory advertised Conversation mode but only read Roleplay metadata.summaryEntries, so Conversation Chat Summaries silently returned zero candidates.

What changed

  • Import Conversation metadata.daySummaries and metadata.weekSummaries.
  • Coerce structured entries and legacy bare-string entries.
  • Flatten typed keyDetails into source text.
  • Preserve DD.MM.YYYY keys and sort entries chronologically.
  • Use stable day/week provenance IDs for idempotent imports.
  • Add long-term-memory-conversation-summary-import.regression.ts covering ordering, coercion, declared-mode coverage, and repeat imports.
  • Rebuild affected long-term-memory manifests, server bundle, artifact, hashes, sizes, and catalog lanes as long-term-memory@1.1.3.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: unchanged; minimum Engine 2.3.5, maximum exclusive 4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package version 1.1.3; restartRequired remains true; imported summaries use the existing package-owned vault and stable provenance matching

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

  • Focused Conversation summary regression passed: coercion, chronological ordering, key detail flattening, all declared modes, and idempotent repeat imports.
  • Storage, extraction graph, runtime, debug-log, and lifecycle regressions passed.
  • Catalog lane tests, catalog validation, generated server syntax, ZIP integrity, and git diff --check passed.
  • Existing routes regression remains blocked by an unrelated pre-existing persona-scope assertion at tests/long-term-memory-routes.regression.ts:576.
  • Manual Marinara Engine UI smoke test was not run.

Documentation impact

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

UI evidence (if applicable)

Not applicable: this change affects server-side summary ingestion and generated package output; no UI code changed.

Summary by CodeRabbit

  • New Features

    • Improved conversation summaries by combining dated daily and weekly summaries with key details in chronological order.
    • Added support for consistent summary imports across conversation, roleplay, and game chats.
  • Bug Fixes

    • Improved handling of summary ordering, limits, duplicate imports, persisted content, and import failures.
  • Chores

    • Updated Long-Term Memory to version 1.1.3 and refreshed its package metadata.
  • Tests

    • Added comprehensive regression coverage for summary imports and supported chat modes.

🔄 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/226 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/223-conversation-summary-import` --- ### 📝 Commits (3) - [`42a0798`](https://github.com/Pasta-Devs/Marinara-Agents/commit/42a07989146ae964f54854c1f180be24ec436e49) fix(long-term-memory): import conversation summaries - [`8eab0ac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8eab0ac4ab96e682dfa0e2af9820214dcf6eedf6) fix(long-term-memory): sort imported conversation summaries - [`a7005a4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a7005a44aebc5e657974673337f0aad70c5617a2) test(long-term-memory): verify repeated imports ### 📊 Changes **10 files changed** (+317 additions, -82 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.1.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `catalog/v2/catalog.json` (+7 -7) 📝 `catalog/v3/catalog.json` (+7 -7) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/server.mjs` (+56 -54) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+55 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/README.md` (+1 -1) ➕ `tests/long-term-memory-conversation-summary-import.regression.ts` (+180 -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`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue Closes #223 ## Why this change Long-Term Memory advertised Conversation mode but only read Roleplay `metadata.summaryEntries`, so Conversation Chat Summaries silently returned zero candidates. ## What changed - Import Conversation `metadata.daySummaries` and `metadata.weekSummaries`. - Coerce structured entries and legacy bare-string entries. - Flatten typed `keyDetails` into source text. - Preserve `DD.MM.YYYY` keys and sort entries chronologically. - Use stable day/week provenance IDs for idempotent imports. - Add `long-term-memory-conversation-summary-import.regression.ts` covering ordering, coercion, declared-mode coverage, and repeat imports. - Rebuild affected `long-term-memory` manifests, server bundle, artifact, hashes, sizes, and catalog lanes as `long-term-memory@1.1.3`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: unchanged; minimum Engine `2.3.5`, maximum exclusive `4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package version `1.1.3`; `restartRequired` remains true; imported summaries use the existing package-owned vault and stable provenance matching ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [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 - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Focused Conversation summary regression passed: coercion, chronological ordering, key detail flattening, all declared modes, and idempotent repeat imports. - Storage, extraction graph, runtime, debug-log, and lifecycle regressions passed. - Catalog lane tests, catalog validation, generated server syntax, ZIP integrity, and `git diff --check` passed. - Existing routes regression remains blocked by an unrelated pre-existing persona-scope assertion at `tests/long-term-memory-routes.regression.ts:576`. - Manual Marinara Engine UI smoke test was not run. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable: this change affects server-side summary ingestion and generated package output; no UI code changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved conversation summaries by combining dated daily and weekly summaries with key details in chronological order. * Added support for consistent summary imports across conversation, roleplay, and game chats. * **Bug Fixes** * Improved handling of summary ordering, limits, duplicate imports, persisted content, and import failures. * **Chores** * Updated Long-Term Memory to version 1.1.3 and refreshed its package metadata. * **Tests** * Added comprehensive regression coverage for summary imports and supported chat modes. <!-- 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:31:47 +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#867
No description provided.