mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2013] Generate request schema omits amend guide source #986
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#986
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/2013
Originally assigned to: @Xelvanis on GitHub.
Problem
The refactor branch has three current owners that treat
amendas a valid generation guide source:src/engine/shared/text/generation-guide.tsincludesamendinGenerationGuideSource.src/shared/lib/slash-commands.tssendsgenerationGuideSource: "amend"from/amend.src/engine/generation/generation-replay.tsrecords and replaysamend.src/engine/contracts/schemas/chat.schema.tsvalidatesgenerationGuideSourceasnarrator | guide | game_start | game_turn | game_retry, sogenerateRequestSchema.safeParse({ chatId, generationGuideSource: "amend" })fails.startGenerationcurrently bypasses this schema, so the live slash command may still work today. The risk is contract drift: any shared API, remote boundary, replay validation, or future caller that usesgenerateRequestSchemawould reject the current/amendrequest shape.Expected behavior
The generate request schema should accept the same guide-source values used by current runtime and replay code, including
amend. Ideally the duplicated enum should derive from the shared generation-guide source of truth or have focused proof that catches future drift.Acceptance criteria
generateRequestSchemaacceptsgenerationGuideSource: "amend".narrator,guide, andgame_start.game_turnandgame_retry.Context
Found during the Target 1 contracts-and-schemas batch-2 parityscan in #2011. A focused local probe showed generation parameter additions and
game_turn/game_retrypass, whileamendis rejected by the request schema.