mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1256] [MERGED] fix(long-term-memory): 1.4.11 — reserve prompt overhead and refill dropped memories #1369
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1369
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1256
Author: @Promansis
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1252-prompt-budget-refill📝 Commits (1)
8383abefix(long-term-memory): 1.4.11 — reserve prompt overhead and refill dropped memories (#1252)📊 Changes
16 files changed (+267 additions, -133 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.11.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/long-term-memory/CHANGELOG.md(+4 -0)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/server.mjs(+44 -42)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/budget.ts(+19 -7)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/generation-injection.ts(+19 -2)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/prompt.ts(+57 -41)📝
packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/retrieval.ts(+3 -0)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-runtime.regression.ts(+81 -1)📄 Description
Linked issue
Closes #1252
Why this change
no_matches, writing a zero-match injection receipt instead of a prompt-budget skip.What changed
prompt.ts: extractedrenderLongTermMemoryPrompt, addedestimateLongTermMemoryPromptOverheadandformatLongTermMemoryPromptBullet, and rewroteserializeLongTermMemoryPromptto re-fit each candidate against the rendered prompt and skip an overflowing chunk instead of popping the tail.generation-injection.ts: reserves the fixed prompt overhead in the retrieval budget (guarding the case where the overhead alone fills it), requests the prompt-normalized token estimate, and recordsskipped/prompt_budgetwhen the reserved budget rejected every candidate rather than writing a zero-match receipt.budget.ts/retrieval.ts: optional prompt-normalized estimate plus a debug-independentbudgetExhaustedsignal; defaults preserve search and reconciliation callers.tests/long-term-memory-runtime.regression.ts: a/b/c refill case, legacysummary:chunk case, and a budget-exhausted receipt-preservation case.long-term-memory1.4.11: manifest,server.mjs, artifact ZIP and catalog lane entries; changelog entry added.Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
On
8383abe57f70eca2a0da875bbffb5ba16f2282d5(pushed SHA), withMARINARA_AGENTS_ROOTandMARINARA_ENGINE_ROOTset:test-fast.sh(Prettier, ESLint,git diff --check): exit 0.npm run typecheck:packages: pass ("long-term-memory: no syntax errors, undefined names or unresolved modules").test-ltm.sh runtime,test-ltm.sh routes,test-ltm.sh debug-log: pass; runtime includes the new refill, legacysummary:and budget-exhausted cases.test-ltm.sh installation: pass ("Long-Term Memory 1.4.11 installation: install, offline restart, backup inclusion, uninstall, reinstall, and durable-byte preservation ok") against the exact committed ZIP.node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs: pass.assertPublishProofverified unchanged on final HEAD immediately before push.Documentation impact
UI evidence (if applicable)
None — server-side recall selection and prompt assembly change; no client UI surface.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.