mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4814] [MERGED] docs(lorebooks): authoring strategy, a worked example, and macro guidance #6505
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#6505
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4814
Author: @kolacheee
Created: 8/9/2026
Status: ✅ Merged
Merged: 8/9/2026
Merged by: @kolacheee
Base:
staging← Head:docs/4792-lorebook-authoring-strategy📝 Commits (7)
031c964docs(lorebooks): add authoring strategy, a worked example, and macro guidancef670cb1docs(lorebooks): add a per-parameter use-case referenced8a588edocs(lorebooks): character-filter per-generation note, weighted random, common pitfalls3035739docs(lorebooks): add reusing-lore-across-chats guidance and an authoring checklist5bed85bdocs(lorebooks): address CodeRabbit review on #48147fdacddMerge branch 'staging' into docs/4792-lorebook-authoring-strategy1545113docs(lorebooks): complete the semantic-search note in the 'never fires' pitfall📊 Changes
2 files changed (+263 additions, -1 deletions)
View changed files
📝
docs/lorebooks/entries.md(+262 -0)📝
docs/lorebooks/overview.md(+1 -1)📄 Description
Linked issue
Closes #4792
Why this change
The lorebook docs explained what every control does, but every worked example was skeletal (name + keys + content) and there was no guidance on when to reach for each control. This adds authoring strategy, a non-skeletal worked example, and macro guidance so authors — and Professor Mari, once she is pointed at
docs_read(see #4791 / #4796) — have something better than the lowest-common-denominator entry to imitate.What changed
entries.md— Authoring strategy section: maps each situation to the right control ("when should the AI see this fact?"), plus healthy-lorebook habits, and a "structure lore as a tree" pattern — hub entries that list their members/cities, with recursion left off so a passing mention of the group does not cascade the whole subtree into the prompt.entries.md— Worked example: a non-skeletal gothic-Wallachia setting that builds from aConstantpremise through keyed entries, a multi-control entry (Selective + secondary keys + Whole Words + Order + Description) with a per-control justification, and aGroup+Probabilitypair — directly modeling stacked advanced parameters.entries.md—@ Depthcaution: it injects text inside the chat history and reads like an interruption, so it is flagged as a sparing, purposeful tool rather than a default.entries.md— "Using macros in entry content": entry content is macro-expanded before injection;{{// comment}}is stripped from the output; and — correcting a common misconception — recursion re-scans the expanded content, so a macro's output can feed recursion but a stripped{{// comment}}cannot.overview.md: points to the new authoring guidance.Every mechanics claim was verified against the code (constant activation, whole-word matching, selective +
selectiveLogic, group mutual-exclusion, order + budget trimming, depth injection, probability, semantic/embedding requirement, Description → Knowledge Router, and the macro + recursion behavior).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated (run locally, green — boxes left unticked for the human to confirm):
docs-languageregression passes across all 11 language packs (en, de, es, fr, hi, ja, ko, pl, pt-br, ru, zh-hans).Worth a human pass:
@ Depthexample renders cleanly.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)This is a docs-only change under
docs/lorebooks/. The 11 translated packs on thedocs-i18nbranch need to be updated to match — tracked as the[docs-i18n]follow-up issue #4815. No version bump.Summary by CodeRabbit
@ Depth, including examples of content inserted between chat messages.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.