mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1450] [Issue]: Long-Term Memory: misleading drop messages, lost relationship summary lines in recall, and a restored retry set that differs from live #736
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#736
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 (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1450
Originally assigned to: @Promansis on GitHub.
Summary
Three small, unrelated defects that share no files with the other open extraction work (tracker items EX-I6, EX-I8 and EX-I7):
missingSourceIdsto the retry list; live results do not. Retrying a missing source re-requests the same id and gets the same result.Affected package
long-term-memory1.4.48 (upstream/staging1f7954305).S=packages/long-term-memory/src/engine/packages/server/src/services/long-term-memoryC=packages/long-term-memory/src/engine/packages/client/src/features/long-term-memoryExpected behavior
unknown_link_targetnames the missing target. The lexical warning compares against the whole source and is attached only to kept units.Summary: Ash trusts Damo after the gate incident.\nDamo keeps her secret.renders all three lines: scores, the summary sentence, the second sentence.Actual behavior
diagnosticToDropReasonmapsunknown_link_targettounsupported_bucket(S/evidence-unit-validation.ts:791-794);userFacingDropMessageForDiagnostic(:836-847) routes that code touserFacingDropMessageForCode(:829-834), which has no case for it and falls back to "Dropped a candidate that used the wrong memory stream for source-summary extraction." (:860). In the audit's real-run sample, 5 of 11 drops carried this message.lexicalOverlap(:41-50) tokenizes the full source once per unit throughtokenize, which keeps only the first 500 tokens (shared utils.ts:26-33); the warning is pushed straight intodiagnostics(:332-340) before the drop check.normalizeBulletLines(S/prompt.ts:35-52) keeps atext:/summary:line only when it is the first normalized line.formatLtmChunkPromptText(S/prompt-text.ts:63-71) prepends the scores line for relationship chunks, so the labelled line is never first. Probe H: the chunk above renders as- Relationship scores: trust 62/100\n Damo keeps her secret.C/sources/SourcesWorkspace.tsx:573-577and:1088-1091. Restored::1340-1346, where:1344addsrestoredImportResult.missingSourceIds.Checked at
1f7954305.Steps to reproduce
Minimal fix
One PR, patch bump.
1.
S/evidence-unit-validation.tsonlyunknown_link_targetits own user-facing text that names the target (or let it fall through to the diagnostic's own message at:846, which already does). No new drop reason: that would touch the shared type and the client labels.:145), without the 500-token cap (tokenizetakesminLengthonly; add an optional limit or build the set with the same regex). Push the warning intounitDiagnosticsinstead ofdiagnostics(:333) so it reaches the result only for kept units.elseat:354-356alone unless the diff touches it.2.
S/prompt-text.ts(formatLtmChunkPromptText): strip a leadingtext:/summary:label from the first raw line of the chunk text before the scores line is prepended.normalizeBulletLineskeeps its rule, because thelegacyBulletscase in the runtime test (:439-456) relies on a latertext:duplicate line being dropped.3.
C/source-task.tsandC/sources/SourcesWorkspace.tsx: one helper,retryableSourceIds(result), that returns retryable imported rows plus retryable write failures. Use it at:573-577,:1088-1091and:1340-1346, which deletes themissingSourceIdsline. Missing ids stay listed in the result panel (:1409).CHANGELOG under
## Unreleased: three short bullets (drop message, relationship summaries in recall, retry selection after a reload).Not included
evidence-unit-extraction.ts.Regression proof
tests/long-term-memory-extraction-reliability.regression.ts: a unit linking to an unknown target is dropped with a message that names the target and not "wrong memory stream"; a unit drawn from past the 500th token of a long source gets nolow_lexical_evidencewarning; a dropped unit contributes no warning. No test coverslow_lexical_evidencetoday.tests/long-term-memory-runtime.regression.ts(therelationshipScorescase at:428-437): the probe-H chunk renders the scores line, the summary sentence and the second sentence;legacyBullets(:439-456) still passes.tests/long-term-memory-source-task.regression.ts:retryableSourceIdsreturns[]for a result whose only entries aremissingSourceIds, and the retryable ids for a mixed result. Also runfeedback-clarity-ui.Environment
staging2039583ca)upstream/staging1f7954305)Logs, screenshots, or video
None. Found by the extraction stages audit (F7, F8, F9 with probe H, CLIENT-001) and confirmed by reading the code at
1f7954305.Additional context
Tracker items EX-I6, EX-I7 and EX-I8. Shares no source file with the other batch-1 issues.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: