mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1137] [Issue]: LTM summary normalization drops timeline units in flat summaries and duplicates structured backfill #582
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#582
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 (Sep 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1137
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory extraction loses valid evidence units from chat summaries and can add duplicate units, inside the summary-normalization path.
Affected package
Long-Term Memory (
long-term-memory), server-side normalization and validation.Expected behavior
timeline_eventproduced from any summary shape is retained when it is otherwise valid.Actual behavior
normalizeUnitforcessectionKey: "event"fortimeline_event, but it only runs on the structured path (sections.length > 0). Prose or flat summaries callnormalizeTargetShapeUnit, which never setstimeline_event.sectionKey, andnormalizeSourceEventGraphsetsclaimKindbut notsectionKey.evidence-unit-validation.ts:185then drops the unit asinvalid_timeline_section. Retained relationship units that linked to the dropped event also fail asrelationship_state_missing_caused_by.parseStructuredSectionscloses a section only when a heading maps to a known bucket. An unknown heading returnsnull, so the heading line is appended to the current section and the section stays open. Following fields are attributed to the previous bucket.normalizeStructuredSummaryEvidenceUnitsappends backfilled units without comparing them to the units already returned for the source.addedUnitsis only a count.Steps to reproduce
timeline_eventand a relationship change linked to it.Environment
>=2.4.1 <4.0.0Logs, screenshots, or video
Not applicable. Evidence is in the server-side normalization and validation path and should be covered with synthetic fixtures only, without private chat or vault data.
Additional context
structured-summary-normalizer.ts(normalizeUnit,normalizeTargetShapeUnit,normalizeSourceEventGraph,parseStructuredSections) and thenormalizeStructuredSummaryEvidenceUnitscall insource-extraction.ts.normalizeSourceEventGraphearly-returns whensourceNote?.provenanceis absent; the sectionKey fix must also cover that case.tests/long-term-memory-extraction-graph.regression.ts.Template check