[PR #6641] [MERGED] fix: preserve complete character lore in agent prompts #7266

Closed
opened 2026-10-23 04:18:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6641
Author: @SpicyMarinara
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/6620-full-agent-lore


📝 Commits (3)

  • 72507f0 docs: track complete agent character lore fix
  • 6110f73 fix: remove silent agent lore field truncation
  • 9a1ed0f Merge remote-tracking branch 'origin/staging' into codex/6620-full-agent-lore

📊 Changes

3 files changed (+42 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/server/src/services/agents/agent-executor.ts (+8 -10)
📝 scripts/regressions/agent-runtime.regression.ts (+32 -0)

📄 Description

Linked issue

Closes #6620

Why this change

Illustrator loses visual and world details placed beyond the old character field caps in the Engine's shared agent lore block. Agents should receive the character and persona context the user selected in full.

What changed

Remove the silent per-field character and persona lore truncation in the shared agent prompt builder. The existing context-source selections still determine which lore is included. A recording-provider regression covers complete long fields in single Illustrator and batched agent requests.

Validation

Completed: pnpm check, pnpm regression:prompt, and both agent-runtime regression suites. The new regression fails on the previous truncation and passes with this fix. Local CodeRabbit completed with 0 findings across all 3 changed files. Hosted CodeRabbit completed with one out-of-diff context-budget suggestion, which was not adopted: the existing fitter already trims history/reply reserve first, and its total-budget policy is outside this fixed-field-limit change. The required GitHub checks passed.

Local container execution and a live image-provider request were not performed; the required hosted container check will cover the build. Engine model-context fitting and provider context limits still apply; this removes fixed per-field cuts rather than promising that arbitrary cards fit every model.

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Manually verify an Illustrator request with a long character card and inspect its prompt to confirm late visual details are present. No live image-provider verification is claimed.

Docs and release impact

A user-facing Unreleased changelog entry is included. No settings, downloadable agent definitions, data formats or versions change.

UI evidence (if applicable)

No interface changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6641 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/24/2026 **Status:** ✅ Merged **Merged:** 9/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/6620-full-agent-lore` --- ### 📝 Commits (3) - [`72507f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72507f0547a4bcb9d16160835331a006f8508789) docs: track complete agent character lore fix - [`6110f73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6110f73dd4f3dcc59bf56c4a13afdec90fb147cc) fix: remove silent agent lore field truncation - [`9a1ed0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a1ed0f10c89b0702665973330ec737815bc60ae) Merge remote-tracking branch 'origin/staging' into codex/6620-full-agent-lore ### 📊 Changes **3 files changed** (+42 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/server/src/services/agents/agent-executor.ts` (+8 -10) 📝 `scripts/regressions/agent-runtime.regression.ts` (+32 -0) </details> ### 📄 Description ## Linked issue Closes #6620 ## Why this change Illustrator loses visual and world details placed beyond the old character field caps in the Engine's shared agent lore block. Agents should receive the character and persona context the user selected in full. ## What changed Remove the silent per-field character and persona lore truncation in the shared agent prompt builder. The existing context-source selections still determine which lore is included. A recording-provider regression covers complete long fields in single Illustrator and batched agent requests. ## Validation Completed: `pnpm check`, `pnpm regression:prompt`, and both agent-runtime regression suites. The new regression fails on the previous truncation and passes with this fix. Local CodeRabbit completed with 0 findings across all 3 changed files. Hosted CodeRabbit completed with one out-of-diff context-budget suggestion, which was not adopted: the existing fitter already trims history/reply reserve first, and its total-budget policy is outside this fixed-field-limit change. The required GitHub checks passed. Local container execution and a live image-provider request were not performed; the required hosted container check will cover the build. Engine model-context fitting and provider context limits still apply; this removes fixed per-field cuts rather than promising that arbitrary cards fit every model. - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Manually verify an Illustrator request with a long character card and inspect its prompt to confirm late visual details are present. No live image-provider verification is claimed. ## Docs and release impact A user-facing Unreleased changelog entry is included. No settings, downloadable agent definitions, data formats or versions change. ## UI evidence (if applicable) No interface changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:05 +07:00
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#7266
No description provided.