mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #612] [Issue]: invalidate drafts after permanent note deletion #317
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#317
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 (Aug 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/612
Originally assigned to: @Promansis on GitHub.
Summary
Review Queue fails closed when a pending draft references a note that was permanently deleted. The stale mutation target is included in the client context-note request, the server omits the missing note, and the client reports unavailable memory context for the entire queue.
Affected package
Long-Term Memory (
long-term-memory)Expected behavior
Permanent deletion should invalidate or remove drafts whose mutations target the deleted note. The review projection should preserve an affected draft as blocked evidence and prevent acceptance rather than making the entire queue unavailable.
Actual behavior
deleteNotesPermanently()removes the note without updating drafts that target it. The review endpoint intentionally keeps invalidated drafts visible.ReviewQueue.tsxcollects the stale target ID,requestNotesByIds()throws when the response omits it, and the React Query error state displaysMemory context could not load.Steps to reproduce
Environment
Logs, screenshots, or video
Long-Term Memory context unavailable for N note(s).Additional context
The fail-closed behavior was introduced in commit
d39abea0/62cca901. Existing tests cover HTTP failure and retry, intentionally omitted context notes, route-level partial ID responses, and invalidated drafts after deleting a section. There is no regression test for permanent deletion of a note referenced by a pending draft. The static UI regression passes; the route regression could not start because the neighboring Engine checkout is missingpackages/server/src/middleware/privileged-gate.js.Template check