[PR #1274] [MERGED] feat(long-term-memory): 1.4.19 — Debug outcome breakdowns #1382

Closed
opened 2026-10-21 05:10:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1274
Author: @Promansis
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/debug-outcome-breakdowns-1273


📝 Commits (2)

  • 92a3eb3 feat(long-term-memory): 1.4.19 — Debug outcome breakdowns (#1273)
  • cc8b1e9 fix(long-term-memory): 1.4.19 — harden Debug counts and target IDs (#1273)

📊 Changes

21 files changed (+559 additions, -134 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.19.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+29 -29)
📝 packages/long-term-memory/docs/UI.md (+8 -0)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+258 -38)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+2 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx (+1 -15)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/debug-activity.ts (+4 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts (+19 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+23 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+140 -6)
📝 tests/long-term-memory-debug-activity.regression.ts (+27 -4)

...and 1 more files

📄 Description

Pull request

Contributions target staging. This PR remains a draft; local proof does not establish merge readiness.

Linked issue

Closes #1273

Why this change

  • Debug users need to understand what extraction kept or dropped, why recall did not add a candidate, and which apply changes were skipped without interpreting raw event records.

What changed

  • Long-Term Memory 1.4.19 adds recorded outcome breakdowns and problem guidance to the existing two-pane Debug workspace.
  • Group dropped candidates by reason, show optional evidence and honest truncation counts, and open the existing Review Queue only for a matching pending source draft.
  • Include valid structured target-memory IDs in title lookup and whole-operation filtering. Prefer a finite outcome drop count, otherwise use the recorded event count; preserve zero and mark missing/partial samples incomplete. If neither count is available, show Not recorded. Raw response snippets remain Copy JSON-only.
  • Reject invalid or over-120-character target IDs before requesting titles; reuse the existing ID pattern and regression files without new dependencies or state.
  • Reuse extraction reason labels in Debug and Review Queue; preserve shell navigation guards and desktop/mobile behavior.
  • Extend the existing helper, feedback-clarity and browser regressions; update UI guidance and release notes; rebuild the client, manifest, ZIP and generated catalog/notes lanes atomically.
Debug operation → recorded problems/guidance → outcomes → facts/timeline

Package and security impact

  • Affected package IDs: long-term-memory only.
  • Engine compatibility impact: unchanged, >=2.4.1 <4.0.0; Capability API 1.6 remains unchanged.
  • New or changed permissions/entrypoints: none. Executable client payload changes; server payload, schemas and Engine checkout are unchanged.
  • Restart, storage, update, or uninstall impact: existing restart requirement retained; no persistence, migration or lifecycle changes.
  • Archive member hashes and sizes match the manifest and catalog; the deterministic ZIP rebuilt without changing final committed inputs.
  • Merge danger: reversible client/UI release; blast radius is Long-Term Memory Debug and shared Review Queue reason labels.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Automated evidence

  • Before repair, existing regressions reproduced the missing target-only ID and generic overflow label. After repair, the extended regressions pass. The latest regression extensions also reproduced invalid target-ID batch entries and missing recorded event-level drop counts; those cases now pass.
  • All 11 selected publication commands exited 0 on final HEAD cc8b1e9c191fe35741e8b9b58b9566bc0c5dea9a:
    • node scripts/build-feature-packages.mjs long-term-memory
    • test-ltm.sh debug-activity
    • test-ltm.sh feedback-clarity-ui
    • test-ltm.sh browser
    • npm run typecheck:packages
    • test-fast.sh (npm run check and unstaged/staged whitespace checks)
    • 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
    • git diff --check 6685887b56c91db38b557c3fd33922bc2358983f...cc8b1e9c191fe35741e8b9b58b9566bc0c5dea9a
  • LTM builds/tests used explicit absolute Agents and Engine roots and the reported Agents workspace as working directory. Engine stayed clean at 2039583caf0288d31a5696ae3546f5b4913e7e6f.
  • Formatting passed; ESLint reported 0 errors, 809 warnings. Package typecheck covers its documented syntax/name/export/relative-resolution checks, not a clean full semantic typecheck.
  • Repository, index, Engine and actual installed dependency identities were captured before checks and compared afterward and immediately before the fork push with assertPublishProof.
  • Earlier separately authorized repair-delta review found no actionable defects in the inspected repair paths, with repair attribution relying on the handoff without an immutable pre-repair snapshot. That review predates the two latest repairs. Fresh repair-delta review was skipped for this Publish; no reviewer or CodeRabbit CLI was dispatched.
  • The publication browser run initially exited 1 after a 30-second timeout selecting “Legacy global memory” in the existing Vault navigation scenario, after the repair assertions passed. One explicitly authorized retry passed on identical repository, Engine and actual dependency inputs. Both attempts are retained; the intermittent timeout’s root cause is unresolved. No code was changed between runs. The three prior passing publication checks were reused only after confirming identical inputs, and all remaining gates passed.

Manual verification notes

  • Browser regression passed against the shipped artifact and mocked APIs, including desktop/mobile Debug outcomes, filtering and navigation. This is not real-host manual lifecycle verification.
  • Real-host install, activation, update, restart and uninstall remain unverified. Full local CI, hosted checks and CodeRabbit are separate gates; no fresh reviewer was dispatched during Publish.

Documentation impact

  • Updated packages/long-term-memory/docs/UI.md and packages/long-term-memory/CHANGELOG.md; README listing and Engine documentation remain unchanged.
  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • Existing automated browser assertions cover desktop/mobile behavior. No manual screenshots or recordings are claimed.

Summary by CodeRabbit

  • New Features
    • Long-Term Memory activity details now show extraction results, recall outcomes, skipped changes, rejection reasons, and recorded settings.
    • Open a pending extraction draft in the Review Queue directly from its activity details when available.
    • Problem explanations and suggested actions are easier to find; grouped rejected candidates include samples and truncation details.
  • Updates
    • Long-Term Memory is now version 1.4.19.

🔄 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-Agents/pull/1274 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/debug-outcome-breakdowns-1273` --- ### 📝 Commits (2) - [`92a3eb3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/92a3eb30df024fb77cfdfb9c7afc2fb6fe2d5e50) feat(long-term-memory): 1.4.19 — Debug outcome breakdowns (#1273) - [`cc8b1e9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cc8b1e9c191fe35741e8b9b58b9566bc0c5dea9a) fix(long-term-memory): 1.4.19 — harden Debug counts and target IDs (#1273) ### 📊 Changes **21 files changed** (+559 additions, -134 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.19.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+29 -29) 📝 `packages/long-term-memory/docs/UI.md` (+8 -0) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+258 -38) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx` (+1 -15) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/debug-activity.ts` (+4 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts` (+19 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+23 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+140 -6) 📝 `tests/long-term-memory-debug-activity.regression.ts` (+27 -4) _...and 1 more files_ </details> ### 📄 Description # Pull request > Contributions target `staging`. This PR remains a draft; local proof does not establish merge readiness. ## Linked issue Closes #1273 ## Why this change - Debug users need to understand what extraction kept or dropped, why recall did not add a candidate, and which apply changes were skipped without interpreting raw event records. ## What changed - Long-Term Memory **1.4.19** adds recorded outcome breakdowns and problem guidance to the existing two-pane Debug workspace. - Group dropped candidates by reason, show optional evidence and honest truncation counts, and open the existing Review Queue only for a matching pending source draft. - Include valid structured target-memory IDs in title lookup and whole-operation filtering. Prefer a finite outcome drop count, otherwise use the recorded event count; preserve zero and mark missing/partial samples incomplete. If neither count is available, show **Not recorded**. Raw response snippets remain Copy JSON-only. - Reject invalid or over-120-character target IDs before requesting titles; reuse the existing ID pattern and regression files without new dependencies or state. - Reuse extraction reason labels in Debug and Review Queue; preserve shell navigation guards and desktop/mobile behavior. - Extend the existing helper, feedback-clarity and browser regressions; update UI guidance and release notes; rebuild the client, manifest, ZIP and generated catalog/notes lanes atomically. ```text Debug operation → recorded problems/guidance → outcomes → facts/timeline ``` ## Package and security impact - Affected package IDs: `long-term-memory` only. - Engine compatibility impact: unchanged, `>=2.4.1 <4.0.0`; Capability API 1.6 remains unchanged. - New or changed permissions/entrypoints: none. Executable client payload changes; server payload, schemas and Engine checkout are unchanged. - Restart, storage, update, or uninstall impact: existing restart requirement retained; no persistence, migration or lifecycle changes. - Archive member hashes and sizes match the manifest and catalog; the deterministic ZIP rebuilt without changing final committed inputs. - Merge danger: reversible client/UI release; blast radius is Long-Term Memory Debug and shared Review Queue reason labels. ## Validation <!-- Human verification list: intentionally left unchecked. Automated results are recorded separately below. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Automated evidence - Before repair, existing regressions reproduced the missing target-only ID and generic overflow label. After repair, the extended regressions pass. The latest regression extensions also reproduced invalid target-ID batch entries and missing recorded event-level drop counts; those cases now pass. - All **11** selected publication commands exited **0** on final HEAD `cc8b1e9c191fe35741e8b9b58b9566bc0c5dea9a`: - `node scripts/build-feature-packages.mjs long-term-memory` - `test-ltm.sh debug-activity` - `test-ltm.sh feedback-clarity-ui` - `test-ltm.sh browser` - `npm run typecheck:packages` - `test-fast.sh` (`npm run check` and unstaged/staged whitespace checks) - `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` - `git diff --check 6685887b56c91db38b557c3fd33922bc2358983f...cc8b1e9c191fe35741e8b9b58b9566bc0c5dea9a` - LTM builds/tests used explicit absolute Agents and Engine roots and the reported Agents workspace as working directory. Engine stayed clean at `2039583caf0288d31a5696ae3546f5b4913e7e6f`. - Formatting passed; ESLint reported **0 errors, 809 warnings**. Package typecheck covers its documented syntax/name/export/relative-resolution checks, not a clean full semantic typecheck. - Repository, index, Engine and actual installed dependency identities were captured before checks and compared afterward and immediately before the fork push with `assertPublishProof`. - Earlier separately authorized repair-delta review found no actionable defects in the inspected repair paths, with repair attribution relying on the handoff without an immutable pre-repair snapshot. That review predates the two latest repairs. Fresh repair-delta review was **skipped** for this Publish; no reviewer or CodeRabbit CLI was dispatched. - The publication browser run initially exited 1 after a 30-second timeout selecting “Legacy global memory” in the existing Vault navigation scenario, after the repair assertions passed. One explicitly authorized retry passed on identical repository, Engine and actual dependency inputs. Both attempts are retained; the intermittent timeout’s root cause is unresolved. No code was changed between runs. The three prior passing publication checks were reused only after confirming identical inputs, and all remaining gates passed. ### Manual verification notes - Browser regression passed against the shipped artifact and mocked APIs, including desktop/mobile Debug outcomes, filtering and navigation. This is not real-host manual lifecycle verification. - Real-host install, activation, update, restart and uninstall remain unverified. Full local CI, hosted checks and CodeRabbit are separate gates; no fresh reviewer was dispatched during Publish. ## Documentation impact - Updated `packages/long-term-memory/docs/UI.md` and `packages/long-term-memory/CHANGELOG.md`; README listing and Engine documentation remain unchanged. - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Existing automated browser assertions cover desktop/mobile behavior. No manual screenshots or recordings are claimed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Long-Term Memory activity details now show extraction results, recall outcomes, skipped changes, rejection reasons, and recorded settings. * Open a pending extraction draft in the Review Queue directly from its activity details when available. * Problem explanations and suggested actions are easier to find; grouped rejected candidates include samples and truncation details. * **Updates** * Long-Term Memory is now version 1.4.19. <!-- 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-21 05:10:08 +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#1382
No description provided.