mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4646] [Issue]: Persona API exposes serialized storage fields and inconsistent contracts #2542
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#2542
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 (Aug 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4646
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Persona HTTP API exposes several file-storage JSON fields as serialized strings even though the application treats them as structured values. Clients compensate with duplicated local Persona types and inconsistent parsers, which makes reads and writes asymmetric and has caused silent field-loss bugs.
Expected behavior
Persona API responses should follow one shared decoded
Personacontract: structured fields should arrive as arrays, objects, or nullable values rather than storage strings. Built-in callers should send decoded values, the server should validate them, and serialization should happen only at the server/storage boundary.Legacy persisted rows and imported files should continue to decode safely without changing the file-table storage format.
Actual behavior
trackerCardColors,personaStats,tags,savedStatusOptions,convoBehavior, andavatarCrop.Steps to reproduce
GET /api/characters/personas/:idor the Persona list endpoint.JSON.stringifylogic and local response interfaces.Environment
02b111ff9Logs, screenshots, or video
No runtime logs or screenshots. Confirmed through the server route/storage boundary and client caller/type traces.
Additional context
This is planned as three reviewable parts:
Marinara ships its matching client and server together, so this does not require compatibility headers or parallel response formats. Existing serialized storage and legacy import compatibility remain in scope.
Related history: #3857 identified the broader raw-storage transport mismatch while fixing a chat symptom; #3051 and #2705 document earlier Persona import field-loss cases.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: