[GH-ISSUE #4792] [Feature]: Improve lorebook docs — authoring strategy, use-cases, and non-skeletal examples #2641

Closed
opened 2026-10-21 05:52:01 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4792

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

The lorebook docs (docs/lorebooks/) explain the mechanics of each parameter well, but they don't teach authoring strategy, and every worked example is skeletal (Name + a key + Content) — which models exactly the shallow pattern we want authors, and Professor Mari via docs_read, to move past.

Specifically:

  • The examples model the anti-pattern. overview.md's "Eldoria" example (docs/lorebooks/overview.md:11-17) and entries.md's "Silverhaven" example (docs/lorebooks/entries.md:48-52) are both name/keys/content only. A reader — human or agent — imitating the docs learns to make skeletal entries. There is no worked example of a Constant premise entry, a Selective disambiguation, a Group of alternatives, a filled Description, or a considered Position/Depth choice.
  • No use-case / strategy framing. entries.md explains what Constant/Normal/Selective, Position/Depth/Order, Group/Tag, and Description do, but not when/why to choose each: the setting's ground rules that must always be present → Constant; a place or faction only relevant when named → keyed Normal; a common word like "king" that mis-fires → Selective; three alternate castle versions where only one should load → Group; a router-facing summary → Description. Readers get the knobs without the judgment.
  • No end-to-end worldbuilding walkthrough. There is a "create your first lorebook and entry" section, but nothing showing how to turn a whole setting into a well-parameterized lorebook (which entries should be constant, which keyed, how to budget them). That end-to-end "make a lorebook for this setting" request is exactly what users bring to Professor Mari.

To be clear, this is not "the parameters are undocumented." overview.md and entries.md are fairly complete on mechanics (the Scan Depth / Token Budget / Entry Limit / Recursion table; Constant/Selective; Position/Depth/Order; Timing; Role; Group/Tag; Description-feeds-the-router). The gap is comprehension-through-example and strategy, not reference coverage.

Proposed solution

Enhance docs/lorebooks/ — primarily entries.md and overview.md, possibly a short new "authoring strategy" section or guide:

  1. Add an "authoring strategy / when to use what" section that maps each entry choice to a use-case: premise → Constant; topical detail → keyed Normal; ambiguous keyword → Selective + secondaryKeys; alternatives → Group; router-facing summary → Description; placement → Position/Depth/Order/Role.
  2. Add at least one non-skeletal worked example: a small but complete setting lorebook (e.g. a handful of entries for a vampire-gothic setting) showing a Constant "world premise" entry alongside keyed location/character entries, filled descriptions, and a deliberate placement/order choice — with a sentence on why each field is set that way.
  3. Optionally, upgrade the existing skeletal examples (Silverhaven / Eldoria) so at least one shows more than name/keys/content.

Alternatives considered

  • Leaving the docs as-is and putting all authoring guidance in Mari's prompt — rejected: the docs serve human authors too, and the companion Mari change (#4791, item 4) explicitly routes Mari to these docs, so the docs are the shared source of truth.
  • A separate API/field-reference doc aimed only at agents — probably overkill; enriching the existing user docs with strategy + examples serves both audiences.

Additional context

  • Companion issue: workspace Professor Mari lorebook capability #4791 — its "point Mari at docs_read" item (item 4) depends on these docs actually teaching parameter use with examples.
  • Current docs reviewed: docs/lorebooks/overview.md, docs/lorebooks/entries.md, token-budgets.md, semantic-search.md, linking-to-characters.md, import-export.md.
  • docs-i18n follow-up required: per CONTRIBUTING.md § Translated documentation, any user-facing docs change under docs/ must be mirrored to the translated language packs on the docs-i18n branch, or a [docs-i18n] <paths> follow-up issue opened. Note the affected paths when this lands.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Aug 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4792 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? The lorebook docs (`docs/lorebooks/`) explain the *mechanics* of each parameter well, but they don't teach *authoring strategy*, and every worked example is skeletal (Name + a key + Content) — which models exactly the shallow pattern we want authors, and Professor Mari via `docs_read`, to move past. Specifically: - **The examples model the anti-pattern.** overview.md's "Eldoria" example (`docs/lorebooks/overview.md:11-17`) and entries.md's "Silverhaven" example (`docs/lorebooks/entries.md:48-52`) are both name/keys/content only. A reader — human or agent — imitating the docs learns to make skeletal entries. There is no worked example of a `Constant` premise entry, a `Selective` disambiguation, a `Group` of alternatives, a filled `Description`, or a considered `Position`/`Depth` choice. - **No use-case / strategy framing.** entries.md explains *what* Constant/Normal/Selective, Position/Depth/Order, Group/Tag, and Description do, but not *when/why* to choose each: the setting's ground rules that must always be present → Constant; a place or faction only relevant when named → keyed Normal; a common word like "king" that mis-fires → Selective; three alternate castle versions where only one should load → Group; a router-facing summary → Description. Readers get the knobs without the judgment. - **No end-to-end worldbuilding walkthrough.** There is a "create your first lorebook and entry" section, but nothing showing how to turn a *whole setting* into a well-parameterized lorebook (which entries should be constant, which keyed, how to budget them). That end-to-end "make a lorebook for this setting" request is exactly what users bring to Professor Mari. To be clear, this is **not** "the parameters are undocumented." overview.md and entries.md are fairly complete on mechanics (the Scan Depth / Token Budget / Entry Limit / Recursion table; Constant/Selective; Position/Depth/Order; Timing; Role; Group/Tag; Description-feeds-the-router). The gap is **comprehension-through-example and strategy**, not reference coverage. ## Proposed solution Enhance `docs/lorebooks/` — primarily `entries.md` and `overview.md`, possibly a short new "authoring strategy" section or guide: 1. **Add an "authoring strategy / when to use what" section** that maps each entry choice to a use-case: premise → Constant; topical detail → keyed Normal; ambiguous keyword → Selective + secondaryKeys; alternatives → Group; router-facing summary → Description; placement → Position/Depth/Order/Role. 2. **Add at least one non-skeletal worked example**: a small but complete setting lorebook (e.g. a handful of entries for a vampire-gothic setting) showing a `Constant` "world premise" entry alongside keyed location/character entries, filled descriptions, and a deliberate placement/order choice — with a sentence on *why* each field is set that way. 3. **Optionally, upgrade the existing skeletal examples** (Silverhaven / Eldoria) so at least one shows more than name/keys/content. ## Alternatives considered - Leaving the docs as-is and putting all authoring guidance in Mari's prompt — rejected: the docs serve human authors too, and the companion Mari change (#4791, item 4) explicitly routes Mari to these docs, so the docs are the shared source of truth. - A separate API/field-reference doc aimed only at agents — probably overkill; enriching the existing user docs with strategy + examples serves both audiences. ## Additional context - Companion issue: workspace Professor Mari lorebook capability #4791 — its "point Mari at `docs_read`" item (item 4) depends on these docs actually teaching parameter use with examples. - Current docs reviewed: `docs/lorebooks/overview.md`, `docs/lorebooks/entries.md`, `token-budgets.md`, `semantic-search.md`, `linking-to-characters.md`, `import-export.md`. - **docs-i18n follow-up required:** per `CONTRIBUTING.md § Translated documentation`, any user-facing docs change under `docs/` must be mirrored to the translated language packs on the `docs-i18n` branch, or a `[docs-i18n] <paths>` follow-up issue opened. Note the affected paths when this lands. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#2641
No description provided.