[GH-ISSUE #1540] [Feature]: Decide Spotify DJ malformed-result recovery behavior #786

Closed
opened 2026-10-20 17:33:22 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

The refactor structured-agent malformed JSON path is generic, and Spotify DJ does not appear to have deterministic recovery fallback equivalent to the legacy parseError handling.

Proposed behavior

Decide whether Spotify DJ needs a refactor-native malformed-result recovery path. If yes, implement it in the agent/generation integration and add focused tests for malformed structured-agent output.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • 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

Refactor branch considerations

Local audit evidence: agent-executor returns a failed AgentResult for malformed JSON after extractJson/repairJson, while Game Spotify playback handling only covers candidate/play failures after a valid result exists.

Alternatives considered

Leave the generic failed-agent result alone if maintainers decide Spotify DJ should not have special malformed-result recovery in refactor.

Additional context

This is a scope decision first, implementation second.

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 (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1540 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? The refactor structured-agent malformed JSON path is generic, and Spotify DJ does not appear to have deterministic recovery fallback equivalent to the legacy `parseError` handling. ## Proposed behavior Decide whether Spotify DJ needs a refactor-native malformed-result recovery path. If yes, implement it in the agent/generation integration and add focused tests for malformed structured-agent output. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] 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 - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations Local audit evidence: `agent-executor` returns a failed `AgentResult` for malformed JSON after `extractJson`/`repairJson`, while Game Spotify playback handling only covers candidate/play failures after a valid result exists. ## Alternatives considered Leave the generic failed-agent result alone if maintainers decide Spotify DJ should not have special malformed-result recovery in refactor. ## Additional context This is a scope decision first, implementation second. ## 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.
Author
Owner

@cha1latte commented on GitHub (May 29, 2026):

Triage note: labeling this as scope-risk because malformed structured-agent recovery touches both Spotify DJ agent behavior and generic parse-error handling.

A good next step is a product/engineering decision on whether Spotify DJ needs deterministic recovery, then a focused testable slice.

<!-- gh-comment-id:4578269925 --> @cha1latte commented on GitHub (May 29, 2026): Triage note: labeling this as `scope-risk` because malformed structured-agent recovery touches both Spotify DJ agent behavior and generic parse-error handling. A good next step is a product/engineering decision on whether Spotify DJ needs deterministic recovery, then a focused testable slice.
Author
Owner

@cha1latte commented on GitHub (May 31, 2026):

fixed in #1751

<!-- gh-comment-id:4588136645 --> @cha1latte commented on GitHub (May 31, 2026): fixed in #1751
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#786
No description provided.