[PR #507] [MERGED] feat(lorebook-keeper): classify and reuse writable lorebooks #1004

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

📋 Pull Request Information

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

Base: staging ← Head: fix/501-lorebook-keeper-revamp


📝 Commits (4)

  • 60fd625 chore: start lorebook keeper revamp
  • e8d6fb0 feat(lorebook-keeper): route facts by category
  • 0e5df69 Merge remote-tracking branch 'origin/staging' into fix/501-lorebook-keeper-revamp
  • c8b05aa test(lorebook-keeper): pin routing handoff

📊 Changes

7 files changed (+50 additions, -22 deletions)

View changed files

➕ artifacts/lorebook-keeper-1.0.5.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/lorebook-keeper/agents.json (+1 -1)
📝 packages/lorebook-keeper/manifest.json (+3 -3)
➕ tests/lorebook-keeper-routing.regression.mjs (+28 -0)

📄 Description

Linked issue

Closes #501

Why this change

Lorebook Keeper must route durable facts to the correct writable book without duplicating entries or mutating an attached original lorebook.

What changed

  • Classify durable facts as NPC, world, scene, or player lore.
  • Reuse the exact name of a matching book from writable_lorebooks.
  • Use a configured category alias only when no matching writable book exists.
  • Preserve existing-entry deduplication and locked-entry safeguards.
  • Publish Lorebook Keeper 1.0.5 with rebuilt artifacts and all catalog lanes.
  • Add a focused routing regression proof.

Package and security impact

  • Affected package IDs: lorebook-keeper
  • Engine compatibility impact: none; minimum remains 2.4.4
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update only

Validation

  • Run npm run check
  • Run the Lorebook Keeper routing regression
  • Validate catalog lanes, package locales, and catalog integrity
  • Verify the rebuilt artifact manifest and checksum
  • Install or update Lorebook Keeper through Marinara Engine
  • Manually verify matching writable books are reused and missing categories use aliases
  • Read and follow CONTRIBUTING.md

Local evidence

  • npm run check passed with the existing warning baseline.
  • Catalog lane, locale, and catalog validation passed.
  • Lorebook Keeper routing regression passed.
  • Artifact 1.0.5 contents and checksum were verified.

Documentation impact

  • No user-facing documentation changes are needed for this prompt-only package update.

UI evidence (if applicable)

Not applicable.

Summary by CodeRabbit

  • Updates

    • Updated Lorebook Keeper to version 1.0.5.
    • Refreshed package availability and download metadata across supported catalog versions.
    • Updated package integrity and size information for more reliable installation and distribution.
  • Quality

    • Added regression coverage to verify Lorebook Keeper routing, category aliases, naming settings, and required package configuration.

🔄 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/507 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/501-lorebook-keeper-revamp` --- ### 📝 Commits (4) - [`60fd625`](https://github.com/Pasta-Devs/Marinara-Agents/commit/60fd625130d7212622d86e9b258bbeed7e84f863) chore: start lorebook keeper revamp - [`e8d6fb0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e8d6fb05292d21ffb240498d942b04ca9ec878a7) feat(lorebook-keeper): route facts by category - [`0e5df69`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0e5df6999025a371a690d854124371df4ae81733) Merge remote-tracking branch 'origin/staging' into fix/501-lorebook-keeper-revamp - [`c8b05aa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c8b05aad1c058e94d58ccb7aa026deeff5a346b2) test(lorebook-keeper): pin routing handoff ### 📊 Changes **7 files changed** (+50 additions, -22 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/lorebook-keeper-1.0.5.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/lorebook-keeper/agents.json` (+1 -1) 📝 `packages/lorebook-keeper/manifest.json` (+3 -3) ➕ `tests/lorebook-keeper-routing.regression.mjs` (+28 -0) </details> ### 📄 Description ## Linked issue Closes #501 ## Why this change Lorebook Keeper must route durable facts to the correct writable book without duplicating entries or mutating an attached original lorebook. ## What changed - Classify durable facts as NPC, world, scene, or player lore. - Reuse the exact name of a matching book from writable_lorebooks. - Use a configured category alias only when no matching writable book exists. - Preserve existing-entry deduplication and locked-entry safeguards. - Publish Lorebook Keeper 1.0.5 with rebuilt artifacts and all catalog lanes. - Add a focused routing regression proof. ## Package and security impact - Affected package IDs: lorebook-keeper - Engine compatibility impact: none; minimum remains 2.4.4 - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update only ## Validation - [ ] Run npm run check - [ ] Run the Lorebook Keeper routing regression - [ ] Validate catalog lanes, package locales, and catalog integrity - [ ] Verify the rebuilt artifact manifest and checksum - [ ] Install or update Lorebook Keeper through Marinara Engine - [ ] Manually verify matching writable books are reused and missing categories use aliases - [ ] Read and follow CONTRIBUTING.md ### Local evidence - npm run check passed with the existing warning baseline. - Catalog lane, locale, and catalog validation passed. - Lorebook Keeper routing regression passed. - Artifact 1.0.5 contents and checksum were verified. ## Documentation impact - [ ] No user-facing documentation changes are needed for this prompt-only package update. ## UI evidence (if applicable) Not applicable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Updated Lorebook Keeper to version 1.0.5. * Refreshed package availability and download metadata across supported catalog versions. * Updated package integrity and size information for more reliable installation and distribution. * **Quality** * Added regression coverage to verify Lorebook Keeper routing, category aliases, naming settings, and required package configuration. <!-- 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:33:09 +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#1004
No description provided.