[PR #58] [MERGED] fix: connect AI-generated map routes #789

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

📋 Pull Request Information

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

Base: main ← Head: fix/hierarchical-maps-ai-route-links


📝 Commits (1)

  • f5b6bf3 fix: connect AI-generated map routes

📊 Changes

7 files changed (+511 additions, -79 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.1.1.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/server.mjs (+40 -40)
📝 packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts (+208 -13)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+252 -15)

📄 Description

Linked issue

Closes #57

Why this change

  • Hierarchical Maps 1.1.0 often generated correct containment without the direct travel links needed to move naturally through a house, city, dungeon, or ordered set of floors.
  • Expansion could only link new locations to other new locations, so an AI-created district or room group could not attach itself to the existing local route graph.
  • This route graph is required for the existing Set destination workflow and is a prerequisite for future Travel modes, while Travel itself remains out of scope.

What changed

  • Updated the Hierarchical Maps create and expand prompts to distinguish containment from travel and require sparse, believable connected sibling routes inferred from the generated setting.
  • Supplies stable existing-child keys and route context during expansion, allowing new locations to link to existing siblings without returning or rewriting their records.
  • Preserves AI-authored link labels and adds a minimal deterministic spanning fallback only when a generated sibling group remains disconnected.
  • Connects an expansion to the nearest or adjacent existing sibling when the model omits the required attachment.
  • Adds exact-artifact regression coverage for connected creation, semantic labels, sparse fallback behavior, expansion links to existing siblings, and unchanged existing map records.
  • Publishes the fix as Hierarchical Maps 1.1.1 with rebuilt payload, manifest, artifact, hashes, sizes, and catalog entry. The immutable 1.1.0 artifact remains unchanged.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: no new host contract; remains capability API 1.3 on Engine >=3.2.0 <3.3.0, built against Engine 3.2.2 commit 7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: updating from 1.1.0 to 1.1.1 requires restart; existing definitions and snapshots remain preserved; expansion does not rewrite existing locations

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

  • Automated: node scripts/validate-catalog.mjs reported Catalog valid: 29 packages (21 agents, 8 features).
  • Automated: git diff --check passed.
  • Automated: focused package build completed against the exact declared Engine baseline 7d5c09975.
  • Automated: exact-artifact lifecycle regression passed the 1.1.0 to 1.1.1 update, AI-created connected route graphs, AI expansion links to existing siblings, owner-turn and prompt parity, branch/delete/import/export/checkpoint preservation, offline restart, remove/reinstall, backup, and restore.
  • Artifact: SHA-256 0b6b5e0254cfbc9ff8f0cc08e7952e7c528a97972a58c3c49bab124d991da932, 269,952 bytes.
  • Compatibility observation: the full lifecycle harness against latest Engine staging 8ab3f7157 currently fails an earlier assistant-snapshot assertion before reaching issue #57 coverage. Exact-baseline proof passes; this PR does not weaken or bypass that unrelated assertion.
  • Manual browser and real-device verification has not been performed for this follow-up.

Documentation impact

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

No user guide text was changed. The existing creation and destination controls are unchanged; this corrects the generated route data behind them.

UI evidence (if applicable)

No screenshots or recordings were captured. This change affects generated route data and package payloads rather than adding a new UI surface.


🔄 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/58 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/hierarchical-maps-ai-route-links` --- ### 📝 Commits (1) - [`f5b6bf3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f5b6bf363ef2fd55040dd0a00cec8b59ba6665d2) fix: connect AI-generated map routes ### 📊 Changes **7 files changed** (+511 additions, -79 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.1.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/server.mjs` (+40 -40) 📝 `packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts` (+208 -13) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+252 -15) </details> ### 📄 Description ## Linked issue Closes #57 ## Why this change - Hierarchical Maps 1.1.0 often generated correct containment without the direct travel links needed to move naturally through a house, city, dungeon, or ordered set of floors. - Expansion could only link new locations to other new locations, so an AI-created district or room group could not attach itself to the existing local route graph. - This route graph is required for the existing **Set destination** workflow and is a prerequisite for future Travel modes, while Travel itself remains out of scope. ## What changed - Updated the Hierarchical Maps create and expand prompts to distinguish containment from travel and require sparse, believable connected sibling routes inferred from the generated setting. - Supplies stable existing-child keys and route context during expansion, allowing new locations to link to existing siblings without returning or rewriting their records. - Preserves AI-authored link labels and adds a minimal deterministic spanning fallback only when a generated sibling group remains disconnected. - Connects an expansion to the nearest or adjacent existing sibling when the model omits the required attachment. - Adds exact-artifact regression coverage for connected creation, semantic labels, sparse fallback behavior, expansion links to existing siblings, and unchanged existing map records. - Publishes the fix as Hierarchical Maps 1.1.1 with rebuilt payload, manifest, artifact, hashes, sizes, and catalog entry. The immutable 1.1.0 artifact remains unchanged. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: no new host contract; remains capability API 1.3 on Engine `>=3.2.0 <3.3.0`, built against Engine 3.2.2 commit `7d5c09975abfd28e7e5e6645ff3b0bdeef86e1d7` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: updating from 1.1.0 to 1.1.1 requires restart; existing definitions and snapshots remain preserved; expansion does not rewrite existing locations ## 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 - Automated: `node scripts/validate-catalog.mjs` reported `Catalog valid: 29 packages (21 agents, 8 features).` - Automated: `git diff --check` passed. - Automated: focused package build completed against the exact declared Engine baseline `7d5c09975`. - Automated: exact-artifact lifecycle regression passed the 1.1.0 to 1.1.1 update, AI-created connected route graphs, AI expansion links to existing siblings, owner-turn and prompt parity, branch/delete/import/export/checkpoint preservation, offline restart, remove/reinstall, backup, and restore. - Artifact: SHA-256 `0b6b5e0254cfbc9ff8f0cc08e7952e7c528a97972a58c3c49bab124d991da932`, 269,952 bytes. - Compatibility observation: the full lifecycle harness against latest Engine staging `8ab3f7157` currently fails an earlier assistant-snapshot assertion before reaching issue #57 coverage. Exact-baseline proof passes; this PR does not weaken or bypass that unrelated assertion. - Manual browser and real-device verification has not been performed for this follow-up. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No user guide text was changed. The existing creation and destination controls are unchanged; this corrects the generated route data behind them. ## UI evidence (if applicable) No screenshots or recordings were captured. This change affects generated route data and package payloads rather than adding a new UI surface. --- <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:57 +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#789
No description provided.