[PR #761] [MERGED] fix(pixelforge): preserve selected lore and explain context limits #1122

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

📋 Pull Request Information

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

Base: staging ← Head: fix/pixelforge-lore-selection-5953


📝 Commits (2)

  • 519ecd4 chore: claim Pixelforge selected-lore follow-up
  • fa37a76 fix(pixelforge): preserve complete lore selections and explain context limits

📊 Changes

11 files changed (+98 additions, -620 deletions)

View changed files

➕ artifacts/pixelforge-0.16.3.zip (+0 -0)
📝 packages/pixelforge/CHANGELOG.md (+4 -0)
📝 packages/pixelforge/README.md (+9 -6)
📝 packages/pixelforge/client.js (+18 -185)
📝 packages/pixelforge/engine-boundary.json (+2 -2)
📝 packages/pixelforge/manifest.json (+6 -6)
📝 packages/pixelforge/src/18-brief.js (+5 -1)
📝 packages/pixelforge/src/60-save.js (+6 -12)
📝 packages/pixelforge/src/80-setup.js (+6 -171)
📝 packages/pixelforge/test-brief.mjs (+40 -235)
📝 scripts/build-pixelforge-package.mjs (+2 -2)

📄 Description

Linked issue

Closes #760. Addresses Pasta-Devs/Marinara-Engine#5953 alongside Engine PR Pasta-Devs/Marinara-Engine#5977.

Why this change

The lore picker must accept the same selections as Engine and explain context-limit failures instead of blaming the player's setting text.

What changed

Remove the picker's mirrored token/count limits and the saved-config reader's 100-entry slice. Keep entry eligibility, selection order, deduplication, and the existing picker. Display an estimated selection size; report the host's context_limit response with practical guidance and leave the world unsealed.

Build Pixelforge 0.16.3 against the paired Engine 2.4.5 host change. Pixelforge remains in the existing incomplete-package tier, so the builder does not expose it in a published catalog. Merge after Engine PR Pasta-Devs/Marinara-Engine#5977 lands on staging.

Validation

Passed npm run check (existing warnings, no errors), package locale validation, catalog lanes, archive/hash validation, and the release-note regression. Rebuilt with node scripts/build-pixelforge-package.mjs.

The full node packages/pixelforge/test-brief.mjs harness passed, including existing save/restore cases and new cases for 200 selected entries with an 850,000-character entry, saved config preservation, and a context-limit refusal without retry or fallback sealing. The selection proof fails on the old picker with 6 accepted entries instead of 200.

Exercised the real Engine installer in an isolated browser run using these built archives and a synthetic catalog response: install 0.16.2, accept the update prompt for 0.16.3, reload with the catalog offline, verify the executable custom element loads and the package stays active, then uninstall. All passed; no user data or paid provider was used.

  • Manually verify a complete generated world against a live model with a large lore selection.
  • Manually verify a physical-device/server restart and a maintainer's existing saved world; automated restore cases passed, but no personal save was opened.

Docs and release impact

Updated the package README/release notes, compatibility baseline, generated client/manifest, and ZIP. The changed executable path reads selected IDs and handles a host error; permission declarations and entrypoints are unchanged. Host body/context validation remains authoritative, and package save failure behavior remains covered by the full harness.

Summary by CodeRabbit

  • New Features

    • Lorebook selection now supports entries beyond previous per-book limits.
    • The picker displays selected-entry counts and approximate token totals.
    • Complete expanded prompts are checked against the connected model’s context before generation.
  • Bug Fixes

    • Oversized prompts now stop cleanly without retrying and provide guidance to select fewer entries or use a larger-context connection.
  • Compatibility

    • Requires Marinara Engine 2.4.5 or later.
    • Pixelforge updated to version 0.16.3.

🔄 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/761 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/8/2026 **Status:** ✅ Merged **Merged:** 9/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/pixelforge-lore-selection-5953` --- ### 📝 Commits (2) - [`519ecd4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/519ecd474557bdb46c647cf53807c5616e200965) chore: claim Pixelforge selected-lore follow-up - [`fa37a76`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fa37a761ad3c1dbde90556c1207ab7cc027c4e28) fix(pixelforge): preserve complete lore selections and explain context limits ### 📊 Changes **11 files changed** (+98 additions, -620 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/pixelforge-0.16.3.zip` (+0 -0) 📝 `packages/pixelforge/CHANGELOG.md` (+4 -0) 📝 `packages/pixelforge/README.md` (+9 -6) 📝 `packages/pixelforge/client.js` (+18 -185) 📝 `packages/pixelforge/engine-boundary.json` (+2 -2) 📝 `packages/pixelforge/manifest.json` (+6 -6) 📝 `packages/pixelforge/src/18-brief.js` (+5 -1) 📝 `packages/pixelforge/src/60-save.js` (+6 -12) 📝 `packages/pixelforge/src/80-setup.js` (+6 -171) 📝 `packages/pixelforge/test-brief.mjs` (+40 -235) 📝 `scripts/build-pixelforge-package.mjs` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #760. Addresses Pasta-Devs/Marinara-Engine#5953 alongside Engine PR Pasta-Devs/Marinara-Engine#5977. ## Why this change The lore picker must accept the same selections as Engine and explain context-limit failures instead of blaming the player's setting text. ## What changed Remove the picker's mirrored token/count limits and the saved-config reader's 100-entry slice. Keep entry eligibility, selection order, deduplication, and the existing picker. Display an estimated selection size; report the host's `context_limit` response with practical guidance and leave the world unsealed. Build Pixelforge 0.16.3 against the paired Engine 2.4.5 host change. Pixelforge remains in the existing incomplete-package tier, so the builder does not expose it in a published catalog. Merge after Engine PR Pasta-Devs/Marinara-Engine#5977 lands on staging. ## Validation Passed `npm run check` (existing warnings, no errors), package locale validation, catalog lanes, archive/hash validation, and the release-note regression. Rebuilt with `node scripts/build-pixelforge-package.mjs`. The full `node packages/pixelforge/test-brief.mjs` harness passed, including existing save/restore cases and new cases for 200 selected entries with an 850,000-character entry, saved config preservation, and a context-limit refusal without retry or fallback sealing. The selection proof fails on the old picker with 6 accepted entries instead of 200. Exercised the real Engine installer in an isolated browser run using these built archives and a synthetic catalog response: install 0.16.2, accept the update prompt for 0.16.3, reload with the catalog offline, verify the executable custom element loads and the package stays active, then uninstall. All passed; no user data or paid provider was used. - [ ] Manually verify a complete generated world against a live model with a large lore selection. - [ ] Manually verify a physical-device/server restart and a maintainer's existing saved world; automated restore cases passed, but no personal save was opened. ## Docs and release impact Updated the package README/release notes, compatibility baseline, generated client/manifest, and ZIP. The changed executable path reads selected IDs and handles a host error; permission declarations and entrypoints are unchanged. Host body/context validation remains authoritative, and package save failure behavior remains covered by the full harness. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Lorebook selection now supports entries beyond previous per-book limits. * The picker displays selected-entry counts and approximate token totals. * Complete expanded prompts are checked against the connected model’s context before generation. * **Bug Fixes** * Oversized prompts now stop cleanly without retrying and provide guidance to select fewer entries or use a larger-context connection. * **Compatibility** * Requires Marinara Engine 2.4.5 or later. * Pixelforge updated to version 0.16.3. <!-- 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:13 +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#1122
No description provided.