[GH-ISSUE #6181] [Feature]: The setup wizard hosts an Experience's toggle and seed instead of handing the whole setup to the package #3444

Closed
opened 2026-10-21 06:03:11 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kolacheee on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6181

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Turning on a downloaded Experience in the setup wizard's Experiences block replaces the whole wizard with the package's own setup form. The package then has to ask every question Game Mode already asks, on a second form with its own defaults, and the Engine's own steps become unreachable. A Pixelforge game has never been able to choose a party, for example, because the Party step is unmounted the moment the toggle is on. The two forms drift apart, and the package has to emit the entire required setup config itself.

The Pixelforge maintainer's ruling on this, recorded in the package's ROADMAP as item S6, is: no separate creation menu. When the Experience is toggled on, the only thing the package needs from the player is a world seed, and it should appear in the Experiences block itself, where the player can edit or randomize it. Everything else belongs to Game Mode's own setup.

Proposed solution

One PR against staging with these parts:

  • A new optional manifest block, contributions.gameSurface.setup, by which a game-surface package declares a seed field (seed: {key, label?}), constant values the Engine writes into the package's own experienceConfig (config), and one requirement on Game Mode's settings (requires: {enableCustomWidgets?}). Capability API moves to 1.17. A manifest whose config names the seed key is rejected.
  • Toggling an Experience on no longer swaps the wizard body. All seven steps stay mounted, including Party. The wizard owns the selection and resolves the installed game-surface packages itself; the Experiences block becomes a presentational child of step 0.
  • When the active package declares a seed, a numeric seed field with a randomize button renders under its row, and the block stays open while an Experience is active. The field never emits a non-number, and an invalid field blocks Start.
  • buildSetupConfig emits gameExperienceId and experienceConfig as a conditional spread, only when an Experience is active and the chat is a new game, so re-entering setup on an older Experience chat cannot wipe its stored config.
  • A declared requirement is applied to an untouched control only, explained in a line beside the control, and restored when the Experience is toggled off. If the player flips the control afterwards it stays editable, and the line says the Experience expects the other value.
  • The spatial-map block on the Features step is suppressed while an Experience declaring setup is active, so no map-draft call, map builder or template picker runs for such a game.
  • The Experiences block is hidden for a chat that already has a game id, because the other two launch arms cannot stamp an Experience on the chat. Turning an Experience on for such a chat stops working, and the CHANGELOG says so.
  • A package that declares no setup block keeps today's behaviour through a LegacyExperienceSetupDialog extracted from the chooser, so an installed Pixelforge 0.16.6 keeps working on an Engine with this change.
  • The installed-package registry is read tolerantly per entry, so an Engine rolled back below this change drops a newer manifest with a warning instead of failing every capability-package operation.
  • One e2e spec for the wizard with a fixture game-surface package, plus regression pins for the conditional spread, the seed coercion, and the server stamping metadata.gameExperienceId from a classic-wizard-shaped payload.

Two prompt-content changes come with this and will be stated in the PR: for an Experience game the Game Master now receives the player's own goals instead of an empty string, and no longer receives the package's "tile-based pixel-art RPG" genre literal.

Alternatives considered

  • Mounting the package's own setup view inline inside the Experiences block. Rejected: that view's loading, failure and refresh states are full-viewport overlays, so the wizard would blank behind a full-screen card while the bundle loads.
  • Hardcoding "every Experience has a seed" in the wizard. Rejected: Pixelforge is the only game-surface package, so nothing would catch the assumption. A manifest declaration keeps the Engine generic.
  • Blocking pre-seam Pixelforge runtimes through the known-incompatible list instead of keeping the legacy dialog. Rejected: an unready package is also filtered out of the surface mount, so blocking would remove the tile world from every existing Pixelforge chat.

Additional context

Owned by @kolacheee; implementation in progress on the fork branch feat/experience-setup-seam. A companion request covers the per-entry lorebook picker and the setup-file round-trip, and a Marinara-Agents issue covers the package side; both are linked in a comment below. The package change ships as Pixelforge 0.16.7 after both Engine PRs merge. Related but out of scope: #6180.

Originally created by @kolacheee on GitHub (Sep 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6181 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Turning on a downloaded Experience in the setup wizard's Experiences block replaces the whole wizard with the package's own setup form. The package then has to ask every question Game Mode already asks, on a second form with its own defaults, and the Engine's own steps become unreachable. A Pixelforge game has never been able to choose a party, for example, because the Party step is unmounted the moment the toggle is on. The two forms drift apart, and the package has to emit the entire required setup config itself. The Pixelforge maintainer's ruling on this, recorded in the package's ROADMAP as item S6, is: no separate creation menu. When the Experience is toggled on, the only thing the package needs from the player is a world seed, and it should appear in the Experiences block itself, where the player can edit or randomize it. Everything else belongs to Game Mode's own setup. ## Proposed solution One PR against `staging` with these parts: - A new optional manifest block, `contributions.gameSurface.setup`, by which a game-surface package declares a seed field (`seed: {key, label?}`), constant values the Engine writes into the package's own `experienceConfig` (`config`), and one requirement on Game Mode's settings (`requires: {enableCustomWidgets?}`). Capability API moves to 1.17. A manifest whose `config` names the seed key is rejected. - Toggling an Experience on no longer swaps the wizard body. All seven steps stay mounted, including Party. The wizard owns the selection and resolves the installed game-surface packages itself; the Experiences block becomes a presentational child of step 0. - When the active package declares a seed, a numeric seed field with a randomize button renders under its row, and the block stays open while an Experience is active. The field never emits a non-number, and an invalid field blocks Start. - `buildSetupConfig` emits `gameExperienceId` and `experienceConfig` as a conditional spread, only when an Experience is active and the chat is a new game, so re-entering setup on an older Experience chat cannot wipe its stored config. - A declared requirement is applied to an untouched control only, explained in a line beside the control, and restored when the Experience is toggled off. If the player flips the control afterwards it stays editable, and the line says the Experience expects the other value. - The spatial-map block on the Features step is suppressed while an Experience declaring `setup` is active, so no map-draft call, map builder or template picker runs for such a game. - The Experiences block is hidden for a chat that already has a game id, because the other two launch arms cannot stamp an Experience on the chat. Turning an Experience on for such a chat stops working, and the CHANGELOG says so. - A package that declares no `setup` block keeps today's behaviour through a `LegacyExperienceSetupDialog` extracted from the chooser, so an installed Pixelforge 0.16.6 keeps working on an Engine with this change. - The installed-package registry is read tolerantly per entry, so an Engine rolled back below this change drops a newer manifest with a warning instead of failing every capability-package operation. - One e2e spec for the wizard with a fixture game-surface package, plus regression pins for the conditional spread, the seed coercion, and the server stamping `metadata.gameExperienceId` from a classic-wizard-shaped payload. Two prompt-content changes come with this and will be stated in the PR: for an Experience game the Game Master now receives the player's own goals instead of an empty string, and no longer receives the package's "tile-based pixel-art RPG" genre literal. ## Alternatives considered - Mounting the package's own setup view inline inside the Experiences block. Rejected: that view's loading, failure and refresh states are full-viewport overlays, so the wizard would blank behind a full-screen card while the bundle loads. - Hardcoding "every Experience has a seed" in the wizard. Rejected: Pixelforge is the only game-surface package, so nothing would catch the assumption. A manifest declaration keeps the Engine generic. - Blocking pre-seam Pixelforge runtimes through the known-incompatible list instead of keeping the legacy dialog. Rejected: an unready package is also filtered out of the surface mount, so blocking would remove the tile world from every existing Pixelforge chat. ## Additional context Owned by @kolacheee; implementation in progress on the fork branch `feat/experience-setup-seam`. A companion request covers the per-entry lorebook picker and the setup-file round-trip, and a Marinara-Agents issue covers the package side; both are linked in a comment below. The package change ships as Pixelforge 0.16.7 after both Engine PRs merge. Related but out of scope: #6180.
Author
Owner

@kolacheee commented on GitHub (Sep 14, 2026):

Companion request for the per-entry lorebook picker and the setup-file round-trip: #6182. Package side (Pixelforge 0.16.7): https://github.com/Pasta-Devs/Marinara-Agents/issues/847.

<!-- gh-comment-id:5657442951 --> @kolacheee commented on GitHub (Sep 14, 2026): Companion request for the per-entry lorebook picker and the setup-file round-trip: #6182. Package side (Pixelforge 0.16.7): https://github.com/Pasta-Devs/Marinara-Agents/issues/847.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Taking this in the assigned sweep for @SpicyMarinara, with Codex implementation tracked in draft #6193. Existing open PRs were checked before starting. I will preserve the current staging fixes and verify this issue’s remaining behavior before closing it.

<!-- gh-comment-id:5662613036 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Taking this in the assigned sweep for @SpicyMarinara, with Codex implementation tracked in draft #6193. Existing open PRs were checked before starting. I will preserve the current staging fixes and verify this issue’s remaining behavior before closing it.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Implemented on staging in #6193 with companion Pasta-Devs/Marinara-Agents#852. Declared Experiences use the seven-step Engine wizard with numeric seed controls and editable requirements; legacy packages retain their setup dialog and existing games retain their stored Experience. The API addition is 1.18 because 1.17 already shipped the startup contract. Unsupported installed records are skipped independently and preserved losslessly on writes by hosts containing this patch; already-released older hosts cannot be retrofitted by it. Wizard browser and package lifecycle regressions pass.

<!-- gh-comment-id:5664675872 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Implemented on staging in #6193 with companion Pasta-Devs/Marinara-Agents#852. Declared Experiences use the seven-step Engine wizard with numeric seed controls and editable requirements; legacy packages retain their setup dialog and existing games retain their stored Experience. The API addition is 1.18 because 1.17 already shipped the startup contract. Unsupported installed records are skipped independently and preserved losslessly on writes by hosts containing this patch; already-released older hosts cannot be retrofitted by it. Wizard browser and package lifecycle regressions pass.
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#3444
No description provided.