[GH-ISSUE #1322] [Issue]: Long-Term Memory Debug: finish the agreed two-pane details (row times, result counts, recall rows, timeline) #674

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

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

Originally assigned to: @Promansis on GitHub.

Summary

The two-pane Debug layout agreed in the Debug audit shipped across 1.4.14–1.4.20, but the details pane only partly follows the agreed design:

  • rows have no time;
  • results are a run-on text line;
  • each recall candidate sits in its own box;
  • a recall that added nothing isn't explained;
  • recall settings are sentence fragments;
  • the timeline lists raw log records with full timestamps;
  • every duration is in milliseconds;
  • nothing says what Copy JSON contains beyond the screen.

All the data is already logged, so this is client-only.

Affected package

long-term-memory 1.4.24: Memory Settings → Debug (event list and details pane).

Expected behavior

This is the agreed design, minus the parts changed after it (see Additional context).

  1. Row time. Each row shows how long ago its operation last logged an event, for example "4 min ago", on the right of the row.

  2. Result as counts. Result shows each count as a large number with a label, in order:

    • extraction: "17 candidates found → 9 kept → 9 changes";
    • recall: "148 indexed → 131 usable in this chat → 2 added";
    • apply: "4 changes in the draft → 3 saved".
  3. Recall candidates. Added and Not added are flat rows separated by dividers, with no box around each candidate.

    • Each row has the memory name, then a short score bar with a tick at the run's minimum relevance, the percentage and the fused rank.
    • The reason is on its own line and names the limit: "Didn't fit the 2,048-token limit", "Ranked below the 8-memory limit".
  4. A recall that added nothing explains itself in a neutral callout:

    • "No memory reached the 50% minimum relevance." when every candidate was below it;
    • otherwise "No memory was added to this reply.";
    • in both cases, "What to try: if you expected a memory, check that it's available in this chat, or lower Minimum relevance in the Recall tab."
  5. Recall settings used. A labelled grid where every term is a whole label: "Memory limit 8", "Token limit 2,048", "Minimum relevance 50%", "Tokens used 42", "Messages read 3", "Ranking weights Semantic 0.6 · Lexical 0.2", and so on.

  6. What happened reads as steps, one sentence each, taken from the logged counts:

    • "Sent to the model", with estimated input underneath;
    • "Model replied after 71 s";
    • "Kept 9 of 17 candidates";
    • "Prepared the changes for review";
    • "Selected 3 of 4 changes";
    • "Saved the changes".

    Each step shows its offset from the start ("+72 s") and its status word. Errors and warnings keep their message under the step.

  7. Times and durations. The header reads "4:12 PM · 16 min ago · took 74 s". Durations under a second stay "N ms". Longer ones read in seconds ("12.1 s", "74 s"), and over a minute "1 min 14 s".

  8. Copy JSON note. One line under the details: "Copy JSON copies the 5 log records for this operation." When a record carries a response snippet, it adds "It includes the model's reply excerpt, which isn't shown here."

Actual behavior

Paths are under packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/. Line numbers are at staging a6cefea4.

  1. Rows show the action, subject and a summary, but no time (ActivityView.tsx:1436-1462). Only the Today / Earlier group headings place them in time.

  2. Result is one line of text (:912-966): "12 candidates · 7 kept units · 2 changes · 2 target memories · 1 duplicates".

    • Recall shows "1 added · 6 not added". The indexed and eligible counts sit under Run parameters as "Recall index: 4 indexed · 3 eligible · Loaded" (:1047-1059).
    • Apply shows "Not recorded".
  3. Each candidate is a filled box (rounded bg-[var(--background)] px-2 py-1, :705) inside the details panel. Those are boxes inside a box, which the two-pane design set out to remove.

    • The relevance text is right-aligned, away from the name: "Relevance: Fused rank 2 · 45% · Cut by the memory limit (lower fused rank)".
    • No reason names the limit that applied.
  4. A recall with nothing added shows the Result counts and the Not added list (:995-1013), with nothing that says why.

  5. Run parameters are fragments joined in JSX (:1014-1108): "Limits: 8 chunks · 2,048 tokens", "Used: 42 tokens", "Weights: Semantic weight 0.6". The keys limits ("Limits:"), chunks ("chunks ·"), used ("Used:") and weights ("Weights:") can't be translated as sentences (part of D22).

  6. The timeline (:1141-1178) lists one entry per log record, each with:

    • a "Phase / Action" heading such as "Compiler / Compile evidence";
    • a status word;
    • the describeEvent sentence;
    • the step's full date and time.

    Steps don't say what was done, and a reader has to subtract timestamps to see how long a step took.

  7. The header shows toLocaleString (:875), for example "7/30/2026, 12:00:00 AM". Every duration uses the durationMs key (:1130-1136, :1168-1172), so a 74-second extraction reads "74,000 ms".

  8. Copy JSON is the only hint (:876-886) that more is recorded than is shown.

Steps to reproduce

  1. Open Long-Term Memory → Memory Settings → Debug on desktop with recorded operations. The fixtures in tests/long-term-memory-browser.regression.ts are enough.
  2. Look at the event list: no row shows a time.
  3. Select a recall: candidates are boxed, the relevance text is detached from the name, and Run parameters are fragments.
  4. Select the recall with nothing added (the recall-rejected fixture): there is no explanation.
  5. Select "Compile evidence": Result is one line of text, and the timeline is "Phase / Action" plus full timestamps.
  6. Select an extraction that logged a duration of a second or more: it reads in milliseconds.

Environment

  • Marinara Engine version: 2.4.1 (c0ce4d8, the package's minimum)
  • Package version: long-term-memory 1.4.20 when seen. The Debug files are unchanged in 1.4.24 (staging @ a6cefea4).
  • Install type: source (the package browser regression harness, using the committed 1.4.20 artifact)
  • OS + version: Linux
  • Browser or app shell: Chromium 141 (Playwright), at 1280×900 and 390×844

Logs, screenshots, or video

Screenshot attached: the recall details at 1.4.20, showing the boxed candidates, the Run parameters fragments and the timeline. It contains fixture data only. The design mockup (static HTML, sample data) is available on request.

Additional context

Companion to #ISSUE_1 (selected row, row outcome text, the "1 duplicates" plural and smaller fixes). Land that one first: both touch the row and Result markup. Follow-up to #1275.

Decisions taken after the design that stay as shipped

  • The Vault's "Open debug log" opens Debug filtered to that memory (the memory chip).
  • "Export full log" keeps its privacy line, and the "Save now" prompt stays for an unsaved recording change.
  • The "newest 200 events" notice stays.
  • The health line shows no log size. The design showed "Log 61 KB of 2 MB" from /status events.bytes, but that is the memory event log (dirs.eventLog, routes.ts:494-498), not the debug log.
  • The design labelled scores "82% strong". Those fixed cutoffs could contradict a user-set minimum relevance, so the bar's tick at the run's minimum carries that information instead. A score under it reads "below minimum".

Minimal fixes (paths as above)

  1. Row time.
    • Add formatAge(ts, locale, now) to debug-activity.ts, using the native Intl.RelativeTimeFormat(locale, { numeric: "always", style: "short" }) with seconds, minutes, hours and days.
    • Render <time dateTime={lastEvent.ts}> as the row's last child (:1436-1462), with shrink-0 whitespace-nowrap text-[0.6875rem].
    • It is computed at render and refreshes with the list; a ponytail: comment notes there is no ticking timer.
  2. Result counts. One small render helper:
    • Markup: <ol className="flex flex-wrap items-center gap-x-3 gap-y-1">, where each <li> holds <span className="block text-lg font-semibold tabular-nums"> plus a muted label, with an aria-hidden arrow between items.
    • Sources: extraction uses counts.totalCandidates, units and mutations. Recall uses details.indexedChunks, details.eligibleChunks and counts.selected. Apply uses mutationIds.length plus details.skippedMutationIds.length from mutations_selected (reconciliation.ts:826-838).
    • Labels have singular forms through selectLtmPluralForm. Missing numbers show "Not recorded", as today.
    • Remove recallIndexSummary from Run parameters; the index load outcome stays there as its own term.
  3. Recall rows (renderRecallCandidates, :695-738).
    • Markup: <ul className="divide-y divide-[var(--border)]">, with each <li className="grid gap-1 py-2">. Line one holds the name link (it stays 44 px), the section, the bar, the percentage and the fused rank. Line two holds the reason.
    • Bar: an aria-hidden h-1.5 w-14 rounded-full bg-[var(--border)] track, a fill at score × 100%, and a 2 px tick at scoreThreshold × 100%. The percentage stays as text, so nothing depends on the bar.
    • New keys recallReasonTokenLimit, "Didn't fit the {{tokens}}-token limit" (from maxTokens), and recallReasonMemoryLimit, "Ranked below the {{count}}-memory limit" (from maxChunks). Keep the current keys when the limit isn't recorded.
  4. Nothing added. When the recall recorded selected as an empty array, or counts.selected is 0, render StatusSurface tone="neutral" above Result. A malformed selected, like the noduration fixture's, shows no callout. The callout has:
    • recallNothingBelowMinimum, "No memory reached the {{threshold}} minimum relevance.", when every rejected candidate's rejectionReason is score_threshold and scoreThreshold is recorded;
    • otherwise recallNothingAdded, "No memory was added to this reply.";
    • in both cases tryRecallNothingAdded after "What to try".
  5. Recall settings.
    • Replace the fragment list (:1014-1108) with <dl className="grid gap-x-6 gap-y-2 sm:grid-cols-2"> of dt/dd pairs under the heading "Recall settings used".
    • Terms, all whole-label keys: Memory limit, Token limit, Minimum relevance, Tokens used, Recall mode, Messages read, Index, Index built, Embedded chunks, Semantic matching, Resolved memories, Character targeting, Ranking weights.
    • Weights render as recorded ("Semantic 0.6 · Lexical 0.2"), not as percentages, because the log doesn't guarantee they sum to 1.
    • Delete limits, chunks, used, weights and threshold once unused. tokens stays, because LastInjectionSummary.tsx:90,140 uses it.
  6. Timeline (:1141-1178).
    • Add stepText(event) next to describeEvent:
      • evidence_unit_request: "Sent to the model", with the existing estimated-input line under it;
      • evidence_unit_response: "Model replied after {{duration}}", or "Model replied" without a duration. A truncated reply keeps the existing outputTruncated text under it;
      • evidence_units_compiled: "Kept {{kept}} of {{candidates}} candidates";
      • draft_deferred: "Prepared the changes for review";
      • mutations_selected: "Selected {{saved}} of {{total}} changes";
      • a completed apply_draft: "Saved the changes";
      • recall_explanation: "Ranked {{eligible}} usable sections and added {{selected}}";
      • anything else: actionLabel(event.action).
    • Errors and warnings put describeEvent(event) under the step.
    • Replace the "Phase / Action" heading with the step text. The phase stays in Copy JSON.
    • Show the offset +{{duration}} from the operation's first event in a narrow left column, with the full timestamp on a <time dateTime title>.
    • Keep the status word: D23's Started/Succeeded stays asserted at tests/long-term-memory-browser.regression.ts:2791-2793.
  7. Times and durations.
    • Add formatDuration(ms, locale) to debug-activity.ts:
      • under 1,000 ms, the existing durationMs key, so the "500 ms" assertions at :2638, :2742, :2936 and :3033 hold;
      • under 60 s, a new durationSeconds key, "{{value}} s", with one decimal under 10 s and none above;
      • otherwise durationMinutes, "{{minutes}} min {{seconds}} s".
    • Use it at :1130-1136, at :1168-1172 and for the step offsets.
    • Header (:875): <time dateTime={lastEvent.ts} title={full}> showing the time for today, or the date and time otherwise, then "· {age}" from formatAge, then "· took {duration}" when lastEvent.durationMs is recorded.
  8. Copy JSON note. After "What happened", one muted line: copyJsonNote / copyJsonNoteOne, "Copy JSON copies the {{count}} log records for this operation.", plus copyJsonNoteExcerpt when any event has a string details.responseSnippet.

Regression proof

  • tests/long-term-memory-debug-activity.regression.ts: formatDuration at 0, 999, 1,000, 9,999, 10,000, 59,999 and 60,000 ms, and formatAge at second, minute, hour and day boundaries with a fixed now.
  • Browser test, fixtures:
    • every fixture event shares one ts and phase llm (:2401-2410); give the estimated operation's events distinct timestamps so offsets can be asserted;
    • add a copy of recall-rejected with scoreThreshold: 0.5 for the threshold callout, and update the chip-count assertions it changes.
  • Browser test, assertions:
    • each row has a <time> whose datetime equals its operation's last event ts;
    • compile Result lists "12" "candidates found", "7" "kept" and "2" "changes" in order. Recall lists indexed, usable and added. Apply lists "2 changes in the draft" and "1 saved";
    • recall candidate <li> elements have a transparent computed background. "Fused rank 2" and "45%" are still shown (D15, :2761-2762), and the memory-limit reason reads "Ranked below the 8-memory limit";
    • recall-rejected (no threshold recorded) shows "No memory was added to this reply." and What to try. Its copy with a threshold shows "No memory reached the 50% minimum relevance.", and noduration shows no callout;
    • recall settings: dt "Minimum relevance" with dd "50%" (:2751), and "Not recorded" for noduration (:2707). No "Limits:", "chunks ·", "Used:" or "Weights:" anywhere on the page;
    • the timeline shows "Sent to the model" and a "+" offset, with no "Phase /" heading;
    • noduration shows no duration in ms or s (extends :2704);
    • the Copy JSON note shows the right record count. The excerpt sentence appears only for operations with a response snippet, and the snippet text is still not on screen.
  • The existing guarantees stay asserted: token wording, no response snippet on screen, no made-up duration, no horizontal overflow on desktop and mobile, and axe with no serious violations in dark and light.

Out of scope

  • Status colours (warnings in amber, completed in the accent colour). These need the Engine's missing --marinara-editor-warning token (D14, D30).
  • The debug-log size on the health line. It needs /status to report the debug log's size and its 2 MB cap (a server change).
  • D19 (compact Chat Settings clipping) and D22 (Korean UI catalog).

Release

Client-only. Patch bump after the companion issue's release, with a CHANGELOG entry; rebuild the package, artifact and catalog entry.

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 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1322 Originally assigned to: @Promansis on GitHub. ## Summary The two-pane Debug layout agreed in the Debug audit shipped across 1.4.14–1.4.20, but the details pane only partly follows the agreed design: - rows have no time; - results are a run-on text line; - each recall candidate sits in its own box; - a recall that added nothing isn't explained; - recall settings are sentence fragments; - the timeline lists raw log records with full timestamps; - every duration is in milliseconds; - nothing says what Copy JSON contains beyond the screen. All the data is already logged, so this is client-only. ## Affected package `long-term-memory` 1.4.24: Memory Settings → Debug (event list and details pane). ## Expected behavior This is the agreed design, minus the parts changed after it (see Additional context). 1. **Row time.** Each row shows how long ago its operation last logged an event, for example "4 min ago", on the right of the row. 2. **Result as counts.** Result shows each count as a large number with a label, in order: - extraction: "17 candidates found → 9 kept → 9 changes"; - recall: "148 indexed → 131 usable in this chat → 2 added"; - apply: "4 changes in the draft → 3 saved". 3. **Recall candidates.** Added and Not added are flat rows separated by dividers, with no box around each candidate. - Each row has the memory name, then a short score bar with a tick at the run's minimum relevance, the percentage and the fused rank. - The reason is on its own line and names the limit: "Didn't fit the 2,048-token limit", "Ranked below the 8-memory limit". 4. **A recall that added nothing** explains itself in a neutral callout: - "No memory reached the 50% minimum relevance." when every candidate was below it; - otherwise "No memory was added to this reply."; - in both cases, "What to try: if you expected a memory, check that it's available in this chat, or lower Minimum relevance in the Recall tab." 5. **Recall settings used.** A labelled grid where every term is a whole label: "Memory limit 8", "Token limit 2,048", "Minimum relevance 50%", "Tokens used 42", "Messages read 3", "Ranking weights Semantic 0.6 · Lexical 0.2", and so on. 6. **What happened** reads as steps, one sentence each, taken from the logged counts: - "Sent to the model", with estimated input underneath; - "Model replied after 71 s"; - "Kept 9 of 17 candidates"; - "Prepared the changes for review"; - "Selected 3 of 4 changes"; - "Saved the changes". Each step shows its offset from the start ("+72 s") and its status word. Errors and warnings keep their message under the step. 7. **Times and durations.** The header reads "4:12 PM · 16 min ago · took 74 s". Durations under a second stay "N ms". Longer ones read in seconds ("12.1 s", "74 s"), and over a minute "1 min 14 s". 8. **Copy JSON note.** One line under the details: "Copy JSON copies the 5 log records for this operation." When a record carries a response snippet, it adds "It includes the model's reply excerpt, which isn't shown here." ## Actual behavior Paths are under `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/`. Line numbers are at `staging` `a6cefea4`. 1. Rows show the action, subject and a summary, but no time (`ActivityView.tsx:1436-1462`). Only the Today / Earlier group headings place them in time. 2. Result is one line of text (`:912-966`): "12 candidates · 7 kept units · 2 changes · 2 target memories · 1 duplicates". - Recall shows "1 added · 6 not added". The indexed and eligible counts sit under Run parameters as "Recall index: 4 indexed · 3 eligible · Loaded" (`:1047-1059`). - Apply shows "Not recorded". 3. Each candidate is a filled box (`rounded bg-[var(--background)] px-2 py-1`, `:705`) inside the details panel. Those are boxes inside a box, which the two-pane design set out to remove. - The relevance text is right-aligned, away from the name: "Relevance: Fused rank 2 · 45% · Cut by the memory limit (lower fused rank)". - No reason names the limit that applied. 4. A recall with nothing added shows the Result counts and the Not added list (`:995-1013`), with nothing that says why. 5. Run parameters are fragments joined in JSX (`:1014-1108`): "Limits: 8 chunks · 2,048 tokens", "Used: 42 tokens", "Weights: Semantic weight 0.6". The keys `limits` ("Limits:"), `chunks` ("chunks ·"), `used` ("Used:") and `weights` ("Weights:") can't be translated as sentences (part of D22). 6. The timeline (`:1141-1178`) lists one entry per log record, each with: - a "Phase / Action" heading such as "Compiler / Compile evidence"; - a status word; - the `describeEvent` sentence; - the step's full date and time. Steps don't say what was done, and a reader has to subtract timestamps to see how long a step took. 7. The header shows `toLocaleString` (`:875`), for example "7/30/2026, 12:00:00 AM". Every duration uses the `durationMs` key (`:1130-1136`, `:1168-1172`), so a 74-second extraction reads "74,000 ms". 8. Copy JSON is the only hint (`:876-886`) that more is recorded than is shown. ## Steps to reproduce 1. Open Long-Term Memory → Memory Settings → Debug on desktop with recorded operations. The fixtures in `tests/long-term-memory-browser.regression.ts` are enough. 2. Look at the event list: no row shows a time. 3. Select a recall: candidates are boxed, the relevance text is detached from the name, and Run parameters are fragments. 4. Select the recall with nothing added (the `recall-rejected` fixture): there is no explanation. 5. Select "Compile evidence": Result is one line of text, and the timeline is "Phase / Action" plus full timestamps. 6. Select an extraction that logged a duration of a second or more: it reads in milliseconds. ## Environment - Marinara Engine version: 2.4.1 (`c0ce4d8`, the package's minimum) - Package version: long-term-memory 1.4.20 when seen. The Debug files are unchanged in 1.4.24 (`staging` @ `a6cefea4`). - Install type: source (the package browser regression harness, using the committed 1.4.20 artifact) - OS + version: Linux - Browser or app shell: Chromium 141 (Playwright), at 1280×900 and 390×844 ## Logs, screenshots, or video Screenshot attached: the recall details at 1.4.20, showing the boxed candidates, the Run parameters fragments and the timeline. It contains fixture data only. The design mockup (static HTML, sample data) is available on request. ## Additional context Companion to #ISSUE_1 (selected row, row outcome text, the "1 duplicates" plural and smaller fixes). Land that one first: both touch the row and Result markup. Follow-up to #1275. **Decisions taken after the design that stay as shipped** - The Vault's "Open debug log" opens Debug filtered to that memory (the memory chip). - "Export full log" keeps its privacy line, and the "Save now" prompt stays for an unsaved recording change. - The "newest 200 events" notice stays. - The health line shows no log size. The design showed "Log 61 KB of 2 MB" from `/status` `events.bytes`, but that is the memory event log (`dirs.eventLog`, `routes.ts:494-498`), not the debug log. - The design labelled scores "82% strong". Those fixed cutoffs could contradict a user-set minimum relevance, so the bar's tick at the run's minimum carries that information instead. A score under it reads "below minimum". **Minimal fixes** (paths as above) 1. **Row time.** - Add `formatAge(ts, locale, now)` to `debug-activity.ts`, using the native `Intl.RelativeTimeFormat(locale, { numeric: "always", style: "short" })` with seconds, minutes, hours and days. - Render `<time dateTime={lastEvent.ts}>` as the row's last child (`:1436-1462`), with `shrink-0 whitespace-nowrap text-[0.6875rem]`. - It is computed at render and refreshes with the list; a `ponytail:` comment notes there is no ticking timer. 2. **Result counts.** One small render helper: - Markup: `<ol className="flex flex-wrap items-center gap-x-3 gap-y-1">`, where each `<li>` holds `<span className="block text-lg font-semibold tabular-nums">` plus a muted label, with an `aria-hidden` arrow between items. - Sources: extraction uses `counts.totalCandidates`, `units` and `mutations`. Recall uses `details.indexedChunks`, `details.eligibleChunks` and `counts.selected`. Apply uses `mutationIds.length` plus `details.skippedMutationIds.length` from `mutations_selected` (`reconciliation.ts:826-838`). - Labels have singular forms through `selectLtmPluralForm`. Missing numbers show "Not recorded", as today. - Remove `recallIndexSummary` from Run parameters; the index load outcome stays there as its own term. 3. **Recall rows** (`renderRecallCandidates`, `:695-738`). - Markup: `<ul className="divide-y divide-[var(--border)]">`, with each `<li className="grid gap-1 py-2">`. Line one holds the name link (it stays 44 px), the section, the bar, the percentage and the fused rank. Line two holds the reason. - Bar: an `aria-hidden` `h-1.5 w-14 rounded-full bg-[var(--border)]` track, a fill at `score × 100%`, and a 2 px tick at `scoreThreshold × 100%`. The percentage stays as text, so nothing depends on the bar. - New keys `recallReasonTokenLimit`, "Didn't fit the {{tokens}}-token limit" (from `maxTokens`), and `recallReasonMemoryLimit`, "Ranked below the {{count}}-memory limit" (from `maxChunks`). Keep the current keys when the limit isn't recorded. 4. **Nothing added.** When the recall recorded `selected` as an empty array, or `counts.selected` is 0, render `StatusSurface tone="neutral"` above Result. A malformed `selected`, like the `noduration` fixture's, shows no callout. The callout has: - `recallNothingBelowMinimum`, "No memory reached the {{threshold}} minimum relevance.", when every rejected candidate's `rejectionReason` is `score_threshold` and `scoreThreshold` is recorded; - otherwise `recallNothingAdded`, "No memory was added to this reply."; - in both cases `tryRecallNothingAdded` after "What to try". 5. **Recall settings.** - Replace the fragment list (`:1014-1108`) with `<dl className="grid gap-x-6 gap-y-2 sm:grid-cols-2">` of `dt`/`dd` pairs under the heading "Recall settings used". - Terms, all whole-label keys: Memory limit, Token limit, Minimum relevance, Tokens used, Recall mode, Messages read, Index, Index built, Embedded chunks, Semantic matching, Resolved memories, Character targeting, Ranking weights. - Weights render as recorded ("Semantic 0.6 · Lexical 0.2"), not as percentages, because the log doesn't guarantee they sum to 1. - Delete `limits`, `chunks`, `used`, `weights` and `threshold` once unused. `tokens` stays, because `LastInjectionSummary.tsx:90,140` uses it. 6. **Timeline** (`:1141-1178`). - Add `stepText(event)` next to `describeEvent`: - `evidence_unit_request`: "Sent to the model", with the existing estimated-input line under it; - `evidence_unit_response`: "Model replied after {{duration}}", or "Model replied" without a duration. A truncated reply keeps the existing `outputTruncated` text under it; - `evidence_units_compiled`: "Kept {{kept}} of {{candidates}} candidates"; - `draft_deferred`: "Prepared the changes for review"; - `mutations_selected`: "Selected {{saved}} of {{total}} changes"; - a completed `apply_draft`: "Saved the changes"; - `recall_explanation`: "Ranked {{eligible}} usable sections and added {{selected}}"; - anything else: `actionLabel(event.action)`. - Errors and warnings put `describeEvent(event)` under the step. - Replace the "Phase / Action" heading with the step text. The phase stays in Copy JSON. - Show the offset `+{{duration}}` from the operation's first event in a narrow left column, with the full timestamp on a `<time dateTime title>`. - Keep the status word: D23's Started/Succeeded stays asserted at `tests/long-term-memory-browser.regression.ts:2791-2793`. 7. **Times and durations.** - Add `formatDuration(ms, locale)` to `debug-activity.ts`: - under 1,000 ms, the existing `durationMs` key, so the "500 ms" assertions at `:2638`, `:2742`, `:2936` and `:3033` hold; - under 60 s, a new `durationSeconds` key, "{{value}} s", with one decimal under 10 s and none above; - otherwise `durationMinutes`, "{{minutes}} min {{seconds}} s". - Use it at `:1130-1136`, at `:1168-1172` and for the step offsets. - Header (`:875`): `<time dateTime={lastEvent.ts} title={full}>` showing the time for today, or the date and time otherwise, then "· {age}" from `formatAge`, then "· took {duration}" when `lastEvent.durationMs` is recorded. 8. **Copy JSON note.** After "What happened", one muted line: `copyJsonNote` / `copyJsonNoteOne`, "Copy JSON copies the {{count}} log records for this operation.", plus `copyJsonNoteExcerpt` when any event has a string `details.responseSnippet`. **Regression proof** - `tests/long-term-memory-debug-activity.regression.ts`: `formatDuration` at 0, 999, 1,000, 9,999, 10,000, 59,999 and 60,000 ms, and `formatAge` at second, minute, hour and day boundaries with a fixed `now`. - Browser test, fixtures: - every fixture event shares one `ts` and phase `llm` (`:2401-2410`); give the `estimated` operation's events distinct timestamps so offsets can be asserted; - add a copy of `recall-rejected` with `scoreThreshold: 0.5` for the threshold callout, and update the chip-count assertions it changes. - Browser test, assertions: - each row has a `<time>` whose `datetime` equals its operation's last event `ts`; - compile Result lists "12" "candidates found", "7" "kept" and "2" "changes" in order. Recall lists indexed, usable and added. Apply lists "2 changes in the draft" and "1 saved"; - recall candidate `<li>` elements have a transparent computed background. "Fused rank 2" and "45%" are still shown (D15, `:2761-2762`), and the memory-limit reason reads "Ranked below the 8-memory limit"; - `recall-rejected` (no threshold recorded) shows "No memory was added to this reply." and What to try. Its copy with a threshold shows "No memory reached the 50% minimum relevance.", and `noduration` shows no callout; - recall settings: `dt` "Minimum relevance" with `dd` "50%" (`:2751`), and "Not recorded" for `noduration` (`:2707`). No "Limits:", "chunks ·", "Used:" or "Weights:" anywhere on the page; - the timeline shows "Sent to the model" and a "+" offset, with no "Phase /" heading; - `noduration` shows no duration in ms or s (extends `:2704`); - the Copy JSON note shows the right record count. The excerpt sentence appears only for operations with a response snippet, and the snippet text is still not on screen. - The existing guarantees stay asserted: token wording, no response snippet on screen, no made-up duration, no horizontal overflow on desktop and mobile, and axe with no serious violations in dark and light. **Out of scope** - Status colours (warnings in amber, completed in the accent colour). These need the Engine's missing `--marinara-editor-warning` token (D14, D30). - The debug-log size on the health line. It needs `/status` to report the debug log's size and its 2 MB cap (a server change). - D19 (compact Chat Settings clipping) and D22 (Korean UI catalog). **Release** Client-only. Patch bump after the companion issue's release, with a CHANGELOG entry; rebuild the package, artifact and catalog entry. ## 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:37 +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#674
No description provided.