[PR #4399] [MERGED] fix: verify Professor Mari actions and localize lorebook copy #6362

Closed
opened 2026-10-23 04:09:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4399
Author: @SpicyMarinara
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-sweep-4390-4396


📝 Commits (4)

  • 814686f fix Professor Mari lorebook creation
  • 888d1bc fix verified Professor Mari completion and lorebook copy
  • 84780aa address CodeRabbit lorebook review
  • 2d20e20 test Professor Mari CLI lorebook defaults

📊 Changes

10 files changed (+263 additions, -29 deletions)

View changed files

📝 packages/client/src/components/lorebooks/LorebookEntryRow.tsx (+3 -3)
📝 packages/client/src/localization/i18n.ts (+1 -0)
📝 packages/client/src/localization/locale-loader.ts (+8 -1)
📝 packages/client/src/localization/locales/en.json (+3 -3)
📝 packages/client/src/localization/locales/ko.json (+5 -3)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+5 -0)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+99 -17)
📝 scripts/check-locales.mjs (+7 -1)
📝 scripts/regressions/open-issues.regression.ts (+86 -0)
📝 scripts/regressions/prompt.regression.ts (+46 -1)

📄 Description

Why

The remaining Engine issues expose two Professor Mari correctness gaps and two localization inconsistencies:

  • Professor Mari can claim workspace work is complete without any verified action.
  • Lorebook creation can fail when the workspace command omits the newer embedded-lorebook visibility field.
  • English plural suffix fragments cannot be localized correctly.
  • Lorebook position labels disagree about whether placement is relative to the character definition or chat.

Changes

  • Ensure Professor Mari lorebook creation supplies complete stored row defaults.
  • Enforce evidence-backed completion in the Professor Mari workspace loop.
  • Support intentional empty translations for suffix fragments used by languages without English-style plural suffixes.
  • Make the lorebook position tooltip match the actual character-definition placement contract.

Closes #4390
Closes #4393
Closes #4394
Closes #4396

Automated evidence

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:prompt
  • pnpm smoke:ui (171 passed, 89 intentional project skips)
  • Rendered browser inspection of the lorebook position selector and tooltip

Validation

  • Run pnpm check
  • Run relevant Professor Mari and localization regressions
  • Manually verify affected UI strings in the browser
  • Confirm CodeRabbit review and required checks complete

Summary by CodeRabbit

  • New Features
    • Workspace actions now verify successful changes before reporting completion, improving accuracy and failure messaging.
    • Newly created lorebooks are visible in the library by default and receive sensible default search settings.
  • Localization
    • Updated lorebook placement labels to reference character definitions rather than chats.
    • Added support for intentionally blank translations in select locales.
    • Improved Korean placement descriptions, including outlet insertion.
  • Bug Fixes
    • Improved handling of incomplete, unsupported, or unverified workspace action results.

🔄 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-Engine/pull/4399 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/1/2026 **Status:** ✅ Merged **Merged:** 8/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-4390-4396` --- ### 📝 Commits (4) - [`814686f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/814686f9dc7a9fc7dcfe234c83c6de2af55fa43a) fix Professor Mari lorebook creation - [`888d1bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/888d1bc0df30b834aa979e6092d092fd621b4e97) fix verified Professor Mari completion and lorebook copy - [`84780aa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/84780aaa1271eb051f69000d64f23d862c398f5c) address CodeRabbit lorebook review - [`2d20e20`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d20e200d8430be0898cbc7893686daad799099a) test Professor Mari CLI lorebook defaults ### 📊 Changes **10 files changed** (+263 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/lorebooks/LorebookEntryRow.tsx` (+3 -3) 📝 `packages/client/src/localization/i18n.ts` (+1 -0) 📝 `packages/client/src/localization/locale-loader.ts` (+8 -1) 📝 `packages/client/src/localization/locales/en.json` (+3 -3) 📝 `packages/client/src/localization/locales/ko.json` (+5 -3) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+5 -0) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+99 -17) 📝 `scripts/check-locales.mjs` (+7 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+86 -0) 📝 `scripts/regressions/prompt.regression.ts` (+46 -1) </details> ### 📄 Description ## Why The remaining Engine issues expose two Professor Mari correctness gaps and two localization inconsistencies: - Professor Mari can claim workspace work is complete without any verified action. - Lorebook creation can fail when the workspace command omits the newer embedded-lorebook visibility field. - English plural suffix fragments cannot be localized correctly. - Lorebook position labels disagree about whether placement is relative to the character definition or chat. ## Changes - Ensure Professor Mari lorebook creation supplies complete stored row defaults. - Enforce evidence-backed completion in the Professor Mari workspace loop. - Support intentional empty translations for suffix fragments used by languages without English-style plural suffixes. - Make the lorebook position tooltip match the actual character-definition placement contract. Closes #4390 Closes #4393 Closes #4394 Closes #4396 ## Automated evidence - pnpm check - pnpm regression:issues - pnpm regression:prompt - pnpm smoke:ui (171 passed, 89 intentional project skips) - Rendered browser inspection of the lorebook position selector and tooltip ## Validation - [ ] Run pnpm check - [ ] Run relevant Professor Mari and localization regressions - [ ] Manually verify affected UI strings in the browser - [ ] Confirm CodeRabbit review and required checks complete <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Workspace actions now verify successful changes before reporting completion, improving accuracy and failure messaging. * Newly created lorebooks are visible in the library by default and receive sensible default search settings. * **Localization** * Updated lorebook placement labels to reference character definitions rather than chats. * Added support for intentionally blank translations in select locales. * Improved Korean placement descriptions, including outlet insertion. * **Bug Fixes** * Improved handling of incomplete, unsupported, or unverified workspace action results. <!-- 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-23 04:09: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-Engine#6362
No description provided.