mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4909] [Feature]: Let workspace Professor Mari edit the remaining lorebook entry settings (probability, timing, recursion, filters, folder, lock) #2719
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#2719
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 @kolacheee on GitHub (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4909
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
Follow-up to #4791 / #4796. After that change, the workspace Professor Mari can author lorebook entries with keys,
constant/selective/selectiveLogic, whole-word/case/regex matching, and placement — but she still silently drops most of the remaining per-entry settings when she creates or updates an entry.A user testing her found this concretely: asked to change an entry's activation chance from 50 to 100, Mari reported that "this workspace helper does not support" it. In fact her entry action handler (
assignLorebookEntryActionFieldsinpackages/server/src/services/mari-db/mari-db.service.ts) never read these fields, so bothlorebook.addEntryandlorebook.updateEntrydiscarded them:probabilitysticky,cooldown,delay,ephemeralpreventRecursion,excludeRecursion,delayUntilRecursiongroupWeightscanDepthlockedfolderIdcharacterFilterMode/characterFilterIds,characterTagFilterMode/characterTagFilters,generationTriggerFilterMode/generationTriggerFilters,additionalMatchingSourcesexcludeFromVectorizationThese are all part of the user-editable set (
bulkUpdateLorebookEntryChangesSchema), so a human can set them in the UI but Mari cannot.Proposed solution
Let Mari set every user-editable entry field on create and update. Wire the fields above into
assignLorebookEntryActionFields(and theaddentry/updateentrytop-level-key allowlists), reusing the existing coercion helpers, and clampprobabilityto 0–100.Keep the vectorization behavior gated on the prompt side, consistent with how #4791 treats
embeddingModelConfiguredas a signal rather than a hard gate: instruct Mari to only include an entry in vectorization (excludeFromVectorization: false) when an embedding model is configured, since it is a no-op otherwise. Excluding an entry is always allowed.Alternatives considered
A hard code gate that rejects
excludeFromVectorization: falsewhen no embedding model is configured. Rejected: including an un-vectorizable entry is a harmless no-op (it simply participates once an embedding model exists later), and #4791 already establishedembeddingModelConfiguredas a prompt signal, not an enforced gate. A soft prompt gate prevents Mari from promising semantic recall it can't deliver, which is the actual concern.Additional context
Discovered via user testing of the #4791 authoring improvements. The docs (
docs/lorebooks/entries.md) already document all of these settings, so no docs change is required — this was purely a code gap in Mari's action layer.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: