mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 20:58:37 +07:00
[GH-ISSUE #909] [Issue]: Harden LTM thread lifecycle and resolved-thread fanout validation #477
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#477
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 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/909
Originally assigned to: @Promansis on GitHub.
Summary
The Long-Term Memory extraction pipeline can reject valid unresolved thread candidates because validation requires resolution-oriented wording, and its resolved-thread fanout diagnostic compares raw subjects instead of canonical timeline note targets. Together these rules can drop valid open threads and report false missing-history warnings for valid resolutions.
Affected package
Long-Term Memory (
long-term-memory), server-side extraction validation and compilation.Expected behavior
resolved_thread_missing_fanout.Actual behavior
isVagueThreadrejects thread text solely because it does not matchTHREAD_RESOLUTION_PATTERN, coupling validity to a lexical heuristic.timeline_<subjectId>), so valid retained timeline events can be reported as missing fanout.Steps to reproduce
timeline_eventwhose canonical target istimeline_<subjectId>.Environment
Logs, screenshots, or video
Not applicable. The evidence is in the server-side validator/compiler path and should be covered with synthetic fixtures only.
Additional context
Investigation of phase three of the LTM extraction reliability plan classified this as a code-confirmed contract mismatch. The narrow implementation scope is:
evidence-unit-validation.ts: remove the hard validity dependency on resolver keywords while preserving genuine invalid-thread safeguards; compare fanout against canonical timeline note IDs.evidence-unit-compiler.ts: preserve its existing exact-target/in-place status behavior; change it only if a focused regression exposes a real gap.tests/long-term-memory-extraction-graph.regression.ts: add synthetic positive and negative regression assertions for resolver-free threads, exact target reuse, and canonical fanout.Prompt wording changes are maintained separately in Marinara Engine and are not part of this repository issue. Do not include private user data or live-vault repair work.
Focused proof target:
tests/long-term-memory-extraction-graph.regression.ts. The investigation did not execute provider calls or live-vault operations.Template check