[GH-ISSUE #764] [Issue]: Keep missing-source LTM drafts from blocking unrelated reviews #395

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory's Review Queue becomes unavailable when one queued draft or rejected suggestion references a missing source note. Keep affected drafts visibly blocked without preventing review of unrelated healthy sources, and show useful context-loading error details.

Affected package

long-term-memory

Expected behavior

  • Missing-source drafts remain visible with a clear explanation and cannot be accepted.
  • Unrelated healthy drafts remain reviewable and actionable.
  • Missing source references in rejected suggestions do not disable the entire workspace.
  • Actual request failures remain fail-closed and expose helpful error details with Retry.
  • Existing server-side freshness, preflight, and acceptance validation remains intact.

Actual behavior

Review requires all queued source IDs to resolve. One missing source causes the client context lookup to throw, and the workspace is hidden behind "Memory context could not load." Retry repeats the same lookup. Individual healthy source reads still succeed.

Steps to reproduce

  1. Create two imported Roleplay summary source notes and extraction drafts.
  2. Permanently delete the older source through the validated source-lineage deletion operation.
  3. Open Review. The old draft remains in the review response with freshness missing, while the newer draft is fresh.
  4. The batched source-context request omits the deleted note, and the client rejects the whole result. Retry fails again.

Environment

  • Marinara Engine version: reporter uses 2.4.5; local reproduction isolates the package server routes and client lookup helper.
  • Package version: 1.2.23; the published server bundle was exercised with synthetic data.
  • Install type: reporter uses Termux; local reproduction uses a Node.js/Fastify harness.
  • OS + version: reporter uses Android; local reproduction runs on Linux with Node.js 24.15.0.
  • Browser or app shell: reporter uses Android WebView; the local reproduction exercises the lookup boundary, not the reporter's device.

Logs, screenshots, or video

Before deletion: both review sources and context load.
After deletion: new source preview endpoint still succeeds; old draft remains with freshness=missing.
Context load 1: Long-Term Memory context unavailable for 1 note.
Context load 2: Long-Term Memory context unavailable for 1 note.
Control: loading only the healthy source succeeds.

Additional context

This is a confirmed reproducible failure path matching the report, not confirmation that the reporter previously deleted a source. The current staging client retains the same lookup behavior. Related prior work: #467 and #612.

Scope is the package Review UI, localized feedback, focused regression coverage, and required rebuilt release outputs. No Engine API, permissions, or storage migration changes are planned.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/764 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory's Review Queue becomes unavailable when one queued draft or rejected suggestion references a missing source note. Keep affected drafts visibly blocked without preventing review of unrelated healthy sources, and show useful context-loading error details. ## Affected package long-term-memory ## Expected behavior - Missing-source drafts remain visible with a clear explanation and cannot be accepted. - Unrelated healthy drafts remain reviewable and actionable. - Missing source references in rejected suggestions do not disable the entire workspace. - Actual request failures remain fail-closed and expose helpful error details with Retry. - Existing server-side freshness, preflight, and acceptance validation remains intact. ## Actual behavior Review requires all queued source IDs to resolve. One missing source causes the client context lookup to throw, and the workspace is hidden behind "Memory context could not load." Retry repeats the same lookup. Individual healthy source reads still succeed. ## Steps to reproduce 1. Create two imported Roleplay summary source notes and extraction drafts. 2. Permanently delete the older source through the validated source-lineage deletion operation. 3. Open Review. The old draft remains in the review response with freshness `missing`, while the newer draft is `fresh`. 4. The batched source-context request omits the deleted note, and the client rejects the whole result. Retry fails again. ## Environment - Marinara Engine version: reporter uses 2.4.5; local reproduction isolates the package server routes and client lookup helper. - Package version: 1.2.23; the published server bundle was exercised with synthetic data. - Install type: reporter uses Termux; local reproduction uses a Node.js/Fastify harness. - OS + version: reporter uses Android; local reproduction runs on Linux with Node.js 24.15.0. - Browser or app shell: reporter uses Android WebView; the local reproduction exercises the lookup boundary, not the reporter's device. ## Logs, screenshots, or video ```text Before deletion: both review sources and context load. After deletion: new source preview endpoint still succeeds; old draft remains with freshness=missing. Context load 1: Long-Term Memory context unavailable for 1 note. Context load 2: Long-Term Memory context unavailable for 1 note. Control: loading only the healthy source succeeds. ``` ## Additional context This is a confirmed reproducible failure path matching the report, not confirmation that the reporter previously deleted a source. The current staging client retains the same lookup behavior. Related prior work: #467 and #612. Scope is the package Review UI, localized feedback, focused regression coverage, and required rebuilt release outputs. No Engine API, permissions, or storage migration changes are planned. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:27:10 +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#395
No description provided.