[GH-ISSUE #304] [Feature]: Long-Term Memory safe detail section rename #156

Closed
opened 2026-10-20 17:24:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Promansis on GitHub (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/304

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory note detail sections need a safe rename operation so a detail can change its section key without losing stored content, changing entry order, colliding with another section, or leaving pending draft mutations pointing at the old key.

Proposed package or change

Implement Slice 2 for the Long-Term Memory package: add shared request/response contracts, an atomic storage operation that renames one note section key while preserving order and content and rejecting collisions, a privileged route that rebuilds indexes after success, rewrites compatible pending draft mutation sectionKey references for that note, and emits an event. Add storage and route regression coverage.

Why should this be optional?

This behavior belongs to the optional Long-Term Memory feature package and its vault-owned storage and routes.

Alternatives considered

Updating the entire note through the generic patch route would not provide a collision-safe, focused rename contract or atomically update related pending drafts.

Additional context

Generated package outputs remain unchanged for this source-only slice.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/304 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory note detail sections need a safe rename operation so a detail can change its section key without losing stored content, changing entry order, colliding with another section, or leaving pending draft mutations pointing at the old key. ## Proposed package or change Implement Slice 2 for the Long-Term Memory package: add shared request/response contracts, an atomic storage operation that renames one note section key while preserving order and content and rejecting collisions, a privileged route that rebuilds indexes after success, rewrites compatible pending draft mutation `sectionKey` references for that note, and emits an event. Add storage and route regression coverage. ## Why should this be optional? This behavior belongs to the optional Long-Term Memory feature package and its vault-owned storage and routes. ## Alternatives considered Updating the entire note through the generic patch route would not provide a collision-safe, focused rename contract or atomically update related pending drafts. ## Additional context Generated package outputs remain unchanged for this source-only slice. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@Promansis commented on GitHub (Aug 15, 2026):

Superseded by https://github.com/Pasta-Devs/Marinara-Agents/issues/351; the branch scope is now tracked by the umbrella Long-Term Memory release issue.

<!-- gh-comment-id:5301631516 --> @Promansis commented on GitHub (Aug 15, 2026): Superseded by https://github.com/Pasta-Devs/Marinara-Agents/issues/351; the branch scope is now tracked by the umbrella Long-Term Memory release issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#156
No description provided.