mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6680] [MERGED] fix(memory): recall distinctive details and allow partial scene access #7283
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7283
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-Engine/pull/6680
Author: @SpicyMarinara
Created: 9/25/2026
Status: ✅ Merged
Merged: 9/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/advanced-memory-scene-recall📝 Commits (9)
6cbaf9adocs: record advanced memory recall and scene-summary fixesf6f5352fix(memory): recall distinctive cues and allow partial scene accesscebe9aaMerge branch 'staging' into codex/advanced-memory-scene-recall33fda7bfix(memory): guard stale recap visibility and cache source readers3346a24fix(memory): exclude disabled sources from partial recall rankingfbdba5dfix(memory): refresh scene conditions after character renamesed7e650fix(memory): keep hidden dates out of recalled timelines0b3c4d8Merge branch 'staging' into codex/advanced-memory-scene-recallfd8f408fix(memory): preserve shared scene dates and hidden-history coverage📊 Changes
10 files changed (+518 additions, -70 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/agents/memory.md(+3 -1)➕
packages/server/src/services/advanced-memory-ranking.ts(+38 -0)📝
packages/server/src/services/advanced-memory.ts(+158 -60)📝
scripts/regressions/advanced-memory-audience.regression.ts(+31 -3)📝
scripts/regressions/advanced-memory-core.regression.ts(+4 -1)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+2 -2)📝
scripts/regressions/advanced-memory-recall.regression.ts(+80 -0)📝
scripts/regressions/advanced-memory-recovery.regression.ts(+3 -0)📝
scripts/regressions/advanced-memory-summary.regression.ts(+197 -3)📄 Description
Linked issue
Closes #6679
Why this change
Advanced Memory can miss a scene despite a distinctive detail appearing in both the new message and the saved recap. A character who witnessed most of a shared scene is also excluded from its recap if even one message was hidden from them.
What changed
Codex is handling this for @SpicyMarinara. Local lexical scoring gives distinctive latest-turn cues more weight and searches indexed messages even with excerpt output disabled. Normal recall adds no helper or embedding calls.
Partial participants can share scene access; entirely hidden scenes remain unavailable. The summary helper receives message-visibility annotations and instructions to keep shared prose plain while conditioning private sections. Saved recaps track source visibility and reader names, so partial readers cannot receive stale or unreviewed legacy text. Targeted preparation repairs generated recaps; manual text requires an explicit reviewed save. Reader visibility sets are cached once per preparation context.
Scene dates and timeframes are shared metadata for every assigned participant, including partial readers. Constant Chat Summaries retain messages hidden from AI, with character conditions controlling access to private details. Existing narrator-only excerpt protection for conditional recaps remains in place.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdCompleted local validation (final revision
fd8f408d41f06e12c2f80911e56a03de82f5235a):pnpm check, all 10 Advanced Memory regression suites, andpnpm regression:promptpassed after the final fixes.e2e/advanced-memory.e2e.tscoverage: 10/10 passed after the partial-visibility fix. Later rename and timeline fixes are covered by the memory regressions.record.timelineis shared scene metadata: access to private recap text and source excerpts remains separately enforced. The shared-date and hidden-history regressions pin that intended behavior.An initial overlapping-build invocation and a browser trace save affected by local disk exhaustion were rerun successfully. The clean browser rerun used
--trace off.Provider responses in regressions are mocked. A real-model replay of the maintainer's private chat and manual browser verification were not performed. GitHub CI and GitHub CodeRabbit remain merge gates.
Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedChangelog and
docs/agents/memory.mdupdated. Translation follow-up: #6681. No version or storage-format change.UI evidence (if applicable)
Server-side recall and summary generation; no visual changes planned.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.