mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5405] [Feature]: Player-controlled deletion and export/import of experience-state saves #2994
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2994
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 @kolacheee on GitHub (Aug 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5405
Originally assigned to: @kolacheee on GitHub.
What exists today
A game-surface Experience persists its save through
GET/PUT /api/game/:chatId/experience-state(#5102). Every narration turn keeps its own snapshot row ingame_engine_state, pruned to the newest 100 anchors. There is no DELETE verb, and no way to read any row other than the visible anchor's — so a package can neither remove old saves nor extract them.Why this matters (concrete scenario)
Pixelforge is adding a "New Game" flow. Starting over in the same chat leaves up to ~100 rows of the previous campaign at old anchors. The package can make them inert (a game ordinal in its own state), but:
engineStateDataby value (#5102/#5077) — so old campaigns stay restorable from their checkpoints even after their rows are cleaned.The ask
On the experience-state route family, scoped to the chat's
experience:<id>namespace:All three are player-initiated from the package UI; nothing automatic.
Context: this came out of the Pixelforge S5 (player state) implementation plan; happy to adjust the shape to whatever fits the route conventions.
@kolacheee commented on GitHub (Aug 22, 2026):
Claiming this one — implementing the three verbs (DELETE / export GET / import POST) on the experience-state route family, gated by the same
resolveExperienceStateGameType404/409 checks and scoped strictly to the chat'sexperience:<id>namespace. Working onfeat/5405-save-managementoffstaging.