mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2492] [Issue]: 13-AGENT-RUNTIME-secret-plot-memory parity gaps in prompt injection and reroll memory #1235
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#1235
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?
Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2492
Originally assigned to: @Promansis on GitHub.
Summary
13-AGENT-RUNTIME-secret-plot-memoryhas parity gaps from Batch 8: refactor does not inject Secret Plot arc/directions into the main reply prompt like legacy, full Secret Plot reroll cannot clear an existing arc, and memory state is built from merged agent memory instead of the resolved Secret Plot config.Expected behavior
Legacy Secret Plot behavior should be preserved:
secret-plot-driverconfig for the active chat.overarching_arcandscene_directionsinto the main reply prompt.secret_plotoutput, including clearingoverarchingArcon full reroll when the result explicitly returnsnull.overarchingArconturn_onlyreroll.Actual behavior
Refactor loads all agent memory rows into one merged bag before deriving
_secretPlotState, only exposes that state inside the agent prompt as<secret_plot_state>, and writesoverarchingArconly when the value is truthy.Steps to reproduce
maingeneration route behavior for Secret Plot prompt injection and reroll persistence.Impact area
Environment
refactorLogs, screenshots, or video
Static parity proof from Batch 8:
_secretPlotState:main:packages/server/src/routes/generate.routes.ts:5503.secret_plot:main:packages/server/src/routes/generate.routes.ts:6520.overarching_arcandscene_directionsinto the main reply prompt:main:packages/server/src/routes/generate.routes.ts:6724.turn_onlypreserves it:main:packages/server/src/routes/generate/retry-agents-route.ts:1574._secretPlotState:src/engine/generation/agent-runner.ts:1555.<secret_plot_state>in agent prompt memory:src/engine/agents-runtime/executor/agent-executor.ts:1751.overarchingArcwhen truthy:src/engine/generation/agent-memory-runtime.ts:51.src/features/modes/roleplay/components/SecretPlotPanel.tsx:103,src/features/modes/roleplay/components/SecretPlotPanel.tsx:187,src/shared/api/agent-api.ts:26,src-tauri/src/commands/storage/agents.rs:295.Regression notes
Legacy source of truth is the
mainbranch. This issue comes from upstream parity tracker #2482, surface13-AGENT-RUNTIME-secret-plot-memory.Additional context
Acceptance criteria:
overarching_arcandscene_directions.overarchingArcwhen the agent returns an explicit null/empty arc value.turn_onlyreroll preserves the existing long-running arc while refreshing turn guidance.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: