mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2017] StorageEntity lists non-generic entities that storage commands reject #989
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#989
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 @Xelvanis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2017
Originally assigned to: @Xelvanis on GitHub.
What problem does this solve?
The refactor runtime now correctly rejects unsupported generic storage entities, but the TypeScript storage capability still advertises some names that are not valid generic storage collections.
Current shape:
src/engine/capabilities/storage.tsincludesbackgrounds,game-assets, andgame-stateinStorageEntity.src/shared/api/storage-api.tssends genericlist/get/create/update/deletecalls directly tostorage_list,storage_get,storage_create,storage_update, andstorage_delete.src-tauri/src/commands/storage/commands/entities.rsvalidates those generic commands throughcontracts::collection_contract(entity).src-tauri/src/commands/storage/contracts.rsdoes not define generic collections forbackgrounds,game-assets, orgame-state.Dedicated paths already exist for these concepts: backgrounds use
backgrounds_*commands, game assets usegame_assets_*commands, and visible world state is stored through chatgameStateplusgame-state-snapshots/tracker snapshot APIs.Expected behavior
The frontend generic storage type should match the generic storage command registry, or be split so non-generic asset/world-state surfaces cannot be mistaken for generic collections.
A reasonable target shape:
StorageCollectionContractnames.backgrounds,game-assets, andgame-statefrom that generic set.background-metadataandsprites, if they are intended for generic callers.Actual behavior
New frontend code can compile against
StorageEntitywith a value such asbackgrounds, then fail at runtime withUnsupported storage entity: backgroundsif it reaches the generic storage command path.Current searches found no active generic caller using
storageApi.list/get/create/update/deletewithbackgrounds,game-assets, orgame-state, so this is an API contract drift rather than a confirmed visible workflow break.Impact area
Refactor branch considerations
This should stay as a narrow storage-capability cleanup. Do not route asset or world-state behavior through generic storage just to make the type line up; those surfaces already have focused wrappers and command paths.
Additional context
Found during #2011 batch 4 parityscan for the storage collection universe and registry subrows.
Related:
Focused proof from this scan: