[PR #6769] [MERGED] feat(memory): show Jev recall and scene decisions in diagnostics #7323

Closed
opened 2026-10-23 04:18:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6769
Author: @SpicyMarinara
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/jev-memory-diagnostics


📝 Commits (4)

  • 9a787f1 docs: track Jev memory diagnostics (#6768)
  • a1f1bbe feat(memory): show saved Jev recall and scene decisions (#6768)
  • 267ba73 Merge remote-tracking branch 'origin/staging' into codex/jev-memory-diagnostics
  • 9e43705 fix(memory): keep diagnostic outcomes unique and compatible

📊 Changes

15 files changed (+527 additions, -36 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/agents/memory.md (+1 -1)
📝 docs/chats/peek-prompt.md (+3 -1)
📝 e2e/decision-peek-report.e2e.ts (+77 -13)
📝 packages/client/src/components/chat/DecisionDebugPanel.tsx (+86 -9)
📝 packages/client/src/localization/locales/en.json (+17 -0)
📝 packages/server/src/routes/generate/dry-run-route.ts (+22 -0)
📝 packages/server/src/services/advanced-memory-decisions.ts (+74 -9)
📝 packages/server/src/services/advanced-memory.ts (+60 -1)
📝 packages/server/src/services/decision/decision-default.ts (+4 -0)
📝 packages/server/src/services/generation/advanced-memory-context.ts (+8 -1)
📝 packages/shared/src/types/advanced-memory.ts (+25 -0)
📝 packages/shared/src/types/decision-debug.ts (+6 -0)
📝 scripts/regressions/advanced-memory-decisions.regression.ts (+44 -1)
📝 scripts/regressions/advanced-memory-post-generation.regression.ts (+98 -0)

📄 Description

Linked issue

Closes #6768

Why this change

Jev can choose Advanced Memory recalls and check scene endings while Decision diagnostics still reports no authored decision statements. Show this activity in the existing panel so users can inspect what Jev did without rerunning paid model calls.

What changed

Save compact recall scores with the generated reply and scene-end outcomes with the memory job. Decision diagnostics displays those saved reports even when the prompt has no authored decision statements. Opening or refreshing the panel makes no new model calls; prompt tests do not rerun memory decisions. Reports identify the model, time, selections and fallback, retain up to 128 distinct outcomes, and omit credentials and complete provider payloads.

Compatible swipes keep their original recall report. Automatic summary policy changes can invalidate prompt reuse without erasing past diagnostic evidence. Preserve the existing separate Jev scene-end request and summary-model ownership of summaries, now covered through the actual generation route.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Validation on 9e437054a (the same file content exercised locally):

  • pnpm check passed: localization, formatting, types, lint and production build.
  • All 11 Advanced Memory regression suites passed, including actual generation and the merged swipe-cutoff regression.
  • The focused diagnostics browser suite passed all 6 dark/light cases on desktop Chromium, mobile Chromium and mobile WebKit. The first attempt raced a simultaneous shared-package rebuild; the complete isolated rerun passed.
  • Actual-provider fixtures verify separate Jev recall/scene requests, summary-model calls, hidden-memory filtering, scores/selections, fallback, saved-swipe reuse and read-only diagnostics.
  • Reproduced and fixed the local review finding where a policy change hid saved diagnostic results. Added unique-result coverage for the bounded report. A final focused CodeRabbit rerun reported no findings. The suggestion to order tied scores by arbitrary IDs was declined: stable sorting intentionally keeps candidate order for equal scores.
  • pnpm regression:prompt and pnpm smoke:ui passed (7 smoke cases).
  • Local Docker build passed; the isolated ARM64 runtime served a healthy API and production shell.

Manually verify the latest Jev recall and scene-end activity with your saved Decision connection after generating a reply. Model requests in regression proof use a loopback fixture, not a live hosted Jev account. Scores are diagnostics, not a guarantee of semantic recall quality.

Docs and release impact

  • No docs changes needed
  • Updated docs and changelog as needed
  • Translated documentation updated or follow-up issue opened, if applicable
  • Version/release files updated, if applicable

Updated the changelog, canonical English UI catalog, docs/agents/memory.md and docs/chats/peek-prompt.md. Translation follow-up #6770 covers every current documentation language and community UI packs. No version or storage-format migration.

UI evidence

Screenshots from the focused desktop/mobile browser tests: Jev diagnostics UI proof. The panel uses the existing theme tokens and controls; all fixtures contain synthetic content.

Summary by CodeRabbit

  • New Features
    • Decision diagnostics now show the latest Advanced Memory recall and scene-end activity, including scores, selections, fallback outcomes, and omitted-result counts.
    • Diagnostics are saved for later inspection and can appear even when no prompt decision statements are present.
    • Compatible swipes can reuse saved recall results; previews and prompt-statement tests do not rerun decisions.
  • Documentation
    • Clarified how to view decision activity, when reports update, and how saved results are retained.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6769 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/jev-memory-diagnostics` --- ### 📝 Commits (4) - [`9a787f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a787f1900efd6d6c244ad7efc9ee19bfb176688) docs: track Jev memory diagnostics (#6768) - [`a1f1bbe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a1f1bbe81c99cc55c468b6f2898acd9e1381f60b) feat(memory): show saved Jev recall and scene decisions (#6768) - [`267ba73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/267ba7304d759801d6e34ebd8b7347493d3aa67c) Merge remote-tracking branch 'origin/staging' into codex/jev-memory-diagnostics - [`9e43705`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e437054a47b54475cd255fb183786aed1887f14) fix(memory): keep diagnostic outcomes unique and compatible ### 📊 Changes **15 files changed** (+527 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/agents/memory.md` (+1 -1) 📝 `docs/chats/peek-prompt.md` (+3 -1) 📝 `e2e/decision-peek-report.e2e.ts` (+77 -13) 📝 `packages/client/src/components/chat/DecisionDebugPanel.tsx` (+86 -9) 📝 `packages/client/src/localization/locales/en.json` (+17 -0) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+22 -0) 📝 `packages/server/src/services/advanced-memory-decisions.ts` (+74 -9) 📝 `packages/server/src/services/advanced-memory.ts` (+60 -1) 📝 `packages/server/src/services/decision/decision-default.ts` (+4 -0) 📝 `packages/server/src/services/generation/advanced-memory-context.ts` (+8 -1) 📝 `packages/shared/src/types/advanced-memory.ts` (+25 -0) 📝 `packages/shared/src/types/decision-debug.ts` (+6 -0) 📝 `scripts/regressions/advanced-memory-decisions.regression.ts` (+44 -1) 📝 `scripts/regressions/advanced-memory-post-generation.regression.ts` (+98 -0) </details> ### 📄 Description ## Linked issue Closes #6768 ## Why this change Jev can choose Advanced Memory recalls and check scene endings while Decision diagnostics still reports no authored decision statements. Show this activity in the existing panel so users can inspect what Jev did without rerunning paid model calls. ## What changed Save compact recall scores with the generated reply and scene-end outcomes with the memory job. Decision diagnostics displays those saved reports even when the prompt has no authored decision statements. Opening or refreshing the panel makes no new model calls; prompt tests do not rerun memory decisions. Reports identify the model, time, selections and fallback, retain up to 128 distinct outcomes, and omit credentials and complete provider payloads. Compatible swipes keep their original recall report. Automatic summary policy changes can invalidate prompt reuse without erasing past diagnostic evidence. Preserve the existing separate Jev scene-end request and summary-model ownership of summaries, now covered through the actual generation route. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Validation on `9e437054a` (the same file content exercised locally): - `pnpm check` passed: localization, formatting, types, lint and production build. - All 11 Advanced Memory regression suites passed, including actual generation and the merged swipe-cutoff regression. - The focused diagnostics browser suite passed all 6 dark/light cases on desktop Chromium, mobile Chromium and mobile WebKit. The first attempt raced a simultaneous shared-package rebuild; the complete isolated rerun passed. - Actual-provider fixtures verify separate Jev recall/scene requests, summary-model calls, hidden-memory filtering, scores/selections, fallback, saved-swipe reuse and read-only diagnostics. - Reproduced and fixed the local review finding where a policy change hid saved diagnostic results. Added unique-result coverage for the bounded report. A final focused CodeRabbit rerun reported no findings. The suggestion to order tied scores by arbitrary IDs was declined: stable sorting intentionally keeps candidate order for equal scores. - `pnpm regression:prompt` and `pnpm smoke:ui` passed (7 smoke cases). - Local Docker build passed; the isolated ARM64 runtime served a healthy API and production shell. Manually verify the latest Jev recall and scene-end activity with your saved Decision connection after generating a reply. Model requests in regression proof use a loopback fixture, not a live hosted Jev account. Scores are diagnostics, not a guarantee of semantic recall quality. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs and changelog as needed - [ ] Translated documentation updated or follow-up issue opened, if applicable - [ ] Version/release files updated, if applicable Updated the changelog, canonical English UI catalog, `docs/agents/memory.md` and `docs/chats/peek-prompt.md`. Translation follow-up #6770 covers every current documentation language and community UI packs. No version or storage-format migration. ## UI evidence Screenshots from the focused desktop/mobile browser tests: [Jev diagnostics UI proof](https://gist.github.com/SpicyMarinara/398b3995d34c213415f7901b30f32a5f). The panel uses the existing theme tokens and controls; all fixtures contain synthetic content. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Decision diagnostics now show the latest Advanced Memory recall and scene-end activity, including scores, selections, fallback outcomes, and omitted-result counts. * Diagnostics are saved for later inspection and can appear even when no prompt decision statements are present. * Compatible swipes can reuse saved recall results; previews and prompt-statement tests do not rerun decisions. * **Documentation** * Clarified how to view decision activity, when reports update, and how saved results are retained. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:38 +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-Engine#7323
No description provided.