[PR #971] [MERGED] fix(ltm): make imports retryable and batch-safe #1219

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/retryability-batch-caching


📝 Commits (2)

  • b9d1d4d fix(ltm): make imports retryable and batch-safe (#964)
  • d3a610a Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/retryability-batch-caching

📊 Changes

16 files changed (+333 additions, -72 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.6.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/long-term-memory/CHANGELOG.md (+5 -0)
📝 packages/long-term-memory/client.js (+1 -1)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+34 -34)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts (+48 -4)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+1 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-reliability.regression.ts (+195 -1)
📝 tests/long-term-memory-routes.regression.ts (+1 -1)

📄 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 #964

Why this change

  • Long-Term Memory imports currently report every extraction failure as retryable and repeatedly reload the same deterministic target-note snapshot within one batch.

What changed

  • Preserve safe provider and LTM error codes and classify permanent authentication/quota failures separately from transient failures.
  • Reuse one lazy deterministic preparation snapshot per batch while preserving destination-scope filtering and per-item failure isolation.
  • Publish Long-Term Memory 1.3.6 with rebuilt bundles, artifact, catalog entries, release notes, and focused regressions.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: unchanged; Engine >=2.4.1 and <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update requires the existing restart behavior; no storage format or uninstall behavior 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

  • /home/damo/.config/opencode/marinara-agents-local/test-ltm.sh all passed on d3a610a93114372a7209fc9bf86c4de9c7b868e1 with Engine 7c2a8227fc52b57c3208db213e67cef63a86eb72.
  • /home/damo/.config/opencode/marinara-agents-local/test-ci.sh passed on the same inputs.
  • Publication proof matched the retained repository, Engine, runtime, and lockfile inputs with no missing checks.
  • Primary observational delta review completed with no actionable findings.

Documentation impact

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

UI evidence (if applicable)

  • Not applicable; no UI behavior changed.

Summary by CodeRabbit

  • New Features

    • Added version 1.3.6 of the long-term memory package.
    • Extraction results now report actionable error codes and whether failures can be retried.
    • Game Mode batch imports reuse a single deterministic vault snapshot.
    • Permanent provider quota and configuration failures are identified as non-retryable.
    • Snapshot preparation failures remain isolated to the affected batch items.
  • Bug Fixes

    • Improved handling and reporting of extraction and provider failures.
    • Empty model responses now return a specific error classification.

🔄 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/971 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/retryability-batch-caching` --- ### 📝 Commits (2) - [`b9d1d4d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b9d1d4d507414f4345a97bdd0e377ca808bbc4fc) fix(ltm): make imports retryable and batch-safe (#964) - [`d3a610a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d3a610a93114372a7209fc9bf86c4de9c7b868e1) Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/retryability-batch-caching ### 📊 Changes **16 files changed** (+333 additions, -72 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/long-term-memory/CHANGELOG.md` (+5 -0) 📝 `packages/long-term-memory/client.js` (+1 -1) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+34 -34) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts` (+48 -4) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+1 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-reliability.regression.ts` (+195 -1) 📝 `tests/long-term-memory-routes.regression.ts` (+1 -1) </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`. ## Linked issue Closes #964 ## Why this change - Long-Term Memory imports currently report every extraction failure as retryable and repeatedly reload the same deterministic target-note snapshot within one batch. ## What changed - Preserve safe provider and LTM error codes and classify permanent authentication/quota failures separately from transient failures. - Reuse one lazy deterministic preparation snapshot per batch while preserving destination-scope filtering and per-item failure isolation. - Publish Long-Term Memory 1.3.6 with rebuilt bundles, artifact, catalog entries, release notes, and focused regressions. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: unchanged; Engine `>=2.4.1` and `<4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update requires the existing restart behavior; no storage format or uninstall behavior 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 - `/home/damo/.config/opencode/marinara-agents-local/test-ltm.sh all` passed on `d3a610a93114372a7209fc9bf86c4de9c7b868e1` with Engine `7c2a8227fc52b57c3208db213e67cef63a86eb72`. - `/home/damo/.config/opencode/marinara-agents-local/test-ci.sh` passed on the same inputs. - Publication proof matched the retained repository, Engine, runtime, and lockfile inputs with no missing checks. - Primary observational delta review completed with no actionable findings. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Not applicable; no UI behavior changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added version 1.3.6 of the long-term memory package. - Extraction results now report actionable error codes and whether failures can be retried. - Game Mode batch imports reuse a single deterministic vault snapshot. - Permanent provider quota and configuration failures are identified as non-retryable. - Snapshot preparation failures remain isolated to the affected batch items. - **Bug Fixes** - Improved handling and reporting of extraction and provider failures. - Empty model responses now return a specific error classification. <!-- 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:06:05 +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#1219
No description provided.