[PR #750] [MERGED] Pixelforge 0.16.2: your words pick the world #1123

Closed
opened 2026-10-21 05:03:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/750
Author: @kolacheee
Created: 9/8/2026
Status: ✅ Merged
Merged: 9/8/2026
Merged by: @kolacheee

Base: staging ← Head: feat/pixelforge-0162-one-box


📝 Commits (10+)

  • 520c056 chore(pixelforge): open 0.16.2
  • e41c360 feat(pixelforge): the setup form stops asking what it should never have asked
  • d533d5e feat(pixelforge): the model picks the kit, inside the call already being paid for
  • 9c987e0 fix(pixelforge): the resolver stops mis-kitting English, and the name field stops answering for the player
  • 69c582f fix(pixelforge): the colony's own noun votes again, and three banners stop out-claiming the code
  • fd58fd1 test(pixelforge): the three suffix sub-groups nothing was reading get a lane each
  • 8d73fa4 feat(pixelforge): the player picks lorebook entries, not lorebooks
  • 9bf66e4 feat(pixelforge): the ticked entries ride the world-writing call
  • ebd0e51 test(pixelforge): the picker's four walls and the whole wire get a lane each
  • 70df7fa fix(pixelforge): a book with no budget of its own gets none invented for it

📊 Changes

13 files changed (+4756 additions, -359 deletions)

View changed files

➕ artifacts/pixelforge-0.16.2.zip (+0 -0)
📝 packages/pixelforge/CHANGELOG.md (+17 -0)
📝 packages/pixelforge/README.md (+34 -12)
📝 packages/pixelforge/client.js (+1219 -133)
📝 packages/pixelforge/docs/ROADMAP.md (+185 -10)
📝 packages/pixelforge/docs/brief-schema.md (+111 -9)
📝 packages/pixelforge/docs/player-state.md (+133 -0)
📝 packages/pixelforge/manifest.json (+3 -3)
📝 packages/pixelforge/src/18-brief.js (+314 -15)
📝 packages/pixelforge/src/60-save.js (+105 -4)
📝 packages/pixelforge/src/80-setup.js (+799 -113)
📝 packages/pixelforge/test-brief.mjs (+1835 -59)
📝 scripts/build-pixelforge-package.mjs (+1 -1)

📄 Description

Linked issue

Closes #749

Why this change

  • The first procedural playtest proved the wizard was still deciding things the player never asked for: a theme dropdown that overrode what they typed, a party picker duplicating a question that isn't the package's to ask, preset genre/goals prose, and a map-guidance sentence instructing the GM to keep worlds compact. The maintainer ruled: ship the deletions now, resolve theme from the player's own words, let lorebook entries inform the world, and defer the "consume Game Mode's own setup" seam to 0.16.3. This PR is that release.

What changed

  • Theme comes from the player's words, not a dropdown (src/18-brief.js, src/80-setup.js, src/60-save.js): the model picks the visual kit via a new structured artTheme field on the world-writing call (a three-rung resolution ladder: model answer → caller theme → deterministic word-count over the raw Setting text), hardened against prototype-key input at every door and never sealed into the brief. A declined-generation chat derives its kit from the same words deterministically. The matcher survived four adversarial rounds — "Pallet Town… domestic and slow" stays a cozy village, "Colonization of Mars" gets a colony.
  • The deletions: theme selector (all seven readers), party picker (partyCharacterIds: [] — for this release the party is empty; the picker moves to Game Mode setup with the 0.16.3 seam), preset genre/playerGoals prose, and the entire spatialMapInstructions field on both paths. The game name ships as a placeholder, and an untouched name resolves to the derived kit's own default so a colony never gets a cozy name.
  • The lorebook entry picker (src/80-setup.js, src/18-brief.js, src/60-save.js): per-entry checkboxes across attached books, select-all-in-book (ticks individually; refuses honestly past the 100-entry wire cap), per-book token readouts against the budgets that actually bind (a book with tokenBudget 0 is honestly unlimited), picking order preserved on the wire, loreEntryIds omitted entirely when empty, and plain-language notes when the reply set picks aside — including the cross-version case (an Engine without Marinara-Engine PR support answers no lorebook key; the package reads that as "this Engine predates the feature," never as "all refused").
  • The Setting bound (SETTING_MAX = 8_000) so the Engine's 32k nested-config cap cannot fail a launch on an invisible field (Engine side tracked in Marinara-Engine #5938).
  • Docs: CHANGELOG 0.16.2 section, brief-schema §10 rewrite (artTheme as a structured output), player-state §9.2/§11/§12 updates including the measured §12.4 release record, README rewrite, ROADMAP entries (0.16.3 seam end-state with the ruling verbatim, GM lore search, setup import, fallback parked, seeded name tables + #747).
  • The bake: client.js 1,491,752 bytes, artifact pixelforge-0.16.2.zip 1,505,201 bytes, two byte-identical bakes, art sha256-untouched vs staging in both shipped and regenerated locations.

Package and security impact

  • Affected package IDs: pixelforge
  • Engine compatibility impact: none required — the lorebook picker degrades cleanly against an Engine without Marinara-Engine #5942 (the request key is stripped by the route schema; the package reads the absent response key as feature-not-present). With #5942 merged, entry content reaches the world-writing call.
  • New or changed permissions/entrypoints: none. The wizard reads three existing read-only host endpoints (/connections, /lorebooks, /lorebooks/:id/entries).
  • Restart, storage, update, or uninstall impact: none. Existing chats untouched; new config keys (loreEntryIds, derived theme) ride the existing experienceConfig object.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify in the browser: type a sci-fi Setting ("a sealed hab ring in orbit…"), leave the name empty — the launch button, loading screen, and world must all say Meridian Base, with no Hearthvale anywhere.
  • Manually verify: empty Setting + a typed name composes "A cozy pixel village called ." and the generated world uses it.
  • Manually verify the lorebook picker against a real library: books expand, entries tick, select-all on a >100-entry book refuses the remainder with the message, and the per-book token readout matches the entries you tick. One glance at whether the live /lorebooks/:id/entries field names match what the picker reads (content, tokenBudget, entryLimit, constant, order) — the walls stop binding if a projection renames them.
  • Manually verify a new game skips the party step content (empty party this release) and no "Review Starting Widgets" step appears.
  • Automated evidence (machine-side, all run): final whole-branch verification SHIP — two byte-identical bakes reproduced independently; art unmoved (sha256 ×3 locations); a 56-assertion counterfactual battery; 14/14 era-spanning mutations red; full ruling sweep against the shipped tree; harness + npm run check + validate-catalog all exit 0. Roughly 100 mutation tests went red across the branch's six verification rounds.

Known limitations, named plainly:

  • The party is unselectable for one release — the package picker is deleted by ruling and Game Mode's own Party step doesn't run for Experience games until the 0.16.3 seam. Flagged for veto in the design record.
  • Setting text past 8,000 characters does not reach the GM's per-turn prompt (the bound that protects the launch); recorded as a limitation row in player-state §11. The ruling's letter said "send only its own keys," which the interim modal cannot do while it is the wizard — the bound is the operative fix. Maintainer nod requested on this reading.
  • The lore feature is inert until Marinara-Engine #5942 merges (clean no-op meanwhile, by design).

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

README, CHANGELOG, brief-schema, player-state, and ROADMAP all updated in-package (see What changed).

UI evidence (if applicable)

  • Wizard and picker are package-served UI; before/after screenshots owed from the browser pass (the evidence above is payload/DOM-shim level).

Summary by CodeRabbit

  • New Features

    • Added per-entry lorebook selection for world generation, including individual or all eligible entries.
    • Visual kit selection is now determined deterministically from the setting text.
    • The World Brief includes the selected visual kit and chosen lore influences.
  • Changes

    • World names and settings start empty; games begin with an empty party.
    • Map notes and story goals are no longer generated automatically.
    • Theme, genre, party, and map-guidance setup controls were removed.
    • Character-specific lore entries are skipped when no matching characters exist.
  • Compatibility

    • Older Engines ignore lorebook selections and use the setting alone.

🔄 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-Agents/pull/750 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 9/8/2026 **Status:** ✅ Merged **Merged:** 9/8/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/pixelforge-0162-one-box` --- ### 📝 Commits (10+) - [`520c056`](https://github.com/Pasta-Devs/Marinara-Agents/commit/520c0561cd32cf8efe667a76eaca8bb4170f9473) chore(pixelforge): open 0.16.2 - [`e41c360`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e41c360d659b13c87c05b5ada7673b60db63f615) feat(pixelforge): the setup form stops asking what it should never have asked - [`d533d5e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d533d5e927a69089c189819db94a54c824c66edd) feat(pixelforge): the model picks the kit, inside the call already being paid for - [`9c987e0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9c987e0bc9435accc219156d7f0d9415b537d6a0) fix(pixelforge): the resolver stops mis-kitting English, and the name field stops answering for the player - [`69c582f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/69c582f30f5e67f6df609b2a0a7c9cdd3b46d274) fix(pixelforge): the colony's own noun votes again, and three banners stop out-claiming the code - [`fd58fd1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fd58fd1e2c7aa10f6f983661bf6cc36703f1cbde) test(pixelforge): the three suffix sub-groups nothing was reading get a lane each - [`8d73fa4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8d73fa40c8bd2289bbb5f3759b2028f7695fd94f) feat(pixelforge): the player picks lorebook entries, not lorebooks - [`9bf66e4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9bf66e4cdb7464a43ab781a297149f00309acdcd) feat(pixelforge): the ticked entries ride the world-writing call - [`ebd0e51`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ebd0e519c509274b3c519663466007bde8f442b4) test(pixelforge): the picker's four walls and the whole wire get a lane each - [`70df7fa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/70df7fa19b3089ec2170e43024b4313db93bfcb9) fix(pixelforge): a book with no budget of its own gets none invented for it ### 📊 Changes **13 files changed** (+4756 additions, -359 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/pixelforge-0.16.2.zip` (+0 -0) 📝 `packages/pixelforge/CHANGELOG.md` (+17 -0) 📝 `packages/pixelforge/README.md` (+34 -12) 📝 `packages/pixelforge/client.js` (+1219 -133) 📝 `packages/pixelforge/docs/ROADMAP.md` (+185 -10) 📝 `packages/pixelforge/docs/brief-schema.md` (+111 -9) 📝 `packages/pixelforge/docs/player-state.md` (+133 -0) 📝 `packages/pixelforge/manifest.json` (+3 -3) 📝 `packages/pixelforge/src/18-brief.js` (+314 -15) 📝 `packages/pixelforge/src/60-save.js` (+105 -4) 📝 `packages/pixelforge/src/80-setup.js` (+799 -113) 📝 `packages/pixelforge/test-brief.mjs` (+1835 -59) 📝 `scripts/build-pixelforge-package.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #749 ## Why this change - The first procedural playtest proved the wizard was still deciding things the player never asked for: a theme dropdown that overrode what they typed, a party picker duplicating a question that isn't the package's to ask, preset genre/goals prose, and a map-guidance sentence instructing the GM to keep worlds compact. The maintainer ruled: ship the deletions now, resolve theme from the player's own words, let lorebook entries inform the world, and defer the "consume Game Mode's own setup" seam to 0.16.3. This PR is that release. ## What changed - **Theme comes from the player's words, not a dropdown** (`src/18-brief.js`, `src/80-setup.js`, `src/60-save.js`): the model picks the visual kit via a new structured `artTheme` field on the world-writing call (a three-rung resolution ladder: model answer → caller theme → deterministic word-count over the raw Setting text), hardened against prototype-key input at every door and never sealed into the brief. A declined-generation chat derives its kit from the same words deterministically. The matcher survived four adversarial rounds — "Pallet Town… domestic and slow" stays a cozy village, "Colonization of Mars" gets a colony. - **The deletions**: theme selector (all seven readers), party picker (`partyCharacterIds: []` — for this release the party is empty; the picker moves to Game Mode setup with the 0.16.3 seam), preset genre/playerGoals prose, and the entire `spatialMapInstructions` field on both paths. The game name ships as a placeholder, and an untouched name resolves to the derived kit's own default so a colony never gets a cozy name. - **The lorebook entry picker** (`src/80-setup.js`, `src/18-brief.js`, `src/60-save.js`): per-entry checkboxes across attached books, select-all-in-book (ticks individually; refuses honestly past the 100-entry wire cap), per-book token readouts against the budgets that actually bind (a book with tokenBudget 0 is honestly unlimited), picking order preserved on the wire, `loreEntryIds` omitted entirely when empty, and plain-language notes when the reply set picks aside — including the cross-version case (an Engine without Marinara-Engine PR support answers no lorebook key; the package reads that as "this Engine predates the feature," never as "all refused"). - **The Setting bound** (`SETTING_MAX = 8_000`) so the Engine's 32k nested-config cap cannot fail a launch on an invisible field (Engine side tracked in Marinara-Engine #5938). - Docs: CHANGELOG 0.16.2 section, brief-schema §10 rewrite (artTheme as a structured output), player-state §9.2/§11/§12 updates including the measured §12.4 release record, README rewrite, ROADMAP entries (0.16.3 seam end-state with the ruling verbatim, GM lore search, setup import, fallback parked, seeded name tables + #747). - The bake: `client.js` 1,491,752 bytes, artifact `pixelforge-0.16.2.zip` 1,505,201 bytes, two byte-identical bakes, art sha256-untouched vs staging in both shipped and regenerated locations. ## Package and security impact - Affected package IDs: `pixelforge` - Engine compatibility impact: none required — the lorebook picker degrades cleanly against an Engine without Marinara-Engine #5942 (the request key is stripped by the route schema; the package reads the absent response key as feature-not-present). With #5942 merged, entry content reaches the world-writing call. - New or changed permissions/entrypoints: none. The wizard reads three existing read-only host endpoints (`/connections`, `/lorebooks`, `/lorebooks/:id/entries`). - Restart, storage, update, or uninstall impact: none. Existing chats untouched; new config keys (`loreEntryIds`, derived `theme`) ride the existing `experienceConfig` object. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify in the browser: type a sci-fi Setting ("a sealed hab ring in orbit…"), leave the name empty — the launch button, loading screen, and world must all say Meridian Base, with no Hearthvale anywhere. - Manually verify: empty Setting + a typed name composes "A cozy pixel village called <your name>." and the generated world uses it. - Manually verify the lorebook picker against a real library: books expand, entries tick, select-all on a >100-entry book refuses the remainder with the message, and the per-book token readout matches the entries you tick. One glance at whether the live `/lorebooks/:id/entries` field names match what the picker reads (`content`, `tokenBudget`, `entryLimit`, `constant`, `order`) — the walls stop binding if a projection renames them. - Manually verify a new game skips the party step content (empty party this release) and no "Review Starting Widgets" step appears. - Automated evidence (machine-side, all run): final whole-branch verification SHIP — two byte-identical bakes reproduced independently; art unmoved (sha256 ×3 locations); a 56-assertion counterfactual battery; 14/14 era-spanning mutations red; full ruling sweep against the shipped tree; harness + `npm run check` + `validate-catalog` all exit 0. Roughly 100 mutation tests went red across the branch's six verification rounds. Known limitations, named plainly: - **The party is unselectable for one release** — the package picker is deleted by ruling and Game Mode's own Party step doesn't run for Experience games until the 0.16.3 seam. Flagged for veto in the design record. - Setting text past 8,000 characters does not reach the GM's per-turn prompt (the bound that protects the launch); recorded as a limitation row in player-state §11. The ruling's letter said "send only its own keys," which the interim modal cannot do while it *is* the wizard — the bound is the operative fix. **Maintainer nod requested on this reading.** - The lore feature is inert until Marinara-Engine #5942 merges (clean no-op meanwhile, by design). ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation README, CHANGELOG, brief-schema, player-state, and ROADMAP all updated in-package (see What changed). ## UI evidence (if applicable) - Wizard and picker are package-served UI; before/after screenshots owed from the browser pass (the evidence above is payload/DOM-shim level). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added per-entry lorebook selection for world generation, including individual or all eligible entries. - Visual kit selection is now determined deterministically from the setting text. - The World Brief includes the selected visual kit and chosen lore influences. - **Changes** - World names and settings start empty; games begin with an empty party. - Map notes and story goals are no longer generated automatically. - Theme, genre, party, and map-guidance setup controls were removed. - Character-specific lore entries are skipped when no matching characters exist. - **Compatibility** - Older Engines ignore lorebook selections and use the setting alone. <!-- 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-21 05:03:14 +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-Agents#1123
No description provided.