[GH-ISSUE #1260] [Feature]: long-term-memory Vault opens Debug filtered to the memory (PR 2: D31) #644

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

The Vault's View all activity link sits below a memory's Recent changes, but today it only switches to the Debug tab and loses the memory context. Those durable memory events do not record which debug operation, draft or change caused them, so the link has no operation it can honestly select.

This is D31, the separate navigation slice of the Debug-tab audit's PR 2. The approved direction is open Debug filtered to this memory, not select an operation and not add server-side correlation.

Proposed package or change

Pass the current Vault memory's ID through the existing navigation handoff. Open Debug's event navigator with a visible memory filter and no selected operation. Show whole operations whose logged events explicitly mention that memory: extractions that read it as a source or produced changes targeting it, and recalls that considered it, whether selected or rejected.

Client/navigation and UI copy only. Reuse the PR 2 workspace and PR 1 full-operation helpers. No server, shared-schema, durable-event or debug-log format changes.

Acceptance criteria

  • Rename the Vault link to Open debug log, so it does not imply the debug records are the same data source as Recent changes. Activating it passes the current memory ID through the existing navigation flow and opens Memory Settings → Debug with that memory filter applied.
  • The filter visibly identifies the memory, with a readable fallback when its title is unavailable. It can be cleared to view the loaded log again. Search and the existing chips compose with it; they do not discard events from matching operations.
  • Match explicit memory-ID references in the existing structured log records, including extraction source IDs, extraction target-note IDs, and recall selected/rejected candidate note IDs. If any relevant event mentions the memory, show that operation with its complete available logged event list and unchanged status. Do not infer a match from prose, titles, partial ID strings, or a Recent changes event's timestamp/type.
  • On entry, nothing is selected, including when returning from a previous Debug selection. On a phone it lands on Events, not Details. Choosing a row then opens that operation's details through the workspace's normal behavior.
  • Be honest about coverage: the filter concerns the loaded, retained debug events, not a complete history of this memory. Some apply operations will be missed because apply logging records change/mutation IDs rather than memory IDs. Do not fabricate a connection, promise complete apply coverage, or fetch unrelated data to reconstruct it. Preserve the existing loaded-window notice and make the limitation discoverable with the memory filter/empty state.
  • An empty result says there are no matching operations in the loaded debug log, not that the memory has never changed. Clearing the filter makes other loaded operations available again without modifying the underlying log.

Required regression proof

  • A browser regression starts in a Vault memory's Recent changes area, follows Open debug log, and verifies the Debug memory filter and matching extraction/recall rows. Include source-note and produced-target references plus both selected and rejected recall candidates; an unrelated operation must be excluded. Matching operations retain all their available events and their status.
  • Include an apply operation containing only change/mutation IDs: do not falsely attribute it to the memory, and expose the documented coverage caveat. Do not manufacture operation/draft correlation in the Recent changes fixture.
  • Run the mobile flow: the link opens Events with no selection; the user selects a row and reaches Details, then can return using the switcher. Cover a previous selection being cleared, no-match behavior, clearing the memory filter, and composition with the workspace's search/chips.
  • Preserve the first issue's clipboard, token wording, status, no-invented-duration and overflow guarantees, and leave compact Chat Settings and LastInjectionSummary unchanged.

Blocked by

  • #1259 — the PR 2 two-pane Debug workspace, including row selection, details and mobile Events / Details switching. This issue builds on that complete workspace; do not implement it against the old expander layout.

PR 1's #1255 data helpers are a transitive prerequisite through #1259.

Why should this be optional?

The Vault and Debug are existing views within the downloadable Long-Term Memory package. Their context handoff belongs in that package, not Engine core.

Alternatives considered

  • Select the operation that caused a Recent changes entry: not possible with the existing event records. That would require a separately authorized server/data-contract change and is explicitly out of scope.
  • Open the unfiltered Debug tab: preserves today's loss of context.
  • Use the server's source-note filter alone: would miss extraction targets and recall candidates, and can truncate operations. Filter whole operations client-side using their explicit existing logged references.

Additional context

Source: maintainer's scratch/audits/ltm-debug-tab-ui-audit.md, revision 2, D31, with the maintainer's correction during ticket preparation: replace its selected-operation wording with this memory-filtered direction. Other PR 2 findings belong to #1259. This issue must remain separate and blocked by it.

The original audit baseline was staging f140047, LTM 1.4.6; at issue preparation HEAD/upstream staging were fe7889dc6640c36f77709ecfc89fee80671fd819, LTM 1.4.11. Current source inspection confirmed that the link carries no operation and the memory event creation does not provide one. This is static evidence only; no runtime reproduction, implementation or validation was performed while creating this issue.

Non-goals: correlating durable memory changes to debug operations; guaranteed coverage of applies or of aged-out/unloaded events; persistence/storage changes; server/schema/Engine changes; new PR 3 breakdowns or PR 4 polish; compact Chat Settings changes. LastInjectionSummary remains unchanged in its compact Chat Settings use; the first issue removes its Debug rendering.

Implementation/release proof required: include explicit validation notes for executable client/navigation changes and the positive/negative matching cases. Follow the package-version/CHANGELOG and source-rebuild requirements, running node scripts/build-feature-packages.mjs long-term-memory without hand-editing generated outputs. Run the LTM browser and feedback-clarity regressions, npm run typecheck:packages, npm run check, node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, and git diff --check, plus applicable repository-required validation. For every LTM build/test use the issue-linked Agents workspace as workdir and explicitly set MARINARA_AGENTS_ROOT to it and MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine; do not mutate the shared Engine test host. If delivered with the workspace in one release, rebuild and validate the final combined state. Record compatible Engine install/update and relevant lifecycle proof or gaps; verification boxes remain unchecked until actually verified.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1260 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? The Vault's **View all activity** link sits below a memory's **Recent changes**, but today it only switches to the Debug tab and loses the memory context. Those durable memory events do not record which debug operation, draft or change caused them, so the link has no operation it can honestly select. This is **D31**, the separate navigation slice of the Debug-tab audit's PR 2. The approved direction is **open Debug filtered to this memory**, not select an operation and not add server-side correlation. ## Proposed package or change Pass the current Vault memory's ID through the existing navigation handoff. Open Debug's event navigator with a visible memory filter and **no selected operation**. Show whole operations whose logged events explicitly mention that memory: extractions that read it as a source or produced changes targeting it, and recalls that considered it, whether selected or rejected. Client/navigation and UI copy only. Reuse the PR 2 workspace and PR 1 full-operation helpers. No server, shared-schema, durable-event or debug-log format changes. ## Acceptance criteria - [ ] Rename the Vault link to **Open debug log**, so it does not imply the debug records are the same data source as Recent changes. Activating it passes the current memory ID through the existing navigation flow and opens Memory Settings → Debug with that memory filter applied. - [ ] The filter visibly identifies the memory, with a readable fallback when its title is unavailable. It can be cleared to view the loaded log again. Search and the existing chips compose with it; they do not discard events from matching operations. - [ ] Match explicit memory-ID references in the existing structured log records, including extraction source IDs, extraction target-note IDs, and recall selected/rejected candidate note IDs. If any relevant event mentions the memory, show that operation with its **complete available logged event list** and unchanged status. Do not infer a match from prose, titles, partial ID strings, or a Recent changes event's timestamp/type. - [ ] On entry, **nothing is selected**, including when returning from a previous Debug selection. On a phone it lands on **Events**, not Details. Choosing a row then opens that operation's details through the workspace's normal behavior. - [ ] Be honest about coverage: the filter concerns the loaded, retained debug events, not a complete history of this memory. **Some apply operations will be missed because apply logging records change/mutation IDs rather than memory IDs.** Do not fabricate a connection, promise complete apply coverage, or fetch unrelated data to reconstruct it. Preserve the existing loaded-window notice and make the limitation discoverable with the memory filter/empty state. - [ ] An empty result says there are no matching operations in the loaded debug log, not that the memory has never changed. Clearing the filter makes other loaded operations available again without modifying the underlying log. ### Required regression proof - [ ] A browser regression starts in a Vault memory's Recent changes area, follows Open debug log, and verifies the Debug memory filter and matching extraction/recall rows. Include source-note and produced-target references plus both selected and rejected recall candidates; an unrelated operation must be excluded. Matching operations retain all their available events and their status. - [ ] Include an apply operation containing only change/mutation IDs: do not falsely attribute it to the memory, and expose the documented coverage caveat. Do not manufacture operation/draft correlation in the Recent changes fixture. - [ ] Run the mobile flow: the link opens Events with no selection; the user selects a row and reaches Details, then can return using the switcher. Cover a previous selection being cleared, no-match behavior, clearing the memory filter, and composition with the workspace's search/chips. - [ ] Preserve the first issue's clipboard, token wording, status, no-invented-duration and overflow guarantees, and leave compact Chat Settings and LastInjectionSummary unchanged. ## Blocked by - #1259 — the PR 2 two-pane Debug workspace, including row selection, details and mobile Events / Details switching. This issue builds on that complete workspace; do not implement it against the old expander layout. PR 1's #1255 data helpers are a transitive prerequisite through #1259. ## Why should this be optional? The Vault and Debug are existing views within the downloadable Long-Term Memory package. Their context handoff belongs in that package, not Engine core. ## Alternatives considered - **Select the operation that caused a Recent changes entry:** not possible with the existing event records. That would require a separately authorized server/data-contract change and is explicitly out of scope. - **Open the unfiltered Debug tab:** preserves today's loss of context. - **Use the server's source-note filter alone:** would miss extraction targets and recall candidates, and can truncate operations. Filter whole operations client-side using their explicit existing logged references. ## Additional context Source: maintainer's `scratch/audits/ltm-debug-tab-ui-audit.md`, revision 2, D31, with the maintainer's correction during ticket preparation: replace its selected-operation wording with this memory-filtered direction. Other PR 2 findings belong to #1259. This issue must remain separate and blocked by it. The original audit baseline was staging `f140047`, LTM 1.4.6; at issue preparation HEAD/upstream staging were `fe7889dc6640c36f77709ecfc89fee80671fd819`, LTM 1.4.11. Current source inspection confirmed that the link carries no operation and the memory event creation does not provide one. This is static evidence only; no runtime reproduction, implementation or validation was performed while creating this issue. **Non-goals:** correlating durable memory changes to debug operations; guaranteed coverage of applies or of aged-out/unloaded events; persistence/storage changes; server/schema/Engine changes; new PR 3 breakdowns or PR 4 polish; compact Chat Settings changes. LastInjectionSummary remains unchanged in its compact Chat Settings use; the first issue removes its Debug rendering. **Implementation/release proof required:** include explicit validation notes for executable client/navigation changes and the positive/negative matching cases. Follow the package-version/CHANGELOG and source-rebuild requirements, running `node scripts/build-feature-packages.mjs long-term-memory` without hand-editing generated outputs. Run the LTM browser and feedback-clarity regressions, `npm run typecheck:packages`, `npm run check`, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, and `git diff --check`, plus applicable repository-required validation. For every LTM build/test use the issue-linked Agents workspace as workdir and explicitly set `MARINARA_AGENTS_ROOT` to it and `MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine`; do not mutate the shared Engine test host. If delivered with the workspace in one release, rebuild and validate the final combined state. Record compatible Engine install/update and relevant lifecycle proof or gaps; verification boxes remain unchecked until actually verified. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:29:18 +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#644
No description provided.