[GH-ISSUE #1210] [Feature]: Make the Long-Term Memory Debug page clearer and more honest #618

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

The Long-Term Memory Debug tab (Memory Settings -> Debug, ActivityView.tsx) is meant to answer "why did this chat get these memories, or none?" and "where did extraction fail?" but several parts mislead or force digging through raw JSON.

Findings from a read-only pass at 324446533:

  • The "Record debug activity" toggle only gates the retrieval recall_explanation event. Extraction, compiler, draft, and apply events are recorded regardless. The toggle also only takes effect after Save Settings, which the help text does not say. Chat overrides and the host debug flag can further affect recording.
  • Recall rejection reasons are recorded (score_threshold, budget, duplicate_text, lower_rank, missing_chunk, prompt_budget) but displayed as raw codes.
  • The score is labelled "Relevance" though it is a match score, and selected entries are chunks, not distinct memories.
  • embeddingsAvailable only means semantic candidates were produced; false is rendered as if embeddings are unavailable.
  • Last Injection and Latest Recall Workflow can describe different attempts and show no visible timestamp.
  • Refresh does not refresh Last Injection.
  • Errors-only misses warnings; filtering happens before operation grouping, so a filtered operation can lose its start/finish context; the 200-event limit can cut an operation.
  • The phase menu lists declared phases that have no current producer.
  • Copy JSON omits the event envelope, and the technical JSON shown is edited for humanization.
  • The page loads every note just to resolve titles.

Proposed package or change

Improve the existing Debug tab without adding new event types:

  • Rename the toggle to show it controls recall explanations, show saved/unsaved state, and state that extraction/apply logging is separate.
  • Show readable rejection reasons; label the score as a match score; distinguish chunks from memories; label semantic contribution truthfully.
  • Add timestamps and chat context to both recall panels; make Refresh include Last Injection.
  • Add a warnings filter (reuse the existing status=warning query); label filtered operations as partial and use the existing operationId API filter for retained context.
  • Shorten the phase menu to phases present in retained logs; do not invent events.
  • Provide "Copy full event JSON" plus an unmodified raw view under Technical details.
  • Resolve titles only for note IDs in the displayed events; honor the server export filename.
  • Preserve the existing destructive "clear debug log only" behavior and full JSONL export.

Why should this be optional?

This is package-owned UI and diagnostics for a downloadable Agent package (long-term-memory). It ships with the package and should not become Engine core behavior.

Alternatives considered

A separate Debug destination was rejected; ActivityView is intentionally opened from Memory Settings (docs/UI.md). A combined "Problems" filter was deferred in favor of the existing status query.

Additional context

Owner files: ActivityView.tsx, MemorySettings.tsx, LastInjectionSummary.tsx. Existing tests: tests/long-term-memory-debug-log.regression.ts, tests/long-term-memory-feedback-clarity-ui.regression.mjs, tests/long-term-memory-routes.regression.ts. Evidence from a read-only investigation at 324446533; no code changed yet.

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 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1210 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? The Long-Term Memory Debug tab (Memory Settings -> Debug, `ActivityView.tsx`) is meant to answer "why did this chat get these memories, or none?" and "where did extraction fail?" but several parts mislead or force digging through raw JSON. Findings from a read-only pass at `324446533`: - The "Record debug activity" toggle only gates the retrieval `recall_explanation` event. Extraction, compiler, draft, and apply events are recorded regardless. The toggle also only takes effect after Save Settings, which the help text does not say. Chat overrides and the host debug flag can further affect recording. - Recall rejection reasons are recorded (`score_threshold`, `budget`, `duplicate_text`, `lower_rank`, `missing_chunk`, `prompt_budget`) but displayed as raw codes. - The score is labelled "Relevance" though it is a match score, and selected entries are chunks, not distinct memories. - `embeddingsAvailable` only means semantic candidates were produced; false is rendered as if embeddings are unavailable. - Last Injection and Latest Recall Workflow can describe different attempts and show no visible timestamp. - Refresh does not refresh Last Injection. - Errors-only misses warnings; filtering happens before operation grouping, so a filtered operation can lose its start/finish context; the 200-event limit can cut an operation. - The phase menu lists declared phases that have no current producer. - Copy JSON omits the event envelope, and the technical JSON shown is edited for humanization. - The page loads every note just to resolve titles. ## Proposed package or change Improve the existing Debug tab without adding new event types: - Rename the toggle to show it controls recall explanations, show saved/unsaved state, and state that extraction/apply logging is separate. - Show readable rejection reasons; label the score as a match score; distinguish chunks from memories; label semantic contribution truthfully. - Add timestamps and chat context to both recall panels; make Refresh include Last Injection. - Add a warnings filter (reuse the existing `status=warning` query); label filtered operations as partial and use the existing `operationId` API filter for retained context. - Shorten the phase menu to phases present in retained logs; do not invent events. - Provide "Copy full event JSON" plus an unmodified raw view under Technical details. - Resolve titles only for note IDs in the displayed events; honor the server export filename. - Preserve the existing destructive "clear debug log only" behavior and full JSONL export. ## Why should this be optional? This is package-owned UI and diagnostics for a downloadable Agent package (`long-term-memory`). It ships with the package and should not become Engine core behavior. ## Alternatives considered A separate Debug destination was rejected; `ActivityView` is intentionally opened from Memory Settings (`docs/UI.md`). A combined "Problems" filter was deferred in favor of the existing status query. ## Additional context Owner files: `ActivityView.tsx`, `MemorySettings.tsx`, `LastInjectionSummary.tsx`. Existing tests: `tests/long-term-memory-debug-log.regression.ts`, `tests/long-term-memory-feedback-clarity-ui.regression.mjs`, `tests/long-term-memory-routes.regression.ts`. Evidence from a read-only investigation at `324446533`; no code changed yet. ## 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:29:04 +07:00
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#618
No description provided.