[PR #374] [MERGED] Pixelforge 0.3.0: timeline-anchored saves, the Whisperwood, review-round client fixes #938

Closed
opened 2026-10-20 17:32:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/373-pixelforge-0.3.0


📝 Commits (2)

  • f254c69 feat(pixelforge): 0.3.0 — timeline-anchored saves, the Whisperwood, review-round client fixes (#373)
  • f3e968b fix(pixelforge): address CodeRabbit review on the save adapter

📊 Changes

15 files changed (+532 additions, -73 deletions)

View changed files

➕ artifacts/pixelforge-0.3.0.zip (+0 -0)
📝 catalog/catalog.json (+17 -11)
📝 catalog/v2/catalog.json (+17 -11)
📝 catalog/v3/catalog.json (+17 -11)
📝 packages/pixelforge/build/build-art.mjs (+1 -1)
📝 packages/pixelforge/client.js (+232 -15)
📝 packages/pixelforge/engine-boundary.json (+1 -1)
📝 packages/pixelforge/manifest.json (+13 -7)
📝 packages/pixelforge/sprites.json (+2 -1)
➕ packages/pixelforge/sprites/fen.png (+0 -0)
📝 packages/pixelforge/src/00-prelude.js (+20 -0)
📝 packages/pixelforge/src/20-world.js (+40 -2)
📝 packages/pixelforge/src/60-save.js (+157 -8)
📝 packages/pixelforge/src/90-element.js (+14 -4)
📝 scripts/build-pixelforge-package.mjs (+1 -1)

📄 Description

Linked issue

Closes #373

Why this change

  • Pixelforge 0.2.0's saves live in chat metadata, which no engine timeline seam rewinds — the documented Phase-1 limitation. Marinara-Engine #5106 (merged) added host-owned experience-state routes precisely so a game-surface Experience can inherit swipe/branch/checkpoint correctness; this release adopts them, and grows the world with its first expansion zone.

What changed

  • Timeline-anchored saves (src/60-save.js, src/90-element.js, src/00-prelude.js): per-chat feature detection promotes GET/PUT /api/game/:chatId/experience-state to save authority when present — boot stays synchronous from the metadata cache, adopt() reconciles (or migrates a legacy save up), and a turn-edge checkRewind() rebuilds the world with a toast when the anchored row changes under the client (swipe, branch, checkpoint load). Saves dual-write route-first with the metadata copy as instant-boot cache and old-engine fallback; engines without the routes get exactly 0.2.0 behavior.
  • The Whisperwood (src/20-world.js, build/build-art.mjs): forest zone east of the village — border and scattered trees, a stream crossed by a walkable ford, a stone clearing with a lit standing stone, Fen the forager (fifth generated walk-cycle sheet; contributions.assets grows 7 → 8), two-way two-tile portals off the village's east road.
  • Carries the #359 CodeRabbit round into the shipped client (travel pending-guard + generation capture, full zone-cache reset on chat switch, zero-seed preservation and strict wizard seed parsing, serialized flush chain, localStorage-gated debug handle, D-pad tabindex -1, Raster.blit bounds clip).
  • Generated outputs: client.js (89,063 bytes), manifest.json, sprites.json + sprites/fen.png, artifacts/pixelforge-0.3.0.zip, all three catalog lanes. artifacts/pixelforge-0.2.0.zip remains, per prior-release convention.

Package and security impact

  • Affected package IDs: pixelforge (0.2.0 → 0.3.0)
  • Engine compatibility impact: unchanged — capabilityApi {1,10}, engine.min 2.4.3, maxExclusive 4.0.0. The experience-state routes are host routes, not a manifest contribution, so no new vocabulary and no new sequencing constraints beyond #358's existing "promote to main with Engine 2.4.3" rule. builtAgainst moves to Engine staging 92af241b1.
  • New or changed permissions/entrypoints: none — still ["ui"], agents + client entrypoints, no server.
  • Restart, storage, update, or uninstall impact: still restartRequired: false. World saves now also occupy the chat's game_engine_state rows (experience:pixelforge namespace, pruned to the newest 100 anchors by the engine); chat deletion prunes them like all engine-state rows. Update path is the standard catalog artifact flow; a 0.2.0 chat's metadata save migrates into the routes on first load.

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

Performed by the submitting agent (boxes above intentionally left for the human reviewer):

  • node scripts/build-pixelforge-package.mjs → built pixelforge 0.3.0, client.js 89063 bytes, 8 assets, artifact 97672 bytes, builtAgainst 2.4.3 @ 92af241b1.
  • validate-catalog (35 packages (24 agents, 11 features), lanes v2=35, v3=35), test-catalog-lanes, validate-package-locales, git diff --check — all green locally.
  • End-to-end on an Engine staging build, installing this exact artifact zip: the save adapter reports routes mode, all 8 assets serve through the package-asset route, the world generates all three zones, and a save written by the previous build restored into the Whisperwood at its exact position with anchorMatched: true — i.e., the 0.2.0 → 0.3.0 update path and the timeline-anchored round-trip both work against the merged engine.
  • Still needs a maintainer pass: fresh install through the staging catalog UI, a real swipe-rewind during play (world rewinds with a toast), and the ford/portal walk in the Whisperwood.

Documentation impact

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

packages/pixelforge/README.md already describes the two-tier art and rebuild flow and stays accurate; the catalog description is unchanged, so no locale or guidance churn. An Engine-side Experiences docs page remains the post-release follow-up noted in #358.

Summary by CodeRabbit

  • New Features
    • Added the Whisperwood forest zone, including new terrain, paths, stream crossings, landmarks, entrances, and a forager NPC.
    • Added the Fen actor and sprite asset.
    • Added experience-state saving and restoration across timelines and chat sessions.
    • Added support for detecting timeline rewinds and restoring authoritative saved progress.
  • Bug Fixes
    • Improved save reliability with fallback handling and safer state recovery.
  • Improvements
    • Released Pixelforge version 0.3.0 with refreshed client and asset metadata.

🔄 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/374 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 8/16/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/373-pixelforge-0.3.0` --- ### 📝 Commits (2) - [`f254c69`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f254c69dfea3863551bdfea8b5358d9249c30053) feat(pixelforge): 0.3.0 — timeline-anchored saves, the Whisperwood, review-round client fixes (#373) - [`f3e968b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f3e968ba1d1aac84935d915dd95d62922c4c1e74) fix(pixelforge): address CodeRabbit review on the save adapter ### 📊 Changes **15 files changed** (+532 additions, -73 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/pixelforge-0.3.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+17 -11) 📝 `catalog/v2/catalog.json` (+17 -11) 📝 `catalog/v3/catalog.json` (+17 -11) 📝 `packages/pixelforge/build/build-art.mjs` (+1 -1) 📝 `packages/pixelforge/client.js` (+232 -15) 📝 `packages/pixelforge/engine-boundary.json` (+1 -1) 📝 `packages/pixelforge/manifest.json` (+13 -7) 📝 `packages/pixelforge/sprites.json` (+2 -1) ➕ `packages/pixelforge/sprites/fen.png` (+0 -0) 📝 `packages/pixelforge/src/00-prelude.js` (+20 -0) 📝 `packages/pixelforge/src/20-world.js` (+40 -2) 📝 `packages/pixelforge/src/60-save.js` (+157 -8) 📝 `packages/pixelforge/src/90-element.js` (+14 -4) 📝 `scripts/build-pixelforge-package.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #373 ## Why this change - Pixelforge 0.2.0's saves live in chat metadata, which no engine timeline seam rewinds — the documented Phase-1 limitation. Marinara-Engine #5106 (merged) added host-owned experience-state routes precisely so a game-surface Experience can inherit swipe/branch/checkpoint correctness; this release adopts them, and grows the world with its first expansion zone. ## What changed - **Timeline-anchored saves** (`src/60-save.js`, `src/90-element.js`, `src/00-prelude.js`): per-chat feature detection promotes `GET`/`PUT /api/game/:chatId/experience-state` to save authority when present — boot stays synchronous from the metadata cache, `adopt()` reconciles (or migrates a legacy save up), and a turn-edge `checkRewind()` rebuilds the world with a toast when the anchored row changes under the client (swipe, branch, checkpoint load). Saves dual-write route-first with the metadata copy as instant-boot cache and old-engine fallback; engines without the routes get exactly 0.2.0 behavior. - **The Whisperwood** (`src/20-world.js`, `build/build-art.mjs`): forest zone east of the village — border and scattered trees, a stream crossed by a walkable ford, a stone clearing with a lit standing stone, Fen the forager (fifth generated walk-cycle sheet; `contributions.assets` grows 7 → 8), two-way two-tile portals off the village's east road. - Carries the #359 CodeRabbit round into the shipped client (travel pending-guard + generation capture, full zone-cache reset on chat switch, zero-seed preservation and strict wizard seed parsing, serialized flush chain, localStorage-gated debug handle, D-pad `tabindex -1`, `Raster.blit` bounds clip). - Generated outputs: `client.js` (89,063 bytes), `manifest.json`, `sprites.json` + `sprites/fen.png`, `artifacts/pixelforge-0.3.0.zip`, all three catalog lanes. `artifacts/pixelforge-0.2.0.zip` remains, per prior-release convention. ## Package and security impact - Affected package IDs: `pixelforge` (0.2.0 → 0.3.0) - Engine compatibility impact: unchanged — `capabilityApi {1,10}`, `engine.min 2.4.3`, `maxExclusive 4.0.0`. The experience-state routes are host routes, not a manifest contribution, so no new vocabulary and no new sequencing constraints beyond #358's existing "promote to `main` with Engine 2.4.3" rule. `builtAgainst` moves to Engine staging `92af241b1`. - New or changed permissions/entrypoints: none — still `["ui"]`, agents + client entrypoints, no server. - Restart, storage, update, or uninstall impact: still `restartRequired: false`. World saves now also occupy the chat's `game_engine_state` rows (`experience:pixelforge` namespace, pruned to the newest 100 anchors by the engine); chat deletion prunes them like all engine-state rows. Update path is the standard catalog artifact flow; a 0.2.0 chat's metadata save migrates into the routes on first load. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Performed by the submitting agent (boxes above intentionally left for the human reviewer): - `node scripts/build-pixelforge-package.mjs` → `built pixelforge 0.3.0, client.js 89063 bytes, 8 assets, artifact 97672 bytes, builtAgainst 2.4.3 @ 92af241b1`. - `validate-catalog` (`35 packages (24 agents, 11 features)`, lanes `v2=35, v3=35`), `test-catalog-lanes`, `validate-package-locales`, `git diff --check` — all green locally. - End-to-end on an Engine staging build, installing this exact artifact zip: the save adapter reports routes mode, all 8 assets serve through the package-asset route, the world generates all three zones, and a save written by the previous build restored into the Whisperwood at its exact position with `anchorMatched: true` — i.e., the 0.2.0 → 0.3.0 update path and the timeline-anchored round-trip both work against the merged engine. - Still needs a maintainer pass: fresh install through the staging catalog UI, a real swipe-rewind during play (world rewinds with a toast), and the ford/portal walk in the Whisperwood. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/pixelforge/README.md` already describes the two-tier art and rebuild flow and stays accurate; the catalog description is unchanged, so no locale or guidance churn. An Engine-side Experiences docs page remains the post-release follow-up noted in #358. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added the Whisperwood forest zone, including new terrain, paths, stream crossings, landmarks, entrances, and a forager NPC. * Added the Fen actor and sprite asset. * Added experience-state saving and restoration across timelines and chat sessions. * Added support for detecting timeline rewinds and restoring authoritative saved progress. * **Bug Fixes** * Improved save reliability with fallback handling and safer state recovery. * **Improvements** * Released Pixelforge version 0.3.0 with refreshed client and asset metadata. <!-- 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-20 17:32:29 +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#938
No description provided.