[GH-ISSUE #8176] Follow up combat-style metadata validation and registered choices #7596

Closed
opened 2026-10-24 04:04:36 +07:00 by bsakaguchi · 2 comments
Owner

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

  1. In packages/server/src/routes/chats.routes.ts, the combat-style guard runs only when the incoming patch contains gameCombatStyle, and resolves gameRuleset from 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.
  2. In 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.
  3. In 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

  • Actual metadata route tests for changing the ruleset alone and together with the requested style, including the queued fresh-state path.
  • A registered-style setup control, subject to the existing registry contract.
  • Independent lowercase/8-versus9 boundary controls.

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.

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 1. In `packages/server/src/routes/chats.routes.ts`, the combat-style guard runs only when the incoming patch contains `gameCombatStyle`, and resolves `gameRuleset` from 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. 2. In `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. 3. In `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 - Actual metadata route tests for changing the ruleset alone and together with the requested style, including the queued fresh-state path. - A registered-style setup control, subject to the existing registry contract. - Independent lowercase/8-versus9 boundary controls. 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.
bsakaguchi 2026-10-24 04:04:36 +07:00
Author
Owner

@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.

<!-- gh-comment-id:6367339617 --> @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.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Fixed and merged to staging through #8182 at 01dba2dfa34d7c7e6e564cc65f458073726f2c2d (validated head 0400ab5c067c94017e6de4f074ed6cc2c50553df). 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.

<!-- gh-comment-id:6368476433 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Fixed and merged to staging through #8182 at `01dba2dfa34d7c7e6e564cc65f458073726f2c2d` (validated head `0400ab5c067c94017e6de4f074ed6cc2c50553df`). 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](https://gist.github.com/SpicyMarinara/4b033a185d134bf9af6a235b8a7926d5). Post-merge regression, CodeQL and [container image build](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39978575482) 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.
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#7596
No description provided.