mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1561] [Issue]: Prompt Reviewer can return invalid JSON on GPT 5.5 #801
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#801
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 @Promansis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1561
Originally assigned to: @cha1latte on GitHub.
Summary
The Prompt Reviewer agent can return non-valid JSON on GPT 5.5, while the same workflow reportedly works on Opus 4.7.
Parent smoke test: #1485
Expected behavior
Prompt Reviewer should either receive sufficiently strict structured-output instructions for supported providers/models, or the runtime should surface a clear parse failure that lets the user understand the reviewer failed without derailing the broader generation flow.
Actual behavior
Manual testing reported that Prompt Reviewer returns invalid JSON on GPT 5.5. Opus 4.7 reportedly returns valid JSON for the same reviewer.
Steps to reproduce
Impact area
Environment
Logs, screenshots, or video
Manual report: "AI prompt reviewer returns non valid json on gpt 5.5, works on Opus 4.7"
Source areas inspected:
src/engine/contracts/constants/agent-prompts.tsdefines the Prompt Reviewer JSON shape in prose.src/engine/agents-runtime/executor/agent-executor.tsparses JSON agent responses throughextractJson/JSON.parse.Regression notes
Unknown.
Additional context
Checked upstream issues and PRs for Prompt Reviewer, invalid JSON, GPT 5.5, Opus, and structured agent output overlap. PR #1416 fixed a broader malformed structured-agent-output path, but no existing issue was found for this model-specific Prompt Reviewer failure.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: