[PR #15] [MERGED] Restore Hierarchical Maps file storage compatibility #765

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/15
Author: @thetopham
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/hierarchical-maps-recovery-14


📝 Commits (1)

  • 30cdf33 Restore Hierarchical Maps file storage compatibility

📊 Changes

49 files changed (+843 additions, -529 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.0.1.zip (+0 -0)
📝 catalog/catalog.json (+12 -12)
📝 packages/hierarchical-maps/client.js (+35 -35)
📝 packages/hierarchical-maps/manifest.json (+6 -6)
📝 packages/hierarchical-maps/server.mjs (+137 -137)
📝 scripts/build-feature-packages.mjs (+17 -5)
➕ sources/engine/packages/client/src/lib/game-npc-avatar.ts (+33 -0)
📝 sources/engine/packages/client/src/stores/game-asset.store.ts (+3 -57)
📝 sources/engine/packages/client/src/stores/game-mode.store.ts (+10 -5)
📝 sources/engine/packages/client/src/stores/ui.store.ts (+139 -29)
📝 sources/engine/packages/server/src/config/runtime-config.ts (+3 -99)
➕ sources/engine/packages/server/src/db/file-query.ts (+83 -0)
➕ sources/engine/packages/server/src/db/file-schema.ts (+220 -0)
📝 sources/engine/packages/server/src/db/schema/achievements.ts (+2 -2)
📝 sources/engine/packages/server/src/db/schema/agents.ts (+4 -4)
📝 sources/engine/packages/server/src/db/schema/app-settings.ts (+2 -2)
📝 sources/engine/packages/server/src/db/schema/assets.ts (+2 -2)
📝 sources/engine/packages/server/src/db/schema/characters.ts (+7 -7)
📝 sources/engine/packages/server/src/db/schema/chat-presets.ts (+2 -2)
📝 sources/engine/packages/server/src/db/schema/chats.ts (+8 -8)

...and 29 more files

📄 Description

Linked issue

Closes #14

Paired Engine host change: Pasta-Devs/Marinara-Engine#3644

Why this change

Hierarchical Maps 1.0.0 activates but fails on its first spatial snapshot read because the generated server bundle captured Drizzle-era table definitions and query expressions. Marinara Engine 2.3 uses file-native table metadata, so the package can appear installed while real map routes return 500.

This emergency compatibility release restores the downloadable package without moving its feature implementation back into the Engine. The broader package-owned source and capability API work remains a separate 1.1.0 phase.

What changed

  • Re-captured the Hierarchical Maps dependency graph against current file-native Engine storage while retaining the extracted map-specific source in Marinara-Agents.
  • Ported map-specific query imports to the file-native query contract.
  • Added a non-mutating package selfCheck that reads the spatial snapshot table before the Engine marks the package ready.
  • Bumped Hierarchical Maps to 1.0.1 and narrowed compatibility to Engine 2.3.x.
  • Rebuilt server.mjs, client.js, manifest hashes, the immutable ZIP artifact, and catalog metadata.
  • Preserved the 1.0.0 artifact for incident reproduction; the catalog now advertises 1.0.1.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: requires Pasta-Devs/Marinara-Engine#3644; manifest range is >=2.3.0 <2.4.0
  • New or changed permissions/entrypoints: no new permissions or entrypoints; existing server/client/agents entrypoints were rebuilt
  • Restart, storage, update, or uninstall impact: update requires restart; self-check is read-only; existing definitions and snapshots are not migrated, rewritten, or deleted

Validation

Automated evidence:

  • node scripts/validate-catalog.mjs — passed; 29 packages valid (21 agents, 8 features).
  • git diff --check — passed.
  • Focused hierarchical-maps builder — completed and regenerated all declared payloads, hashes, catalog metadata, and artifacts/hierarchical-maps-1.0.1.zip.
  • Exact artifact SHA-256 3515b16c48570e43266732ef5461c52ecc95533f608eee25f71d45c914917010 — verified before extraction.
  • Isolated paired-Engine proof — package activation and read-only self-check reached ready; empty GET, map PUT, map GET, app restart, and persisted map/snapshot readback all passed against file-native storage.
  • Paired Engine validation — pnpm regression:issues, pnpm regression:prompt, and pnpm check passed on Node 24.18.0.

Known extraction debt: the legacy Engine pnpm regression:spatial command still imports map source files already removed from Engine staging, so it exits before assertions. The exact artifact proof above exercises the downloadable package and its storage boundary directly.

  • 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 update an existing 1.0.0 installation through the published catalog after both PRs merge.
  • Restart and verify package readiness reaches ready only after the snapshot read succeeds.
  • Verify Roleplay and Game map UI, owner movement, and an existing spatial-history chat without rewriting snapshots.
  • Verify uninstall/reinstall recovery and failed-readiness behavior while stored data remains intact.

Documentation impact

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

UI evidence (if applicable)

No intentional visual changes. The rebuilt client bundle is included because executable package artifacts are immutable and versioned together.


🔄 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/15 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/hierarchical-maps-recovery-14` --- ### 📝 Commits (1) - [`30cdf33`](https://github.com/Pasta-Devs/Marinara-Agents/commit/30cdf33a670e3fa30d6b44a6791a3ab0587a6c11) Restore Hierarchical Maps file storage compatibility ### 📊 Changes **49 files changed** (+843 additions, -529 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.0.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+12 -12) 📝 `packages/hierarchical-maps/client.js` (+35 -35) 📝 `packages/hierarchical-maps/manifest.json` (+6 -6) 📝 `packages/hierarchical-maps/server.mjs` (+137 -137) 📝 `scripts/build-feature-packages.mjs` (+17 -5) ➕ `sources/engine/packages/client/src/lib/game-npc-avatar.ts` (+33 -0) 📝 `sources/engine/packages/client/src/stores/game-asset.store.ts` (+3 -57) 📝 `sources/engine/packages/client/src/stores/game-mode.store.ts` (+10 -5) 📝 `sources/engine/packages/client/src/stores/ui.store.ts` (+139 -29) 📝 `sources/engine/packages/server/src/config/runtime-config.ts` (+3 -99) ➕ `sources/engine/packages/server/src/db/file-query.ts` (+83 -0) ➕ `sources/engine/packages/server/src/db/file-schema.ts` (+220 -0) 📝 `sources/engine/packages/server/src/db/schema/achievements.ts` (+2 -2) 📝 `sources/engine/packages/server/src/db/schema/agents.ts` (+4 -4) 📝 `sources/engine/packages/server/src/db/schema/app-settings.ts` (+2 -2) 📝 `sources/engine/packages/server/src/db/schema/assets.ts` (+2 -2) 📝 `sources/engine/packages/server/src/db/schema/characters.ts` (+7 -7) 📝 `sources/engine/packages/server/src/db/schema/chat-presets.ts` (+2 -2) 📝 `sources/engine/packages/server/src/db/schema/chats.ts` (+8 -8) _...and 29 more files_ </details> ### 📄 Description ## Linked issue Closes #14 Paired Engine host change: Pasta-Devs/Marinara-Engine#3644 ## Why this change Hierarchical Maps 1.0.0 activates but fails on its first spatial snapshot read because the generated server bundle captured Drizzle-era table definitions and query expressions. Marinara Engine 2.3 uses file-native table metadata, so the package can appear installed while real map routes return 500. This emergency compatibility release restores the downloadable package without moving its feature implementation back into the Engine. The broader package-owned source and capability API work remains a separate 1.1.0 phase. ## What changed - Re-captured the Hierarchical Maps dependency graph against current file-native Engine storage while retaining the extracted map-specific source in Marinara-Agents. - Ported map-specific query imports to the file-native query contract. - Added a non-mutating package `selfCheck` that reads the spatial snapshot table before the Engine marks the package ready. - Bumped Hierarchical Maps to 1.0.1 and narrowed compatibility to Engine 2.3.x. - Rebuilt `server.mjs`, `client.js`, manifest hashes, the immutable ZIP artifact, and catalog metadata. - Preserved the 1.0.0 artifact for incident reproduction; the catalog now advertises 1.0.1. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: requires Pasta-Devs/Marinara-Engine#3644; manifest range is `>=2.3.0 <2.4.0` - New or changed permissions/entrypoints: no new permissions or entrypoints; existing server/client/agents entrypoints were rebuilt - Restart, storage, update, or uninstall impact: update requires restart; self-check is read-only; existing definitions and snapshots are not migrated, rewritten, or deleted ## Validation Automated evidence: - `node scripts/validate-catalog.mjs` — passed; 29 packages valid (21 agents, 8 features). - `git diff --check` — passed. - Focused `hierarchical-maps` builder — completed and regenerated all declared payloads, hashes, catalog metadata, and `artifacts/hierarchical-maps-1.0.1.zip`. - Exact artifact SHA-256 `3515b16c48570e43266732ef5461c52ecc95533f608eee25f71d45c914917010` — verified before extraction. - Isolated paired-Engine proof — package activation and read-only self-check reached `ready`; empty GET, map PUT, map GET, app restart, and persisted map/snapshot readback all passed against file-native storage. - Paired Engine validation — `pnpm regression:issues`, `pnpm regression:prompt`, and `pnpm check` passed on Node 24.18.0. Known extraction debt: the legacy Engine `pnpm regression:spatial` command still imports map source files already removed from Engine `staging`, so it exits before assertions. The exact artifact proof above exercises the downloadable package and its storage boundary directly. - [ ] `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 update an existing 1.0.0 installation through the published catalog after both PRs merge. - Restart and verify package readiness reaches `ready` only after the snapshot read succeeds. - Verify Roleplay and Game map UI, owner movement, and an existing spatial-history chat without rewriting snapshots. - Verify uninstall/reinstall recovery and failed-readiness behavior while stored data remains intact. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No intentional visual changes. The rebuilt client bundle is included because executable package artifacts are immutable and versioned together. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:30:44 +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#765
No description provided.