[PR #288] [MERGED] feat(long-term-memory): improve persona subject selection #892

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/288
Author: @Promansis
Created: 8/9/2026
Status: ✅ Merged
Merged: 8/9/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/persona-subject-validation


📝 Commits (5)

  • b903e93 feat(long-term-memory): improve persona subject selection
  • 5b45942 fix(long-term-memory): preserve picker target details
  • 8219c4d build(long-term-memory): rebuild repaired package
  • 73668b9 fix(long-term-memory): preserve scoped editor selections
  • a0ab351 fix(long-term-memory): track legacy group chats

📊 Changes

19 files changed (+544 additions, -282 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.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/client.js (+23 -23)
📝 packages/long-term-memory/manifest.json (+4 -4)
📝 packages/long-term-memory/server.mjs (+36 -36)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+185 -142)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+1 -9)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/TargetPicker.tsx (+127 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+6 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+8 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts (+21 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts (+1 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+91 -40)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts (+4 -1)
📝 tests/long-term-memory-lifecycle.regression.ts (+1 -0)
📝 tests/long-term-memory-routes.regression.ts (+14 -1)

📄 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 #285

Why this change

  • Long-Term Memory Scope and Subjects previously exposed internal character/persona IDs and stored typed Subject keys. Persona choices were missing from scope targets, duplicate persona names lacked readable disambiguation, and explicit persona-only scope validation could fail.

What changed

  • Added a shared text-only, keyboard-accessible target picker for Scope and Subjects.
  • Added named persona targets with comments, stable hidden IDs, duplicate-name handling, missing-record fallbacks, and canonical character/persona Subject refs.
  • Preserved independent Scope and Subjects state, existing scope semantics, and Subject cardinality rules.
  • Fixed explicit scope.personaId trusted-catalog loading and useful invalid PATCH errors.
  • Added focused route/lifecycle regression coverage.
  • Rebuilt the Long-Term Memory client/server payloads, manifest hashes/sizes, ZIP artifact, and v2/v3/legacy catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; existing >=2.4.1 <4.0.0 range preserved.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: package payload rebuilt; existing restart and storage lifecycle behavior preserved.

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

  • Review delegated exact-HEAD L0, L1, and L2 validation. Catalog lanes, package locales, catalog validation, diff checks, focused Long-Term Memory package rebuild/provenance, ZIP contents, and all seven documented Long-Term Memory regressions passed.
  • The lifecycle regression covered install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation.
  • Direct picker interaction, legacy-only scope.chatId UI behavior, and mobile picker bounding-box checks remain proof gaps for human verification.

Documentation impact

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

UI evidence (if applicable)

  • No screenshots or recordings were captured. The package UI remains within the existing Long-Term Memory and Marinara Engine design systems.

Summary by CodeRabbit

  • New Features
    • Added persona support to Memory Vault scope and subject selection.
    • Added searchable, keyboard-accessible target pickers for chats, groups, characters, and personas.
    • Added clearer target labels, comments, selection limits, and localized messages for unavailable or unresolved subjects.
  • Bug Fixes
    • Improved error handling for failed requests and note updates.
    • Enhanced persona discovery and duplicate-label disambiguation.
  • Tests
    • Expanded regression coverage for persona scope targets.
  • Chores
    • Refreshed package metadata and catalog checksums.

🔄 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/288 **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)/persona-subject-validation` --- ### 📝 Commits (5) - [`b903e93`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b903e936b5280b4792bb4faad08f8a99f9a1114a) feat(long-term-memory): improve persona subject selection - [`5b45942`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5b459425e649b3fa7c21e170774c67bdc35ece76) fix(long-term-memory): preserve picker target details - [`8219c4d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8219c4dc3cb9f64866dcacd49a2ad1f97709736d) build(long-term-memory): rebuild repaired package - [`73668b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/73668b9cd5b8139e8bd10b0c77dbf4811d79106e) fix(long-term-memory): preserve scoped editor selections - [`a0ab351`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a0ab35125074c598cd723a9fc5409b1671c223e1) fix(long-term-memory): track legacy group chats ### 📊 Changes **19 files changed** (+544 additions, -282 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.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/client.js` (+23 -23) 📝 `packages/long-term-memory/manifest.json` (+4 -4) 📝 `packages/long-term-memory/server.mjs` (+36 -36) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+185 -142) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+1 -9) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/TargetPicker.tsx` (+127 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+6 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+8 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts` (+21 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+91 -40) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts` (+4 -1) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+1 -0) 📝 `tests/long-term-memory-routes.regression.ts` (+14 -1) </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 #285 ## Why this change - Long-Term Memory Scope and Subjects previously exposed internal character/persona IDs and stored typed Subject keys. Persona choices were missing from scope targets, duplicate persona names lacked readable disambiguation, and explicit persona-only scope validation could fail. ## What changed - Added a shared text-only, keyboard-accessible target picker for Scope and Subjects. - Added named persona targets with comments, stable hidden IDs, duplicate-name handling, missing-record fallbacks, and canonical character/persona Subject refs. - Preserved independent Scope and Subjects state, existing scope semantics, and Subject cardinality rules. - Fixed explicit `scope.personaId` trusted-catalog loading and useful invalid PATCH errors. - Added focused route/lifecycle regression coverage. - Rebuilt the Long-Term Memory client/server payloads, manifest hashes/sizes, ZIP artifact, and v2/v3/legacy catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; existing `>=2.4.1 <4.0.0` range preserved. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: package payload rebuilt; existing restart and storage lifecycle behavior preserved. ## 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 - Review delegated exact-HEAD L0, L1, and L2 validation. Catalog lanes, package locales, catalog validation, diff checks, focused Long-Term Memory package rebuild/provenance, ZIP contents, and all seven documented Long-Term Memory regressions passed. - The lifecycle regression covered install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation. - Direct picker interaction, legacy-only `scope.chatId` UI behavior, and mobile picker bounding-box checks remain proof gaps for human verification. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - No screenshots or recordings were captured. The package UI remains within the existing Long-Term Memory and Marinara Engine design systems. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added persona support to Memory Vault scope and subject selection. * Added searchable, keyboard-accessible target pickers for chats, groups, characters, and personas. * Added clearer target labels, comments, selection limits, and localized messages for unavailable or unresolved subjects. * **Bug Fixes** * Improved error handling for failed requests and note updates. * Enhanced persona discovery and duplicate-label disambiguation. * **Tests** * Expanded regression coverage for persona scope targets. * **Chores** * Refreshed package metadata and catalog checksums. <!-- 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#892
No description provided.