[PR #5409] [MERGED] [codex] add Memory Nag host integration #6755

Closed
opened 2026-10-23 04:13:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5409
Author: @SpicyMarinara
Created: 8/22/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/memory-nag


📝 Commits (5)

  • 1ae062c feat: add Memory Nag capability seams
  • 3bf9781 feat: complete Memory Nag host integration
  • 7334427 Merge remote-tracking branch 'origin/staging' into codex/memory-nag
  • b5121da fix(agents): harden capability runtime integration
  • 0403dd0 Merge branch 'staging' into codex/memory-nag

📊 Changes

18 files changed (+401 additions, -37 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/agents/built-in-agents.md (+12 -0)
📝 packages/client/src/components/capabilities/CapabilityElement.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+56 -16)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+20 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+24 -2)
📝 packages/server/src/routes/generate.routes.ts (+30 -2)
📝 packages/server/src/services/agents/agent-executor.ts (+24 -0)
📝 packages/server/src/services/agents/agent-pipeline.ts (+13 -1)
➕ packages/server/src/services/capability-packages/capability-agent-runtime.service.ts (+100 -0)
📝 packages/server/src/services/capability-packages/capability-module-runtime.service.ts (+5 -1)
📝 packages/server/src/services/capability-packages/capability-prompt-context.service.ts (+15 -10)
📝 packages/server/src/services/generation/runtime-agent-sections.ts (+5 -2)
📝 packages/server/src/services/prompt/marker-expander.ts (+8 -0)
📝 packages/shared/src/schemas/capability-package.schema.ts (+7 -1)
📝 packages/shared/src/types/agent.ts (+1 -0)
➕ scripts/regressions/capability-agent-runtime.regression.ts (+73 -0)
📝 scripts/regressions/prompt.regression.ts (+5 -1)

📄 Description

Linked issue

Closes #5408

Companion package: Pasta-Devs/Marinara-Agents#511

Why this change

  • Roleplay needs a downloadable Memory Nag tracker without moving package-owned storage, prompts, or UI into Engine core.
  • The host needs a small, reusable lifecycle seam for package agents to prepare context, validate results, place persistent recall in presets, and render tracker controls.

What changed

  • Adds permission-scoped package-agent preparation and finalization hooks.
  • Adds the memory_nag result type and safe preset Agent marker formatting.
  • Makes package prompt contributions placeable in an Agent marker with the default-context fallback preserved.
  • Adds reusable Roleplay tracker-strip and Tracker Panel capability slots.
  • Mounts active package settings in Roleplay Chat Settings and passes connection and confirmation services.
  • Adds a focused lifecycle/security regression, changelog entry, and Memory Nag documentation.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated locally: pnpm check.
  • Automated locally: pnpm exec tsx scripts/regressions/capability-agent-runtime.regression.ts.
  • CI previously passed validation, container build, CodeQL, and branch policy on the draft head.
  • Manual package installation and browser checks remain for the maintainer test pass.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Documentation and CHANGELOG.md are updated. Translation follow-up: #5412.

UI evidence (if applicable)

  • Package-owned Memory Nag UI is supplied by the companion Agents PR.

Summary by CodeRabbit

  • New Features

    • Added the Memory Nag agent with checkpointed transcript scanning and editable per-chat memory vaults.
    • Downloadable roleplay trackers can contribute chat settings, HUD controls, and tracker-panel views.
    • Tracker results now support structured context, configurable prompt sections, participant-based organization, relevance filtering, and resolved memories.
    • Added persistent per-chat memory data and improved validation and handling of tracker-generated results.
  • Documentation

    • Added setup and behavior guidance for the Memory Nag agent.
    • Updated capability integration documentation and supported API version.

🔄 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-Engine/pull/5409 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/memory-nag` --- ### 📝 Commits (5) - [`1ae062c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ae062c5e81e52373e10da5ac3f94cfbce9c48f5) feat: add Memory Nag capability seams - [`3bf9781`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3bf9781975a7a172e19784f6be2596fb8a86d4c1) feat: complete Memory Nag host integration - [`7334427`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7334427d69578fbd8d885a6a77a78a79b5d22ee9) Merge remote-tracking branch 'origin/staging' into codex/memory-nag - [`b5121da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5121dae9e799a6fb6ca9b3f5ccff84e45acead4) fix(agents): harden capability runtime integration - [`0403dd0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0403dd0f8b2fdeadd525f0e31b251ba7f37119bb) Merge branch 'staging' into codex/memory-nag ### 📊 Changes **18 files changed** (+401 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/agents/built-in-agents.md` (+12 -0) 📝 `packages/client/src/components/capabilities/CapabilityElement.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+56 -16) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+20 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+24 -2) 📝 `packages/server/src/routes/generate.routes.ts` (+30 -2) 📝 `packages/server/src/services/agents/agent-executor.ts` (+24 -0) 📝 `packages/server/src/services/agents/agent-pipeline.ts` (+13 -1) ➕ `packages/server/src/services/capability-packages/capability-agent-runtime.service.ts` (+100 -0) 📝 `packages/server/src/services/capability-packages/capability-module-runtime.service.ts` (+5 -1) 📝 `packages/server/src/services/capability-packages/capability-prompt-context.service.ts` (+15 -10) 📝 `packages/server/src/services/generation/runtime-agent-sections.ts` (+5 -2) 📝 `packages/server/src/services/prompt/marker-expander.ts` (+8 -0) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+7 -1) 📝 `packages/shared/src/types/agent.ts` (+1 -0) ➕ `scripts/regressions/capability-agent-runtime.regression.ts` (+73 -0) 📝 `scripts/regressions/prompt.regression.ts` (+5 -1) </details> ### 📄 Description ## Linked issue Closes #5408 Companion package: Pasta-Devs/Marinara-Agents#511 ## Why this change - Roleplay needs a downloadable Memory Nag tracker without moving package-owned storage, prompts, or UI into Engine core. - The host needs a small, reusable lifecycle seam for package agents to prepare context, validate results, place persistent recall in presets, and render tracker controls. ## What changed - Adds permission-scoped package-agent preparation and finalization hooks. - Adds the `memory_nag` result type and safe preset Agent marker formatting. - Makes package prompt contributions placeable in an Agent marker with the default-context fallback preserved. - Adds reusable Roleplay tracker-strip and Tracker Panel capability slots. - Mounts active package settings in Roleplay Chat Settings and passes connection and confirmation services. - Adds a focused lifecycle/security regression, changelog entry, and Memory Nag documentation. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated locally: `pnpm check`. - Automated locally: `pnpm exec tsx scripts/regressions/capability-agent-runtime.regression.ts`. - CI previously passed validation, container build, CodeQL, and branch policy on the draft head. - Manual package installation and browser checks remain for the maintainer test pass. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Documentation and `CHANGELOG.md` are updated. Translation follow-up: #5412. ## UI evidence (if applicable) - Package-owned Memory Nag UI is supplied by the companion Agents PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the Memory Nag agent with checkpointed transcript scanning and editable per-chat memory vaults. - Downloadable roleplay trackers can contribute chat settings, HUD controls, and tracker-panel views. - Tracker results now support structured context, configurable prompt sections, participant-based organization, relevance filtering, and resolved memories. - Added persistent per-chat memory data and improved validation and handling of tracker-generated results. - **Documentation** - Added setup and behavior guidance for the Memory Nag agent. - Updated capability integration documentation and supported API version. <!-- 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-23 04:13:24 +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-Engine#6755
No description provided.