[PR #6196] [CLOSED] feat(game): host an Experience's toggle and world seed inside the setup wizard (Capability API 1.17 setup block) #7088

Closed
opened 2026-10-23 04:16:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6196
Author: @kolacheee
Created: 9/14/2026
Status: ❌ Closed

Base: staging ← Head: feat/experience-setup-seam


📝 Commits (10+)

  • 8daea55 feat(capabilities): add Experience setup manifest vocabulary (CAPI 1.17)
  • 6416113 feat(game): let the setup wizard own the Experience selection
  • a7b6623 feat(game): collect and carry the Experience's world seed
  • 3e59bff feat(game): apply and explain an Experience's declared setup requirement
  • 09d1e59 feat(game): restate the Experiences block for the shared setup wizard
  • 88eabb2 test(game): pin the Experience setup seam end to end and in three lanes
  • 8eebc12 test(game): skip the setup seam spec before a browser is launched
  • f19c405 fix(game): keep Escape from dismissing setup under a stacked dialog
  • 4936e1c fix(game): accept only whole-number seeds
  • 6c098af fix(capabilities): carry unreadable installed packages through registry writes

📊 Changes

18 files changed (+1738 additions, -278 deletions)

View changed files

📝 CHANGELOG.md (+9 -0)
📝 docs/development/optional-agent-packages.md (+69 -1)
➕ e2e/setup-wizard-experience.e2e.ts (+288 -0)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+294 -37)
📝 packages/client/src/components/game/GameSurface.tsx (+48 -14)
➕ packages/client/src/components/game/LegacyExperienceSetupDialog.tsx (+219 -0)
📝 packages/client/src/components/game/NewGameExperienceChooser.tsx (+66 -218)
📝 packages/client/src/components/ui/Modal.tsx (+11 -0)
➕ packages/client/src/lib/game-experience-seed.ts (+38 -0)
➕ packages/client/src/lib/modal-overlay-registry.ts (+47 -0)
📝 packages/client/src/localization/locales/en.json (+9 -2)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+45 -4)
📝 packages/shared/src/schemas/capability-package.schema.ts (+116 -1)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+110 -0)
📝 scripts/regressions/experience-setup-config.regression.ts (+72 -1)
➕ scripts/regressions/game-experience-seed.regression.ts (+104 -0)
➕ scripts/regressions/game-setup-experience-config.regression.ts (+95 -0)
➕ scripts/regressions/setup-escape-overlay-guard.regression.ts (+98 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #6181

Why this change

Today, turning on a downloaded Experience in the game setup wizard replaces the wizard. The player picks an Experience and the six remaining steps disappear, so the Party step becomes unreachable and the Experience has to ask again, in its own dialog, for everything it needs. That is two setup forms for one game, with settings the wizard already owns duplicated or silently dropped.

This change makes the wizard the single setup surface. An Experience no longer takes the form away. It declares in its manifest what it needs, and the Engine draws those few controls inside the Experiences block while every ordinary step stays where it was. This is the Engine half of the Pixelforge maintainer's ruling that there should be no separate Pixelforge creation menu, only a seed the player can edit or randomize in the Experiences block.

Things a reviewer should know before reading the diff:

  • Two prompt-content changes for Experience games, both by owner ruling. The player's goals used to be sent empty by the package, with the Engine substituting "Have an adventure"; the player is now asked on the Goals step and their own answer reaches the game. And the package's fixed genre literal ("A tile-based pixel-art RPG.") is gone, so genre comes from the player's chips, defaulting to "Fantasy". That literal was rendered verbatim into the Game Master's per-turn system prompt, so every new Experience game stops being told it is a walkable tile RPG. Nothing in this release restores that framing. Accepted, not overlooked.
  • One accepted loss. The Experiences block renders only while a new game is being created. An Experience can no longer be turned on for an existing chat that is back in setup. That path looked like it worked and did not: the two non-creation arms of the setup fork cannot stamp a top-level gameExperienceId, and one of them throws the built config away, so a player could flip the toggle, press Start, and have nothing happen.
  • Capability API 1.17 is shared with #6188. That PR bumped the version for prepareBeforeStart; this one adds the setup block under the same 1.17, with both described on one ladder line, so a package that declares 1.17 can use either. Nothing reads the declared capabilityApi to gate the seam; the Engine reads a declared setup block regardless of the version a package claims. What refuses a setup-carrying manifest on an older Engine is the strict manifest schema: the catalog entry is dropped at parse with only a server-side warning.
  • Pre-existing problems inside the blast radius, named and deliberately not fixed here: arm 3 of the setup fork (runSetup on a chat that has a game id but no generated world) discards the freshly built setup config; re-entering setup on an existing Experience game overwrites essentially the whole stored config with wizard defaults, because the wizard never hydrates from the chat; GameSessionStatus declares "setup" | "active" | "concluded" while the server writes and compares "ready"; and PATCH /chats/:id/metadata merges its body with no validation, which is why the experience-state read re-validates the id every time. The new seed field is creation-only, so this PR adds no exposure there. One more, noticed while fixing Escape: the modal overlay is z-[10000] while both setup panels are z-[10001], so the malformed-JSON repair dialog may render behind the setup panel it belongs over. Pre-existing and untouched.
  • Related: #6180, the Engine narrating an opening turn before the Experience surface mounts, was fixed by #6188 while this PR was open. This branch is rebased on it; the two changes touch different parts of the setup flow (this one the wizard, that one the Start Game screen).
  • Downstream: the next Pixelforge release consumes this seam and cannot be validated until it merges. #6182 (per-entry lorebook selection and the setup-file round trip) must land before the package release, because the package's own lore picker is removed there and that PR is the only replacement.

What changed

  • Manifest vocabulary. contributions.gameSurface gains an optional strict setup block: seed (a key inside the package's own experienceConfig, plus an optional label), config (flat scalar literals the host writes without interpreting) and requires, a closed single-key object holding enableCustomWidgets. A manifest whose config names its own seed key is refused at parse. supportedCapabilityApi moves to 1.17 with a ladder line, and the seven existing pins move with it. Nothing in the vocabulary can touch Agents; that is the player's setting.
  • The wizard owns the Experience selection. GameSurface renders the wizard directly. The wizard resolves the installed game-surface packages itself and renders the Experiences chooser into its first step. The chooser is controlled and presentational, with no package id literal in it. While an Experience is active the block is forced open and its collapse control is disabled. All seven steps stay mounted, so the Party step is reachable again.
  • Forward-compatibility guard. LegacyExperienceSetupDialog carries the pre-seam behaviour: when an active game-surface package declares no setup block, the Engine hands the whole form to the package exactly as it does today. It keys off the absence of the declaration, never off a package id or version. Please do not remove this in review. An Experience published before this change, including the shipped Pixelforge 0.16.6, has no setup block and would otherwise have no setup surface between this merge and the package release.
  • World seed. When a manifest declares setup.seed, the Engine draws a numeric seed field under the active Experience row, with a randomize button whose label says it overwrites a typed value. The seed is a number, rolled once per mount. Only a run of digits is accepted; anything else turns the field red and blocks Start with its own message, so the number on screen is always the number the world is built from.
  • Declared requirement, enforced and explained. While an active Experience declares a requirement about custom widgets, the Engine sets that control to the required value and locks it, with a line beside it saying which Experience turned it off (or on) for this game. The player's earlier value comes back when the Experience is turned off, and an imported setup cannot override the lock. The vocabulary is a closed key set, so a package can only lock a setting the Engine has reviewed; Agents in particular are never in it.
  • Spatial-map options are not offered while an Experience that declares setup is active. The step-5 block, the template picker, every map arm of the setup config and the map plan behave exactly as they do when no map workflow was chosen.
  • Setup config. buildSetupConfig appends one conditional spread carrying gameExperienceId and experienceConfig, gated on both an active Experience and a new game. Declared literals spread first, the seed last. With no Experience active neither key appears at all, not even as undefined, which matters because the stored config is merged as { ...stored, ...submitted }.
  • Installed-registry tolerance. Reading the installed-package registry is tolerant per entry: an entry this Engine cannot parse (a manifest from a newer Engine after a rollback) is skipped with one warning per process instead of failing the whole read, and it is carried through registry writes unchanged so it comes back when the Engine is upgraded again. A missing registry file and non-schema errors behave as before.
  • Escape. Escape now closes game setup from either setup path, and closes only the topmost thing: a small open-overlay registry lets both setup screens stand down while any modal is open, so dismissing the malformed-JSON repair box no longer dismisses the setup behind it.
  • Copy. The two Experiences-block strings that told the player a downloaded Experience replaces the standard setup are rewritten to describe the seam.
  • Docs and tests. docs/development/optional-agent-packages.md gains a second Capability API 1.17 section, for the setup block, beside the one #6188 added, and corrects the 1.8 paragraph. New coverage: an end-to-end spec driving a fixture Experience through the wizard plus a second fixture proving the legacy path; a source pin on the two emitted keys; a pin on the seed coercion contract; a server leg proving a classic-shaped payload stamps the chat's top-level gameExperienceId and answers the first experience-state read; and a lane over the overlay registry and the registry carry-through.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run before opening: every piece of pnpm check, pnpm version:check, git diff --check, the regression lanes capability-package-lifecycle, capability-gm-verb-runtime, experience-setup-config, game-experience-seed, game-setup-experience-config, setup-escape-overlay-guard, prompt, assigned-issue-sweep and open-issues, and the new e2e spec on desktop-chromium. The mobile-webkit Playwright project cannot launch on the author's Fedora host (Playwright's WebKit needs Ubuntu 24.04 libraries), so that lane is proven by CI only, and a reviewer should require those shards green before merge.

Walked on an isolated build of this branch with the shipped Pixelforge 0.16.6 package installed, once with its manifest as shipped (legacy path) and once with a setup block added to its registry row (seam path):

  1. Seam path: toggling the Experience on keeps every wizard step; the seed field and randomize button render under its row; the block cannot be collapsed; "1.5" turns the field red; the seed survives walking to the last step and back; the Party step renders the picker with an added character; the Features step shows custom widgets locked off with the line naming the Experience, and enabled again with its earlier value once the Experience is toggled off; Enable Agents stays untouched; Start Game is blocked only by the missing connection.
  2. Legacy path: toggling the shipped package on swaps in its own setup form under a "Pixelforge" dialog with the wizard unmounted; its own Back button returns to the wizard with the toggle cleared; Escape dismisses setup as it did before this change.

Still to verify by hand:

  • Manually verify, on a machine with hierarchical-maps installed, that step 5 shows no spatial-map block while an Experience declaring setup is active, and that creating the game queues no map draft and arms no map-builder handoff.
  • Manually verify the whole creation path with a real connection: create the game, confirm the chat metadata carries the top-level gameExperienceId and the numeric seed, and confirm the Experience's first experience-state read is answered rather than refused.
  • Manually verify Escape over the malformed-JSON repair dialog on both setup paths: one press closes only the repair dialog and the setup answers survive; a second press closes setup.
  • Manually verify that importing a setup file on a chat that already has a game id does not apply an Experience.
  • Manually verify light mode and a narrow viewport for the seed field, the randomize button and the locked custom-widgets control with its line.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/development/optional-agent-packages.md gains the Capability API 1.17 section and corrects the 1.8 paragraph; CHANGELOG.md carries the entries. The [docs-i18n] follow-up for the docs page is batched with the other pending pages rather than filed per PR. No version bump.

UI evidence (if applicable)

Screenshots of the seam path (seed field under the active row, the requirement line on the Features step) and the legacy dialog to be added by the author.

Summary by CodeRabbit

  • New Features

    • Experiences now integrate with the New Game wizard while preserving its setup steps.
    • Experiences can provide editable world-seed fields, randomization, and required game settings.
    • Legacy Experiences retain their own setup dialog.
    • Escape closes the active setup dialog without disrupting stacked dialogs.
  • Bug Fixes

    • Spatial-map options are unavailable when running an Experience.
    • Experiences appear only during new-game creation.
    • Packages from newer Engine versions are safely preserved for future upgrades.
  • Documentation

    • Added guidance for Experience-declared game setup capabilities.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6196 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 9/14/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feat/experience-setup-seam` --- ### 📝 Commits (10+) - [`8daea55`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8daea5505719f8e5c298d83de2230232fcbdc0cc) feat(capabilities): add Experience setup manifest vocabulary (CAPI 1.17) - [`6416113`](https://github.com/Pasta-Devs/Marinara-Engine/commit/64161132afad910429c679f02191df13fbdc8bcd) feat(game): let the setup wizard own the Experience selection - [`a7b6623`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a7b6623e475d21ca013aab132b2e737ca2b0c7c9) feat(game): collect and carry the Experience's world seed - [`3e59bff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3e59bff1f1c1dc2303ecb73fa1c3b09d311867e8) feat(game): apply and explain an Experience's declared setup requirement - [`09d1e59`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09d1e59843b3c84df6e2eee2280fe3dc4e46cf3f) feat(game): restate the Experiences block for the shared setup wizard - [`88eabb2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/88eabb2b60b1750f0357063b86125e25a5e2edf7) test(game): pin the Experience setup seam end to end and in three lanes - [`8eebc12`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8eebc1204ba8b97c7c864e416f20a732f5d45af3) test(game): skip the setup seam spec before a browser is launched - [`f19c405`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f19c4056ab91bd56c04c2245881e1989dbcf17e9) fix(game): keep Escape from dismissing setup under a stacked dialog - [`4936e1c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4936e1ccca6af5a09ab03766413ca10e59b77987) fix(game): accept only whole-number seeds - [`6c098af`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6c098afd6a300097e14bed008a1c3071dd4bdb76) fix(capabilities): carry unreadable installed packages through registry writes ### 📊 Changes **18 files changed** (+1738 additions, -278 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+9 -0) 📝 `docs/development/optional-agent-packages.md` (+69 -1) ➕ `e2e/setup-wizard-experience.e2e.ts` (+288 -0) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+294 -37) 📝 `packages/client/src/components/game/GameSurface.tsx` (+48 -14) ➕ `packages/client/src/components/game/LegacyExperienceSetupDialog.tsx` (+219 -0) 📝 `packages/client/src/components/game/NewGameExperienceChooser.tsx` (+66 -218) 📝 `packages/client/src/components/ui/Modal.tsx` (+11 -0) ➕ `packages/client/src/lib/game-experience-seed.ts` (+38 -0) ➕ `packages/client/src/lib/modal-overlay-registry.ts` (+47 -0) 📝 `packages/client/src/localization/locales/en.json` (+9 -2) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+45 -4) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+116 -1) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+110 -0) 📝 `scripts/regressions/experience-setup-config.regression.ts` (+72 -1) ➕ `scripts/regressions/game-experience-seed.regression.ts` (+104 -0) ➕ `scripts/regressions/game-setup-experience-config.regression.ts` (+95 -0) ➕ `scripts/regressions/setup-escape-overlay-guard.regression.ts` (+98 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #6181 ## Why this change Today, turning on a downloaded Experience in the game setup wizard replaces the wizard. The player picks an Experience and the six remaining steps disappear, so the Party step becomes unreachable and the Experience has to ask again, in its own dialog, for everything it needs. That is two setup forms for one game, with settings the wizard already owns duplicated or silently dropped. This change makes the wizard the single setup surface. An Experience no longer takes the form away. It declares in its manifest what it needs, and the Engine draws those few controls inside the Experiences block while every ordinary step stays where it was. This is the Engine half of the Pixelforge maintainer's ruling that there should be no separate Pixelforge creation menu, only a seed the player can edit or randomize in the Experiences block. Things a reviewer should know before reading the diff: - **Two prompt-content changes for Experience games, both by owner ruling.** The player's goals used to be sent empty by the package, with the Engine substituting "Have an adventure"; the player is now asked on the Goals step and their own answer reaches the game. And the package's fixed genre literal ("A tile-based pixel-art RPG.") is gone, so genre comes from the player's chips, defaulting to "Fantasy". That literal was rendered verbatim into the Game Master's per-turn system prompt, so every new Experience game stops being told it is a walkable tile RPG. Nothing in this release restores that framing. Accepted, not overlooked. - **One accepted loss.** The Experiences block renders only while a new game is being created. An Experience can no longer be turned on for an existing chat that is back in setup. That path looked like it worked and did not: the two non-creation arms of the setup fork cannot stamp a top-level `gameExperienceId`, and one of them throws the built config away, so a player could flip the toggle, press Start, and have nothing happen. - **Capability API 1.17 is shared with #6188.** That PR bumped the version for `prepareBeforeStart`; this one adds the `setup` block under the same 1.17, with both described on one ladder line, so a package that declares 1.17 can use either. Nothing reads the declared `capabilityApi` to gate the seam; the Engine reads a declared `setup` block regardless of the version a package claims. What refuses a `setup`-carrying manifest on an older Engine is the strict manifest schema: the catalog entry is dropped at parse with only a server-side warning. - **Pre-existing problems inside the blast radius, named and deliberately not fixed here:** arm 3 of the setup fork (`runSetup` on a chat that has a game id but no generated world) discards the freshly built setup config; re-entering setup on an existing Experience game overwrites essentially the whole stored config with wizard defaults, because the wizard never hydrates from the chat; `GameSessionStatus` declares `"setup" | "active" | "concluded"` while the server writes and compares `"ready"`; and `PATCH /chats/:id/metadata` merges its body with no validation, which is why the experience-state read re-validates the id every time. The new seed field is creation-only, so this PR adds no exposure there. One more, noticed while fixing Escape: the modal overlay is `z-[10000]` while both setup panels are `z-[10001]`, so the malformed-JSON repair dialog may render behind the setup panel it belongs over. Pre-existing and untouched. - **Related:** #6180, the Engine narrating an opening turn before the Experience surface mounts, was fixed by #6188 while this PR was open. This branch is rebased on it; the two changes touch different parts of the setup flow (this one the wizard, that one the Start Game screen). - **Downstream:** the next Pixelforge release consumes this seam and cannot be validated until it merges. #6182 (per-entry lorebook selection and the setup-file round trip) must land before the package release, because the package's own lore picker is removed there and that PR is the only replacement. ## What changed - **Manifest vocabulary.** `contributions.gameSurface` gains an optional strict `setup` block: `seed` (a key inside the package's own `experienceConfig`, plus an optional label), `config` (flat scalar literals the host writes without interpreting) and `requires`, a closed single-key object holding `enableCustomWidgets`. A manifest whose `config` names its own seed key is refused at parse. `supportedCapabilityApi` moves to 1.17 with a ladder line, and the seven existing pins move with it. Nothing in the vocabulary can touch Agents; that is the player's setting. - **The wizard owns the Experience selection.** `GameSurface` renders the wizard directly. The wizard resolves the installed game-surface packages itself and renders the Experiences chooser into its first step. The chooser is controlled and presentational, with no package id literal in it. While an Experience is active the block is forced open and its collapse control is disabled. All seven steps stay mounted, so the Party step is reachable again. - **Forward-compatibility guard.** `LegacyExperienceSetupDialog` carries the pre-seam behaviour: when an active game-surface package declares no `setup` block, the Engine hands the whole form to the package exactly as it does today. It keys off the absence of the declaration, never off a package id or version. **Please do not remove this in review.** An Experience published before this change, including the shipped Pixelforge 0.16.6, has no `setup` block and would otherwise have no setup surface between this merge and the package release. - **World seed.** When a manifest declares `setup.seed`, the Engine draws a numeric seed field under the active Experience row, with a randomize button whose label says it overwrites a typed value. The seed is a number, rolled once per mount. Only a run of digits is accepted; anything else turns the field red and blocks Start with its own message, so the number on screen is always the number the world is built from. - **Declared requirement, enforced and explained.** While an active Experience declares a requirement about custom widgets, the Engine sets that control to the required value and locks it, with a line beside it saying which Experience turned it off (or on) for this game. The player's earlier value comes back when the Experience is turned off, and an imported setup cannot override the lock. The vocabulary is a closed key set, so a package can only lock a setting the Engine has reviewed; Agents in particular are never in it. - **Spatial-map options are not offered** while an Experience that declares `setup` is active. The step-5 block, the template picker, every map arm of the setup config and the map plan behave exactly as they do when no map workflow was chosen. - **Setup config.** `buildSetupConfig` appends one conditional spread carrying `gameExperienceId` and `experienceConfig`, gated on both an active Experience and a new game. Declared literals spread first, the seed last. With no Experience active neither key appears at all, not even as `undefined`, which matters because the stored config is merged as `{ ...stored, ...submitted }`. - **Installed-registry tolerance.** Reading the installed-package registry is tolerant per entry: an entry this Engine cannot parse (a manifest from a newer Engine after a rollback) is skipped with one warning per process instead of failing the whole read, and it is carried through registry writes unchanged so it comes back when the Engine is upgraded again. A missing registry file and non-schema errors behave as before. - **Escape.** Escape now closes game setup from either setup path, and closes only the topmost thing: a small open-overlay registry lets both setup screens stand down while any modal is open, so dismissing the malformed-JSON repair box no longer dismisses the setup behind it. - **Copy.** The two Experiences-block strings that told the player a downloaded Experience replaces the standard setup are rewritten to describe the seam. - **Docs and tests.** `docs/development/optional-agent-packages.md` gains a second Capability API 1.17 section, for the setup block, beside the one #6188 added, and corrects the 1.8 paragraph. New coverage: an end-to-end spec driving a fixture Experience through the wizard plus a second fixture proving the legacy path; a source pin on the two emitted keys; a pin on the seed coercion contract; a server leg proving a classic-shaped payload stamps the chat's top-level `gameExperienceId` and answers the first experience-state read; and a lane over the overlay registry and the registry carry-through. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run before opening: every piece of `pnpm check`, `pnpm version:check`, `git diff --check`, the regression lanes `capability-package-lifecycle`, `capability-gm-verb-runtime`, `experience-setup-config`, `game-experience-seed`, `game-setup-experience-config`, `setup-escape-overlay-guard`, `prompt`, `assigned-issue-sweep` and `open-issues`, and the new e2e spec on desktop-chromium. The mobile-webkit Playwright project cannot launch on the author's Fedora host (Playwright's WebKit needs Ubuntu 24.04 libraries), so that lane is proven by CI only, and a reviewer should require those shards green before merge. Walked on an isolated build of this branch with the shipped Pixelforge 0.16.6 package installed, once with its manifest as shipped (legacy path) and once with a `setup` block added to its registry row (seam path): 1. Seam path: toggling the Experience on keeps every wizard step; the seed field and randomize button render under its row; the block cannot be collapsed; "1.5" turns the field red; the seed survives walking to the last step and back; the Party step renders the picker with an added character; the Features step shows custom widgets locked off with the line naming the Experience, and enabled again with its earlier value once the Experience is toggled off; Enable Agents stays untouched; Start Game is blocked only by the missing connection. 2. Legacy path: toggling the shipped package on swaps in its own setup form under a "Pixelforge" dialog with the wizard unmounted; its own Back button returns to the wizard with the toggle cleared; Escape dismisses setup as it did before this change. Still to verify by hand: - Manually verify, on a machine with hierarchical-maps installed, that step 5 shows no spatial-map block while an Experience declaring `setup` is active, and that creating the game queues no map draft and arms no map-builder handoff. - Manually verify the whole creation path with a real connection: create the game, confirm the chat metadata carries the top-level `gameExperienceId` and the numeric seed, and confirm the Experience's first experience-state read is answered rather than refused. - Manually verify Escape over the malformed-JSON repair dialog on both setup paths: one press closes only the repair dialog and the setup answers survive; a second press closes setup. - Manually verify that importing a setup file on a chat that already has a game id does not apply an Experience. - Manually verify light mode and a narrow viewport for the seed field, the randomize button and the locked custom-widgets control with its line. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/development/optional-agent-packages.md` gains the Capability API 1.17 section and corrects the 1.8 paragraph; `CHANGELOG.md` carries the entries. The `[docs-i18n]` follow-up for the docs page is batched with the other pending pages rather than filed per PR. No version bump. ## UI evidence (if applicable) Screenshots of the seam path (seed field under the active row, the requirement line on the Features step) and the legacy dialog to be added by the author. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Experiences now integrate with the New Game wizard while preserving its setup steps. - Experiences can provide editable world-seed fields, randomization, and required game settings. - Legacy Experiences retain their own setup dialog. - Escape closes the active setup dialog without disrupting stacked dialogs. - **Bug Fixes** - Spatial-map options are unavailable when running an Experience. - Experiences appear only during new-game creation. - Packages from newer Engine versions are safely preserved for future upgrades. - **Documentation** - Added guidance for Experience-declared game setup capabilities. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:25 +07:00
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#7088
No description provided.