[PR #8596] [MERGED] fix(prompt): creator notes never reach a model prompt #8694

Closed
opened 2026-11-07 17:38:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8596
Author: @SpicyMarinara
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/creator-notes-never-sent-8582


📝 Commits (1)

  • 23ac5de fix(prompt): creator notes never reach a model prompt (#8582)

📊 Changes

11 files changed (+28 additions, -17 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+0 -1)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+0 -2)
📝 packages/server/src/services/advanced-memory.ts (+0 -1)
📝 packages/server/src/services/agents/agent-executor.ts (+0 -1)
📝 packages/server/src/services/generation/character-prompt-context.ts (+0 -2)
📝 packages/server/src/services/prompt/macro-context.ts (+0 -3)
📝 packages/server/src/services/prompt/marker-expander.ts (+0 -2)
📝 packages/shared/src/types/agent.ts (+0 -2)
📝 scripts/regressions/advanced-memory-recollections-upkeep.regression.ts (+8 -2)
📝 scripts/regressions/open-issues.regression.ts (+5 -0)
📝 scripts/regressions/prompt.regression.ts (+15 -1)

📄 Description

Linked issue

Refs #8582 (closed: the exact report could not be replicated; this PR removes every path found)

Why this change

  • The rule: creator notes are never sent to a model. Only Professor Mari may read them. That's the maintainer's call. The docs (docs/characters/creating-and-editing-characters.md:59, docs/characters/personas.md:74) and the editor hint ("Not sent to the AI") already promise it.
  • The report: creator notes reached the model as an unwrapped USER section, on an imported ST card.
    • I couldn't replicate that exact path on staging. The stock preset's Characters marker, the no-preset path, the ST character and preset importers, and every built-in preset seed in git history leave creator notes out.
    • The likeliest remaining route is a preset whose Characters marker names creator_notes. This PR closes that route, and its regression fails on staging.
  • Seven paths did send creator notes to a model. This PR removes all of them, so none is left outside Professor Mari.

What changed

  • Character marker (services/prompt/marker-expander.ts): a Characters marker whose characterFields names creator_notes no longer sends it. No UI offers that field, but an imported preset or Mari could set it. Stale presets keep working; the field just reads empty.
  • Referenced cards (services/prompt/macro-context.ts):
    • {{<id>}} characters and {{persona-<id>}} personas no longer include creator notes.
    • An active card's creator notes are no longer scanned for ID macros, so an ID written only there doesn't pull another card in.
  • Agents (services/agents/agent-executor.ts, character-prompt-context.ts, generate.routes.ts, generate/retry-agents-route.ts, shared/types/agent.ts): creatorNotes is gone from CharacterPromptInfo and from the shared AgentContext character. Card Evolution Auditor's <character_cards> and capability packages' prepareContext no longer receive it.
  • Advanced Memory (services/advanced-memory.ts): summary and recollection cards no longer carry creator notes.
  • EDITABLE_CHARACTER_CARD_FIELDS: drops creator_notes, so an audit can't propose a blind edit to a field it never saw.
  • Unchanged on purpose:
    • Professor Mari still reads creator notes when the user asks her to read or edit a card. The maintainer confirmed she is the only exception.
    • Prof. Mari's entity search (services/entity-embedding-store.ts) still embeds a card's notes for its candidate list. Only Professor Mari's command runtime and prompt context use that store.
    • Card CSS stays client-side.
  • Follow-up: Card Evolution Auditor's package prompt still lists creator_notes as a target. Filed as Pasta-Devs/Marinara-Agents#1967.

Validation

  • 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

Agent-side checks:

  • Pass: pnpm check (format, lint, types, localization, build).
  • scripts/regressions/prompt.regression.ts: a Characters marker naming creator_notes (with description and scenario), in xml, markdown and none, carries neither the creator notes nor a creator_notes section, while the other named fields stay. The default marker carries none either.
  • scripts/regressions/open-issues.regression.ts: referenced characters and personas leave creator notes out.
  • scripts/regressions/advanced-memory-recollections-upkeep.regression.ts: the summarizer's cards carry no creator notes. Its macro-resolution check moved from creator notes to the scenario.
  • All three fail on staging's server code.

Please verify by hand:

  • Manually verify, with Peek Prompt on a chat whose character has creator notes, that the creator notes appear nowhere in the assembled prompt.
  • Manually verify that a Card Evolution Auditor run still proposes edits to other fields.

Docs and release impact

  • No docs changes needed (the docs already say creator notes are never sent)
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Owner: @SpicyMarinara (made by Claude).

🤖 Generated with Claude Code


🔄 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/8596 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/creator-notes-never-sent-8582` --- ### 📝 Commits (1) - [`23ac5de`](https://github.com/Pasta-Devs/Marinara-Engine/commit/23ac5de3efbbf1ea692457caa4c0976a8b7c49d4) fix(prompt): creator notes never reach a model prompt (#8582) ### 📊 Changes **11 files changed** (+28 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+0 -1) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+0 -2) 📝 `packages/server/src/services/advanced-memory.ts` (+0 -1) 📝 `packages/server/src/services/agents/agent-executor.ts` (+0 -1) 📝 `packages/server/src/services/generation/character-prompt-context.ts` (+0 -2) 📝 `packages/server/src/services/prompt/macro-context.ts` (+0 -3) 📝 `packages/server/src/services/prompt/marker-expander.ts` (+0 -2) 📝 `packages/shared/src/types/agent.ts` (+0 -2) 📝 `scripts/regressions/advanced-memory-recollections-upkeep.regression.ts` (+8 -2) 📝 `scripts/regressions/open-issues.regression.ts` (+5 -0) 📝 `scripts/regressions/prompt.regression.ts` (+15 -1) </details> ### 📄 Description ## Linked issue Refs #8582 (closed: the exact report could not be replicated; this PR removes every path found) ## Why this change - **The rule:** creator notes are never sent to a model. Only Professor Mari may read them. That's the maintainer's call. The docs (`docs/characters/creating-and-editing-characters.md:59`, `docs/characters/personas.md:74`) and the editor hint ("Not sent to the AI") already promise it. - **The report:** creator notes reached the model as an unwrapped USER section, on an imported ST card. - I couldn't replicate that exact path on staging. The stock preset's Characters marker, the no-preset path, the ST character and preset importers, and every built-in preset seed in git history leave creator notes out. - The likeliest remaining route is a preset whose Characters marker names `creator_notes`. This PR closes that route, and its regression fails on staging. - **Seven paths did send creator notes to a model.** This PR removes all of them, so none is left outside Professor Mari. ## What changed - **Character marker** (`services/prompt/marker-expander.ts`): a Characters marker whose `characterFields` names `creator_notes` no longer sends it. No UI offers that field, but an imported preset or Mari could set it. Stale presets keep working; the field just reads empty. - **Referenced cards** (`services/prompt/macro-context.ts`): - `{{<id>}}` characters and `{{persona-<id>}}` personas no longer include creator notes. - An active card's creator notes are no longer scanned for ID macros, so an ID written only there doesn't pull another card in. - **Agents** (`services/agents/agent-executor.ts`, `character-prompt-context.ts`, `generate.routes.ts`, `generate/retry-agents-route.ts`, `shared/types/agent.ts`): `creatorNotes` is gone from `CharacterPromptInfo` and from the shared `AgentContext` character. Card Evolution Auditor's `<character_cards>` and capability packages' `prepareContext` no longer receive it. - **Advanced Memory** (`services/advanced-memory.ts`): summary and recollection cards no longer carry creator notes. - **`EDITABLE_CHARACTER_CARD_FIELDS`:** drops `creator_notes`, so an audit can't propose a blind edit to a field it never saw. - **Unchanged on purpose:** - **Professor Mari** still reads creator notes when the user asks her to read or edit a card. The maintainer confirmed she is the only exception. - **Prof. Mari's entity search** (`services/entity-embedding-store.ts`) still embeds a card's notes for its candidate list. Only Professor Mari's command runtime and prompt context use that store. - **Card CSS** stays client-side. - **Follow-up:** Card Evolution Auditor's package prompt still lists `creator_notes` as a target. Filed as Pasta-Devs/Marinara-Agents#1967. ## Validation - [ ] `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 Agent-side checks: - **Pass:** `pnpm check` (format, lint, types, localization, build). - **`scripts/regressions/prompt.regression.ts`:** a Characters marker naming `creator_notes` (with description and scenario), in xml, markdown and none, carries neither the creator notes nor a `creator_notes` section, while the other named fields stay. The default marker carries none either. - **`scripts/regressions/open-issues.regression.ts`:** referenced characters and personas leave creator notes out. - **`scripts/regressions/advanced-memory-recollections-upkeep.regression.ts`:** the summarizer's cards carry no creator notes. Its macro-resolution check moved from creator notes to the scenario. - All three fail on staging's server code. Please verify by hand: - [ ] Manually verify, with Peek Prompt on a chat whose character has creator notes, that the creator notes appear nowhere in the assembled prompt. - [ ] Manually verify that a Card Evolution Auditor run still proposes edits to other fields. ## Docs and release impact - [x] No docs changes needed (the docs already say creator notes are never sent) - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Owner: @SpicyMarinara (made by Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:38:58 +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#8694
No description provided.