[GH-ISSUE #1781] [Issue]: Persona parity regressions in prompt context and native sprite round trips #864

Closed
opened 2026-10-21 05:22:34 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1781

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Persona parity scan found three refactor regressions:

  • Active persona alt descriptions are saved in the catalog but are not appended to prompt context.
  • Persona RPG stats are edited under personaStats.rpgStats, but prompt assembly reads top-level rpgStats.
  • Persona sprite UI stores persona sprites under sprites/personas/<id>, but native persona export/import still reads/writes sprites/<id>.

Expected behavior

Persona data saved in the catalog should be consumed by generation and should round-trip through native persona import/export.

Active alt descriptions should be included in prompt persona text. RPG stats configured in the persona editor should reach game/persona generation context. Persona sprites uploaded through the persona sprite UI should export and import with the persona.

Actual behavior

Current refactor prompt assembly does not reference persona altDescriptions.

Current refactor stores RPG stats nested under personaStats.rpgStats, but prompt assembly reads data.rpgStats.

Current refactor persona sprite UI uses the persona owner namespace, while native persona export/import still uses the legacy un-namespaced sprite folder.

Steps to reproduce

  1. Create or edit a persona with an active alt description, then inspect generated prompt/persona context.
  2. Enable persona RPG stats in the persona stats editor, then inspect game/persona generation context.
  3. Upload a persona sprite in the persona Sprites tab, export the persona as a native persona package, then import it and inspect restored sprites.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor at cc81eb440345
  • Run mode: static parity audit; runtime proof not run
  • OS + version: not collected
  • Node + pnpm versions: not collected
  • Rust version, if relevant: not collected
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No runtime logs or screenshots. Static evidence:

Current refactor:

  • src/engine/generation/prompt-assembly.ts:274
  • src/engine/generation/prompt-assembly.ts:285
  • src/engine/generation/prompt-assembly.ts:289
  • src/engine/generation/prompt-assembly.ts:1073
  • src/features/catalog/personas/components/sprites/PersonaSpritesTab.tsx:117
  • src-tauri/src/commands/storage/sprites.rs:1658
  • src-tauri/src/commands/storage/exports.rs:686
  • src-tauri/src/commands/storage/imports/marinara_assets.rs:33

Legacy comparison:

  • packages/server/src/routes/generate.routes.ts:2125
  • packages/server/src/routes/generate/retry-agents-route.ts:178
  • packages/server/src/routes/generate.routes.ts:5239
  • packages/server/src/routes/characters.routes.ts:138
  • packages/client/src/components/personas/PersonaEditor.tsx:705

Regression notes

These behaviors existed in the legacy implementation checked at hotfix/1.6.1-tracker-alias-avatar-hud-temp commit 7c6190aabdc1.

Additional context

Likely repair queue:

  1. Merge active persona altDescriptions into the loaded prompt persona description.
  2. Normalize nested personaStats.rpgStats into generation persona RPG stats.
  3. Update native persona sprite export/import to use the persona owner namespace, with a legacy fallback for existing sprites/<id> data.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1781 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Persona parity scan found three refactor regressions: - Active persona alt descriptions are saved in the catalog but are not appended to prompt context. - Persona RPG stats are edited under `personaStats.rpgStats`, but prompt assembly reads top-level `rpgStats`. - Persona sprite UI stores persona sprites under `sprites/personas/<id>`, but native persona export/import still reads/writes `sprites/<id>`. ## Expected behavior Persona data saved in the catalog should be consumed by generation and should round-trip through native persona import/export. Active alt descriptions should be included in prompt persona text. RPG stats configured in the persona editor should reach game/persona generation context. Persona sprites uploaded through the persona sprite UI should export and import with the persona. ## Actual behavior Current refactor prompt assembly does not reference persona `altDescriptions`. Current refactor stores RPG stats nested under `personaStats.rpgStats`, but prompt assembly reads `data.rpgStats`. Current refactor persona sprite UI uses the persona owner namespace, while native persona export/import still uses the legacy un-namespaced sprite folder. ## Steps to reproduce 1. Create or edit a persona with an active alt description, then inspect generated prompt/persona context. 2. Enable persona RPG stats in the persona stats editor, then inspect game/persona generation context. 3. Upload a persona sprite in the persona Sprites tab, export the persona as a native persona package, then import it and inspect restored sprites. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [x] Chat mode - [x] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` at `cc81eb440345` - Run mode: static parity audit; runtime proof not run - OS + version: not collected - Node + pnpm versions: not collected - Rust version, if relevant: not collected - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No runtime logs or screenshots. Static evidence: Current refactor: - `src/engine/generation/prompt-assembly.ts:274` - `src/engine/generation/prompt-assembly.ts:285` - `src/engine/generation/prompt-assembly.ts:289` - `src/engine/generation/prompt-assembly.ts:1073` - `src/features/catalog/personas/components/sprites/PersonaSpritesTab.tsx:117` - `src-tauri/src/commands/storage/sprites.rs:1658` - `src-tauri/src/commands/storage/exports.rs:686` - `src-tauri/src/commands/storage/imports/marinara_assets.rs:33` Legacy comparison: - `packages/server/src/routes/generate.routes.ts:2125` - `packages/server/src/routes/generate/retry-agents-route.ts:178` - `packages/server/src/routes/generate.routes.ts:5239` - `packages/server/src/routes/characters.routes.ts:138` - `packages/client/src/components/personas/PersonaEditor.tsx:705` ## Regression notes These behaviors existed in the legacy implementation checked at `hotfix/1.6.1-tracker-alias-avatar-hud-temp` commit `7c6190aabdc1`. ## Additional context Likely repair queue: 1. Merge active persona `altDescriptions` into the loaded prompt persona description. 2. Normalize nested `personaStats.rpgStats` into generation persona RPG stats. 3. Update native persona sprite export/import to use the persona owner namespace, with a legacy fallback for existing `sprites/<id>` data. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:22:34 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

More regression fixes.

<!-- gh-comment-id:4591274022 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): More regression fixes.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 1, 2026):

Fixed on refactor in df14eb88, with the native persona sprite round-trip portion already covered by d7770ac9.

What changed:

  • Persona prompt context now appends active alt description blocks to the persona description.
  • Persona RPG stats are read from the nested personaStats.rpgStats shape saved by the current persona editor, with top-level rpgStats still supported.
  • Persona stats/RPG stats parsing now tolerates object or JSON-string storage shapes.
  • Native persona sprite export/import now uses the persona sprite namespace with legacy export fallback from the sprite parity fix.

Verification:

  • pnpm typecheck
  • pnpm check:architecture
  • cargo check --manifest-path src-tauri/Cargo.toml
  • git diff --check
<!-- gh-comment-id:4591957135 --> @SpicyMarinara commented on GitHub (Jun 1, 2026): Fixed on refactor in df14eb88, with the native persona sprite round-trip portion already covered by d7770ac9. What changed: - Persona prompt context now appends active alt description blocks to the persona description. - Persona RPG stats are read from the nested personaStats.rpgStats shape saved by the current persona editor, with top-level rpgStats still supported. - Persona stats/RPG stats parsing now tolerates object or JSON-string storage shapes. - Native persona sprite export/import now uses the persona sprite namespace with legacy export fallback from the sprite parity fix. Verification: - pnpm typecheck - pnpm check:architecture - cargo check --manifest-path src-tauri/Cargo.toml - git diff --check
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-Engine#864
No description provided.