[GH-ISSUE #1040] [Bug]: LTM recovery candidate subject IDs fail snake_case validation #531

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory extraction can fail while validating recoveryCandidate.subjectId when an extracted or normalized identifier is not lowercase snake_case. This has been reported during Conversation Mode imports and live roleplay memory generation.

Affected package

Long-Term Memory (long-term-memory)

Expected behavior

Recovery candidates should have identifiers normalized to the schema's lowercase snake_case format before they are validated and persisted, so a malformed candidate does not abort extraction or drop otherwise recoverable memory.

Actual behavior

The reporter sees Zod validation errors stating Identifier must be lowercase snake_case at recoveryCandidate.subjectId, with candidates pending or dropped. The failure has been reported on package versions 1.3.0, 1.3.6, and 1.3.11. It has not been reproduced in the current local regression checks.

Steps to reproduce

  1. Import summaries from a Conversation Mode source, or generate memories during live roleplay, that produce candidate subject identifiers containing uppercase letters or punctuation.
  2. Trigger candidate recovery/validation.
  3. Observe the Zod error at recoveryCandidate.subjectId and the failed or pending candidates.

Environment

  • Marinara Engine version: 2.4.6
  • Package version: 1.3.11 (also reported on 1.3.0 and 1.3.6)
  • Install type: not supplied
  • OS + version: Windows 10.0.26200 (x64)
  • Browser or app shell: Chrome 153 / app shell

Logs, screenshots, or video

Reporter supplied screenshots and diagnostics; full stack trace was not included in this report. Request a redacted stack trace if available.

Additional context

The Conversation extraction prompt already requests lowercase snake_case. A separate boot warning, [ltm] Could not adopt legacy agent settings, was also reported; investigate separately because it is not established as related.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1040 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory extraction can fail while validating `recoveryCandidate.subjectId` when an extracted or normalized identifier is not lowercase snake_case. This has been reported during Conversation Mode imports and live roleplay memory generation. ## Affected package Long-Term Memory (`long-term-memory`) ## Expected behavior Recovery candidates should have identifiers normalized to the schema's lowercase snake_case format before they are validated and persisted, so a malformed candidate does not abort extraction or drop otherwise recoverable memory. ## Actual behavior The reporter sees Zod validation errors stating `Identifier must be lowercase snake_case` at `recoveryCandidate.subjectId`, with candidates pending or dropped. The failure has been reported on package versions 1.3.0, 1.3.6, and 1.3.11. It has not been reproduced in the current local regression checks. ## Steps to reproduce 1. Import summaries from a Conversation Mode source, or generate memories during live roleplay, that produce candidate subject identifiers containing uppercase letters or punctuation. 2. Trigger candidate recovery/validation. 3. Observe the Zod error at `recoveryCandidate.subjectId` and the failed or pending candidates. ## Environment - Marinara Engine version: 2.4.6 - Package version: 1.3.11 (also reported on 1.3.0 and 1.3.6) - Install type: not supplied - OS + version: Windows 10.0.26200 (x64) - Browser or app shell: Chrome 153 / app shell ## Logs, screenshots, or video Reporter supplied screenshots and diagnostics; full stack trace was not included in this report. Request a redacted stack trace if available. ## Additional context The Conversation extraction prompt already requests lowercase snake_case. A separate boot warning, `[ltm] Could not adopt legacy agent settings`, was also reported; investigate separately because it is not established as related. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:21 +07:00
  • closed this issue
  • added the
    bug
    label
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#531
No description provided.