[PR #776] [MERGED] Memory-nag range extraction and Pixelforge weather contract verification #1130

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

📋 Pull Request Information

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

Base: staging ← Head: fix/assigned-memory-weather-sweep


📝 Commits (3)

  • 925dcdb docs: track assigned memory range sweep
  • 729da1d feat(memory-nag): scan a chosen message range and verify weather contract
  • f75a045 test(memory-nag): clean up resources when fixture setup fails

📊 Changes

24 files changed (+514 additions, -68 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+5 -0)
➕ artifacts/memory-nag-1.1.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+10 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+10 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+10 -0)
➕ packages/memory-nag/CHANGELOG.md (+5 -0)
📝 packages/memory-nag/client.js (+7 -7)
📝 packages/memory-nag/manifest.json (+5 -5)
📝 packages/memory-nag/server.mjs (+6 -6)
📝 packages/memory-nag/src/engine/packages/client/src/features/memory-nag/MemoryNagSettings.tsx (+72 -4)
📝 packages/memory-nag/src/engine/packages/client/src/features/memory-nag/locales/en.json (+8 -1)
📝 packages/memory-nag/src/engine/packages/client/src/features/memory-nag/locales/pl.json (+12 -2)
📝 packages/memory-nag/src/engine/packages/server/src/services/memory-nag/routes.ts (+11 -2)
📝 packages/memory-nag/src/engine/packages/server/src/services/memory-nag/scanner.ts (+42 -12)
📝 packages/pixelforge/docs/ROADMAP.md (+2 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 scripts/validate-package-locales.mjs (+4 -3)

...and 4 more files

📄 Description

Linked issue

Closes #774
Closes #775
Related: Pasta-Devs/Marinara-Engine#5999, Pasta-Devs/Marinara-Engine#5903; companion Engine PR Pasta-Devs/Marinara-Engine#6007.

Why this change

Long Roleplay chats need a way to create memories from recent, relevant history without paying to scan every old message. Memory Nag now accepts an inclusive range while retaining the existing all-unprocessed flow and vault. Pixelforge already ships the requested narrow weather verb on staging; this PR protects that contract and clarifies what it promises.

What changed

  • Memory Nag 1.1.0 adds “All unprocessed messages” / “Message range”, first/last message inputs, English copy, and Polish translations. Partial community catalogs retain the existing English fallback.
  • Resolve message numbers to stable IDs once, validate the bounds on the server before generation, and keep every batch within them. Older rescans preserve the furthest checkpoint, so later automatic scans do not revisit deliberately skipped history. Existing memories remain intact.
  • Keep Chat Settings open when using the progress and prompt overlays through the existing floating-panel marker.
  • Rebuild the Memory Nag payloads, manifest, ZIP, release notes, and all catalog lanes. No dependencies added.
  • Pin Pixelforge’s existing word/intensity-only weather contract in a regression and document that it remains global until changed. Day/relative verbs and replay/rewind guarantees remain deferred; Pixelforge stays uncatalogued.

Package and security impact

  • Affected package IDs: memory-nag; pixelforge contract proof/documentation only.
  • Engine compatibility impact: unchanged minimum 2.4.4; existing persistence and model capabilities.
  • New or changed permissions/entrypoints: no permissions added. The existing Roleplay-only scan route accepts an optional validated range; GET on the same route supplies eligible message IDs.
  • Restart, storage, update, or uninstall impact: no lifecycle or vault format change; existing serialized scan lock and monotonic checkpoint behavior are reused.

Validation

Observed local results:

  • npm run check — passed (69 existing warnings, no errors).
  • Catalog lanes, package locales, bundled locale keys, catalog/archive/hash validation, and generated release-note regression — passed.
  • Memory Nag selection and new range regressions — passed. A 1,000-message fixture covers bounded batches, deleted earlier history, invalid/foreign/deleted bounds before provider calls, older rescans, and subsequent all-unprocessed continuation.
  • node tests/pixelforge-weather-contract.regression.mjs and node packages/pixelforge/test-brief.mjs — passed.
  • node scripts/run-package-browser-tests.mjs memory-nag tests/package-memory-nag.e2e.ts --workers 1 — 2 passed, desktop and mobile Chromium. The installed package rejects an invalid range, scans messages 8–12 through a mock model, and stores exactly those source IDs. Closing the result leaves the settings accessible.
  • git diff --check — passed.

The checkboxes below remain human verification tasks.

  • 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

  • Manually verify range selection and cancellation with your normal provider in a long Roleplay chat.
  • Manually verify package update/restart/uninstall with a retained personal vault; the automated browser proof uses isolated package fixtures and synthetic data.
  • Pixelforge validation covers the shipped verb contract and existing test brief, not an end-to-end visual weather rewind. No rewind behavior is claimed.

Documentation impact

Memory Nag’s package changelog and generated release notes describe the range feature. Pixelforge’s roadmap states the current weather contract and deferred semantics. No Engine docs paths or catalog membership were changed.

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

UI evidence (if applicable)

Before/after captures, provenance, and proof boundaries. Baseline package 1.0.17 and rebuilt 1.1.0 were each loaded in isolated desktop/mobile Engine browser fixtures.

Before After
Memory Nag before Memory Nag range

Summary by CodeRabbit

  • New Features

    • Memory Nag now supports creating vault memories from either all unprocessed messages or a specific message range.
    • Added range validation and progress tracking for selected messages.
    • Closing progress or prompt windows keeps the underlying chat settings open.
  • Documentation

    • Updated Memory Nag release information to version 1.1.0.
    • Clarified Pixelforge weather command behavior and supported options.
  • Tests

    • Added regression coverage for message-range scanning, checkpoint continuity, and weather command contracts.

🔄 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/776 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/9/2026 **Status:** ✅ Merged **Merged:** 9/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/assigned-memory-weather-sweep` --- ### 📝 Commits (3) - [`925dcdb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/925dcdbd7d78ba3410bcad566c25cbae7c0768c6) docs: track assigned memory range sweep - [`729da1d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/729da1dc22ebf3546b2750088680c9c34b3fb011) feat(memory-nag): scan a chosen message range and verify weather contract - [`f75a045`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f75a045c8a8e040c98045cf83d567ba46db20a01) test(memory-nag): clean up resources when fixture setup fails ### 📊 Changes **24 files changed** (+514 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+5 -0) ➕ `artifacts/memory-nag-1.1.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+10 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+10 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+10 -0) ➕ `packages/memory-nag/CHANGELOG.md` (+5 -0) 📝 `packages/memory-nag/client.js` (+7 -7) 📝 `packages/memory-nag/manifest.json` (+5 -5) 📝 `packages/memory-nag/server.mjs` (+6 -6) 📝 `packages/memory-nag/src/engine/packages/client/src/features/memory-nag/MemoryNagSettings.tsx` (+72 -4) 📝 `packages/memory-nag/src/engine/packages/client/src/features/memory-nag/locales/en.json` (+8 -1) 📝 `packages/memory-nag/src/engine/packages/client/src/features/memory-nag/locales/pl.json` (+12 -2) 📝 `packages/memory-nag/src/engine/packages/server/src/services/memory-nag/routes.ts` (+11 -2) 📝 `packages/memory-nag/src/engine/packages/server/src/services/memory-nag/scanner.ts` (+42 -12) 📝 `packages/pixelforge/docs/ROADMAP.md` (+2 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `scripts/validate-package-locales.mjs` (+4 -3) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #774 Closes #775 Related: Pasta-Devs/Marinara-Engine#5999, Pasta-Devs/Marinara-Engine#5903; companion Engine PR Pasta-Devs/Marinara-Engine#6007. ## Why this change Long Roleplay chats need a way to create memories from recent, relevant history without paying to scan every old message. Memory Nag now accepts an inclusive range while retaining the existing all-unprocessed flow and vault. Pixelforge already ships the requested narrow weather verb on staging; this PR protects that contract and clarifies what it promises. ## What changed - Memory Nag 1.1.0 adds “All unprocessed messages” / “Message range”, first/last message inputs, English copy, and Polish translations. Partial community catalogs retain the existing English fallback. - Resolve message numbers to stable IDs once, validate the bounds on the server before generation, and keep every batch within them. Older rescans preserve the furthest checkpoint, so later automatic scans do not revisit deliberately skipped history. Existing memories remain intact. - Keep Chat Settings open when using the progress and prompt overlays through the existing floating-panel marker. - Rebuild the Memory Nag payloads, manifest, ZIP, release notes, and all catalog lanes. No dependencies added. - Pin Pixelforge’s existing word/intensity-only weather contract in a regression and document that it remains global until changed. Day/relative verbs and replay/rewind guarantees remain deferred; Pixelforge stays uncatalogued. ## Package and security impact - Affected package IDs: `memory-nag`; `pixelforge` contract proof/documentation only. - Engine compatibility impact: unchanged minimum 2.4.4; existing persistence and model capabilities. - New or changed permissions/entrypoints: no permissions added. The existing Roleplay-only scan route accepts an optional validated range; GET on the same route supplies eligible message IDs. - Restart, storage, update, or uninstall impact: no lifecycle or vault format change; existing serialized scan lock and monotonic checkpoint behavior are reused. ## Validation Observed local results: - `npm run check` — passed (69 existing warnings, no errors). - Catalog lanes, package locales, bundled locale keys, catalog/archive/hash validation, and generated release-note regression — passed. - Memory Nag selection and new range regressions — passed. A 1,000-message fixture covers bounded batches, deleted earlier history, invalid/foreign/deleted bounds before provider calls, older rescans, and subsequent all-unprocessed continuation. - `node tests/pixelforge-weather-contract.regression.mjs` and `node packages/pixelforge/test-brief.mjs` — passed. - `node scripts/run-package-browser-tests.mjs memory-nag tests/package-memory-nag.e2e.ts --workers 1` — 2 passed, desktop and mobile Chromium. The installed package rejects an invalid range, scans messages 8–12 through a mock model, and stores exactly those source IDs. Closing the result leaves the settings accessible. - `git diff --check` — passed. The checkboxes below remain human verification tasks. - [ ] `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 - Manually verify range selection and cancellation with your normal provider in a long Roleplay chat. - Manually verify package update/restart/uninstall with a retained personal vault; the automated browser proof uses isolated package fixtures and synthetic data. - Pixelforge validation covers the shipped verb contract and existing test brief, not an end-to-end visual weather rewind. No rewind behavior is claimed. ## Documentation impact Memory Nag’s package changelog and generated release notes describe the range feature. Pixelforge’s roadmap states the current weather contract and deferred semantics. No Engine docs paths or catalog membership were changed. - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) [Before/after captures, provenance, and proof boundaries](https://gist.github.com/SpicyMarinara/89f081fc677d5efec80f4a4a1769bb38#memory-nag--desktop). Baseline package 1.0.17 and rebuilt 1.1.0 were each loaded in isolated desktop/mobile Engine browser fixtures. | Before | After | | --- | --- | | ![Memory Nag before](https://gist.githubusercontent.com/SpicyMarinara/89f081fc677d5efec80f4a4a1769bb38/raw/memory-before-desktop-chromium.png) | ![Memory Nag range](https://gist.githubusercontent.com/SpicyMarinara/89f081fc677d5efec80f4a4a1769bb38/raw/memory-range-desktop.png) | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Memory Nag now supports creating vault memories from either all unprocessed messages or a specific message range. - Added range validation and progress tracking for selected messages. - Closing progress or prompt windows keeps the underlying chat settings open. - **Documentation** - Updated Memory Nag release information to version 1.1.0. - Clarified Pixelforge weather command behavior and supported options. - **Tests** - Added regression coverage for message-range scanning, checkpoint continuity, and weather command contracts. <!-- 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:33 +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#1130
No description provided.