[GH-ISSUE #1277] [Bug] LTM 1.4.7: Potential memory rejection bugs involving empty subjectKeys and zero-valued relationship deltas #651

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Two potential inconsistencies in LTM 1.4.7's extraction schema and validation logic may cause valid character and relationship memories to be rejected.

The suspected problems are:

  1. An explicitly empty subjectKeys array may prevent fallback to otherwise valid character names.
  2. Zero-valued relationship delta entries may cause static memories to be rejected even when no relationship change occurred.

These issues were identified through a separate AI-assisted source-code review. I have not independently verified the relevant code paths or reproduced both suspected conditions.

However, I observed an actual character-memory rejection in my own extraction logs. The same NPC was successfully recognized in other candidates during that extraction operation.

I am attaching anonymized logs and the customizations used in my environment to help investigate whether these behaviors originate from the official validation logic or interact with the applied modifications.

Environment

  • Marinara Engine: 2.5.0
  • Long-Term Memory: 1.4.7
  • Mallang Memory Helper: 1.6.31
  • Custom Korean chat summary and LTM extraction prompts
  • Third-party server-side Korean subjectId normalization patch: Applied

Important: The observed rejection occurred in a modified installation. I have not tested the same extraction using an unmodified official LTM 1.4.7 setup.

Issue 1: Empty subjectKeys May Suppress Name-Based Resolution

According to the separate source-code analysis, the extraction instructions tell the model not to choose subject keys directly, while the response schema still exposes subjectKeys as an optional field.

Some models may explicitly return an empty array instead of omitting the field.

For example:

{
  "subjectId": "character_a",
  "subjectNames": ["Character A"],
  "subjectKeys": []
}

The suspected issue is that an explicitly empty subjectKeys array may prevent the validator from falling back to the valid name in subjectNames.

Expected Behavior

An empty subjectKeys array should not suppress valid name-based identity resolution. If no usable subject keys are supplied, the validator should attempt resolution using trusted character names.

Requested Check

Please compare validation behavior between an omitted subjectKeys field and an explicitly empty subjectKeys: [] field, with otherwise identical valid character names.

Issue 2: Zero-Valued Relationship Deltas May Reject Static Memories

The separate analysis also suggested that relationship delta fields may be exposed across memory types, including static character and world facts.

Some models may populate these optional fields with zero-valued entries to represent no actual change.

The suspected validator behavior is that the presence of a relationship delta entry may cause a static memory to fail validation, even if every delta value is zero.

Relationship memories may also receive an additional missing cause-event link error.

Expected Behavior

Static memories should not be rejected solely because an optional relationship delta field contains zero-valued entries indicating no change.

Requested Check

Please verify whether zero-valued relationship delta entries are treated as actual relationship changes and whether this validation applies to unrelated memory types.

Observed Extraction Failure

In my environment, the extraction reported:

9 kept | 1 rejected | 0 deduplicated
0 parser rejected | 1 validation rejected

The rejected candidate was a static character fact about an existing NPC's abilities.

The rejection diagnostic contained:

{
  "code": "untrusted_subject_identity",
  "candidateIndex": 9,
  "details": {
    "subjectId": "character_c",
    "subjectNames": [],
    "subjectKeys": [],
    "matchBasis": "trait_or_qualified_alias"
  }
}

However, the same extraction operation successfully recognized Character C in other candidates through exact-name matching.

For example:

{
  "candidateIndex": 6,
  "subjectNames": ["Character C"],
  "subjectKeys": ["local_character:REDACTED"],
  "matchBasis": "exact_name"
}

Character C was also successfully identified in a relationship memory.

This confirms that a character fact was rejected during subject identity validation despite the NPC being recognized elsewhere in the same extraction operation.

However, this log does not conclusively demonstrate the empty-key fallback bug, because both subjectNames and subjectKeys were empty in the rejected diagnostic.

The zero-valued relationship delta issue was not observed in this extraction.

Expected Behavior

When a character can be reliably identified using trusted names, existing bound memories, or available source context, valid character facts should be retained.

If identity resolution remains ambiguous, keeping the candidate available for manual review or correction may be preferable to discarding it.

Requested Investigation

Could you please check:

  1. Whether empty subjectKeys arrays suppress valid name-based resolution.
  2. Whether static memories with zero-valued relationship delta entries are incorrectly rejected.
  3. Whether extraction instructions and response schemas are consistent regarding optional fields.
  4. Why an NPC recognized in other candidates could fail identity validation within the same extraction operation.
  5. Whether recoverable rejected memories can be preserved for manual review.

Attached Evidence and Customizations

I have prepared a ZIP archive containing:

  • README.md — Environment and attachment information
  • redacted_log_1.json — Anonymized extraction diagnostics
  • redacted_log_2.json — Anonymized extraction outcome and rejected candidate
  • hangul_subjectid_patch.cjs — Applied server-side Korean subject ID patch
  • LTM_extraction_prompt_ko.txt — Custom LTM extraction prompt used in this environment

The logs use consistent pseudonyms for character names and anonymized identifiers.

The Mallang Memory Helper extension package and custom chat summary prompt are not included initially, but I can provide them if needed.

Because a third-party server-side patch and custom extraction prompts were applied, I cannot rule out an interaction with these modifications.

I would appreciate confirmation of whether the two suspected validation behaviors exist in the unmodified official LTM 1.4.7 implementation.

Thank you for looking into this.

LTM_1.4.7_GitHub_minimal_evidence.zip

Originally created by @tlsiddl on GitHub (Oct 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1277 Originally assigned to: @Promansis on GitHub. ## Summary Two potential inconsistencies in LTM 1.4.7's extraction schema and validation logic may cause valid character and relationship memories to be rejected. The suspected problems are: 1. An explicitly empty `subjectKeys` array may prevent fallback to otherwise valid character names. 2. Zero-valued relationship delta entries may cause static memories to be rejected even when no relationship change occurred. These issues were identified through a separate AI-assisted source-code review. I have not independently verified the relevant code paths or reproduced both suspected conditions. However, I observed an actual character-memory rejection in my own extraction logs. The same NPC was successfully recognized in other candidates during that extraction operation. I am attaching anonymized logs and the customizations used in my environment to help investigate whether these behaviors originate from the official validation logic or interact with the applied modifications. ## Environment - Marinara Engine: 2.5.0 - Long-Term Memory: 1.4.7 - Mallang Memory Helper: 1.6.31 - Custom Korean chat summary and LTM extraction prompts - Third-party server-side Korean `subjectId` normalization patch: **Applied** **Important:** The observed rejection occurred in a modified installation. I have not tested the same extraction using an unmodified official LTM 1.4.7 setup. ## Issue 1: Empty `subjectKeys` May Suppress Name-Based Resolution According to the separate source-code analysis, the extraction instructions tell the model not to choose subject keys directly, while the response schema still exposes `subjectKeys` as an optional field. Some models may explicitly return an empty array instead of omitting the field. For example: ```json { "subjectId": "character_a", "subjectNames": ["Character A"], "subjectKeys": [] } ``` The suspected issue is that an explicitly empty `subjectKeys` array may prevent the validator from falling back to the valid name in `subjectNames`. ### Expected Behavior An empty `subjectKeys` array should not suppress valid name-based identity resolution. If no usable subject keys are supplied, the validator should attempt resolution using trusted character names. ### Requested Check Please compare validation behavior between an omitted `subjectKeys` field and an explicitly empty `subjectKeys: []` field, with otherwise identical valid character names. ## Issue 2: Zero-Valued Relationship Deltas May Reject Static Memories The separate analysis also suggested that relationship delta fields may be exposed across memory types, including static character and world facts. Some models may populate these optional fields with zero-valued entries to represent no actual change. The suspected validator behavior is that the presence of a relationship delta entry may cause a static memory to fail validation, even if every delta value is zero. Relationship memories may also receive an additional missing cause-event link error. ### Expected Behavior Static memories should not be rejected solely because an optional relationship delta field contains zero-valued entries indicating no change. ### Requested Check Please verify whether zero-valued relationship delta entries are treated as actual relationship changes and whether this validation applies to unrelated memory types. ## Observed Extraction Failure In my environment, the extraction reported: ```text 9 kept | 1 rejected | 0 deduplicated 0 parser rejected | 1 validation rejected ``` The rejected candidate was a static character fact about an existing NPC's abilities. The rejection diagnostic contained: ```json { "code": "untrusted_subject_identity", "candidateIndex": 9, "details": { "subjectId": "character_c", "subjectNames": [], "subjectKeys": [], "matchBasis": "trait_or_qualified_alias" } } ``` However, the same extraction operation successfully recognized Character C in other candidates through exact-name matching. For example: ```json { "candidateIndex": 6, "subjectNames": ["Character C"], "subjectKeys": ["local_character:REDACTED"], "matchBasis": "exact_name" } ``` Character C was also successfully identified in a relationship memory. This confirms that a character fact was rejected during subject identity validation despite the NPC being recognized elsewhere in the same extraction operation. However, this log does **not** conclusively demonstrate the empty-key fallback bug, because both `subjectNames` and `subjectKeys` were empty in the rejected diagnostic. The zero-valued relationship delta issue was not observed in this extraction. ## Expected Behavior When a character can be reliably identified using trusted names, existing bound memories, or available source context, valid character facts should be retained. If identity resolution remains ambiguous, keeping the candidate available for manual review or correction may be preferable to discarding it. ## Requested Investigation Could you please check: 1. Whether empty `subjectKeys` arrays suppress valid name-based resolution. 2. Whether static memories with zero-valued relationship delta entries are incorrectly rejected. 3. Whether extraction instructions and response schemas are consistent regarding optional fields. 4. Why an NPC recognized in other candidates could fail identity validation within the same extraction operation. 5. Whether recoverable rejected memories can be preserved for manual review. ## Attached Evidence and Customizations I have prepared a ZIP archive containing: - `README.md` — Environment and attachment information - `redacted_log_1.json` — Anonymized extraction diagnostics - `redacted_log_2.json` — Anonymized extraction outcome and rejected candidate - `hangul_subjectid_patch.cjs` — Applied server-side Korean subject ID patch - `LTM_extraction_prompt_ko.txt` — Custom LTM extraction prompt used in this environment The logs use consistent pseudonyms for character names and anonymized identifiers. The Mallang Memory Helper extension package and custom chat summary prompt are not included initially, but I can provide them if needed. Because a third-party server-side patch and custom extraction prompts were applied, I cannot rule out an interaction with these modifications. I would appreciate confirmation of whether the two suspected validation behaviors exist in the unmodified official LTM 1.4.7 implementation. Thank you for looking into this. [LTM_1.4.7_GitHub_minimal_evidence.zip](https://github.com/user-attachments/files/33243166/LTM_1.4.7_GitHub_minimal_evidence.zip)
Author
Owner

@Promansis commented on GitHub (Oct 9, 2026):

I checked this against LTM 1.4.20 (current staging, 7b4c6b4). Both suspected bugs are real, exist in the unmodified official code, and are still present in 1.4.20. The extraction, subject-identity and validation files are unchanged between 1.4.7 and 1.4.20. A reproduction script run against both versions on stock source (no Korean patch, no custom prompt) gave identical results, and the shipped server.mjs bundle contains the same checks.

The rejection in your log is a third problem, covered below: the server has no way to recover a Korean character's identity when subjectNames is missing.

1. subjectKeys: [] blocks name-based resolution: confirmed

resolveUnitSubjects takes the trusted-key path whenever subjectKeys is defined, including when it is []. Zero keys is not the expected 1 (character) or 2 (relationship), so it returns a cardinality failure. Name-based resolution (resolveNamedUnitSubjects) only runs when subjectKeys === undefined.

Candidate with valid subjectNames subjectKeys omitted subjectKeys: []
character_fact kept (exact_name) dropped: invalid_subject_cardinality
relationship_state kept (exact_name) dropped: invalid_subject_cardinality

subjectNames: [] does not have this problem; it is treated like an omitted field.

On question 3, the instructions and schema disagree. The prompt tells the model to never choose subject keys, but the response schema still exposes subjectKeys.

2. Zero-valued dimensionChanges reject static memories: confirmed, for every memory type

  • This check raises static_relationship_dimension_change for any claimKind: "static" candidate, of any bucket, that has any key in dimensionChanges. Zero values count; only {} passes. The error is mapped to a drop.
  • The response schema exposes dimensions/dimensionChanges on every bucket. Only the prompt text says "relationship_state only".
  • For relationship memories, relationshipDescribesChange also treats any key as a change. A static relationship memory with zero deltas and no caused_by link therefore also trips relationship_state_missing_caused_by. Only the first error is reported, but a fix needs to cover both checks.
Static candidate no dimensionChanges { trust: 0 }
world_fact kept dropped
character_fact kept dropped
relationship_state kept dropped

3. The observed rejection: a nameless Korean character fact can never be resolved (question 4)

The rejection in the attached log is not Issue 1. untrusted_subject_identity with matchBasis: "trait_or_qualified_alias" is only produced when subjectKeys was omitted; an explicit [] gives invalid_subject_cardinality with trusted_key instead. The [] values in the diagnostic are defaults filled in when the diagnostic is written (unit.subjectKeys ?? []).

What happened: the model left subjectNames off that candidate, so the server fell back to reading the character from subjectId. That fallback works for Latin-script names but can never match a Korean one:

  • subjectId must be lowercase ASCII (response schema, normalizeSubjectIdentifier), so the model writes a romanized id such as seo_mujin.
  • Trusted names are indexed through normalizeSubjectName, which turns 서무진 into u1109u1165u1106u116eu110cu1175u11ab.
  • A romanized id can't match that form, so every Korean character_fact without subjectNames is dropped.

Verified on 1.4.20 with catalog entries built the way the server builds them:

character_fact Result
subjectId: seo_mujin, subjectNames: ["서무진"] kept (exact_name)
subjectId: seo_mujin or seo_mujin_abilities, no subjectNames dropped: untrusted_subject_identity (trait_or_qualified_alias)
subjectId: mara or mara_abilities, no subjectNames kept

That is the exact diagnostic in your log. Each candidate is also resolved independently, so candidate 6 resolving Character C by exact name doesn't carry over to candidate 9. For Korean chats, subjectNames is therefore the only path to an identity, and a single omission by the model is a guaranteed loss. subjectNames is listed as required in the response schema, but the schema uses strict: false, so providers don't enforce it. Your subjectId normalization patch was applied during this run, so it doesn't cover this path.

About the custom prompt: it keeps and strengthens the subjectNames rules, so the prompt isn't missing the instruction. It does include two escape hatches: "If the exact character name is not supported by the source, do not invent one or force a character binding" and "If no exact visible name can be resolved unambiguously, do not invent one". They say what not to put in subjectNames, but not what to do with the unit, so a model can reasonably emit the fact without names. For Korean names that is always a drop. A wording that avoids this:

Every character_fact and relationship_state must include subjectNames. Apply the subjectId → name map to every unit with that subjectId, even when the name doesn't appear next to that fact. If no exact name can be resolved, do not emit the unit.

The custom prompt does not affect Issue 1, since it never mentions subjectKeys. For Issue 2 it keeps "static relationships may have dimensions but not dimensionChanges", but it also says "Copy explicit dimensions/dimensionChanges exactly". If the chat summary prompt writes explicit zero relationship deltas, they will still be copied.

Recovery (question 5)

Subject-identity drops are stored with a recoveryCandidate, but the Review Queue's identity choice is only offered for ambiguous matches that carry names. As far as I can see, a nameless untrusted rejection like this one has no way to pick the character.

Possible fixes

  1. Treat subjectKeys: [] as omitted when normalizing the model response (normalizedEvidenceUnitRecord), or remove subjectKeys from the response schema.
  2. Strip zero-valued entries from dimensionChanges before validation, and ignore dimensions/dimensionChanges on non-relationship buckets. Restricting them in the schema would also help.
  3. Let a nameless character_fact or relationship_state adopt the identity that a sibling candidate with the same subjectId resolved by name. This is the only fallback that works for non-Latin names, and it addresses the rejection in your log: the prompt already asks for one subjectId per character, so candidate 9 most likely shared candidate 6's id.

Generated by Claude Code

<!-- gh-comment-id:6080652479 --> @Promansis commented on GitHub (Oct 9, 2026): I checked this against **LTM 1.4.20** (current `staging`, 7b4c6b4). Both suspected bugs are real, exist in the unmodified official code, and are still present in 1.4.20. The extraction, subject-identity and validation files are unchanged between 1.4.7 and 1.4.20. A reproduction script run against both versions on stock source (no Korean patch, no custom prompt) gave identical results, and the shipped `server.mjs` bundle contains the same checks. The rejection in your log is a third problem, covered below: the server has no way to recover a Korean character's identity when `subjectNames` is missing. ### 1. `subjectKeys: []` blocks name-based resolution: confirmed [`resolveUnitSubjects`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts#L2024-L2037) takes the trusted-key path whenever `subjectKeys` is defined, including when it is `[]`. Zero keys is not the expected 1 (character) or 2 (relationship), so it returns a cardinality failure. Name-based resolution (`resolveNamedUnitSubjects`) only runs when [`subjectKeys === undefined`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts#L1216). | Candidate with valid `subjectNames` | `subjectKeys` omitted | `subjectKeys: []` | |---|---|---| | `character_fact` | kept (`exact_name`) | dropped: `invalid_subject_cardinality` | | `relationship_state` | kept (`exact_name`) | dropped: `invalid_subject_cardinality` | `subjectNames: []` does not have this problem; it is treated like an omitted field. On question 3, the instructions and schema disagree. The prompt tells the model to [never choose subject keys](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts#L1252), but the response schema still [exposes `subjectKeys`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts#L500-L504). ### 2. Zero-valued `dimensionChanges` reject static memories: confirmed, for every memory type - [This check](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts#L301) raises `static_relationship_dimension_change` for any `claimKind: "static"` candidate, of any bucket, that has any key in `dimensionChanges`. Zero values count; only `{}` passes. The error is mapped to a drop. - The response schema [exposes `dimensions`/`dimensionChanges` on every bucket](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts#L505-L506). Only the prompt text says "relationship_state only". - For relationship memories, [`relationshipDescribesChange`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts#L34) also treats any key as a change. A static relationship memory with zero deltas and no `caused_by` link therefore also trips `relationship_state_missing_caused_by`. Only the first error is reported, but a fix needs to cover both checks. | Static candidate | no `dimensionChanges` | `{ trust: 0 }` | |---|---|---| | `world_fact` | kept | dropped | | `character_fact` | kept | dropped | | `relationship_state` | kept | dropped | ### 3. The observed rejection: a nameless Korean character fact can never be resolved (question 4) The rejection in the attached log is not Issue 1. `untrusted_subject_identity` with `matchBasis: "trait_or_qualified_alias"` is only produced when `subjectKeys` was omitted; an explicit `[]` gives `invalid_subject_cardinality` with `trusted_key` instead. The `[]` values in the diagnostic are [defaults filled in when the diagnostic is written](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts#L2446-L2449) (`unit.subjectKeys ?? []`). What happened: the model left `subjectNames` off that candidate, so the server fell back to reading the character from `subjectId`. That fallback works for Latin-script names but can never match a Korean one: - `subjectId` must be lowercase ASCII ([response schema](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts#L454), [`normalizeSubjectIdentifier`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts#L2571-L2583)), so the model writes a romanized id such as `seo_mujin`. - Trusted names are indexed through [`normalizeSubjectName`](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/ltm-utils.ts#L7-L20), which turns `서무진` into `u1109u1165u1106u116eu110cu1175u11ab`. - A romanized id can't match that form, so every Korean `character_fact` without `subjectNames` is dropped. Verified on 1.4.20 with catalog entries built the way the server builds them: | `character_fact` | Result | |---|---| | `subjectId: seo_mujin`, `subjectNames: ["서무진"]` | kept (`exact_name`) | | `subjectId: seo_mujin` or `seo_mujin_abilities`, no `subjectNames` | **dropped**: `untrusted_subject_identity (trait_or_qualified_alias)` | | `subjectId: mara` or `mara_abilities`, no `subjectNames` | kept | That is the exact diagnostic in your log. Each candidate is also resolved independently, so candidate 6 resolving Character C by exact name doesn't carry over to candidate 9. For Korean chats, `subjectNames` is therefore the only path to an identity, and a single omission by the model is a guaranteed loss. `subjectNames` is listed as required in the response schema, but the schema uses `strict: false`, so providers don't enforce it. Your `subjectId` normalization patch was applied during this run, so it doesn't cover this path. **About the custom prompt:** it keeps and strengthens the `subjectNames` rules, so the prompt isn't missing the instruction. It does include two escape hatches: "If the exact character name is not supported by the source, do not invent one or force a character binding" and "If no exact visible name can be resolved unambiguously, do not invent one". They say what not to put in `subjectNames`, but not what to do with the unit, so a model can reasonably emit the fact without names. For Korean names that is always a drop. A wording that avoids this: > Every character_fact and relationship_state must include subjectNames. Apply the subjectId → name map to every unit with that subjectId, even when the name doesn't appear next to that fact. If no exact name can be resolved, do not emit the unit. The custom prompt does not affect Issue 1, since it never mentions `subjectKeys`. For Issue 2 it keeps "static relationships may have dimensions but not dimensionChanges", but it also says "Copy explicit dimensions/dimensionChanges exactly". If the chat summary prompt writes explicit zero relationship deltas, they will still be copied. ### Recovery (question 5) Subject-identity drops are stored with a `recoveryCandidate`, but the Review Queue's identity choice is [only offered for ambiguous matches that carry names](https://github.com/Pasta-Devs/Marinara-Agents/blob/7b4c6b46efe7ecf59e991258caa5f2196c4cc00e/packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-choice-review.ts#L56-L68). As far as I can see, a nameless untrusted rejection like this one has no way to pick the character. ### Possible fixes 1. Treat `subjectKeys: []` as omitted when normalizing the model response (`normalizedEvidenceUnitRecord`), or remove `subjectKeys` from the response schema. 2. Strip zero-valued entries from `dimensionChanges` before validation, and ignore `dimensions`/`dimensionChanges` on non-relationship buckets. Restricting them in the schema would also help. 3. Let a nameless `character_fact` or `relationship_state` adopt the identity that a sibling candidate with the same `subjectId` resolved by name. This is the only fallback that works for non-Latin names, and it addresses the rejection in your log: the prompt already asks for one `subjectId` per character, so candidate 9 most likely shared candidate 6's id. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@tlsiddl commented on GitHub (Oct 9, 2026):

Thank you for the detailed investigation and confirmation!

Since both issues were reproduced in the unmodified official build, are there plans to address them in an upcoming LTM update?

I’m particularly concerned about valid character and relationship memories being silently rejected during extraction.

<!-- gh-comment-id:6080717893 --> @tlsiddl commented on GitHub (Oct 9, 2026): Thank you for the detailed investigation and confirmation! Since both issues were reproduced in the unmodified official build, are there plans to address them in an upcoming LTM update? I’m particularly concerned about valid character and relationship memories being silently rejected during extraction.
Author
Owner

@Promansis commented on GitHub (Oct 9, 2026):

3. Thank you for the detailed investigation and confirmation!
Since both issues were reproduced in the unmodified official build, are there plans to address them in an upcoming LTM update?
I’m particularly concerned about valid character and relationship memories being silently rejected during extraction.

100%, literally working on it rn :) the subjectId has been the bane of my existence forever.

<!-- gh-comment-id:6080828438 --> @Promansis commented on GitHub (Oct 9, 2026): > 3\. Thank you for the detailed investigation and confirmation! > Since both issues were reproduced in the unmodified official build, are there plans to address them in an upcoming LTM update? > I’m particularly concerned about valid character and relationship memories being silently rejected during extraction. 100%, literally working on it rn :) the subjectId has been the bane of my existence forever.
Author
Owner

@tlsiddl commented on GitHub (Oct 9, 2026):

Thank you so much for taking the time to investigate this so thoroughly and for working on a fix so quickly!

I really appreciate all the hard work you put into LTM and Marinara Engine. I’ve been having so much fun using them, and LTM is honestly one of my favorite features!

Just wanted you to know that you have people here in Korea who are enjoying your work and cheering you on, too! ❤️

Thank you again for everything you do. I’m really looking forward to seeing how LTM continues to improve! :)

<!-- gh-comment-id:6081159563 --> @tlsiddl commented on GitHub (Oct 9, 2026): Thank you so much for taking the time to investigate this so thoroughly and for working on a fix so quickly! I really appreciate all the hard work you put into LTM and Marinara Engine. I’ve been having so much fun using them, and LTM is honestly one of my favorite features! Just wanted you to know that you have people here in Korea who are enjoying your work and cheering you on, too! ❤️ Thank you again for everything you do. I’m really looking forward to seeing how LTM continues to improve! :)
Author
Owner

@tlsiddl commented on GitHub (Oct 9, 2026):

I also wanted to ask one more thing!

Would it be possible to integrate Korean character name and subjectId handling into the official LTM implementation?

I’m currently using a custom patch to improve how LTM handles Korean character names, generates and normalizes subjectId values, and validates character identities.

Since you’re already working on the subjectId system, I was wondering if native support for Korean names could be considered as part of those improvements.

I’d love to eventually use LTM without needing a separate server-side patch for Korean names.

I’ve already included the patch source in the ZIP attached to this issue, in case it’s helpful!

Of course, there’s absolutely no pressure! I completely understand that you already have a lot on your plate. Just wanted to share the idea in case it’s something you might consider in the future. :)

<!-- gh-comment-id:6081243133 --> @tlsiddl commented on GitHub (Oct 9, 2026): I also wanted to ask one more thing! Would it be possible to integrate Korean character name and subjectId handling into the official LTM implementation? I’m currently using a custom patch to improve how LTM handles Korean character names, generates and normalizes subjectId values, and validates character identities. Since you’re already working on the subjectId system, I was wondering if native support for Korean names could be considered as part of those improvements. I’d love to eventually use LTM without needing a separate server-side patch for Korean names. I’ve already included the patch source in the ZIP attached to this issue, in case it’s helpful! Of course, there’s absolutely no pressure! I completely understand that you already have a lot on your plate. Just wanted to share the idea in case it’s something you might consider in the future. :)
Author
Owner

@Promansis commented on GitHub (Oct 9, 2026):

Thankyou so much for your kind words and the detailed issue report too! I had no idea, feel free to put any ideas you have forward anytime. Always helpful to have people who are using it provide feedback to improve.

Part of the issue is with non-latin alphabet character names which makes sense why I haven't found that one before!

<!-- gh-comment-id:6081246246 --> @Promansis commented on GitHub (Oct 9, 2026): Thankyou so much for your kind words and the detailed issue report too! I had no idea, feel free to put any ideas you have forward anytime. Always helpful to have people who are using it provide feedback to improve. Part of the issue is with non-latin alphabet character names which makes sense why I haven't found that one before!
Author
Owner

@Promansis commented on GitHub (Oct 9, 2026):

6. I also wanted to ask one more thing!
Would it be possible to integrate Korean character name and subjectId handling into the official LTM implementation?
I’m currently using a custom patch to improve how LTM handles Korean character names, generates and normalizes subjectId values, and validates character identities.
Since you’re already working on the subjectId system, I was wondering if native support for Korean names could be considered as part of those improvements.
I’d love to eventually use LTM without needing a separate server-side patch for Korean names.
I’ve already included the patch source in the ZIP attached to this issue, in case it’s helpful!
Of course, there’s absolutely no pressure! I completely understand that you already have a lot on your plate. Just wanted to share the idea in case it’s something you might consider in the future. :)

Absolutely! I will put it into staging tonight or tomorrow morning

<!-- gh-comment-id:6081262663 --> @Promansis commented on GitHub (Oct 9, 2026): > 6\. I also wanted to ask one more thing! > Would it be possible to integrate Korean character name and subjectId handling into the official LTM implementation? > I’m currently using a custom patch to improve how LTM handles Korean character names, generates and normalizes subjectId values, and validates character identities. > Since you’re already working on the subjectId system, I was wondering if native support for Korean names could be considered as part of those improvements. > I’d love to eventually use LTM without needing a separate server-side patch for Korean names. > I’ve already included the patch source in the ZIP attached to this issue, in case it’s helpful! > Of course, there’s absolutely no pressure! I completely understand that you already have a lot on your plate. Just wanted to share the idea in case it’s something you might consider in the future. :) Absolutely! I will put it into staging tonight or tomorrow morning
Author
Owner

@tlsiddl commented on GitHub (Oct 9, 2026):

That would be amazing, thank you so much!

I really appreciate you taking the time to look into this and move it into staging so quickly.

I’m especially happy to hear that Korean / non-Latin character name handling is being considered too.

Once it’s available, I’ll be happy to test it on my side as well. Thanks again for all your hard work! :)

<!-- gh-comment-id:6081341928 --> @tlsiddl commented on GitHub (Oct 9, 2026): That would be amazing, thank you so much! I really appreciate you taking the time to look into this and move it into staging so quickly. I’m especially happy to hear that Korean / non-Latin character name handling is being considered too. Once it’s available, I’ll be happy to test it on my side as well. Thanks again for all your hard work! :)
Author
Owner

@Promansis commented on GitHub (Oct 10, 2026):

@tlsiddl #1292 should hopefully help out, please let me know if it doesn't. This is a hard one for me to test because of language barrier

<!-- gh-comment-id:6091649212 --> @Promansis commented on GitHub (Oct 10, 2026): @tlsiddl #1292 should hopefully help out, please let me know if it doesn't. This is a hard one for me to test because of language barrier
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#651
No description provided.