[GH-ISSUE #285] [Feature]: User-friendly Long-Term Memory scope and subjects #146

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

Originally created by @Promansis on GitHub (Aug 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/285

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory's editor exposes internal character/persona IDs for Scope and Subjects. Subjects are stored from typed text instead of being selected from named records, personas are missing from scope targets, and persona-only scope validation can reject an explicitly stored persona. Invalid note updates also return vague validation errors.

Proposed package or change

Update the long-term-memory package to:

  • Return named character and persona targets, including persona comments for duplicate-name disambiguation.
  • Add one reusable keyboard-accessible, text-only picker for Scope and Subjects, with readable removable selections and missing-record fallbacks.
  • Keep Scope and Subjects independent; Scope supports chats, branch groups, characters, and personas, while Subjects supports characters and personas with existing cardinality rules.
  • Persist selections as canonical stable character/persona references without exposing IDs or accepting arbitrary typed identities.
  • Include explicit scope.personaId in trusted persona validation and route invalid PATCH /notes/:id requests through the package error contract.
  • Add focused server and lifecycle regression coverage, rebuild only the affected package, and validate its generated catalog outputs.

Why should this be optional?

This is behavior and UI for the downloadable Long-Term Memory feature package and should remain package-owned rather than becoming Engine core behavior.

Alternatives considered

Keeping ID text fields, parsing manually entered IDs, globally uniquifying persona names, or automatically linking active/chat personas would preserve the implementation problem or create unsafe identity assumptions. The existing package resource capability and persona comments provide the required named selection data.

Additional context

The implementation plan is in scratch/long-term-memory-persona-subject-validation-fix-plan.md. Scope mutation semantics, subject cardinality, package permissions, and persona storage behavior remain unchanged. Marinara Engine should not change unless focused package regression proof shows the host boundary is responsible.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/285 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory's editor exposes internal character/persona IDs for Scope and Subjects. Subjects are stored from typed text instead of being selected from named records, personas are missing from scope targets, and persona-only scope validation can reject an explicitly stored persona. Invalid note updates also return vague validation errors. ## Proposed package or change Update the `long-term-memory` package to: - Return named character and persona targets, including persona comments for duplicate-name disambiguation. - Add one reusable keyboard-accessible, text-only picker for Scope and Subjects, with readable removable selections and missing-record fallbacks. - Keep Scope and Subjects independent; Scope supports chats, branch groups, characters, and personas, while Subjects supports characters and personas with existing cardinality rules. - Persist selections as canonical stable character/persona references without exposing IDs or accepting arbitrary typed identities. - Include explicit `scope.personaId` in trusted persona validation and route invalid `PATCH /notes/:id` requests through the package error contract. - Add focused server and lifecycle regression coverage, rebuild only the affected package, and validate its generated catalog outputs. ## Why should this be optional? This is behavior and UI for the downloadable Long-Term Memory feature package and should remain package-owned rather than becoming Engine core behavior. ## Alternatives considered Keeping ID text fields, parsing manually entered IDs, globally uniquifying persona names, or automatically linking active/chat personas would preserve the implementation problem or create unsafe identity assumptions. The existing package resource capability and persona comments provide the required named selection data. ## Additional context The implementation plan is in `scratch/long-term-memory-persona-subject-validation-fix-plan.md`. Scope mutation semantics, subject cardinality, package permissions, and persona storage behavior remain unchanged. Marinara Engine should not change unless focused package regression proof shows the host boundary is responsible. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#146
No description provided.