[PR #1423] [MERGED] chore(long-term-memory): 1.4.40 — the server modules no longer import each other in a loop #1450

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

📋 Pull Request Information

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

Base: staging ← Head: chore(long-term-memory)/1416-import-cycle


📝 Commits (2)

  • c9e6308 chore(long-term-memory): move subjectsEqual to its own module to remove a server import cycle
  • 3eef129 Merge upstream/staging into chore(long-term-memory)/1416-import-cycle; release long-term-memory 1.4.40

📊 Changes

18 files changed (+76 additions, -70 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.40.zip (+0 -0)
📝 catalog/catalog.json (+4 -4)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+4 -4)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+4 -4)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/manifest.json (+2 -2)
📝 packages/long-term-memory/server.mjs (+27 -27)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/draft-projector.ts (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-compiler.ts (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts (+1 -1)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts (+1 -1)
➕ packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-equality.ts (+6 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts (+1 -5)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-extraction-graph.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 #1416

Why this change

  • Six Long-Term Memory server modules (storage, draft-projector, scoped-targets, subject-identity, rejected-suggestions, draft-store) formed a runtime import cycle, so start-up order was fragile and none of them could be loaded or tested alone. The whole cycle hung on one pure three-line helper, subjectsEqual, which draft-projector.ts and scoped-targets.ts took from the 2,700-line subject-identity.ts.

What changed

  • subjectsEqual moved unchanged to a new leaf module, subject-equality.ts, which has no runtime imports. draft-projector.ts, scoped-targets.ts, evidence-unit-compiler.ts, source-extraction.ts and subject-identity.ts import it from there. One existing test import in tests/long-term-memory-extraction-graph.regression.ts was updated for the same reason.
  • No behaviour change. A scan of runtime imports in the folder found one six-module cycle before and none after.
  • Package long-term-memory 1.4.40: rebuilt server.mjs, manifest, artifact zip and catalog entries; CHANGELOG entry added.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min / engine.maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond a normal package update; no stored data changes

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

  • Not manually exercised in the app; this is a no-behaviour-change module move.
  • Automated, run by the author at the pushed commit: npm run check, the long-term-memory typecheck, the full long-term-memory regression suite (test-ltm.sh all), the candidate-reconciliation regression, the catalog, lane, locale and release-note validators, and a rebuild that leaves the tree unchanged.

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 change.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • Updated Long-Term Memory to version 1.4.40.
    • Memory recall, extraction, and storage behavior remain unchanged.

🔄 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/1423 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(long-term-memory)/1416-import-cycle` --- ### 📝 Commits (2) - [`c9e6308`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c9e630845f8f79b20b6d2f760065fb4d90f14264) chore(long-term-memory): move subjectsEqual to its own module to remove a server import cycle - [`3eef129`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3eef12924fd443986943fb64099435ffa1ae4d9b) Merge upstream/staging into chore(long-term-memory)/1416-import-cycle; release long-term-memory 1.4.40 ### 📊 Changes **18 files changed** (+76 additions, -70 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.40.zip` (+0 -0) 📝 `catalog/catalog.json` (+4 -4) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+4 -4) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+4 -4) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/manifest.json` (+2 -2) 📝 `packages/long-term-memory/server.mjs` (+27 -27) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/draft-projector.ts` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/evidence-unit-compiler.ts` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-extraction.ts` (+1 -1) ➕ `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-equality.ts` (+6 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/subject-identity.ts` (+1 -5) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-extraction-graph.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 #1416 ## Why this change - Six Long-Term Memory server modules (storage, draft-projector, scoped-targets, subject-identity, rejected-suggestions, draft-store) formed a runtime import cycle, so start-up order was fragile and none of them could be loaded or tested alone. The whole cycle hung on one pure three-line helper, `subjectsEqual`, which `draft-projector.ts` and `scoped-targets.ts` took from the 2,700-line `subject-identity.ts`. ## What changed - `subjectsEqual` moved unchanged to a new leaf module, `subject-equality.ts`, which has no runtime imports. `draft-projector.ts`, `scoped-targets.ts`, `evidence-unit-compiler.ts`, `source-extraction.ts` and `subject-identity.ts` import it from there. One existing test import in `tests/long-term-memory-extraction-graph.regression.ts` was updated for the same reason. - No behaviour change. A scan of runtime imports in the folder found one six-module cycle before and none after. - Package `long-term-memory` 1.4.40: rebuilt `server.mjs`, manifest, artifact zip and catalog entries; CHANGELOG entry added. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` / `engine.maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond a normal package update; no stored data changes ## 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 - Not manually exercised in the app; this is a no-behaviour-change module move. - Automated, run by the author at the pushed commit: `npm run check`, the long-term-memory typecheck, the full long-term-memory regression suite (`test-ltm.sh all`), the candidate-reconciliation regression, the catalog, lane, locale and release-note validators, and a rebuild that leaves the tree unchanged. ## 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; no UI change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Updated Long-Term Memory to version 1.4.40. * Memory recall, extraction, and storage behavior remain unchanged. <!-- 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:11: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-Agents#1450
No description provided.