[PR #992] [CLOSED] fix(long-term-memory): enforce source review at commit #1229

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/992
Author: @SirAdoni
Created: 9/20/2026
Status: ❌ Closed

Base: staging ← Head: contrib/a11-memory-review-boundary


📝 Commits (1)

  • 2fbf4f0 fix(long-term-memory): enforce provenance review at commit

📊 Changes

14 files changed (+262 additions, -91 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.7.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 (+4 -0)
📝 packages/long-term-memory/client.js (+24 -24)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+33 -33)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts (+8 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/ltm-review-provenance.regression.ts (+145 -0)

📄 Description

Linked issue

Closes #990

Why this change

Character, lorebook and chat-summary extraction produces proposed memory, not automatically approved facts. A stale preparation flag must not let a source-backed draft bypass review when low-risk auto-apply is requested.

What changed

  • Require review for chat-summary provenance alongside character and lorebook sources.
  • Recompute the review requirement when committing the prepared result, use it in the saved draft and block low-risk auto-apply for those sources.
  • Preserve newer staging batch, retry and vault-lock behavior.
  • Release Long-Term Memory 1.3.7 and rebuild package-owned runtime, manifest, archive, catalog lanes and release notes.

Deterministic preparation can still report no review requirement, but commit enforces the source provenance boundary. This is deliberate: all three valid persisted source provenance kinds require review, including deterministic extraction from those sources. Existing Game Mode memory architecture is not newly introduced by this PR.

Validation

Passed npm check (zero errors, existing warnings), package type checks, focused provenance regression, catalog lanes, locales, release notes, manifest/catalog validation, archive integrity, deterministic rebuild, privacy review and git diff --check.

The regression exercises each provenance kind and a real deterministic mutation whose preparation flag is false; commit must mark the draft review-required and leave the mutation unapplied even with applyLowRisk enabled. Provider output is simulated. Model quality and live Engine installation remain manual checks.

Rebuilt from package-owned source; no installed or candidate runtime bundle was copied. Archive size: 1352723 bytes. SHA-256: e66c0246529c49fd52cea9217269d3487876eb4a0e2264e762d90e1f6ec43b64.

  • 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

  • Install/update and extract character, lorebook and chat-summary sources; verify proposed mutations require review.
  • Verify low-risk automatic application cannot bypass the review boundary, and explicit review/application still works.
  • Verify restart, batch retry and uninstall behavior.
  • Complete required CI and CodeRabbit review before merge. This AI-assisted PR remains draft.

Documentation impact

Package changelog and generated release notes included. No Engine or translated documentation changes.

  • No further documentation changes needed
  • Review package changelog and generated release notes

UI evidence (if applicable)

No UI changes. Tests use synthetic notes. Private campaign data, local paths, credentials, prompt logs and screenshots are excluded.


🔄 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/992 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/20/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `contrib/a11-memory-review-boundary` --- ### 📝 Commits (1) - [`2fbf4f0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2fbf4f0b8ade93dfcc03256b5850757f9d3e1c10) fix(long-term-memory): enforce provenance review at commit ### 📊 Changes **14 files changed** (+262 additions, -91 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.7.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` (+4 -0) 📝 `packages/long-term-memory/client.js` (+24 -24) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+33 -33) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/source-processing.ts` (+8 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/ltm-review-provenance.regression.ts` (+145 -0) </details> ### 📄 Description ## Linked issue Closes #990 ## Why this change Character, lorebook and chat-summary extraction produces proposed memory, not automatically approved facts. A stale preparation flag must not let a source-backed draft bypass review when low-risk auto-apply is requested. ## What changed - Require review for chat-summary provenance alongside character and lorebook sources. - Recompute the review requirement when committing the prepared result, use it in the saved draft and block low-risk auto-apply for those sources. - Preserve newer staging batch, retry and vault-lock behavior. - Release Long-Term Memory 1.3.7 and rebuild package-owned runtime, manifest, archive, catalog lanes and release notes. Deterministic preparation can still report no review requirement, but commit enforces the source provenance boundary. This is deliberate: all three valid persisted source provenance kinds require review, including deterministic extraction from those sources. Existing Game Mode memory architecture is not newly introduced by this PR. ## Validation Passed npm check (zero errors, existing warnings), package type checks, focused provenance regression, catalog lanes, locales, release notes, manifest/catalog validation, archive integrity, deterministic rebuild, privacy review and git diff --check. The regression exercises each provenance kind and a real deterministic mutation whose preparation flag is false; commit must mark the draft review-required and leave the mutation unapplied even with applyLowRisk enabled. Provider output is simulated. Model quality and live Engine installation remain manual checks. Rebuilt from package-owned source; no installed or candidate runtime bundle was copied. Archive size: 1352723 bytes. SHA-256: `e66c0246529c49fd52cea9217269d3487876eb4a0e2264e762d90e1f6ec43b64`. - [ ] `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 - [ ] Install/update and extract character, lorebook and chat-summary sources; verify proposed mutations require review. - [ ] Verify low-risk automatic application cannot bypass the review boundary, and explicit review/application still works. - [ ] Verify restart, batch retry and uninstall behavior. - [ ] Complete required CI and CodeRabbit review before merge. This AI-assisted PR remains draft. ## Documentation impact Package changelog and generated release notes included. No Engine or translated documentation changes. - [ ] No further documentation changes needed - [ ] Review package changelog and generated release notes ## UI evidence (if applicable) No UI changes. Tests use synthetic notes. Private campaign data, local paths, credentials, prompt logs and screenshots are excluded. --- <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:19 +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#1229
No description provided.