[PR #211] [MERGED] fix: address promotion review findings #857

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

📋 Pull Request Information

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

Base: staging ← Head: agent/address-promotion-review


📝 Commits (6)

  • 4d1ae21 fix: address promotion review safeguards
  • ab55fc2 fix(maps): address portable lore review findings
  • 7986249 fix: harden review feedback edge cases
  • 44ce5ca Merge remote-tracking branch 'origin/staging' into agent/address-promotion-review
  • fcec686 fix(maps): preserve prior package artifact
  • d71f929 fix(maps): prime lore only for active imports

📊 Changes

17 files changed (+375 additions, -145 deletions)

View changed files

📝 .github/workflows/owner-approval-review.yml (+23 -0)
📝 .github/workflows/pull-request-triage.yml (+0 -1)
📝 artifacts/hierarchical-maps-1.2.9.zip (+0 -0)
📝 catalog/catalog.json (+5 -5)
📝 catalog/v2/catalog.json (+5 -5)
📝 catalog/v3/catalog.json (+5 -5)
📝 packages/hierarchical-maps/client.js (+50 -50)
📝 packages/hierarchical-maps/manifest.json (+2 -2)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx (+31 -11)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+37 -12)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx (+17 -11)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/use-modal-keyboard-navigation.ts (+7 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts (+1 -9)
📝 scripts/evaluate-owner-approval.mjs (+36 -22)
📝 scripts/test-owner-approval.mjs (+50 -1)
📝 scripts/validate-pr-triage.mjs (+6 -5)
📝 tests/map-lore-portability.regression.ts (+100 -3)

📄 Description

Linked issue

Closes #210 when the stable promotion completes.

Why this change

CodeRabbit found correctness, performance, and workflow edge cases while reviewing the current staging → main promotion. These must be addressed on staging before the stable catalog is promoted.

What changed

  • Resolve fork-origin approval events through a search fallback, bound GitHub API requests, and ignore non-effective owner review comments.
  • Avoid mounting up to 10,000 portable-lore mapping rows while their inspectors are collapsed.
  • Prime lore-entry loading before map file selection and keep import/refetch failure states accurate.
  • Strip foreign chat, character, persona, global, scope, and library-visibility bindings from imported lorebooks.
  • Cover reuse matching, ambiguous selections, owner-scope sanitization, and approval review ordering.
  • Rebuild the current Hierarchical Maps 1.2.9 artifact and every generated catalog lane from the combined source, while preserving the published 1.2.8 artifact byte-for-byte.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: portable lore imports no longer inherit foreign ownership bindings; no lifecycle contract changes

Validation

  • node scripts/test-catalog-lanes.mjs passes locally
  • 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 verification completed:

  • node scripts/test-owner-approval.mjs
  • node scripts/validate-pr-triage.mjs
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check origin/staging...HEAD
  • World Maps portable-lore regression through the Marinara Engine server toolchain
  • Hierarchical Maps exact-artifact lifecycle regression through the Marinara Engine server toolchain
  • World Maps canonical canvas geometry regression

No browser installation or interactive UI verification was performed.

Documentation impact

No documentation changes are needed.

Summary by CodeRabbit

  • New Features

    • Added an expandable location-to-lore mapping view for portable world-map exports.
    • Improved import interactions by preparing lore data when import controls receive focus or pointer input.
  • Bug Fixes

    • Portable imports now exclude unsupported lorebook settings and handle ambiguous matches more reliably.
    • Imports now handle loading and refresh failures more gracefully, including warning notifications.
    • Improved keyboard behavior in modal dialogs.
    • Improved pull-request approval and triage reliability during repository automation.

🔄 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/211 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/address-promotion-review` --- ### 📝 Commits (6) - [`4d1ae21`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4d1ae21a37307c126ac33885bb0881c8c0917b67) fix: address promotion review safeguards - [`ab55fc2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ab55fc256f3feb229ca1ce4d35d1150936292f7c) fix(maps): address portable lore review findings - [`7986249`](https://github.com/Pasta-Devs/Marinara-Agents/commit/798624980f274ee48cadb367ae3263bfaf41fe19) fix: harden review feedback edge cases - [`44ce5ca`](https://github.com/Pasta-Devs/Marinara-Agents/commit/44ce5ca76612aeadf56d2b1ce278eeb0431469c9) Merge remote-tracking branch 'origin/staging' into agent/address-promotion-review - [`fcec686`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fcec68650b6e58c274a80a250edbc7cd45868567) fix(maps): preserve prior package artifact - [`d71f929`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d71f9294759b253117e59ee78dec7c017d28d3f8) fix(maps): prime lore only for active imports ### 📊 Changes **17 files changed** (+375 additions, -145 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/owner-approval-review.yml` (+23 -0) 📝 `.github/workflows/pull-request-triage.yml` (+0 -1) 📝 `artifacts/hierarchical-maps-1.2.9.zip` (+0 -0) 📝 `catalog/catalog.json` (+5 -5) 📝 `catalog/v2/catalog.json` (+5 -5) 📝 `catalog/v3/catalog.json` (+5 -5) 📝 `packages/hierarchical-maps/client.js` (+50 -50) 📝 `packages/hierarchical-maps/manifest.json` (+2 -2) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx` (+31 -11) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+37 -12) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx` (+17 -11) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/use-modal-keyboard-navigation.ts` (+7 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts` (+1 -9) 📝 `scripts/evaluate-owner-approval.mjs` (+36 -22) 📝 `scripts/test-owner-approval.mjs` (+50 -1) 📝 `scripts/validate-pr-triage.mjs` (+6 -5) 📝 `tests/map-lore-portability.regression.ts` (+100 -3) </details> ### 📄 Description ## Linked issue Closes #210 when the stable promotion completes. ## Why this change CodeRabbit found correctness, performance, and workflow edge cases while reviewing the current `staging → main` promotion. These must be addressed on `staging` before the stable catalog is promoted. ## What changed - Resolve fork-origin approval events through a search fallback, bound GitHub API requests, and ignore non-effective owner review comments. - Avoid mounting up to 10,000 portable-lore mapping rows while their inspectors are collapsed. - Prime lore-entry loading before map file selection and keep import/refetch failure states accurate. - Strip foreign chat, character, persona, global, scope, and library-visibility bindings from imported lorebooks. - Cover reuse matching, ambiguous selections, owner-scope sanitization, and approval review ordering. - Rebuild the current Hierarchical Maps 1.2.9 artifact and every generated catalog lane from the combined source, while preserving the published 1.2.8 artifact byte-for-byte. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: portable lore imports no longer inherit foreign ownership bindings; no lifecycle contract changes ## Validation - [ ] `node scripts/test-catalog-lanes.mjs` passes locally - [ ] `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 verification completed: - `node scripts/test-owner-approval.mjs` - `node scripts/validate-pr-triage.mjs` - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `git diff --check origin/staging...HEAD` - World Maps portable-lore regression through the Marinara Engine server toolchain - Hierarchical Maps exact-artifact lifecycle regression through the Marinara Engine server toolchain - World Maps canonical canvas geometry regression No browser installation or interactive UI verification was performed. ## Documentation impact No documentation changes are needed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an expandable location-to-lore mapping view for portable world-map exports. * Improved import interactions by preparing lore data when import controls receive focus or pointer input. * **Bug Fixes** * Portable imports now exclude unsupported lorebook settings and handle ambiguous matches more reliably. * Imports now handle loading and refresh failures more gracefully, including warning notifications. * Improved keyboard behavior in modal dialogs. * Improved pull-request approval and triage reliability during repository automation. <!-- 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:31:41 +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#857
No description provided.