mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #2018] [Issue]: Long-Term Memory: one "event-shaped character fact" warning holds a whole hands-off draft, and habit verbs set it off #1873
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#1873
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?
Originally created by @Promansis on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2018
Originally assigned to: @Promansis on GitHub.
Summary
In a hands-off mode ("Save safe memories for me"), one
event_shaped_character_factwarning sets the draft'sreviewRequired. Hands-off then skips every mutation in that draft, including low-risk timeline, world and other character items. The warning also fires on plainly durable facts. Its verb list includes habit and possession verbs (uses,keeps,holds,wears,carries), and it matches a past-tense backstory verb anywhere in the section text.Advanced Memory scene recaps (1.5.20) are dense, backstory-heavy summaries, so nearly every recap trips the check. In one real chat, 3 of 5 recap drafts saved nothing in hands-off mode because of a single flagged line each. 22 low-risk items waited for review.
Affected package
long-term-memory
Expected behavior
Actual behavior
diagnosticsRequireExtractionReview(extraction/evidence-unit-extraction.ts) listsevent_shaped_character_fact. That setsdraft.reviewRequired, anddrafts/reconciliation.ts(if (draft.reviewRequired && options.autoApplyLowRiskOnly)) skips all mutations.EVENT_SHAPED_CHARACTER_FACT_PATTERN(extraction/evidence-unit-validation.ts) matched these durable lines: "…was once kidnapped and went through a debrief", "…keeps a folder of screenshots…", "…uses a driver named…", "…recently returned from several years abroad".Steps to reproduce
event_shaped_character_factwarning.Environment
Logs, screenshots, or video
Draft accounting from the affected chat: 5 recap drafts. 1 was fully auto-applied (7/7). 1 was partly applied (7/8; the relationship waits). 3 applied 0, each with one or two
event_shaped_character_factwarnings and every mutation at risklow, confidence 0.9.Additional context
History: #907 (#908) added the durable-assertion escape. #1126 (#1129) turned the drop into a review warning. 1.4.5 (#1237) made the warning block low-risk auto-apply for the whole draft. Hands-off (#1980) and the Advanced Memory import (#1964) now expose it on almost every recap.
Minimal fix
Scope: Long-Term Memory server only, one patch release. No storage format, client or Engine change.
extraction/evidence-unit-validation.ts,riskForEvidenceUnit(unit)returns"medium"whenisEventShapedCharacterFact(unit)is true, so the compiled mutation carrying that unit is medium risk (the compiler'smaxRiskover units already propagates it). Remove"event_shaped_character_fact"fromdiagnosticsRequireExtractionReviewinextraction/evidence-unit-extraction.ts, so the warning no longer sets draft-levelreviewRequired. Keep the warning diagnostic itself. The other codes in that list stay draft-level.uses?|holds?|keeps?|wears?|carries?fromEVENT_SHAPED_CHARACTER_FACT_PATTERN. Leave the other verbs and the durable-assertion escape as they are; do not add new phrasing exceptions.Regression (
tests/long-term-memory-extraction-graph.regression.ts):applyLowRisk: true, a draft holding one event-shaped character fact plus one low-risk world fact applies the world fact. The event-shaped mutation stays pending at riskmedium, the warning is still emitted, anddraft.reviewRequiredis false.eventsignal so it matches the new rule (the flagged mutation is held and the rest apply). Keep theborrowedandcontrolexpectations, and therequiresReview-before-truncation proof at ~line 1928 for the codes that still gate the draft.factsproduces noevent_shaped_character_factwarning.Non-goals: rewording the review card's "Low / 90% confidence" chip (risk vs confidence), other diagnostics' draft-level gating, and the verb list beyond the five habit verbs.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: