[PR #1215] [MERGED] fix(long-term-memory): 1.3.41 — trustworthy extraction debug reporting #1346

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/extraction-debug-reporting


📝 Commits (2)

  • cda8d6b fix(long-term-memory): 1.3.41 — trustworthy extraction debug reporting
  • e9369fc Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/extraction-debug-reporting

📊 Changes

17 files changed (+319 additions, -109 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.41.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+5 -0)
📝 packages/long-term-memory/client.js (+28 -28)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+66 -14)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+5 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts (+16 -13)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+115 -0)
📝 tests/long-term-memory-extraction-reliability.regression.ts (+33 -2)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1209

Why this change

Long-Term Memory's extraction debug activity could not be trusted: missing provider usage was displayed as zero, a collapsed operation could show a source title instead of the extraction failure, and truncated model responses looked successful. This makes the activity log reliable enough to diagnose an extraction.

What changed

  • long-term-memory: extraction debug events now distinguish estimated prompt tokens from provider-reported usage and omit unavailable optional usage fields instead of inventing zeros.
  • long-term-memory: collapsed debug operations surface the principal failure or warning, show the model and the measured duration only, and flag truncated model responses; preflight failures are preserved when context metadata is absent.
  • Regenerated packages/long-term-memory/{client.js,server.mjs,manifest.json}, the artifacts/long-term-memory-1.3.41.zip artifact, and all catalog lanes plus notes.json.
  • Version bumped 1.3.39 to 1.3.41 (1.3.40 is claimed by upstream #1214); added the matching 1.3.41 changelog entry.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (>=2.4.1 <4.0.0 unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none (debug accounting and UI display only; no storage or schema change)

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

Manual verification notes

  • test-fast.sh (Prettier, ESLint, git diff --check) passed.
  • test-catalog-lanes.mjs, validate-package-locales.mjs, validate-catalog.mjs, and catalog-release-notes.regression.mjs passed.
  • typecheck-packages.mjs long-term-memory passed.
  • test-ltm.sh browser passed, including the desktop/mobile debug activity fixtures and the unmeasured-duration proof.
  • test-ltm.sh installation passed for the rebuilt 1.3.41 artifact (install, offline restart, backup, uninstall, reinstall, durable bytes).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Summary by CodeRabbit

  • New Features

    • Extraction activity details now distinguish estimated input tokens from provider-reported usage and provide clearer descriptions for truncated responses and context or output-budget failures.
    • Activity entries show clearer operation summaries, statuses, and source-note titles.
  • Bug Fixes

    • Missing token counts and durations are no longer displayed as zero.
    • Truncated model responses are flagged as warnings, and duplicate warning details are suppressed.
  • Updates

    • Long-Term Memory is updated to version 1.3.41.

🔄 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/1215 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/extraction-debug-reporting` --- ### 📝 Commits (2) - [`cda8d6b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cda8d6bf690c266e6f08d86d1d10ef69ff0ab8d3) fix(long-term-memory): 1.3.41 — trustworthy extraction debug reporting - [`e9369fc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e9369fc8920eb2d215781cbc7e8589ceca9f3b08) Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/extraction-debug-reporting ### 📊 Changes **17 files changed** (+319 additions, -109 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.41.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+5 -0) 📝 `packages/long-term-memory/client.js` (+28 -28) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+66 -14) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+5 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-extraction.ts` (+16 -13) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+115 -0) 📝 `tests/long-term-memory-extraction-reliability.regression.ts` (+33 -2) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue Closes #1209 ## Why this change Long-Term Memory's extraction debug activity could not be trusted: missing provider usage was displayed as zero, a collapsed operation could show a source title instead of the extraction failure, and truncated model responses looked successful. This makes the activity log reliable enough to diagnose an extraction. ## What changed - `long-term-memory`: extraction debug events now distinguish estimated prompt tokens from provider-reported usage and omit unavailable optional usage fields instead of inventing zeros. - `long-term-memory`: collapsed debug operations surface the principal failure or warning, show the model and the measured duration only, and flag truncated model responses; preflight failures are preserved when context metadata is absent. - Regenerated `packages/long-term-memory/{client.js,server.mjs,manifest.json}`, the `artifacts/long-term-memory-1.3.41.zip` artifact, and all catalog lanes plus `notes.json`. - Version bumped `1.3.39` to `1.3.41` (1.3.40 is claimed by upstream #1214); added the matching `1.3.41` changelog entry. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (`>=2.4.1 <4.0.0` unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none (debug accounting and UI display only; no storage or schema change) ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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` ### Manual verification notes - `test-fast.sh` (Prettier, ESLint, `git diff --check`) passed. - `test-catalog-lanes.mjs`, `validate-package-locales.mjs`, `validate-catalog.mjs`, and `catalog-release-notes.regression.mjs` passed. - `typecheck-packages.mjs long-term-memory` passed. - `test-ltm.sh browser` passed, including the desktop/mobile debug activity fixtures and the unmeasured-duration proof. - `test-ltm.sh installation` passed for the rebuilt `1.3.41` artifact (install, offline restart, backup, uninstall, reinstall, durable bytes). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Extraction activity details now distinguish estimated input tokens from provider-reported usage and provide clearer descriptions for truncated responses and context or output-budget failures. * Activity entries show clearer operation summaries, statuses, and source-note titles. * **Bug Fixes** * Missing token counts and durations are no longer displayed as zero. * Truncated model responses are flagged as warnings, and duplicate warning details are suppressed. * **Updates** * Long-Term Memory is updated to version 1.3.41. <!-- 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:09: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#1346
No description provided.