[GH-ISSUE #907] [Issue]: Preserve durable facts during LTM normalization and validation #476

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

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

Summary

Long-Term Memory normalization can misclassify durable character or world facts as event-like changes, and validation can reject durable character claims merely because their wording contains an incidental past-tense action verb. This can discard valid durable memory candidates or force them into the wrong lifecycle.

Affected package

long-term-memory

Expected behavior

  • Static facts remain claimKind: "static" unless the source explicitly asserts an actual state transition, acquisition, loss, or development.
  • Durable character claims remain valid when narrative framing contains incidental verbs such as met or told.
  • Truly transient scene actions continue to be rejected as character facts and should instead be represented as timeline events.

Actual behavior

  • structured-summary-normalizer.ts uses a broad token pattern to move facts, core, and profile content into developments; idiomatic static wording can match tokens such as decided or lost without asserting a durable transition.
  • evidence-unit-validation.ts rejects facts, core, and profile character facts when their text contains a broad event-verb match, even when the statement establishes a durable status or affiliation.

Steps to reproduce

  1. Submit a synthetic structured summary containing a static fact whose wording includes an incidental development token, without asserting an actual state transition.
  2. Submit a synthetic character_fact in the facts, core, or profile section that establishes a durable status or affiliation while using incidental narrative wording such as met or told.
  3. Run the Long-Term Memory extraction normalization and evidence-unit validation path.

Environment

  • Marinara Engine version: 2.4.1 compatibility baseline
  • Package version: 1.3.2
  • Install type: source regression fixture
  • OS + version: not applicable
  • Browser or app shell: not applicable

Logs, screenshots, or video

No private runtime traces or user data are included. Reproduction should use synthetic fixtures only.

Additional context

The implementation scope is limited to the repository-side normalizer and validator plus focused regression coverage. Prompt/configuration changes belong to the Marinara Engine and are out of scope for this issue.

Relevant paths:

  • packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts
  • packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts
  • tests/long-term-memory-extraction-graph.regression.ts
  • tests/long-term-memory-extraction-reliability.regression.ts

Acceptance criteria:

  • A synthetic static fact with misleading idiomatic wording stays static and does not acquire a change-only event requirement.
  • A synthetic durable character fact with incidental narrative verbs passes validation.
  • A synthetic transient character action remains rejected with event_shaped_character_fact.
  • Existing extraction graph and reliability regressions remain green.

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 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/907 ## Summary Long-Term Memory normalization can misclassify durable character or world facts as event-like changes, and validation can reject durable character claims merely because their wording contains an incidental past-tense action verb. This can discard valid durable memory candidates or force them into the wrong lifecycle. ## Affected package `long-term-memory` ## Expected behavior - Static facts remain `claimKind: "static"` unless the source explicitly asserts an actual state transition, acquisition, loss, or development. - Durable character claims remain valid when narrative framing contains incidental verbs such as `met` or `told`. - Truly transient scene actions continue to be rejected as character facts and should instead be represented as timeline events. ## Actual behavior - `structured-summary-normalizer.ts` uses a broad token pattern to move `facts`, `core`, and `profile` content into `developments`; idiomatic static wording can match tokens such as `decided` or `lost` without asserting a durable transition. - `evidence-unit-validation.ts` rejects `facts`, `core`, and `profile` character facts when their text contains a broad event-verb match, even when the statement establishes a durable status or affiliation. ## Steps to reproduce 1. Submit a synthetic structured summary containing a static fact whose wording includes an incidental development token, without asserting an actual state transition. 2. Submit a synthetic `character_fact` in the `facts`, `core`, or `profile` section that establishes a durable status or affiliation while using incidental narrative wording such as `met` or `told`. 3. Run the Long-Term Memory extraction normalization and evidence-unit validation path. ## Environment - Marinara Engine version: `2.4.1` compatibility baseline - Package version: `1.3.2` - Install type: source regression fixture - OS + version: not applicable - Browser or app shell: not applicable ## Logs, screenshots, or video No private runtime traces or user data are included. Reproduction should use synthetic fixtures only. ## Additional context The implementation scope is limited to the repository-side normalizer and validator plus focused regression coverage. Prompt/configuration changes belong to the Marinara Engine and are out of scope for this issue. Relevant paths: - `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/structured-summary-normalizer.ts` - `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-validation.ts` - `tests/long-term-memory-extraction-graph.regression.ts` - `tests/long-term-memory-extraction-reliability.regression.ts` Acceptance criteria: - A synthetic static fact with misleading idiomatic wording stays static and does not acquire a change-only event requirement. - A synthetic durable character fact with incidental narrative verbs passes validation. - A synthetic transient character action remains rejected with `event_shaped_character_fact`. - Existing extraction graph and reliability regressions remain green. ## 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:27:54 +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#476
No description provided.