mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1422] [Feature]: Optional review queue for Lorebook Keeper (approve/reject each proposed entry before commit) #702
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#702
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GetBeholder on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1422
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
The Lorebook Keeper automatically creates or updates lorebook entries based on
detected session information. In doing so it often creates duplicate lorebook
entries, far too many keywords, duplicate entry text items, and similar noise.
Keeping the lorebook concise, clean, and accurate currently requires a lot of
manual editing and maintenance.
Proposed behavior
Add an optional review queue where each proposed addition/update is individually
approved or rejected before being committed to the lorebook — working like the
Card Auditor (Card Evolution Auditor) and Consistency Editor approve/reject queue.
Expected owner or impact area
Refactor branch considerations
From a quick scan (triage pointer, not from the reporter): the approve/reject
queue pattern already exists. The Card Evolution Auditor enqueues proposed edits to
pendingCardUpdatesinsrc/shared/stores/agent.store.ts(
enqueuePendingCardUpdate/dismissPendingCardUpdate/clearPendingCardUpdates)and surfaces them via
CharacterCardUpdateModalfor per-batch approve/reject.Notably, that modal's own header documents the gap: "Unlike the Lorebook Keeper,
card edits require the user's explicit approval" — i.e. the Lorebook Keeper
currently commits automatically. This feature would add an analogous pending queue
plus review modal for Lorebook Keeper proposals (the
lorebook-keeperagent;prompt in
src/engine/contracts/constants/agent-prompts.ts), gated behind anoptional setting. Keep the agent logic in the engine and the review UI in the
lorebooks catalog. A per-item review step would also let users prune the duplicate
entries / excess keywords the reporter describes before they are committed.
Alternatives considered
No change. The current behavior is automatic/batch-oriented: it identifies
information worth preserving and adds/updates entries without a per-item approval
step. It is usable, but it requires a lot of editing and maintenance to keep the
lorebook concise, clean, and accurate.
Additional context
Source: forum request by AgentX (3-Star), 4:49 PM, already structured in the
feature-request template. The codebase confirms the gap — the
CharacterCardUpdateModalheader explicitly contrasts the Card Auditor's requiredapproval with the Lorebook Keeper's automatic commits.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
I like the proposed behavior.
@SpicyMarinara commented on GitHub (May 27, 2026):
Implemented on
refactor.What changed:
Review before savingsetting; review is enabled by default and can be disabled for automatic commits.Verification:
git diff --checkpnpm typecheckpnpm lintpnpm check:architecturepnpm buildgraphify update .