mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8176] Follow up combat-style metadata validation and registered choices #7596
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#7596
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 @SpicyMarinara on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8176
Originally assigned to: @SpicyMarinara on GitHub.
Problem
Follow-up to #8170 (already on staging at49b2060e47608701645977a842563c443def5312), identified while reviewing the independent audio branch against the newly advanced staging baseline. These paths are outside the audio implementation.
Source findings to address
packages/server/src/routes/chats.routes.ts, the combat-style guard runs only when the incoming patch containsgameCombatStyle, and resolvesgameRulesetfrom the old chat metadata. Changing only the ruleset skips that guard; changing ruleset and style together checks the old ruleset. Validate the ruleset/style pair that the queued metadata update actually saves, and cover combined/ruleset-only updates and concurrent changes.packages/client/src/components/game/GameSetupWizard.tsx, combat style choices render only the Classic and Tactical buttons. Trace the registered-style contract for a ruleset allowing a registered custom style, and ensure every usable allowed style has a visible selected choice. The schema already permits a registered ID alongside a built-in fallback.scripts/regressions/ruleset-combat-styles.regression.ts, the uppercase-only and nine-custom-ID negative fixtures also fail the required-built-in-style refinement. Isolate lowercase and length-limit assertions with a valid built-in included, and add an exactly-eight positive control.Validation needed
Owner: @SpicyMarinara. This issue records the separate ruleset follow-up; the audio PR must preserve the published combat-style implementation while its own work is reviewed.
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Owner: @SpicyMarinara (Codex shell/combat follow-up lane). I checked the linked and open PRs and found no implementation of this follow-up. I am reproducing the saved ruleset/style validation and registered setup choice defects in an isolated staging worktree; the existing combat-style contract and contributor changes will be preserved.
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Fixed and merged to staging through #8182 at
01dba2dfa34d7c7e6e564cc65f458073726f2c2d(validated head0400ab5c067c94017e6de4f074ed6cc2c50553df). Both commits are verified ancestors of the current staging branch.The metadata route now validates the queued fresh ruleset/style pair before either write path, setup displays usable registered choices, and lowercase/eight-item boundary fixtures isolate their intended rules. Before merge, all8 required checks passed; full Dottore review was Viable, With Notes with0defects, local CodeRabbit found0defects, and focused real-route/browser/smoke/compiled-startup proof passed. Verified proof and before/after gallery.
Post-merge regression, CodeQL and container image build have started and are still running. This closes the implemented issue; it does not claim the new staging image or post-merge checks have completed.