[GH-ISSUE #1259] [Feature]: long-term-memory Debug two-pane workspace (PR 2: D09, D10, D12, D15, D16, D34) #640

Closed
opened 2026-10-20 17:29:16 +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/1259

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

The Long-Term Memory Debug tab is difficult to scan: its filter mixes phases with status, recall context can silently belong to another chat, and nested expanders separate an operation from its details. On-screen JSON is transformed into friendly text while Copy JSON copies different, raw identifiers. Recall facts lack a useful hierarchy and memory names cannot be followed to the Vault. Copy JSON's accessible name does not include its visible label.

This is the cohesive PR 2 two-pane workspace slice from the Debug-tab UI audit, revision 2: D09, D10, D12, D15, D16, D34. D31 is a separate dependent issue for a memory-filtered Vault deep link. Do not split the navigator and details pane into separate deliveries: either alone leaves a half-working tab.

Proposed package or change

Replace Debug's expander-based presentation with the existing LtmWorkspace, using an event navigator and a details workbench, without an inspector. Reuse the tested full-operation data helpers from #1255. Selecting a row shows that operation's details; raw records are available through Copy JSON, never as on-screen JSON.

Client UI and English UI copy only; approximately 15 locale keys across the PR 2 scope, not a hard quota. No server, shared-schema, Engine, permission, or storage changes.

Acceptance criteria

  • Debug uses LtmWorkspace's navigator/workbench behavior, with no inspector. Remove the outer Debug tab panel's mari-editor-panel p-3 styling so the pane panels are not nested inside another panel. Preserve the tabpanel's accessibility semantics, settings controls, existing LTM width cap and content padding.
  • Reuse the shared layout: a minmax(17rem, 20rem) navigator, two panes from a 48rem container width, and an Events / Details switcher below that width. The list uses the Vault's scrolling convention. Selecting an operation on a phone opens Details; the switcher allows returning to Events. Nothing selected has an explicit details empty state.
  • Rows show what · which on the first line and a short outcome on the second. Status is an icon plus visually hidden status text, not color alone or repeated visible status labels. Every recorded recall explanation is an ordinary history row naming its source chat, including when Debug opens without a current chat; nothing is pinned as the latest recall. Steps sharing an operation ID remain in that operation's timeline, not separate list operations.
  • Put search and counted All / Problems / Recall / Extraction chips directly above the navigator. Problems includes warnings and errors. Search and chips select whole operations without changing their full event list, status or copied records. Group visible rows under localized Today / Earlier headings.
  • Selecting a row fills a coherent details pane: status/title/time header, Copy JSON, labeled Details facts and What happened timeline. Put existing recall result/selection information before run parameters; keep facts associated with the selected recall rather than a separate latest-recall panel. Existing selected/rejected memory names open the corresponding Vault memory when a resolved memory and navigation callback are available.
  • Remove the Debug activity <details>/<summary> expander UI and <pre> JSON UI. No on-screen text renders responseSnippet. Copy JSON copies the selected operation's raw logged records, with identifiers and any response snippet intact, without the prose humanizer. Its accessible name begins with the visible Copy JSON wording, optionally followed by the operation title (D34).
  • LastInjectionSummary itself is unchanged. Debug stops rendering it. Compact Chat Settings continues rendering it unchanged. This does not wait for the separate chat-surface latest-recall work, and does not change compact Chat Settings behavior, wording or layout.

Required regression changes

  • Rewrite assertDebugActivity: the browser test currently finds operations through expander rows; it must select a navigator row and assert against the details pane instead. The mobile pass must exercise the Events / Details switcher.
  • Replace the assertion that the reply excerpt appears in a raw JSON block with an assertion on what Copy JSON writes to the clipboard. Verify the copied records contain the raw IDs and excerpt, and the excerpt is absent from all on-screen Debug text.
  • Keep the existing token wording, status words and no invented duration checks unchanged in meaning and expected wording. In particular, retain the estimated/provider-reported/reasoning/output/total token assertions, Completed / Completed with warnings / Failed and problem-text assertions, and the started-only operation's lack of a fabricated duration. Preserve the existing 500 ms check and no-horizontal-overflow checks.
  • Cover search/chips and whole-operation status, recall chat identity, a recall-memory link opening the Vault, selection/details behavior, and Copy JSON's label-in-name. Keep existing compact Chat Settings regressions. Adapt feedback-clarity static selectors/contracts only where the authorized layout changes require it; do not weaken unrelated guarantees.

Blocked by

  • #1255 — PR 1: tested Debug data helpers and full-operation filtering. Build on those helpers rather than duplicating grouping, status, title lookup or outcome logic.

The separate D31 issue depends on this workspace and adds a memory filter plus navigation handoff; it is not permission to expand this issue into server correlation work.

Why should this be optional?

This is UI inside the existing downloadable Long-Term Memory package, not new Engine core functionality. It stays with the package and uses the existing host/UI contracts.

Alternatives considered

The maintainer chose the shared two-pane layout over a full-width log with a slide-in drawer or a three-pane workstation. Keeping raw JSON on screen, retaining per-item expanders, or temporarily retaining LastInjectionSummary in Debug is not the agreed direction.

Additional context

Source: maintainer's scratch/audits/ltm-debug-tab-ui-audit.md, revision 2, sections 1a and 4. The audit baseline was staging f140047, LTM 1.4.6. At issue preparation, local HEAD and upstream staging were fe7889dc6640c36f77709ecfc89fee80671fd819, LTM 1.4.11; historical audit line references are not a fresh runtime reproduction. No implementation, build or browser validation was performed while creating this issue.

Non-goals: PR 3's new Result / Not kept / Not added / Not saved breakdowns and recovery callouts; PR 4's toolbar, save-flow and announcement polish or health line; a Korean UI catalog; Engine tokens; server changes; compact Chat Settings changes. Preserve existing information and guarantees while moving it into the new structure.

Implementation/release proof required: executable client code is security-sensitive; include explicit positive/negative validation notes and distinguish automated proof from unverified manual host behavior. Bump from the then-current staging package version, add a CHANGELOG entry, and rebuild Long-Term Memory with node scripts/build-feature-packages.mjs long-term-memory. Do not hand-edit generated bundles, archives, catalog entries or hashes. Run the LTM browser and feedback-clarity regressions, package typechecking (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 set both explicit roots: MARINARA_AGENTS_ROOT to that workspace and MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine; do not mutate the shared Engine test host. Record compatible Engine install/update and relevant lifecycle proof or gaps; leave verification boxes 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/1259 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? The Long-Term Memory Debug tab is difficult to scan: its filter mixes phases with status, recall context can silently belong to another chat, and nested expanders separate an operation from its details. On-screen JSON is transformed into friendly text while Copy JSON copies different, raw identifiers. Recall facts lack a useful hierarchy and memory names cannot be followed to the Vault. Copy JSON's accessible name does not include its visible label. This is the cohesive **PR 2 two-pane workspace** slice from the Debug-tab UI audit, revision 2: **D09, D10, D12, D15, D16, D34**. D31 is a separate dependent issue for a memory-filtered Vault deep link. Do not split the navigator and details pane into separate deliveries: either alone leaves a half-working tab. ## Proposed package or change Replace Debug's expander-based presentation with the existing **LtmWorkspace**, using an event navigator and a details workbench, without an inspector. Reuse the tested full-operation data helpers from #1255. Selecting a row shows that operation's details; raw records are available through Copy JSON, never as on-screen JSON. Client UI and English UI copy only; approximately 15 locale keys across the PR 2 scope, not a hard quota. No server, shared-schema, Engine, permission, or storage changes. ## Acceptance criteria - [ ] Debug uses LtmWorkspace's navigator/workbench behavior, with no inspector. Remove the outer Debug tab panel's `mari-editor-panel p-3` styling so the pane panels are not nested inside another panel. Preserve the tabpanel's accessibility semantics, settings controls, existing LTM width cap and content padding. - [ ] Reuse the shared layout: a `minmax(17rem, 20rem)` navigator, two panes from a 48rem container width, and an Events / Details switcher below that width. The list uses the Vault's scrolling convention. Selecting an operation on a phone opens Details; the switcher allows returning to Events. Nothing selected has an explicit details empty state. - [ ] Rows show **what · which** on the first line and a short outcome on the second. Status is an icon plus visually hidden status text, not color alone or repeated visible status labels. Every recorded recall explanation is an ordinary history row naming its source chat, including when Debug opens without a current chat; nothing is pinned as the latest recall. Steps sharing an operation ID remain in that operation's timeline, not separate list operations. - [ ] Put search and counted **All / Problems / Recall / Extraction** chips directly above the navigator. Problems includes warnings and errors. Search and chips select whole operations without changing their full event list, status or copied records. Group visible rows under localized **Today / Earlier** headings. - [ ] Selecting a row fills a coherent details pane: status/title/time header, **Copy JSON**, labeled **Details** facts and **What happened** timeline. Put existing recall result/selection information before run parameters; keep facts associated with the selected recall rather than a separate latest-recall panel. Existing selected/rejected memory names open the corresponding Vault memory when a resolved memory and navigation callback are available. - [ ] Remove the Debug activity `<details>`/`<summary>` expander UI and `<pre>` JSON UI. No on-screen text renders `responseSnippet`. Copy JSON copies the selected operation's raw logged records, with identifiers and any response snippet intact, without the prose humanizer. Its accessible name begins with the visible **Copy JSON** wording, optionally followed by the operation title (D34). - [ ] **LastInjectionSummary itself is unchanged. Debug stops rendering it. Compact Chat Settings continues rendering it unchanged.** This does not wait for the separate chat-surface latest-recall work, and does not change compact Chat Settings behavior, wording or layout. ### Required regression changes - [ ] Rewrite `assertDebugActivity`: the browser test currently finds operations through expander rows; it must select a navigator row and assert against the details pane instead. The mobile pass must exercise the Events / Details switcher. - [ ] Replace the assertion that the reply excerpt appears in a raw JSON block with an assertion on what **Copy JSON writes to the clipboard**. Verify the copied records contain the raw IDs and excerpt, and the excerpt is absent from all on-screen Debug text. - [ ] Keep the existing token wording, status words and **no invented duration** checks unchanged in meaning and expected wording. In particular, retain the estimated/provider-reported/reasoning/output/total token assertions, Completed / Completed with warnings / Failed and problem-text assertions, and the started-only operation's lack of a fabricated duration. Preserve the existing 500 ms check and no-horizontal-overflow checks. - [ ] Cover search/chips and whole-operation status, recall chat identity, a recall-memory link opening the Vault, selection/details behavior, and Copy JSON's label-in-name. Keep existing compact Chat Settings regressions. Adapt feedback-clarity static selectors/contracts only where the authorized layout changes require it; do not weaken unrelated guarantees. ## Blocked by - #1255 — PR 1: tested Debug data helpers and full-operation filtering. Build on those helpers rather than duplicating grouping, status, title lookup or outcome logic. The separate D31 issue depends on this workspace and adds a memory filter plus navigation handoff; it is not permission to expand this issue into server correlation work. ## Why should this be optional? This is UI inside the existing downloadable Long-Term Memory package, not new Engine core functionality. It stays with the package and uses the existing host/UI contracts. ## Alternatives considered The maintainer chose the shared two-pane layout over a full-width log with a slide-in drawer or a three-pane workstation. Keeping raw JSON on screen, retaining per-item expanders, or temporarily retaining LastInjectionSummary in Debug is not the agreed direction. ## Additional context Source: maintainer's `scratch/audits/ltm-debug-tab-ui-audit.md`, revision 2, sections 1a and 4. The audit baseline was staging `f140047`, LTM 1.4.6. At issue preparation, local HEAD and upstream staging were `fe7889dc6640c36f77709ecfc89fee80671fd819`, LTM 1.4.11; historical audit line references are not a fresh runtime reproduction. No implementation, build or browser validation was performed while creating this issue. **Non-goals:** PR 3's new Result / Not kept / Not added / Not saved breakdowns and recovery callouts; PR 4's toolbar, save-flow and announcement polish or health line; a Korean UI catalog; Engine tokens; server changes; compact Chat Settings changes. Preserve existing information and guarantees while moving it into the new structure. **Implementation/release proof required:** executable client code is security-sensitive; include explicit positive/negative validation notes and distinguish automated proof from unverified manual host behavior. Bump from the then-current staging package version, add a CHANGELOG entry, and rebuild Long-Term Memory with `node scripts/build-feature-packages.mjs long-term-memory`. Do not hand-edit generated bundles, archives, catalog entries or hashes. Run the LTM browser and feedback-clarity regressions, package typechecking (`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 set both explicit roots: `MARINARA_AGENTS_ROOT` to that workspace and `MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine`; do not mutate the shared Engine test host. Record compatible Engine install/update and relevant lifecycle proof or gaps; leave verification boxes unchecked until actually verified. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:29:16 +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#640
No description provided.