[GH-ISSUE #1417] [Issue]: Long-Term Memory extraction prompt uses test-fixture names as its examples #718

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

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

Originally assigned to: @Promansis on GitHub.

Summary

One instruction in the extraction prompt gives example subject ids built from test-fixture character names. That prompt is sent with every extraction request, so the model sees those names on every run. Replace them with examples that contain no character names.

Affected package

long-term-memory 1.4.38 (upstream/staging 97c0486f8), packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts:1266:

For timeline_event, subjectId must name the specific event or beat, not just a person, character, place, or broad entity. Use damo_arrival or lisa_minimizing_damo instead of damo_korvak.

Expected behavior

The prompt's examples show the id shape without naming characters that could also appear in a user's chat.

Actual behavior

  • The examples use fixture names, which also appear in tests/long-term-memory-candidate-reconciliation.regression.ts.
  • A user whose chat has a character with one of these names gets an extraction prompt that mixes the instructions' example names with their own.
  • No test pins this sentence.

Steps to reproduce

  1. Open evidence-unit-extraction.ts at line 1266.
  2. The examples name characters rather than showing only the id pattern.

Environment

  • Marinara Engine version: 2.5.0 line (staging)
  • Package version: long-term-memory 1.4.38 (upstream/staging 97c0486f8)
  • Install type: source (code audit)
  • OS + version: not platform-specific
  • Browser or app shell: any

Logs, screenshots, or video

Not applicable.

Minimal fix

Change the last sentence to examples with no character names. For example:

Use gate_arrival or hiding_the_injury instead of a bare person or pair of names.

Validation:

  • npm run check
  • rebuild LTM (server.mjs changes; patch bump)
  • node scripts/validate-catalog.mjs
  • the extraction-reliability and extraction-graph regressions
  • one real extraction on a test chat, comparing timeline ids before and after

It's a one-line instruction change, so no dedicated test.

Additional context

  • Risk: prompt wording can shift model output. The sentence is an example, not a rule, so the change should be small. The manual extraction check above covers it.
  • Out of scope: fixture names in test files.

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 (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1417 Originally assigned to: @Promansis on GitHub. ## Summary One instruction in the extraction prompt gives example subject ids built from test-fixture character names. That prompt is sent with every extraction request, so the model sees those names on every run. Replace them with examples that contain no character names. ## Affected package `long-term-memory` 1.4.38 (`upstream/staging` 97c0486f8), `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts:1266`: > For timeline_event, subjectId must name the specific event or beat, not just a person, character, place, or broad entity. Use damo_arrival or lisa_minimizing_damo instead of damo_korvak. ## Expected behavior The prompt's examples show the id shape without naming characters that could also appear in a user's chat. ## Actual behavior - The examples use fixture names, which also appear in `tests/long-term-memory-candidate-reconciliation.regression.ts`. - A user whose chat has a character with one of these names gets an extraction prompt that mixes the instructions' example names with their own. - No test pins this sentence. ## Steps to reproduce 1. Open `evidence-unit-extraction.ts` at line 1266. 2. The examples name characters rather than showing only the id pattern. ## Environment - Marinara Engine version: 2.5.0 line (`staging`) - Package version: long-term-memory 1.4.38 (`upstream/staging` 97c0486f8) - Install type: source (code audit) - OS + version: not platform-specific - Browser or app shell: any ## Logs, screenshots, or video Not applicable. ## Minimal fix Change the last sentence to examples with no character names. For example: > Use gate_arrival or hiding_the_injury instead of a bare person or pair of names. Validation: - `npm run check` - rebuild LTM (`server.mjs` changes; patch bump) - `node scripts/validate-catalog.mjs` - the extraction-reliability and extraction-graph regressions - one real extraction on a test chat, comparing timeline ids before and after It's a one-line instruction change, so no dedicated test. ## Additional context - **Risk:** prompt wording can shift model output. The sentence is an example, not a rule, so the change should be small. The manual extraction check above covers it. - **Out of scope:** fixture names in test files. ## 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:30:03 +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#718
No description provided.