[PR #762] [MERGED] test(long-term-memory): deduplicate proven assertions #1126

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

📋 Pull Request Information

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

Base: staging ← Head: chore(long-term-memory)/deduplicate-proven-assertions


📝 Commits (3)

  • 884ab13 test(long-term-memory): deduplicate proven assertions
  • 791f927 Merge remote-tracking branch 'upstream/staging' into chore(long-term-memory)/deduplicate-proven-assertions
  • 69b99a4 Merge branch 'staging' into chore(long-term-memory)/deduplicate-proven-assertions

📊 Changes

7 files changed (+346 additions, -319 deletions)

View changed files

📝 tests/long-term-memory-conversation-summary-import.regression.ts (+3 -0)
📝 tests/long-term-memory-debug-log.regression.ts (+11 -12)
📝 tests/long-term-memory-extraction-reliability.regression.ts (+40 -41)
📝 tests/long-term-memory-local-characters.regression.ts (+1 -0)
📝 tests/long-term-memory-routes.regression.ts (+115 -58)
📝 tests/long-term-memory-runtime.regression.ts (+159 -188)
📝 tests/long-term-memory-storage.regression.ts (+17 -20)

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

Why this change

  • Phase 3 removes repeated Long-Term Memory test setup and assertions without dropping distinct behavioral boundaries, making the regression suite easier to maintain while preserving its proof value.

What changed

  • Table-driven repeated resolver, embedding-batch, recall-scope, extraction-error, debug-filter, and storage-error cases.
  • Added non-vacuous result and mutation guards before every() assertions.
  • Preserved distinct mapping, boundary, scope, error-code, response, draft, and mutation coverage.

Package and security impact

  • Affected package IDs: None; regression tests only.
  • Engine compatibility impact: None.
  • New or changed permissions/entrypoints: None.
  • Restart, storage, update, or uninstall impact: None.

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-ltm.sh all passed with MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine, including all LTM source, UI, lifecycle, and completion-marker suites.
  • test-ci.sh passed the local catalog, security, locale, triage, and diff gates.
  • test-fast.sh passed formatting, lint, and diff checks; lint reported 0 errors and 69 warnings.
  • Focused route scenarios imports, scope-identity, backup, and all passed.
  • No package payload, manifest, artifact, catalog, or dependency changes are included, so no package rebuild or installation proof applies.

Documentation impact

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

UI evidence (if applicable)

Not applicable; this PR changes regression tests only.

Summary by CodeRabbit

  • Tests
    • Expanded regression coverage for long-term memory preview, import, local-character compilation, route validation, filtering, cross-scope extraction, and storage validation.
    • Added checks confirming non-empty results, expected error responses, provenance data, mutation links, and scenario-specific outcomes.
    • Refactored repeated test cases into data-driven loops without changing production behavior.

🔄 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/762 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/9/2026 **Status:** ✅ Merged **Merged:** 9/9/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(long-term-memory)/deduplicate-proven-assertions` --- ### 📝 Commits (3) - [`884ab13`](https://github.com/Pasta-Devs/Marinara-Agents/commit/884ab13422cf43d50b9788337cf44c458f7f39ba) test(long-term-memory): deduplicate proven assertions - [`791f927`](https://github.com/Pasta-Devs/Marinara-Agents/commit/791f927b672180fd46f191c762b35ecd92cf3097) Merge remote-tracking branch 'upstream/staging' into chore(long-term-memory)/deduplicate-proven-assertions - [`69b99a4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/69b99a484557b6edcf71149b6eeaf799b1386bd5) Merge branch 'staging' into chore(long-term-memory)/deduplicate-proven-assertions ### 📊 Changes **7 files changed** (+346 additions, -319 deletions) <details> <summary>View changed files</summary> 📝 `tests/long-term-memory-conversation-summary-import.regression.ts` (+3 -0) 📝 `tests/long-term-memory-debug-log.regression.ts` (+11 -12) 📝 `tests/long-term-memory-extraction-reliability.regression.ts` (+40 -41) 📝 `tests/long-term-memory-local-characters.regression.ts` (+1 -0) 📝 `tests/long-term-memory-routes.regression.ts` (+115 -58) 📝 `tests/long-term-memory-runtime.regression.ts` (+159 -188) 📝 `tests/long-term-memory-storage.regression.ts` (+17 -20) </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 #756 ## Why this change - Phase 3 removes repeated Long-Term Memory test setup and assertions without dropping distinct behavioral boundaries, making the regression suite easier to maintain while preserving its proof value. ## What changed - Table-driven repeated resolver, embedding-batch, recall-scope, extraction-error, debug-filter, and storage-error cases. - Added non-vacuous result and mutation guards before `every()` assertions. - Preserved distinct mapping, boundary, scope, error-code, response, draft, and mutation coverage. ## Package and security impact - Affected package IDs: None; regression tests only. - Engine compatibility impact: None. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: None. ## 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-ltm.sh all` passed with `MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine`, including all LTM source, UI, lifecycle, and completion-marker suites. - `test-ci.sh` passed the local catalog, security, locale, triage, and diff gates. - `test-fast.sh` passed formatting, lint, and diff checks; lint reported 0 errors and 69 warnings. - Focused route scenarios `imports`, `scope-identity`, `backup`, and `all` passed. - No package payload, manifest, artifact, catalog, or dependency changes are included, so no package rebuild or installation proof applies. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; this PR changes regression tests only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Expanded regression coverage for long-term memory preview, import, local-character compilation, route validation, filtering, cross-scope extraction, and storage validation. - Added checks confirming non-empty results, expected error responses, provenance data, mutation links, and scenario-specific outcomes. - Refactored repeated test cases into data-driven loops without changing production behavior. <!-- 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:03:23 +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#1126
No description provided.