[GH-ISSUE #743] [Feature]: Show lorebook entries skipped by token budgets in Active World Info #352

Closed
opened 2026-10-20 17:27:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/743

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

Lorebook entries can match/activate but still be omitted from the final World Info context when they exceed either the lorebook's own token budget or the chat-level lorebook token budget.

This is confusing because the app currently has different default caps:

  • Individual lorebooks default to a 2048 token budget.
  • The chat-level lorebook token budget defaults to 8192 tokens.

A user can therefore see keywords match or expect entries to be available, but the entries silently disappear because the narrower lorebook budget is exhausted. That makes it hard to tell whether a lorebook failed to trigger, exceeded budget, or was skipped for some other reason.

Proposed solution

Surface budget-skipped lorebook entries in Active World Info or a nearby diagnostic area.

Suggested behavior:

  • When an entry matches but is omitted due to token budget, show it separately from injected entries.
  • Indicate which budget blocked it, such as the individual lorebook budget or the chat-level lorebook budget.
  • Show enough detail to troubleshoot: entry name, lorebook name, estimated tokens, budget cap, and possibly matched key.
  • If showing full skipped entries would be noisy, show a compact warning/count such as "3 matching lore entries skipped by token budget" with an expandable detail view.
  • Consider suggesting Knowledge Retrieval or Knowledge Router when many valid entries are skipped, since those agents may be better for large lorebooks than simply raising the budget.

Alternatives considered

  • Leave omitted entries invisible. This keeps the UI simpler, but makes lorebook failures look silent and forces users to guess whether keys, activation rules, or budgets are responsible.
  • Only raise the default lorebook budget. This reduces some confusion but does not solve discoverability or troubleshooting when any configured budget is exceeded.

Additional context

Source: Discord feature request from 12 May 2026.

This is distinct from earlier bug reports where Active World Info and assembled context disagreed. This request is specifically for visibility into entries that matched but were intentionally skipped by token-budget enforcement.

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 @Xelvanis on GitHub (May 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/743 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? Lorebook entries can match/activate but still be omitted from the final World Info context when they exceed either the lorebook's own token budget or the chat-level lorebook token budget. This is confusing because the app currently has different default caps: - Individual lorebooks default to a 2048 token budget. - The chat-level lorebook token budget defaults to 8192 tokens. A user can therefore see keywords match or expect entries to be available, but the entries silently disappear because the narrower lorebook budget is exhausted. That makes it hard to tell whether a lorebook failed to trigger, exceeded budget, or was skipped for some other reason. ## Proposed solution Surface budget-skipped lorebook entries in Active World Info or a nearby diagnostic area. Suggested behavior: - When an entry matches but is omitted due to token budget, show it separately from injected entries. - Indicate which budget blocked it, such as the individual lorebook budget or the chat-level lorebook budget. - Show enough detail to troubleshoot: entry name, lorebook name, estimated tokens, budget cap, and possibly matched key. - If showing full skipped entries would be noisy, show a compact warning/count such as "3 matching lore entries skipped by token budget" with an expandable detail view. - Consider suggesting Knowledge Retrieval or Knowledge Router when many valid entries are skipped, since those agents may be better for large lorebooks than simply raising the budget. ## Alternatives considered - Leave omitted entries invisible. This keeps the UI simpler, but makes lorebook failures look silent and forces users to guess whether keys, activation rules, or budgets are responsible. - Only raise the default lorebook budget. This reduces some confusion but does not solve discoverability or troubleshooting when any configured budget is exceeded. ## Additional context Source: Discord feature request from 12 May 2026. This is distinct from earlier bug reports where Active World Info and assembled context disagreed. This request is specifically for visibility into entries that matched but were intentionally skipped by token-budget enforcement. ## 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.
Author
Owner

@cha1latte commented on GitHub (May 12, 2026):

Triage note: labeling this as normal-scope because it is a focused troubleshooting visibility improvement for the existing lorebook and Active World Info workflow.

The least risky next step is to surface matched-but-budget-skipped entries as compact diagnostics without changing lorebook budget enforcement.

<!-- gh-comment-id:4432583959 --> @cha1latte commented on GitHub (May 12, 2026): Triage note: labeling this as `normal-scope` because it is a focused troubleshooting visibility improvement for the existing lorebook and Active World Info workflow. The least risky next step is to surface matched-but-budget-skipped entries as compact diagnostics without changing lorebook budget enforcement.
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#352
No description provided.